* TeX inside XML
@ 2012-01-05 17:33 Hans van der Meer
2012-01-06 9:47 ` Meer, H. van der
0 siblings, 1 reply; 3+ messages in thread
From: Hans van der Meer @ 2012-01-05 17:33 UTC (permalink / raw)
To: ConTeXt NTG
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: TeX inside XML
2012-01-05 17:33 TeX inside XML Hans van der Meer
@ 2012-01-06 9:47 ` Meer, H. van der
2012-01-06 16:22 ` Hans Hagen
0 siblings, 1 reply; 3+ messages in thread
From: Meer, H. van der @ 2012-01-06 9:47 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
> ___________________________________________________________________________________
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: TeX inside XML
2012-01-06 9:47 ` Meer, H. van der
@ 2012-01-06 16:22 ` Hans Hagen
0 siblings, 0 replies; 3+ messages in thread
From: Hans Hagen @ 2012-01-06 16:22 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-01-06 16:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-05 17:33 TeX inside XML Hans van der Meer
2012-01-06 9:47 ` Meer, H. van der
2012-01-06 16:22 ` Hans Hagen
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).