Hi Robert,

First, I'm not familiar to ditaa and sphinx-ditaa.
In my short investigation, the extension generate a html wrapper by
the html handler function that named 'render_ditaa_html'.
I guess if you want use sphinx-ditaa for a LaTeX, you need a latex
wrapper handler function as 'render_ditaa_html'.

As a alternative -- if you're not particular about the ditaa -- you
can use sphinxconrtib-blockdiag to generate a diagram.
http://blockdiag.com/en/index.html

Regards,
--
Takayuki SHIMIZUKAWA
http://about.me/shimizukawa


2014-04-29 21:16 GMT+09:00 Robert Gomulka <[email protected]>:
> Hi all,
> I'm currently facing the following problems when trying to use Sphinx for
> Python code documentation.
>
> 1. I use sphinx-ditaa extension. It's working for HTML only:
> def setup(app):
>     app.add_node(ditaa,
>                  html=(html_visit_ditaa, None))
>     app.add_directive('ditaa', Ditaa)
>     app.add_config_value('ditaa', 'ditaa', 'html')
>     app.add_config_value('ditaa_args', [], 'html')
> How can I configure it to be included verbatim for Latex? (Or generate
> images like for HTML, but that would be much more problematic).
> When I remove ditaa extension from conf.py, whole directive (with contents)
> is ignored (not present) in HTML output.
>
> 2. When ignoring the above and invoking make latex I get tex file.
> When running MikTex to convert it into PDF it refuses to create full PDF,
> printing something like:
> p, li { white-space: pre-wrap; }
> LaTeX Warning: Hyper reference `client:client.CipMessages' on page 1
> undefined on input line 11199.
> Chapter 20. ! Dimension too large. \height ->\ht \@tempboxa l.11548
> \end{minipage} } ?
> Then when I press 'R' (run) I get badly damaged PDF (almost no content, some
> parts of index, ...)
> What can I do with such problem?
>
> Environment: Sphinx 1.2.2, Windows 7
>
> Best regards,
> Robert
>
> --
> 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.
> For more options, visit https://groups.google.com/d/optout.

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to