This commit is contained in:
Gabor Kiss-Vamosi
2021-05-07 21:23:22 +02:00
4 changed files with 15 additions and 6 deletions

View File

@@ -60,7 +60,7 @@ cmd("cd ../scripts && doxygen Doxyfile")
cmd("sphinx-build -b latex . out_latex")
# Generate PDF
cmd("cd out_latex && xelatex -interaction=batchmode *.tex")
cmd("cd out_latex && latexmk -pdf 'LVGL.tex'")
# Copy the result PDF to the main directory to make it avaiable for the HTML build
cmd("cd out_latex && cp -f LVGL.pdf ../LVGL.pdf")

View File

@@ -146,6 +146,8 @@ html_last_updated_fmt = ''
# -- Options for LaTeX output ---------------------------------------------
latex_engine = 'xelatex'
latex_use_xindy = False
latex_elements = {
# The paper size ('letterpaper' or 'a4paper').
#
@@ -166,6 +168,10 @@ latex_elements = {
'inputenc': '',
'utf8extra': '',
'classoptions': ',openany,oneside',
'babel': '\\usepackage{babel}',
'passoptionstopackages': r'''
\PassOptionsToPackage{bookmarksdepth=5}{hyperref}% depth of pdf bookmarks
''',
'preamble': r'''
\usepackage{fontspec}
\setmonofont{DejaVu Sans Mono}