From 308d3aee89046d1dc893a04d3cd6f97d4a1454f9 Mon Sep 17 00:00:00 2001 From: jfbu Date: Thu, 17 Nov 2016 10:12:53 +0100 Subject: [PATCH] make shorthandoff extra safe also for turkish (perhaps xelatex+babel+turkish may not use active ``=`` either now or in future) --- sphinx/writers/latex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphinx/writers/latex.py b/sphinx/writers/latex.py index 8d3eef097..454c30e9c 100644 --- a/sphinx/writers/latex.py +++ b/sphinx/writers/latex.py @@ -175,7 +175,7 @@ class ExtBabel(Babel): 'italian'): return '\\if\\catcode`\\"\\active\\shorthandoff{"}\\fi' elif shortlang in ('tr', 'turkish'): - return '\\shorthandoff{=}' + return '\\if\\catcode`\\=\\active\\shorthandoff{=}\\fi' return '' def uses_cyrillic(self):