* Tabulate containing high element
@ 2017-10-29 12:14 Procházka Lukáš Ing.
2017-10-29 22:50 ` Aditya Mahajan
0 siblings, 1 reply; 6+ messages in thread
From: Procházka Lukáš Ing. @ 2017-10-29 12:14 UTC (permalink / raw)
To: ConTeXt
[-- Attachment #1: Type: text/plain, Size: 759 bytes --]
Hello,
how to make tabulate row "aware" of some content of some "bigger" height?
In the following sample:
----
\starttext
\starttabulate[|pd(.4\textwidth)|p|]
\HL
\NC
\framed[location=top,width=1in,height=1in]{Abc}
\VL
Def
\NC\NR
\HL
\stoptabulate
\stoptext
----
content of the \framed flows out of the height of the first row;
I'd like the first row to have height of the highest element (here: the \framed - be 1 in).
How to achieve this?
Thank you in advance.
Best regards,
Lukas
--
Ing. Lukáš Procházka | mailto:LPr@pontex.cz
Pontex s. r. o. | mailto:pontex@pontex.cz | http://www.pontex.cz | IDDS:nrpt3sn
Bezová 1658
147 14 Praha 4
Mob.: +420 702 033 396
[-- Attachment #2: t2.mkiv --]
[-- Type: application/octet-stream, Size: 194 bytes --]
\starttext
\starttabulate[|pd(.4\textwidth)|p|]
\HL
\NC
\framed[location=top,width=1in,height=1in]{Abc}
\VL
Def
\NC\NR
\HL
\stoptabulate
\stoptext
[-- Attachment #3: t2.pdf --]
[-- Type: application/pdf, Size: 5239 bytes --]
[-- Attachment #4: Type: text/plain, Size: 492 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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Tabulate containing high element
2017-10-29 12:14 Tabulate containing high element Procházka Lukáš Ing.
@ 2017-10-29 22:50 ` Aditya Mahajan
2017-10-30 8:04 ` Procházka Lukáš Ing.
0 siblings, 1 reply; 6+ messages in thread
From: Aditya Mahajan @ 2017-10-29 22:50 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: TEXT/PLAIN, Size: 466 bytes --]
On Sun, 29 Oct 2017, Procházka Lukáš Ing. wrote:
> Hello,
>
> how to make tabulate row "aware" of some content of some "bigger" height?
>
> In the following sample:
>
> ----
> \starttext
> \starttabulate[|pd(.4\textwidth)|p|]
> \HL
> \NC
> \framed[location=top,width=1in,height=1in]{Abc}
> \VL
> Def
> \NC\NR
> \HL
> \stoptabulate
> \stoptext
> ----
(Untested): Does
\dontleavehmode \framed ....
work better?
Aditya
[-- Attachment #2: Type: text/plain, Size: 492 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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Tabulate containing high element
2017-10-29 22:50 ` Aditya Mahajan
@ 2017-10-30 8:04 ` Procházka Lukáš Ing.
2017-10-31 11:55 ` Procházka Lukáš Ing.
0 siblings, 1 reply; 6+ messages in thread
From: Procházka Lukáš Ing. @ 2017-10-30 8:04 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hello,
On Sun, 29 Oct 2017 23:50:51 +0100, Aditya Mahajan <adityam@umich.edu> wrote:
> On Sun, 29 Oct 2017, Procházka Lukáš Ing. wrote:
>
>> Hello,
>>
>> how to make tabulate row "aware" of some content of some "bigger" height?
>>
>> In the following sample:
>>
>> ----
>> \starttext
>> \starttabulate[|pd(.4\textwidth)|p|]
>> \HL
>> \NC
>> \framed[location=top,width=1in,height=1in]{Abc}
>> \VL
>> Def
>> \NC\NR
>> \HL
>> \stoptabulate
>> \stoptext
>> ----
>
> (Untested): Does
>
> \dontleavehmode \framed ....
unfortunately, it does not...
Lukas
> work better?
>
> Aditya
--
Ing. Lukáš Procházka | mailto:LPr@pontex.cz
Pontex s. r. o. | mailto:pontex@pontex.cz | http://www.pontex.cz | IDDS:nrpt3sn
Bezová 1658
147 14 Praha 4
Mob.: +420 702 033 396
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Tabulate containing high element
2017-10-30 8:04 ` Procházka Lukáš Ing.
@ 2017-10-31 11:55 ` Procházka Lukáš Ing.
2017-10-31 12:37 ` Taco Hoekwater
0 siblings, 1 reply; 6+ messages in thread
From: Procházka Lukáš Ing. @ 2017-10-31 11:55 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: text/plain, Size: 1152 bytes --]
Hello,
any idea?
My other attempts to constrain the row height to reflect its highest member fail, too.
Is it possible in the tabulate environment at all?
Best regards,
Lukas
On Mon, 30 Oct 2017 09:04:18 +0100, Procházka Lukáš Ing. <LPr@pontex.cz> wrote:
> Hello,
>
> On Sun, 29 Oct 2017 23:50:51 +0100, Aditya Mahajan <adityam@umich.edu> wrote:
>
>> On Sun, 29 Oct 2017, Procházka Lukáš Ing. wrote:
>>
>>> Hello,
>>>
>>> how to make tabulate row "aware" of some content of some "bigger" height?
>>>
>>> In the following sample:
>>>
>>> ----
>>> \starttext
>>> \starttabulate[|pd(.4\textwidth)|p|]
>>> \HL
>>> \NC
>>> \framed[location=top,width=1in,height=1in]{Abc}
>>> \VL
>>> Def
>>> \NC\NR
>>> \HL
>>> \stoptabulate
>>> \stoptext
>>> ----
>>
>> (Untested): Does
>>
>> \dontleavehmode \framed ....
>
> unfortunately, it does not...
>
> Lukas
>
>> work better?
>>
>> Aditya
>
>
--
Ing. Lukáš Procházka | mailto:LPr@pontex.cz
Pontex s. r. o. | mailto:pontex@pontex.cz | http://www.pontex.cz | IDDS:nrpt3sn
Bezová 1658
147 14 Praha 4
Mob.: +420 702 033 396
[-- Attachment #2: Tabul-with-HighElem.mkiv --]
[-- Type: application/octet-stream, Size: 343 bytes --]
\starttext
\starttabulate[|pd(.4\textwidth)|p|]
\HL
\NC
\dontleavehmode\framed[location=top,width=1in,height=1in]{Abc}
\VL
Def
\NC\NR
\HL
\NC
Foo
\VL
\startcombination[1*2]
{Bar}
{Baz}
\stopcombination
\NC\NR
\HL
\stoptabulate
\stoptext
[-- Attachment #3: Tabul-with-HighElem.pdf --]
[-- Type: application/pdf, Size: 6079 bytes --]
[-- Attachment #4: Type: text/plain, Size: 492 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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Tabulate containing high element
2017-10-31 11:55 ` Procházka Lukáš Ing.
@ 2017-10-31 12:37 ` Taco Hoekwater
2017-11-01 8:03 ` Procházka Lukáš Ing.
0 siblings, 1 reply; 6+ messages in thread
From: Taco Hoekwater @ 2017-10-31 12:37 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi,
This should work:
\tabulatesplitlinemode=0 % 1 | 2, default: 1
% controls the splitting dimensions for lines in ‘p’ mode
% 0: do nothing
% 1: make each line exactly the height and depth of \strut
% 2: make each line at least the height and depth height of \strut
Undocumented, so likely to change in the next beta ;)
Best wishes,
Taco
> On 31 Oct 2017, at 12:55, Procházka Lukáš Ing. <LPr@pontex.cz> wrote:
>
> Hello,
>
> any idea?
>
> My other attempts to constrain the row height to reflect its highest member fail, too.
>
> Is it possible in the tabulate environment at all?
>
> Best regards,
>
> Lukas
>
>
> On Mon, 30 Oct 2017 09:04:18 +0100, Procházka Lukáš Ing. <LPr@pontex.cz> wrote:
>
>> Hello,
>>
>> On Sun, 29 Oct 2017 23:50:51 +0100, Aditya Mahajan <adityam@umich.edu> wrote:
>>
>>> On Sun, 29 Oct 2017, Procházka Lukáš Ing. wrote:
>>>
>>>> Hello,
>>>>
>>>> how to make tabulate row "aware" of some content of some "bigger" height?
>>>>
>>>> In the following sample:
>>>>
>>>> ----
>>>> \starttext
>>>> \starttabulate[|pd(.4\textwidth)|p|]
>>>> \HL
>>>> \NC
>>>> \framed[location=top,width=1in,height=1in]{Abc}
>>>> \VL
>>>> Def
>>>> \NC\NR
>>>> \HL
>>>> \stoptabulate
>>>> \stoptext
>>>> ----
>>>
>>> (Untested): Does
>>>
>>> \dontleavehmode \framed ....
>>
>> unfortunately, it does not...
>>
>> Lukas
>>
>>> work better?
>>>
>>> Aditya
>>
>>
>
>
> --
> Ing. Lukáš Procházka | mailto:LPr@pontex.cz
> Pontex s. r. o. | mailto:pontex@pontex.cz | http://www.pontex.cz | IDDS:nrpt3sn
> Bezová 1658
> 147 14 Praha 4
>
> Mob.: +420 702 033 396<Tabul-with-HighElem.mkiv><Tabul-with-HighElem.pdf>___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
Taco Hoekwater
Elvenkind BV
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Tabulate containing high element
2017-10-31 12:37 ` Taco Hoekwater
@ 2017-11-01 8:03 ` Procházka Lukáš Ing.
0 siblings, 0 replies; 6+ messages in thread
From: Procházka Lukáš Ing. @ 2017-11-01 8:03 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: text/plain, Size: 984 bytes --]
Hello Taco,
thank you for the hack.
\tabulatesplitlinemode=0 has local effect, so one may enclose it into group to protect global setting.
I also had to enclose some elements into \tbox to get proper vertical alignment - see the MWE attached.
Thank you anyway.
Best regards,
Lukas
On Tue, 31 Oct 2017 13:37:00 +0100, Taco Hoekwater <taco@elvenkind.com> wrote:
>
> Hi,
>
> This should work:
>
> \tabulatesplitlinemode=0 % 1 | 2, default: 1
> % controls the splitting dimensions for lines in ‘p’ mode
> % 0: do nothing
> % 1: make each line exactly the height and depth of \strut
> % 2: make each line at least the height and depth height of \strut
>
>
> Undocumented, so likely to change in the next beta ;)
>
> Best wishes,
> Taco
--
Ing. Lukáš Procházka | mailto:LPr@pontex.cz
Pontex s. r. o. | mailto:pontex@pontex.cz | http://www.pontex.cz | IDDS:nrpt3sn
Bezová 1658
147 14 Praha 4
Mob.: +420 702 033 396
[-- Attachment #2: Tabul-with-HighElem.mkiv --]
[-- Type: application/octet-stream, Size: 1059 bytes --]
\setupexternalfigures[location=default]
\starttext
\starttabulate[|pd(.4\textwidth)|p|]
\HL
\NC
Pepa
\VL
\framed[location=top,width=1in,height=1in]{Zdepa}
\NC\NR
\HL
\stoptabulate
\start
\tabulatesplitlinemode=0
\starttabulate[|pd(.4\textwidth)|p|]
\HL
\NC
\framed[location=top,width=1in,height=1in]{Abc}
\VL
Def
\NC\NR
%
\HL
\NC
Ghi
\VL
\framed[location=top,width=1in,height=1in]{Abc}
\NC\NR
\HL
%
\NC
Hacker in tbox
\VL
\tbox{\externalfigure[hacker][height=1in]}
\NC\NR
\HL
%
\NC
\externalfigure[hacker][height=1in]
\VL
Hacker without tbox
\NC\NR
\HL
%
\NC
Comb with tbox
\VL
\tbox{%
\startcombination[1*2]
{Bar}{1}
{Baz}{2}
\stopcombination%
}
\NC\NR
\HL
\stoptabulate
\stop
\stoptext
[-- Attachment #3: Tabul-with-HighElem.pdf --]
[-- Type: application/pdf, Size: 44538 bytes --]
[-- Attachment #4: Type: text/plain, Size: 492 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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2017-11-01 8:03 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-29 12:14 Tabulate containing high element Procházka Lukáš Ing.
2017-10-29 22:50 ` Aditya Mahajan
2017-10-30 8:04 ` Procházka Lukáš Ing.
2017-10-31 11:55 ` Procházka Lukáš Ing.
2017-10-31 12:37 ` Taco Hoekwater
2017-11-01 8:03 ` Procházka Lukáš Ing.
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).