%20in%20Tikz%3F.png)
Normalerweise habe ich in Tikz nie Probleme mit Zeilenumbrüchen. Aber dieses Mal will Tikz aus mir unbekannten Gründen keinen Zeilenumbruch anzeigen. Haben Sie eine Idee, woran das liegen könnte?
\documentclass[a4paper,12pt]{article}
\usepackage{tikz}
\usetikzlibrary{shapes.callouts}
\begin{document}
\begin{tikzpicture}
\node[cloud callout, cloud puffs=10, aspect=4.5, cloud puff arc=70,
shading=ball, anchor=pointer] at (0,0) {
This is long text\\
One line isn't enough
};
\end{tikzpicture}
\end{document}
Antwort1
Sie können verwenden align
in\node
verwenden ,
\documentclass[a4paper,12pt]{article}
\usepackage{tikz}
\usetikzlibrary{shapes.callouts}
\begin{document}
\begin{tikzpicture}
\node[cloud callout, cloud puffs=10, aspect=4.5, cloud puff arc=70,
shading=ball, anchor=pointer,align = left] at (0,0) {
This is long text\\
One line isn't enough
};
\end{tikzpicture}
\end{document}
left
odercenter
oder right
.