Commits

Jeff Klukas  committed d22546b

Added extraclassoptions to latex_elements

  • Participants
  • Parent commits ff85eaa

Comments (0)

Files changed (1)

File sphinx/writers/latex.py

         'papersize':       'letterpaper',
         'pointsize':       '10pt',
         'classoptions':    '',
+        'extraclassoptions': '',
         'inputenc':        '\\usepackage[utf8]{inputenc}',
         'utf8extra':       '\\DeclareUnicodeCharacter{00A0}{\\nobreakspace}',
         'fontenc':         '\\usepackage[T1]{fontenc}',
                     r'\AtBeginDvi{\special{pdf:tounicode EUC-UCS2}}'
         else:
             self.elements['classoptions'] += ',english'
+        print self.elements
         # allow the user to override them all
         self.elements.update(builder.config.latex_elements)
+        if self.elements['extraclassoptions']:
+            self.elements['classoptions'] += ',' + self.elements['extraclassoptions']
 
         self.highlighter = highlighting.PygmentsBridge('latex',
             builder.config.pygments_style, builder.config.trim_doctest_flags)