ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Height fitting with row spanning in a table
@ 2014-07-11 12:18 Maggyero
  0 siblings, 0 replies; 4+ messages in thread
From: Maggyero @ 2014-07-11 12:18 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 201 bytes --]

How can I stretch the height of the foo cell to fit its content?


\starttext

\startTABLE
    \NC foo \NC[nr=2]\input knuth   \NC \NR
    \NC bar \NC                         \NR
\stopTABLE

\stoptext

[-- Attachment #1.2: Type: text/html, Size: 423 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] 4+ messages in thread

* Re: Height fitting with row spanning in a table
  2014-07-15 11:59 Maggyero
@ 2014-07-15 21:40 ` Hans Hagen
  0 siblings, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2014-07-15 21:40 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 7/15/2014 1:59 PM, Maggyero wrote:
> I have finally found a not perfect solution: setting manually the height
> of the bar cell shrinks the foo cell (setting height=fit for the foo
> cell does not work).
>
>
> \starttext
>
> \startTABLE
>      \NC foo                 \NC[nr=2] \input knuth  \NC \NR
>      \NC[height=28ex] bar    \NC                         \NR
> \stopTABLE
>
> \stoptext
>
>
> I have chosen 28ex for the height since linespace in ConTeXt equals to
> 2.8ex and I need the height of 10 lines in this example to fit the knuth
> paragraph (if I could find a way to get automatically the number of
> lines required to fit the knuth paragraph it would be better).

i'll have a look at it later (maybe in xtables)


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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] 4+ messages in thread

* Height fitting with row spanning in a table
@ 2014-07-15 11:59 Maggyero
  2014-07-15 21:40 ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Maggyero @ 2014-07-15 11:59 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 608 bytes --]

I have finally found a not perfect solution: setting manually the height of
the bar cell shrinks the foo cell (setting height=fit for the foo cell does
not work).


\starttext

\startTABLE
    \NC foo                 \NC[nr=2] \input knuth  \NC \NR
    \NC[height=28ex] bar    \NC                         \NR
\stopTABLE

\stoptext


I have chosen 28ex for the height since linespace in ConTeXt equals to
2.8ex and I need the height of 10 lines in this example to fit the knuth
paragraph (if I could find a way to get automatically the number of lines
required to fit the knuth paragraph it would be better).

[-- Attachment #1.2: Type: text/html, Size: 700 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] 4+ messages in thread

* Height fitting with row spanning in a table
@ 2014-07-11 12:15 Maggyero
  0 siblings, 0 replies; 4+ messages in thread
From: Maggyero @ 2014-07-11 12:15 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 222 bytes --]

How can I stretch the height of the foo cell to fit its content?


\starttext

\startTABLE
    \NC foo \NC[nr=2]\input knuth   \NC \NR
    \NC bar \NC                         \NR
\stopTABLE

\stoptext


(P.D.F. attached.)

[-- Attachment #1.2: Type: text/html, Size: 430 bytes --]

[-- Attachment #2: example.png --]
[-- Type: image/png, Size: 79299 bytes --]

[-- Attachment #3: 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] 4+ messages in thread

end of thread, other threads:[~2014-07-15 21:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-11 12:18 Height fitting with row spanning in a table Maggyero
  -- strict thread matches above, loose matches on Subject: below --
2014-07-15 11:59 Maggyero
2014-07-15 21:40 ` Hans Hagen
2014-07-11 12:15 Maggyero

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).