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.

> A latex knowlegdeable guy helped me make a list with a sidebar,
> but i don't knowhow to make use of if via sphinx. (make a directive).

> here is his code:
> --------

These lines should not be needed in your custom preamble (configure
Sphinx to use the document class and packages instead).

> \documentclass{memoir}
> \usepackage[T1]{fontenc}
> \usepackage[utf8]{inputenc}
> \usepackage[english]{babel}
> \usepackage{lmodern,lipsum}

> \usepackage{framed,xcolor} % needed for the new environments

Insert as custom preamble code from here on,

> \definecolor{linecolor}{rgb}{.64,.79,.62}

> \newenvironment{fancyenv}{%

...


You might also need to re-define some commands to use your custom versions.

All untested, but it might get you started...



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.

Reply via email to