diff --git a/sphinx/writers/latex.py b/sphinx/writers/latex.py index a9e98abf2..cd6cce9b4 100644 --- a/sphinx/writers/latex.py +++ b/sphinx/writers/latex.py @@ -179,7 +179,7 @@ class LaTeXTranslator(nodes.NodeVisitor): self.elements = self.default_elements.copy() self.elements.update({ - 'wrapperclass': 'sphinx' + document.settings.docclass, + 'wrapperclass': document.settings.docclass, 'papersize': papersize, 'pointsize': builder.config.latex_font_size, # if empty, the title is set to the first section title