ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \setupheadertexts
@ 2003-08-18 17:57 John Culleton
  2003-08-18 22:32 ` \setupheadertexts Tobias Burnus
  0 siblings, 1 reply; 3+ messages in thread
From: John Culleton @ 2003-08-18 17:57 UTC (permalink / raw)


I want to have chapter names in the header text and I want them in boldface. 
This works:

\setupheadertexts[text][{\bf My book}][chapter]

but this:
\setupheadertexts[text][{\bf my book}][\bf chapter]
 just shows the literal word "chapter". 

So how do I do this?

John Culleton

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: \setupheadertexts
  2003-08-18 17:57 \setupheadertexts John Culleton
@ 2003-08-18 22:32 ` Tobias Burnus
  2003-09-05 10:11   ` \setupheadertexts John Culleton
  0 siblings, 1 reply; 3+ messages in thread
From: Tobias Burnus @ 2003-08-18 22:32 UTC (permalink / raw)


Hi,

John Culleton wrote:
> I want to have chapter names in the header text and I want them in boldface.

How about:
  \setupheader[text][style=bold]
  \setupheadertexts[text][My book][chapter]

or alternatively,
  \setupheadertexts[text][{\bf My book}][{\it \getmarking[chapter]}]

Tobias
-- 
This above all: To thine own self be true / And it must follow as
the night the day / Thou canst not then be false to any man.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: \setupheadertexts
  2003-08-18 22:32 ` \setupheadertexts Tobias Burnus
@ 2003-09-05 10:11   ` John Culleton
  0 siblings, 0 replies; 3+ messages in thread
From: John Culleton @ 2003-09-05 10:11 UTC (permalink / raw)


On Monday 18 August 2003 18:32, Tobias Burnus wrote:
> Hi,
>
> John Culleton wrote:
> > I want to have chapter names in the header text and I want them in
> > boldface.
>
> How about:
>   \setupheader[text][style=bold]
>   \setupheadertexts[text][My book][chapter]
>
> or alternatively,
>   \setupheadertexts[text][{\bf My book}][{\it \getmarking[chapter]}]
>
> Tobias

Well, I am almost home! My customer now prefers Small Caps letterspaced 
rather than  bold.  So I used example two above and an earlier post 
from Bill McClain to come up with this combination:

%First, the macros for extended (letterspaced) text:

\def\CapStretchAmount{.18em}
\def\CapStretch#1{\def\stretchedspaceamount{\CapStretchAmount}
\stretchednormalcase{#1}}

%Then the header text macro:

\setupheadertexts[text][][{\sc \getmarking[chapter]}][{\CapStretch{\sc 
The Health Seeker's Handbook}}][]

Out of  this melange I get small caps extended for the book title on the 
verso header.  But I can't seem to find the combination for both 
\CapStretch and \getmarking on the recto header.  Any attempt to insert 
\CapStretch on that side converts the chapter name back to the literal 
word "chapter".  I have tried brackets, curly braces etc. in various 
combinations.

Any hints appreciated.  
-- 
John Culleton
Able Indexers and Typesetters
http://wexfordpress.com



____________________________________________________________
Free 20MB Web Site Hosting and Personalized E-mail Service!
Get It Now At Doteasy.com http://www.doteasy.com/et/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-09-05 10:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-18 17:57 \setupheadertexts John Culleton
2003-08-18 22:32 ` \setupheadertexts Tobias Burnus
2003-09-05 10:11   ` \setupheadertexts John Culleton

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).