Hello all,

I am generating a PDF via Sphinx using the autogenerated 
Makefile<http://sphinx-doc.org/latest/tutorial.html#running-the-build>. 
I usually generate it using:

make latexpdf

However, I am now including the 
only<http://sphinx-doc.org/markup/misc.html#including-content-based-on-tags> 
directive, 
so that some sections appear 
conditionally<http://stackoverflow.com/questions/2215518/conditional-output-in-sphinx-documentation>
 (this 
should happen if I include the relevant tag at the command line).

I added the following reST markup to my source file:

Hello world

.. only:: draft

          This is some draft content.

I tried generating the PDF as follows:

SPHINXOPTS="-t draft" make latexpdf

...but the output is the same as if I'd just run make latexpdf as normal, 
the "only" section does not appear. Is there a problem in my reST or my 
command line invocation?

(Also, I'd like to specify multiple tags if possible, e.g. draft and admin.)
(I've posted this question on StackOverflow - 
http://stackoverflow.com/questions/16962283 - so feel free to answer there 
and link here, or the other way round.)

Thanks for any advice or pointers.

David

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sphinx-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to