Re: [NTG-context] pagenumber in header line.-SOLVED
> I received a few solutions that didn't work for me. Thanks to those who wrote > me. But a little plain TeX trickery did it nicely as follows: > > --- > \setupheadertexts[text] > [][\CapStretch{INVESTING ON AUTOPILOT}\kern 1em\number\pageno\hfil] > [\number\pageno\kern 1em \CapStretch{ROBERT S. CABLE}\hfil][] > - hmm, I prefear \setupheadertexts[text]% []% [{\CapStretch{INVESTING ON AUTOPILOT}\kern 1em\number\pageno\hfil}]% [{\number\pageno\kern 1em \CapStretch{ROBERT S. CABLE}\hfil}]% []% %%% or an "ascii-visual" code \setupheadertexts[text]% [][{\CapStretch{INVESTING ON AUTOPILOT}\kern 1em\number\pageno\hfil}]% [{\number\pageno\kern 1em \CapStretch{ROBERT S. CABLE}\hfil}][]% %%% I believe that with '{...}' things are more robusts (btw I don't see many differences from my '2 cents' ) > > Since a centered header with page number included is a recurring requirement > perhaps this should go in the wiki. Or perhaps not :<) hmm, did you seen wiki.contextgarden.net/Headers_and_Footers luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] pagenumber in header line.-SOLVED
>4ROBERT S. CABLE >but what I want is the two components in the middle thus: >4 ROBERT S. CABLE >If I insert \hfil etc. the pagenumbering gets replaced with the word > >"pagenumber". >Solution? I received a few solutions that didn't work for me. Thanks to those who wrote me. But a little plain TeX trickery did it nicely as follows: --- \setupheadertexts[text] [][\CapStretch{INVESTING ON AUTOPILOT}\kern 1em\number\pageno\hfil] [\number\pageno\kern 1em \CapStretch{ROBERT S. CABLE}\hfil][] - Since a centered header with page number included is a recurring requirement perhaps this should go in the wiki. Or perhaps not :<) -- John Culleton Able Indexing and Typesetting Precision typesetting (tm) at reasonable cost. Satisfaction guaranteed. http://wexfordpress.com ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] pagenumber in header line.
On Sat, 27 Jan 2007, John R. Culleton wrote: > Here is my code at the moment: > \def\CapStretchAmount{.08em} > \def\CapStretch#1 > {\def\stretchedspaceamount{\CapStretchAmount}\stretchednormalcase{#1}} > \setuppagenumbering[location=] > \setupheadertexts[text][pagenumber][\CapStretch{ROBERT S. CABLE}][pagenumber] > [\CapStretch{INVESTING ON AUTOPILOT}] > Here is what I get on a verso (even) page: > > 4ROBERT S. CABLE > > but what I want is the two components in the middle thus: >4 ROBERT S. CABLE > > If I insert \hfil etc. the pagenumbering gets replaced with the word > "pagenumber". > \getmarking[pagenumber] Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] pagenumber in header line.
On 1/27/07, John R. Culleton <[EMAIL PROTECTED]> wrote: > Here is my code at the moment: > \def\CapStretchAmount{.08em} > \def\CapStretch#1 > {\def\stretchedspaceamount{\CapStretchAmount}\stretchednormalcase{#1}} > \setuppagenumbering[location=] > \setupheadertexts[text][pagenumber][\CapStretch{ROBERT S. CABLE}][pagenumber] > [\CapStretch{INVESTING ON AUTOPILOT}] > Here is what I get on a verso (even) page: > > 4ROBERT S. CABLE > > but what I want is the two components in the middle thus: > 4 ROBERT S. CABLE > > If I insert \hfil etc. the pagenumbering gets replaced with the word > "pagenumber". > > > > Solution? My 2 cents: what about this \def\LeftOddPageHeader{\relax} %% Put you code here \def\RightOddPageHeader{\relax} %% Put you code here \def\LeftEvenPageHeader{\relax} %% Put you code here \def\RightEvenPageHeader{\relax} %% Put you code here \setupheadertexts[text][{\LeftOddPageHeader}][{\RightOddPageHeader}][{\LeftEvenPageHeader}][{\RightEvenPageHeader}] luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] pagenumber in header line.
Here is my code at the moment: \def\CapStretchAmount{.08em} \def\CapStretch#1 {\def\stretchedspaceamount{\CapStretchAmount}\stretchednormalcase{#1}} \setuppagenumbering[location=] \setupheadertexts[text][pagenumber][\CapStretch{ROBERT S. CABLE}][pagenumber] [\CapStretch{INVESTING ON AUTOPILOT}] Here is what I get on a verso (even) page: 4ROBERT S. CABLE but what I want is the two components in the middle thus: 4 ROBERT S. CABLE If I insert \hfil etc. the pagenumbering gets replaced with the word "pagenumber". Solution? -- John Culleton Able Indexing and Typesetting Precision typesetting (tm) at reasonable cost. Satisfaction guaranteed. http://wexfordpress.com ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context