From: "Werner Hintze" <we.hintze@gmail.com>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: \setnumber
Date: Thu, 22 May 2014 12:44:04 +0200 [thread overview]
Message-ID: <D555DC2B-2350-45ED-959E-DD1B3C7EE5D6@gmail.com> (raw)
In-Reply-To: <B5607E16-1105-4474-83BE-4DA1A85BA490@gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 4515 bytes --]
Thank you once more! This looks better. It’s a pity that such things
are not »wikified«… ;)
But there is a new surprise: What is knute.tex, ward.tex and tufte.tex?
Are there more of those texte? And how does one finde them?
On 22 May 2014, at 12:32, Otared Kavian wrote:
> 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=1]
> \input ward.tex
> \stopbodymatter
>
> \startbackmatter
> \setupuserpagenumber[number=1]
> \input tufte.tex
> \stopbackmatter
> \stoptext
> %%%% end example
>
> It would be nice to wikify things each time one learns something…
>
> 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’t
>> explain it this way…
>>
>> Best regards
>>
>> Werner
>>
>> On 22 May 2014, at 12:16, Otared Kavian wrote:
>>
>> Hi,
>>
>> In fact you should use
>> \setupuserpagenumber[number=1]
>> as in the following example:
>>
>> %%%% begin example
>> \starttext
>> \startfrontmatter
>> \setupuserpagenumber[numberconversion=Romannumerals]
>> \input knuth.tex
>> \stopfrontmatter
>>
>> \startbodymatter
>> \setupuserpagenumber[numberconversion=numbers]
>> \setupuserpagenumber[number=1]
>> \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’t 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’t reset the page number. I believed, it
>> shoul work like this:
>>
>> \startfrontmatter
>> \setupuserpagenumber[numberconversion=Romannumerals]
>> % some stuff
>> \stopfrontmatter
>>
>> \startbodymatter
>> \setupuserpagenumber[numberconversion=numbers]
>> \setnumber[page]{1}
>> %some stuff
>> \stopbodymatter
>> This doesn’t 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.supelec.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.supelec.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.supelec.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.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___________________________________________________________________________________
[-- Attachment #1.2: Type: text/html, Size: 5944 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
___________________________________________________________________________________
next prev parent reply other threads:[~2014-05-22 10:44 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-22 9:37 \setnumber Werner Hintze
2014-05-22 10:16 ` \setnumber Otared Kavian
2014-05-22 10:24 ` \setnumber Werner Hintze
2014-05-22 10:32 ` \setnumber Otared Kavian
2014-05-22 10:44 ` Werner Hintze [this message]
2014-05-22 10:56 ` \setnumber Otared Kavian
2014-05-22 11:50 ` \setnumber Werner Hintze
2014-05-22 12:32 ` \setnumber Otared Kavian
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=D555DC2B-2350-45ED-959E-DD1B3C7EE5D6@gmail.com \
--to=we.hintze@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).