On Feb 7, 10:22 am, Guenter Milde <mi...@users.berlios.de> wrote: > On 2011-02-05, cognacc wrote: > > Hi > > I have been working on getting sphinx to work with the memoir class > > instead. > > memoir.cls - sphinxmemoir.cls > > ------------------------------ > > sphinx prepends sphinx to the class name given in conf.py > > under *latex_elements*. > > Did you try > > latex_documents = [ > (startdocname, > targetname, > title, > author, > memoir, # <-- documentclass > toctree_only) > ] > > ? sphinxmemoir(.cls)
Yes then sphinx is appended to the name so it searches for > > color and xcolor problem > > -------------------------- > > color package is used by @sphinx?, > > we like to be able to specify xcolor, but they conflict, > > How do they conflict? The minimal LaTeX example:: > > \documentclass{minimal} > \usepackage{xcolor} > \usepackage{color} > \begin{document} > foo > \end{document} > > compiles fine without any error or warning. Hmm i had to change sphinx.sty, to \usepackage[table]{xcolor} And it warned about conflicts from xcolor that disappereared after that change. I will look more into that. > > Fonts > > ---------- > > \rm is @?undefined? > > \rm is strongly deprecated. > Use \rmfamily (switch) or \textrm{upright serifed text} (command). I think the \rm is used in the sphinx style files, i think they were from tabulary.sty Checking, no it is used in the fncychap.sty file. I try as much as possible to avoid changing sphinx files. and do as much as i can in my preamble and i also try not to change anything in the memoir class. But with my limited knowledge i sometimes have to change something there. So far i have changed one line in sphinxmemoir.cls and 1 line in sphinx.sty. > > Alias > > ---------- > > Is it possible to alias commands? > > Yes, with \newcommand, \renewcommand, \def, or \let. I aliased some commands now , i'm getting better :) i tried to alias the color environment to the xcolor env. Like when your are extending another environement with a little change \let\realitemize\itemize \let\endrealitemize\enditemize .. \renewenvironement{itemize}{% \hrule \realitemize} { \endrealitemize% } i just did \let\color\xcolor in the preamble but it didnt work. I will have to look into it next weekend, since i have a deadline for presentation this week. thanks for your help :) -- You received this message because you are subscribed to the Google Groups "sphinx-dev" group. To post to this group, send email to sphinx-dev@googlegroups.com. To unsubscribe from this group, send email to sphinx-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sphinx-dev?hl=en.