mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
polyglossia honors `\addto\captions<language>
` like babel
This commit is contained in:
parent
5663f750fe
commit
8e1db118c0
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user