What is the best way to format LaTeX source for the Kindle? [closed]
Asked Answered
S

3

17

I am trying to format my book for a Kindle 3. I'm writing the book using LaTeX. I am ok with transferring the file in PDF format but I need it formatted to be small.

I have tried:

\documentclass[12pt,b7paper]{book}
\usepackage[top=0.5cm, bottom=0.5cm, left=0.5cm, right=0.5cm]{geometry}

But this is too small. I have also tried something like:

\usepackage[paperwidth=9cm, paperheight=12cm, top=1cm, left=1cm, right=1cm, bottom=1.5cm, includefoot]{geometry}

But that doesn't work well either. Has anyone found a good way to format a LaTeX PDF for the Kindle? (Not the big DX version.)

Superlative answered 29/1, 2011 at 19:23 Comment(1)
C
4

This may be much more than you need, but it's worth pointing out that there's a much more comprehensive answer over on tex.stackexchange

Clericals answered 9/1, 2012 at 22:19 Comment(0)
S
7

This works well. I found it important to remove paper size from the dvips command. Forgetting to adjust that setting through me off for a while.

\documentclass[12pt]{book}
\usepackage[paperwidth=9cm, paperheight=12cm, top=0.5cm, bottom=0.5cm, left=0.0cm, right=0.5cm]{geometry}
\special{papersize=9cm,12cm}
Superlative answered 29/1, 2011 at 19:45 Comment(0)
W
6

Why don't you convert the LaTeX to HTML and create a Mobipocket document from that? That way, the Kindle will be able to reflow the document, which it cannot do if you load it in PDF form.

Wolfort answered 29/1, 2011 at 19:26 Comment(1)
I find that the PDF format looks better than books converted to HTML. Particularly with math and postscript drawings via the pstricks package. It is, however, a viable alternative for simple documents. It has the advantage of being able to be converted to the native Kindle book format.Superlative
C
4

This may be much more than you need, but it's worth pointing out that there's a much more comprehensive answer over on tex.stackexchange

Clericals answered 9/1, 2012 at 22:19 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.