mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
use inputenc latex template variable always
This commit is contained in:
parent
be8034e131
commit
e49132d3e4
@ -1768,7 +1768,7 @@ These options influence LaTeX output. See further :doc:`latex`.
|
|||||||
``'inputenc'``
|
``'inputenc'``
|
||||||
"inputenc" package inclusion, defaults to
|
"inputenc" package inclusion, defaults to
|
||||||
``'\\usepackage[utf8]{inputenc}'`` when using pdflatex.
|
``'\\usepackage[utf8]{inputenc}'`` when using pdflatex.
|
||||||
Otherwise unset.
|
Otherwise empty.
|
||||||
|
|
||||||
.. versionchanged:: 1.4.3
|
.. versionchanged:: 1.4.3
|
||||||
Previously ``'\\usepackage[utf8]{inputenc}'`` was used for all
|
Previously ``'\\usepackage[utf8]{inputenc}'`` was used for all
|
||||||
|
@ -15,9 +15,7 @@
|
|||||||
\fi \sphinxpxdimen=<%= pxunit %>\relax
|
\fi \sphinxpxdimen=<%= pxunit %>\relax
|
||||||
<%= passoptionstopackages %>
|
<%= passoptionstopackages %>
|
||||||
<%= geometry %>
|
<%= geometry %>
|
||||||
<% if latex_engine == 'pdflatex' -%>
|
|
||||||
<%= inputenc %>
|
<%= inputenc %>
|
||||||
<% endif -%>
|
|
||||||
<%= utf8extra %>
|
<%= utf8extra %>
|
||||||
<%= cmappkg %>
|
<%= cmappkg %>
|
||||||
<%= fontenc %>
|
<%= fontenc %>
|
||||||
|
@ -102,7 +102,9 @@ DEFAULT_SETTINGS = {
|
|||||||
ADDITIONAL_SETTINGS = {
|
ADDITIONAL_SETTINGS = {
|
||||||
'pdflatex': {
|
'pdflatex': {
|
||||||
'inputenc': '\\usepackage[utf8]{inputenc}',
|
'inputenc': '\\usepackage[utf8]{inputenc}',
|
||||||
'utf8extra': '\\DeclareUnicodeCharacter{00A0}{\\nobreakspace}',
|
'utf8extra': ('\\ifdefined\\DeclareUnicodeCharacter\n'
|
||||||
|
' \\DeclareUnicodeCharacter{00A0}{\\nobreakspace}\n'
|
||||||
|
'\\fi'),
|
||||||
},
|
},
|
||||||
'xelatex': {
|
'xelatex': {
|
||||||
'latex_engine': 'xelatex',
|
'latex_engine': 'xelatex',
|
||||||
|
Loading…
Reference in New Issue
Block a user