Mercurial > hgrepos > Python > libs > ConfigMix
diff 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 |
line wrap: on
line diff
--- a/docs/conf.py Wed May 13 18:17:44 2026 +0200 +++ b/docs/conf.py Wed May 13 18:34:29 2026 +0200 @@ -132,6 +132,7 @@ # -- Options for LaTeX output ------------------------------------------------ +latex_engine = 'lualatex' latex_elements = { # The paper size ('letterpaper' or 'a4paper'). # @@ -141,26 +142,20 @@ # 'pointsize': '11pt', - # Additional stuff for the LaTeX preamble. - # - # NOTE: "inconsolata" in "fontpkg" errors within pdfTeX: seems to be - # incompatible with some header package. - # - 'preamble': r''' - \usepackage{inconsolata} - ''', - - 'fontpkg': r''' - \usepackage{charter} - \usepackage[defaultsans]{lato} - ''', + 'babel': r'\usepackage{babel}', + 'fontpkg': r'\usepackage[charter]{my-doc-fonts}', # Latex figure (float) alignment # # 'figure_align': 'htbp', # Use "Version" instead of "Release" on the title 'releasename': 'Version', + + 'fncychap': r'\usepackage[Sonny]{fncychap}', } +latex_additional_files = [ + "_latex/my-doc-fonts.sty", +] # Grouping the document tree into LaTeX files. List of tuples # (source start file, target name, title,
