on Feb 3, 8:16 am, Guenter Milde <[email protected]> wrote:
> 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.
memoir specified.
latex_documents = [
('index', 'graphexplorertutor.tex', u'Graph explorer \\& tutor
Documentation : IMM-B.Eng-2010-50',
u'Michael Kell Jensen', 'memoir'),
]
After moving a couple paths of sphinxmemoir.cls to
sphinxmemoir.cls.bac i get this.
! LaTeX Error: File `sphinxmemoir.cls' not found.
I think there was a "recent" change, because the name manual.cls was
considered too general?
> 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}'
it seems sphinx is automatically included if i read the code
correctly.
Looking in.
/usr/lib/python2.7/site-packages/Sphinx-1.0.7-py2.7.egg/sphinx/writers/
latex.py:
---
HEADER = r'''%% Generated by Sphinx.
\def\sphinxdocclass{%(docclass)s}
\documentclass[%(papersize)s,%(pointsize)s%(classoptions)s]{%
(wrapperclass)s}
%(inputenc)s
%(utf8extra)s
%(fontenc)s
%(babel)s
%(fontpkg)s
%(fncychap)s
%(longtable)s
\usepackage{sphinx}
%(preamble)s
---
mic
--
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.