Dear list,

there seems to be a bug regarding the alignment of text inside nodes.
If the TikZ picture is inside a centered or ragged left environment,
"align=left" is not interpreted correctly.  MWE attached.

Kind regards,
Joshua


\usemodule[tikz]
\starttext

\setupalign [right]
Ragged right alignment

\starttikzpicture
\node [draw=red, text width=5cm, align=left] at (0, 1) {left};
\node [draw=red, text width=5cm, align=center] at (0, 2) {center};
\node [draw=red, text width=5cm, align=right] at (0, 3) {right};
\stoptikzpicture

\setupalign [center]
Centered alignment

\starttikzpicture
\node [draw=red, text width=5cm, align=left] at (0, 1) {left};
\node [draw=red, text width=5cm, align=center] at (0, 2) {center};
\node [draw=red, text width=5cm, align=right] at (0, 3) {right};
\stoptikzpicture

\setupalign [left]
Ragged left alignment

\starttikzpicture
\node [draw=red, text width=5cm, align=left] at (0, 1) {left};
\node [draw=red, text width=5cm, align=center] at (0, 2) {center};
\node [draw=red, text width=5cm, align=right] at (0, 3) {right};
\stoptikzpicture

\stoptext


___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to