What is the best way to format LaTeX source for the Kindle?

Paul Vincent Craven picture Paul Vincent Craven · Jan 29, 2011 · Viewed 10.1k times · Source

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

Answer

Paul Vincent Craven picture Paul Vincent Craven · Jan 29, 2011

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}