2

This code

\tikz \graph [layered layout] {
"I want newline after comma:" -> "Hello,\\ World.";
};

just gets rid of the whitespace between the "," and the "W" of "World" below:

enter image description here

Why doesn't it make a newline?

Geremia
  • 2,201

1 Answers1

2

try this

\tikz [text centered] \graph [layered layout, nodes = {align=center}] {
"I want newline after comma:" -> "Hello,\\World.";
};

enter image description here

Geremia
  • 2,201
rpapa
  • 12,350