Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

latex

kindle

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

like image 223
Paul Vincent Craven Avatar asked Jan 29 '11 19:01

Paul Vincent Craven


3 Answers

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}
like image 192
Paul Vincent Craven Avatar answered Nov 07 '22 15:11

Paul Vincent Craven


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.

like image 40
Borealid Avatar answered Nov 07 '22 14:11

Borealid


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

like image 4
dbdkmezz Avatar answered Nov 07 '22 15:11

dbdkmezz