Skip to content

Commit

Permalink
DOC/LaTeX: use lualatex/fontspec for selecting fonts (#711)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgeier authored Feb 25, 2023
1 parent c3a08f6 commit cd4009d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
name: Building PDF
command: |
cd build/sphinx/latex
latexmk -pdf
latexmk -pdflua
- store_artifacts:
name: Uploading PDF file
Expand Down
37 changes: 20 additions & 17 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,27 +140,30 @@
'papersize': 'a4paper',
'printindex': '',
'sphinxsetup': r"""
%verbatimwithframe=false,
%verbatimwrapslines=false,
%verbatimhintsturnover=false,
noteBorderColor={HTML}{E0E0E0},
noteborder=1.5pt,
warningBorderColor={HTML}{E0E0E0},
warningborder=1.5pt,
warningBgColor={HTML}{FBFBFB},
""",
'preamble': r"""
\usepackage[sc,osf]{mathpazo}
HeaderFamily=\rmfamily\bfseries,
%verbatimwithframe=false,
%verbatimwrapslines=false,
%verbatimhintsturnover=false,
noteBorderColor={HTML}{E0E0E0},
noteborder=1.5pt,
warningBorderColor={HTML}{E0E0E0},
warningborder=1.5pt,
warningBgColor={HTML}{FBFBFB},
""",
'fontpkg': r"""
\usepackage{mathpazo}
\linespread{1.05} % see http://www.tug.dk/FontCatalogue/urwpalladio/
\renewcommand{\sfdefault}{pplj} % Palatino instead of sans serif
\IfFileExists{zlmtt.sty}{
\usepackage[light,scaled=1.05]{zlmtt} % light typewriter font from lmodern
}{
\renewcommand{\ttdefault}{lmtt} % typewriter font from lmodern
}
\setmainfont{TeX Gyre Pagella}[Numbers=OldStyle]
\setmonofont{Latin Modern Mono Light}[Numbers=Lining]
""",
'preamble': r"""
\urlstyle{tt}
""",
}

latex_engine = 'lualatex'
latex_use_xindy = False

latex_table_style = ['booktabs']

latex_documents = [
Expand Down

0 comments on commit cd4009d

Please sign in to comment.