I am trying to produce a text inside a node which has a contour. Problem is: when using contour, text width seems to be ignored, so I can not use auto multi-line text.
I discovered contours in tikz halo around text, and I can use it correctly as in:
\draw (0, 0) node {\contour{white}{A very long title that we mean to split on multiple lines}};
but when adding text width
it is not multi-lined:
\draw (0, 0) node[text width=5cm] {\contour{white}{A very long title that we mean to split on multiple lines}};
And without contour it works correctly:
\draw (0, 0) node[text width=5cm] {A very long title that we mean to split on multiple lines};
How can I fix this?
contour
puts everything in a box. Just try this, out of TikZ picture.\contour{red}{A very long text that hopefully breaks at the end of the this line otherwise I need to write more stuff}
. So I think, the pragmatic approach is to break manually.shadowtext
package. Very annoying. It seems there is no way of getting wrapping contour or shaded multiline text inside a TikZ node.