von Schimmelpilz » Mi 27. Jul 2022, 11:42
Also ich bin inzwischen hier angekommen, aber die Beschriftung wirft zwei Probleme auf:
1) Die Schriftgröße kann nicht geändert werden, wenn man z.B.
\large vor "Release" setzt, konvergiert die Kompilierung nicht.
2) Die Schrift wird vom der
standalone-Umgebung abgeschnitten.
btw.: Gibt es eine Möglichkeit, das direkt als .png ausguzeben? Mit der
convert option in der
documentclass habe ich im Projektordner in Win10 keine .png bekommen.
\documentclass[tikz, border=1mm]{standalone}
\usepackage{tikz}
\usetikzlibrary{patterns,arrows.meta,arrows,angles,decorations.pathreplacing, decorations.shapes, decorations.markings, decorations.text}
\usepackage[version=3]{mhchem}
\begin{document}
\begin{tikzpicture}[>=Stealth]
\node[gray](O2) at (1,0) {\ce{O2}};
\node(H2) {\textbf{{\large \ce{2 H2}}}};
\node(H2O) at (4,0) {{\large \textbf{\ce{2 H2O}}}};
\draw[very thick, ->, gray] (H2O.north) arc [radius=1.5, delta angle=170, start angle=5];
\draw[very thick, gray] (O2.south) arc [radius=1.5, delta angle=170, end angle=-7];
\draw[very thick, ->, postaction={decorate,decoration={raise=-2ex,text along path,text align=center,text={Release}}}] (H2.south) arc [radius=2, delta angle=170, end angle=-5];
\draw[very thick, ->, postaction={decorate,decoration={raise=1.5ex,text along path,reverse path, text align=center,text={Storage}}}] (H2O.north) arc [radius=2, delta angle=170, start angle=5];
\end{tikzpicture}
\end{document}
Beste Grüße,
SchiPi
Also ich bin inzwischen hier angekommen, aber die Beschriftung wirft zwei Probleme auf:
1) Die Schriftgröße kann nicht geändert werden, wenn man z.B. [tt]\large[/tt] vor "Release" setzt, konvergiert die Kompilierung nicht.
2) Die Schrift wird vom der [tt]standalone[/tt]-Umgebung abgeschnitten.
btw.: Gibt es eine Möglichkeit, das direkt als .png ausguzeben? Mit der [tt]convert[/tt] option in der [tt]documentclass[/tt] habe ich im Projektordner in Win10 keine .png bekommen.
[code]
\documentclass[tikz, border=1mm]{standalone}
\usepackage{tikz}
\usetikzlibrary{patterns,arrows.meta,arrows,angles,decorations.pathreplacing, decorations.shapes, decorations.markings, decorations.text}
\usepackage[version=3]{mhchem}
\begin{document}
\begin{tikzpicture}[>=Stealth]
\node[gray](O2) at (1,0) {\ce{O2}};
\node(H2) {\textbf{{\large \ce{2 H2}}}};
\node(H2O) at (4,0) {{\large \textbf{\ce{2 H2O}}}};
\draw[very thick, ->, gray] (H2O.north) arc [radius=1.5, delta angle=170, start angle=5];
\draw[very thick, gray] (O2.south) arc [radius=1.5, delta angle=170, end angle=-7];
\draw[very thick, ->, postaction={decorate,decoration={raise=-2ex,text along path,text align=center,text={Release}}}] (H2.south) arc [radius=2, delta angle=170, end angle=-5];
\draw[very thick, ->, postaction={decorate,decoration={raise=1.5ex,text along path,reverse path, text align=center,text={Storage}}}] (H2O.north) arc [radius=2, delta angle=170, start angle=5];
\end{tikzpicture}
\end{document}
[/code]
Beste Grüße,
SchiPi