Merge pull request #5790 from jfbu/latex_turnoff_lualatex_ligatures

Latex turnoff lualatex ligatures
This commit is contained in:
Jean-François B 2018-12-16 11:00:26 +01:00 committed by GitHub
commit 6395c7d242
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 2 deletions

View File

@ -112,6 +112,8 @@ Bugs fixed
* #5248: LaTeX: Greek letters in section titles disappear from PDF bookmarks
* #5772: LaTeX: should the Bjarne style of fncychap be used for English also
if passed as language option?
* #5179: LaTex: (lualatex only) escaping of ``>`` by ``\textgreater{}`` is not
enough, ``\textgreater{}\textgreater{}`` applies TeX-ligature
Testing
--------

View File

@ -2199,7 +2199,11 @@ information.
Defaults to ``'\\usepackage{fontspec}'`` when
:confval:`latex_engine` is ``'xelatex'``.
.. versionchanged:: 1.6
``'lualatex'`` also uses ``fontspec`` per default.
``'lualatex'`` uses ``fontspec`` per default like ``'xelatex'``.
.. versionchanged:: 2.0
``'lualatex'`` executes
``\defaultfontfeatures[\rmfamily,\sffamily]{}`` to disable TeX
ligatures.
.. versionchanged:: 2.0
Detection of ``LGR``, ``T2A``, ``X2`` to trigger support of
occasional Greek or Cyrillic (``'pdflatex'`` only, as this support

View File

@ -206,7 +206,8 @@ ADDITIONAL_SETTINGS = {
'latex_engine': 'lualatex',
'polyglossia': '\\usepackage{polyglossia}',
'babel': '',
'fontenc': '\\usepackage{fontspec}',
'fontenc': ('\\usepackage{fontspec}\n'
'\\defaultfontfeatures[\\rmfamily,\\sffamily]{}'),
'fontpkg': LUALATEX_DEFAULT_FONTPKG,
'textgreek': '',
'utf8extra': ('\\catcode`^^^^00a0\\active\\protected\\def^^^^00a0'