Tag Archives: LaTeX

Kindle LaTeX Template

So I finally got around to buy myself a Kindle from Amazon. Very nice device, but it is not very good with standard pdfs. I have a number of books laying around in text format, and the internet is full of good classics that are public domain (i.e. not under copyright). Check for instance Project Gutenberg which has a number of books available, also prepared for Kindle and other mobile devices. Anyway, as I said, I needed a LaTeX template that is formatted and suitable for generating pdfs for the Kindle. I googled a bit around and found one that, with some modification, worked well.

Here is the template.

…and a few books I’ve formatted using that template:

Jules Verne – A Journey to the Interior of the Earth [PDF] [LaTeX]
Jules Verne – Around the World in 80 Days [PDF] [LaTeX]
Jules Verne – Twenty Thousand Leagues Under the Sea [PDF] [LaTeX]


Edit on 10.05.2011:

Based on a comment below I tested the template with an equation. To do this i added the following packages:

\usepackage{amsmath}
\usepackage{amssymb}

The result is shown here (click for larger image):Kindle

LaTeX Margins

Was writing a formula sheet for my quantum mechanics exam today, and needed to maximize usage of my available space on a piece of A4 paper. So I googled some solutions to get LaTeX to do just that. In addition to using the /tiny command to make small text of course.

Firstly I needed to minimize the margins, so I added this in the header:

\setlength\topmargin{-3cm}
\setlength\textheight{27cm}
\setlength\textwidth{19cm}
\setlength\oddsidemargin{-1.5cm}
\setlength\evensidemargin{-1.5cm}

Then I needed to split the page into 3 columns so I wouldn’t waste too much space at each lineshift:

\usepackage{multicol}

\begin{document}
\tiny
\begin{multicols}{3}
...text...
\end{multicols}

And last but not least, get rid of that annoying huge indent that the align environment has.

\documentclass[fleqn]{article}

\usepackage{amsmath}

\makeatletter
\setlength\@mathmargin{0.2cm}
\makeatother