polyglossia honors `\addto\captions<language>` like babel

This commit is contained in:
jfbu 2016-11-17 10:01:46 +01:00
parent 5663f750fe
commit 8e1db118c0

View File

@ -590,7 +590,7 @@ class LaTeXTranslator(nodes.NodeVisitor):
return self.idescape(ref).replace('-', '\\string-')
def babel_renewcommand(self, command, definition):
if self.elements['babel']:
if self.elements['multilingual']:
prefix = '\\addto\\captions%s{' % self.babel.get_language()
suffix = '}'
else: # babel is disabled (mainly for Japanese environment)