mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-06-30 02:21:34 +00:00
doc: fix Latex margins
Adjust the Latex formatting to match Linux v5.13.1: * add Latex margins * reformat the code in doc/conf.py to match Linux Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
parent
b2a1d6b2c4
commit
00e80da9f5
1 changed files with 19 additions and 12 deletions
31
doc/conf.py
31
doc/conf.py
|
@ -338,27 +338,34 @@ htmlhelp_basename = 'TheUBootdoc'
|
||||||
# -- Options for LaTeX output ---------------------------------------------
|
# -- Options for LaTeX output ---------------------------------------------
|
||||||
|
|
||||||
latex_elements = {
|
latex_elements = {
|
||||||
# The paper size ('letterpaper' or 'a4paper').
|
# The paper size ('letterpaper' or 'a4paper').
|
||||||
'papersize': 'a4paper',
|
'papersize': 'a4paper',
|
||||||
|
|
||||||
# The font size ('10pt', '11pt' or '12pt').
|
# The font size ('10pt', '11pt' or '12pt').
|
||||||
'pointsize': '11pt',
|
'pointsize': '11pt',
|
||||||
|
|
||||||
# Latex figure (float) alignment
|
# Latex figure (float) alignment
|
||||||
#'figure_align': 'htbp',
|
#'figure_align': 'htbp',
|
||||||
|
|
||||||
# Don't mangle with UTF-8 chars
|
# Don't mangle with UTF-8 chars
|
||||||
'inputenc': '',
|
'inputenc': '',
|
||||||
'utf8extra': '',
|
'utf8extra': '',
|
||||||
|
|
||||||
# Additional stuff for the LaTeX preamble.
|
# Set document margins
|
||||||
|
'sphinxsetup': '''
|
||||||
|
hmargin=0.5in, vmargin=1in,
|
||||||
|
parsedliteralwraps=true,
|
||||||
|
verbatimhintsturnover=false,
|
||||||
|
''',
|
||||||
|
|
||||||
|
# Additional stuff for the LaTeX preamble.
|
||||||
'preamble': '''
|
'preamble': '''
|
||||||
% Use some font with UTF-8 support with XeLaTeX
|
% Use some font with UTF-8 support with XeLaTeX
|
||||||
\\usepackage{fontspec}
|
\\usepackage{fontspec}
|
||||||
\\setsansfont{DejaVu Sans}
|
\\setsansfont{DejaVu Sans}
|
||||||
\\setromanfont{DejaVu Serif}
|
\\setromanfont{DejaVu Serif}
|
||||||
\\setmonofont{DejaVu Sans Mono}
|
\\setmonofont{DejaVu Sans Mono}
|
||||||
'''
|
''',
|
||||||
}
|
}
|
||||||
|
|
||||||
# At least one book (translations) may have Asian characters
|
# At least one book (translations) may have Asian characters
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue