[NTG-context] Conversion of \newcounts

Idris Samawi Hamid ادريس سماوي حامد Idris.Hamid at colostate.edu
Sun May 20 00:30:15 CEST 2018


Dear gang,

Related to the last thread ("Numbered, counted snippets in running text").  
Let us consider the same macro:

=======
\newcount \MQT
\MQT=1
\define[1]\NUM{%
\framed[offset=overlay,frame=off,background=color,backgroundcolor=green]
{\starttabulate[|c|]
\NC \mbox{\the\MQT} \NR
\NC #1 \NR
\stoptabulate}%
\advance\MQT by 1
\hbox{}}

\startTEXpage
\dorecurse{5}{Unnumbered Text \NUM{Numbered Text} }
\stopTEXpage
=======

How can one make a conversion of the numerals output by the \newcount?  
That is, how so we replace the default U+0030-U+0039 digits (0 1 2 3..)  
with some defined conversion (e.g., \romannumerals)?

Is there a ConTeXt way to setup new counts so that they can automatically  
use the conversion mechanism?

See attached. Thanks in advance for your wisdom!

Best wishes
Idris
-- 
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512
-------------- next part --------------
A non-text attachment was scrubbed...
Name: scratch.tex
Type: application/x-tex
Size: 290 bytes
Desc: not available
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20180519/85423c96/attachment.tex>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: scratch.pdf
Type: application/pdf
Size: 6565 bytes
Desc: not available
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20180519/85423c96/attachment.pdf>


More information about the ntg-context mailing list