Re: Named elements in xtables
Aditya Mahajan <[email protected]> Tue, 4 Aug 2026 20:56:21 -0400 (EDT)
| Newsgroups | gmane.comp.tex.context |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 4 Aug 2026, juh+ntg-context--- via ntg-context wrote:
> Dear all,
>
> I just discovered that pandoc produces xtables with named elements which
> produces these errors.
>
> setup > error in line 2, namespace '498', key 'head,'
> setup > error in line 2, namespace '498', key 'lastrow,'
> setup > error in line 11, namespace '498', key 'body,'
> setup > error in line 21, namespace '498', key 'lastrow,'
> setup > error in line 30, namespace '498', key 'foot,'
> setup > error in line 2, namespace '498', key 'head,'
> setup > error in line 2, namespace '498', key 'lastrow,'
> setup > error in line 11, namespace '498', key 'body,'
> setup > error in line 21, namespace '498', key 'lastrow,'
> setup > error in line 30, namespace '498', key 'foot,'
> setup > error in line 2, namespace '498', key 'head,'
> setup > error in line 2, namespace '498', key 'lastrow,'
> setup > error in line 11, namespace '498', key 'body,'
> setup > error in line 21, namespace '498', key 'lastrow,'
> setup > error in line 30, namespace '498', key 'foot,'
>
> AFAICS it is not possible to define a named tablehead like this:
>
> \definextablehead[head]
>
> ConTeXt does not stop, so no big problem.
>
> But it would offer styling opportunities in a production chain with pandoc if
> it is possible.
BTW, you should include the full pandoc preamble (or generate the context output using `pandoc -s -t context`). It includes (among other things):
\setupxtable[frame=off]
\setupxtable[head][topframe=on]
\setupxtable[body][]
\setupxtable[foot][]
\setupxtable[lastrow][bottomframe=on]
Aditya
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : [email protected] / 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
___________________________________________________________________________________