\setuppagenumber problem
The following code, \startcomponent \setuphead[title][page=yes] \setuppagenumber[numberconversion=romannumerals] \setuppagenumbering[alternative=doublesided] \setuppagenumbering[location=,] \setupheader[state=high] \definehead[FMTitle][title] \setuphead[FMTitle][header=high,alternative=middle,style={\tfb\rm},footer={}] \setupheadertexts[text] [\cap{A.\ U.\ Thor}] [\pagenumber] [\pagenumber] [\em{Journal}] \FMTitle[Preface]{Preface} \dorecurse{6}{\input knuth} \blank[big] And here I should like to recall what was said earlier in this \goto{Preface}[Preface] by \dots \stopcomponent fails on two counts: the page numbers are given in arabic numerals not roman numerals, and the cross-reference is ignored. The failure in the cross-reference may be due to a bug involving \startcomponent, if I understand Wolfgang correctly, and was wondering if the same might be true for \setuppagenumber[...]. If it is not, how may I fix the pagination? I am running the latest ConTeXT standalone (MKIV). Alan
Am 08.03.2012 um 19:06 schrieb Alan Bowen:
The following code,
\startcomponent
\setuphead[title][page=yes] \setuppagenumber[numberconversion=romannumerals] \setuppagenumbering[alternative=doublesided] \setuppagenumbering[location=,]
\setupheader[state=high]
\definehead[FMTitle][title] \setuphead[FMTitle][header=high,alternative=middle,style={\tfb\rm},footer={}] \setupheadertexts[text] [\cap{A.\ U.\ Thor}] [\pagenumber] [\pagenumber]
Use “[pagenumber]” (without the backslash) because \pagenumber prints the raw value of the counter without the conversion.
[\em{Journal}]
\FMTitle[Preface]{Preface}
\dorecurse{6}{\input knuth} \blank[big] And here I should like to recall what was said earlier in this \goto{Preface}[Preface] by \dots
\stopcomponent
fails on two counts: the page numbers are given in arabic numerals not roman numerals, and the cross-reference is ignored. The failure in the cross-reference may be due to a bug involving \startcomponent, if I understand Wolfgang correctly, and was wondering if the same might be true for \setuppagenumber[...]. If it is not, how may I fix the pagination?
The component is not the problem in this case, for \goto you have to enable the interactive features (\setupinteraction[state=start]). Wolfgang
Thanks, Wolfgang. You are right. Poor code copy/pasting on my part. Sorry for that bit of noise. But what of the pagination problem? Is there a bug or am I missing something for that too? A. On Thu, Mar 8, 2012 at 2:02 PM, Wolfgang Schuster < schuster.wolfgang@googlemail.com> wrote:
Am 08.03.2012 um 19:06 schrieb Alan Bowen:
The following code,
\startcomponent
\setuphead[title][page=yes] \setuppagenumber[numberconversion=romannumerals] \setuppagenumbering[alternative=doublesided] \setuppagenumbering[location=,]
\setupheader[state=high]
\definehead[FMTitle][title]
\setuphead[FMTitle][header=high,alternative=middle,style={\tfb\rm},footer={}]
\setupheadertexts[text] [\cap{A.\ U.\ Thor}] [\pagenumber] [\pagenumber]
Use “[pagenumber]” (without the backslash) because \pagenumber prints the raw value of the counter without the conversion.
[\em{Journal}]
\FMTitle[Preface]{Preface}
\dorecurse{6}{\input knuth} \blank[big] And here I should like to recall what was said earlier in this
\goto{Preface}[Preface] by \dots
\stopcomponent
fails on two counts: the page numbers are given in arabic numerals not
roman numerals, and the cross-reference is ignored. The failure in the cross-reference may be due to a bug involving \startcomponent, if I understand Wolfgang correctly, and was wondering if the same might be true for \setuppagenumber[...]. If it is not, how may I fix the pagination?
The component is not the problem in this case, for \goto you have to enable the interactive features (\setupinteraction[state=start]).
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
___________________________________________________________________________________
Am 08.03.2012 um 20:34 schrieb Alan Bowen:
Thanks, Wolfgang. You are right. Poor code copy/pasting on my part. Sorry for that bit of noise.
But what of the pagination problem? Is there a bug or am I missing something for that too?
Write \setupheadertexts[…][pagenumber][pagenumber][…] with “pagenumber” as keyword and not as command. Wolfgang
Again, many thanks, Wolfgang. That’s got it. The entry on \setupheadertexts on the wiki should be updated at some point. But as you will probably agree, I am hardly the one to undertake that. There are just so many critical differences in coding for MKIV and for MKII. Still, the advance in working with fonts is easily worth the effort. So thanks too for your patience. All best, Alan On Thu, Mar 8, 2012 at 2:38 PM, Wolfgang Schuster < schuster.wolfgang@googlemail.com> wrote:
Am 08.03.2012 um 20:34 schrieb Alan Bowen:
Thanks, Wolfgang. You are right. Poor code copy/pasting on my part. Sorry for that bit of noise.
But what of the pagination problem? Is there a bug or am I missing something for that too?
Write \setupheadertexts[…][pagenumber][pagenumber][…] with “pagenumber” as keyword and not as command.
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
___________________________________________________________________________________
participants (2)
-
Alan Bowen
-
Wolfgang Schuster