diff options
| author | Jeremie Knuesel <[email protected]> | 2022-09-23 18:00:38 +0200 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2022-10-06 10:14:38 -0700 |
| commit | 644c9841696263bcb8118538fa0f3fae9e5e89fb (patch) | |
| tree | 886e36eea3693c84cd95d848ef0d0625c42c505f /test/writer.latex | |
| parent | afbf732a830074cb01804d9808cc8334a1572c8e (diff) | |
latex template: set fonts after Beamer theme
Beamer themes such as metropolis and saintpetersburg change the default
fonts. This change gives precedence to the user font settings by moving
them after the loading of the Beamer theme.
Diffstat (limited to 'test/writer.latex')
| -rw-r--r-- | test/writer.latex | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/writer.latex b/test/writer.latex index 0b47a069e..3d0cf9851 100644 --- a/test/writer.latex +++ b/test/writer.latex @@ -5,17 +5,20 @@ \documentclass[ ]{article} \usepackage{amsmath,amssymb} -\usepackage{lmodern} \usepackage{iftex} \ifPDFTeX \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{textcomp} % provide euro and other symbols \else % if luatex or xetex - \usepackage{unicode-math} + \usepackage{unicode-math} % this also loads fontspec \defaultfontfeatures{Scale=MatchLowercase} \defaultfontfeatures[\rmfamily]{Ligatures=TeX,Scale=1} \fi +\usepackage{lmodern} +\ifPDFTeX\else + % xetex/luatex font selection +\fi % Use upquote if available, for straight quotes in verbatim environments \IfFileExists{upquote.sty}{\usepackage{upquote}}{} \IfFileExists{microtype.sty}{% use microtype if available |
