Skip to content

Instantly share code, notes, and snippets.

@laclefyoshi
Created April 16, 2011 07:27
Show Gist options
  • Save laclefyoshi/922950 to your computer and use it in GitHub Desktop.
Save laclefyoshi/922950 to your computer and use it in GitHub Desktop.
latex document for being displayed on iPod touch or Kindle
\documentclass[10pt]{article}
\pagestyle{empty}
\def\kindlewidth{85.09truemm}
\def\kindleheight{111.76truemm}
\def\ipodtouchwidth{49.31truemm}
\def\ipodtouchheight{73.97truemm}
\newcommand{\setpagesize}[2]{%
\usepackage[paperwidth=#1, paperheight=#2,%
top=1truemm, bottom=1truemm, left=1truemm, right=1truemm]{geometry}%
\special{papersize=#1,#2}%
}
%\setpagesize{\kindlewidth}{\kindleheight}
\setpagesize{\ipodtouchwidth}{\ipodtouchheight}
\title{Alice's Adventures in Wonderland}
\author{Lewis Carroll}
\date{}
% source: http://www.cs.cmu.edu/~rgs/alice-table.html
\begin{document}
\maketitle
\section{CHAPTER I}
\subsection{Down the Rabbit-Hole}
Alice was beginning to get very tired of sitting by her sister on the
bank, and of having nothing to do: once or twice she had peeped into
the book her sister was reading, but it had no pictures or
conversations in it, `and what is the use of a book,' thought Alice
`without pictures or conversation?' So she was considering in her own
mind (as well as she could, for the hot day made her feel very sleepy
and stupid), whether the pleasure of making a daisy-chain would be
worth the trouble of getting up and picking the daisies, when suddenly
a White Rabbit with pink eyes ran close by her.
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment