On Wed, Jun 27, 2012 at 1:18 AM, Kevin Hunter hunt...@gmail.com wrote:
Hullo Sphinx List,
I believe I have a case where I need specific content based on the final
output format. Is there a way to tell Sphinx to only use a certain section
of the ReST document based on the final output format?
My problem is that I have a necessarily long line of pre-formatted text
(code example). This is no problem for HTML where the browser will simply
show a scrollbar and the user can see what they need to. However, for PDF
output (latexpdf), the line does not wrap, and therefore gets' cut off at
the page boundary. For the PDF case, I'd like to supply an alternate
version with a minor comment about the formatting difference.
I think you want the only directive? See [1] for more info.
[1] http://sphinx.pocoo.org/markup/misc.html#including-content-based-on-tags
--
You received this message because you are subscribed to the Google Groups
sphinx-dev group.
To post to this group, send email to sphinx-dev@googlegroups.com.
To unsubscribe from this group, send email to
sphinx-dev+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/sphinx-dev?hl=en.