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.