Am 04.08.2026 um 09:10 schrieb juh+ntg-context--- via ntg-context:
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.

Do I miss something?

\setupxtable [a] [foregroundcolor=red]
\setupxtable [b] [background=color,backgroundcolor=blue]
\setupxtable [c] [foregroundstyle=italic]
\setupxtable [d] [frame=off]

\starttext

\startxtable
  \startxtablehead[a]
    \startxrow
      \startxcell A \stopxcell
    \stopxrow
  \stopxtablehead
  \startxtablebody
    \startxrow[b]
      \startxcell B \stopxcell
    \stopxrow
    \startxrow
      \startxcell[c] C \stopxcell
    \stopxrow
    \startxcellgroup[d]
    \startxrow
      \startxcell D \stopxcell
    \stopxrow
    \stopxcellgroup
  \stopxtablebody
\stopxtable

\stoptext

Wolfgang

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

Reply via email to