Skip to content

Instantly share code, notes, and snippets.

@laanwj
Created June 14, 2013 08:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save laanwj/5780289 to your computer and use it in GitHub Desktop.
Save laanwj/5780289 to your computer and use it in GitHub Desktop.
Texinfo.tex configuration for generating PDFs readable with Kobo Glo 6" screen size
\def\afivepaper{{\globaldefs = 1
\parskip = 2pt plus 1pt minus 0.1pt
\textleading = 12.5pt
%
\internalpagesizes{111mm}{94mm}%
{-.5in}{-.85in}%
{0pt}{8pt}%
{127mm}{100mm}%
\lispnarrowing = 0.2in
\tolerance = 800
\hfuzz = 1.2pt
\contentsrightmargin = 0pt
\defbodyindent = 2mm
\tableindent = 12mm
}}
@laanwj
Copy link
Author

laanwj commented Jun 14, 2013

Change the \afivepaper section in texinfo.tex to this, add @afivepaper to the start of the .texi (replace any other paper size directives), and copy it to the directory in which the pdf is generated.

A more flexible approach would be to use the steps on https://github.com/ikrukov/epub to convert the texi to epub. However, this didn't work for the gdb manual, it generates an invalid docbook that can not be xslt'ed to epub due to some listitem issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment