sphinx/conf/latex

This commit is contained in:
Marc Beninca 2019-08-25 19:31:15 +02:00
parent e9a136f878
commit 01ec2086b2

View file

@ -1,13 +1,34 @@
***********************
Configure documentation Configure documentation
*********************** =======================
MarkDown MarkDown
======== --------
.. code:: python3 .. code:: python3
source_parsers = { source_parsers = {
'.md': 'recommonmark.parser.CommonMarkParser', '.md': 'recommonmark.parser.CommonMarkParser',
} }
source_suffix = ['.rst', '.md'] source_suffix = ['.rst', '.md']
LaTeX
-----
.. code:: python3
latex_elements = {
'fontenc': r'\usepackage{fontspec}',
'fontpkg': r'''
\setmainfont{DejaVu Serif}
\setsansfont{DejaVu Sans}
\setmonofont{DejaVu Sans Mono}
''',
'papersize': 'a4paper',
'pointsize': '12pt',
}
latex_documents = [
(master_doc, 'FileName.tex', 'Title',
'Author', 'howto/manual'),
]
latex_use_parts = False
latex_keep_old_macro_names = False