3

Is it possible to build tree-shaped diagrams (e.g. organigrams) using the smartdiagram package?

What would be the best kind of smartdiagram (circular, flow, constellation,...) to use to this end?

In my case it would be enough to have a constellation diagram (say with three sons), e.g.

\documentclass{article}
\usepackage{smartdiagram}
\begin{document}
\begin{center}
\smartdiagram[bubble diagram]{
Build a program,Set up,Run,Analyze
}
\end{center}
\end{document}

but with the center node at the top.

I was wondering whether (for example) it is easy to hide some of the satellites and use a constellation diagram of the appropriate size with the top nodes hidden.

16
  • 1
    Why would you use something that has no tree-features to make a tree? Commented Sep 8, 2017 at 21:22
  • Well, part of my question was whether it has tree-features that I was not aware of, and in part because I like the non-shaped related features of the package.
    – suitangi
    Commented Sep 8, 2017 at 21:29
  • 1
    To be honest, I'm not super familiar with the package, but I would suppose the manual describes what is on offer, and it looks like the closest you can get is a flow diagram with additions, but it's not really a tree. What does "non-shaped related features" mean? Commented Sep 8, 2017 at 22:05
  • 1
    I do agree with you that not every question needs an MWE, but when we're at this stage anyway: You say a constellation diagram with one modification would be enough, so why not just add an example of such a diagram to your question (without the modification, of course)? That said, such a modification would entail essentially redefining what smartdiagram does, so it would probably be easier to use some other tool. (In a constellation, the first element in the list is the center node, and the others are distributed around it with at evenly spaced angles.) Commented Sep 9, 2017 at 9:24
  • 1
    Given that any answer is probably going to involve ditching smartdiagram, could you say what about the output from the code in your question you want to keep?
    – cfr
    Commented Sep 9, 2017 at 13:38

1 Answer 1

4

You can try to mimmic smartdiagram styles with more tree-oriented tools like forest

\documentclass{article}
\usepackage{forest}
\begin{document}
\begin{center}
\begin{forest}
for tree={circle, minimum size=2cm, 
      edge={red, line width=1mm, shorten <=1pt, shorten >=1pt, ->}}
[Build a program, fill=red!30
[Set up,fill=blue!30]
[Run, fill=green!30]
[Analyze,fill=violet!30]]
\end{forest}
\end{center}

\end{document}

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .