Closed ricpelo closed 6 years ago
I don't know about memoir, but I guess latex_elements['extraclassoptions'] = 'oldfontcommands'
will resolve your problem.
http://www.sphinx-doc.org/en/master/config.html#confval-latex_elements
Sphinx by itself never issues \sf
.
I have made a grep search for grep '\\sf[^a-zA-Z]'
in all the files listed in your log. I could not check titlesec.sty
and titletoc.sty
which originate in your home but I tested the TL2107 versions and they don't contain usage of \sf
. The result is that the sole package containing usage of \sf
is fncychap
. But it does that only in the "Sonny" style are you using this style?
Then there is the highlighting provided by Pygments but (see here) it does not cause either a \sf
LaTeX macro either in output (which would be in the sphinx-highlight.sty file).
Are you sure the \sf
does not come from your own additions to preamble or to raw latex input?
Did the advice by @tk0miya work for you?
ah well, yes arrrrgggghhhh
https://github.com/sphinx-doc/sphinx/blob/master/sphinx/writers/latex.py#L618-L621
Thus this is definitely a bug in Sphinx because it uses then old package fncychap with precisely its unique option which happens to use deprecated font command \sf
... thanks for report!
Fixed at 453d6a0b6 thanks for report.
Now better fixed at https://github.com/sphinx-doc/sphinx/commit/aa21d78e42ebbc993f4f5df66755a044a95d52c8 (travis failed with Python 3.4 while setting up environment, so this is not Sphinx related)
Thank you very much!
Problem
Trying to create a PDF version of my book using Memoir class I get the following error:
Surfing on the Net it seems I need to include the
oldfontcommands
class option, but I don't know how can I do that in Sphinx.Procedure to reproduce the problem
Error logs / results
Expected results
No errors and PDF generated successfully.
Reproducible project / your project
https://github.com/ricpelo/libro-dwese
Environment info