Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues on mindmap rendering #37

Closed
HaydarJawad opened this issue Jul 13, 2024 · 8 comments
Closed

Issues on mindmap rendering #37

HaydarJawad opened this issue Jul 13, 2024 · 8 comments

Comments

@HaydarJawad
Copy link

Hi, thank you very much for a great package. I have tried some other diagrams from the TikZ library, but they don't render. Am I doing something wrong?

For example, this doesn't render:

$$ \usetikzlibrary {mindmap} \tikz[mindmap,concept color=red!50] \node [concept] {Root concept} child[grow=right] {node[concept] {Child concept}};$$

thank you 
@parpalak
Copy link
Owner

parpalak commented Jul 15, 2024

\tikz is not supported by the service right now. You can use \begin{tikzpicture} instead:

$$
\usetikzlibrary {mindmap}
\begin{tikzpicture}[mindmap,concept color=red!50]
  \node [concept] {Root concept}
    child[grow=right] {node[concept] {Child concept}};
\end{tikzpicture}
$$

The result:

@HaydarJawad
Copy link
Author

Thank you, mate! Still, some exactly the same as yours do not show the edge from the centre circle. Not sure if it's me (see below from the Upmath editor). What I have noticed is that some complex ones do not render, not sure why, even with \begin{tikzpicture}.

\usetikzlibrary {mindmap}
\begin{tikzpicture}
\path[mindmap,concept color=black,text=white]
node[concept] {Computer Science}
[clockwise from=0]
% note that sibling angle' can only be defined in % level 1 concept/.append style={}'
child[concept color=green!50!black] {
node[concept] {practical}
[clockwise from=90]
child { node[concept] {algorithms} }
child { node[concept] {data structures} }
child { node[concept] {pro-gramming languages} }
child { node[concept] {software engineer-ing} }
}
% note that the concept color' is passed to the child'(!)
child[concept color=blue] {
node[concept] {applied}
[clockwise from=-30]
child { node[concept] {databases} }
child { node[concept] {WWW} }
}
child[concept color=red] { node[concept] {technical} }
child[concept color=orange] { node[concept] {theoretical} };
\end{tikzpicture}

Screenshot 2024-07-15 at 14 28 26

@parpalak
Copy link
Owner

I see what the problem is. I need some time to figure it out.

@HaydarJawad
Copy link
Author

OK, mate thank you. again the package is amazing!

@parpalak parpalak added the bug label Jul 17, 2024
@parpalak
Copy link
Owner

The problem with gradients can be fixed, but other problems pop up that seem more serious to me. So far I've opened a related issue in the PGF project, let's take a look at their response: pgf-tikz/pgf#1353

@HaydarJawad
Copy link
Author

HaydarJawad commented Jul 17, 2024 via email

@parpalak
Copy link
Owner

parpalak commented Jul 20, 2024

As you can see, there is no clear reaction in the associated pull request. It is unclear whether the reported issue is recognized as a bug or if it needs to be addressed elsewhere. And if it is acknowledged, whether someone will fix it and when. It seemed to me that the dvisvgm driver for pgf is somewhat raw, and it is unclear how prioritized its support is. Moreover, the last release of pgf was a year and a half ago.

Given all this, I created a special workaround command that enables the dvisvgm driver only if it is specified. If there are problems with a smooth color transition, you need to add \dvisvgm at the beginning and check that there are no other issues with rendering images:

\dvisvgm
\usetikzlibrary {mindmap}
  \tikz[mindmap,concept color=blue!80]
    \node [concept] {Root concept}
      child[concept color=red,grow=30] {node[concept] {Child concept}}
      child[concept color=orange,grow=0]  {node[concept] {Child concept}};

@HaydarJawad
Copy link
Author

HaydarJawad commented Jul 20, 2024 via email

@parpalak parpalak changed the title Using https://tikz.dev/ Issues on mindmap rendering Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants