[NTG-context] align text in nodes (tikz)

DesdeChaves desdechaves at gmail.com
Mon Jan 20 20:00:00 CET 2014


I found this solution:

\starttikzpicture[mynode/.style={rectangle,fill=red!10,text width=4cm}]
\node[mynode]  (A) at (5cm, 8cm)
{\framed[width=4cm,location=middle,align=center]{it's\\ (framed )}};
\stoptikzpicture

Jorge


2014/1/20 DesdeChaves <desdechaves at gmail.com>

> How i can fix that:
>
> This works:
>
> \starttikzpicture[mynode/.style={rectangle,fill=red!10,text width=4cm}]
> \node[mynode]  (A) at (5cm, 8cm) {This\\ works};
> \stoptikzpicture
>
> This don´t works:
>
> \starttikzpicture[mynode/.style={rectangle,fill=red!10,text width=4cm,
> align=center}]
> \node[mynode]  (A) at (5cm, 8cm) {Align\\ (don´t work)};
> \stoptikzpicture
>
> ConTeXt  ver: 2013.12.22 19:05 MKIV beta  fmt: 2013.12.23  int:
> english/english
>
>
> Jorge
>



-- 
Atentamente

DesdeChaves
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20140120/c983fe94/attachment-0001.html>


More information about the ntg-context mailing list