Thursday, 10 January 2013

kindle latex preamble


%{{{
% tables using \textwidth should sum to 0.84\textwidth.

\documentclass[oneside, 10pt]{scrbook}

% I spent some time establishing the bottom=2.5mm.  Change it with care.
\usepackage[verbose,paperwidth=9cm,paperheight=12.2cm,margin=0.5mm, bottom=2.5mm]{geometry}  
% do this first, as other packages use the page dims

\usepackage{microtype}  % reduces hyphenation
\usepackage{fancyhdr}   % headers and footers
\pagestyle{fancy}
\fancyhead{}            % clear page header
\fancyfoot{}            % clear page footer

% The following have not been optimised yet.
\setlength{\abovecaptionskip}{2pt} % space above captions
\setlength{\belowcaptionskip}{0pt} % space below captions
\setlength{\textfloatsep}{2pt}     % space between last top float / first bottom float text
\setlength{\floatsep}{2pt}         % space left between floats
\setlength{\intextsep}{2pt}        % space left on top and bottom of an in-text float
%
\pagestyle{empty}      % suppress page number.  Repeat after every chapter.
\usepackage{ifthen}    % logic programming
\usepackage{booktabs}  % top, mid, bottomrule in tables
\usepackage{longtable} % essential for small kindle display
\usepackage{color}     % Colour is used though this kindle is b/w
\usepackage{expdlist}  % long description items

\title{Notes}
\author{Mark St.}

% from https://www.cl.cam.ac.uk/~rf10/pstex/latexcommands.htm
% this sets the default font to be the system default sans-serif font.
% I'm adopting this for kindle as the serifs are problematic for
% low resolution display.  It is computer modern sans serif.

\renewcommand{\familydefault}{\sfdefault}

\renewcommand{\small}{\fontsize{4}{6}\selectfont}

\renewcommand{\normalsize}{\fontsize{6}{8}\selectfont}

\begin{document}%}}}

No comments:

Post a Comment