diff options
author | jfbu <jfbu@free.fr> | 2018-04-14 18:47:11 +0200 |
---|---|---|
committer | jfbu <jfbu@free.fr> | 2018-04-14 18:56:57 +0200 |
commit | 453d6a0b67bbdd123c232b8bc9b37aa7f971a149 (patch) | |
tree | 283e36a4b7480d7cbdf10d5e44b6f428b1ce28f8 | |
parent | 00bdea2411fe41414491743ce74138e4108c4a51 (diff) | |
download | sphinx-git-453d6a0b67bbdd123c232b8bc9b37aa7f971a149.tar.gz |
Fix #4837: (latex with class memoir) Font command \sf is not supported
-rw-r--r-- | CHANGES | 1 | ||||
-rw-r--r-- | sphinx/writers/latex.py | 4 |
2 files changed, 4 insertions, 1 deletions
@@ -26,6 +26,7 @@ Bugs fixed * #4817: wrong URLs on warning messages * #4784: latex: :confval:`latex_show_urls` assigns incorrect footnote numbers if hyperlinks exists inside substitutions +* #4837: latex: Class memoir Error Font command ``\sf`` is not supported Testing -------- diff --git a/sphinx/writers/latex.py b/sphinx/writers/latex.py index 0fecd7b8a..aca5d91ab 100644 --- a/sphinx/writers/latex.py +++ b/sphinx/writers/latex.py @@ -615,7 +615,9 @@ class LaTeXTranslator(nodes.NodeVisitor): if builder.config.language \ and 'fncychap' not in builder.config.latex_elements: # use Sonny style if any language specified - self.elements['fncychap'] = '\\usepackage[Sonny]{fncychap}' + self.elements['fncychap'] = ('\\usepackage[Sonny]{fncychap}' + '\\ChNameVar{\\Large\\sffamily}' + '\\ChTitleVar{\\Large\\sffamily}') self.babel = ExtBabel(builder.config.language) if builder.config.language and not self.babel.is_supported_language(): |