ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* align text in nodes (tikz)
@ 2014-01-20 15:28 DesdeChaves
  2014-01-20 19:00 ` DesdeChaves
  0 siblings, 1 reply; 2+ messages in thread
From: DesdeChaves @ 2014-01-20 15:28 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 461 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 729 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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] 2+ messages in thread

* Re: align text in nodes (tikz)
  2014-01-20 15:28 align text in nodes (tikz) DesdeChaves
@ 2014-01-20 19:00 ` DesdeChaves
  0 siblings, 0 replies; 2+ messages in thread
From: DesdeChaves @ 2014-01-20 19:00 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 819 bytes --]

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@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

[-- Attachment #1.2: Type: text/html, Size: 1521 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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] 2+ messages in thread

end of thread, other threads:[~2014-01-20 19:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-20 15:28 align text in nodes (tikz) DesdeChaves
2014-01-20 19:00 ` DesdeChaves

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).