Re: [NTG-context] standardmakeup and pages
> Am 2019-08-29 um 16:58 schrieb mf : > > \setuppagenumbering[ >alternative=doublesided, > ] > > % use pagestate=start on both makeups only if you want the title page > % to be the page 1 of the book > \definemakeup[title-page][align=middle,doublesided=no] Thank you! I don’t know why I didn’t look into the command reference myself, sorry. I’m probably too tired. Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD ___ 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] standardmakeup and pages
\setuppagenumbering[ alternative=doublesided, ] % use pagestate=start on both makeups only if you want the title page % to be the page 1 of the book \definemakeup[title-page][align=middle,doublesided=no] \definemakeup[imprint][align=top,page=no] \starttext \startmakeup[title-page] bastard title \stopmakeup \startmakeup[imprint] \vfill imprint \stopmakeup This is the beginning of the book... \stoptext ___ 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] standardmakeup and pages
Il 29/08/19 16:33, Henning Hraban Ramm ha scritto: \setuppagenumbering[ alternative=doublesided, ] \starttext \startstandardmakeup[align=center] bastard title \stopstandardmakeup \startstandardmakeup[page=left] \vfill imprint \stopstandardmakeup \stoptext \setuppagenumbering[ alternative=doublesided, ] \definemakeup[title-page][align=middle,doublesided=no,pagestate=start] \definemakeup[imprint][align=top,page=no,pagestate=start] \starttext \startmakeup[title-page] bastard title \stopmakeup \startmakeup[imprint] \vfill imprint \stopmakeup \stoptext Best wishes, Massimiliano ___ 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] standardmakeup...
Hi Wolfgang, thanks for enlighten me! - This works. Willi On 16 Jan 2012, at 23:04, Wolfgang Schuster wrote: Am 16.01.2012 um 22:44 schrieb Willi Egger: Dear all, I tried to recompile a booklet. Then I realized that whatever I give for arguments the standardmakeup environment gives me an empty page although it should give only after the first standarmakeup an empty page but not after the second standardmakeup. - This behavior is encountered in all versions of Context I have on my machine based on luatex 0.70, including todays beta. May be I miss something? Change \setupmakeup[standard][bottom=,top=] to \setupmakeup[standard][bottom=,top=,page=yes] BTW: The makeup environment has a align key (you can use this to get rid of all the \centerline and \leftaligned settings) and the font command (\bf, \bs etc.) don’t take argument and you can remove the braces. 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 ___ ___ 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] standardmakeup...
Am 16.01.2012 um 22:44 schrieb Willi Egger: Dear all, I tried to recompile a booklet. Then I realized that whatever I give for arguments the standardmakeup environment gives me an empty page although it should give only after the first standarmakeup an empty page but not after the second standardmakeup. - This behavior is encountered in all versions of Context I have on my machine based on luatex 0.70, including todays beta. May be I miss something? Change \setupmakeup[standard][bottom=,top=] to \setupmakeup[standard][bottom=,top=,page=yes] BTW: The makeup environment has a align key (you can use this to get rid of all the \centerline and \leftaligned settings) and the font command (\bf, \bs etc.) don’t take argument and you can remove the braces. 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] Standardmakeup
Am 21.10.2011 um 21:01 schrieb Willi Egger: Thank you Wolfgang. I do not remember but there was a time where \godown would not work without the strut. So I have mistaken this. The makeup environments put the content in a \vbox and at the begin of a \vbox a vertical skip isn’t discarded as it would happen when you have it at the begin of a new page but in such a case you can use “\blank[force,…]”. 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] Standardmakeup
Thank you Wolfgang. I do not remember but there was a time where \godown would not work without the strut. So I have mistaken this. And indeed the result is ok whithout the start- stoplines. Thanks! Willi On 20 Oct 2011, at 15:42, Wolfgang Schuster wrote: Am 19.10.2011 um 22:03 schrieb Willi Egger: Hi, Hans told me, that one needs to set before and after for the lines to nil. Indeed that solves the problem as long as you do not want to insert extra white space between the lines. The effect of moving down the lines occurs also with inserting an empty line. Add \vfill before \stopstandardmakeup. \setupmakeup[standard][top=,bottom=] \setuplines[before=,after=] \starttext \startstandardmakeup[doublesided=no,page=yes] \strut \godown[.25\textheight] \startalignment[middle] \startlines {\bfd Der Titel} \blank[line] {\bf De Untertitel} \stoplines \stopalignment \stopstandardmakeup \stoptext You don’t need the lines environment because with the blank you get two separate lines and the \strut is a bad idea because you get at the top a extra line with the command. \startstandardmakeup[doublesided=no,align=middle,page=yes] \godown[.25\textheight] {\bfd Der Titel} \blank[line] {\bf De Untertitel} \vfill \stopstandardmakeup 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 ___ ___ 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] Standardmakeup
Am 19.10.2011 um 22:03 schrieb Willi Egger: Hi, Hans told me, that one needs to set before and after for the lines to nil. Indeed that solves the problem as long as you do not want to insert extra white space between the lines. The effect of moving down the lines occurs also with inserting an empty line. Add \vfill before \stopstandardmakeup. \setupmakeup[standard][top=,bottom=] \setuplines[before=,after=] \starttext \startstandardmakeup[doublesided=no,page=yes] \strut \godown[.25\textheight] \startalignment[middle] \startlines {\bfd Der Titel} \blank[line] {\bf De Untertitel} \stoplines \stopalignment \stopstandardmakeup \stoptext You don’t need the lines environment because with the blank you get two separate lines and the \strut is a bad idea because you get at the top a extra line with the command. \startstandardmakeup[doublesided=no,align=middle,page=yes] \godown[.25\textheight] {\bfd Der Titel} \blank[line] {\bf De Untertitel} \vfill \stopstandardmakeup 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] Standardmakeup
On 19-10-2011 17:05, Willi Egger wrote: Hi, When using the \startstandardmakeup ... \stopstandardmakeup the text gets vertically centered on the page. Normally \setupmakeup[standard][top=,bottom=] would produce the text vertically aligned normally. However in the beta of today \setupmakeup[standard][top=,bottom=] has no effect and the text is aligned vertically centered. - Do I miss something? afaik nothing has been changes in that code for a while - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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] Standardmakeup
Am 19.10.2011 um 17:05 schrieb Willi Egger: Hi, When using the \startstandardmakeup ... \stopstandardmakeup the text gets vertically centered on the page. Normally \setupmakeup[standard][top=,bottom=] would produce the text vertically aligned normally. However in the beta of today \setupmakeup[standard][top=,bottom=] has no effect and the text is aligned vertically centered. - Do I miss something? Make a example, I can’t reproduce your mentioned results. 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] Standardmakeup
On 19-10-2011 19:54, Wolfgang Schuster wrote: Am 19.10.2011 um 17:05 schrieb Willi Egger: Hi, When using the \startstandardmakeup ... \stopstandardmakeup the text gets vertically centered on the page. Normally \setupmakeup[standard][top=,bottom=] would produce the text vertically aligned normally. However in the beta of today \setupmakeup[standard][top=,bottom=] has no effect and the text is aligned vertically centered. - Do I miss something? Make a example, I can’t reproduce your mentioned results. FYI (and setups project): I just mkvi'd the code so we have chaining. Also it wil use a defined layout with the same name if defined. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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] Standardmakeup
Hi, Hans told me, that one needs to set before and after for the lines to nil. Indeed that solves the problem as long as you do not want to insert extra white space between the lines. The effect of moving down the lines occurs also with inserting an empty line. \setupmakeup[standard][top=,bottom=] \setuplines[before=,after=] \starttext \startstandardmakeup[doublesided=no,page=yes] \strut \godown[.25\textheight] \startalignment[middle] \startlines {\bfd Der Titel} \blank[line] {\bf De Untertitel} \stoplines \stopalignment \stopstandardmakeup \stoptext Willi On 19 Oct 2011, at 19:54, Wolfgang Schuster wrote: Am 19.10.2011 um 17:05 schrieb Willi Egger: Hi, When using the \startstandardmakeup ... \stopstandardmakeup the text gets vertically centered on the page. Normally \setupmakeup[standard][top=,bottom=] would produce the text vertically aligned normally. However in the beta of today \setupmakeup[standard][top=,bottom=] has no effect and the text is aligned vertically centered. - Do I miss something? Make a example, I can’t reproduce your mentioned results. 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 ___ ___ 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] standardmakeup environment didn't work in MKIV
Hongwen Qiu wrote: Hi all, standardmakeup didn't work in MKIV. When I used this environment, It complains: error: Invalid field id writable for node type glue_spec (0) This means your luatex is older than it should be for the current mkiv beta. The 'writable' glue_spec field was introduced in luatex 0.52. Best wishes, Taco ___ 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] standardmakeup environment didn't work in MKIV
于 2010年03月31日 14:43, Taco Hoekwater 写道: This means your luatex is older than it should be for the current mkiv beta. The 'writable' glue_spec field was introduced in luatex 0.52. It works now. Thanks. I thought that the luatex shipped with the latest ConTeXt was the latest beta. Now I know that it is just the stable one. ___ 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] standardmakeup, frontmatter, bodymatter page numbering
On Fri, 7 Dec 2007 17:29:36 +0100 Mojca Miklavec [EMAIL PROTECTED] wrote: On 11/29/07, Wolfgang Schuster [EMAIL PROTECTED] wrote: On Wed, 3 Oct 2007 01:36:54 +0200 Mojca Miklavec [EMAIL PROTECTED] wrote: Hello, I have a document consisting of title page, some introduction which should have pages numbered with roman numerals, and finally the real content \setuphead[subject][page=odd,style=\ss\bfb] \setuppagenumbering[location=] \starttext \startstandardmakeup title page \stopstandardmakeup \startfrontmatter \setuppagenumbering[conversion=romannumerals] \setupfootertexts[page \pagenumber{}] \subject{some intro pages} \input tufte \stopfrontmatter \startbodymatter \setupfootertexts[page \pagenumber{} of \totalnumberofpages] \dorecurse{10}{\subject{real content} \dorecurse{\recurselevel}{\input knuth} } \stopbodymatter \stoptext Now the problems: 1.) The second page starts counting at 1, while counting should start at page 3. This can be solved by using another \startstandardmakeup\strut\stopstandardmakeup. 2.) The last page says page 26 of 27 - the total page number is indeed 27, but counting started on the second page, so it never reaches the last number. 3.) I would like the page number on the first page of bodymatter to be page 1 of 23 instead of page 4 of 27, and the last one to ge page 23 of 23 instead of page 26 of 27 There is some way=bychapter setting for page numering, but in that case there are no suitable chapters/sections available. Any hints appreciated ... Thanks a lot, Mojca Hi Mojca, maybe I'm a little bit late with my answer Hello Wolfgang, I hardcoded the number when I needed it, but you proposal is very useful for the next time when I will need it again. I only need to figure out where to store it on the wiki/texshow, so that it will be possible to find it agin. (This still cannot handle the problem if I wanted to number last page of frontmatter, but I don't need it at the moment.) I run into similiar problems for my letter module to reset the page number for every letter in one document without reseting the global pagenumber, I extend my example to use subpagenumber instead of global numbers but I have a problem to get the right number in the table of content because ConTeXt writes the gobal page number in the galley files and ignores the subpagenumber. \startcomponent structure % setups \setupsubpagenumber[way=bytext,state=start] \setuppagenumbering[location=] \startsectionblockenvironment[frontpart] %\setupfootertexts[\convertnumber{r}{\subpagenumber}] \setupfootertexts[pagenumber] \setuppagenumbering[conversion=romannumerals] \stopsectionblockenvironment \startsectionblockenvironment[bodypart] \setuppagenumber[number=1] % else global pagenumbers in the toc \resetsubpagenumber \setupfootertexts[page \subpagenumber{} of \numberofsubpages] \stopsectionblockenvironment \startsectionblockenvironment[backpart] \resetsubpagenumber \stopsectionblockenvironment % the real document \startfrontmatter \completecontent \stopfrontmatter \startbodymatter \dorecurse{12}{\section{Knuth}\input knuth\par} \stopbodymatter \startbackmatter I'm the last page, really? This is true in latest the \CONTEXT\ for \LUATEX\ but not for \XETEX\ and \PDFTEX. \stopbackmatter \stopcomponent 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] standardmakeup, frontmatter, bodymatter page numbering
On 11/29/07, Wolfgang Schuster [EMAIL PROTECTED] wrote: On Wed, 3 Oct 2007 01:36:54 +0200 Mojca Miklavec [EMAIL PROTECTED] wrote: Hello, I have a document consisting of title page, some introduction which should have pages numbered with roman numerals, and finally the real content \setuphead[subject][page=odd,style=\ss\bfb] \setuppagenumbering[location=] \starttext \startstandardmakeup title page \stopstandardmakeup \startfrontmatter \setuppagenumbering[conversion=romannumerals] \setupfootertexts[page \pagenumber{}] \subject{some intro pages} \input tufte \stopfrontmatter \startbodymatter \setupfootertexts[page \pagenumber{} of \totalnumberofpages] \dorecurse{10}{\subject{real content} \dorecurse{\recurselevel}{\input knuth} } \stopbodymatter \stoptext Now the problems: 1.) The second page starts counting at 1, while counting should start at page 3. This can be solved by using another \startstandardmakeup\strut\stopstandardmakeup. 2.) The last page says page 26 of 27 - the total page number is indeed 27, but counting started on the second page, so it never reaches the last number. 3.) I would like the page number on the first page of bodymatter to be page 1 of 23 instead of page 4 of 27, and the last one to ge page 23 of 23 instead of page 26 of 27 There is some way=bychapter setting for page numering, but in that case there are no suitable chapters/sections available. Any hints appreciated ... Thanks a lot, Mojca Hi Mojca, maybe I'm a little bit late with my answer Hello Wolfgang, I hardcoded the number when I needed it, but you proposal is very useful for the next time when I will need it again. I only need to figure out where to store it on the wiki/texshow, so that it will be possible to find it agin. (This still cannot handle the problem if I wanted to number last page of frontmatter, but I don't need it at the moment.) but I stumpled across this question after I was searching for something in the archive and I found the following solution. [...] \startbodymatter \page[odd] % only \page give a empty before the \section \setuppagenumber[number=1] \setupfootertexts[page \pagenumber{} of \lastpagenumber] % no \totalnumber... Thanks a lot :) \dorecurse{10}{\subject{real content} \dorecurse{\recurselevel}{\input knuth} } \stopbodymatter [...] Mojca ___ 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] standardmakeup, frontmatter, bodymatter page numbering
On Wed, 3 Oct 2007 01:36:54 +0200 Mojca Miklavec [EMAIL PROTECTED] wrote: Hello, I have a document consisting of title page, some introduction which should have pages numbered with roman numerals, and finally the real content \setuphead[subject][page=odd,style=\ss\bfb] \setuppagenumbering[location=] \starttext \startstandardmakeup title page \stopstandardmakeup \startfrontmatter \setuppagenumbering[conversion=romannumerals] \setupfootertexts[page \pagenumber{}] \subject{some intro pages} \input tufte \stopfrontmatter \startbodymatter \setupfootertexts[page \pagenumber{} of \totalnumberofpages] \dorecurse{10}{\subject{real content} \dorecurse{\recurselevel}{\input knuth} } \stopbodymatter \stoptext Now the problems: 1.) The second page starts counting at 1, while counting should start at page 3. This can be solved by using another \startstandardmakeup\strut\stopstandardmakeup. 2.) The last page says page 26 of 27 - the total page number is indeed 27, but counting started on the second page, so it never reaches the last number. 3.) I would like the page number on the first page of bodymatter to be page 1 of 23 instead of page 4 of 27, and the last one to ge page 23 of 23 instead of page 26 of 27 There is some way=bychapter setting for page numering, but in that case there are no suitable chapters/sections available. Any hints appreciated ... Thanks a lot, Mojca Hi Mojca, maybe I'm a little bit late with my answer but I stumpled across this question after I was searching for something in the archive and I found the following solution. [...] \startbodymatter \page[odd] % only \page give a empty before the \section \setuppagenumber[number=1] \setupfootertexts[page \pagenumber{} of \lastpagenumber] % no \totalnumber... \dorecurse{10}{\subject{real content} \dorecurse{\recurselevel}{\input knuth} } \stopbodymatter [...] 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] standardmakeup, frontmatter, bodymatter page numbering
Mojca Miklavec schrieb: Hello, I have a document consisting of title page, some introduction which should have pages numbered with roman numerals, and finally the real content \setuphead[subject][page=odd,style=\ss\bfb] \setuppagenumbering[location=] \starttext \startstandardmakeup title page \stopstandardmakeup \startfrontmatter \setuppagenumbering[conversion=romannumerals] \setupfootertexts[page \pagenumber{}] \subject{some intro pages} \input tufte \stopfrontmatter \startbodymatter \setupfootertexts[page \pagenumber{} of \totalnumberofpages] \dorecurse{10}{\subject{real content} \dorecurse{\recurselevel}{\input knuth} } \stopbodymatter \stoptext Now the problems: 1.) The second page starts counting at 1, while counting should start at page 3. This can be solved by using another \startstandardmakeup\strut\stopstandardmakeup. 2.) The last page says page 26 of 27 - the total page number is indeed 27, but counting started on the second page, so it never reaches the last number. 3.) I would like the page number on the first page of bodymatter to be page 1 of 23 instead of page 4 of 27, and the last one to ge page 23 of 23 instead of page 26 of 27 There is some way=bychapter setting for page numering, but in that case there are no suitable chapters/sections available. Any hints appreciated ... Hi Mojca, see http://www.pragma-ade.com/general/magazines/mag-0002.pdf (Page ranges) for the details. Greetings, Peter Thanks a lot, Mojca ___ 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 ___ ___ 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] standardmakeup, frontmatter, bodymatter page numbering
On 10/3/07, Peter Rolf [EMAIL PROTECTED] wrote: Mojca Miklavec schrieb: Hello, I have a document consisting of title page, some introduction which should have pages numbered with roman numerals, and finally the real content \setuphead[subject][page=odd,style=\ss\bfb] \setuppagenumbering[location=] \starttext \startstandardmakeup title page \stopstandardmakeup \startfrontmatter \setuppagenumbering[conversion=romannumerals] \setupfootertexts[page \pagenumber{}] \subject{some intro pages} \input tufte \stopfrontmatter \startbodymatter \setupfootertexts[page \pagenumber{} of \totalnumberofpages] \dorecurse{10}{\subject{real content} \dorecurse{\recurselevel}{\input knuth} } \stopbodymatter \stoptext Now the problems: 1.) The second page starts counting at 1, while counting should start at page 3. This can be solved by using another \startstandardmakeup\strut\stopstandardmakeup. 2.) The last page says page 26 of 27 - the total page number is indeed 27, but counting started on the second page, so it never reaches the last number. 3.) I would like the page number on the first page of bodymatter to be page 1 of 23 instead of page 4 of 27, and the last one to ge page 23 of 23 instead of page 26 of 27 There is some way=bychapter setting for page numering, but in that case there are no suitable chapters/sections available. Any hints appreciated ... Hi Mojca, see http://www.pragma-ade.com/general/magazines/mag-0002.pdf (Page ranges) for the details. Thanks a lot for the pointer. But the following example fails: \setuppagenumbering [location=] \setupsubpagenumber [state=start] \setupfootertexts [page \subpageno{} of \nofsubpages] \starttext abc \stoptext ! Missing number, treated as zero. to be read again { argument page \subpageno { } of \nofsubpages {}{}{} \firstoftwoarguments #1#2-#1 \doattributes ...sname [EMAIL PROTECTED] \endcsname \fi {#4 }\dostopattributes \dosingletexts ...atetexts {#1#2#5}{#6{}{}{}}} \egroup argument ...tk \v!footer \v!text \c!middletext } \hss }\hskip -\makeupwidth... ... l.11 \stoptext Plus, I don't know how to instruct way=by... to reset the counter at the boundary of frontmatter/bodymatter Thanks a lot, Mojca ___ 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] standardmakeup, frontmatter, bodymatter page numbering
Mojca Miklavec schrieb: On 10/3/07, Peter Rolf [EMAIL PROTECTED] wrote: Mojca Miklavec schrieb: Hello, I have a document consisting of title page, some introduction which should have pages numbered with roman numerals, and finally the real content \setuphead[subject][page=odd,style=\ss\bfb] \setuppagenumbering[location=] \starttext \startstandardmakeup title page \stopstandardmakeup \startfrontmatter \setuppagenumbering[conversion=romannumerals] \setupfootertexts[page \pagenumber{}] \subject{some intro pages} \input tufte \stopfrontmatter \startbodymatter \setupfootertexts[page \pagenumber{} of \totalnumberofpages] \dorecurse{10}{\subject{real content} \dorecurse{\recurselevel}{\input knuth} } \stopbodymatter \stoptext Now the problems: 1.) The second page starts counting at 1, while counting should start at page 3. This can be solved by using another \startstandardmakeup\strut\stopstandardmakeup. 2.) The last page says page 26 of 27 - the total page number is indeed 27, but counting started on the second page, so it never reaches the last number. 3.) I would like the page number on the first page of bodymatter to be page 1 of 23 instead of page 4 of 27, and the last one to ge page 23 of 23 instead of page 26 of 27 There is some way=bychapter setting for page numering, but in that case there are no suitable chapters/sections available. Any hints appreciated ... Hi Mojca, see http://www.pragma-ade.com/general/magazines/mag-0002.pdf (Page ranges) for the details. Thanks a lot for the pointer. But the following example fails: \setuppagenumbering [location=] \setupsubpagenumber [state=start] \setupfootertexts [page \subpageno{} of \nofsubpages] \starttext abc \stoptext ! Missing number, treated as zero. to be read again { argument page \subpageno { } of \nofsubpages {}{}{} \firstoftwoarguments #1#2-#1 \doattributes ...sname [EMAIL PROTECTED] \endcsname \fi {#4 }\dostopattributes \dosingletexts ...atetexts {#1#2#5}{#6{}{}{}}} \egroup argument ...tk \v!footer \v!text \c!middletext } \hss }\hskip -\makeupwidth... ... l.11 \stoptext I guess the standard activation of that mechanism is 'bychapter', so there is no initialisation (withount a \chapter). If you use way=bytext it should (hopefully) work. This is taken from my letter environment. It's from 2003 and I don't remember any details... \def\MySubpagerange#1{% \ifnum\nofsubpages1 \ifnum\numexpr\subpageno+1\relax\nofsubpages {\ss\tfx\the\numexpr\subpageno+1\relax\,-\,\nofsubpages} \else \ifnum\numexpr\subpageno+1\relax=\nofsubpages\relax {\ss\tfx\nofsubpages}\fi \fi \fi } % show subpagenumber in the right footer margin, if more than one page is used \setuppagenumbering[ location={footer,margin}, command=\MySubpagerange, ] \setupsubpagenumber[way=bytext] % show (sub)pagenumber in header ( no pagenumber at page 1) \setupheadertexts[{\ifnum\subpageno1 \the\subpageno\fi}] \setupheader[style=small, state=high] Plus, I don't know how to instruct way=by... to reset the counter at the boundary of frontmatter/bodymatter It's only a counter, so (if there is no parameter support for your environment) you are free to reset it whenever you want. Just add some code to the 'before|after' parameter of front|bodymatter. HTH, Peter Thanks a lot, Mojca ___ 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 ___ ___ 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 ___