Fix TeX coding bug in latex writer (closes #3575)

This commit is contained in:
jfbu 2017-03-21 13:18:45 +01:00
parent a0a0e6cab0
commit aa03441ee9
2 changed files with 5 additions and 2 deletions

View File

@ -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
--------

View File

@ -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):