Using LaTeX to generate PDFs for mobile phones and tablets

Here’s an example how LaTeX can be used to create PDF files for small screens. The following example is made for the Nokia Lumia 630 but can but easily adjusted.

%!TEX TS-program = LuaLaTeX
\documentclass[7pt,smallheadings]{scrartcl}
\usepackage[paperwidth=56mm,paperheight=92.5mm,top=1mm,left=1mm,bottom=1mm,right=3.5mm]{geometry}
\usepackage[T1]{fontenc}
\usepackage{booktabs}
\usepackage{graphicx}
\usepackage{csquotes}
\usepackage{xkeyval,polyglossia}
\setmainlanguage[spelling=new]{german}
\usepackage{fontspec}
\setmainfont{Verdana}
\usepackage{microtype}
\usepackage{blindtext}
\pagestyle{plain}
\begin{document}
 
\section{Ein Abschnitt}
\subsection{Ein Unterabschnitt}
 
\blindtext[2]
 
\end{document}

lumia

Uwe

Uwe Ziegenhagen likes LaTeX and Python, sometimes even combined. Do you like my content and would like to thank me for it? Consider making a small donation to my local fablab, the Dingfabrik Köln. Details on how to donate can be found here Spenden für die Dingfabrik.

More Posts - Website