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

2010-02-27 Thread Georg Brandl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 26.02.2010 17:22, schrieb Fernando Perez: Hi, On Sun, Feb 21, 2010 at 9:46 AM, Georg Brandl ge...@python.org wrote: @Günter: section titles can be matched in nested parsing if you set the match_titles argument to true. I am very happy that

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

2010-02-26 Thread Fernando Perez
Hi, On Sun, Feb 21, 2010 at 9:46 AM, Georg Brandl ge...@python.org wrote: @Günter: section titles can be matched in nested parsing if you set the match_titles argument to true.  I am very happy that this works, other- wise autodoc would have lots of problems with titles in docstrings. Where

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

2010-02-09 Thread Fernando Perez
Hi Kevin, On Fri, Feb 5, 2010 at 11:58 AM, Kevin Dunn kgd...@gmail.com wrote: That could be it.  I use the 1.00 version from hg because of a bug in prior versions with and symbols that appear in source code with LaTeX output. Did you actually build these and got the expected output? I

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

2010-02-09 Thread Fernando Perez
On Tue, Feb 9, 2010 at 10:52 PM, Fernando Perez fperez@gmail.com wrote: Did you actually build these and got the expected output?  I updated sphinx to hg trunk, and even though now your approach doesn't give me any errors, it simply won't produce any output for that section. Scratch that!

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] 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] Non-trivial conditional include with ifconfig?

2010-02-04 Thread Fernando Perez
Hi all, I need to include some material (exercise solutions) for a doc build only in certain cases, but all my attempts so far are failing. This: .. ifconfig:: include_solutions==True Something trivial Works, and I see 'something trivial' in the pdf (I set ifconfig as per

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

2010-02-04 Thread Kevin Dunn
Hi Fernando, 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!): In your ReST code you something like: .. only:: student - The answer for x = - The