On 2009-12-09, Nahuel Defossé wrote: > I've tried to create my own cls file, copyng it from Sphinx one, but it > didn't work, so I had overwrite the manual.cls in my makefile (as a rule in > latex target). I know it's not the best solution.
You might try setting the document class with the latex_elements['docclass'] setting in config.py. While http://sphinx.pocoo.org/config.html#confval-latex_elements says: Keys that are set by other options and therefore should not be overridden are: 'docclass' 'classoptions' 'title' 'date' 'release' 'author' 'logo' 'releasename' 'makeindex' 'makemodindex' 'shorthandoff' 'printmodindex' it is at least worth a try. Generally, it would be nice if Sphinx were more flexible in the choice of the document class (and options) and provided its local requirements in a package (spinx.sty, say) instead of a documentclass. > Regarding to the page numbers, I've found that I had to override fancyhf > definition, I did it in latex_preamble. Final result is OK, but I know it's > not clean :( Overriding fancyhf configuration in the latex_preamble is clean. This is what the latex_preamble is for. > It would be great to have some Sphinx oriented tex haking doc for those of > us who have very little latex experience :) You might have a look at the Docutils LaTeX doc http://docutils.sourceforge.net/docs/user/latex.html (Not all tips there will apply for Sphinx. While Sphix is based on docutils it differs a lot in the configuration.) 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.
