Mercurial > hgrepos > Python > libs > pygments-lexer-pseudocode2
comparison docs/conf.py @ 181:dcbc66f851eb
A style file for (Lua)LaTeX that loads the required fonts.
Also defined character substitutions for characters that are not in the
wished font.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Tue, 12 May 2026 14:58:14 +0200 |
| parents | 34c6b714c8cd |
| children | b0426a788cf5 |
comparison
equal
deleted
inserted
replaced
| 180:63b52570795f | 181:dcbc66f851eb |
|---|---|
| 132 # https://www.sphinx-doc.org/en/master/latex.html | 132 # https://www.sphinx-doc.org/en/master/latex.html |
| 133 latex_engine = 'lualatex' | 133 latex_engine = 'lualatex' |
| 134 latex_elements = { | 134 latex_elements = { |
| 135 "papersize": "a4paper", | 135 "papersize": "a4paper", |
| 136 "babel": r"\usepackage{babel}", | 136 "babel": r"\usepackage{babel}", |
| 137 "fontpkg": r""" | 137 "fontpkg": r"\usepackage[plexmono]{my-doc-fonts}", |
| 138 \usepackage[DefaultFeatures={Scale=0.92},mono=false]{plex-otf} | |
| 139 \usepackage[mono=true,serif=false,sans=false,math=false]{dejavu-otf} % all symbols are available | |
| 140 """, | |
| 141 "releasename": "Version", | 138 "releasename": "Version", |
| 142 } | 139 } |
| 143 latex_theme = "manual" | 140 latex_theme = "manual" |
| 144 latex_show_urls = "footnote" | 141 latex_show_urls = "footnote" |
| 145 latex_show_pagerefs = True | 142 latex_show_pagerefs = True |
| 146 latex_domain_indices = False | 143 latex_domain_indices = False |
| 147 latex_documents = [ | 144 latex_documents = [ |
| 148 ("index-latex", "PygmentsPseudocodeLexer.tex", "The Pygments Pseudocode Lexer", "Franz Glasner", "manual", True), | 145 ("index-latex", "PygmentsPseudocodeLexer.tex", "The Pygments Pseudocode Lexer", "Franz Glasner", "manual", True), |
| 149 ] | 146 ] |
| 150 | 147 latex_additional_files = [ |
| 148 "_latex/my-doc-fonts.sty" | |
| 149 ] | |
| 151 | 150 |
| 152 def setup(app): | 151 def setup(app): |
| 153 # | 152 # |
| 154 # Custom release_date and commit id variables with a custom substitution | 153 # Custom release_date and commit id variables with a custom substitution |
| 155 # |release_date| and |release_rev|'. | 154 # |release_date| and |release_rev|'. |
