From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/93119 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: getnumber and Roman numerals Date: Sat, 19 Dec 2015 09:48:28 +0100 Message-ID: <567519DC.1060707@gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4506430893614770299==" X-Trace: ger.gmane.org 1450514947 27665 80.91.229.3 (19 Dec 2015 08:49:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 19 Dec 2015 08:49:07 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Dec 19 09:48:54 2015 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aADC9-0006co-7p for gctc-ntg-context-518@m.gmane.org; Sat, 19 Dec 2015 09:48:53 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 6631C5821; Sat, 19 Dec 2015 09:48:42 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QUZOTpuuR2Ck; Sat, 19 Dec 2015 09:48:41 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id B6C585809; Sat, 19 Dec 2015 09:48:41 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 4737657F1 for ; Sat, 19 Dec 2015 09:48:40 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MawhBwihyGeb for ; Sat, 19 Dec 2015 09:48:39 +0100 (CET) Original-Received: from mail-wm0-f54.google.com (mail-wm0-f54.google.com [74.125.82.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id C636557F0 for ; Sat, 19 Dec 2015 09:48:29 +0100 (CET) Original-Received: by mail-wm0-f54.google.com with SMTP id l126so12360908wml.0 for ; Sat, 19 Dec 2015 00:48:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; bh=Yx3Lj/TxNaV+9Ll/czSufWHgjJMnfx2+LrBrAcoiZ08=; b=o1aXbJaMzsUMRcb6zTWXZxio4neDuE/+rSDhqV/N0f2TNPXQriS7UQqN/w9TTuNkjo lP5ysnlSak1kYYWhXJdXjVgl+nX6tRpiubVchW/ClKjaOloUNHhv0ndQDIqDWoQ6X7V8 RLcb79HRLuBlJsaOJfW8pJVQpyg4Y1vSNiysRZIOCBPnQ0+HEqxnUZr8qq9jBpf0aJlg WVGKHU9sUFqxFmG5aJhZZM/Jb6zYiqUGWwnqSIhhDJrKI+EFBEdAxzCznIMlkYLg6oCr UfB0UzQIPs7SMw2GQ8WGze7wkvw35X+FS1KPtlyuuQb3uTqDxjzY1iMOvG/IDPLNWqM/ d3PA== X-Received: by 10.194.205.134 with SMTP id lg6mr8357264wjc.156.1450514909403; Sat, 19 Dec 2015 00:48:29 -0800 (PST) Original-Received: from keima.localdomain (x2f218a4.dyn.telefonica.de. [2.242.24.164]) by smtp.googlemail.com with ESMTPSA id q4sm18208028wja.6.2015.12.19.00.48.28 for (version=TLSv1/SSLv3 cipher=OTHER); Sat, 19 Dec 2015 00:48:28 -0800 (PST) User-Agent: Postbox 4.0.8 (Macintosh/20151105) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:93119 Archived-At: This is a multi-part message in MIME format. --===============4506430893614770299== Content-Type: multipart/alternative; boundary="------------010504080800000600040301" This is a multi-part message in MIME format. --------------010504080800000600040301 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit > 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 --------------010504080800000600040301 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
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
--------------010504080800000600040301-- --===============4506430893614770299== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============4506430893614770299==--