ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] Bug (?) in \definetabletemplate
@ 2025-02-22 15:24 Christian Prim via ntg-context
  2025-02-22 16:21 ` [NTG-context] " Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: Christian Prim via ntg-context @ 2025-02-22 15:24 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Christian Prim


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

Following example (taken from the wiki) produces an error with lmtx:

\definetabletemplate[booktabs][o0|l|l|ro0|]
\starttable[booktabs]
        \NC first column \NC second column \NC third column \NC \AR
\stoptable

Following example works:

\starttable[o0|l|l|ro0|] %same as above, but without the use of the defined
template
        \NC first column \NC second column \NC third column \NC \AR
\stoptable

I know that this table-environment is deprecated. But it is best suited for
my project. I love the use of the template with this environment.

Thanks for looking into it.

Christian

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

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

* [NTG-context] Re: Bug (?) in \definetabletemplate
  2025-02-22 15:24 [NTG-context] Bug (?) in \definetabletemplate Christian Prim via ntg-context
@ 2025-02-22 16:21 ` Wolfgang Schuster
  2025-02-22 17:08   ` Christian Prim via ntg-context
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2025-02-22 16:21 UTC (permalink / raw)
  To: ntg-context

Am 22.02.2025 um 16:24 schrieb Christian Prim via ntg-context:
> Following example (taken from the wiki) produces an error with lmtx:
> 
> \definetabletemplate[booktabs][o0|l|l|ro0|]
> \starttable[booktabs]
>          \NC first column \NC second column \NC third column \NC \AR
> \stoptable
> 
> Following example works:
> 
> \starttable[o0|l|l|ro0|] %same as above, but without the use of the 
> defined template
>          \NC first column \NC second column \NC third column \NC \AR
> \stoptable
> 
> I know that this table-environment is deprecated. But it is best suited 
> for my project. I love the use of the template with this environment.

Comment the line with the \catcode command in tabl-tab.mkxl and remake 
the format file (context --make).

% tabl-tab.mkxl
\permanent\protected\def\definetabletemplate % to be redone
   {\bgroup
   %\catcode\barasciicode\othercatcode
    \tabl_table_define_template}

Wolfgang

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

* [NTG-context] Re: Bug (?) in \definetabletemplate
  2025-02-22 16:21 ` [NTG-context] " Wolfgang Schuster
@ 2025-02-22 17:08   ` Christian Prim via ntg-context
  0 siblings, 0 replies; 3+ messages in thread
From: Christian Prim via ntg-context @ 2025-02-22 17:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Christian Prim


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

Many thanks Wolfgang, that did the trick!

Christian

PS.: Hope Hans will get this fix in the distribution

Am Sa., 22. Feb. 2025 um 17:21 Uhr schrieb Wolfgang Schuster <
wolfgang.schuster.lists@gmail.com>:

> Am 22.02.2025 um 16:24 schrieb Christian Prim via ntg-context:
> > Following example (taken from the wiki) produces an error with lmtx:
> >
> > \definetabletemplate[booktabs][o0|l|l|ro0|]
> > \starttable[booktabs]
> >          \NC first column \NC second column \NC third column \NC \AR
> > \stoptable
> >
> > Following example works:
> >
> > \starttable[o0|l|l|ro0|] %same as above, but without the use of the
> > defined template
> >          \NC first column \NC second column \NC third column \NC \AR
> > \stoptable
> >
> > I know that this table-environment is deprecated. But it is best suited
> > for my project. I love the use of the template with this environment.
>
> Comment the line with the \catcode command in tabl-tab.mkxl and remake
> the format file (context --make).
>
> % tabl-tab.mkxl
> \permanent\protected\def\definetabletemplate % to be redone
>    {\bgroup
>    %\catcode\barasciicode\othercatcode
>     \tabl_table_define_template}
>
> Wolfgang
>
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki     : https://wiki.contextgarden.net
>
> ___________________________________________________________________________________
>

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

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2025-02-22 17:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-02-22 15:24 [NTG-context] Bug (?) in \definetabletemplate Christian Prim via ntg-context
2025-02-22 16:21 ` [NTG-context] " Wolfgang Schuster
2025-02-22 17:08   ` Christian Prim 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).