diff --git a/sphinx/writers/latex.py b/sphinx/writers/latex.py index 56f0061d9..472107db3 100644 --- a/sphinx/writers/latex.py +++ b/sphinx/writers/latex.py @@ -928,7 +928,7 @@ class LaTeXTranslator(nodes.NodeVisitor): def render(self, template_name, variables): # type: (unicode, Dict) -> unicode for template_dir in self.builder.config.templates_path: - template = path.join(self.builder.srcdir, template_dir, + template = path.join(self.builder.confdir, template_dir, template_name) if path.exists(template): return LaTeXRenderer().render(template, variables)