Skip to content

Commit b90482f

Browse files
authored
LaTeX: fix docs for 'babel' key of latex_elements (#12411)
This fixes the documentation which was faulty since v1.7.6, but #12410 is left open until a decision is taken.
1 parent f0dc823 commit b90482f

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

doc/latex.rst

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,18 @@ Keys that you may want to override include:
158158
``'lualatex'`` uses same default setting as ``'xelatex'``
159159

160160
.. versionchanged:: 1.7.6
161-
For French, ``xelatex`` and ``lualatex`` default to using
162-
``babel``, not ``polyglossia``.
161+
For French with ``xelatex`` (not ``lualatex``) the default is to use
162+
``babel``, not ``polyglossia``. To let ``lualatex`` use ``babel``,
163+
use this:
164+
165+
.. code-block:: python
166+
167+
latex_elements = {
168+
'polyglossia': '',
169+
'babel': r'\usepackage{babel}',
170+
}
171+
172+
in file :file:`conf.py`.
163173

164174
``'fontpkg'``
165175
Font package inclusion. The default is::

0 commit comments

Comments
 (0)