From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/86028 Path: news.gmane.org!not-for-mail From: DesdeChaves Newsgroups: gmane.comp.tex.context Subject: Re: align text in nodes (tikz) Date: Mon, 20 Jan 2014 19:00:00 +0000 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0553357252==" X-Trace: ger.gmane.org 1390244401 10160 80.91.229.3 (20 Jan 2014 19:00:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 20 Jan 2014 19:00:01 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jan 20 20:00:10 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W5K4u-0004Bg-Qn for gctc-ntg-context-518@m.gmane.org; Mon, 20 Jan 2014 20:00:08 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 19629101F2; Mon, 20 Jan 2014 20:00:08 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id GQie8sf2OkkA; Mon, 20 Jan 2014 20:00:05 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id F3B1F101E2; Mon, 20 Jan 2014 20:00:04 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9D813101E2 for ; Mon, 20 Jan 2014 20:00:03 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id LHuTuv0MONBf for ; Mon, 20 Jan 2014 20:00:02 +0100 (CET) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id C0B1B101E1 for ; Mon, 20 Jan 2014 20:00:02 +0100 (CET) Original-Received: from mail-oa0-x231.google.com (mail-oa0-x231.google.com [IPv6:2607:f8b0:4003:c02::231]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s0KJCUpp020215 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Mon, 20 Jan 2014 20:12:31 +0100 Original-Received: by mail-oa0-f49.google.com with SMTP id i7so5744573oag.22 for ; Mon, 20 Jan 2014 11:00:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=4iHc2oUlg7dGV0rhlWqzxxlA/NZdsAYNJXYQ/EGGuXU=; b=YHuMBY2dOKNdAsFL/AHxCORu6g803sx959JX04pIBjtBDb+wY/zm5y94odQPJIYKw8 xHBiiC3fvDzmOSpW/o0Q4sfiLrr5nMUcTeOJcGpCnp3uvhct8yVfnskb7ACnbtGIOZjF Fsq5roQROAcVkjnnYfB2xf9SW/fKCcW/8ZU85jro0lCASyIm0Rhh6CMLbDxbsSIfE87L qP4bW6EkJ9ZVsq50NH6LkQvgLRDwnHryiJclUOyE3LNHpn4CJ//N79Q9vPi94wSXOkRv dVgYbCOp+ZyJtNHEUPGjqLt7KDdsJzDqq5boY81PmNjrShGQXYLTI71SPGXXZpsuT1sg Q4/A== X-Received: by 10.60.16.201 with SMTP id i9mr16682163oed.14.1390244400653; Mon, 20 Jan 2014 11:00:00 -0800 (PST) Original-Received: by 10.60.52.143 with HTTP; Mon, 20 Jan 2014 11:00:00 -0800 (PST) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2607:f8b0:4003:c02::231; country=US X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01LgjcvJG - 001720bc714c - 20140120 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:86028 Archived-At: --===============0553357252== Content-Type: multipart/alternative; boundary=089e0122fa7aa6e8fb04f06b7f24 --089e0122fa7aa6e8fb04f06b7f24 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I found this solution: \starttikzpicture[mynode/.style=3D{rectangle,fill=3Dred!10,text width=3D4cm= }] \node[mynode] (A) at (5cm, 8cm) {\framed[width=3D4cm,location=3Dmiddle,align=3Dcenter]{it's\\ (framed )}}; \stoptikzpicture Jorge 2014/1/20 DesdeChaves > How i can fix that: > > This works: > > \starttikzpicture[mynode/.style=3D{rectangle,fill=3Dred!10,text width=3D4= cm}] > \node[mynode] (A) at (5cm, 8cm) {This\\ works}; > \stoptikzpicture > > This don=B4t works: > > \starttikzpicture[mynode/.style=3D{rectangle,fill=3Dred!10,text width=3D4= cm, > align=3Dcenter}] > \node[mynode] (A) at (5cm, 8cm) {Align\\ (don=B4t work)}; > \stoptikzpicture > > ConTeXt ver: 2013.12.22 19:05 MKIV beta fmt: 2013.12.23 int: > english/english > > > Jorge > --=20 Atentamente DesdeChaves --089e0122fa7aa6e8fb04f06b7f24 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
I found this solution:

\starttikzpicture[mynode/.style=3D{rectangle,fill=3Dred!10,text widt= h=3D4cm}]
\node[mynode] =A0(A) at (5cm, 8cm) {\framed[width=3D4cm= ,location=3Dmiddle,align=3Dcenter]{it's\\ (framed )}};
\stoptikzpicture

Jorge


2014/1/20 DesdeChaves <= span dir=3D"ltr"><desdechaves@gmail.com>
How i can fix that:
This works:

\starttikzpicture[myn= ode/.style=3D{rectangle,fill=3Dred!10,text width=3D4cm}]
\node[mynode] =A0(A) at (5cm, 8cm) {This\\ works};
\stoptikzpicture

This don=B4t works:

\starttikzpicture[mynode/.style=3D{rectangle,fi= ll=3Dred!10,text width=3D4cm, align=3Dcenter}]
\node[mynode] =A0(= A) at (5cm, 8cm) {Align\\ (don=B4t work)};
\stoptikzpicture

ConTeXt =A0ver: 2013.12.= 22 19:05 MKIV beta =A0fmt: 2013.12.23 =A0int: english/english


Jorge



--
Atentamente<= br>
DesdeChaves
--089e0122fa7aa6e8fb04f06b7f24-- --===============0553357252== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0553357252==--