Re: [NTG-context] Numbered, counted snippets in running text

2018-05-20 Thread Idris Samawi Hamid ادريس سماوي حامد
On Sun, 20 May 2018 08:02:46 -0600, Wolfgang Schuster wrote: \definelabel[idris][text=,headstyle=,numberconversion=R] \defineframed [NUM] [width=fit, align=middle, frame=off, background=color, backgroundcolor=green, top={\idris\par}, location=bottom] \starttext

Re: [NTG-context] Numbered, counted snippets in running text

2018-05-20 Thread Wolfgang Schuster
\definelabel[idris][text=,headstyle=,numberconversion=R] \defineframed [NUM] [width=fit, align=middle, frame=off, background=color, backgroundcolor=green, top={\idris\par}, location=bottom] \starttext \dorecurse{5}{Unnumbered Text \NUM{Numbered Text} } \stoptext Wolfgang

Re: [NTG-context] Numbered, counted snippets in running text

2018-05-19 Thread Idris Samawi Hamid ادريس سماوي حامد
On Sat, 19 May 2018 16:47:34 -0600, Henri Menke wrote: On 05/20/2018 09:34 AM, Idris Samawi Hamid ادريس سماوي حامد wrote: Dear gang, Just put together a macro that appears to do what's desired. However, is there a cleaner, more ConTeXt-like way to do this? === \newcount \MQT \MQT=1 \de

Re: [NTG-context] Numbered, counted snippets in running text

2018-05-19 Thread Henri Menke
On 05/20/2018 09:34 AM, Idris Samawi Hamid ادريس سماوي حامد wrote: > Dear gang, > > Just put together a macro that appears to do what's desired. However, is > there a cleaner, more ConTeXt-like way to do this? > > === > \newcount \MQT > \MQT=1 > \define[1]\NUM{% > \framed[offset=overlay,frame

[NTG-context] Numbered, counted snippets in running text

2018-05-19 Thread Idris Samawi Hamid ادريس سماوي حامد
Dear gang, Just put together a macro that appears to do what's desired. However, is there a cleaner, more ConTeXt-like way to do this? === \newcount \MQT \MQT=1 \define[1]\NUM{% \framed[offset=overlay,frame=off,background=color,backgroundcolor=green] {\starttabulate[|c|] \NC \mbox{\the\MQ