On Fri, Feb 5, 2010 at 11:11, Fernando Perez <[email protected]> wrote:
> On Thu, Feb 4, 2010 at 7:18 PM, Kevin Dunn <[email protected]> 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 I'll also reply to
> Guenter's comments, which are very relevant. As he points out,
> unfortunately nested sections don't seem to work (if you were able to
> make them work as you mention, I'd love to see how you did it, because
> I couldn't).
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.
Example
~~~~~~~~~~~~~~~~~~~~~~~~~~
Some text
And more text
.. only:: student
- The LCL =
- The UCL =
Also consider this
-------------------
Student, blah blah
And a sub-subsection
^^^^^^^^^^^^^^^^^^^^^^
Sub-subsection student, blah
.. only:: instructor
- The LCL = 3
- The UCL = 5
Extra-credit question
-----------------------
Instructor, blah, blah
Then everyone returns at this point (this text actually appears under
the previous sub-section; where else would it go?)
Final section
~~~~~~~~~~~~~~~~~~~~~~~~~~
And we wrap up with a final section here.
> But I ended up using this:
>
>
> .. only:: instructor
>
> .. admonition:: Solution
>
> The solution is...
>
> .. literalinclude:: examples/wordfreqs.py
>
>
> This at least gives me a little box for the description of the
> solution (and boldface in pdf), and I can also include code fragments.
>
> It will do for now, and it's very easy to use. But I'd really like to
> have a full solution to this, so we can also include section markup,
> etc... I need to get back to writing lecture notes so I'll use this
> for now, but I'd love to hear more ideas if anyone has any.
>
> Thank again, this does get me going though!
>
> Cheers,
>
> f
--
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.