Bug with TikZ module ?
Hi, Why the three words are not aligned on the baseline ? Regards, Fabrice \usemodule[tikz] \starttext \starttikzpicture[level/.style={sibling distance=10mm}] \node{}[grow=right] child{node{J}} child{node{R}} child{node{B} child{node{J}} child{node{R}} child{node{B} child{node{J}} child{node{R}} child{node{B}}} }; \node at (3,-0.75) {$\vdots$}; \node at (4.5,0.25) {$\vdots$}; \node at (1.5,-2.5) {toit}; \node at (3,-2.5) {fenêtre}; \node at (4.5,-2.5) {porte}; \stoptikzpicture \stoptext
On Thu, 15 May 2014, Fabrice Couvreur wrote:
Hi, Why the three words are not aligned on the baseline ? Regards, Fabrice
\usemodule[tikz] \starttext \starttikzpicture[level/.style={sibling distance=10mm}] \node{}[grow=right] child{node{J}} child{node{R}} child{node{B} child{node{J}} child{node{R}} child{node{B} child{node{J}} child{node{R}} child{node{B}}} }; \node at (3,-0.75) {$\vdots$}; \node at (4.5,0.25) {$\vdots$}; \node at (1.5,-2.5) {toit}; \node at (3,-2.5) {fenêtre}; \node at (4.5,-2.5) {porte}; \stoptikzpicture \stoptext
You have the same result with LaTeX, so the bug is not with ConTeXt. TikZ is aligning at the bottom of the box rather than at the baseline. IIRC, there is an option to "align at baseline" in TikZ. Otherwise, you can try adding `\strut` in each of the labels, so: \node at (...) {\strut ...} ; etc. Aditya
Hi, This is true, but as I gradually abandoned LaTeX for ConTeXt, I'm a little too quickly precipitate. In addition, I prefer TikZ to PSTricks that I do not control very well, pending the integration of PSTricks in Context. The solution \strut you propose works perfectly. Regards, Fabrice
participants (3)
-
Aditya Mahajan
-
Fabrice
-
Fabrice Couvreur