Mercurial > hgrepos > Python > libs > ConfigMix
comparison docs/conf.py @ 771:741ebfe77e55
Build the PDF documentation with lualatex now.
Using OTF/TTF fonts mostly.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Wed, 13 May 2026 18:34:29 +0200 |
| parents | 1f076d7c721d |
| children | 4c44b64e32cd |
comparison
equal
deleted
inserted
replaced
| 770:1f076d7c721d | 771:741ebfe77e55 |
|---|---|
| 130 htmlhelp_basename = 'ConfigMixdoc' | 130 htmlhelp_basename = 'ConfigMixdoc' |
| 131 | 131 |
| 132 | 132 |
| 133 # -- Options for LaTeX output ------------------------------------------------ | 133 # -- Options for LaTeX output ------------------------------------------------ |
| 134 | 134 |
| 135 latex_engine = 'lualatex' | |
| 135 latex_elements = { | 136 latex_elements = { |
| 136 # The paper size ('letterpaper' or 'a4paper'). | 137 # The paper size ('letterpaper' or 'a4paper'). |
| 137 # | 138 # |
| 138 'papersize': 'a4paper', | 139 'papersize': 'a4paper', |
| 139 | 140 |
| 140 # The font size ('10pt', '11pt' or '12pt'). | 141 # The font size ('10pt', '11pt' or '12pt'). |
| 141 # | 142 # |
| 142 'pointsize': '11pt', | 143 'pointsize': '11pt', |
| 143 | 144 |
| 144 # Additional stuff for the LaTeX preamble. | 145 'babel': r'\usepackage{babel}', |
| 145 # | 146 'fontpkg': r'\usepackage[charter]{my-doc-fonts}', |
| 146 # NOTE: "inconsolata" in "fontpkg" errors within pdfTeX: seems to be | |
| 147 # incompatible with some header package. | |
| 148 # | |
| 149 'preamble': r''' | |
| 150 \usepackage{inconsolata} | |
| 151 ''', | |
| 152 | |
| 153 'fontpkg': r''' | |
| 154 \usepackage{charter} | |
| 155 \usepackage[defaultsans]{lato} | |
| 156 ''', | |
| 157 | 147 |
| 158 # Latex figure (float) alignment | 148 # Latex figure (float) alignment |
| 159 # | 149 # |
| 160 # 'figure_align': 'htbp', | 150 # 'figure_align': 'htbp', |
| 161 # Use "Version" instead of "Release" on the title | 151 # Use "Version" instead of "Release" on the title |
| 162 'releasename': 'Version', | 152 'releasename': 'Version', |
| 153 | |
| 154 'fncychap': r'\usepackage[Sonny]{fncychap}', | |
| 163 } | 155 } |
| 156 latex_additional_files = [ | |
| 157 "_latex/my-doc-fonts.sty", | |
| 158 ] | |
| 164 | 159 |
| 165 # Grouping the document tree into LaTeX files. List of tuples | 160 # Grouping the document tree into LaTeX files. List of tuples |
| 166 # (source start file, target name, title, | 161 # (source start file, target name, title, |
| 167 # author, documentclass [howto, manual, or own class]). | 162 # author, documentclass [howto, manual, or own class]). |
| 168 latex_documents = [ | 163 latex_documents = [ |
