From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/87478 Path: news.gmane.org!not-for-mail From: Otared Kavian Newsgroups: gmane.comp.tex.context Subject: Re: \setnumber Date: Thu, 22 May 2014 12:32:37 +0200 Message-ID: References: <04374EC9-9AB1-4AE8-8260-6CCB604A7500@gmail.com> <85BE3EF1-3288-4560-B83D-03840F1A0B03@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.2\)) Content-Type: multipart/mixed; boundary="===============1247061044==" X-Trace: ger.gmane.org 1400754785 10293 80.91.229.3 (22 May 2014 10:33:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 22 May 2014 10:33:05 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu May 22 12:33:01 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WnQJ2-0006fu-Tc for gctc-ntg-context-518@m.gmane.org; Thu, 22 May 2014 12:33:01 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3474F1023E for ; Thu, 22 May 2014 12:33:00 +0200 (CEST) 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 7-y38oglNCds for ; Thu, 22 May 2014 12:33:00 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 0083910226 for ; Thu, 22 May 2014 12:32:56 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5374E101E8 for ; Thu, 22 May 2014 12:32:51 +0200 (CEST) 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 K-6NL4BR4jkw for ; Thu, 22 May 2014 12:32:49 +0200 (CEST) Original-Received: from filter1-utr.mf.surf.net (filter1-utr.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id 5567F101E2 for ; Thu, 22 May 2014 12:32:40 +0200 (CEST) Original-Received: from mail-wi0-x22f.google.com (mail-wi0-x22f.google.com [IPv6:2a00:1450:400c:c05::22f]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s4MAWbpM030221 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Thu, 22 May 2014 12:32:38 +0200 Original-Received: by mail-wi0-f175.google.com with SMTP id f8so9009298wiw.14 for ; Thu, 22 May 2014 03:32:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:message-id:mime-version:subject:date:references :to:in-reply-to; bh=z9tRPPe8OcL3rsQidCqGhlroFfAM5S0rvuBlyJeB8SI=; b=vFuo6XqazLyYkzfCDChk93Vp1ah/yu3NTqz2oGvrfkTze9xd0yyi/Dv/Rw6TeVK37K zpzK+1zHAZ2/9RgN9Uxx7tYDeGgFcIYG2R8MeIdsv0HE8Qax1pbJU4DYdw9xpmUHH2eO IynQXWZTfXhyxWW6SRbzOwNeadk4LMwra2uZyzOzrfLowhtaVOiLb+rirhEJM7SKPV7n S0icY5zOxNrhmAj2N+Ou6GWrbWc8ZaSWWZdx59Bl4B7DHx/WvPt86eObcSlGCKwswHFz VdMigr2y+lAwinbTUsvtN5MHp7w2m6+vKaGm3mq3lSzbWVlHsx/LG+rWwAKG66f7CMG2 tf8A== X-Received: by 10.194.158.132 with SMTP id wu4mr924623wjb.96.1400754759030; Thu, 22 May 2014 03:32:39 -0700 (PDT) Original-Received: from [192.168.0.20] (seg75-6-82-236-32-4.fbx.proxad.net. [82.236.32.4]) by mx.google.com with ESMTPSA id fa10sm7230714wib.18.2014.05.22.03.32.38 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 22 May 2014 03:32:38 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1878.2) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c05::22f; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07M4WwCCw - a3f221c34da4 - 20140522 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 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-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:87478 Archived-At: --===============1247061044== Content-Type: multipart/alternative; boundary="Apple-Mail=_6D9D158F-F008-4475-B5F3-530E2F415780" --Apple-Mail=_6D9D158F-F008-4475-B5F3-530E2F415780 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Actually the issue was discussed some time ago and Wolfgang Schuster = explained that. In fact after sending you the previous answer I realized that he = explained also that the right way is to use \defineconversionset and = then reset the userpagenumber when necessary: look at the following = example: %%%% begin example \defineconversionset[frontpart:pagenumber][][romannumerals] \defineconversionset[bodypart:pagenumber] [][numbers] \defineconversionset[backpart:pagenumber] [][characters] \starttext \startfrontmatter \input knuth.tex \stopfrontmatter \startbodymatter \setupuserpagenumber[number=3D1] \input ward.tex \stopbodymatter \startbackmatter \setupuserpagenumber[number=3D1] \input tufte.tex \stopbackmatter \stoptext %%%% end example It would be nice to wikify things each time one learns something=85 Best regards: OK On 22 May 2014, at 12:24, Werner Hintze wrote: > Thank you! This works. >=20 > But tell me: How do you know this? The manual and the website don=92t = explain it this way=85 >=20 > Best regards >=20 > Werner >=20 > On 22 May 2014, at 12:16, Otared Kavian wrote: >=20 > Hi, >=20 > In fact you should use > \setupuserpagenumber[number=3D1] > as in the following example: >=20 > %%%% begin example > \starttext > \startfrontmatter > \setupuserpagenumber[numberconversion=3DRomannumerals] > \input knuth.tex > \stopfrontmatter >=20 > \startbodymatter > \setupuserpagenumber[numberconversion=3Dnumbers] > \setupuserpagenumber[number=3D1] > \input ward.tex > \stopbodymatter > \stoptext > %%%% end example >=20 > Best regards: OK >=20 > On 22 May 2014, at 11:37, Werner Hintze we.hintze@gmail.com wrote: >=20 > I don=92t unterstand \startfrontmatter, \starbodymatter etc. >=20 > I thought, the frontmatter has roman numerals, the bodymatter normal = and so on. This is not automatically so. Now founf how to make this, bus = the problem is: I can=92t reset the page number. I believed, it shoul = work like this: >=20 > \startfrontmatter > \setupuserpagenumber[numberconversion=3DRomannumerals] > % some stuff > \stopfrontmatter >=20 > \startbodymatter > \setupuserpagenumber[numberconversion=3Dnumbers] > \setnumber[page]{1} > %some stuff > \stopbodymatter > This doesn=92t work, may be because \setnumber is not a command in = ConTeXt? >=20 > Where is my error? >=20 > 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 >=20 > 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 >=20 > = __________________________________________________________________________= _________ > 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 > = __________________________________________________________________________= _________ --Apple-Mail=_6D9D158F-F008-4475-B5F3-530E2F415780 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252 Actually the issue was discussed some time ago and = Wolfgang Schuster explained that.
In fact after sending you the = previous answer I realized that he explained also that the right way is = to use \defineconversionset and then reset the userpagenumber when = necessary: look at the following example:

%%%% = begin = example
\defineconversionset[frontpart:pagenumber][][romann= umerals]
\defineconversionset[bodypart:pagenumber] = [][numbers]
\defineconversionset[backpart:pagenumber] = [][characters]

\starttext
\startfrontma= tter
\input = knuth.tex
\stopfrontmatter

\startbodyma= tter
\setupuserpagenumber[number=3D1]
\input = ward.tex
\stopbodymatter

\startbackmatt= er
\setupuserpagenumber[number=3D1]
\input = tufte.tex
\stopbackmatter
\stoptext
%%= %% end example

It would be nice to wikify = things each time one learns something=85

Best = regards: OK

On 22 May 2014, at 12:24, Werner = Hintze <we.hintze@gmail.com> = wrote:

Thank you! This = works.

But tell me: How do you know this? The manual = and the website don=92t explain it this way=85

Best = regards

Werner

On 22 May 2014, at = 12:16, Otared Kavian wrote:

Hi,

In fact you should = use
\setupuserpagenumber[number=3D1]
as in the following example:

%%%% begin example
\starttext
\startfrontmatter
\setupuserpagenumber[numberconversion=3DRomannumerals]
\input knuth.tex
\stopfrontmatter

\startbodymatter
\setupuserpagenumber[numberconversion=3Dnumbers]
\setupuserpagenumber[number=3D1]
\input ward.tex
\stopbodymatter
\stoptext
%%%% end example

Best regards: OK

On= 22 May 2014, at 11:37, Werner Hintze we.hintze@gmail.com wrote:

I don=92t unterstand \startfrontmatter, = \starbodymatter etc.

I thought, the frontmatter has = roman numerals, the bodymatter normal and so on. This is not = automatically so. Now founf how to make this, bus the problem is: I = can=92t reset the page number. I believed, it shoul work like = this:

\startfrontmatter
\setupuserpagenumber[numberconversion=3DRomannumerals]
% some stuff
\stopfrontmatter

\startbodymatter
\setupuserpagenumber[numberconversion=3Dnumbers]
\setnumber[page]{1}
%some stuff
\stopbodymatter
This doesn=92t work, may be because \setnumber is not a command in = ConTeXt?

Where is my error?


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



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


=
____________________________________________________________________= _______________
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
________= __________________________________________________________________________= _

= --Apple-Mail=_6D9D158F-F008-4475-B5F3-530E2F415780-- --===============1247061044== 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 ___________________________________________________________________________________ --===============1247061044==--