From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/105536 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Fabrice Couvreur Newsgroups: gmane.comp.tex.context Subject: Re: Text and tree side by side in a framedtext environment Date: Sun, 17 Nov 2019 11:01:35 +0100 Message-ID: References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3150443851261939956==" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="137921"; mail-complaints-to="usenet@blaine.gmane.org" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Nov 17 11:03:25 2019 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iWHOs-000ZjR-VK for gctc-ntg-context-518@m.gmane.org; Sun, 17 Nov 2019 11:03:23 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 4291C16310D; Sun, 17 Nov 2019 11:03:09 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9BABo06i3ESr; Sun, 17 Nov 2019 11:03:08 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 5FE5A16310F; Sun, 17 Nov 2019 11:03:08 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 9F3EF16310D for ; Sun, 17 Nov 2019 11:03:06 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cC6zvRl4xuwv for ; Sun, 17 Nov 2019 11:03:06 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.128.48; helo=mail-wm1-f48.google.com; envelope-from=fabrice1.couvreur@gmail.com; receiver= Original-Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 0D9C9163037 for ; Sun, 17 Nov 2019 11:03:05 +0100 (CET) Original-Received: by mail-wm1-f48.google.com with SMTP id a17so13603737wmb.0 for ; Sun, 17 Nov 2019 02:03:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=xFBXKVGVXHvL0phOKWXSQ1OJGPPCN5EIihcF7NdDgEY=; b=eKJ/eHWksz0OqmPolZn0s2NX4SAMStZFaK7Uu139pbAGY80ewXgFWUCpRGIxFdPDYl oiZ/vj/Ie/9LcHr6EGtv0O5l0FnSE6p5ULCexR8WSvJStqWTw12rNqY98W8c1Y5rFy2S I60MjpMY2+Mz+uZqtR64baJNg6fwI0UdefCPHS6o9PROj4BU1F/Tg9mNJHs1R0eqnjWP zcIhKEaP6Fn/epKA5aGe3pDPHYB06WBhaK7x/tkawnAvq+diISipuwVFfU+BSktEG5Ur nPlK6jMAZ9ohuqrOBQAjU4cdfsMECDX6StHfR9bOWgVAmG1Lg7Bas/7E7+0pW+2veGwE rsTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=xFBXKVGVXHvL0phOKWXSQ1OJGPPCN5EIihcF7NdDgEY=; b=XyYeuzt/XM7yFMhBVuVhXPBgSnvMwapbbV27tHZbNqOBHf0+ZFiMoMMhbd0ydg+h7s vel1DPVm1XVu3JdFknjOnDc0rCPn58oP3iaDG8DeYztmArx418oOicOJvxI9Nz7oB1xg 9Jl066MNzWLSETrHtEWJfWQMNfwWHtWpJDDNlpS2QpYo1urMh3aeCUC7ePcRBXlxBU0o WZLSbGx3bjCiljNUtuzX2toTSl+Z85/YK0pfnOvcBVmlDsHmg4fbFASfUewK5FygD3ge WiGlbsqXS/TW7bAgSdfIiYqDHXDJImGa6IZT47xkg1a4RCnhgCSRc4sZ7xji8LdyRqsp tIxQ== X-Gm-Message-State: APjAAAVZS9GImWacddw6ciUez6I6WrB3CIPczoBLj2JB5LPrN0mPJ8Xl BjIXnsd3d/VkrSIaJY4FwlLak/8VSWUrdEcG2mS0cfsv X-Google-Smtp-Source: APXvYqzN9RtIL8zGPiiYI9CeX/qNcO5ZQed+KBfV0C0QA3UKZKX2LYMmHDZSqWVfde6Et0cDcmfn6BA4wS9b+cOzCrk= X-Received: by 2002:a1c:3b44:: with SMTP id i65mr22817761wma.1.1573984985378; Sun, 17 Nov 2019 02:03:05 -0800 (PST) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 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" Xref: news.gmane.org gmane.comp.tex.context:105536 Archived-At: --===============3150443851261939956== Content-Type: multipart/alternative; boundary="000000000000ef76e4059787ef98" --000000000000ef76e4059787ef98 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, I am looking but without success ! I tried \ starthanging [location =3D right] {tree} \ stophanging but that does not work either. Fabrice Le sam. 16 nov. 2019 =C3=A0 12:44, Fabrice Couvreur a =C3=A9crit : > Hello, > I want to use a text frame to put text and a probability tree side by > side, but it does not work. > Thanks for your help. > Fabrice > > \usemodule[tikz] > \usetikzlibrary[trees] > > \definefloat > [recipe] > [figure] > > \setupfloat > [recipe] > [default=3D{right,nonumber}] > \starttext > \startframedtext[width=3D\textwidth] > \placerecipe{}{ > \hbox{ > \starttikzpicture > [level 1/.style=3D{level distance=3D20mm,sibling distance=3D1= 5mm}, > level 2/.style=3D{level distance=3D20mm,sibling distance=3D1= 0mm}] > \node{}[grow=3Dright] > child {node{\tfxx R=C3=A9glisse} > child{node{\tfxx R=C3=A9glisse}edge from parent > node[below=3D2pt]{\dots}} > child{node{\tfxx Fraise}edge from parent > node[above=3D2pt]{\dots} > } edge from parent node[below=3D2pt]{\dots}} > child {node{\tfxx Fraise} > child{node{\tfxx R=C3=A9glisse}edge from parent > node[below=3D2pt]{\dots}} > child{node{\tfxx Fraise}edge from parent > node[above=3D2pt]{\dots}} edge from parent node[above=3D2pt]{\dots}}; > \stoptikzpicture > } > } > \dorecurse{2}{\input knuth} > \stopframedtext > \blank > \placerecipe{}{ > \hbox{ > \starttikzpicture > [level 1/.style=3D{level distance=3D20mm,sibling distance=3D1= 5mm}, > level 2/.style=3D{level distance=3D20mm,sibling distance=3D1= 0mm}] > \node{}[grow=3Dright] > child {node{\tfxx R=C3=A9glisse} > child{node{\tfxx R=C3=A9glisse}edge from parent > node[below=3D2pt]{\dots}} > child{node{\tfxx Fraise}edge from parent > node[above=3D2pt]{\dots} > } edge from parent node[below=3D2pt]{\dots}} > child {node{\tfxx Fraise} > child{node{\tfxx R=C3=A9glisse}edge from parent > node[below=3D2pt]{\dots}} > child{node{\tfxx Fraise}edge from parent > node[above=3D2pt]{\dots}} edge from parent node[above=3D2pt]{\dots}}; > \stoptikzpicture > } > } > \dorecurse{2}{\input knuth} > \stoptext > --000000000000ef76e4059787ef98 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,
I am looking but without success !
I tried \ st= arthanging [location =3D right] {tree} \ stophanging but that does not work= either.
Fabrice

=
Le=C2=A0sa= m. 16 nov. 2019 =C3=A0=C2=A012:44, Fabrice Couvreur <fabrice1.couvreur@gmail.com> a =C3=A9cri= t=C2=A0:
Hello,
I= want to use a text frame to put text and a probability tree side by side, = but it does not work.
Thanks for your help.
Fabrice

\usemodule[tikz= ]
\usetikzlibrary[trees]

\definefloat
=C2=A0 =C2=A0 [recipe]=C2=A0 =C2=A0 [figure]

=C2=A0 \setupfloat
=C2=A0 =C2=A0 [recipe= ]
=C2=A0 =C2=A0 [default=3D{right,nonumber}]
\starttext
\startfram= edtext[width=3D\textwidth]
=C2=A0 \placerecipe{}{
=C2=A0 =C2=A0 \hbox= {
=C2=A0 =C2=A0 =C2=A0 \starttikzpicture
=C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 [level 1/.style=3D{level distance=3D20mm,sibling distance=3D1= 5mm},
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0level 2/.style=3D{= level distance=3D20mm,sibling distance=3D10mm}]
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 \node{}[grow=3Dright]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 child {node{\tfxx R=C3=A9glisse}
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 child{node{\tfxx R=C3=A9glisse}edge from= parent node[below=3D2pt]{\dots}}
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 child{node{\tfxx Fraise}edge from parent node[above=3D2pt= ]{\dots}
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 } edge = from parent node[below=3D2pt]{\dots}}
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 child {node{\tfxx Fraise}
=C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 child{node{\tfxx R=C3=A9glisse}edge from parent= node[below=3D2pt]{\dots}}
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 child{node{\tfxx Fraise}edge from parent node[above=3D2pt]{\dots= }} edge from parent node[above=3D2pt]{\dots}};
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 \stoptikzpicture
=C2=A0 =C2=A0 }
=C2=A0 }
=C2=A0 \dorec= urse{2}{\input knuth}
\stopframedtext
\blank
= =C2=A0 \placerecipe{}{
=C2=A0 =C2=A0 \hbox{
=C2=A0 =C2=A0 =C2=A0 \sta= rttikzpicture
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 [level 1/.style= =3D{level distance=3D20mm,sibling distance=3D15mm},
=C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0level 2/.style=3D{level distance=3D20mm,sibling= distance=3D10mm}]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 \node{}[gro= w=3Dright]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 child {node{= \tfxx R=C3=A9glisse}
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 child{node{\tfxx R=C3=A9glisse}edge from parent node[below=3D2pt]{\d= ots}}
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 child{node= {\tfxx Fraise}edge from parent node[above=3D2pt]{\dots}
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 } edge from parent node[below=3D2= pt]{\dots}}
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 child {node= {\tfxx Fraise}
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = child{node{\tfxx R=C3=A9glisse}edge from parent node[below=3D2pt]{\dots}}=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 child{node{\tfxx = Fraise}edge from parent node[above=3D2pt]{\dots}} edge from parent node[abo= ve=3D2pt]{\dots}};
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 \stoptikzpicture=C2=A0 =C2=A0 }
=C2=A0 }
=C2=A0 \dorecurse{2}{\input knuth}
\sto= ptext
--000000000000ef76e4059787ef98-- --===============3150443851261939956== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============3150443851261939956==--