Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
quarto-dev
GitHub Repository: quarto-dev/quarto-cli
Path: blob/main/src/resources/formats/pdf/pandoc/fonts.latex
12923 views
1
\usepackage{iftex}
2
\ifPDFTeX
3
\usepackage[$if(fontenc)$$fontenc$$else$T1$endif$]{fontenc}
4
\usepackage[utf8]{inputenc}
5
\usepackage{textcomp} % provide euro and other symbols
6
\else % if luatex or xetex
7
$if(mathspec)$
8
\ifXeTeX
9
\usepackage{mathspec} % this also loads fontspec
10
\else
11
\usepackage{unicode-math} % this also loads fontspec
12
\fi
13
$else$
14
\usepackage{unicode-math} % this also loads fontspec
15
$endif$
16
\defaultfontfeatures{Scale=MatchLowercase}$-- must come before Beamer theme
17
\defaultfontfeatures[\rmfamily]{Ligatures=TeX,Scale=1}
18
\fi
19
$if(fontfamily)$
20
$else$
21
$-- Set default font before Beamer theme so the theme can override it
22
\usepackage{lmodern}
23
$endif$
24
25