Skip to content

Commit

Permalink
fix(latex): add some configs to work around FreeSerif font locations
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjayankur31 committed Jan 14, 2025
1 parent dd7b102 commit 13571ea
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions source/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,23 @@ sphinx:
% make phantomsection empty inside figures
\usepackage{etoolbox}
\AtBeginEnvironment{figure}{\pretocmd{\hyperlink}{\protect}{}{}}
fontpkg: |
% https://github.com/sphinx-doc/sphinx/issues/10347#issuecomment-1647984313
\setmainfont{FreeSerif}[
UprightFont = *,
ItalicFont = *Italic,
BoldFont = *Bold,
BoldItalicFont = *BoldItalic
]
\setsansfont{FreeSans}[
UprightFont = *,
ItalicFont = *Oblique,
BoldFont = *Bold,
BoldItalicFont = *BoldOblique,
]
\setmonofont{FreeMono}[
UprightFont = *,
ItalicFont = *Oblique,
BoldFont = *Bold,
BoldItalicFont = *BoldOblique,
]

0 comments on commit 13571ea

Please sign in to comment.