[NTG-context] Using TABLE in a definition etc.

Wolfgang Schuster wolfgang.schuster at gmail.com
Sun Aug 17 20:06:45 CEST 2014


Am 17.08.2014 um 18:59 schrieb Idris Samawi Hamid ادريس سماوي حامد <ishamid at colostate.edu>:

> Dear Knights,
> 
> Solved (I think):
> 
> ================
> \def\Glyphbox#1#2#3{%
> \setupframed[frame=off,align=middle,offfset=none]
> \framed{\cbox{
> \bTABLE[align=middle]
> \bTR \bTD \csname gulistan#1\endcsname \fontchar{#2} \eTD \eTR
> \bTR \bTD \fontchar{#2} \eTD \eTR
> \bTR \bTD #1 \eTD \eTR
> \bTR \bTD #3 \eTD \eTR
> \eTABLE
> }}
> }
> ================
> 
> Silly me forgot the #1#2#3... and remembered csname; this is probably my first time ever using it in a macro... We'll see if further issues arise…

There is no need for the table, you can do everything with \framed alone.

\define[3]\Glyphbox
  {\framed[frame=off,align=middle]\bgroup
     {\getvalue{gulistan#1}\fontchar{#2}}\\
     \fontchar{#2}\\
     #1\\
     #3%
   \egroup}

Wolfgang


More information about the ntg-context mailing list