Re: [NTG-context] Pagenumbering with \setupcounter[userpagenumber]
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 ___
Re: [NTG-context] Pagenumbering
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 ___
Re: [NTG-context] Pagenumbering
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 and part options [CORRECTED]
Am 21.11.2011 um 23:20 schrieb Idris Samawi Hamid ادريس سماوي حامد: > Hi Aditya, > > On Mon, 21 Nov 2011 15:09:23 -0700, Aditya Mahajan 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 and part options [CORRECTED]
On Mon, 21 Nov 2011 15:18:46 -0700, Idris Samawi Hamid ادريس سماوي حامد 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]
Hi Aditya, On Mon, 21 Nov 2011 15:09:23 -0700, Aditya Mahajan 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]
On Mon, 21 Nov 2011 15:02:51 -0700, 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). 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]
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]
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
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 ___
Re: [NTG-context] Pagenumbering of appendices
On Fri, Sep 11, 2009 at 2:34 PM, Olaf Mersmann < olafm+cont...@kimberly.tako.de > wrote: > * Derek CORDEIRO [090911 07:51]: > > On Thu, Sep 10, 2009 at 9:10 PM, > > > > > 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' > :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 ___
Re: [NTG-context] Pagenumbering of appendices
* Derek CORDEIRO [090911 07:51]: > On Thu, Sep 10, 2009 at 9:10 PM, > 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' :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
On Thu, Sep 10, 2009 at 9:10 PM, > 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 ___
Re: [NTG-context] Pagenumbering on the first page of a section/chapter/...
Dnia Mon, Sep 22, 2008 at 07:27:28PM +0200, Marcin Borkowski napisał(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
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
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 ___