diff --git a/src/plugins/docgen/LaTeXDoc.py b/src/plugins/docgen/LaTeXDoc.py index b8b0e257c..4bb9c7fbc 100644 --- a/src/plugins/docgen/LaTeXDoc.py +++ b/src/plugins/docgen/LaTeXDoc.py @@ -449,7 +449,7 @@ class LaTeXDoc(BaseDoc, TextDoc): self._backend.write(' \\renewcommand\\theenumi{\\arabic{enumi}}') else: # roman, set the case correctly - elf._backend.write(' \\renewcommand\\theenumi{\\%soman{enumi}}' + self._backend.write(' \\renewcommand\\theenumi{\\%soman{enumi}}' % ('r' if leader_1.islower() else 'R')) self._backend.write(' \\setcounter{enumi}{%d} ' % num)