Re: [NTG-context] Pagenumbering with \setupcounter[userpagenumber]

2020-07-29 Thread Wolfgang Schuster

Willi Egger schrieb am 29.07.2020 um 21:43:

Good evening!

I am trying to make use of the userpagenumber counter. I have a book at hand, 
where I need to adjust the start of the pagenumbering.

It appears to me, that the \setupcounter[userpagenumber[state=stop] and later 
the \setupcounter[userpagenumber][state=start,start=7] is not giving the 
expected result.

MWE:

[...]


Is this a bug or do I miss something?


The second one.

The name of the counter isn't "userpagenumber" and you don't even have 
to know the name of the counter because \setupuserpagenumber has the 
same options (and passes the values to \setupcounter).


\setupfootertexts[\userpagenumber]

\starttext

\setupuserpagenumber[state=stop]

\dorecurse{10}{\input knuth }

\page \setupuserpagenumber[state=start,number=7]

\dorecurse{10}{\input zapf }

\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Pagenumbering with \setupcounter[userpagenumber]

2020-07-29 Thread Willi Egger
Good evening!

I am trying to make use of the userpagenumber counter. I have a book at hand, 
where I need to adjust the start of the pagenumbering.

It appears to me, that the \setupcounter[userpagenumber[state=stop] and later 
the \setupcounter[userpagenumber][state=start,start=7] is not giving the 
expected result.

MWE:

% Context file

\mainlanguage[en]

\usetypescript[termes]
\setupbodyfont[termes,9pt]

\setuppapersize [A5][A5]


\setuppagenumbering[location=,alternative=doublesided]

\setupheadertexts
[text]
[]
[\userpagenumber]
[\userpagenumber]
[{\getmarking[chapter]}]

\setupfootertexts
[]
[\pagenumber]
[\pagenumber]
[]

\setupmakeup[standard][top=,bottom=,doublesided=yes]

\setupcounter[userpagenumber][state=stop]

\starttext

\startstandardmakeup[page=yes,doublesided=yes]
\strut
\godown[.2\textheight]
\rightaligned{Bramble-Bees}
\stopstandardmakeup

\startstandardmakeup[doublesided=yes,page=yes]
\strut
\godown[.1\textheight]
\startalignment[middle]
{\bfb BRAMBLE-BEES AND OTHER} 
\blank[line]
{\bfa by J. HENRI FABRE}
\stopalignment
\vfill
\startalignment[middle]
{TRANSLATED BY ALEXANDER TEIXEIRA DE MATTOS, F.Z.S.}
\stopalignment
\stopstandardmakeup


\starttitle[title={TRANSLATOR'S NOTE.}]
\input ward
\stoptitle


\setupcounter[userpagenumber][state=start,number=7]

\starttitle[title=Contents]
\placelist[chapter]
\stoptitle

\startchapter[title=Ward]
\input ward
\stopchapter

\startchapter[title=Knuth]
\input knuth
\stopchapter

\stoptext


Is this a bug or do I miss something?

Kind regards

Willi
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Pagenumbering

2013-06-05 Thread Tim Steenvoorden
I doing something wrong is this a bug? 

\starttext
\setupcounter[userpage][10]
\dorecurse{3}{
\input tufte
\page
}
\stoptext



current version: 2013.05.28 00:36
= Doesn't start at page 10 but at page 1

Cheers,
Tim


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

2013-06-05 Thread Marco Patzer
On 2013–06–05 Tim Steenvoorden wrote:

 I doing something wrong is this a bug? 
 
 \starttext
 \setupcounter[userpage][10]

\setcounter [userpage] [10]


Marco


signature.asc
Description: Digital signature
___
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] Pagenumbering

2013-06-05 Thread Tim Steenvoorden
Oh god, stupid me.  

Thanks, Marco!

Cheers,
Tim


Op woensdag 5 juni 2013, om 12:54 heeft Marco Patzer het volgende geschreven:

 On 2013–06–05 Tim Steenvoorden wrote:
  
  I doing something wrong is this a bug?  
   
  \starttext
  \setupcounter[userpage][10]
  
  
  
 \setcounter [userpage] [10]
  
  
 Marco
 ___
 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
___

[NTG-context] pagenumbering and part options

2011-11-21 Thread Idris Samawi Hamid ادريس سماوي حامد

Dear gang,

Ok this is embarrassing, but I can't seen to figure this one out. To solve
the current issue I need either

1. a \part, let's define it as \partsuper, that does one thing and ONLY
one thing:

\starttext

\partsuper{Super Part 1}

text page numbers 1, 2, 3, , n

\partsuper{Super Part 2}

text page numbers 1, 2, 3, , n

\stoptext

So after each partsuper, the pagenumber is reset to one. But the partsuper
is not typeset, does not generate anything in the listings, toc, etc etc.
In other words, it's completely invisible in the output, except that the
pagenumbering in reset.

One possibility: In addition to resetting the page no, \partsuper may
create document numbers of the form

\starttext

\partsuper{Super Part 1}

text page my-prefix-1, my-prefix-2, my-prefix-3, ,
my-prefix-n

\partsuper{Super Part 2}

text page numbers my-other-prefix-1, my-other-prefix-2,
my-other-prefix-3, , my-other-prefix-n

\stoptext



2. The other, less sophisticated option: How do I get \setuppagenumbering
to simply just reset the current pagenumber to 1 and start from 1
again?

Again I can do my-prefix for the first range of pagenumbers and
my-other-prefix for the second.

===

Let me explain the big picture. I have two (rather large) structured
documents. I need to

a) compile both at the same time to manage cross-references between each;

b) have each start at page 1. \setuppagenumbering[number=1] does not seem  
to work:


===

===

For cross references I have defined a mirror for each document structure
element. For \chapter in Book One we use \chaptertwo in Book Two etc., so
each book has its own TOC that does not interfere with the other etc.

===

With this in mind, I need your help, gang!

Best wishes
Idris




--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shīʿī Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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
___

[NTG-context] pagenumbering and part options [CORRECTED]

2011-11-21 Thread Idris Samawi Hamid ادريس سماوي حامد

[please ignore other one]

Dear gang,

Ok this is embarrassing, but I can't seen to figure this one out. To solve
the current issue I need either

1. a \part, let's define it as \partsuper, that does one thing and ONLY
one thing:

\starttext

\partsuper{Super Part 1}

text page numbers 1, 2, 3, , n

\partsuper{Super Part 2}

text page numbers 1, 2, 3, , n

\stoptext

So after each partsuper, the pagenumber is reset to one. But the partsuper
is not typeset, does not generate anything in the listings, toc, etc etc.
In other words, it's completely invisible in the output, except that the
pagenumbering in reset.

One possibility: In addition to resetting the page no, \partsuper may
create document numbers of the form

\starttext

\partsuper{Super Part 1}

text page my-prefix-1, my-prefix-2, my-prefix-3, ,
my-prefix-n

\partsuper{Super Part 2}

text page numbers my-other-prefix-1, my-other-prefix-2,
my-other-prefix-3, , my-other-prefix-n

\stoptext



2. The other, less sophisticated option: How do I get \setuppagenumbering
to simply just reset the current pagenumber to 1 and start from 1
again?

Again I can do my-prefix for the first range of pagenumbers and
my-other-prefix for the second.

===

Let me explain the big picture. I have two (rather large) structured
documents. I need to

a) compile both at the same time to manage cross-references between each;

b) have each start at page 1. \setuppagenumbering[number=1] does not seem
to work:

===
\starttext
\dorecurse{28}{\input knuth\par }
\setuppagenumbering[state=stop]
\dorecurse{28}{\input knuth\par }
\setuppagenumbering[state=start]
\dorecurse{28}{\input knuth\par }
\setuppagenumbering[number=1]
\dorecurse{28}{\input knuth\par }
\stoptext
===

For cross references I have defined a mirror for each document structure
element. For \chapter in Book One we use \chaptertwo in Book Two etc., so
each book has its own TOC that does not interfere with the other etc.

===

With this in mind, I need your help, gang!

Best wishes
Idris
--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shīʿī Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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
___

[NTG-context] pagenumbering and part options [CORRECTED]

2011-11-21 Thread Idris Samawi Hamid ادريس سماوي حامد

[please ignore other one]

Dear gang,

Ok this is embarrassing, but I can't seen to figure this one out. To solve
the current issue I need either

1. a \part, let's define it as \partsuper, that does one thing and ONLY
one thing:

\starttext

\partsuper{Super Part 1}

text page numbers 1, 2, 3, , n

\partsuper{Super Part 2}

text page numbers 1, 2, 3, , n

\stoptext

So after each partsuper, the pagenumber is reset to one. But the partsuper
is not typeset, does not generate anything in the listings, toc, etc etc.
In other words, it's completely invisible in the output, except that the
pagenumbering in reset.

One possibility: In addition to resetting the page no, \partsuper may
create document numbers of the form

\starttext

\partsuper{Super Part 1}

text page my-prefix-1, my-prefix-2, my-prefix-3, ,
my-prefix-n

\partsuper{Super Part 2}

text page numbers my-other-prefix-1, my-other-prefix-2,
my-other-prefix-3, , my-other-prefix-n

\stoptext



2. The other, less sophisticated option: How do I get \setuppagenumbering
to simply just reset the current pagenumber to 1 and start from 1
again?

Again I can do my-prefix for the first range of pagenumbers and
my-other-prefix for the second.

===

Let me explain the big picture. I have two (rather large) structured
documents. I need to

a) compile both at the same time to manage cross-references between each;

b) have each start at page 1. \setuppagenumbering[number=1] does not seem
to work:

===
\starttext
\dorecurse{28}{\input knuth\par }
\setuppagenumbering[state=stop]
\dorecurse{28}{\input knuth\par }
\setuppagenumbering[state=start]
\dorecurse{28}{\input knuth\par }
\setuppagenumbering[number=1]
\dorecurse{28}{\input knuth\par }
\stoptext
===

For cross references I have defined a mirror for each document structure
element. For \chapter in Book One we use \chaptertwo in Book Two etc., so
each book has its own TOC that does not interfere with the other etc.

===

With this in mind, I need your help, gang!

Best wishes
Idris
--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shīʿī Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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] pagenumbering and part options [CORRECTED]

2011-11-21 Thread Pontus Lurcock
On Mon 21 Nov 2011, Idris Samawi Hamid ادريس   سماوي حامد wrote:

 2. The other, less sophisticated option: How do I get
 \setuppagenumbering to simply just reset the current pagenumber to
 1 and start from 1 again?

I think that what you want (untested) is \setuppagenumber[number=1]
rather than \setuppagenumbering[number=1] (as I understand it
\setuppagenumbering controls the way in which page numbers are
displayed and \setuppagenumber controls the numbers themselves).

 Let me explain the big picture. I have two (rather large) structured
 documents. I need to

 a) compile both at the same time to manage cross-references between each;

Could the recent work on cross-document referencing (
http://www.pragma-ade.com/general/magazines/mag-1103.pdf ) remove this
requirement?

Pont
___
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] pagenumbering and part options [CORRECTED]

2011-11-21 Thread Aditya Mahajan

On Tue, 22 Nov 2011, Pontus Lurcock wrote:


On Mon 21 Nov 2011, Idris Samawi Hamid ادريس   سماوي حامد wrote:


2. The other, less sophisticated option: How do I get
\setuppagenumbering to simply just reset the current pagenumber to
1 and start from 1 again?


I think that what you want (untested) is \setuppagenumber[number=1]
rather than \setuppagenumbering[number=1] (as I understand it
\setuppagenumbering controls the way in which page numbers are
displayed and \setuppagenumber controls the numbers themselves).


There is also \setupuserpagenumber[number=1] and 
\setupuserpagenumber[way=bysuperpart] (if superpart is defined using 
\definehead).


Aditya
___
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] pagenumbering and part options [CORRECTED]

2011-11-21 Thread Idris Samawi Hamid ادريس سماوي حامد

On Mon, 21 Nov 2011 15:02:51 -0700, Pontus Lurcock p...@talvi.net wrote:


On Mon 21 Nov 2011, Idris Samawi Hamid ادريس   سماوي حامد wrote:


2. The other, less sophisticated option: How do I get
\setuppagenumbering to simply just reset the current pagenumber to
1 and start from 1 again?


I think that what you want (untested) is \setuppagenumber[number=1]
rather than \setuppagenumbering[number=1] (as I understand it
\setuppagenumbering controls the way in which page numbers are
displayed and \setuppagenumber controls the numbers themselves).


Aaarrrghgh ... It's so embarrassing to miss the obvious

\setuppagenumber[number=1]

does its job ... thnx!




Let me explain the big picture. I have two (rather large) structured
documents. I need to

a) compile both at the same time to manage cross-references between  
each;


Could the recent work on cross-document referencing (
http://www.pragma-ade.com/general/magazines/mag-1103.pdf ) remove this
requirement?


Now this I was unaware of ... I will study it. Hopefully it works between  
components ...


You've been a BIG help, Pontus, and

Best wishes
Idris
--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shīʿī Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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] pagenumbering and part options [CORRECTED]

2011-11-21 Thread Idris Samawi Hamid ادريس سماوي حامد

Hi Aditya,

On Mon, 21 Nov 2011 15:09:23 -0700, Aditya Mahajan adit...@umich.edu  
wrote:


There is also \setupuserpagenumber[number=1] and  
\setupuserpagenumber[way=bysuperpart] (if superpart is defined using  
\definehead).


Hmm, I was wondering if there was something like this in the system ...  
how do we get \setupuserpagenumber to replace \setuppagenumber? Or is it  
automatic when declared?


Thanks, Aditya and

Best wishes
Idris

--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shīʿī Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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] pagenumbering and part options [CORRECTED]

2011-11-21 Thread Idris Samawi Hamid ادريس سماوي حامد
On Mon, 21 Nov 2011 15:18:46 -0700, Idris Samawi Hamid ادريس   سماوي حامد  
isha...@colostate.edu wrote:




Could the recent work on cross-document referencing (
http://www.pragma-ade.com/general/magazines/mag-1103.pdf ) remove this
requirement?


Now this I was unaware of ... I will study it. Hopefully it works  
between components ...


\startproduct cross-100
\component cross-001
\component cross-002
\stopproduct

Ah ... EXACTLY what I was looking for! And EXACTLY how my master file is  
structured!


Thanks again, Pontus, and

Best wishes
Idris
--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shīʿī Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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] pagenumbering and part options [CORRECTED]

2011-11-21 Thread Wolfgang Schuster

Am 21.11.2011 um 23:20 schrieb Idris Samawi Hamid ادريس سماوي حامد:

 Hi Aditya,
 
 On Mon, 21 Nov 2011 15:09:23 -0700, Aditya Mahajan adit...@umich.edu wrote:
 
 There is also \setupuserpagenumber[number=1] and 
 \setupuserpagenumber[way=bysuperpart] (if superpart is defined using 
 \definehead).
 
 Hmm, I was wondering if there was something like this in the system ... how 
 do we get \setupuserpagenumber to replace \setuppagenumber? Or is it 
 automatic when declared?

\setuppagenumber is a synonym for \setupusepagenumber

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.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Pagenumbering

2010-04-20 Thread Wolfgang Werners-Lucchini
Hallo Wolfgang!

  \starttext
  \startfrontmatter
 
  \completecontent[alternative=c]
 
  \setuppagenumbering[state=start,alternative=doublesided,conversion=romannumerals]
 
  ...
 
  \setuppagenumbering[state=start,alternative=doublesided,conversion=numbers]
  \setuppagenumber[state=start,number=1]
 
  \stopfrontmatter
 
  \startbodymatter
 
  ...
 
  \stopappendices
 
  \stoptext
   
  This example doesn't produce roman numerals with
 
 http://www.ntg.nl/pipermail/ntg-context/2009/043296.html

I can see, that this is working, but I do not understand why this 
complicated way is necessary nor can I understand why the above is 
not working.

Is the normal(?) behaviour broken and the solution in your url a 
workaround?

These are the context things which are very frustrating for a normal 
user and one may come to the conclusion that only the enlightend guru 
can use this system. 

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.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Pagenumbering (was: Documentation for \completecontent)

2010-04-19 Thread Wolfgang Schuster

Am 19.04.10 00:53, schrieb Wolfgang Werners-Lucchini:

Follows is an example of a document that illustrates 1, above:

\starttext
\startfrontmatter

\completecontent[alternative=c]

\setuppagenumbering[state=start,alternative=doublesided,conversion=romannumerals]

...

\setuppagenumbering[state=start,alternative=doublesided,conversion=numbers]
\setuppagenumber[state=start,number=1]

\stopfrontmatter

\startbodymatter

...

\stopappendices

\stoptext
 

This example doesn't produce roman numerals with
   

http://www.ntg.nl/pipermail/ntg-context/2009/043296.html

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.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] pagenumbering/toc bug?

2009-09-11 Thread Derek CORDEIRO
The example for pagenumbering(different pagenumbering in different parts
with appropriate change in TOC) in MkIV given by Wolfgang @
http://www.ntg.nl/pipermail/ntg-context/2009/043296.html no longer works.

If \completecontent is commented it works.

errors:

structure   : begin of sectionblock frontpart
structure   : title @ level 2 : 0.0 - \headtext {content}
! LuaTeX error ...text/tex/texmf-context/tex/context/base/strc-pag.lua:104:
bad argument #3 to 'format' (string expected, got table)
stack traceback:
[C]: in function 'format'
...text/tex/texmf-context/tex/context/base/strc-pag.lua:104: in function
'number'
...text/tex/texmf-context/tex/context/base/strc-pag.lua:172: in function
'prefixpage'
...text/tex/texmf-context/tex/context/base/strc-lst.lua:399: in function
'prefixedpage'
main ctx instance:1: in main chunk.
\structurelistpagenumber ...gestopper \!!es , } )}

\doifsomething #1-\edef \!!stringa {#1
   }\ifx \!!stringa \empty \expandafter
...
argument ...omething {\structurelistpagenumber }
   {\hbox \ifdim \listwidth
...
\firstofoneargument #1-#1

argument ...and {\structurelistpagenumber }}
  }\vbox {\hsize \!!widthb
\...
\domakelistelement ...#4}[internal(#2)]\else #3{#4
  }\fi
...


ConTeXt  ver: 2009.09.09 14:31 MKIV  fmt: 2009.9.11  int: english/english

Ofcourse, it worked well a few days back, I updated today.

-- 
A few minutes of yours can give many minutes of education to someone less
priviledged. Go to my blog(http://teachmetowrite.blogspot.com/) and click on
the social vibe badge to make a difference.
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Pagenumbering of appendices

2009-09-11 Thread Olaf Mersmann
* Derek CORDEIRO derekcorde...@gmail.com [090911 07:51]:
 On Thu, Sep 10, 2009 at 9:10 PM, 
 olafm+cont...@kimberly.tako.deolafm%2bcont...@kimberly.tako.de wrote:
  I've been trying to turn off the conversion of page numbers to roman
  numerals in my appendix without any luck. Here is a minimal example:
 
   \setuppagenumbering[way=bytext,location={bottom, right}]
   \startsectionblockenvironment[bodypart]
 \setuppagenumber[number=1, state=start]
   \stopsectionblockenvironment
   \startsectionblockenvironment[appendix]
 

 \setupuserpagenumber[numberconversion=numbers]

 \setuppagenumbering is still used for the other parameters below.

Thanks for the hint. Never saw \setupuserpagenumber[] before.

 Please refer to this thread:
 http://www.ntg.nl/pipermail/ntg-context/2009/043284.html for a related
 discussion.

I tried to run an expanded version of the minimal example Wolfgang
provided with the current minimals and it gave the following error:

  ...
  systems : begin file simple at line 24
  structure   : begin of sectionblock frontpart
  structure   : title @ level 2 : 0.0 - \headtext {content}
  ! LuaTeX error ...0910/tex/texmf-context/tex/context/base/strc-pag.lua:104: 
bad argument #3 to 'format' (string expected, got table)
  stack traceback:
  [C]: in function 'format'
  ...0910/tex/texmf-context/tex/context/base/strc-pag.lua:104: in 
function 'number'
  ...0910/tex/texmf-context/tex/context/base/strc-pag.lua:172: in 
function 'prefixpage'
  ...0910/tex/texmf-context/tex/context/base/strc-lst.lua:399: in 
function 'prefixedpage'
  main ctx instance:1: in main chunk.

The example is:

  \definestructureconversionset[frontpart:pagenumber] [] [romannumerals]
  \definestructureconversionset[bodypart:pagenumber]  [] [numbers]
  \definestructureconversionset[appendix:pagenumber]  [] [numbers]
  \definestructureconversionset[backpart:pagenumber]  [] [numbers]
  
  \startstructureblockenvironment[frontpart]
  \setupuserpagenumber[numberconversion=romannumerals]
  \setuppagenumber[number=1]
  \stopstructureblockenvironment
  
  \startstructureblockenvironment[bodypart]
\setupuserpagenumber[numberconversion=numbers]
\setuppagenumber[number=1]
  \stopstructureblockenvironment
  
  \startstructureblockenvironment[appendix]
   \setupuserpagenumber[numberconversion=numbers]
  \stopstructureblockenvironment
  
  \startstructureblockenvironment[backpart]
   \setupuserpagenumber[numberconversion=numbers]
  \stopstructureblockenvironment
  
  \starttext
  \startfrontmatter
\completecontent[criterium=all]
\chapter{Front}
\input tufte
  \stopfrontmatter
  \startbodymatter
   \chapter{Body}
   \input knuth
  \stopbodymatter
  \startappendices
   \chapter{Appendix}
   \input knuth
  \stopappendices
  \startbackmatter
\chapter{Back}
\input knuth
  \stopbackmatter
  \stoptext

The original gave the same error for me. Any help in debugging this
would be appreciated.

Cheers,
Olaf
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Pagenumbering of appendices

2009-09-11 Thread Derek CORDEIRO
On Fri, Sep 11, 2009 at 2:34 PM, Olaf Mersmann 
olafm+cont...@kimberly.tako.de olafm%2bcont...@kimberly.tako.de wrote:

 * Derek CORDEIRO derekcorde...@gmail.com [090911 07:51]:
  On Thu, Sep 10, 2009 at 9:10 PM, 
  olafm+cont...@kimberly.tako.deolafm%2bcont...@kimberly.tako.de
 olafm%2bcont...@kimberly.tako.de olafm%252bcont...@kimberly.tako.de
 wrote:
   I've been trying to turn off the conversion of page numbers to roman
   numerals in my appendix without any luck. Here is a minimal example:
  
\setuppagenumbering[way=bytext,location={bottom, right}]
\startsectionblockenvironment[bodypart]
  \setuppagenumber[number=1, state=start]
\stopsectionblockenvironment
\startsectionblockenvironment[appendix]
  
 
  \setupuserpagenumber[numberconversion=numbers]
 
  \setuppagenumbering is still used for the other parameters below.

 Thanks for the hint. Never saw \setupuserpagenumber[] before.

  Please refer to this thread:
  http://www.ntg.nl/pipermail/ntg-context/2009/043284.html for a related
  discussion.

 I tried to run an expanded version of the minimal example Wolfgang
 provided with the current minimals and it gave the following error:

  ...
  systems : begin file simple at line 24
  structure   : begin of sectionblock frontpart
  structure   : title @ level 2 : 0.0 - \headtext {content}
  ! LuaTeX error
 ...0910/tex/texmf-context/tex/context/base/strc-pag.lua:104: bad argument #3
 to 'format' (string expected, got table)
  stack traceback:
  [C]: in function 'format'
  ...0910/tex/texmf-context/tex/context/base/strc-pag.lua:104: in
 function 'number'
  ...0910/tex/texmf-context/tex/context/base/strc-pag.lua:172: in
 function 'prefixpage'
  ...0910/tex/texmf-context/tex/context/base/strc-lst.lua:399: in
 function 'prefixedpage'
  main ctx instance:1: in main chunk.

 The example is:

  \definestructureconversionset[frontpart:pagenumber] [] [romannumerals]
  \definestructureconversionset[bodypart:pagenumber]  [] [numbers]
  \definestructureconversionset[appendix:pagenumber]  [] [numbers]
  \definestructureconversionset[backpart:pagenumber]  [] [numbers]

  \startstructureblockenvironment[frontpart]
  \setupuserpagenumber[numberconversion=romannumerals]
  \setuppagenumber[number=1]
  \stopstructureblockenvironment

  \startstructureblockenvironment[bodypart]
\setupuserpagenumber[numberconversion=numbers]
\setuppagenumber[number=1]
  \stopstructureblockenvironment

  \startstructureblockenvironment[appendix]
   \setupuserpagenumber[numberconversion=numbers]
  \stopstructureblockenvironment

  \startstructureblockenvironment[backpart]
   \setupuserpagenumber[numberconversion=numbers]
  \stopstructureblockenvironment

  \starttext
  \startfrontmatter
\completecontent[criterium=all]
\chapter{Front}
\input tufte
  \stopfrontmatter
  \startbodymatter
   \chapter{Body}
   \input knuth
  \stopbodymatter
  \startappendices
   \chapter{Appendix}
   \input knuth
  \stopappendices
  \startbackmatter
\chapter{Back}
\input knuth
  \stopbackmatter
  \stoptext

 The original gave the same error for me. Any help in debugging this
 would be appreciated.


Hans has squashed those bugs. If you update ConTeXt it should be working
fine.

-- 
A few minutes of yours can give many minutes of education to someone less
priviledged. Go to my blog(http://teachmetowrite.blogspot.com/) and click on
the social vibe badge to make a difference.
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Pagenumbering of appendices

2009-09-10 Thread olafm+context
Hello,

I've been trying to turn off the conversion of page numbers to roman
numerals in my appendix without any luck. Here is a minimal example:

  \setuppagenumbering[way=bytext,location={bottom, right}]
  \startsectionblockenvironment[bodypart]
\setuppagenumber[number=1, state=start]
  \stopsectionblockenvironment
  \startsectionblockenvironment[appendix]
\setuppagenumbering[conversion=,location=bottom,left={--~},right={~--}]
  \stopsectionblockenvironment

  \starttext
  \startbodymatter
  \chapter{Body 1}
  \input knuth
  \chapter{Body 2}
  \input knuth
  \stopbodymatter

  \startappendices
  \chapter{App 1}
  \input knuth

  \chapter{App 2}
  \input knuth
  \stopappendices
  \stoptext

What am I missing? All other settings I set in \setuppagenumbering
seem to take effect.

Cheers,
Olaf
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Pagenumbering of appendices

2009-09-10 Thread Derek CORDEIRO
On Thu, Sep 10, 2009 at 9:10 PM,
olafm+cont...@kimberly.tako.deolafm%2bcont...@kimberly.tako.de
 wrote:

 Hello,

 I've been trying to turn off the conversion of page numbers to roman
 numerals in my appendix without any luck. Here is a minimal example:

  \setuppagenumbering[way=bytext,location={bottom, right}]
  \startsectionblockenvironment[bodypart]
\setuppagenumber[number=1, state=start]
  \stopsectionblockenvironment
  \startsectionblockenvironment[appendix]


\setupuserpagenumber[numberconversion=numbers]

\setuppagenumbering is still used for the other parameters below.


\setuppagenumbering[conversion=,location=bottom,left={--~},right={~--}]
  \stopsectionblockenvironment

  \starttext
  \startbodymatter
  \chapter{Body 1}
  \input knuth
  \chapter{Body 2}
  \input knuth
  \stopbodymatter

  \startappendices
  \chapter{App 1}
  \input knuth

  \chapter{App 2}
  \input knuth
  \stopappendices
  \stoptext

 What am I missing? All other settings I set in \setuppagenumbering
 seem to take effect.


Please refer to this thread:
http://www.ntg.nl/pipermail/ntg-context/2009/043284.html for a related
discussion.

-- 
A few minutes of yours can give many minutes of education to someone less
priviledged. Go to my blog(http://teachmetowrite.blogspot.com/) and click on
the social vibe badge to make a difference.
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Pagenumbering on the first page of a section/chapter/...

2008-09-22 Thread Marcin Borkowski
Hi,

I'd like to define a section-like thing (with \definehead) in a way that
prevents ConTeXt from putting the pagenumber on the _first_ page of this
section.  How do I do this?

Greets

-- 
Marcin Borkowski (http://mbork.faculty.fmcs.amu.edu.pl)
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Pagenumbering on the first page of a section/chapter/...

2008-09-22 Thread Marcin Borkowski
Dnia Mon, Sep 22, 2008 at 07:27:28PM +0200, Marcin Borkowski napisa#322;(a):
 Hi,
 
 I'd like to define a section-like thing (with \definehead) in a way that
 prevents ConTeXt from putting the pagenumber on the _first_ page of this
 section.  How do I do this?

ok, I've got it:

\setuphead[something]
[footer=empty]

 
 Greets
 
 -- 
 Marcin Borkowski (http://mbork.faculty.fmcs.amu.edu.pl)
 ___
 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  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

-- 
Marcin Borkowski (http://mbork.faculty.fmcs.amu.edu.pl)

If Microsoft ever makes anything which doesn't suck,
it will be a vacuum cleaner.
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Pagenumbering in header-margin with outer-align

2008-04-01 Thread Wolfgang Schuster
On Sat, Mar 29, 2008 at 7:06 PM, Wolfgang Schuster
[EMAIL PROTECTED] wrote:
 On Fri, 28 Mar 2008 21:41:27 +0100
 Peter Schorsch [EMAIL PROTECTED] wrote:

  Hi,
 
  I am trying to put the pagenumber in the margin of the header. But I also 
  want
  it outer-aligned - not inner-aligned, which seems to be the standart
  alignment of margin. But the inner-align of the body-margin should still be
  inner-aligned. So I tried following:
 
  \setuppagenumbering[conversion=Romannumerals,alternative=doublesided,
location={header,margin},style={\setupalign[outer]}]
 
  but Context dont like this.. it stops converting. Does anyone know a working
  solution for this problem?

 \setuppagenumbering
  [conversion=Romannumerals,
   alternative=doublesided,
   location=]

 \setupheadertexts[margin]
  [][\hfil\pagenumber][\pagenumber\hfil][]


also possible

\setupheader
  [margin]
  [righttext=\doifoddpageelse{\hfill\pagenumber}{\pagenumber\hfill}]

 \starttext

 \dorecurse{30}{\input knuth\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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Pagenumbering in header-margin with outer-align

2008-03-29 Thread Wolfgang Schuster
On Fri, 28 Mar 2008 21:41:27 +0100
Peter Schorsch [EMAIL PROTECTED] wrote:

 Hi,
 
 I am trying to put the pagenumber in the margin of the header. But I also 
 want 
 it outer-aligned - not inner-aligned, which seems to be the standart 
 alignment of margin. But the inner-align of the body-margin should still be 
 inner-aligned. So I tried following:
 
 \setuppagenumbering[conversion=Romannumerals,alternative=doublesided,
   location={header,margin},style={\setupalign[outer]}]
 
 but Context dont like this.. it stops converting. Does anyone know a working 
 solution for this problem?

\setuppagenumbering
  [conversion=Romannumerals,
   alternative=doublesided,
   location=]

\setupheadertexts[margin]
  [][\hfil\pagenumber][\pagenumber\hfil][]

\starttext

\dorecurse{30}{\input knuth\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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Pagenumbering in header-margin with outer-align

2008-03-28 Thread Peter Schorsch
Hi,

I am trying to put the pagenumber in the margin of the header. But I also want 
it outer-aligned - not inner-aligned, which seems to be the standart 
alignment of margin. But the inner-align of the body-margin should still be 
inner-aligned. So I tried following:

\setuppagenumbering[conversion=Romannumerals,alternative=doublesided,
location={header,margin},style={\setupalign[outer]}]

but Context dont like this.. it stops converting. Does anyone know a working 
solution for this problem?

Thanks, P.
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___