* Bug with TikZ module ?
@ 2014-05-15 16:29 Fabrice Couvreur
2014-05-15 21:03 ` Aditya Mahajan
0 siblings, 1 reply; 3+ messages in thread
From: Fabrice Couvreur @ 2014-05-15 16:29 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 520 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 1083 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Bug with TikZ module ?
2014-05-15 16:29 Bug with TikZ module ? Fabrice Couvreur
@ 2014-05-15 21:03 ` Aditya Mahajan
2014-05-17 10:13 ` Fabrice
0 siblings, 1 reply; 3+ messages in thread
From: Aditya Mahajan @ 2014-05-15 21:03 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: TEXT/PLAIN, Size: 941 bytes --]
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
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Bug with TikZ module ?
2014-05-15 21:03 ` Aditya Mahajan
@ 2014-05-17 10:13 ` Fabrice
0 siblings, 0 replies; 3+ messages in thread
From: Fabrice @ 2014-05-17 10:13 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 293 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 1670 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-05-17 10:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-15 16:29 Bug with TikZ module ? Fabrice Couvreur
2014-05-15 21:03 ` Aditya Mahajan
2014-05-17 10:13 ` Fabrice
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).