Commits

lyhcode committed 4b4da24

add latex_contentsname

Comments (1)

Files changed (1)

sphinx/writers/latex.py

 \begin{document}
 %(shorthandoff)s
 %(maketitle)s
+\renewcommand{\contentsname}{%(contentsname)s}
 %(tableofcontents)s
 '''
 
             'releasename':  _('Release'),
             'preamble':     builder.config.latex_preamble,
             'indexname':    _('Index'),
+            'contentsname': builder.config.latex_contentsname,
         })
         if document.settings.docclass == 'howto':
             docclass = builder.config.latex_docclass.get('howto', 'article')