Re: [NTG-context] Itemize and natural tables

2018-09-25 Thread Wolfgang Schuster

Jan Willem Flamma schrieb am 24.09.18 um 08:48:

Thank you, also for the follow up in reporting the bug.

I have playing around with \item at various positions but hadn’t 
considered using \itemtag.


As a more general question:
My understanding is that in a tabulate environment \NI is short for 
\NC \itemtag \NC


Yes but you can also write \NI[] which is short for \NC 
\itemtag[] \NC


Is that the case as well in a TABLE environment. E.g., \NI is short 
for \bTD \itemtag \eTD?


There is no shortcut for the \itemtag command for natural tables.

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Itemize and natural tables

2018-09-23 Thread Jan Willem Flamma
Thank you, also for the follow up in reporting the bug.

I have playing around with \item at various positions but hadn’t considered 
using \itemtag.

As a more general question:
My understanding is that in a tabulate environment \NI is short for \NC 
\itemtag \NC
Is that the case as well in a TABLE environment. E.g., \NI is short for \bTD 
\itemtag \eTD?




> On 23 Sep 2018, at 19:09, Wolfgang Schuster 
>  wrote:
> 
> You would use the \itemtag command in the same way as you would do it with 
> tabulate
> 
> \starttext
> 
> \startitemize[n]
> \bTABLE
> \bTR
> \bTD (\itemtag) Item 1 \eTD
> \eTR
> \eTABLE
> \stopitemize
> 
> \stoptext
> 
> but there is a bug which prevents the item counter to appear in the output 
> (which I will report in a different thread).
> 
> Wolfgang
> 
> 
> Jan Willem Flamma schrieb am 23.09.18 um 17:33:
>> Dear list members,
>> 
>> I’m able to combine itemize and tabulate as per:
>> https://www.mail-archive.com/ntg-context@ntg.nl/msg86189.html 
>> 
>> 
>> Also, based on this discussion, I understand that combining modes and 
>> tabulate is not possible. Instead modes must be comined with natural tables.
>> https://www.mail-archive.com/ntg-context@ntg.nl/msg88877.html 
>> 
>> 
>> A logical follow up questions is if itemize can be combined with natural 
>> tables that include modes like in the MWE below.
>> 
>> MWE:
>> 
>> \startsetups [table]
>> \setupTABLE [start]  [frame=off,rulethickness=0pt,offset=0pt]
>> \setupTABLE [column] [1] [width=4cm,align=flushleft]
>> \setupTABLE [row][1] [toffset=5pt]
>> \setupTABLE [column] [2] [width=4cm,align=flushleft]
>> \stopsetups
>> 
>> \enablemode[test]
>> 
>> \starttext
>> 
>> \bTABLE [setups=table]
>> \bTR\bTC Item 1 \eTC\bTC Column 1 \eTC   \startmode[test] \bTC 
>> Column 2 \eTC \stopmode \eTR
>> \bTR\bTC Item 2 \eTC\bTC Column 1 \eTC  \startmode[test] \bTC Column 
>> 2 \eTC \stopmode \eTR
>> \eTABLE
>> 
>> \stoptext
>> 
>> Kind regards,
>> Jan Wilem Flamma
>> 
>> 
>> 
>> 
>> ___
>> 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
___

Re: [NTG-context] Itemize and natural tables

2018-09-23 Thread Wolfgang Schuster
You would use the \itemtag command in the same way as you would do it 
with tabulate


\starttext

\startitemize[n]
\bTABLE
    \bTR
        \bTD (\itemtag) Item 1 \eTD
    \eTR
\eTABLE
\stopitemize

\stoptext

but there is a bug which prevents the item counter to appear in the 
output (which I will report in a different thread).


Wolfgang


Jan Willem Flamma schrieb am 23.09.18 um 17:33:

Dear list members,

I’m able to combine itemize and tabulate as per:
https://www.mail-archive.com/ntg-context@ntg.nl/msg86189.html

Also, based on this discussion, I understand that combining modes and 
tabulate is not possible. Instead modes must be comined with natural 
tables.

https://www.mail-archive.com/ntg-context@ntg.nl/msg88877.html

A logical follow up questions is if itemize can be combined with 
natural tables that include modes like in the MWE below.


MWE:

\startsetups [table]
    \setupTABLE [start] [frame=off,rulethickness=0pt,offset=0pt]
    \setupTABLE [column] [1] [width=4cm,align=flushleft]
    \setupTABLE [row]    [1] [toffset=5pt]
    \setupTABLE [column] [2] [width=4cm,align=flushleft]
\stopsetups

\enablemode[test]

\starttext

\bTABLE [setups=table]
\bTR    \bTC Item 1 \eTC    \bTC Column 1 \eTC\startmode[test] \bTC 
Column 2 \eTC \stopmode \eTR
\bTR    \bTC Item 2 \eTC    \bTC Column 1 \eTC  \startmode[test] \bTC 
Column 2 \eTC \stopmode \eTR

\eTABLE

\stoptext

Kind regards,
Jan Wilem Flamma




___
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
___

[NTG-context] Itemize and natural tables

2018-09-23 Thread Jan Willem Flamma
Dear list members,

I’m able to combine itemize and tabulate as per:
https://www.mail-archive.com/ntg-context@ntg.nl/msg86189.html 


Also, based on this discussion, I understand that combining modes and tabulate 
is not possible. Instead modes must be comined with natural tables.
https://www.mail-archive.com/ntg-context@ntg.nl/msg88877.html 


A logical follow up questions is if itemize can be combined with natural tables 
that include modes like in the MWE below.

MWE:

\startsetups [table]
\setupTABLE [start]  [frame=off,rulethickness=0pt,offset=0pt]
\setupTABLE [column] [1] [width=4cm,align=flushleft]
\setupTABLE [row][1] [toffset=5pt]
\setupTABLE [column] [2] [width=4cm,align=flushleft]
\stopsetups

\enablemode[test]

\starttext

\bTABLE [setups=table]
\bTR\bTC Item 1 \eTC\bTC Column 1 \eTC  \startmode[test] \bTC Column 2 
\eTC \stopmode \eTR
\bTR\bTC Item 2 \eTC\bTC Column 1 \eTC  \startmode[test] \bTC Column 2 
\eTC \stopmode \eTR
\eTABLE

\stoptext

Kind regards,
Jan Wilem Flamma


___
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
___