From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/73114 Path: news.gmane.org!not-for-mail From: Otared Kavian Newsgroups: gmane.comp.tex.context Subject: Re: Reverse numbering Date: Mon, 12 Dec 2011 15:40:42 +0100 Message-ID: References: <6CF8AAD6-284B-45B4-BAA3-2821DBA15988@googlemail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: multipart/mixed; boundary="===============1224638991==" X-Trace: dough.gmane.org 1323700871 19370 80.91.229.12 (12 Dec 2011 14:41:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 12 Dec 2011 14:41:11 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Dec 12 15:41:07 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ra73w-0006FF-7P for gctc-ntg-context-518@m.gmane.org; Mon, 12 Dec 2011 15:41:04 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0DA72CB168; Mon, 12 Dec 2011 15:41:04 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id R2WgFy+g4L5p; Mon, 12 Dec 2011 15:41:03 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E883DCB13F; Mon, 12 Dec 2011 15:40:57 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 44B84CB15F for ; Mon, 12 Dec 2011 15:40:56 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 9r0-LEn-nxzK for ; Mon, 12 Dec 2011 15:40:50 +0100 (CET) Original-Received: from filter4-nij.mf.surf.net (filter4-nij.mf.surf.net [195.169.124.155]) by balder.ntg.nl (Postfix) with ESMTP id 04E4ECB13F for ; Mon, 12 Dec 2011 15:40:50 +0100 (CET) Original-Received: from mail-vx0-f169.google.com (mail-vx0-f169.google.com [209.85.220.169]) by filter4-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id pBCEem0G008925 for ; Mon, 12 Dec 2011 15:40:49 +0100 Original-Received: by vcbfk26 with SMTP id fk26so5090043vcb.14 for ; Mon, 12 Dec 2011 06:40:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:mime-version:content-type:subject:date:in-reply-to:to :references:message-id:x-mailer; bh=KkflifNhGB6lUzcaSLgjXjZO5KwOmBPLHwvnn8Fnve0=; b=hqPHFDh+gC3sXxDePMB6CS3ILJfQko+s95MsljFtw3j0QndzjS5/xbNmtl12NSHYcZ /KLVO8ZGaeoAoPTBbkFQTP/Ml9ae4DW4GbU4xOKkKiRNobszk5e/mfFnbC3pGGm/EgkQ qhg0PNcf60WhFeuFUpFGgxtgETYebDR2hW3SU= Original-Received: by 10.52.36.112 with SMTP id p16mr9933694vdj.31.1323700846497; Mon, 12 Dec 2011 06:40:46 -0800 (PST) Original-Received: from lmv-uvsq-102.home (AOrleans-553-1-40-212.w92-152.abo.wanadoo.fr. [92.152.70.212]) by mx.google.com with ESMTPS id em10sm14390498vdc.6.2011.12.12.06.40.44 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 12 Dec 2011 06:40:45 -0800 (PST) In-Reply-To: <6CF8AAD6-284B-45B4-BAA3-2821DBA15988@googlemail.com> X-Mailer: Apple Mail (2.1251.1) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.220.169; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 04G8eEMKs - 2edc10f910f4 - 20111212 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.155 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:73114 Archived-At: --===============1224638991== Content-Type: multipart/alternative; boundary="Apple-Mail=_D56BD85A-E7FB-4CA9-B073-5E24BD87839E" --Apple-Mail=_D56BD85A-E7FB-4CA9-B073-5E24BD87839E Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Hi Wolfgang, Thank you for your attention: in fact you pointed out how to solve the = problem=85=20 Beginning with what you wrote, after a few trials and errors I ended up = with the following which gives what I meant: %%% begin reverse-enumeration.tex \definenumber[ReverseNumberOrder][numberorder=3Dreverse] \defineenumeration[Lecture] [location=3Dhanging, text=3D{Lecture n=B0 {\convertednumber[ReverseNumberOrder]}.},=20= between=3D, before=3D{\incrementnumber[ReverseNumberOrder]}, number=3Dno, after=3D{\hrule\blank}] \starttext \startLecture Tuesday December 6th: Banach spaces.=20 \startitemize[n] \item First subject. \item Second subject. \stopitemize \stopLecture \startLecture Tuesday November 29th: Norms.=20 \startitemize[n] \item First subject. \item Second subject. \stopitemize \stopLecture \startLecture Tuesday November 22nd: Topological Vector Spaces.=20 \startitemize[n] \item First subject. \item Second subject. \stopitemize \stopLecture \stoptext %%% end reverse-enumeration.tex Best regards: OK On 12 d=E9c. 2011, at 14:03, Wolfgang Schuster wrote: >=20 > Am 12.12.2011 um 13:33 schrieb Otared Kavian: >=20 >> Hi all, >>=20 >> When using=20 >> \startitemize[n,reverse] >> one gets items numbered in reverse order. I wonder if this feature = exists also for enumerations. An example is given below in which the = last enumeration is written on top of the file and I wish it were = possible to have the enumerations numbered in reverse order. >=20 > The numbering mechanism has indeed such a option but it seems to be = not available for enumerations. >=20 > \definenumber[foo] > \definenumber[bar][numberorder=3Dreverse] >=20 > \define\test > {\incrementnumber[foo] \incrementnumber[bar]% > \convertednumber[foo]:\convertednumber[bar]} >=20 > \starttext > \dorecurse{9}{\test\par} > \stoptext >=20 > Wolfgang > = __________________________________________________________________________= _________ > If your question is of interest to others as well, please add an entry = to the Wiki! >=20 > 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 > = __________________________________________________________________________= _________ %%%%%%%%%%%%%%%%%% Otared Kavian D=E9partement de Math=E9matiques Universit=E9 de Versailles Saint-Quentin B=E2timent Fermat 45 avenue des Etats Unis 78035 Versailles cedex T=E9l=E9phone: +33 1 39 25 46 42 Secr=E9tariat: +33 1 39 25 46 44=20 Secr=E9tariat: +33 1 39 25 46 46 e-mail: Otared.Kavian@math.uvsq.fr --Apple-Mail=_D56BD85A-E7FB-4CA9-B073-5E24BD87839E Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252 Hi = Wolfgang,

Thank you for your attention: in fact you = pointed out how to solve the problem=85 
Beginning with = what you wrote, after a few trials and errors I ended up with the = following which gives what I meant:
%%% = begin reverse-enumeration.tex
\definenumber[ReverseNum= berOrder][numberorder=3Dreverse]

\defineenumerati= on[Lecture]
= [location=3Dhanging,
text=3D{Lecture n=B0 = {\convertednumber[ReverseNumberOrder]}.}, 
= between=3D,
= before=3D{\incrementnumber[ReverseNumberOrder]},
= number=3Dno,
= after=3D{\hrule\blank}]

\starttext

\startLecture Tuesday December 6th: Banach = spaces. 
\startitemize[n]
\item First = subject.
\item Second = subject.
\stopitemize
\stopLecture

\startLecture Tuesday November 29th: = Norms. 
\startitemize[n]
\item First = subject.
\item Second = subject.
\stopitemize
\stopLecture

\startLecture Tuesday November 22nd: Topological Vector = Spaces. 
\startitemize[n]
\item First = subject.
\item Second = subject.
\stopitemize
\stopLecture

\stoptext
%%% end = reverse-enumeration.tex

Best regards: = OK

On 12 d=E9c. 2011, at 14:03, Wolfgang = Schuster wrote:


Am 12.12.2011 um 13:33 schrieb Otared = Kavian:

Hi = all,

When using =
= \startitemize[n,reverse]
one gets items numbered in reverse order. I wonder if this = feature exists also for enumerations. An example is given below in which = the last enumeration is written on top of the file and I wish it were = possible to have the enumerations numbered in reverse = order.

The numbering mechanism has indeed such a = option but it seems to be not available for = enumerations.

\definenumber[foo]
\definenumber[bar][numberorder=3D= reverse]

\define\test
 {\incrementnumber[foo] = \incrementnumber[bar]%
=   \convertednumber[foo]:\convertednumber[bar]}

\starttext=
\dorecurse{9}{\test\par}
\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.sup= elec.fr/projects/contextrev/
wiki     : http://contextgarden.net
________= __________________________________________________________________________= _

Otared.Kavian@math.uvsq.fr<= /div>




= --Apple-Mail=_D56BD85A-E7FB-4CA9-B073-5E24BD87839E-- --===============1224638991== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1224638991==--