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 | |
| 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')
| -rw-r--r-- | test/lhs-test.latex | 7 | ||||
| -rw-r--r-- | test/lhs-test.latex+lhs | 7 | ||||
| -rw-r--r-- | test/writer.latex | 7 | ||||
| -rw-r--r-- | test/writers-lang-and-dir.latex | 7 |
4 files changed, 20 insertions, 8 deletions
diff --git a/test/lhs-test.latex b/test/lhs-test.latex index 435d1dfef..d496399b4 100644 --- a/test/lhs-test.latex +++ b/test/lhs-test.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 diff --git a/test/lhs-test.latex+lhs b/test/lhs-test.latex+lhs index 6c11e99bd..e12f253f3 100644 --- a/test/lhs-test.latex+lhs +++ b/test/lhs-test.latex+lhs @@ -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 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 diff --git a/test/writers-lang-and-dir.latex b/test/writers-lang-and-dir.latex index d4d3feb68..0966a8312 100644 --- a/test/writers-lang-and-dir.latex +++ b/test/writers-lang-and-dir.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 |
