Improve latex docs about fonts

This commit is contained in:
jfbu 2018-03-30 10:30:05 +02:00
parent 2e74ab0baf
commit 98e73ecf77

View File

@ -1804,8 +1804,17 @@ These options influence LaTeX output. See further :doc:`latex`.
``'lualatex'`` uses same default setting as ``'xelatex'`` ``'lualatex'`` uses same default setting as ``'xelatex'``
``'fontpkg'`` ``'fontpkg'``
Font package inclusion, default ``'\\usepackage{times}'`` (which uses Font package inclusion, default ``'\\usepackage{times}'`` (which uses
Times and Helvetica). You can set this to ``''`` to use the Computer Times for text, Helvetica for sans serif and Courier for code-blocks).
Modern fonts.
.. hint::
Courier is much wider than Times, and Sphinx emits LaTeX command
``\small`` in code-blocks to compensate. Since ``1.5`` this is not
hard-coded anymore, and can be modified via inclusion in
``'preamble'`` key of ``\\fvset{fontsize=auto}``. This is
recommended if the fonts match better than Times and Courier. At
``1.8`` a separate ``'fvset'`` key will permit such customization
without usage of ``'preamble'`` key.
.. versionchanged:: 1.2 .. versionchanged:: 1.2
Defaults to ``''`` when the :confval:`language` uses the Cyrillic Defaults to ``''`` when the :confval:`language` uses the Cyrillic