Hi there everyone,Once again thanks a lot for your prompt replies. In case you are curious or you ever have to face the same problem than I, I finally chose blockdiag. With only a few statements:
.. blockdiag:: { planners -> seq-mco -> seq-mco-planner-11; planners -> seq-mco -> seq-mco-planner-12; planners -> seq-mco -> "seq-mco-planner-1..."; planners -> seq-opt -> seq-opt-planner-21; planners -> seq-opt -> seq-opt-planner-22; planners -> seq-opt -> "seq-mco-planner-2..."; planners -> seq-sat -> seq-sat-planner-31; planners -> seq-sat -> seq-sat-planner-32; planners -> seq-sat -> "seq-mco-planner-3..."; planners -> tempo-sat -> tempo-sat-planner-41; planners -> tempo-sat -> tempo-sat-planner-42; planners -> tempo-sat -> "seq-mco-planner-4..."; }I could generate the attached figure and embed it in the html and pdf docs generated with sphinx.
Just awesome!! Cheers, - Carlos Linares El 18/11/11 09:07, Takayuki Shimizukawa escribió:
Hi Carlos Other solution, you can use blockdiag (sphinxcontrib-blockdiag). sample: http://goo.gl/Ihfcn # blockdiag: http://www.slideshare.net/TakeshiKomiya/blockdiag-a-simple-diagram-generator # We need treediag ... :) -- Takayuki SHIMIZUKAWA sphinx-users.jp 2011/11/18 Felix Hummel<hummel.fe...@googlemail.com>:Hi Carlos, as far as I know, there is no reSt directive offering a nice tree representation in both HTML and PDF. If all you want to do is to show your audience how the repository structure should be laid out, then the way you suggested should be fine, provided it survives page breaks in PDF. The moment I saw your verbatim block, I understood the repo layout. Maybe KISS applies here... Of course you could go fancy with Graphviz like this:: digraph repo_layout { node [shape=record, width=.1, height=.1]; rankdir = LR; a -> b; a -> c; b -> b1; b -> b2; b -> b3; b3 [label="..."]; c -> c1; c -> c2; c -> c3; c3 [label="..."]; } That code, creating a png [1], is as far as I got with my very limited Graphviz knowledge. YMMV. Cheers, Felix On Nov 17, 10:04 am, Carlos Linares López <carlos.linares.lo...@gmail.com> wrote:Thanks a lot for your reply Felix, As a matter of fact, your picture looks much nicer than mine! However, I was asking how to format the block that contains the tree. Currently, I am using '::' to force verbatim output. Therefore my question is: Do you know of a nice way to show trees like this? (an alternative might be also to capture an image with the contents and to show it up with '.. image') Thanks again for your prompt reply!-- 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.
-- 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.
<<attachment: Untitled.png>>