ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* getnumber and Roman numerals
@ 2015-12-18 20:02 Piotr Kopszak
  2015-12-18 21:55 ` Hans Hagen
  2015-12-19  8:48 ` Wolfgang Schuster
  0 siblings, 2 replies; 4+ messages in thread
From: Piotr Kopszak @ 2015-12-18 20:02 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: getnumber and Roman numerals
  2015-12-18 20:02 getnumber and Roman numerals Piotr Kopszak
@ 2015-12-18 21:55 ` Hans Hagen
  2015-12-19  8:48 ` Wolfgang Schuster
  1 sibling, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2015-12-18 21:55 UTC (permalink / raw)
  To: ntg-context

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
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: getnumber and Roman numerals
  2015-12-18 20:02 getnumber and Roman numerals Piotr Kopszak
  2015-12-18 21:55 ` Hans Hagen
@ 2015-12-19  8:48 ` Wolfgang Schuster
  2015-12-20 15:17   ` Piotr Kopszak
  1 sibling, 1 reply; 4+ messages in thread
From: Wolfgang Schuster @ 2015-12-19  8:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 676 bytes --]

> 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

[-- Attachment #1.2: Type: text/html, Size: 1742 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: getnumber and Roman numerals
  2015-12-19  8:48 ` Wolfgang Schuster
@ 2015-12-20 15:17   ` Piotr Kopszak
  0 siblings, 0 replies; 4+ messages in thread
From: Piotr Kopszak @ 2015-12-20 15:17 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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 <schuster.wolfgang@gmail.com>:
> 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
> ___________________________________________________________________________________



-- 
http://okle.pl
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-12-20 15:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-18 20:02 getnumber and Roman numerals Piotr Kopszak
2015-12-18 21:55 ` Hans Hagen
2015-12-19  8:48 ` Wolfgang Schuster
2015-12-20 15:17   ` Piotr Kopszak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).