From: Aditya Mahajan <adityam@umich.edu>
Cc: ntg-context@ntg.nl
Subject: Re: Doublesided, with header text centered.
Date: Fri, 9 Jun 2006 17:16:09 -0400 (EDT) [thread overview]
Message-ID: <Pine.WNT.4.63.0606091706120.1980@nqvgln> (raw)
In-Reply-To: <200606091643.53708.john@wexfordpress.com>
On Fri, 9 Jun 2006, John R. Culleton wrote:
> On Friday 09 June 2006 15:33, Aditya Mahajan wrote:
>>>> ntg-context@ntg.nl
>>>
>>> Very impressive, but surely there is a simpler solution! I just
>>> want one header on the left hand page, a different one on the
>>> right, and both of them centered on their respective pages.
>>
>> \def\MyHeader{
>> \doifoddpageelse{Odd Header}
>> {Even Header}}
>>
>> \setupheadertexts[\MyHeader]
>>
>> If you want you can extend it to recognize keywords like date,
>> pagenumber, section etc.
>>
> Yes, I can do the above. Unfortunately the keywords like chapter
> lose their special meaning when enclosed in any way. For example
> \setupheadertexts
> [chapter]
> [][]
> [\hfil\hbox to 20em{\stretched{\tfb\sc
> Independent{}Publishing}}\hfil]
>
> ...works, but as soon as I place any command ahead of the keyword
> chapter it just becomes the word "chapter". for example this
> doesn't work:
> [code snipped]
You can use the \domagic macro from my previous email to handle
chapter, date and pagenumber.
> I can of course roll my own as you suggest above. But if I want
> chapter as a variable then I will have to encapsulate my \chapter
> command thus:
> [code snipped]
>
> I don't mind doing this kind of plain tex manipulation but it
> still seems to me that Context should handle it somehow.
If you just want chapter markings, use \getmarking[chapter].
Aditya
next prev parent reply other threads:[~2006-06-09 21:16 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-08 17:44 John R. Culleton
2006-06-08 18:09 ` Aditya Mahajan
2006-06-09 17:06 ` Aditya Mahajan
2006-06-09 18:42 ` John R. Culleton
2006-06-09 19:33 ` Aditya Mahajan
2006-06-09 20:43 ` John R. Culleton
2006-06-09 21:16 ` Aditya Mahajan [this message]
2006-06-09 20:31 ` Willi Egger
2006-06-09 21:31 ` Aditya Mahajan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.WNT.4.63.0606091706120.1980@nqvgln \
--to=adityam@umich.edu \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).