此代码
\tikz \graph [layered layout] {
"I want newline after comma:" -> "Hello,\\ World.";
};
只是去掉了下面“World”中的“,”和“W”之间的空格:
为什么它不换行?
答案1
尝试这个
\tikz [text centered] \graph [layered layout, nodes = {align=center}] {
"I want newline after comma:" -> "Hello,\\World.";
};