summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGES2
-rw-r--r--sphinx/writers/latex.py7
2 files changed, 5 insertions, 4 deletions
diff --git a/CHANGES b/CHANGES
index 6962814e4..fd1e8dcbe 100644
--- a/CHANGES
+++ b/CHANGES
@@ -26,7 +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
+* #4837: latex with class memoir Error: Font command ``\sf`` is not supported
Testing
--------
diff --git a/sphinx/writers/latex.py b/sphinx/writers/latex.py
index aca5d91ab..c742cdc1a 100644
--- a/sphinx/writers/latex.py
+++ b/sphinx/writers/latex.py
@@ -615,9 +615,10 @@ 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}'
- '\\ChNameVar{\\Large\\sffamily}'
- '\\ChTitleVar{\\Large\\sffamily}')
+ self.elements['fncychap'] = ('\\usepackage[Sonny]{fncychap}\n'
+ '\\ChNameVar{\\Large\\normalfont'
+ '\\sffamily}\n\\ChTitleVar{\\Large'
+ '\\normalfont\\sffamily}')
self.babel = ExtBabel(builder.config.language)
if builder.config.language and not self.babel.is_supported_language():