From e562218c616dfd5bea4178e3a0a461d98c25498b Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Fri, 4 Dec 2015 08:57:04 +0100 Subject: [PATCH] Mention the workaround of #109 in the manual --- doc/metropolistheme.dtx | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/doc/metropolistheme.dtx b/doc/metropolistheme.dtx index 2aed3b0..c805047 100644 --- a/doc/metropolistheme.dtx +++ b/doc/metropolistheme.dtx @@ -400,16 +400,32 @@ of \themename specific colors, which can also be redefined to your liking. \subsection{Font Customization} -The default font for \themename{} is |Fira|. Yet this can be easily changed using -the standard font selection commands of the |fontspec| package. So if you for -example prefer the \href{http://font.ubuntu.com}{|Ubuntu|} font family just add -the following two commands after loading the \themename{} theme. +The default font for \themename{} is |Fira|. Yet this can be easily changed +using the standard font selection commands of the \textsf{fontspec} package. So +if you for example prefer the \href{http://font.ubuntu.com}{|Ubuntu|} font +family just add the following two commands after loading the \themename{} theme. \begin{lstlisting} \setsansfont{Ubuntu} \setmonofont{Ubuntu Mono} \end{lstlisting} + +\subsubsection{Old style figures} + +The regular \textsf{fontspec} mechanism for changing glyph appearance applies +also to this theme. In case you want to have old style figures in the text but +regular lined figures for math, you have to add the following to your preamble: + +\begin{lstlisting} +\usefonttheme{professionalfonts} % required for mathspec +\usepackage{mathspec} +\setsansfont[BoldFont={Fira Sans}, + Numbers={OldStyle}]{Fira Sans Light} +\setmathsfont(Digits)[Numbers={Lining, Proportional}]{Fira Sans Light} +\end{lstlisting} + + \subsection{Commands} The \lstinline|\plain{title=[]}{}| command sets a slide in plain dark colors which