On 2009-05-06, Guenter Milde wrote: > On 2009-05-02, Georg Brandl wrote:
>>>>>>> Also, it loads the 'report' standard LaTeX documentclass with the >>>>>>> "openright" option hard-coded > While possible (with some LaTeX magic), the most easy and maintable > method will be to provide "openright" and "twoside" as default settings > configurable via config.py [#]_ and call the "report" documentclass > without options. With help of the comp.text.tex list, I got a working version of the required "LaTeX magic":: % % Default document class for Sphinx (http://sphinx.pocoo.org/) % extending the 'report' standard class. \NeedsTeXFormat{LaTeX2e}[1995/12/01] \ProvidesClass{sphinx-manual}[2008/10/18 Document class (Sphinx manual)] % 'oneside' option overriding the 'twoside' default \newif...@oneside \declareoption{oneside...@onesidetrue} % Pass remaining document options to the parent class. \DeclareOption*{\PassOptionsToClass{\CurrentOption}{report}} \ProcessOptions\relax % Defaults % two-side document \...@oneside % nothing to do (this is the default in report class) \else \PassOptionsToClass{twoside}{report} \fi % chapters starting at odd pages (overridden by 'openany' document option) \PassOptionsToClass{openright}{report} \LoadClass{report} <... rest of manual.cls ....> 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 -~----------~----~----~----~------~----~------~--~---
