ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* TikZ: "align=left" does not work
@ 2014-10-05 19:18 Joshua Krämer
  0 siblings, 0 replies; only message in thread
From: Joshua Krämer @ 2014-10-05 19:18 UTC (permalink / raw)
  To: ntg-context-wvrSQK3plZs

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-10-05 19:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-05 19:18 TikZ: "align=left" does not work Joshua Krämer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).