ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Have a cell span multiple columns with tabulate
@ 2021-11-27 12:25 Denis Maier via ntg-context
  2021-11-27 16:35 ` Jean-Philippe Rey via ntg-context
  0 siblings, 1 reply; 12+ messages in thread
From: Denis Maier via ntg-context @ 2021-11-27 12:25 UTC (permalink / raw)
  To: ntg-context; +Cc: denis.maier


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

Hi,

I'm using tabulate for parallel texts (source and translation next to each other). The top of each table should consist of only one cell covering both columns with centered content. Is that possible?

A HTML equivalent will look roughly like this:

<table>
  <tr>
    <th colspan="2">Manuscript XY </th>
  </tr>
  <tr>
    <td>Some text in Greek or Hebrew or whatever</td>
    <td>This is the translation</td>
  </tr>
</table>

With ConteXt I'd like to do something like this

\starttabulate[|p(1.2cm)|p(1.2cm)|]
  \NC Manuscript XY \NR
  \NC  Some text in Greek or Hebrew or whatever
  \NC  This is the translation \NC \NR
\stoptabulate

This compiles (interestingly?), but the cells at the top aren't merged.

Any ideas ?

I know that natural tables offer more in this regard, but those seem not to be so well suited for parallel texts.

Denis

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

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

* Re: Have a cell span multiple columns with tabulate
  2021-11-27 12:25 Have a cell span multiple columns with tabulate Denis Maier via ntg-context
@ 2021-11-27 16:35 ` Jean-Philippe Rey via ntg-context
  2021-11-27 16:45   ` Denis Maier via ntg-context
  0 siblings, 1 reply; 12+ messages in thread
From: Jean-Philippe Rey via ntg-context @ 2021-11-27 16:35 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Jean-Philippe Rey


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

Dear Denis,

> Le 27 nov. 2021 à 13:25, Denis Maier via ntg-context <ntg-context@ntg.nl> a écrit :
> 
> Hi,
>  
> I’m using tabulate for parallel texts (source and translation next to each other). The top of each table should consist of only one cell covering both columns with centered content. Is that possible?
>  
> A HTML equivalent will look roughly like this:
>  
> <table>
>   <tr>
>     <th colspan="2">Manuscript XY </th>
>   </tr>
>   <tr>
>     <td>Some text in Greek or Hebrew or whatever</td>
>     <td>This is the translation</td>
>   </tr>
> </table>
>  
> With ConteXt I’d like to do something like this
>  
> \starttabulate[|p(1.2cm)|p(1.2cm)|]
>   \NC Manuscript XY \NR
>   \NC  Some text in Greek or Hebrew or whatever
>   \NC  This is the translation \NC \NR                                             
> \stoptabulate
>  
> This compiles (interestingly?), but the cells at the top aren’t merged.
>  
> Any ideas ?
>  
> I know that natural tables offer more in this regard, but those seem not to be so well suited for parallel texts.

I switched to natural tables a long time ago and that's how I would do it:

\starttext
\bTABLE[width=8cm, frame=off]
\setupTABLE[c][1][roffset=0.5em]
\setupTABLE[c][2][loffset=0.5em]
\bTR
	\bTD[nc=2, align=center, bottomframe=on] Manuscript XY \eTD
\eTR\bTR
\bTD
	Some text in Greek or Hebrew or whatever.
	
	The text can comprise multiple paragraphs.
	Or even lists and other goodies :
	\startitemize[intro, packed]
	\item first item
	\item second item
	\stopitemize
\eTD\bTD
	This is the translation
\eTD
\eTR
\eTABLE
\stoptext
 
I haven't seen drawbacks with parallel texts (yet) and I found natural tables very flexible.

Hope it helps,


-- 
Jean-Philippe Rey
jean-philippe.rey@centralesupelec.fr <mailto:jean-philippe.rey@centralesupelec.fr>
91192 Gif-sur-Yvette Cedex - France
Empreinte PGP : 807A 5B2C 69E4 D4B5 783A 428A 1B5E E83E 261B BF51


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

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

* Re: Have a cell span multiple columns with tabulate
  2021-11-27 16:35 ` Jean-Philippe Rey via ntg-context
@ 2021-11-27 16:45   ` Denis Maier via ntg-context
  2021-11-27 17:11     ` Wolfgang Schuster via ntg-context
  2021-11-27 18:30     ` Jean-Philippe Rey via ntg-context
  0 siblings, 2 replies; 12+ messages in thread
From: Denis Maier via ntg-context @ 2021-11-27 16:45 UTC (permalink / raw)
  To: jean-philippe.rey, ntg-context; +Cc: denis.maier


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

Bonjour Jean-Philippe

Thank you for your response. That sounds very promising. I don’t remember why I didn’t use natural tables when I’ve started setting things up for this journal. I think I’d might have had something to do with tables that break across pages. (At least, this is what https://wiki.contextgarden.net/Tables_Overview currently says: extremetables are said to be better when page breaking is involved.)
Have you ever noticed problems in that area?

Best,
Denis

Von: Jean-Philippe Rey <jean-philippe.rey@centralesupelec.fr>
Gesendet: Samstag, 27. November 2021 17:36
An: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Maier, Denis Christian (UB) <denis.maier@unibe.ch>
Betreff: Re: [NTG-context] Have a cell span multiple columns with tabulate

Dear Denis,


Le 27 nov. 2021 à 13:25, Denis Maier via ntg-context <ntg-context@ntg.nl<mailto:ntg-context@ntg.nl>> a écrit :

Hi,

I’m using tabulate for parallel texts (source and translation next to each other). The top of each table should consist of only one cell covering both columns with centered content. Is that possible?

A HTML equivalent will look roughly like this:

<table>
  <tr>
    <th colspan="2">Manuscript XY </th>
  </tr>
  <tr>
    <td>Some text in Greek or Hebrew or whatever</td>
    <td>This is the translation</td>
  </tr>
</table>

With ConteXt I’d like to do something like this

\starttabulate[|p(1.2cm)|p(1.2cm)|]
  \NC Manuscript XY \NR
  \NC  Some text in Greek or Hebrew or whatever
  \NC  This is the translation \NC \NR
\stoptabulate

This compiles (interestingly?), but the cells at the top aren’t merged.

Any ideas ?

I know that natural tables offer more in this regard, but those seem not to be so well suited for parallel texts.

I switched to natural tables a long time ago and that's how I would do it:

\starttext
\bTABLE[width=8cm, frame=off]
\setupTABLE[c][1][roffset=0.5em]
\setupTABLE[c][2][loffset=0.5em]
\bTR
          \bTD[nc=2, align=center, bottomframe=on] Manuscript XY \eTD
\eTR\bTR
\bTD
          Some text in Greek or Hebrew or whatever.

          The text can comprise multiple paragraphs.
          Or even lists and other goodies :
          \startitemize[intro, packed]
          \item first item
          \item second item
          \stopitemize
\eTD\bTD
          This is the translation
\eTD
\eTR
\eTABLE
\stoptext

I haven't seen drawbacks with parallel texts (yet) and I found natural tables very flexible.

Hope it helps,

--
Jean-Philippe Rey
jean-philippe.rey@centralesupelec.fr<mailto:jean-philippe.rey@centralesupelec.fr>
91192 Gif-sur-Yvette Cedex - France
Empreinte PGP : 807A 5B2C 69E4 D4B5 783A 428A 1B5E E83E 261B BF51


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

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

* Re: Have a cell span multiple columns with tabulate
  2021-11-27 16:45   ` Denis Maier via ntg-context
@ 2021-11-27 17:11     ` Wolfgang Schuster via ntg-context
  2021-11-27 17:21       ` Denis Maier via ntg-context
  2021-11-27 18:30     ` Jean-Philippe Rey via ntg-context
  1 sibling, 1 reply; 12+ messages in thread
From: Wolfgang Schuster via ntg-context @ 2021-11-27 17:11 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Denis Maier via ntg-context
  Cc: Wolfgang Schuster


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

Denis Maier via ntg-context schrieb am 27.11.2021 um 17:45:
>
> Bonjour Jean-Philippe
>
> Thank you for your response. That sounds very promising. I don’t 
> remember why I didn’t use natural tables when I’ve started setting 
> things up for this journal. I think I’d might have had something to do 
> with tables that break across pages. (At least, this is what 
> https://wiki.contextgarden.net/Tables_Overview currently says: 
> extremetables are said to be better when page breaking is involved.)
>
> Have you ever noticed problems in that area?
>

Hans added a short while ago a span feature to tabulate but it works 
only for simple tables (e.g. single line cells).

A big feature of tabulate is that cells can be split at page breaks 
while cells in natural tables and extreme tables are limited to a single 
page.

Wolfgang


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

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

* Re: Have a cell span multiple columns with tabulate
  2021-11-27 17:11     ` Wolfgang Schuster via ntg-context
@ 2021-11-27 17:21       ` Denis Maier via ntg-context
  2021-11-27 20:49         ` Denis Maier via ntg-context
  0 siblings, 1 reply; 12+ messages in thread
From: Denis Maier via ntg-context @ 2021-11-27 17:21 UTC (permalink / raw)
  To: wolfgang.schuster.lists, ntg-context, ntg-context; +Cc: denis.maier


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


Von: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
Gesendet: Samstag, 27. November 2021 18:11
An: mailing list for ConTeXt users <ntg-context@ntg.nl>; Denis Maier via ntg-context <ntg-context@ntg.nl>
Cc: jean-philippe.rey@centralesupelec.fr; Maier, Denis Christian (UB) <denis.maier@unibe.ch>
Betreff: Re: [NTG-context] Have a cell span multiple columns with tabulate

Denis Maier via ntg-context schrieb am 27.11.2021 um 17:45:

Bonjour Jean-Philippe

Thank you for your response. That sounds very promising. I don’t remember why I didn’t use natural tables when I’ve started setting things up for this journal. I think I’d might have had something to do with tables that break across pages. (At least, this is what https://wiki.contextgarden.net/Tables_Overview currently says: extremetables are said to be better when page breaking is involved.)
Have you ever noticed problems in that area?

Hans added a short while ago a span feature to tabulate but it works only for simple tables (e.g. single line cells).

You mean every cell has to be a single line cell? Or the ones where this span features applies ? That would be enough for me – at least ATM.
How does that feature work? I couldn’t find information about it.



A big feature of tabulate is that cells can be split at page breaks while cells in natural tables and extreme tables are limited to a single page.

Yes, that sounds like the reason for using tabulate back then.


Wolfgang



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

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

* Re: Have a cell span multiple columns with tabulate
  2021-11-27 16:45   ` Denis Maier via ntg-context
  2021-11-27 17:11     ` Wolfgang Schuster via ntg-context
@ 2021-11-27 18:30     ` Jean-Philippe Rey via ntg-context
  2021-11-27 20:50       ` Denis Maier via ntg-context
  1 sibling, 1 reply; 12+ messages in thread
From: Jean-Philippe Rey via ntg-context @ 2021-11-27 18:30 UTC (permalink / raw)
  To: denis.maier; +Cc: Jean-Philippe Rey, ntg-context


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

Denis,

I have used natural tables that span multiple pages. However, if I am right, each row must be contained on a single page. That may be an issue depending on your use cases.

Best,

> Le 27 nov. 2021 à 17:45, denis.maier@unibe.ch a écrit :
> 
> Bonjour Jean-Philippe
>  
> Thank you for your response. That sounds very promising. I don’t remember why I didn’t use natural tables when I’ve started setting things up for this journal. I think I’d might have had something to do with tables that break across pages. (At least, this is whathttps://wiki.contextgarden.net/Tables_Overview <https://wiki.contextgarden.net/Tables_Overview> currently says: extremetables are said to be better when page breaking is involved.)
> Have you ever noticed problems in that area?
>  
> Best,
> Denis
>  
> Von: Jean-Philippe Rey <jean-philippe.rey@centralesupelec.fr> 
> Gesendet: Samstag, 27. November 2021 17:36
> An: mailing list for ConTeXt users <ntg-context@ntg.nl>
> Cc: Maier, Denis Christian (UB) <denis.maier@unibe.ch>
> Betreff: Re: [NTG-context] Have a cell span multiple columns with tabulate
>  
> Dear Denis,
> 
> 
> Le 27 nov. 2021 à 13:25, Denis Maier via ntg-context <ntg-context@ntg.nl <mailto:ntg-context@ntg.nl>> a écrit :
>  
> Hi,
>  
> I’m using tabulate for parallel texts (source and translation next to each other). The top of each table should consist of only one cell covering both columns with centered content. Is that possible?
>  
> A HTML equivalent will look roughly like this:
>  
> <table>
>   <tr>
>     <th colspan="2">Manuscript XY </th>
>   </tr>
>   <tr>
>     <td>Some text in Greek or Hebrew or whatever</td>
>     <td>This is the translation</td>
>   </tr>
> </table>
>  
> With ConteXt I’d like to do something like this
>  
> \starttabulate[|p(1.2cm)|p(1.2cm)|]
>   \NC Manuscript XY \NR
>   \NC  Some text in Greek or Hebrew or whatever
>   \NC  This is the translation \NC \NR                                             
> \stoptabulate
>  
> This compiles (interestingly?), but the cells at the top aren’t merged.
>  
> Any ideas ?
>  
> I know that natural tables offer more in this regard, but those seem not to be so well suited for parallel texts.
>  
> I switched to natural tables a long time ago and that's how I would do it:
>  
> \starttext
> \bTABLE[width=8cm, frame=off]
> \setupTABLE[c][1][roffset=0.5em]
> \setupTABLE[c][2][loffset=0.5em]
> \bTR
>           \bTD[nc=2, align=center, bottomframe=on] Manuscript XY \eTD
> \eTR\bTR
> \bTD
>           Some text in Greek or Hebrew or whatever.
>           
>           The text can comprise multiple paragraphs.
>           Or even lists and other goodies :
>           \startitemize[intro, packed]
>           \item first item
>           \item second item
>           \stopitemize
> \eTD\bTD
>           This is the translation
> \eTD
> \eTR
> \eTABLE
> \stoptext
>  
> I haven't seen drawbacks with parallel texts (yet) and I found natural tables very flexible.
>  
> Hope it helps,
> 
> -- 
> Jean-Philippe Rey
> jean-philippe.rey@centralesupelec.fr <mailto:jean-philippe.rey@centralesupelec.fr>
> 91192 Gif-sur-Yvette Cedex - France
> Empreinte PGP : 807A 5B2C 69E4 D4B5 783A 428A 1B5E E83E 261B BF51


-- 
Jean-Philippe Rey
jean-philippe.rey@centralesupelec.fr <mailto:jean-philippe.rey@centralesupelec.fr>
91192 Gif-sur-Yvette Cedex - France
Empreinte PGP : 807A 5B2C 69E4 D4B5 783A 428A 1B5E E83E 261B BF51


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

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

* Re: Have a cell span multiple columns with tabulate
  2021-11-27 17:21       ` Denis Maier via ntg-context
@ 2021-11-27 20:49         ` Denis Maier via ntg-context
  2021-11-27 21:22           ` Henning Hraban Ramm via ntg-context
  0 siblings, 1 reply; 12+ messages in thread
From: Denis Maier via ntg-context @ 2021-11-27 20:49 UTC (permalink / raw)
  To: ntg-context, wolfgang.schuster.lists; +Cc: denis.maier


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

Looks like Outlook messed up the formatting in my last message ...

Von: ntg-context <ntg-context-bounces@ntg.nl> Im Auftrag von Denis Maier via ntg-context
Gesendet: Samstag, 27. November 2021 18:22
An: wolfgang.schuster.lists@gmail.com; ntg-context@ntg.nl; ntg-context@ntg.nl
Cc: Maier, Denis Christian (UB) <denis.maier@unibe.ch>
Betreff: Re: [NTG-context] Have a cell span multiple columns with tabulate


Von: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com<mailto:wolfgang.schuster.lists@gmail.com>>
Gesendet: Samstag, 27. November 2021 18:11
An: mailing list for ConTeXt users <ntg-context@ntg.nl<mailto:ntg-context@ntg.nl>>; Denis Maier via ntg-context <ntg-context@ntg.nl<mailto:ntg-context@ntg.nl>>
Cc: jean-philippe.rey@centralesupelec.fr<mailto:jean-philippe.rey@centralesupelec.fr>; Maier, Denis Christian (UB) <denis.maier@unibe.ch<mailto:denis.maier@unibe.ch>>
Betreff: Re: [NTG-context] Have a cell span multiple columns with tabulate

Denis Maier via ntg-context schrieb am 27.11.2021 um 17:45:
Bonjour Jean-Philippe

Thank you for your response. That sounds very promising. I don’t remember why I didn’t use natural tables when I’ve started setting things up for this journal. I think I’d might have had something to do with tables that break across pages. (At least, this is what https://wiki.contextgarden.net/Tables_Overview currently says: extremetables are said to be better when page breaking is involved.)
Have you ever noticed problems in that area?

Hans added a short while ago a span feature to tabulate but it works only for simple tables (e.g. single line cells).


You mean every cell has to be a single line cell? Or the ones where this span features applies ? That would be enough for me – at least ATM.
How does that feature work? I couldn’t find information about it.

Denis


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

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

* Re: Have a cell span multiple columns with tabulate
  2021-11-27 18:30     ` Jean-Philippe Rey via ntg-context
@ 2021-11-27 20:50       ` Denis Maier via ntg-context
  0 siblings, 0 replies; 12+ messages in thread
From: Denis Maier via ntg-context @ 2021-11-27 20:50 UTC (permalink / raw)
  To: jean-philippe.rey; +Cc: denis.maier, ntg-context


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



Von: Jean-Philippe Rey <jean-philippe.rey@centralesupelec.fr>
Gesendet: Samstag, 27. November 2021 19:31
An: Maier, Denis Christian (UB) <denis.maier@unibe.ch>
Cc: ntg-context@ntg.nl
Betreff: Re: [NTG-context] Have a cell span multiple columns with tabulate

Denis,

I have used natural tables that span multiple pages. However, if I am right, each row must be contained on a single page. That may be an issue depending on your use cases.

Best,

Well, I guess that must have been the reason why I chose tabulate.

Denis




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

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

* Re: Have a cell span multiple columns with tabulate
  2021-11-27 20:49         ` Denis Maier via ntg-context
@ 2021-11-27 21:22           ` Henning Hraban Ramm via ntg-context
  2021-11-28  7:42             ` Denis Maier via ntg-context
  0 siblings, 1 reply; 12+ messages in thread
From: Henning Hraban Ramm via ntg-context @ 2021-11-27 21:22 UTC (permalink / raw)
  To: ntg-context; +Cc: Henning Hraban Ramm

Am 27.11.21 um 21:49 schrieb Denis Maier via ntg-context:
> Hans added a short while ago a span feature to tabulate but it works 
> only for simple tables (e.g. single line cells).
> 
> You mean every cell has to be a single line cell? Or the ones where this 
> span features applies ? That would be enough for me – at least ATM.
> 
> How does that feature work? I couldn’t find information about it.

Now it’s documented:
https://wiki.contextgarden.net/Tabulate

Hraban
___________________________________________________________________________________
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] 12+ messages in thread

* Re: Have a cell span multiple columns with tabulate
  2021-11-27 21:22           ` Henning Hraban Ramm via ntg-context
@ 2021-11-28  7:42             ` Denis Maier via ntg-context
  2021-11-28  8:26               ` Denis Maier via ntg-context
  0 siblings, 1 reply; 12+ messages in thread
From: Denis Maier via ntg-context @ 2021-11-28  7:42 UTC (permalink / raw)
  To: ntg-context; +Cc: denis.maier

Thanks, Hraban. That's really helpful. I'll have a look at this feature.

Denis

> -----Ursprüngliche Nachricht-----
> Von: ntg-context <ntg-context-bounces@ntg.nl> Im Auftrag von Henning
> Hraban Ramm via ntg-context
> Gesendet: Samstag, 27. November 2021 22:23
> An: ntg-context@ntg.nl
> Cc: Henning Hraban Ramm <texml@fiee.net>
> Betreff: Re: [NTG-context] Have a cell span multiple columns with tabulate
> 
> Am 27.11.21 um 21:49 schrieb Denis Maier via ntg-context:
> > Hans added a short while ago a span feature to tabulate but it works
> > only for simple tables (e.g. single line cells).
> >
> > You mean every cell has to be a single line cell? Or the ones where
> > this span features applies ? That would be enough for me – at least ATM.
> >
> > How does that feature work? I couldn’t find information about it.
> 
> Now it’s documented:
> https://wiki.contextgarden.net/Tabulate
> 
> Hraban
> __________________________________________________________
> _________________________
> 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
> __________________________________________________________
> _________________________
___________________________________________________________________________________
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] 12+ messages in thread

* Re: Have a cell span multiple columns with tabulate
  2021-11-28  7:42             ` Denis Maier via ntg-context
@ 2021-11-28  8:26               ` Denis Maier via ntg-context
  2021-11-28 10:22                 ` Hans Hagen via ntg-context
  0 siblings, 1 reply; 12+ messages in thread
From: Denis Maier via ntg-context @ 2021-11-28  8:26 UTC (permalink / raw)
  To: ntg-context; +Cc: denis.maier

Ok, did some tests: Now I understand what was meant with the limitation that this only supports single line cells:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\starttext

% this works
\starttabulate[|l|l|]
\NS[1][c] Manuskript X \NC\NR
\NC foo \NC bar  \NC\NR
\stoptabulate

% this does not work
\starttabulate[|p|p|]
\NS[1][c] Manuskript X \NC\NR
\NC foo \NC bar  \NC\NR
\stoptabulate
\stoptext
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Changing the column definitions from l,c,r to p breaks it.

Denis

> -----Ursprüngliche Nachricht-----
> Von: ntg-context <ntg-context-bounces@ntg.nl> Im Auftrag von Denis Maier
> via ntg-context
> Gesendet: Sonntag, 28. November 2021 08:42
> An: ntg-context@ntg.nl
> Cc: Maier, Denis Christian (UB) <denis.maier@unibe.ch>
> Betreff: Re: [NTG-context] Have a cell span multiple columns with tabulate
> 
> Thanks, Hraban. That's really helpful. I'll have a look at this feature.
> 
> Denis
> 
> > -----Ursprüngliche Nachricht-----
> > Von: ntg-context <ntg-context-bounces@ntg.nl> Im Auftrag von Henning
> > Hraban Ramm via ntg-context
> > Gesendet: Samstag, 27. November 2021 22:23
> > An: ntg-context@ntg.nl
> > Cc: Henning Hraban Ramm <texml@fiee.net>
> > Betreff: Re: [NTG-context] Have a cell span multiple columns with
> > tabulate
> >
> > Am 27.11.21 um 21:49 schrieb Denis Maier via ntg-context:
> > > Hans added a short while ago a span feature to tabulate but it works
> > > only for simple tables (e.g. single line cells).
> > >
> > > You mean every cell has to be a single line cell? Or the ones where
> > > this span features applies ? That would be enough for me – at least ATM.
> > >
> > > How does that feature work? I couldn’t find information about it.
> >
> > Now it’s documented:
> > https://wiki.contextgarden.net/Tabulate
> >
> > Hraban
> >
> __________________________________________________________
> > _________________________
> > 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
> >
> __________________________________________________________
> > _________________________
> __________________________________________________________
> _________________________
> 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
> __________________________________________________________
> _________________________
___________________________________________________________________________________
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] 12+ messages in thread

* Re: Have a cell span multiple columns with tabulate
  2021-11-28  8:26               ` Denis Maier via ntg-context
@ 2021-11-28 10:22                 ` Hans Hagen via ntg-context
  0 siblings, 0 replies; 12+ messages in thread
From: Hans Hagen via ntg-context @ 2021-11-28 10:22 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Hans Hagen

On 11/28/2021 9:26 AM, Denis Maier via ntg-context wrote:
> Ok, did some tests: Now I understand what was meant with the limitation that this only supports single line cells:
> 
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> \starttext
> 
> % this works
> \starttabulate[|l|l|]
> \NS[1][c] Manuskript X \NC\NR
> \NC foo \NC bar  \NC\NR
> \stoptabulate
> 
> % this does not work
> \starttabulate[|p|p|]
> \NS[1][c] Manuskript X \NC\NR
> \NC foo \NC bar  \NC\NR
> \stoptabulate
> \stoptext
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> 
> Changing the column definitions from l,c,r to p breaks it.
indeed, i check if that can be handled but it's too intrusive (for now) 
so i leave that as limitation

Hans

-----------------------------------------------------------------
                                           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] 12+ messages in thread

end of thread, other threads:[~2021-11-28 10:22 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-27 12:25 Have a cell span multiple columns with tabulate Denis Maier via ntg-context
2021-11-27 16:35 ` Jean-Philippe Rey via ntg-context
2021-11-27 16:45   ` Denis Maier via ntg-context
2021-11-27 17:11     ` Wolfgang Schuster via ntg-context
2021-11-27 17:21       ` Denis Maier via ntg-context
2021-11-27 20:49         ` Denis Maier via ntg-context
2021-11-27 21:22           ` Henning Hraban Ramm via ntg-context
2021-11-28  7:42             ` Denis Maier via ntg-context
2021-11-28  8:26               ` Denis Maier via ntg-context
2021-11-28 10:22                 ` Hans Hagen via ntg-context
2021-11-27 18:30     ` Jean-Philippe Rey via ntg-context
2021-11-27 20:50       ` Denis Maier via ntg-context

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