Graphviz-dot diagrams malformatted in html output #6153
-
DescriptionTake the following example manuscript: ---
key: X
---
```{dot}
digraph G {
graph [fontsize=10 fontname="Verdana" compound=true];
node [shape=record fontsize=6 fontname="Verdana"];
subgraph cluster_outer {
subgraph cluster_Y {
label="directions"
"P6 (bottom left, front)" -> "P1 (top, back)"
-> "P2 (top, front)"
-> "P3 (bottom right, back)"
-> "P4 (bottom right, front)"
-> "P5 (bottom left, back)"
-> "P6 (bottom left, front)"
}
subgraph cluster_bl {
node [style=radial]
"P5 (bottom left, back)" [color=greenyellow]
"P6 (bottom left, front)" [color=green]
label="Bottom left shelf"
color=red
}
subgraph cluster_br {
node [style=radial]
"P3 (bottom right, back)" [color=gold]
"P4 (bottom right, front)" [color=yellow]
label="Bottom right shelf"
color=yellow
}
subgraph cluster_t {
node [style=radial]
"P1 (top, back)" [color=red]
"P2 (top, front)" [color=orange]
label="Top shelf"
color=green
}
subgraph cluster_steps {
label="Steps"
node [style=filled];
"1. Entferne Gruppe auf Position P5" [color=greenyellow]
"2. Entferne Gruppe auf Position P6" [color=green]
"3. Schiebe Gruppe P5 auf Position P6" [color=greenyellow]
"4. Schiebe Gruppe P4 auf Position P5" [color=yellow]
"5. Schiebe Gruppe P3 auf Position P4" [color=gold]
"6. Schiebe Gruppe P2 auf Position P3" [color=orange]
"7. Schiebe Gruppe P1 auf Position P2" [color=red]
node [style=filled];
"1. Entferne Gruppe auf Position P5"
-> "2. Entferne Gruppe auf Position P6"
-> "3. Schiebe Gruppe P5 auf Position P6"
-> "4. Schiebe Gruppe P4 auf Position P5"
-> "5. Schiebe Gruppe P3 auf Position P4"
-> "6. Schiebe Gruppe P2 auf Position P3"
-> "7. Schiebe Gruppe P1 auf Position P2"
color=black;
hidden=true
}
subgraph cluster_1 {
label = "Gruppen";
node [style=filled];
"G1" [color=red]
"G2" [color=orange]
"G3" [color=gold]
"G4" [color=yellow]
"G5" [color=greenyellow]
"G6" [color=green]
node [style=filled]
{"G1"
->"G2"
->"G3"
->"G4"
->"G5"
->"G6"[style=invis] {rank=0.1} }
color=black;
hidden=true;
}
}
}
```
Lorem ipsum
When building online, this diagram gets correctly rendered (see here and here). However, when rendering to quarto via quarto render index.qmd --to XXXX and these are the results I get for html, pdf and docx outputs: docx: Notably for html, the diagram is obviously malformatted. The standalone string Sidenote: This also occures when compiling via the quarto-package for R. What am I doing wrong; am I missing something obvious here? Any help is appreciated. Thank you, 10.07.2023 16:06: updated to fix wrong copy-paste of |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
Beta Was this translation helpful? Give feedback.
-
This being said your example is not reproducible, you are missing |
Beta Was this translation helpful? Give feedback.
-
Closing in favour of #6163. |
Beta Was this translation helpful? Give feedback.
Closing in favour of #6163.
Thanks @Gewerd-Strauss for reporting this!