sphinx/conf/latex
This commit is contained in:
parent
e9a136f878
commit
01ec2086b2
1 changed files with 28 additions and 7 deletions
|
@ -1,13 +1,34 @@
|
|||
***********************
|
||||
Configure documentation
|
||||
***********************
|
||||
=======================
|
||||
|
||||
MarkDown
|
||||
========
|
||||
--------
|
||||
|
||||
.. code:: python3
|
||||
|
||||
source_parsers = {
|
||||
'.md': 'recommonmark.parser.CommonMarkParser',
|
||||
}
|
||||
source_suffix = ['.rst', '.md']
|
||||
source_parsers = {
|
||||
'.md': 'recommonmark.parser.CommonMarkParser',
|
||||
}
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue