From 22d3976af2e6891149d1f8c238e100dc00d67f7d Mon Sep 17 00:00:00 2001 From: Erik Bernoth Date: Tue, 6 Aug 2013 14:24:13 +0200 Subject: [PATCH] Makes the config value for latex doc classes more flexible. --- sphinx/writers/latex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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