ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [HOWTO] spanning xtable cells
@ 2020-01-30 23:13 Floris van Manen
  2020-01-31 17:24 ` Pablo Rodriguez
  2020-02-02 15:59 ` Floris van Manen
  0 siblings, 2 replies; 5+ messages in thread
From: Floris van Manen @ 2020-01-30 23:13 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 1026 bytes --]

Does anyone knows a hint to get the stacked boxes to the correct size?
When usinig non-zero values for the options
spaceinbetween and/or columndistance
the cells of the xtable will not properly size when spanning over rows
and/or columns.

e.g.

\starttext

\startxtable[spaceinbetween=2mm, columndistance=2mm, corner=round]
  \startxtablebody
    \startxrow
      \startxcell[ny=3] a1    \stopxcell
      \startxcell[nx=2] a2/3  \stopxcell
      \startxcell[ny=3] a4    \stopxcell
    \stopxrow
    \startxrow
      \startxcell b2 \stopxcell
      \startxcell b3 \stopxcell
    \stopxrow
    \startxrow
      \startxcell c2 \stopxcell
      \startxcell c3 \stopxcell
    \stopxrow
    \startxrow
  \startxcell[nx=3] d1/2/3  \stopxcell
      \startxcell   d4      \stopxcell
    \stopxrow
    \startxrow
      \startxcell e1 \stopxcell
      \startxcell e2 \stopxcell
      \startxcell e3 \stopxcell
      \startxcell e4 \stopxcell
    \stopxrow
  \stopxtablebody
\stopxtable

\stoptext

[-- Attachment #2: Screenshot from 2020-01-31 00-11-42.png --]
[-- Type: image/png, Size: 7437 bytes --]

[-- Attachment #3: pEpkey.asc --]
[-- Type: application/pgp-keys, Size: 2497 bytes --]

[-- Attachment #4: Type: text/plain, Size: 493 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] 5+ messages in thread

* Re: [HOWTO] spanning xtable cells
  2020-01-30 23:13 [HOWTO] spanning xtable cells Floris van Manen
@ 2020-01-31 17:24 ` Pablo Rodriguez
  2020-02-02 15:59 ` Floris van Manen
  1 sibling, 0 replies; 5+ messages in thread
From: Pablo Rodriguez @ 2020-01-31 17:24 UTC (permalink / raw)
  To: ntg-context

On 1/31/20 12:13 AM, Floris van Manen wrote:
> Does anyone knows a hint to get the stacked boxes to the correct size?
> [...]
> \startxtable[spaceinbetween=2mm, columndistance=2mm, corner=round]
>   \startxtablebody
>     \startxrow
>       \startxcell[ny=3] a1    \stopxcell
>       \startxcell[nx=2] a2/3  \stopxcell
>       \startxcell[ny=3] a4    \stopxcell

Hi Floris,

I think you might be hitting a bug.

From your sample, it seems that (columndistance * (nx - 1)) or
(spaceinbetween * (ny - 1)) aren’t added to the cell width or height.

But Hans knows better than myself what may be missing there.

Just in case it helps,

Pablo
--
http://www.ousia.tk
___________________________________________________________________________________
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] 5+ messages in thread

* Re: [HOWTO] spanning xtable cells
  2020-01-30 23:13 [HOWTO] spanning xtable cells Floris van Manen
  2020-01-31 17:24 ` Pablo Rodriguez
@ 2020-02-02 15:59 ` Floris van Manen
  2020-02-05 13:41   ` Hans Hagen
  2020-02-07 19:44   ` Pablo Rodriguez
  1 sibling, 2 replies; 5+ messages in thread
From: Floris van Manen @ 2020-02-02 15:59 UTC (permalink / raw)
  To: ntg-context

[-- Attachment #1: Type: text/plain, Size: 1849 bytes --]

Can someone (please) help me out to fix the incorrect/unintended
stacking of cells within the xtable?

.Floris


On 31-01-2020 00:13, Floris van Manen wrote:
> Does anyone knows a hint to get the stacked boxes to the correct size?
> When usinig non-zero values for the options
> spaceinbetween and/or columndistance
> the cells of the xtable will not properly size when spanning over rows
> and/or columns.
> 
> e.g.
> 
> \starttext
> 
> \startxtable[spaceinbetween=2mm, columndistance=2mm, corner=round]
>   \startxtablebody
>     \startxrow
>       \startxcell[ny=3] a1    \stopxcell
>       \startxcell[nx=2] a2/3  \stopxcell
>       \startxcell[ny=3] a4    \stopxcell
>     \stopxrow
>     \startxrow
>       \startxcell b2 \stopxcell
>       \startxcell b3 \stopxcell
>     \stopxrow
>     \startxrow
>       \startxcell c2 \stopxcell
>       \startxcell c3 \stopxcell
>     \stopxrow
>     \startxrow
>   \startxcell[nx=3] d1/2/3  \stopxcell
>       \startxcell   d4      \stopxcell
>     \stopxrow
>     \startxrow
>       \startxcell e1 \stopxcell
>       \startxcell e2 \stopxcell
>       \startxcell e3 \stopxcell
>       \startxcell e4 \stopxcell
>     \stopxrow
>   \stopxtablebody
> \stopxtable
> 
> \stoptext
> 
> 
> Screenshot from 2020-01-31 00-11-42.png
> 
> 
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
> 

[-- Attachment #2: pEpkey.asc --]
[-- Type: application/pgp-keys, Size: 2497 bytes --]

[-- Attachment #3: Type: text/plain, Size: 493 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] 5+ messages in thread

* Re: [HOWTO] spanning xtable cells
  2020-02-02 15:59 ` Floris van Manen
@ 2020-02-05 13:41   ` Hans Hagen
  2020-02-07 19:44   ` Pablo Rodriguez
  1 sibling, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2020-02-05 13:41 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 2/2/2020 4:59 PM, Floris van Manen wrote:
> Can someone (please) help me out to fix the incorrect/unintended
> stacking of cells within the xtable?
i'll look into it.

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [HOWTO] spanning xtable cells
  2020-02-02 15:59 ` Floris van Manen
  2020-02-05 13:41   ` Hans Hagen
@ 2020-02-07 19:44   ` Pablo Rodriguez
  1 sibling, 0 replies; 5+ messages in thread
From: Pablo Rodriguez @ 2020-02-07 19:44 UTC (permalink / raw)
  To: ntg-context

On 2/2/20 4:59 PM, Floris van Manen wrote:
> Can someone (please) help me out to fix the incorrect/unintended
> stacking of cells within the xtable?

Just for the record.

The issue has been fixed in latest LMTX version (from 2020.02.07 18:36).

Pablo
--
http://www.ousia.tk
___________________________________________________________________________________
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] 5+ messages in thread

end of thread, other threads:[~2020-02-07 19:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-30 23:13 [HOWTO] spanning xtable cells Floris van Manen
2020-01-31 17:24 ` Pablo Rodriguez
2020-02-02 15:59 ` Floris van Manen
2020-02-05 13:41   ` Hans Hagen
2020-02-07 19:44   ` Pablo Rodriguez

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