Dear list, Following MWE outputs only ‘m’ characters (with latest upload). Thanks \startluacode function roman_num(n) assert(type(n) == 'number') context(tex.romannumeral(n)) end \stopluacode \define[1]\RM{\ctxlua{roman_num(#1)}} \starttext \RM{1} \RM{7} \RM{10} \RM{70} \RM{100} \stoptext |
___________________________________________________________________________________ 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 ___________________________________________________________________________________