+\newif\iflargefont
+\largefontfalse
+
+\DeclareOption{26pt}{%
+\largefonttrue
+\AtEndOfClass{%
+% font size definitions, similar to ones in /usr/share/texmf-texlive/tex/latex/base/
+\renewcommand\normalsize{%
+ \@setfontsize\normalsize{26pt}{31pt}%
+ \abovedisplayskip 14\p@ \@plus6\p@ \@minus14\p@
+ \abovedisplayshortskip \z@ \@plus6\p@
+ \belowdisplayshortskip 13\p@ \@plus7\p@ \@minus6\p@
+ \belowdisplayskip \abovedisplayskip
+ \let\@listi\@listI}\normalsize%
+ \setlength{\parindent}{1.5em}%
+\renewcommand\footnotesize{%
+ \@setfontsize\footnotesize{15pt}{20pt}
+ \abovedisplayskip 20\p@ \@plus4\p@ \@minus10\p@
+ \abovedisplayshortskip \z@ \@plus6\p@
+ \belowdisplayshortskip 12\p@ \@plus6\p@ \@minus6\p@
+ \def\@listi{\leftmargin\leftmargini
+ \topsep 12\p@ \@plus4\p@ \@minus4\p@
+ \parsep 6\p@ \@plus4\p@ \@minus\p@
+ \itemsep \parsep}%
+ \belowdisplayskip \abovedisplayskip
+}%
+\renewcommand\LARGE{\@setfontsize\LARGE{41pt}{50pt}}%
+\renewcommand\huge{\@setfontsize\huge{49pt}{60pt}}%
+}%
+}
+
+% not supported on texlive version on jessie, and has weird side effects in some readers
+%% \XeTeXgenerateactualtext=1
+