* xtables in setups
@ 2014-12-15 18:31 Andreas Schneider
2014-12-15 19:07 ` Wolfgang Schuster
0 siblings, 1 reply; 3+ messages in thread
From: Andreas Schneider @ 2014-12-15 18:31 UTC (permalink / raw)
To: mailing list for ConTeXt users
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Hi,
I'm currently setting up a xml -> pdf template for some technical
documentation and wanted to use xtables.
However they don't seem to work when within a setup/xmlsetup.
Small example (without XML, for the sake of simplicity):
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\starttext
\startsetups test
\startxtable
\startxrow
\startxcell Foo \stopxcell
\startxcell Bar \stopxcell
\stopxrow
\stopxtable
\stopsetups
\setups[test]
\stoptext
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Causes:
*
tex error > error on line 0 in file : ! Emergency stop
Is there anything I'm doing wrong here or did I stumble upon a bug?
(If there is no easy fix here, I'm probably going to use LUA to parse
the XML and write the TeX part from there which means I could circumvent
the need for setups.)
Best regards,
Andreas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iF4EAREIAAYFAlSPKQwACgkQIxziJkiYZxFTYAEAxsgkiYolYatIyoCPQNDlmp0f
pmSdU5HtzfCw2V2ZKs4BAK5E6Qu/ZrE5mIRD2qupwAffokpkIefMlLhzLPYuCTx7
=QetB
-----END PGP SIGNATURE-----
___________________________________________________________________________________
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: xtables in setups
2014-12-15 18:31 xtables in setups Andreas Schneider
@ 2014-12-15 19:07 ` Wolfgang Schuster
2014-12-15 20:28 ` Andreas Schneider
0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2014-12-15 19:07 UTC (permalink / raw)
To: mailing list for ConTeXt users
> Am 15.12.2014 um 19:31 schrieb Andreas Schneider <aksdb@gmx.de>:
>
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> Hi,
>
> I'm currently setting up a xml -> pdf template for some technical
> documentation and wanted to use xtables.
> However they don't seem to work when within a setup/xmlsetup.
>
> Small example (without XML, for the sake of simplicity):
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> \starttext
>
> \startsetups test
> \startxtable
> \startxrow
> \startxcell Foo \stopxcell
> \startxcell Bar \stopxcell
> \stopxrow
> \stopxtable
> \stopsetups
>
> \setups[test]
>
> \stoptext
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> Causes:
> *
> tex error > error on line 0 in file : ! Emergency stop
>
> Is there anything I'm doing wrong here or did I stumble upon a bug?
You have to replace \startxtable with \startembeddedxtable (and also \stopxtable with \stopembeddedxtable).
Wolfgang
___________________________________________________________________________________
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: xtables in setups
2014-12-15 19:07 ` Wolfgang Schuster
@ 2014-12-15 20:28 ` Andreas Schneider
0 siblings, 0 replies; 3+ messages in thread
From: Andreas Schneider @ 2014-12-15 20:28 UTC (permalink / raw)
To: mailing list for ConTeXt users
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Am 15.12.2014 um 20:07 schrieb Wolfgang Schuster:
> You have to replace \startxtable with \startembeddedxtable (and also \stopxtable with
\stopembeddedxtable).
>
> Wolfgang
>
Ahh, that's it. I didn't see this in the manual but was now able to find
it there :-)
I'll try tomorrow (back at work) if my document start to behave the way
I want it to when replacing these macros :-)
Thanks!
Best Regards,
Andreas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iF4EAREIAAYFAlSPRFEACgkQIxziJkiYZxGFQwD/QofIqZg5YLaxvkzlXdYC+/7o
K8fw28HlVXK/iFrCxN8BAKSBLUSY6qUq/3z3HwFHYjjc0MUvVaF9MysOUWojUfPF
=SU39
-----END PGP SIGNATURE-----
___________________________________________________________________________________
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:[~2014-12-15 20:28 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-15 18:31 xtables in setups Andreas Schneider
2014-12-15 19:07 ` Wolfgang Schuster
2014-12-15 20:28 ` Andreas Schneider
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).