Skip to content

Commit

Permalink
LaTeX: fix docs for 'babel' key of latex_elements (relates #1…
Browse files Browse the repository at this point in the history
…2410)

This fixes the documentation which was faulty since v1.7.6, but #12410 is left open until a decision is taken.
  • Loading branch information
jfbu committed Jun 5, 2024
1 parent f0dc823 commit 6bea471
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions doc/latex.rst
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,18 @@ Keys that you may want to override include:
``'lualatex'`` uses same default setting as ``'xelatex'``

.. versionchanged:: 1.7.6
For French, ``xelatex`` and ``lualatex`` default to using
``babel``, not ``polyglossia``.
For French with ``xelatex`` (not ``lualatex``) the default is to use
``babel``, not ``polyglossia``. To let ``lualatex`` use ``babel``,
use this:

.. code-block:: python
latex_elements = {
'polyglossia': '',
'babel': r'\usepackage{babel}',
}
in file :file:`conf.py`.

``'fontpkg'``
Font package inclusion. The default is::
Expand Down

0 comments on commit 6bea471

Please sign in to comment.