Hi Adam,
no, I hadn't tried that -
even tough I had skimmed over that part way back, it now escaped
me.
\long\def\iconblock[#1]#2{%\ignorespaces\startembeddedxtable[icbtable]\startxrow\startxcell[width=17mm]\externalfigure[img/#1.svg][height=15mm,width=15mm]\stopxcell\startxcell #2 \stopxcell\stopxrow\stopembeddedxtable\removeunwantedspaces}
Hi Werner,
Did you try startembeddedxtable ?
See Section 5 in the manual (https://www.pragma-ade.com/general/manuals/xtables-mkiv.pdf).
Adam
On Tue, May 18, 2021 at 6:38 PM Werner Hennrich <wehe@gmx.at> wrote:
__________________________Hello everyone,
I'm trying to create an xtable from within a \def (or within a \setups)
but always run into "runaway error: end of file encountered"
whenever the xtable-commands are in there.
\definextable[icbtable]\setupxtable[icbtable][frame=off,top=\vskip7mm]\long\def\iconblock[#1]#2{%\ignorespaces\startxtable[icbtable]\startxrow\startxcell[width=17mm]\externalfigure[img/#1.svg][height=15mm,width=15mm]\stopxcell\startxcell #2 \stopxcell\stopxrow\stopxtable\removeunwantedspaces}Is this simply not possible or am I doing something wrong there?
system > ConTeXt ver: 2021.05.15 22:45 LMTX fmt: 2021.5.18 int: english/english
Thank you,
Werner