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.
In reference to your E-Reader / Tablet issue, I had the same problem a few weeks ago and found the answer (or at least the idea for it) on wikipedia. Granted, an HTML version would be best, but if possible, a simple compilation to a second file type would save you hours of eye strain and problems. If your viewers are capable, a two file system may be best. Specifically for tablets, it turns out that the specifications for the Supreme Court briefs are just about perfect for viewing on a tablet. From Wikipedia ( http://en.wikibooks.org/wiki/LaTeX/Page_Layout )
Those who want to read on tablets or other handheld digital devices
need to create documents without the extra whitespace. In order to
create PDF documents with optimal handheld viewing, not only must the
text field and margins be adjusted, so must the page size. If you are
looking for a sensible dimension, consider following the paper size
used by the Supreme Court of the United States, 441pt by 666pt (or
6.125 inches by 9.25 inches), which looks great on tablets. You could also use the Supreme Court's text field size of 297 pt by 513 pt, but
this is too wide for fonts other than Century Schoolbook, the font
required by the Supreme Court.
Here was my implementation of it. It is rather bullish and perhaps someone has a better working, but it works perfect for tablet viewing :)
% Adjust The page size via use of the geometry package
\usepackage[paperwidth=441pt, paperheight=666pt,
textwidth=297pt,textheight=513pt]{geometry}
% Use the New Century SchoolBook font and fourier math
\usepackage{fouriernc}
Note you can use any font you want, but with a high x-height
and excellent readability on both tablet and print, this is an
excellent choice. If it is truly to be a "tablet" viewing document, maybe even a sans font may be the ticket as they have better readability on low-res screens as well.
Best Answer
Final Status October 2013 --- eBook is now available with a special promotion price until the end of the year
I'm happy to announce that there is finally an eBook version of "The LaTeX Companion, 2ed" available. It was a rather challenging exercise due to the many examples in the book and the need to reproduce the example output faithfully on that media. Originally we thought that anything other than plain PDF is not going to be possible; however as it turned out both ePub and mobi (Kindle) came out surprisingly well.
The eBook will be sold through various channels, however, the best deal is probably going to be through InformIT, as the publisher is selling the eBook as a bundle with all three formats included (PDF, ePub, mobi) and no DRM applied (!) only watermarked to kindly remind readers that this is not a work given away for free.
In addition there will be a special promotion price for the bundle valid until December 31, 2013 where it is offered at $14.99.
To make use of this special offer, you have to buy it from the publisher at InformIT and apply the following promotion code during checkout processing:
LATEXT2013 (Case sensitive! and notice that it is "LATEXT" not "LATEX" for some reason)
In 2014 the official price will be $23.99 at InformIT which I still think is a good price for all three formats. Be careful if you see the book from other resellers, they may apply their own DRM which, in my opinion, makes an eBook nearly unusable.
Enjoy -- Frank
Older info (kept for historians :-)
Status in June 2013
Beside the fact that TLC2 is indeed available on Safari (subscription) as mentioned by Joseph in his answer both as pdf and as html (urg, but in fact it could be worse, so after seeing that we decided to let this be) there are news on this front:
I worked with the publisher to make a properly cross-linked pdf (the safari one was just a simple pdf, searchable but without cross-refs) and we are currently looking at whether or not providing epub would be possible too (if the quality is not too bad we may ok this too). The pdf version (no DRM, only watermarked) is already available at InformIT and if the epub works out it will soon be added too. It may also be available from some resellers but be careful there you may end up with Adobe DRM or similar nasties.
I would like to make it available cheap for those who already have a hard-copy of the book, but given that there is not a good scheme how to arrange for this we will probably run a limited promotion (with a bargaining price) at some point in the near future which we will announce in the TeX world, so stay tuned.
However, if I may say so, an awful lot of work went into this book and its 1200 pages and I believe its normal price is actually worth it whether as hardcover or ebook so if you can afford it and you want to give something back to the authors ...
Status in August 2012
The second edition of the LaTeX Companion is not available as an ebook (at least not legally, give or take some scanned copies that float around on the internet). For this edition this status is very unlikely to change. (I'm the author, so I'm not just guessing).