Skip to content

Commit

Permalink
font: fix bug with missing unicode characters in latex
Browse files Browse the repository at this point in the history
Some box charactes in the monospaced font were not available during pdf
generation with latex. Switching from lmodern to DejaVu for monospaced
font fixes these issues. Scaling down the size of the DejaVu font a
little matches it with lmodern.

Signed-off-by: Jonas Remmert <[email protected]>
  • Loading branch information
jonas-rem committed Apr 5, 2024
1 parent 949e377 commit 80e6505
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,11 @@
latex_engine = 'xelatex'

latex_elements = {
'fontpkg': '\\usepackage{lmodern}'
'fontpkg': '\\usepackage{lmodern}',
'preamble': '''
\\usepackage{fontspec}
\\setmonofont{DejaVu Sans Mono}[Scale=0.8]
''',
}

latex_documents = [
Expand Down

0 comments on commit 80e6505

Please sign in to comment.