* Preserve line height with TABLE
@ 2011-12-21 12:24 Andreas Harder
2011-12-21 13:20 ` Wolfgang Schuster
0 siblings, 1 reply; 5+ messages in thread
From: Andreas Harder @ 2011-12-21 12:24 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi,
is there a way to mimic the tabulate behavior with TABLE (or xtable)?
\starttext
\def\HtTest#1%
{\setbox\scratchbox\vbox{#1}hight=\the\ht\scratchbox\par\vbox{#1}\blank}
\HtTest{\strut
(Äg) first line\par
second line\par
(Äg) third line}
\setuptabulate[before=,after=,]
\HtTest{\starttabulate[|l|]
\NC (Äg) first line \NC\NR
\NC second line \NC\NR
\NC (Äg) third line \NC\NR
\stoptabulate}
\HtTest{\bTABLE[frame=off,offset=overlay,left=\strut] % ,rulethickness=0pt
\bTR\bTD (Äg) first line \eTD\eTR
\bTR\bTD second line \eTD\eTR
\bTR\bTD (Äg) third line \eTD\eTR
\eTABLE}
\HtTest{\startembeddedxtable[frame=off,offset=overlay]
\startxrow \startxcell (Äg) first line \stopxcell \stopxrow
\startxrow \startxcell second line \stopxcell \stopxrow
\startxrow \startxcell (Äg) third line \stopxcell \stopxrow
\stopembeddedxtable}
\stoptext
Thanks in advance
Andreas
___________________________________________________________________________________
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] 5+ messages in thread
* Re: Preserve line height with TABLE
2011-12-21 12:24 Preserve line height with TABLE Andreas Harder
@ 2011-12-21 13:20 ` Wolfgang Schuster
2011-12-21 13:28 ` Andreas Harder
0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2011-12-21 13:20 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 21.12.2011 um 13:24 schrieb Andreas Harder:
> Hi,
>
> is there a way to mimic the tabulate behavior with TABLE (or stable)?
You need “offset=0pt” and “strut=yes” (not left=\strut).
Wolfgang
___________________________________________________________________________________
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] 5+ messages in thread
* Re: Preserve line height with TABLE
2011-12-21 13:20 ` Wolfgang Schuster
@ 2011-12-21 13:28 ` Andreas Harder
2011-12-21 13:39 ` Wolfgang Schuster
0 siblings, 1 reply; 5+ messages in thread
From: Andreas Harder @ 2011-12-21 13:28 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 21.12.2011, at 14:20, Wolfgang Schuster wrote:
>
> Am 21.12.2011 um 13:24 schrieb Andreas Harder:
>
>> Hi,
>>
>> is there a way to mimic the tabulate behavior with TABLE (or stable)?
>
> You need “offset=0pt” and “strut=yes” (not left=\strut).
Thanks Wolfgang,
but it still not the hight from tabulate …
Andreas
___________________________________________________________________________________
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] 5+ messages in thread
* Re: Preserve line height with TABLE
2011-12-21 13:28 ` Andreas Harder
@ 2011-12-21 13:39 ` Wolfgang Schuster
2011-12-21 13:42 ` Andreas Harder
0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2011-12-21 13:39 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 21.12.2011 um 14:28 schrieb Andreas Harder:
>
> On 21.12.2011, at 14:20, Wolfgang Schuster wrote:
>
>>
>> Am 21.12.2011 um 13:24 schrieb Andreas Harder:
>>
>>> Hi,
>>>
>>> is there a way to mimic the tabulate behavior with TABLE (or stable)?
>>
>> You need “offset=0pt” and “strut=yes” (not left=\strut).
>
> Thanks Wolfgang,
>
> but it still not the hight from tabulate …
The here and also in your other question is that \begstrut is broken, when you add (the definition of \begstrut)
\starttexcode
\unexpanded\def\begstrut
{\relax\ifcase\strutht
% \ignorespaces % maybe
\else
\spacing_begstrut
\fi}
\stoptexcode
at the begin of your example you get a output for TABLE and stable which comes close to tabulate.
Wolfgang
___________________________________________________________________________________
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] 5+ messages in thread
* Re: Preserve line height with TABLE
2011-12-21 13:39 ` Wolfgang Schuster
@ 2011-12-21 13:42 ` Andreas Harder
0 siblings, 0 replies; 5+ messages in thread
From: Andreas Harder @ 2011-12-21 13:42 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 21.12.2011, at 14:39, Wolfgang Schuster wrote:
>
> Am 21.12.2011 um 14:28 schrieb Andreas Harder:
>
>>
>> On 21.12.2011, at 14:20, Wolfgang Schuster wrote:
>>
>>>
>>> Am 21.12.2011 um 13:24 schrieb Andreas Harder:
>>>
>>>> Hi,
>>>>
>>>> is there a way to mimic the tabulate behavior with TABLE (or stable)?
>>>
>>> You need “offset=0pt” and “strut=yes” (not left=\strut).
>>
>> Thanks Wolfgang,
>>
>> but it still not the hight from tabulate …
>
> The here and also in your other question is that \begstrut is broken, when you add (the definition of \begstrut)
>
> \starttexcode
> \unexpanded\def\begstrut
> {\relax\ifcase\strutht
> % \ignorespaces % maybe
> \else
> \spacing_begstrut
> \fi}
> \stoptexcode
>
> at the begin of your example you get a output for TABLE and stable which comes close to tabulate.
Thank you very much!
Andreas
___________________________________________________________________________________
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] 5+ messages in thread
end of thread, other threads:[~2011-12-21 13:42 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-21 12:24 Preserve line height with TABLE Andreas Harder
2011-12-21 13:20 ` Wolfgang Schuster
2011-12-21 13:28 ` Andreas Harder
2011-12-21 13:39 ` Wolfgang Schuster
2011-12-21 13:42 ` Andreas Harder
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).