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.)

Paul Vincent Craven
  • 2,027
  • 3
  • 19
  • 24

3 Answers3

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}
Paul Vincent Craven
  • 2,027
  • 3
  • 19
  • 24
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.

Borealid
  • 95,191
  • 9
  • 106
  • 122
  • 5
    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. – Paul Vincent Craven Jan 29 '11 at 19:43
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

Community
  • 1
  • 1
dbdkmezz
  • 98
  • 1
  • 6