getnumber and Roman numerals
Hello list, This probably does not make much sense in normal circumstances, as I would use simply itemize to get roman numerals for certain items then, but this time I'm using output from a script and it would be much easier for me to use \getnumber. Is it possile to convert \getnumber output to roman numerals? Piotr -- http://okle.pl
On 12/18/2015 9:02 PM, Piotr Kopszak wrote:
Hello list,
This probably does not make much sense in normal circumstances, as I would use simply itemize to get roman numerals for certain items then, but this time I'm using output from a script and it would be much easier for me to use \getnumber. Is it possile to convert \getnumber output to roman numerals?
\romannumerals{123} \Romannumerals{123} ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Piotr Kopszak mailto:kopszak@gmail.com 18. Dezember 2015 um 21:02 Hello list,
This probably does not make much sense in normal circumstances, as I would use simply itemize to get roman numerals for certain items then, but this time I'm using output from a script and it would be much easier for me to use \getnumber. Is it possile to convert \getnumber output to roman numerals?
\definecounter[mycounter] \starttext \incrementcounter[mycounter] \convertedcounter[mycounter] \incrementcounter[mycounter] \convertedcounter[mycounter][numberconversion=R] \incrementcounter[mycounter] \convertedcounter[mycounter][numberconversion=A] \stoptext Wolfgang
Perfect! That's exactly what I needed. I used numers without prefix in the end.
\definecounter[mycounter][way=bytext,prefix=no]
Many thanks!
Piotr
2015-12-19 9:48 GMT+01:00 Wolfgang Schuster
Piotr Kopszak 18. Dezember 2015 um 21:02 Hello list,
This probably does not make much sense in normal circumstances, as I would use simply itemize to get roman numerals for certain items then, but this time I'm using output from a script and it would be much easier for me to use \getnumber. Is it possile to convert \getnumber output to roman numerals?
\definecounter[mycounter]
\starttext
\incrementcounter[mycounter] \convertedcounter[mycounter]
\incrementcounter[mycounter] \convertedcounter[mycounter][numberconversion=R]
\incrementcounter[mycounter] \convertedcounter[mycounter][numberconversion=A]
\stoptext
Wolfgang
___________________________________________________________________________________ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
participants (3)
-
Hans Hagen
-
Piotr Kopszak
-
Wolfgang Schuster