ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Werner Hennrich <wehe@gmx.at>
To: ntg-context@ntg.nl
Subject: Re: xtable in def or setups
Date: Tue, 18 May 2021 20:58:43 +0200	[thread overview]
Message-ID: <06169fc8-723e-360b-8a38-2e3f2ef7273b@gmx.at> (raw)
In-Reply-To: <CABaoHuv6QGkQ5Uw5GQJKRa8mHwgX4UdCc1Dbe+CymM=6QG024A@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 1848 bytes --]

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
    }

that did the job.

Thanks a lot Adam!
Cheers, W


Am 18.05.21 um 20:17 schrieb Adam Reviczky:
> Hi Werner,
>
> Did you try startembeddedxtable ?
>
> See Section 5 in the manual
> (https://www.pragma-ade.com/general/manuals/xtables-mkiv.pdf
> <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
> <mailto: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
>
>     __________________________
>


[-- Attachment #1.2: Type: text/html, Size: 5202 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

      reply	other threads:[~2021-05-18 18:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-18 17:37 Werner Hennrich
2021-05-18 18:17 ` Adam Reviczky
2021-05-18 18:58   ` Werner Hennrich [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=06169fc8-723e-360b-8a38-2e3f2ef7273b@gmx.at \
    --to=wehe@gmx.at \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).