# Add centered text to a figure

I'm trying to add some text to a tikz figure using the `\put` command, something like:

``````\put(-175,25){This text is too long}
``````

Yet, if the text is too long, I would like to add it in several lines and centered. Is there an easy way to do this instead of breaking the above command in two:

``````\put(-175,25){This text is}
\put(-175,0){too long}
``````
• Are you sure you don't mean pict2e instead of tikz? – John Kormylo Nov 11 '15 at 22:19
• It was text over a tikz figure. – aaragon Nov 11 '15 at 22:44
• And why not using TikZ nodes, for this? – egreg Nov 11 '15 at 23:43
• Because I was already using the nodes in an array of figures, and I had to add text to specific locations in those nodes. – aaragon Nov 12 '15 at 7:21
• I don't quite see the problem of using a `node` for that though. This is ancient history now, but if you're still interested, add an example of what you had, and see if any TikZ answers occur. – Torbjørn T. Apr 18 '17 at 9:30

``````\put(-175,25){ \parbox{4cm}{\centering This text is \\too long }}