[Tex/LaTex] Effort to make (La)TeX eBook-friendly

ebook

Does anyone know whether there is an organized effort to develop (La)TeX classes/packages specifically designed to create ereader-friendly PDFs?

My question is not how to create such PDFs using LaTeX, since Lev Bishop provides a fine summary of currently available methods in an answer to this question.

Edit: Would it be feasible to generate usable epub (or [insert your favorite eBook format here]) documents using LaTeX? I'm not very familiar with how epub documents/readers manage font-scaling, etc. If so, is there a project to create a program that would do this?

Also, I leave ereader-friendly open to your interpretation, but some features I had in mind are

  • ereader-specific page sizes (with small margins by default);
  • increased minimum font size;
  • a font thicker than CM (by default).

Best Answer

I compile my ebooks (tested and liked on both Sony Reader and Kindle) in XeLaTeX with this preamble:

\documentclass{article}

\usepackage{fontspec}
\setmainfont{Cochin}

\usepackage[papersize={4.5in,6in},margin=0.5cm]{geometry}
\setlength{\parskip}{2pt}

\usepackage{fourier-orns}
\newcommand\textbreak{%
  \begin{center}%
  \decothreeleft \aldineleft \decosix \aldineright \decothreeright%
  \end{center}}

\pagestyle{empty}
\usepackage[pdfauthor={AUTHOR},pdftitle={TITLE}]{hyperref}

\begin{document}

As a result, I get small pages, with small margins, a really nice font, pleasant to read, and embedded in the PDF, and the PDF metadata set so that it shows up nicely in the e-reader book listing.