[sphinx-dev] Re: Non-trivial conditional include with ifconfig?

2010-02-05 Thread Guenter Milde
On 2010-02-05, Fernando Perez wrote: Hi all, I need to include some material (exercise solutions) for a doc build only in certain cases, ... But I actually need a section title, and calls to source code inclusion and math directives in there. I tried things like: .. ifconfig::

Re: [sphinx-dev] Non-trivial conditional include with ifconfig?

2010-02-05 Thread Fernando Perez
On Thu, Feb 4, 2010 at 7:18 PM, Kevin Dunn kgd...@gmail.com wrote: I use the same idea for my class notes - the students get one version and the projector notes get a different version. This is what I ended up doing it (there may be a better way!): Thanks a lot, this will do for now, though

Re: [sphinx-dev] Re: Non-trivial conditional include with ifconfig?

2010-02-05 Thread Fernando Perez
Hi Guenter, On Fri, Feb 5, 2010 at 3:08 AM, Guenter Milde mi...@users.berlios.de wrote: An easy workaround is to use a rubric instead (if no ToC is required). Docutils circumvents this problem with the `strip-elements-with-class` configuration item like::  .. class:: solution  Solution  

Re: [sphinx-dev] Non-trivial conditional include with ifconfig?

2010-02-05 Thread Fernando Perez
On Fri, Feb 5, 2010 at 11:26 AM, Kevin Dunn kgd...@gmail.com wrote: Below is how I how did it.  But on re-reading your question, I realize this is probably not exactly what you want - you can create a nested subsection, but you can't go back to a higher level section. Your approach would be

Re: [sphinx-dev] Non-trivial conditional include with ifconfig?

2010-02-05 Thread Kevin Dunn
On Fri, Feb 5, 2010 at 11:49, Fernando Perez fperez@gmail.com wrote: On Fri, Feb 5, 2010 at 11:26 AM, Kevin Dunn kgd...@gmail.com wrote: Below is how I how did it.  But on re-reading your question, I realize this is probably not exactly what you want - you can create a nested subsection,

[sphinx-dev] parsed-literal conflicts with code highlighting

2010-02-05 Thread Fernando Gómez
Hi, This is another issue motivated by my attempt at literate programming with noweb and sphinx. In a typical LP setting, any block of code may contain links to other locations in the document. In other words, within blocks of code one can find the markup :ref:`Link title label-name`. If we want