ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \setuphheadertexts for titles.
@ 2008-07-17 14:02 John Culleton
  2008-07-17 14:19 ` Wolfgang Schuster
  0 siblings, 1 reply; 2+ messages in thread
From: John Culleton @ 2008-07-17 14:02 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Here is my current \setupheadertexts
\setupheadertexts[text]
[chapter][pagenumber][pagenumber][Don't Leave Your Company's Money on 
the Table]

It works fine for chapters. I have a few titles that I want to have 
running heads for also, such as Preface, Introduction and so on.  I 
tried using a special \setupheadertexts locally with the entire text 
enclosed in brackets thus:
{\setupheadertexts[text]
[Introduction][pagenumber][pagenumber][Don't Leave Your Company's 
Money on the Table]
(text)
...
}
but that didn't work.   

Changing the second field to
{chapter,title] just gave me the words "chapter,title". 
Somehow there must be a way to change the current chapter marking but 
I can't figure it out. 


-- 
John Culleton
Resources for every author and publisher:
http://wexfordpress.com/tex/shortlist.pdf
http://wexfordpress.com/tex/packagers.pdf
http://www.creativemindspress.com/newbiefaq.htm
http://www.gropenassoc.com/TopLevelPages/reference%20desk.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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: \setuphheadertexts for titles.
  2008-07-17 14:02 \setuphheadertexts for titles John Culleton
@ 2008-07-17 14:19 ` Wolfgang Schuster
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2008-07-17 14:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Thu, Jul 17, 2008 at 4:02 PM, John Culleton <john@wexfordpress.com> wrote:
> Here is my current \setupheadertexts
> \setupheadertexts[text]
> [chapter][pagenumber][pagenumber][Don't Leave Your Company's Money on
> the Table]
>
> It works fine for chapters. I have a few titles that I want to have
> running heads for also, such as Preface, Introduction and so on.  I
> tried using a special \setupheadertexts locally with the entire text
> enclosed in brackets thus:
> {\setupheadertexts[text]
> [Introduction][pagenumber][pagenumber][Don't Leave Your Company's
> Money on the Table]
> (text)
> ...
> }
> but that didn't work.
>
> Changing the second field to
> {chapter,title] just gave me the words "chapter,title".
> Somehow there must be a way to change the current chapter marking but
> I can't figure it out.

You could try (untested):

\setupheadertexts
  [\doiftextelse{\getmarking[title]}{\getmarking[title]}{\getmarking[chapter]}]
  [pagenumber]
  [pagenumber]
  [Don't Leave Your Company's Money on the Table]

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
___________________________________________________________________________________


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

end of thread, other threads:[~2008-07-17 14:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-17 14:02 \setuphheadertexts for titles John Culleton
2008-07-17 14:19 ` Wolfgang Schuster

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