mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix TeX coding bug in latex writer (closes #3575)
This commit is contained in:
parent
a0a0e6cab0
commit
aa03441ee9
2
CHANGES
2
CHANGES
@ -32,6 +32,8 @@ Bugs fixed
|
||||
* #2665, #2607: Link names in C++ docfields, and make it possible for other domains.
|
||||
* #3542: C++, fix parsing error of non-type template argument with template.
|
||||
* #3065, #3520: python domain fails to recognize nested class
|
||||
* #3575: Problems with pdflatex in a Turkish document built with sphinx has
|
||||
reappeared (refs #2997, #2397)
|
||||
|
||||
Testing
|
||||
--------
|
||||
|
@ -174,9 +174,10 @@ class ExtBabel(Babel):
|
||||
if shortlang in ('de', 'ngerman', 'sl', 'slovene', 'pt', 'portuges',
|
||||
'es', 'spanish', 'nl', 'dutch', 'pl', 'polish', 'it',
|
||||
'italian'):
|
||||
return '\\if\\catcode`\\"\\active\\shorthandoff{"}\\fi'
|
||||
return '\\ifnum\\catcode`\\"=\\active\\shorthandoff{"}\\fi'
|
||||
elif shortlang in ('tr', 'turkish'):
|
||||
return '\\if\\catcode`\\=\\active\\shorthandoff{=}\\fi'
|
||||
# memo: if ever Sphinx starts supporting 'Latin', do as for Turkish
|
||||
return '\\ifnum\\catcode`\\=\\string=\\active\\shorthandoff{=}\\fi'
|
||||
return ''
|
||||
|
||||
def uses_cyrillic(self):
|
||||
|
Loading…
Reference in New Issue
Block a user