Skip to content

Instantly share code, notes, and snippets.

@laclefyoshi
Created April 16, 2011 07:37
Show Gist options
  • Save laclefyoshi/922955 to your computer and use it in GitHub Desktop.
Save laclefyoshi/922955 to your computer and use it in GitHub Desktop.
latex snippet for outputting vertical document
\documentclass[10pt]{tarticle}
% ...
\newcommand{\tsetpagesize}[2]{%
\usepackage[paperwidth=#2, paperheight=#1,%
top=1truemm, bottom=1truemm, left=1truemm, right=1truemm]{geometry}%
\special{papersize=#1,#2}%
}
\tsetpagesize{\ipodtouchwidth}{\ipodtouchheight}
% source: http://www.genpaku.org/alice01/alice01j.html
\begin{document}
\maketitle
\section{CHAPTER I}
\subsection{うさぎの穴をまっさかさま}
アリスは川辺でおねえさんのよこにすわって、なんにもすることがないのでと
ても退屈たいくつしはじめていました。一、二回はおねえさんの読んでいる本
をのぞいてみたけれど、そこには絵も会話もないのです。「絵や会話のない本
なんて、なんの役にもたたないじゃないの」とアリスは思いました。
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment