Text and tree side by side in a framedtext environment
![](https://secure.gravatar.com/avatar/d7c3317235884569312c31f786d43bbc.jpg?s=120&d=mm&r=g)
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={right,nonumber}] \starttext \startframedtext[width=\textwidth] \placerecipe{}{ \hbox{ \starttikzpicture [level 1/.style={level distance=20mm,sibling distance=15mm}, level 2/.style={level distance=20mm,sibling distance=10mm}] \node{}[grow=right] child {node{\tfxx Réglisse} child{node{\tfxx Réglisse}edge from parent node[below=2pt]{\dots}} child{node{\tfxx Fraise}edge from parent node[above=2pt]{\dots} } edge from parent node[below=2pt]{\dots}} child {node{\tfxx Fraise} child{node{\tfxx Réglisse}edge from parent node[below=2pt]{\dots}} child{node{\tfxx Fraise}edge from parent node[above=2pt]{\dots}} edge from parent node[above=2pt]{\dots}}; \stoptikzpicture } } \dorecurse{2}{\input knuth} \stopframedtext \blank \placerecipe{}{ \hbox{ \starttikzpicture [level 1/.style={level distance=20mm,sibling distance=15mm}, level 2/.style={level distance=20mm,sibling distance=10mm}] \node{}[grow=right] child {node{\tfxx Réglisse} child{node{\tfxx Réglisse}edge from parent node[below=2pt]{\dots}} child{node{\tfxx Fraise}edge from parent node[above=2pt]{\dots} } edge from parent node[below=2pt]{\dots}} child {node{\tfxx Fraise} child{node{\tfxx Réglisse}edge from parent node[below=2pt]{\dots}} child{node{\tfxx Fraise}edge from parent node[above=2pt]{\dots}} edge from parent node[above=2pt]{\dots}}; \stoptikzpicture } } \dorecurse{2}{\input knuth} \stoptext
![](https://secure.gravatar.com/avatar/d7c3317235884569312c31f786d43bbc.jpg?s=120&d=mm&r=g)
Hello,
I am looking but without success !
I tried \ starthanging [location = right] {tree} \ stophanging but that
does not work either.
Fabrice
Le sam. 16 nov. 2019 à 12:44, Fabrice Couvreur
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={right,nonumber}] \starttext \startframedtext[width=\textwidth] \placerecipe{}{ \hbox{ \starttikzpicture [level 1/.style={level distance=20mm,sibling distance=15mm}, level 2/.style={level distance=20mm,sibling distance=10mm}] \node{}[grow=right] child {node{\tfxx Réglisse} child{node{\tfxx Réglisse}edge from parent node[below=2pt]{\dots}} child{node{\tfxx Fraise}edge from parent node[above=2pt]{\dots} } edge from parent node[below=2pt]{\dots}} child {node{\tfxx Fraise} child{node{\tfxx Réglisse}edge from parent node[below=2pt]{\dots}} child{node{\tfxx Fraise}edge from parent node[above=2pt]{\dots}} edge from parent node[above=2pt]{\dots}}; \stoptikzpicture } } \dorecurse{2}{\input knuth} \stopframedtext \blank \placerecipe{}{ \hbox{ \starttikzpicture [level 1/.style={level distance=20mm,sibling distance=15mm}, level 2/.style={level distance=20mm,sibling distance=10mm}] \node{}[grow=right] child {node{\tfxx Réglisse} child{node{\tfxx Réglisse}edge from parent node[below=2pt]{\dots}} child{node{\tfxx Fraise}edge from parent node[above=2pt]{\dots} } edge from parent node[below=2pt]{\dots}} child {node{\tfxx Fraise} child{node{\tfxx Réglisse}edge from parent node[below=2pt]{\dots}} child{node{\tfxx Fraise}edge from parent node[above=2pt]{\dots}} edge from parent node[above=2pt]{\dots}}; \stoptikzpicture } } \dorecurse{2}{\input knuth} \stoptext
![](https://secure.gravatar.com/avatar/e5aa6984b53b8925e405ebbdbc051ad9.jpg?s=120&d=mm&r=g)
Salut, do maybe combinations fit your needs? https://wiki.contextgarden.net/Combinations Best, Hraban
Am 2019-11-17 um 11:01 schrieb Fabrice Couvreur
: Hello, I am looking but without success ! I tried \ starthanging [location = right] {tree} \ stophanging but that does not work either. Fabrice
Le sam. 16 nov. 2019 à 12:44, Fabrice Couvreur
a écrit : 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
![](https://secure.gravatar.com/avatar/d7c3317235884569312c31f786d43bbc.jpg?s=120&d=mm&r=g)
Hello,
Thank you for all your suggestions, but it does not work : it may have come
from the TiKz environment.
Fabrice
Le lun. 18 nov. 2019 à 16:14, Henning Hraban Ramm
Salut,
do maybe combinations fit your needs?
https://wiki.contextgarden.net/Combinations
Best, Hraban
Am 2019-11-17 um 11:01 schrieb Fabrice Couvreur < fabrice1.couvreur@gmail.com>:
Hello, I am looking but without success ! I tried \ starthanging [location = right] {tree} \ stophanging but that does not work either. Fabrice
Le sam. 16 nov. 2019 à 12:44, Fabrice Couvreur < fabrice1.couvreur@gmail.com> a écrit : 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
___________________________________________________________________________________ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net
___________________________________________________________________________________
participants (2)
-
Fabrice Couvreur
-
Henning Hraban Ramm