![](https://secure.gravatar.com/avatar/1b8f1875b4b2155b58cd46103e7632fd.jpg?s=120&d=mm&r=g)
I need to do some ConTeXt work inside an XML-proces. In principle this works for most TeX-code through an appropriate xmlsetup that calls \xmlcontext. However some code has problems, and it will be no surprise that it concerns table suff. The error is: Misplaced \omit ... \@tbxmultispans #1->\omit \scratchcounter #1\relax \advance \scratchcounter … As this code runs fine in normal ConTeXt environments, the suspicion is some catcode problem. Can I set inside the \xmlsetup-code something to have \xmlcontext using the correct catcode's, iff that turns out to be the problem of course. Thanks in advance. Hans van der Meer
![](https://secure.gravatar.com/avatar/29c7bbff49b1599eddb2ec73fd9ffa6e.jpg?s=120&d=mm&r=g)
Allthough typesetting through xmlcontext crashed, while direct typesetting did not, the culprit does not seem to be in the different routes. After one day ploughing through \halign and friends, I think I can nail it to a specific \omit in my code. Not that all problems are solved with that find, but it is a start. Anyway, for the moment no reason to panic about \xmlcontext. I hope this will please Hans Hagen, a bit. Hans van der Meer On 5 jan. 2012, at 18:33, Hans van der Meer wrote:
I need to do some ConTeXt work inside an XML-proces. In principle this works for most TeX-code through an appropriate xmlsetup that calls \xmlcontext. However some code has problems, and it will be no surprise that it concerns table suff. The error is:
Misplaced \omit ... \@tbxmultispans #1->\omit \scratchcounter #1\relax \advance \scratchcounter …
As this code runs fine in normal ConTeXt environments, the suspicion is some catcode problem. Can I set inside the \xmlsetup-code something to have \xmlcontext using the correct catcode's, iff that turns out to be the problem of course.
Thanks in advance.
Hans van der Meer
___________________________________________________________________________________ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
On 6-1-2012 10:47, Meer, H. van der wrote:
Allthough typesetting through xmlcontext crashed, while direct typesetting did not, the culprit does not seem to be in the different routes. After one day ploughing through \halign and friends, I think I can nail it to a specific \omit in my code. Not that all problems are solved with that find, but it is a start. Anyway, for the moment no reason to panic about \xmlcontext.. I hope this will please Hans Hagen, a bit.
ah .. \omit ... then you really ended up in the dark internals .. sometimes a \relax helps but tex does some nasty lookahead in alignments that can easily interfere .. hard to fight Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (3)
-
Hans Hagen
-
Hans van der Meer
-
Meer, H. van der