Re: [NTG-context] \setnumber

2014-05-22 Thread Otared Kavian
Actually you are right: one can setup the userpage numbers by just saying 
way=byblock (no need to repeat numberconversionset).
Here is a complete example:

\defineconversionset[frontpart:pagenumber][][romannumerals]
\defineconversionset[bodypart:pagenumber] [][numbers]
\defineconversionset[backpart:pagenumber] [][characters]
\setupuserpagenumber[way=byblock]

\starttext

\startfrontmatter
\placecontent
\stopfrontmatter

\startbodymatter
\chapter{First chapter}
\input ward.tex
\section{A section}
\input dawkins.tex

\stopbodymatter

\startbackmatter
\chapter[title={Index},number=no]
\input tufte.tex
\stopbackmatter
\stoptext

Best regards: OK


On 22 May 2014, at 13:50, Werner Hintze  wrote:

> This is the problem: It works, but I don’t unterstand why. I make just my 
> first steps with ConTeXt…
> 
> Anyway: I found out, that this is the best solution:
> 
> \defineconversionset[frontpart:pagenumber][][romannumerals]
> \defineconversionset[bodypart:pagenumber][][numbers]
> \defineconversionset[backpart:pagenumber] [][characters
> \defineconversionset[appendix:pagenumber][][Characters]
> \setupuserpagenumber[numberconversionset=pagenumber,way=byblock]
> Now it’s not nessecary to reset the pagenumber.
> 
> Thanks for the hint about the Sample texts.
> 
> Best regards.
> 
> WH
> 
> On 22 May 2014, at 12:56, Otared Kavian wrote:
> 
> On 22 May 2014, at 12:44, Werner Hintze we.hin...@gmail.com wrote:
> 
> Thank you once more! This looks better. It’s a pity that such things are not 
> »wikified«… ;)
> 
> Once you think you have well understood something do not hesitate to wikify 
> it…
> 
> 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?
> 
> Look where you have installed the ConTeXt tree, in the following directory
> 
> tex/texmf-context/tex/context/sample
> you’ll find some other sample files which can be input for testing: they are 
> very useful!
> 
> Best regards: OK
> 
> 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
___

Re: [NTG-context] \setnumber

2014-05-22 Thread Werner Hintze
This is the problem: It works, but I don’t unterstand why. I make just 
my first steps with ConTeXt…


Anyway: I found out, that this is the best solution:

\defineconversionset[frontpart:pagenumber][][romannumerals]
\defineconversionset[bodypart:pagenumber][][numbers]
\defineconversionset[backpart:pagenumber] [][characters
\defineconversionset[appendix:pagenumber][][Characters]
\setupuserpagenumber[numberconversionset=pagenumber,way=byblock]

Now it’s not nessecary to reset the pagenumber.

Thanks for the hint about the Sample texts.

Best regards.

WH


On 22 May 2014, at 12:56, Otared Kavian wrote:


On 22 May 2014, at 12:44, Werner Hintze  wrote:

Thank you once more! This looks better. It’s a pity that such 
things are not »wikified«… ;)


Once you think you have well understood something do not hesitate to 
wikify it…


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?


Look where you have installed the ConTeXt tree, in the following 
directory


tex/texmf-context/tex/context/sample

you’ll find some other sample files which can be input for testing: 
they are very useful!


Best regards: OK
___
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
___

Re: [NTG-context] \setnumber

2014-05-22 Thread Otared Kavian

On 22 May 2014, at 12:44, Werner Hintze  wrote:

> Thank you once more! This looks better. It’s a pity that such things are not 
> »wikified«… ;)

Once you think you have well understood something do not hesitate to wikify it…

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

Look where you have installed the ConTeXt tree, in the following directory

tex/texmf-context/tex/context/sample

you’ll find some other sample files which can be input for testing: they are 
very useful!

Best regards: OK
___
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
___


Re: [NTG-context] \setnumber

2014-05-22 Thread Werner Hintze
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  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.hin...@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
___
___
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
___

Re: [NTG-context] \setnumber

2014-05-22 Thread Otared Kavian
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  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.hin...@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
___

Re: [NTG-context] \setnumber

2014-05-22 Thread Werner Hintze

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

Re: [NTG-context] \setnumber

2014-05-22 Thread Otared Kavian
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  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
___