On 2011-02-03, cognacc wrote:
> On Feb 1, 9:36 am, Guenter Milde <[email protected]> wrote:
>> On 2011-01-25, cognacc wrote:
>> > Trying to use memoir gives me this error (offcourse!).
>> > ! LaTeX Error: Two \documentclass or \documentstyle commands.
>> You need to change the documentclass that is used by Sphinx to "memoir".
>> in the projects config file.
> You mean the conf.py?
Yes.
> It seems the string sphinx is prepended to what i put in latex
> documents.
Strange.
> ---
> latex_documents = [
> ('index', 'graphexplorertutor.tex', u'Graph explorer \\& tutor
> Documentation : IMM-B.Eng-2010-50',
> u'Michael Kell Jensen', 'manual'),
> ]
> ---
> so if i change 'manual' to 'memoir' it
> looks for sphinxmemoir(.cls)
> Easily solved, i copy the memoir class from my tex distribution to a
> file named sphinxmemoir.cls.
> But maybe i should move sphinxmemoir.cls to my static files under my
> sphinx root?
The documentation
(http://sphinx.pocoo.org/config.html#confval-latex_documents) says:
documentclass:
Normally, one of 'manual' or 'howto' (provided by Sphinx). Other
document classes can be given, but they must include the “sphinx”
package in order to define Sphinx’ custom LaTeX commands. “howto”
documents will not get appendices. Also, howtos will have a simpler
title page.
I read this that you can change 'manal' to one of the common LaTeX
documentclasses (like 'memoir' or 'article') and it should use
memoir.cls or whatever.
But need to have a \usepackage{sphinx} in the LaTeX preamble ::
latex_elements['preamble'] = '\usepackage{sphinx}'
to load the sphinx package (file sphinx.sty) that defines Sphinx-specific
LaTeX commands.
Günter
--
You received this message because you are subscribed to the Google Groups
"sphinx-dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sphinx-dev?hl=en.