[NTG-context] Page numbering, new style and running heads.
The new method of handling page numbering (roman and arabic) using e.g., \setupuserpagenumber[numberconversion=Romannumerals] \setcounter[userpage][5] works just fine if you remember one thing: in running heads the word pagenumber has to be replaced with userpagenumber. But in the \chapter setup it is still pagenumber I spent the morning and a few extra minutes figuring those two things out. -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html Updated PDF e-book: Create Book Covers with Scribus 1.4.5 coming soon at http://www.booklocker.com/! ___ 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] page numbering 'marginedge'
Exactly so, thanks Pablo. On Mar 3, 2014, at 10:44 AM, Pablo Rodriguez oi...@gmx.es wrote: On 03/03/2014 07:37 PM, David Wooten wrote: Hello all, trying to get page numbers in the outer margin edge of a double-sided document — marginedge as it is places the numbers to the inside margin edge, is there an opposite command? Hi David, as far as I know, location=right is the option you want. See minimal sample: \setuppapersize[A6] \setuppagenumbering[alternative=doublesided, location=right] \starttext \input knuth\page \input zapf\page \input ward \stoptext I hope it helps, Pablo -- http://www.ousia.tk ___ 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] page numbering 'marginedge'
Hello all, trying to get page numbers in the outer margin edge of a double-sided document — marginedge as it is places the numbers to the inside margin edge, is there an opposite command? Thanks, David ___ 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] page numbering 'marginedge'
On 03/03/2014 07:37 PM, David Wooten wrote: Hello all, trying to get page numbers in the outer margin edge of a double-sided document — marginedge as it is places the numbers to the inside margin edge, is there an opposite command? Hi David, as far as I know, location=right is the option you want. See minimal sample: \setuppapersize[A6] \setuppagenumbering[alternative=doublesided, location=right] \starttext \input knuth\page \input zapf\page \input ward \stoptext I hope it helps, Pablo -- http://www.ousia.tk ___ 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] Page Numbering using IncludePicture from simple slides
Hi Aidtyam, I don't need the full stepping code ... at least not now ;) Your advice just to decrement the page counter works just fine for me and it's so simple I'm wondering why I could think of that myself. Thanks for your help and your work on simpleslides! Steffen Am 24.04.2012 um 01:22 schrieb Aditya Mahajan: On Mon, 23 Apr 2012, Steffen Fritzsche wrote: Hi, I love the IncludePicture command from simple slides but now I've got a picture which I want to show stepwise. Therefore I created two pictures a simplified version and the full version. I just place them right one after the other. Now it would be perfect if I could force context not to increase the page number counter for the second image because in my handout I will only include the full picture and at the moment the additional slide is messing up my page numbers. Any suggestions? I just manually decrement the userpage. Below is the current version of my experimental stepping macros. \startmodule complexslides-step-yes \unprotect % This module defines two macros: % \ONLT{count}{...} which displays text on a particular page % \STEP{count}{...} which displays text from a particular page % There is also \StartStep {count} ... \StopStep and % \StartOnly {count} ... \StopOnly version. % Everything must be nested in a \StartStepping {iterations} ... \StopStepping \def\complexslides_only#1{\csname complexslides_steps_only_#1\endcsname} \def\complexslides_step#1{\csname complexslides_steps_step_#1\endcsname} \def\StartStep#1#2\StopStep{\complexslides_step{#1}{#2}} \def\StartOnly#1#2\StopOnly{\complexslides_only{#1}{#2}} \long\def\gobble#1{} \long\def\oneofone#1{#1} % TODO: Allow nesting of \StartStepping ... \StopStepping \def\StartStepping#1#2\StopStepping% {\dorecurse{#1}{\long\setvalue{complexslides_steps_step_\recurselevel}{\gobble}}% \dorecurse{#1}{\long\setvalue{complexslides_steps_only_\recurselevel}{\gobble}}% \pushmacro\ONLY \pushmacro\STEP \def\ONLY{\complexslides_only}% \def\STEP{\complexslides_step}% \dorecurse{#1}{% \edef\currentStepLevel{\recurselevel}% \long\setvalue{complexslides_steps_step_\currentStepLevel}{\oneofone}% \long\setvalue{complexslides_steps_only_\currentStepLevel}{\oneofone}% #2% \setvalue{complexslides_steps_only_\currentStepLevel}{\gobble}% \page\decrementnumber[userpage]}% \incrementnumber[userpage]% \popmacro\ONLY \popmacro\STEP } \def\doifStepelse% {\doifelse\currentStepLevel} % To be used in a group \unexpanded\def\disablesteps {\def\complexslides_only##1{\gobble}% ##2 \def\complexslides_step##1{\oneofone}%##2 } \unexpanded\def\SetStep#1#2% i of n {\dorecurse{#2}{\long\setvalue{complexslides_steps_step_\recurselevel}{\gobble}}% \dorecurse{#2}{\long\setvalue{complexslides_steps_only_\recurselevel}{\gobble}}% \edef\currentStepLevel{#1}% \long\setvalue{complexslides_steps_step_\currentStepLevel}{\oneofone}% \long\setvalue{complexslides_steps_only_\currentStepLevel}{\oneofone}% } \protect \stopmodule ___ 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 ___ smime.p7s Description: S/MIME cryptographic 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 ___
[NTG-context] Page Numbering using IncludePicture from simple slides
Hi, I love the IncludePicture command from simple slides but now I've got a picture which I want to show stepwise. Therefore I created two pictures a simplified version and the full version. I just place them right one after the other. Now it would be perfect if I could force context not to increase the page number counter for the second image because in my handout I will only include the full picture and at the moment the additional slide is messing up my page numbers. Any suggestions? Thanks! Steffen smime.p7s Description: S/MIME cryptographic 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] Page Numbering using IncludePicture from simple slides
On Mon, 23 Apr 2012, Steffen Fritzsche wrote: Hi, I love the IncludePicture command from simple slides but now I've got a picture which I want to show stepwise. Therefore I created two pictures a simplified version and the full version. I just place them right one after the other. Now it would be perfect if I could force context not to increase the page number counter for the second image because in my handout I will only include the full picture and at the moment the additional slide is messing up my page numbers. Any suggestions? I just manually decrement the userpage. Below is the current version of my experimental stepping macros. \startmodule complexslides-step-yes \unprotect % This module defines two macros: % \ONLT{count}{...} which displays text on a particular page % \STEP{count}{...} which displays text from a particular page % There is also \StartStep {count} ... \StopStep and % \StartOnly {count} ... \StopOnly version. % Everything must be nested in a \StartStepping {iterations} ... \StopStepping \def\complexslides_only#1{\csname complexslides_steps_only_#1\endcsname} \def\complexslides_step#1{\csname complexslides_steps_step_#1\endcsname} \def\StartStep#1#2\StopStep{\complexslides_step{#1}{#2}} \def\StartOnly#1#2\StopOnly{\complexslides_only{#1}{#2}} \long\def\gobble#1{} \long\def\oneofone#1{#1} % TODO: Allow nesting of \StartStepping ... \StopStepping \def\StartStepping#1#2\StopStepping% {\dorecurse{#1}{\long\setvalue{complexslides_steps_step_\recurselevel}{\gobble}}% \dorecurse{#1}{\long\setvalue{complexslides_steps_only_\recurselevel}{\gobble}}% \pushmacro\ONLY \pushmacro\STEP \def\ONLY{\complexslides_only}% \def\STEP{\complexslides_step}% \dorecurse{#1}{% \edef\currentStepLevel{\recurselevel}% \long\setvalue{complexslides_steps_step_\currentStepLevel}{\oneofone}% \long\setvalue{complexslides_steps_only_\currentStepLevel}{\oneofone}% #2% \setvalue{complexslides_steps_only_\currentStepLevel}{\gobble}% \page\decrementnumber[userpage]}% \incrementnumber[userpage]% \popmacro\ONLY \popmacro\STEP } \def\doifStepelse% {\doifelse\currentStepLevel} % To be used in a group \unexpanded\def\disablesteps {\def\complexslides_only##1{\gobble}% ##2 \def\complexslides_step##1{\oneofone}%##2 } \unexpanded\def\SetStep#1#2% i of n {\dorecurse{#2}{\long\setvalue{complexslides_steps_step_\recurselevel}{\gobble}}% \dorecurse{#2}{\long\setvalue{complexslides_steps_only_\recurselevel}{\gobble}}% \edef\currentStepLevel{#1}% \long\setvalue{complexslides_steps_step_\currentStepLevel}{\oneofone}% \long\setvalue{complexslides_steps_only_\currentStepLevel}{\oneofone}% } \protect \stopmodule ___ 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] Page numbering in latest beta
Hi, thanks for these suggestions. I now use the following settings: \definefont[HeaderFont][Sans at 10pt] \setupheader[style=HeaderFont] \setupheadertexts [section][pagenumber][pagenumber][chapter] \setuppagenumbering [alternative=doublesided, location=, style=sansbold] \startsectionblockenvironment[frontpart] \setupuserpagenumber[numberconversion=romannumerals, way=byblock] \stopsectionblockenvironment \startsectionblockenvironment[bodypart] \setupuserpagenumber[numberconversion=numbers] \setuppagenumber[number=1] \stopsectionblockenvironment \startsectionblockenvironment[backpart] \setupuserpagenumber[numberconversion=numbers] \stopsectionblockenvironment \startsectionblockenvironment[appendix] \setupuserpagenumber[numberconversion=numbers] \stopsectionblockenvironment which give me a frontpart with roman numerals starting with i, and a bodypart starting with 1. The pagenumber for the backpart and appendix is continued. This is not the case if I make way=byblock a default setting. Thanks again! Steffen Am 30.03.2012 um 20:06 schrieb Hans Hagen: On 30-3-2012 18:41, Steffen Fritzsche wrote: Hi Hans, I just ran my update script again, the issue still exists. Last update before was this morning around 10 a.m. CEST. Any ideas or suggestions? The old numbering code had a side effect. Every time one changes settings the state of the counters needs to be synchronized and in fact a reset happened. Now, normally this is no big deal, as one sets up things at the beginning of a document. However, when mid document one wants to change the style, this reset becomes annoying. (The linenote bug reported a few days ago was a side effect of this.) So, now we don't reset any longer unless the 'start' key's value differs. As a consequence one needs to be explicit in some cases, like yours. By default, we number per text (we could change that if needed) but in the past the \setupuserpagenumber triggers a synchronization of the counter and therefore reset the number, so that obscured the fact. Now, you just need to set the 'way': \starttext \setupuserpagenumber[way=byblock] % can be default yes/no? \setuppagenumbering [alternative=doublesided, partnumber=no, location=, style={\ss\bold}] \setupheadertexts [section][pagenumber][pagenumber][chapter] \setupheader [before={\ss\switchtobodyfont[10pt]}] \startsectionblockenvironment[frontpart] \setupuserpagenumber[numberconversion=romannumerals] \stopsectionblockenvironment \startsectionblockenvironment[bodypart] \setuppagenumber[number=1] \stopsectionblockenvironment \startsectionblockenvironment[backpart] \setupuserpagenumber[numberconversion=numbers] \stopsectionblockenvironment \startsectionblockenvironment[appendix] \setupuserpagenumber[numberconversion=numbers] \stopsectionblockenvironment \startfrontmatter test \stopfrontmatter \startbodymatter test \stopbodymatter \startappendices test \stopappendices \startbackmatter test \stopbackmatter \stoptext - 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 - smime.p7s Description: S/MIME cryptographic 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 ___
[NTG-context] Page numbering in latest beta
Hi, nice surprise, with the latest beta my document just grew 15 pages ;) On a closer look, it turned out that the numbering of my body part is not reset to 1, instead it continues with the next number after my frontpart. Here is how I did set this up long time ago: \startsectionblockenvironment[frontpart] \setupheader [before={\ss\switchtobodyfont[10pt]}] \setupheadertexts [section][pagenumber][pagenumber][chapter] \setuppagenumbering [alternative=doublesided, partnumber=no, location=, style={\ss\bold}] \setupuserpagenumber[numberconversion=romannumerals] \stopsectionblockenvironment \startsectionblockenvironment[bodypart] \setupheader [before={\ss\switchtobodyfont[10pt]}] \setupheadertexts [section][pagenumber][pagenumber][chapter] \setuppagenumbering [alternative=doublesided, partnumber=no, location=, style={\ss\bold}] \setuppagenumber[number=1] \stopsectionblockenvironment \startsectionblockenvironment[backpart] \setupheader [before={\ss\switchtobodyfont[10pt]}] \setupheadertexts [chapter][pagenumber][pagenumber][chapter] \setuppagenumbering [alternative=doublesided, partnumber=no, location=, style={\ss\bold}] \setupuserpagenumber[numberconversion=numbers] \stopsectionblockenvironment \startsectionblockenvironment[appendix] \setupheader [before={\ss\switchtobodyfont[10pt]}] \setupheadertexts [section][pagenumber][pagenumber][chapter] \setuppagenumbering [alternative=doublesided, partnumber=no, location=, style={\ss\bold}] \setupuserpagenumber[numberconversion=numbers] \stopsectionblockenvironment Any ideas or suggestions? Thanks in advance! Steffen smime.p7s Description: S/MIME cryptographic 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] Page numbering in latest beta
On 30-3-2012 17:39, Steffen Fritzsche wrote: Hi, nice surprise, with the latest beta my document just grew 15 pages ;) On a closer look, it turned out that the numbering of my body part is not reset to 1, instead it continues with the next number after my frontpart. Here is how I did set this up long time ago: What time did you update? I fixed a side effect of some counter code renaming efforts. Hans \startsectionblockenvironment[frontpart] \setupheader [before={\ss\switchtobodyfont[10pt]}] \setupheadertexts [section][pagenumber][pagenumber][chapter] \setuppagenumbering [alternative=doublesided, partnumber=no, location=, style={\ss\bold}] \setupuserpagenumber[numberconversion=romannumerals] \stopsectionblockenvironment \startsectionblockenvironment[bodypart] \setupheader [before={\ss\switchtobodyfont[10pt]}] \setupheadertexts [section][pagenumber][pagenumber][chapter] \setuppagenumbering [alternative=doublesided, partnumber=no, location=, style={\ss\bold}] \setuppagenumber[number=1] \stopsectionblockenvironment \startsectionblockenvironment[backpart] \setupheader [before={\ss\switchtobodyfont[10pt]}] \setupheadertexts [chapter][pagenumber][pagenumber][chapter] \setuppagenumbering [alternative=doublesided, partnumber=no, location=, style={\ss\bold}] \setupuserpagenumber[numberconversion=numbers] \stopsectionblockenvironment \startsectionblockenvironment[appendix] \setupheader [before={\ss\switchtobodyfont[10pt]}] \setupheadertexts [section][pagenumber][pagenumber][chapter] \setuppagenumbering [alternative=doublesided, partnumber=no, location=, style={\ss\bold}] \setupuserpagenumber[numberconversion=numbers] \stopsectionblockenvironment Any ideas or suggestions? Thanks in advance! Steffen ___ 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 ___ -- - 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] Page numbering in latest beta
Am 30.03.2012 um 17:39 schrieb Steffen Fritzsche: Hi, nice surprise, with the latest beta my document just grew 15 pages ;) On a closer look, it turned out that the numbering of my body part is not reset to 1, instead it continues with the next number after my frontpart. Here is how I did set this up long time ago: \startsectionblockenvironment[frontpart] \setupheader [before={\ss\switchtobodyfont[10pt]}] \setupheader[style={\switchtobodyfont[ss,10pt]}] or use \definefont[HeaderFont][Sans at 10pt] in combination with \setupheader[style=HeaderFont] \setupheadertexts [section][pagenumber][pagenumber][chapter] \setuppagenumbering [alternative=doublesided, partnumber=no, location=, style={\ss\bold}] The partnumber setting is now controlled by the prefix for the pagenumber. A better value for the style key is “style=sansbold”, “style=\ss\bf” or “style=\ssbf”. 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] Page numbering in latest beta
On 30-3-2012 18:41, Steffen Fritzsche wrote: Hi Hans, I just ran my update script again, the issue still exists. Last update before was this morning around 10 a.m. CEST. Any ideas or suggestions? The old numbering code had a side effect. Every time one changes settings the state of the counters needs to be synchronized and in fact a reset happened. Now, normally this is no big deal, as one sets up things at the beginning of a document. However, when mid document one wants to change the style, this reset becomes annoying. (The linenote bug reported a few days ago was a side effect of this.) So, now we don't reset any longer unless the 'start' key's value differs. As a consequence one needs to be explicit in some cases, like yours. By default, we number per text (we could change that if needed) but in the past the \setupuserpagenumber triggers a synchronization of the counter and therefore reset the number, so that obscured the fact. Now, you just need to set the 'way': \starttext \setupuserpagenumber[way=byblock] % can be default yes/no? \setuppagenumbering [alternative=doublesided, partnumber=no, location=, style={\ss\bold}] \setupheadertexts [section][pagenumber][pagenumber][chapter] \setupheader [before={\ss\switchtobodyfont[10pt]}] \startsectionblockenvironment[frontpart] \setupuserpagenumber[numberconversion=romannumerals] \stopsectionblockenvironment \startsectionblockenvironment[bodypart] \setuppagenumber[number=1] \stopsectionblockenvironment \startsectionblockenvironment[backpart] \setupuserpagenumber[numberconversion=numbers] \stopsectionblockenvironment \startsectionblockenvironment[appendix] \setupuserpagenumber[numberconversion=numbers] \stopsectionblockenvironment \startfrontmatter test \stopfrontmatter \startbodymatter test \stopbodymatter \startappendices test \stopappendices \startbackmatter test \stopbackmatter \stoptext - 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] Page numbering: conversion broken
Dear list, this \setuppagenumbering[conversion=romannumerals,left={--~},right={~--}] % taken from contextref.pdf does nothing in ConTeXt ver: 2011.09.12 22:49 MKIV, except adding the '–' left and right. The number is still Arabic. However this \convertnumber{r}{4} works as expected. Is this fixed in a later beta? There is nothing to fix, the while numbering mechanism has changed in MkIV and you have to write now I see. I got this example from the Context reference manual dated June 1st, 2011 on page 87. I thought it would be up to date and didn't see any hints for the mkii-mkiv problem. \setupuserpagenumber[numberconversion=romannumerals] or better (because you can set different conversion for the frontpart, main part etc) \definestructureconversionset[pagenumber][][romannumerals] \setupuserpagenumber[numberconversionset=pagenumber] Thank you, that is exactly what I was looking for (different numberconversions for front- and bodypart). My first guess was that the frontpart goes in the second set of brackets (the empty ones). But no, its in the first with frontpart:pagenumber. Very confusing sometimes :S Thank you for your help! ___ 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] Page numbering: conversion broken
Dear list, this \setuppagenumbering[conversion=romannumerals,left={--~},right={~--}] % taken from contextref.pdf does nothing in ConTeXt ver: 2011.09.12 22:49 MKIV, except adding the '–' left and right. The number is still Arabic. However this \convertnumber{r}{4} works as expected. Is this fixed in a later beta? Best regards Christian ___ 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] Page numbering: conversion broken
Am 09.11.2011 um 22:35 schrieb Christian: Dear list, this \setuppagenumbering[conversion=romannumerals,left={--~},right={~--}] % taken from contextref.pdf does nothing in ConTeXt ver: 2011.09.12 22:49 MKIV, except adding the '–' left and right. The number is still Arabic. However this \convertnumber{r}{4} works as expected. Is this fixed in a later beta? There is nothing to fix, the while numbering mechanism has changed in MkIV and you have to write now \setupuserpagenumber[numberconversion=romannumerals] or better (because you can set different conversion for the frontpart, main part etc) \definestructureconversionset[pagenumber][][romannumerals] \setupuserpagenumber[numberconversionset=pagenumber] 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] Page numbering in Adobe Reader
Am 28.06.2010 um 07:45 schrieb Steffen Wolfrum: But the example file that is mentioned in that link don't produce anything with MkII either: TeXExec | no ctx file found TeXExec | nothing to process Ahh! There was a space in the file's name, thus... Now it works. Steffen ___ 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] Page numbering in Adobe Reader
I just found this old thread as I was searching the archive for this topic: Page numbering in Adobe Reader (i.e. roman in the preface and normal/arabic in the mainface) Unfortunately this example (below) only gives no roman numbering... Any more up-to-date info on this topic, somebody?! Steffen Am 16.10.2008 um 19:48 schrieb Zhichu Chen: Hi Hans and Taco, Some guy think it's cool to use romannumeral numbers in the preface and so is in the Adobe Reader. I searched the source but apparently it is not provided. I made a very dirty test file so could you make a switch in the \setupinteraction officially? My test file is like: == \pdfcompresslevel 0 \setupinteraction [state=start, focus=width, page=yes, openaction=firstpage, click=no, title=TEST, author=Neals, subtitle=Test, keyword={test}] \setupcolors [state=start] \newcount\FrontPageNumbers \setupsubpagenumber[way=bytext,state=start] \setuppagenumbering[location=] \startsectionblockenvironment[frontpart] \setupfootertexts[pagenumber] \setuppagenumbering[conversion=romannumerals] \stopsectionblockenvironment \startsectionblockenvironment[bodypart] \global\FrontPageNumbers=\pagenumber \global\advance\FrontPageNumbers\minusone \setuppagenumber[number=1] \resetsubpagenumber % \setupfootertexts[\the\FrontPageNumbers] \setupfootertexts[pagenumber] \stopsectionblockenvironment \startsectionblockenvironment[backpart] \resetsubpagenumber \stopsectionblockenvironment \def\PageLabels{\pdfcatalog{/PageLabels /Nums [ 0 /S /r \the\FrontPageNumbers /S /D ] }} \prependtoks \PageLabels \to \everystoptext \starttext \startfrontmatter % \chapter{Table of Contents} \completecontent[interaction=all] \chapter{Preface} \dorecurse{10}{\input zapf\par} % \chapter{Preface} % \dorecurse{10}{\input zapf\par} % \chapter{Preface} % \dorecurse{10}{\input zapf\par} \stopfrontmatter \startbodymatter \chapter{Test} \dorecurse{15}{\input tufte\par} \chapter{TestAgain} \dorecurse{15}{\input ward\par} \stopbodymatter \startbackmatter Index maybe. \stopbackmatter \stoptext == A lot of the code to setup the main layout is stolen from Wolfgang :) -- Best Regards Chen Zhi-chu Chen | Shanghai Synchrotron Radiation Facility No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China tel: 086 21 5955 3405 | zhichu.chen.googlepages.com | www.sinap.ac.cn ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Page numbering in Adobe Reader
Am 27.06.10 20:52, schrieb Steffen Wolfrum: I just found this old thread as I was searching the archive for this topic: Page numbering in Adobe Reader (i.e. roman in the preface and normal/arabic in the mainface) Unfortunately this example (below) only gives no roman numbering... Any more up-to-date info on this topic, somebody?! http://www.ntg.nl/pipermail/ntg-context/2010/050463.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 ___
Re: [NTG-context] Page numbering in Adobe Reader
Am 27.06.2010 um 22:45 schrieb Wolfgang Schuster: Am 27.06.10 20:52, schrieb Steffen Wolfrum: I just found this old thread as I was searching the archive for this topic: Page numbering in Adobe Reader (i.e. roman in the preface and normal/arabic in the mainface) Unfortunately this example (below) only gives no roman numbering... Any more up-to-date info on this topic, somebody?! http://www.ntg.nl/pipermail/ntg-context/2010/050463.html Wolfgang I am not sure if I understood the meaning of the quoted link above correctly: You mean that it's currently not possible with MkIV? But the example file that is mentioned in that link don't produce anything with MkII either: TeXExec | no ctx file found TeXExec | nothing to process Anyway, could someone show me an example where the resulting PDF has roman pagenumbering in preface and normal/arabic in mainface? I have to admit I've never seen a document like this ... Thanks, Steffen ___ 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] page numbering with make-up-pages
Hi, Please, I need urgent help with page numbering! I begin my document with three standardmakeup pages, and expect fourth (normal) one to have number 4. But it is 1, whatever I do. In particular, \setuppagenumbering[number=4] has no effect. In other words, I need numbering from the very first page. Please, see attached file 0.tex. -- Best Regards, Vyatcheslav Yatskovsky \synctex=1 \setupbodyfont[mscore,rm,14pt] \usemodule[fullpage][style={cm,plain}] % --- Discipline-Dependent Definitions --- \def \sps {special-purpose digital computers} \def \mfst {Module â1 Main principles of organization of \sps} %ÐÑÐ½Ð¾Ð²Ð½Ñ Ð¿ÑинÑипи оÑганÑзаÑÑÑ Ð¡Ð¦ÐÐ \def \msec {Module â2 Principles of construction of airborne computers} %ÐÑинÑипи побÑдови боÑÑÐ¾Ð²Ð¸Ñ Ð¦ÐÐ \def \ccs {control digital computers} \def \ads {airborne digital computers} \def \ad {airborne digital computer} \def \SylIndex {Ð 01 - 8.092502a - 39} \def \Discipline {Special-purpose digital computers } \def \AcademProgIndex {Ð-3-8.092502-31 } \def \Year {5} \def \Semester {10} % comment out non-existing activities \def \LectureHours {36} \def \LabHours {18} \def \SelfStudyHours {104} \def \IndividualHours {4} \def \TotalHours {162} \def \Homeworks {2 (10 semester)} \def \ExamSemester {10} %\def \DifTestSemester {10} % --- Reusable Buffers --- \startbuffer[UpperBanner] {\bf NATIONAL AVIATION UNIVERSITY} INSTITUTE OF ELECTRONICS AND CONTROL SYSTEMS Airspace control systems faculty Aviation computer-integrated complexes department \stopbuffer \startbuffer[ApprovedByPolukhin] \startalignment[right]\setupnarrower[left=12cm]\startnarrower[left] Approved Deputy Rector for Academics \thinrule\hskip1mm A.Polukhin \hl[2]\thinrule\hskip1mm\currentdate[year]\par \stopnarrower\stopalignment \stopbuffer \startbuffer[SyllabusIndex] \startalignment[right] Index \SylIndex \stopalignment \stopbuffer \startbuffer[DisciplineBanner] {\bfa SYLLABUS} of the discipline {\bfa \Discipline} (according to ECTS) \stopbuffer \startbuffer[BranchAndSpeciality] \startalignment[right] Branch\hskip1.4cm 0925 Automation and computer-integrated technologies Specialty\hskip1cm 6.092500 Computer-integrated technological processes and productions \stopalignment \stopbuffer \startbuffer[DisciplineHours] \startalignment[right] Year \Year \hfilSemester \Semester \blank[medium] Lectures -- {\LectureHours} hours Laboratory work -- {\LabHours} hours Private work -- {\SelfStudyHours} hours Individual work -- {\IndividualHours} hours Total -- {\TotalHours} hours \blank[medium] \ifx \Homeworks \undefined \else Homeworks -- {\Homeworks} \fi \ifx \ExamSemester \undefined \else Exam -- {\ExamSemester} semester \fi \ifx \DifTestSemester \undefined \else Differentiated test -- {\DifTestSemester} semester \fi \stopalignment \stopbuffer \def \FillInDate {\hl[2]\hl[4]\hskip1mm 20\hl[2]\hskip.5mm} \def \FilledDate#1#2#3 { #1 \_\_\_#2\_\_\_ #3} % --- - % % \starttext % --- FIRST PAGE \startstandardmakeup[align=center] \setupbackgrounds[header][text][background=] \setupindenting[none] \setupinterlinespace[24pt] \getbuffer[UpperBanner] \blank[line] \getbuffer[ApprovedByPolukhin] \blank[line] \getbuffer[SyllabusIndex] \blank[line] \getbuffer[DisciplineBanner] \blank[line] \getbuffer[BranchAndSpeciality] \blank[line] \getbuffer[DisciplineHours] \par\vfill Kiyv \currentdate[year] \stopstandardmakeup % --- SECOND PAGE \startstandardmakeup[doublesided=no] \setupindenting[yes, big, first] \setupinterlinespace[24pt] The syllabus of the discipline \Discipline is based on the Curriculum â Ð Ð-3-502-a/01, branch 0925 âAutomation and computer-integrated technologiesâ, specialty 6.092500 âComputer-integrated techno-logical processes and productionsâ; academic program of this discipline index \AcademProgIndex, approved \FilledDate{12}{06}{2002};\hskip1mm âProvisional Regulations on Training according to ECTS (within the pedagogical experiment)â and âProvisional Regulations on the Assessment grading systemâ approved by the Rector of the University (order â122 of 15.06.2004). \blank[line] The syllabus was developed by %\blank[line] Associate Professor, Candidate of Technical Sciences \thinrule O.Y. Krasnousova %\blank[line] Assistant \thinrule T.I. Lukinova %\blank[line] Assistant \thinrule V.S. Yatskovsky \blank[line] The syllabus was discussed and approved at the meeting of the department of Aviation Computer-Integrated Complexes, protocol â \hl[2] \FillInDate. \blank[line] Head of the Department \thinrule V.M. Sineglazov \blank[line] The syllabus has been discussed and approved by the Scientific-Methodological-Editorial Committee of the Airspace Control Systems Faculty, protocol â \hl[2] \FillInDate. \blank[line]
[NTG-context] Page numbering and MkIV
This code: \enableregime[utf] \starttext \title{BLAH BLAH\\ BLAH} \setuppagenumbering[state=stop] \page \setuppagenumbering[state=start,location={footer,center},conversion=romannumerals,style={\bf}] \completecontent \page \setuppagenumbering[state=stop] \chapter[chapter:foo]{Foo Bar} \setuppagenumbering[state=start,location={footer,center},conversion=no,style={\ss\bf}] \section[sect:evocation]{EVOCATION} Lorem ipsum. \stoptext Produces what I expect with MkII (blank page, roman numbered page, arabic numbered page), but MkIV produces PDF with arabic numbering on every page. Any ideas? -- Vedran Miletić ___ 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] Page Numbering Hell
Aditya Mahajan wrote on Friday, October 23, 2009 10:41 PM: The above solution was for MkIV. For completeness, this is how you will do the same with MkII. I don't know how to get the page numbers correct in the TOC in this case. I get correct MkII pagenumbers with this: %% MkII: \starttext \setuppagenumbering[conversion=romannumerals] \startfrontmatter \completecontent \stopfrontmatter \setuppagenumber[number=1] \setuppagenumbering[conversion=numbers] \startbodymatter \chapter{Chapter} \section{Section} \input tufte \externalfigure[cow] \chapter{Chapter 2} \section{Section} \input knuth \stopbodymatter \stoptext Thomas ___ 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] Page Numbering Hell (SOLVED)
All- I have attached a heavily commented MKII example that implements the structure that I want. The notes identify several (IMHO) weak spots in documentation, especially some consistency issues. In order to implement this (some said simple) format, I used: * http://www.pragma-ade.com/general/manuals/cont-enp.pdf (the manual) * http://www.opensubscriber.com/message/ntg-context@ntg.nl/9815615.html * http://wiki.contextgarden.net/Biochemistry_textbook * http://texshow.contextgarden.net * http://wiki.contextgarden.net/Titles#Truly_empty_pagebreak_before_chapte rs I'm fine with that. For those (most, I imagine) who don't want to wade through the notes, here is a summary of the most (again, IMHO) issues: * startsectionblockenvironment does not appear documented, and appears to be critical for this style * setuppagenumbering documentation is hard to follow for options 'by\em{section}' and '\em{section}number' o The manual uses inconsistent italics o The texshow page doesn't use italics where it should * setupcombinedlist (through setuplist) has the same inconsistent use of italics. * setuphead is not documented completely (no reference to special 'page' formats) * definepagebreak not documented Also, the solution for 'truly empty pagebreak before chapters' does not appear to work for the last chapter in the document. I would be more than happy to contribute to the texshow documentation and wiki, assuming that I would be given an account... J The list appears to be dead again, so I hope this makes it through. Thanks, -Bryant From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Bryant Eastham Sent: Wednesday, October 21, 2009 12:37 AM To: ntg-context@ntg.nl Subject: [NTG-context] Page Numbering Hell All- A few days ago when I first stumbled on ConTeXt I was very, very excited. I have some 500 pages of technical documentation that could benefit from this, particularly since I need Japanese font support. But it has to be real. I'm sorry if this sounds caustic, but after 12 hours of failed attempts to even get a minimal document formatted I have some serious questions for the list: 1. Is Mark IV real? I am only somewhat joking here - after spending hours searching for reasonable documentation on even the most trivial options, I am left wondering whether this is something I want to use... 2. ConTeXt looks great. But what is current? Seriously, I like the look and the support (particularly Unicode). But going over documentation I cannot make heads or tails of what to do. Mark II? Mark IV? TeTeX? LuaTeX? If I really want to use this, what should I use? 3. Having answered #2, where in the world is a reference manual!!! I mean one that actually *documents the options*. 4. Having answered #3, are there any current examples that actually work? The snippets from the mailing are great, but they are just snippets. That doesn't help me. Now, to resolve my immediate issue, and just because I will not be able to sleep well until I figure this out (yes, I am fixated on this). I want this document structure: Contents 1. Chapter 1-1 1.1 Section 1-2 2. Chapter 2 2-1 2.1 Section 2-2 Table of contents on page i. Even/odd, each chapter starts on right page. Page number (as in 2-2) in top margin. Mark IV, Lua document. I have tried hundreds of different combinations. If it cannot do this, the I will (with sadness) move on. I'm sure that it would take someone who understands this about 5 minutes to write (if that). -Bryant Panasonic Electric Works Laboratory of America - SLC Lab 4525 So. Wasatch Blvd., Suite 100, 84124 Salt Lake City, UT 84124 T 801.993.7124 F 801.993.7260 beast...@pewla.us.pewg.pansonic.com Bryant Eastham Chief Architect ***CONFIDENTIALITY NOTICE***: This e-mail and any attachments may contain information which is confidential, proprietary, trade secret, privileged or otherwise protected by law. The information is the property of Panasonic Electric Works Laboratory of America, Inc., and is solely intended for the named addressee (or a person responsible or delivering it to the addressee). If you are not the intended recipient of this message, you are not authorized to read, print, retain copy or disseminate this message or any part of it. If you have received this e-mail in error, please notify the sender and the Office of General Counsel at generalcoun...@us.pewg.panasonic.com mailto:generalcoun...@us.pewg.panasonic.com immediately by return e-mail and delete it from your computer. image001.gifimage002.pngimage004.pngimage005.gif evaluate.docb.tex Description: evaluate.docb.tex
Re: [NTG-context] Page Numbering Hell
Aditya, Luigi, others- Thank you for your responses. I appreciate the candid answers, and the time you took to provide examples. Regarding Aditya's example, I do not get any errors, running LuaTeX, MKIV, beta-0.43.0-2009091520. However, I also do not get romannumerals in the frontpart, and pagenumbers do not reset to 1 at the beginning of each section. The magic command appears to be definestructureconversionset, which is not documented that I can see on http://texshow.contextgarden.net/. A search of the wiki results in a single match, which is not a complete example. Google led me to many snippets and emails, mostly non-functional. This was leading me down the same rabbit hole that I was going into before. Given other's responses, I think to stick with MKII for now. I will do as some have suggested, and keep my eye on MKIV while it stops moving. In particular, thanks to Taco for his concise summary of the differences between texexec and context (and quick fix of my reported bug). Yes, it did answer my question. -Bryant -Original Message- From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Aditya Mahajan Sent: Wednesday, October 21, 2009 9:49 AM To: mailing list for ConTeXt users Subject: Re: [NTG-context] Page Numbering Hell On Wed, 21 Oct 2009, Bryant Eastham wrote: 1. Is Mark IV real? I am only somewhat joking here - after spending hours searching for reasonable documentation on even the most trivial options, I am left wondering whether this is something I want to use... MKIV is still a moving target. For example, the change is the structure code (headings, pagenumbers, lists, etc) started only in April. There are still some things that are not done yet. Documentation will only make sense once the interface is stable. For structure code, the interface is not fixed yet, so the only documentation is the examples in the source file. Parts that are stable (fonts, typescripts) are documented in the new manual (see wiki). The interface for most other things has not changed, so the MKII interface works. 2. ConTeXt looks great. But what is current? Seriously, I like the look and the support (particularly Unicode). But going over documentation I cannot make heads or tails of what to do. Mark II? Mark IV? TeTeX? LuaTeX? If I really want to use this, what should I use? Use MKII. It is stable and well documented. Unless there is some feature of MKIV that you definitely need. MKII had some support for unicode and oriental languages. 3. Having answered #2, where in the world is a reference manual!!! I mean one that actually *documents the options*. See http://www.pragma-ade.com/overview.htm Most of MKII options are documented in ConTeXt the manual. Parts of MKIV are documented in mk.pdf 4. Having answered #3, are there any current examples that actually work? The snippets from the mailing are great, but they are just snippets. That doesn't help me. The wiki: http://www.contextgarden.net Now, to resolve my immediate issue, and just because I will not be able to sleep well until I figure this out (yes, I am fixated on this). A partial solution (I don't know how to set the separator between chapter number and page number) Following Alan's email: % missing setups to: % 1. frontmatter pagenumbering conversion=romannumerals \setupuserpagenumber[way=byblock] \definestructureconversionset[frontpart:pagenumber][][romannumerals] \definestructureconversionset[bodypart:pagenumber] [][numbers] \setupuserpagenumber[numberconversionset=pagenumber] % 2. bodymatter pagenumbering chapter-page % 3. reset pagenumber for each chapter % I don't know how to set the - between chapter and page number \setupuserpagenumber [way=bychapter, prefix=yes, prefixset=chapter, prefixsegments=2:2, ] % 4. add blank pages if necessary to start chapters on odd pages. % 5. Page number in top margin \setuppagenumbering[location={header,margin},alternative=doublesided] \starttext \startfrontmatter \completecontent[criterium=all] \stopfrontmatter \startbodymatter \dorecurse{4} {\chapter{Chapter} \dorecurse{8} {\section{Section} \input knuth \endgraf}} \stopbodymatter \stoptext 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 ___ ___ 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
Re: [NTG-context] Page Numbering Hell
On Fri, Oct 23, 2009 at 10:30 AM, Bryant Eastham beast...@pewla.us.pewg.panasonic.com wrote: Thomas, all: It appears that not all of the messages have been delivered in a timely manner - I just received quite a few. I suppose that is why you reference the reply I got (or didn't until just now). FYI, it appears to me that there are major issues with the ntg.nl domain name server - it sometimes seems to go non-responsive. I can fix my local machine for web access, but I cannot change my mailer. As I have already written, sorry for the caustic approach. I obviously have offended you, and apologize. Most of your points are well taken. Yes, I had looked at all the examples that I could find, I had checked the many references, and could not find documentation on most of the routines that current postings seem to indicate should be used. With the further pointers I have received I will try again, and post my results. As for my real comment, snide question begs snide response. I accept that. However, keep in mind that real to me doesn't mean cool, or full of features, or better, but rather means that it will work, day in and day out, in a commercial environment. by now 5 years on production with ConTeXt . I think Pragma is on production from 20 years. Judging by other responses, the jury is out on real (at least of mkiv). Two projects running with mkiv. I will continue to evaluate. And, my 35 documents, hundreds of pages was not meant to be multiplied! I have under 1,000 pages total. $pdfinfo pdftex.pdf : Pages: 812 : 1000 pages is not a big number even for a single doc. The problems today are opentype, colours, multilingual, multi channel ouput, automatic workflow. There are not so many tools that are programmable as ConTeXt (anyway, you can always buy expensive solutions). Thanks to others for their responses. I will try them out tomorrow, and will be sure to collect all my hundreds of attempts Tests -- that's what we need. -- luigi ___ 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] Page Numbering Hell
On Friday 23 October 2009 10:30:09 Bryant Eastham wrote: Yes, I had looked at all the examples that I could find, I had checked the many references, and could not find documentation on most of the routines that current postings seem to indicate should be used. With the further pointers I have received I will try again, and post my results. As has been clearly pointed out by this exchange: - ConTeXt MKII is very stable and is pretty well documented. - ConTeXt MKIV is a working system, but is not quite as stable. It is under active development, and this mailing list is principally active concerning this development. It is therefore quite appropriate that current postings turn around features that are not (yet) as well documented as stable MKII. So you should not be surprised to find that the use of cutting edge technology gives many exciting new functionality, but one must be willing to put up with some rough edges. This is why, for example, the Debian project has very appropriately named its releases stable, testing and unstable (as well as experimental). Unstable sometimes breaks, but usually this lasts only a couple of hours (occasionally a couple of days for less important problems). Alan P.S. I just spent several hours using Microsoft Word to edit a bunch of administrative documents. The task would have taken 10 minutes or so using ConTeXt and my usual tools (there were many repetitive edits). This was a *horrible* experience and I simply cannot fathom how one can be satisfied with such a work tool! (Here, I had no choice.) ___ 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] Page Numbering Hell
Boštjan Vesnicer wrote: for me it is actually very obvious an easy to understand the situation about missing documentation. In my opinion there are a couple of reasons for that: - The gurus don't have time to write the documentation since they have more important things to do, i.e. implementing features. indeed; and since we also have to make a living, sometimes demands of projects get priority - Documentation (in a form of a manual) is of the most value to the newbies, but they can't write a manual by themselves about something they dont't know much about. So they ask for the documentation on the mailing list, but they eventually find out that the up-to-date documentation is missing and they start to use other sources of information (wiki, mailing list, source code etc.). They learn slowly, but at the end (if they persist long enough) they know enough that they maybe could write a manual. However, they don't really need the manual any more so they decide not to write one. (Paradoxical situation, I know.) good point ... also, writing a manual helps oncovering inconsistencies; a variant on manuals is writing articles (e.f. for tex user group magazines) - The key is in the motivation. If you want better documentation, you have to figure out how to convince the gurus to write one. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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] Page Numbering Hell
On Wednesday 21 October 2009 18:52:21 Bryant Eastham wrote: 1. Should I use mkii or mkiv? If mkii, then what should I plan on as schedule for upgrading? I asked this question recently and was told that it was probably pretty safe now to use mkiv, as the developers use mkiv themselves. My experience is that mkiv is not totally stable, but almost so. I try to use it for my production as much as possible. For the core of the commands, the two are interchangable and it is simply a question of using the context script or the texexec script (but don't include a % output=pdftex line in your source file!) For specific differences, you can use \doifmodeelse{mkiv}{ }{ } This also answers 2. 3. What *reference* material exists? I do not need a user guide. Right now it has been Google. However, the solutions most recently mentioned on the mailing lists seem to dead-end. I am fine with an answer of see the source code if that is really it. Did you look at the user guide? It is a reference manual http://www.pragma-ade.com/general/manuals/cont-eni.pdf http://www.pragma-ade.com/general/manuals/cont-enp.pdf The first is a screen version, the second a paper format. (and called context-reference or contextref.pdf on the svn) A rich source is: http://www.pragma-ade.com/overview.htm ___ 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] Page Numbering Hell
All- A few days ago when I first stumbled on ConTeXt I was very, very excited. I have some 500 pages of technical documentation that could benefit from this, particularly since I need Japanese font support. But it has to be real. I'm sorry if this sounds caustic, but after 12 hours of failed attempts to even get a minimal document formatted I have some serious questions for the list: 1. Is Mark IV real? I am only somewhat joking here - after spending hours searching for reasonable documentation on even the most trivial options, I am left wondering whether this is something I want to use... 2. ConTeXt looks great. But what is current? Seriously, I like the look and the support (particularly Unicode). But going over documentation I cannot make heads or tails of what to do. Mark II? Mark IV? TeTeX? LuaTeX? If I really want to use this, what should I use? 3. Having answered #2, where in the world is a reference manual!!! I mean one that actually *documents the options*. 4. Having answered #3, are there any current examples that actually work? The snippets from the mailing are great, but they are just snippets. That doesn't help me. Now, to resolve my immediate issue, and just because I will not be able to sleep well until I figure this out (yes, I am fixated on this). I want this document structure: Contents 1. Chapter 1-1 1.1 Section 1-2 2. Chapter 2 2-1 2.1 Section 2-2 Table of contents on page i. Even/odd, each chapter starts on right page. Page number (as in 2-2) in top margin. Mark IV, Lua document. I have tried hundreds of different combinations. If it cannot do this, the I will (with sadness) move on. I'm sure that it would take someone who understands this about 5 minutes to write (if that). -Bryant Panasonic Electric Works Laboratory of America - SLC Lab 4525 So. Wasatch Blvd., Suite 100, 84124 Salt Lake City, UT 84124 T 801.993.7124 F 801.993.7260 beast...@pewla.us.pewg.pansonic.com Bryant Eastham Chief Architect ***CONFIDENTIALITY NOTICE***: This e-mail and any attachments may contain information which is confidential, proprietary, trade secret, privileged or otherwise protected by law. The information is the property of Panasonic Electric Works Laboratory of America, Inc., and is solely intended for the named addressee (or a person responsible or delivering it to the addressee). If you are not the intended recipient of this message, you are not authorized to read, print, retain copy or disseminate this message or any part of it. If you have received this e-mail in error, please notify the sender and the Office of General Counsel at generalcoun...@us.pewg.panasonic.com mailto:generalcoun...@us.pewg.panasonic.com immediately by return e-mail and delete it from your computer. image001.gifimage003.gifimage004.pngimage005.png___ 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] Page Numbering Hell
Dear Bryant, Your post is slightly exaggerated. The document structure that you want to produce appears to be relatively standard. Whereas, indeed, the learning curve for ConTeXt (as for TeX) can be somewhat slow, the richness and powerfulness is well worth the effort. The documentation for ConTeXt (mkii) is quite rich, although it did take me some time to get used to the presentation and style. Some of the syntax has evolved in mkiv, mostly in an effort of simplification, but also to allow some powerful new features. The documentation is (slowly) being updated, as this is a tremendous effort. But it is a necessary effort. I believe that all of us users will appreciate the updated reference manual when it is completed! A notable change between mkii and mkiv is the handling of document structure. I, too, have had a difficult time with this evolution of such a fundamental functionality and will therefore let someone more expert reply to your request with specific examples on how to tune the style, notably page numbering; it should be a simple matter. Alan % missing setups to: % 1. frontmatter pagenumbering conversion=romannumerals % 2. bodymatter pagenumbering chapter-page % 3. reset pagenumber for each chapter % 4. add blank pages if necessary to start chapters on odd pages. \starttext \startfrontmatter \completecontent \stopfrontmatter \startbodymatter \chapter{Chapter} \section{Section} \chapter{Chapter 2} \section{Section} \stopbodymatter \stoptext On Wednesday 21 October 2009 08:36:35 Bryant Eastham wrote: All- A few days ago when I first stumbled on ConTeXt I was very, very excited. I have some 500 pages of technical documentation that could benefit from this, particularly since I need Japanese font support. But it has to be real. I'm sorry if this sounds caustic, but after 12 hours of failed attempts to even get a minimal document formatted I have some serious questions for the list: 1. Is Mark IV real? I am only somewhat joking here - after spending hours searching for reasonable documentation on even the most trivial options, I am left wondering whether this is something I want to use... 2. ConTeXt looks great. But what is current? Seriously, I like the look and the support (particularly Unicode). But going over documentation I cannot make heads or tails of what to do. Mark II? Mark IV? TeTeX? LuaTeX? If I really want to use this, what should I use? 3. Having answered #2, where in the world is a reference manual!!! I mean one that actually *documents the options*. 4. Having answered #3, are there any current examples that actually work? The snippets from the mailing are great, but they are just snippets. That doesn't help me. Now, to resolve my immediate issue, and just because I will not be able to sleep well until I figure this out (yes, I am fixated on this). I want this document structure: Contents 1. Chapter 1-1 1.1 Section 1-2 2. Chapter 2 2-1 2.1 Section 2-2 Table of contents on page i. Even/odd, each chapter starts on right page. Page number (as in 2-2) in top margin. Mark IV, Lua document. I have tried hundreds of different combinations. If it cannot do this, the I will (with sadness) move on. I'm sure that it would take someone who understands this about 5 minutes to write (if that). -Bryant ___ 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] Page Numbering Hell
On Wed, Oct 21, 2009 at 9:13 AM, Alan BRASLAU alan.bras...@cea.fr wrote: \starttext \startfrontmatter \completecontent \stopfrontmatter \startbodymatter \chapter{Chapter} \section{Section} \chapter{Chapter 2} \section{Section} \stopbodymatter \stoptext only slightly different, just to see some pages; cow.pdf must be in the same folder of test.tex %% %% %% test.tex \setupcolors[state=start] \setupinteraction[state=start] \starttext \startfrontmatter \completecontent \stopfrontmatter \startbodymatter \chapter{Chapter} \section{Section} \input tufte \externalfigure[cow] \chapter{Chapter 2} \section{Section} \input knuth \stopbodymatter \stoptext compile with $ texexec --pdf test.tex The switch --pdf is not necessary, but actually I prefear to remember to myself that I'm doing pdf. Question x Bryant : how do you change the color of interactive elements ? -- luigi ___ 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] Page numbering in Adobe Reader
Hi Hans and Taco, Some guy think it's cool to use romannumeral numbers in the preface and so is in the Adobe Reader. I searched the source but apparently it is not provided. I made a very dirty test file so could you make a switch in the \setupinteraction officially? My test file is like: == \pdfcompresslevel 0 \setupinteraction [state=start, focus=width, page=yes, openaction=firstpage, click=no, title=TEST, author=Neals, subtitle=Test, keyword={test}] \setupcolors [state=start] \newcount\FrontPageNumbers \setupsubpagenumber[way=bytext,state=start] \setuppagenumbering[location=] \startsectionblockenvironment[frontpart] \setupfootertexts[pagenumber] \setuppagenumbering[conversion=romannumerals] \stopsectionblockenvironment \startsectionblockenvironment[bodypart] \global\FrontPageNumbers=\pagenumber \global\advance\FrontPageNumbers\minusone \setuppagenumber[number=1] \resetsubpagenumber % \setupfootertexts[\the\FrontPageNumbers] \setupfootertexts[pagenumber] \stopsectionblockenvironment \startsectionblockenvironment[backpart] \resetsubpagenumber \stopsectionblockenvironment \def\PageLabels{\pdfcatalog{/PageLabels /Nums [ 0 /S /r \the\FrontPageNumbers /S /D ] }} \prependtoks \PageLabels \to \everystoptext \starttext \startfrontmatter % \chapter{Table of Contents} \completecontent[interaction=all] \chapter{Preface} \dorecurse{10}{\input zapf\par} % \chapter{Preface} % \dorecurse{10}{\input zapf\par} % \chapter{Preface} % \dorecurse{10}{\input zapf\par} \stopfrontmatter \startbodymatter \chapter{Test} \dorecurse{15}{\input tufte\par} \chapter{TestAgain} \dorecurse{15}{\input ward\par} \stopbodymatter \startbackmatter Index maybe. \stopbackmatter \stoptext == A lot of the code to setup the main layout is stolen from Wolfgang :) -- Best Regards Chen Zhi-chu Chen | Shanghai Synchrotron Radiation Facility No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China tel: 086 21 5955 3405 | zhichu.chen.googlepages.com | www.sinap.ac.cn ___ 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] Page numbering and first page
Hello Is it any way to get a different page numbering for the first page (and different heads and foots). I used to do in plain tex with a test : * \newif\ifpageun \ifnum\pageno=1 \pageuntrue \else \pageunfalse \fi \footline={\ifpageun \hfil \global \pageunfalse \else \numpage=\pageno \advance\numpage by \decale \ifodd\numpage\rm \the\nom \hfill --page \the\numpage-- \else \rm --page \the\numpage--\hfill\the \nom \fi \fi} * (names are french) but maybe there is a simpler way in Context. ___ 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] Page numbering and first page
On Tue, Aug 5, 2008 at 11:20 AM, Eric DÉTREZ [EMAIL PROTECTED] wrote: Hello Is it any way to get a different page numbering for the first page (and different heads and foots). I used to do in plain tex with a test : * \newif\ifpageun \ifnum\pageno=1 \pageuntrue \else \pageunfalse \fi \footline={\ifpageun \hfil \global \pageunfalse \else \numpage=\pageno \advance\numpage by \decale \ifodd\numpage\rm \the\nom \hfill --page \the\numpage-- \else \rm --page \the\numpage--\hfill\the \nom \fi \fi} * (names are french) but maybe there is a simpler way in Context. Adapt this: \startsectionblockenvironment[frontpart] \setuppagenumbering[location=footer] \stopsectionblockenvironment \startsectionblockenvironment[bodypart] \setuppagenumbering[location=header] \stopsectionblockenvironment \starttext \startfrontmatter \input tufte \stopfrontmatter \startbodymatter \dorecurse{12}{\input knuth\par} \stopbodymatter \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] page numbering question
Hi, I have been searching contextgarden.net and the manuals at the Pragma website for more than an hour now, and I have yet to find a way to have ConTeXt decide in two-sided mode that the last page of a book chapter is a even numbered page without anything on it and therefore will also not have a page number. I probably can manually effect this by carefully inserting \setuppagenumber commands which start and stop the state, but that's not a very general solution. Will someone please point me to appropriate documentation or an example. Thanks, Dave -- home address: 12 Linden Rd., E. Sandwich, MA 02537; ph/fax=508-888-7655/4168 email address: [EMAIL PROTECTED]; website(s): http://www.walden-family.com/ ___ 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] page numbering question
\definepagebreak[chapter][yes,footer,right] (or: \definepagebreak[chapter][yes,header,right]) Jörg David C. Walden wrote: Hi, I have been searching contextgarden.net and the manuals at the Pragma website for more than an hour now, and I have yet to find a way to have ConTeXt decide in two-sided mode that the last page of a book chapter is a even numbered page without anything on it and therefore will also not have a page number. I probably can manually effect this by carefully inserting \setuppagenumber commands which start and stop the state, but that's not a very general solution. Will someone please point me to appropriate documentation or an example. Thanks, Dave -- home address: 12 Linden Rd., E. Sandwich, MA 02537; ph/fax=508-888-7655/4168 email address: [EMAIL PROTECTED]; website(s): http://www.walden-family.com/ ___ 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] page numbering question
On Wed, Apr 9, 2008 at 4:29 PM, David C. Walden [EMAIL PROTECTED] wrote: Hi, I have been searching contextgarden.net and the manuals at the Pragma website for more than an hour now, and I have yet to find a way to have ConTeXt decide in two-sided mode that the last page of a book chapter is a even numbered page without anything on it and therefore will also not have a page number. I probably can manually effect this by carefully inserting \setuppagenumber commands which start and stop the state, but that's not a very general solution. Will someone please point me to appropriate documentation or an example. You could insert a empty page with \page[empty] or \startstandardmakeup ... \stopsatndardmakeup. Yould integrate this in the normal document structure. \startcomponent test \setuppagenumbering[alternative=doublesided] \startfrontmatter \startstandardmakeup Title Page \stopstandardmakeup \stopfrontmatter \startbodymatter .. document ... \stopbodymatter \startbackmatter \startstandardmakeup \stopstandardmakeup \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] page numbering question
Hi David, On Wed, 9 Apr 2008, David C. Walden wrote: Hi, I have been searching contextgarden.net and the manuals at the Pragma website for more than an hour now, and I have yet to find a way to have ConTeXt decide in two-sided mode that the last page of a book chapter is a even numbered page without anything on it and therefore will also not have a page number. I am not sure what you want. Do you want the last page of chapters to be numbered or do you want them to be completely empty? 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] page numbering question
I am not sure what you want. Do you want the last page of chapters to be numbered or do you want them to be completely empty? I want even numbered last pages of chapters which have no text or images on them to be completely empty. I tried various versions of the code for Truly empty page breaks at http://wiki.contextgarden.net/Titles that Jörg's message about \definepagebreak led me to, and I tried various versions of the additional discussion about Again: How to make empty pages by default empty? from November 2003 in the NTG-context archives. I couldn't make any of that work within the last half hour or so. Thus, I have now changed my macro which begins chapters so it turns off page numbering before the \chapter call and turns page numbering back on after some text has been place on the first page of the chapter and that now does what I want. So, that's kind of a brute force approach to getting these completely blank pages automatically. Thanks everyone for your suggestions. -Dave ___ 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] page numbering question
On Wed, 9 Apr 2008, David C. Walden wrote: I am not sure what you want. Do you want the last page of chapters to be numbered or do you want them to be completely empty? I want even numbered last pages of chapters which have no text or images on them to be completely empty. I tried various versions of the code for Truly empty page breaks at http://wiki.contextgarden.net/Titles that Jörg's message about \definepagebreak led me to, and I tried various versions of the additional discussion Does this do what you want (at least in this test case) \definepagebreak [mychapterpagebreak] [yes,header,footer,right] \setuphead [chapter] [page=mychapterpagebreak] \setuppagenumbering[alternative=doublesided,location={header,margin}] \setupheadertexts[{My special headertext}] \setupfootertexts[This is a text in the footer] \starttext \chapter {testA} \dorecurse{10}{\input tufte } \chapter {testB} \dorecurse{10}{\input tufte } \chapter {testC} \dorecurse{10}{\input tufte } \stoptext Notice that the pages at the end of the chapters are empty. about Again: How to make empty pages by default empty? from November 2003 in the NTG-context archives. I couldn't make any of that work within the last half hour or so. Thus, I have now changed my macro which begins chapters so it turns off page numbering before the \chapter call and turns page numbering back on after some text has been place on the first page of the chapter and that now does what I want. So, that's kind of a brute force approach to getting these completely blank pages automatically. Thanks everyone for your suggestions. -Dave ___ 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] page numbering question
Does this do what you want (at least in this test case) \definepagebreak [mychapterpagebreak] [yes,header,footer,right] \setuphead [chapter] [page=mychapterpagebreak] \setuppagenumbering[alternative=doublesided,location={header,margin}] \setupheadertexts[{My special headertext}] \setupfootertexts[This is a text in the footer] \starttext \chapter {testA} \dorecurse{10}{\input tufte } \chapter {testB} \dorecurse{10}{\input tufte } \chapter {testC} \dorecurse{10}{\input tufte } \stoptext I thought I tried that on my book and it didn't work. My actual situation is more complicated with declarations of front matter, depositing of \completecontent, etc. However, I have now done it with the test case expanded to mimic my real situation and it does seem to work. I'll try it in my real file (again?). ___ 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] page numbering in words?
Hello, I have just noticed this thread (I cannot really catch up reading all the stuff here) and remembered that I have some really old files lying somewhere on my computer. The file dates back to the time when Brooks Moses Hans have implemented \defineconversion [sl] [a] [\sloveniancharacters] for me, so I needed to make sure that I understood the concept. I didn't review the content, I have just added a small demo at the end. On 4/16/07, Robin Kirkham wrote: Hi all, There are still a few problems with \numstr when you get beyond the hundreds. Perhaps this is unlikely when it is a page number, but I was interested in using this macro for contracts, where an amount of money is often written out in words. \input numstr.tex \starttext \numstr{-1}\par \numstr{0}\par \numstr{101}\par \numstr{1001}\par \numstr{101}\par \numstr{1200021} \stoptext This produces output: null null one hundred and one one thousand one one millionone one million two hundred thousand twenty-one I didn't follow the thread, but the problems might result from the fact that it was translated from a german counter rather than written from scratch following some rules. which should be: minus one zero one hundred and one one thousand and one one million and one My example fails on this one, but I guess that it could be fixed if you tell me the rule to distinguish the two cases. one million, two hundred thousand and twenty-one In English, the tens/units (if not zero) should be preceded by and if the number exceeds 100 (so 101 is correct in the above output). This applies whether the tens/units is truly tens/units, or is a thousands or millions multiplier (12 = one hundred and twenty thousand). The use of a comma after millions and sometimes thousands is helpful but not essential, and it only appears in certain cases. I'll have to think a bit more about a rule for that! The use of a hyphen between tens and units (twenty-one) is not incorrect but is nowadays probably regarded as a little old-fashioned (but personally, I like it). Best, Robin I have used this page as a source: http://www.ego4u.com/en/cram-up/vocabulary/numbers/cardinal Mojca Note 1: If the functionality/documentation can be polished out nicely, the core or m-something might be a better place for such a module than third-party modules. But I guess that Hans would want to split this into *.mkii and *.mkiv anyway, so I would probably need to write the lua implementation for it before asking for inclusion ;) Note 2: there are some switches which would need to be implemented in a higher level user interface. Note that the German counter might be useless since I have never finished it. t-counting.tex Description: TeX document ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] page numbering in words?
Hi all, There are still a few problems with \numstr when you get beyond the hundreds. Perhaps this is unlikely when it is a page number, but I was interested in using this macro for contracts, where an amount of money is often written out in words. \input numstr.tex \starttext \numstr{-1}\par \numstr{0}\par \numstr{101}\par \numstr{1001}\par \numstr{101}\par \numstr{1200021} \stoptext This produces output: null null one hundred and one one thousand one one millionone one million two hundred thousand twenty-one which should be: minus one zero one hundred and one one thousand and one one million and one one million, two hundred thousand and twenty-one In English, the tens/units (if not zero) should be preceded by and if the number exceeds 100 (so 101 is correct in the above output). This applies whether the tens/units is truly tens/units, or is a thousands or millions multiplier (12 = one hundred and twenty thousand). The use of a comma after millions and sometimes thousands is helpful but not essential, and it only appears in certain cases. I'll have to think a bit more about a rule for that! The use of a hyphen between tens and units (twenty-one) is not incorrect but is nowadays probably regarded as a little old-fashioned (but personally, I like it). Best, Robin Date: 2007-03-29 17:38 +1000 To: mailing list for ConTeXt users Subject: Re: [NTG-context] page numbering in words? cormullion.at.remove.this.mac.com wrote: On 2007-03-28, at 16:49.0, Zhichu Chen wrote: I modified Wolfgang's macro as the attached file. But I'm really not a native American, so there must be some special rules that I've ignored. Wish you good luck. Yes - this works great now. Thank you for sorting out the TeX code, which is like no other language I know ;-). I've changed only one spelling (fourty - forty) and the rest looks perfect. It would be nice if someone (one of the module tutorial attendants :-) could wrap this command in a module for the contextgarden page. Cheers, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] page numbering in words?
[EMAIL PROTECTED] wrote: On 2007-03-28, at 16:49.0, Zhichu Chen wrote: I modified Wolfgang's macro as the attached file. But I'm really not a native American, so there must be some special rules that I've ignored. Wish you good luck. Yes - this works great now. Thank you for sorting out the TeX code, which is like no other language I know ;-). I've changed only one spelling (fourty - forty) and the rest looks perfect. It would be nice if someone (one of the module tutorial attendants :-) could wrap this command in a module for the contextgarden page. Cheers, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] page numbering in words?
On 2007-03-26, at 17:39.0, [EMAIL PROTECTED] wrote: is it possible to adjust options so as to get page numbering done in words? Eg one two . eighty-nine ... three hundred and sixty seven ? I can't see how to do this in ConText. I can see that the first task - converting an integer to a string - could be done by a macro or external command, such as Wolfgang's zahl2string But how to do the second job - feed in a 'raw' pagenumber and output and print a converted one? ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] page numbering in words?
2007/3/28, [EMAIL PROTECTED] [EMAIL PROTECTED]: On 2007-03-26, at 17:39.0, [EMAIL PROTECTED] wrote: is it possible to adjust options so as to get page numbering done in words? Eg one two . eighty-nine ... three hundred and sixty seven ? I can't see how to do this in ConText. I can see that the first task - converting an integer to a string - could be done by a macro or external command, such as Wolfgang's zahl2string But how to do the second job - feed in a 'raw' pagenumber and output and print a converted one? Hi, the last to feed in the pagenumber is very easy. I show in next example how the print the pagenumber in the header with words rather than numbers: \usemodule[zahl2string] \starttext \setuppagenumbering[location=] \setupheadertexts[\numstr\pagenumber] Text \stoptext BTW, these are not my macros, they come from Jonathan Sauerand I convertred them only to plain TeX. Wolfgang ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] page numbering in words?
\defineconversion [numstring][\numstr] \setuppagenumbering[conversion=numstring] On 3/28/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: On 2007-03-26, at 17:39.0, [EMAIL PROTECTED] wrote: is it possible to adjust options so as to get page numbering done in words? Eg one two . eighty-nine ... three hundred and sixty seven ? I can't see how to do this in ConText. I can see that the first task - converting an integer to a string - could be done by a macro or external command, such as Wolfgang's zahl2string But how to do the second job - feed in a 'raw' pagenumber and output and print a converted one? ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- Sincerely yours, Chen Zhi-chu Chen | Shanghai Synchrotron Radiation Facility No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China tel: 086 21 5955 3405 | zhichu.chen.googlepages.com | www.sinap.ac.cn ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] page numbering in words?
Thanks, Wolfgang and Zhichu. I've managed to get it working. The only problem now is to work out how to modify the original macros. Numbering is OK up to 20. Then we get onetwenty, twotwenty, threetwenty (I did find out how to remove the 'und'). So that's another project! thanks again ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] page numbering in words?
Hi, cormullion I modified Wolfgang's macro as the attached file. But I'm really not a native American, so there must be some special rules that I've ignored. Wish you good luck. On 3/28/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Thanks, Wolfgang and Zhichu. I've managed to get it working. The only problem now is to work out how to modify the original macros. Numbering is OK up to 20. Then we get onetwenty, twotwenty, threetwenty (I did find out how to remove the 'und'). So that's another project! thanks again ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- Sincerely yours, Chen Zhi-chu Chen | Shanghai Synchrotron Radiation Facility No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China tel: 086 21 5955 3405 | zhichu.chen.googlepages.com | www.sinap.ac.cn numstr.tex Description: TeX document ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] page numbering in words?
On 2007-03-28, at 16:49.0, Zhichu Chen wrote: I modified Wolfgang's macro as the attached file. But I'm really not a native American, so there must be some special rules that I've ignored. Wish you good luck. Yes - this works great now. Thank you for sorting out the TeX code, which is like no other language I know ;-). I've changed only one spelling (fourty - forty) and the rest looks perfect. thanks again! ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] page numbering in words?
is it possible to adjust options so as to get page numbering done in words? Eg one two . eighty-nine ... three hundred and sixty seven ? Or does this require some more work/code? ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] page numbering in words?
On Mon, 26 Mar 2007 17:39:38 +0100 [EMAIL PROTECTED] wrote: is it possible to adjust options so as to get page numbering done in words? Eg one two . eighty-nine ... three hundred and sixty seven ? Or does this require some more work/code? Hi ???, I don't think there is something like this in ConTeXt. You can try to make somthing by yourself and start with the zahl2string [1] package for LaTeX and adapt it to ConTeXt. This should be not such a big problem, you need only to replace the \newcommand defintions with \def and replace the german texts with english ones or whatever language you like. [1] http://ctan.org/tex-archive/macros/latex/contrib/sauerj/ Wolfgang ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] page numbering in words?
On Mon, 26 Mar 2007 17:39:38 +0100 [EMAIL PROTECTED] wrote: is it possible to adjust options so as to get page numbering done in words? Eg one two . eighty-nine ... three hundred and sixty seven ? Or does this require some more work/code? I converted the macro to the plain TeX format. The only thing you need to do now is to change the german text you own. Wolfgang [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]@[EMAIL PROTECTED] [EMAIL PROTECTED]@@Numstring\expandafter{\number#1}} \def\@@Numstring#1% [EMAIL PROTECTED]@numstring{#1}}% [EMAIL PROTECTED] [EMAIL PROTECTED]@[EMAIL PROTECTED] [EMAIL PROTECTED]@@Ordstring\expandafter{\number#1}} \def\@@Ordstring#1% [EMAIL PROTECTED]@ordstring{#1}}% [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] {\ifnum\number#1[EMAIL PROTECTED] #3% \else\ifnum\number#110 % [EMAIL PROTECTED] \else% [EMAIL PROTECTED] \fi\fi} [EMAIL PROTECTED] \expandafter\ns@@numstring% \ifcase% \ifnum#110 1% \else\ifnum#1100 2% \else\ifnum#1[EMAIL PROTECTED] 3% \else\ifnum#1[EMAIL PROTECTED] 4% \else\ifnum#110 5% \else\ifnum#1100 6% \else\ifnum#11000 7% \else\ifnum#11 8% \else9% \fi\fi\fi\fi\fi\fi\fi\fi % \or#1% case 1: Add 8 leading zeros \or000#1% case 2: Add 7 leading zeros \or00#1% case 3: Add 6 leading zeros \or0#1%case 4: Add 5 leading zeros \or#1% case 5: Add 4 leading zeros \or000#1% case 6: Add 3 leading zeros \or00#1% case 7: Add 2 leading zeros \or0#1%case 8: Add 1 leading zero \or#1% case 9: Add no leading zeros \or% [EMAIL PROTECTED] \fi} \def\ns@@[EMAIL PROTECTED] {\ifnum#1#2#3\z@ [EMAIL PROTECTED] \ifnum#4#5#6[EMAIL PROTECTED] \fi% \ifnum#4#5#6[EMAIL PROTECTED] [EMAIL PROTECTED]@neunzehn% \ifnum#4#5#6[EMAIL PROTECTED] tau\-send% \ifnum#7[EMAIL PROTECTED] \fi% [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]@neunzehne% \space% Mil\-lion% \else% [EMAIL PROTECTED]@neunzehns% \space% Mil\-lio\-nen% \fi} [EMAIL PROTECTED] {\ifnum#1[EMAIL PROTECTED] \ifnum#4#1[EMAIL PROTECTED]@neunzehn#1\-\fi% hun\-dert% \ifnum#2#3[EMAIL PROTECTED] \fi% \ifnum#2#320 % \ifnum#5#2#3[EMAIL PROTECTED] \else% \ifnum#3[EMAIL PROTECTED]@neunzehn#3\-und\-\fi% [EMAIL PROTECTED] #60% \fi} [EMAIL PROTECTED] {\ifcase#1\empty\or ein\or zwei\or drei\or vier\or f\unf\or sechs\or% sie\-ben\or acht\or neun\or zehn\or elf\or zw\olf\or drei\-zehn\or% vier\-zehn\or f\unf\-zehn\or sech\-zehn\or sieb\-zehn\or% acht\-zehn\or neun\-zehn\fi} [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] {\ifcase#1\-ste% \or er\-ste% \or zwei\-te% \or drit\-te% \or vier\-te% \or f\unf\-te% \or sech\-ste% \or sieb\-te% \or ach\-te% \or neun\-te% \or zehn\-te% \or elf\-te% \or zw\olf\-te% \or drei\-zehn\-te% \or vier\-zehn\-te% \or f\unf\-zehn\-te% \or sech\-zehn\-te% \or sieb\-zehn\-te% \or acht\-zehn\-te% \or neun\-zehn\-te% \fi} [EMAIL PROTECTED] {\ifcase#1 \or \or zwan\-zig% \or drei\ss ig% \or vier\-zig% \or f\unf\-zig% \or sech\-zig% \or sieb\-zig% \or acht\-zig% \or neun\-zig% \fi} [EMAIL PROTECTED] \endinput \input zahl2string \long\def\zahlexamples#1 {0 $\Longrightarrow$ #1{0}\endgraf 7 $\Longrightarrow$ #1{7}\endgraf 13 $\Longrightarrow$ #1{13}\endgraf 23 $\Longrightarrow$ #1{23}\endgraf 42 $\Longrightarrow$ #1{42}\endgraf 99 $\Longrightarrow$ #1{99}\endgraf 127 $\Longrightarrow$ #1{127}\endgraf 999 $\Longrightarrow$ #1{999}\endgraf 1000 $\Longrightarrow$ #1{1000}\endgraf 1001 $\Longrightarrow$ #1{1001}\endgraf 2004 $\Longrightarrow$ #1{2004}\endgraf 2017 $\Longrightarrow$ #1{2017}\endgraf 2029 $\Longrightarrow$ #1{2029}\endgraf $\Longrightarrow$ #1{}\endgraf 1 $\Longrightarrow$ #1{1}\endgraf 101101 $\Longrightarrow$ #1{101101}\endgraf 99 $\Longrightarrow$ #1{99}\endgraf 100 $\Longrightarrow$ #1{100}\endgraf 1234567 $\Longrightarrow$ #1{1234567}\endgraf 123456789 $\Longrightarrow$ #1{123456789}\endgraf 101101101 $\Longrightarrow$ #1{101101101}\endgraf 9 $\Longrightarrow$ #1{9}} \zahlexamples{\numstr} \zahlexamples{\ordstr} \bye ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] page numbering in words?
On 2007-03-26, at 19:16.0, Wolfgang Schuster wrote: On Mon, 26 Mar 2007 17:39:38 +0100 [EMAIL PROTECTED] wrote: is it possible to adjust options so as to get page numbering done in words? I don't think there is something like this in ConTeXt. You can try to make somthing by yourself and start with the zahl2string [1] package for LaTeX and adapt it to ConTeXt. This should be not such a big problem, you need only to replace the \newcommand defintions with \def and replace the german texts with english ones or whatever language you like. Thanks - it does look quite complicated! But this is a good start... ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] page numbering in words?
On 2007-03-26, at 19:40.0, Wolfgang Schuster wrote: On Mon, 26 Mar 2007 17:39:38 +0100 [EMAIL PROTECTED] wrote: is it possible to adjust options so as to get page numbering done in words? Eg one two . eighty-nine ... three hundred and sixty seven ? Or does this require some more work/code? I converted the macro to the plain TeX format. The only thing you need to do now is to change the german text you own. thanks - looks like it's do-able, perhaps! ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Page numbering
Hi, I need to set the start number for the pages in my journal so that the numbering continues from the previous issue in the volume. After reading p77 of the manual I understand that I can use \setuppagenumber[number] to set the start number. Unfortunately, nothing happens and numbering starts from 1 as usual. What am I doing wrong? thanks, Elliot ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Page numbering
Hi Elliot, Elliot Clifton wrote: Hi, I need to set the start number for the pages in my journal so that the numbering continues from the previous issue in the volume. After reading p77 of the manual I understand that I can use \setuppagenumber[number] to set the start number. Unfortunately, \setuppagenumber[number=123] you need the keyword 'number' to pass your page number. Greetings, Peter nothing happens and numbering starts from 1 as usual. What am I doing wrong? thanks, Elliot ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Page numbering
On 1 Jan 2007, at 13:31, Elliot Clifton wrote: \setuppagenumber[number] to set the start number. Unfortunately, nothing happens and numbering starts from 1 as usual. What am I doing wrong? thanks, Elliot Elliot, Try \setuppagenumbering[location=footer,alternative=doublesided] % or your choices \setuppagenumber[number=123,state=start] % or your number Best wishes, Charlie Doherty ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Page numbering
Hi Peter, Thanks. Ooops... I should read the syntax spec more carefully! :) Elliot Peter Rolf wrote: you need the keyword 'number' to pass your page number. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Page Numbering
David Arnold wrote: How can I get my pagenumbering to go: Page 1 Page 2 the clean way is: \setuplabeltext[pagenumber=Page ] - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Page Numbering
All, How can I get my pagenumbering to go: Page 1 Page 2 Etc. ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context