Re: [NTG-context] Bug with TikZ module ?

2014-05-17 Thread Fabrice

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

[NTG-context] Bug with TikZ module ?

2014-05-15 Thread Fabrice Couvreur
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
___
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
___

Re: [NTG-context] Bug with TikZ module ?

2014-05-15 Thread Aditya Mahajan

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