On 2010-04-15, Chikei wrote:
> Hi all,
> When I use graphviz extension with latex output, the extension output
> latex like this
> paragraph1
> \includegraphics{graphviz.pdf}
> paragraph2
> which will cause latex think paragraph1 and 2 are same paragraph,
> apply
> 188c188
>< self.body.append('\\includegraphics{%s}' % fname)
> ---
>> self.body.append('\n\\includegraphics{%s}\n' % fname)
> to graphviz.py solve this, is this patch OK? or there is some reason
> to not output these two linebreak?
This might be a design issue: in LaTeX, you can simply decide, whether
you want the graphic (or a table or a list or ...) to be part of the
paragraph:
text before
\includegraphics{graphviz.pdf}
more text
appended to the previous paragraph:
text before
\includegraphics{graphviz.pdf}
more text
or as a separate paragraph:
text before
\includegraphics{graphviz.pdf}
more text
In Docutils, the image, table, list, ... must be written as a
separate paragraph::
text before
.. image:: graphviz.pdf
more text
but this might not be what is intended in all cases.
Therefore, the Docutils todo.html contains the still unsolved question
* Start a new paragraph after lists (as currently)
or continue (no blank line in source, no parindent in output)?
Overriding:
* continue if the `compound paragraph`_ directive is used, or
* force a new paragraph with an empty comment.
Günter
.. _compound paragraph:
../ref/rst/directives.html#compound-paragraph
--
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.