From a1912cf00439fa1c221e2df045e5109fcd0dd8b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20Novotn=C3=BD?= <witiko@gmail.com> Date: Tue, 10 Nov 2015 16:19:26 +0100 Subject: [PATCH] Added the opt-out `microtype` class option, which loads the microtypographic extension. --- fibeamer/fibeamer.dtx | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/fibeamer/fibeamer.dtx b/fibeamer/fibeamer.dtx index 7bfb90e..6ad1ac9 100644 --- a/fibeamer/fibeamer.dtx +++ b/fibeamer/fibeamer.dtx @@ -100,6 +100,25 @@ % \begin{macrocode} \DeclareOptionBeamer{nofonts}{\fibeamer@fontsfalse} % \end{macrocode} +% \subsection{The \texttt{microtype} option} +% \begin{macro}{\iffibeamer@microtype} +% The |microtype| option instructs the package to use the +% microtypographic extensions of modern \TeX\ engines, such as +% \hologo{pdfTeX}, \Hologo{LuaTeX}, and (partially) +% \Hologo{XeLaTeX}. This option is enabled by default. +% \begin{macrocode} +\newif\iffibeamer@microtype +\DeclareOptionBeamer{microtype}{\fibeamer@microtypetrue} +\ExecuteOptionsBeamer{microtype} +% \end{macrocode} +% \end{macro} +% \subsection{The \texttt{nomicrotype} option} +% The |nomicrotype| option disables the microtypographic +% extensions. This may be necessary, if an older \TeX\ engine, +% such as \hologo{TeX} or \hologo{eTeX}, is being used. +% \begin{macrocode} +\DeclareOptionBeamer{nomicrotype}{\fibeamer@microtypefalse} +% \end{macrocode} % \begin{macro}{\fibeamer@university} % \subsection{The \texttt{university} option} % The \marg{\texttt{university}=identifier} option pair sets the @@ -300,6 +319,14 @@ % \begin{macrocode} \ProcessOptionsBeamer % \end{macrocode} +% When the |microtype| option is specified, the \textsf{microtype} +% package gets loaded. +% \begin{macrocode} + % Set up the microtypographic extensions + \iffibeamer@microtype + \RequirePackage{microtype} + \fi +% \end{macrocode} % When the |fonts| option is specified, the following packages will % be used by the package to configure the fonts in the presentation % mode: -- GitLab