mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
LaTeX: Disable specific UTF-8 support commands for XeTeX and LuaTeX
XeTeX and LuaTeX have builtin UTF-8 support.
This commit is contained in:
parent
00b909f9b6
commit
83da5df505
@ -249,7 +249,9 @@ class LaTeXTranslator(nodes.NodeVisitor):
|
|||||||
'classoptions': '',
|
'classoptions': '',
|
||||||
'extraclassoptions': '',
|
'extraclassoptions': '',
|
||||||
'inputenc': '\\usepackage[utf8]{inputenc}',
|
'inputenc': '\\usepackage[utf8]{inputenc}',
|
||||||
'utf8extra': '\\DeclareUnicodeCharacter{00A0}{\\nobreakspace}',
|
'utf8extra': ('\\ifdefined\\DeclareUnicodeCharacter\n'
|
||||||
|
' \\DeclareUnicodeCharacter{00A0}{\\nobreakspace}\n'
|
||||||
|
'\\else\\fi'),
|
||||||
'cmappkg': '\\usepackage{cmap}',
|
'cmappkg': '\\usepackage{cmap}',
|
||||||
'fontenc': '\\usepackage[T1]{fontenc}',
|
'fontenc': '\\usepackage[T1]{fontenc}',
|
||||||
'babel': '\\usepackage{babel}',
|
'babel': '\\usepackage{babel}',
|
||||||
|
Loading…
Reference in New Issue
Block a user