[NTG-context] Splitting natural table fails with xtable in footer

Andreas Schneider aksdb at gmx.de
Thu Oct 1 12:52:26 CEST 2015


Hello,

In the following minimal example, an error occurs when build the file 
(with a recent context version):

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\starttext

\startsetups[s:footer]
   
\startembeddedxtable[frame=off,distance=5pt,bodyfont=6pt,option=stretch]
     \startxrow
       \startxcell Filename: \stopxcell
       \startxcell[distance=1cm] \outputfilename.pdf \stopxcell
     \stopxrow
   \stopembeddedxtable
\stopsetups

\setupheader[style=\tx]
\setupfooter[style=\tx]
\setupfootertexts[\setups{s:footer}][][][\setups{s:footer}]

\startchapter[title={Test}]
   \placetable[split]{Test}{
   \bTABLE[split=repeat]
     \bTABLEhead
       \bTR \bTD Col1 \eTD \bTD Col2 \eTD \eTR
     \eTABLEhead
     \bTABLEbody
       \dorecurse{50}{\bTR \bTD Value1 \eTD \bTD Value2 \eTD \eTR}
     \eTABLEbody
   \eTABLE}
\stopchapter

\stoptext
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The error is as follows:

>>>>>>>>>>>>>>>>>>>> 
This is LuaTeX, Version beta-0.80.0 (TeX Live 2015) (rev 5238)
ConTeXt  ver: 2015.09.13 13:31 MKIV beta  fmt: 2015.10.1  int: 
english/english
...
tex error       > tex error on line 25 in file 
/Users/aese/Temp/ctx/split.tex: ! You can't use `\prevdepth' in 
restricted horizontal mode
...
tex error       > tex error on line 25 in file 
/Users/aese/Temp/ctx/split.tex: ! Illegal unit of measure (pt inserted)
>>>>>>>>>>>>>>>>>>>> 


In reality my footer is lot more complex (huge table :-)) and I see no 
better way to handle this.

Is there a way to fix this situation? (Preferable without rolling out a 
new ConTeXt version?)

Best regards,
Andreas


More information about the ntg-context mailing list