ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Uppercase in headers
@ 2005-08-17 14:33 Olivier
  2005-08-17 21:20 ` Hans Hagen
  0 siblings, 1 reply; 6+ messages in thread
From: Olivier @ 2005-08-17 14:33 UTC (permalink / raw)


Hi,

I would like to set the headers all caps, but not the title of the
section in the body text.

This setting

%\setupheader[text][style={\WORD}] % <- does not work
\setupheadertexts[text][\setups{run:left}][][][\setups{run:right}]
\startsetups run:left
   \CapHeadFont\pagenumber\qquad\WORD{\getmarking[section]}
\stopsetups

eats the section title in the headers.

What should I do to get it right?

Thanks,
Olivier

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

* Re: Uppercase in headers
  2005-08-17 14:33 Uppercase in headers Olivier
@ 2005-08-17 21:20 ` Hans Hagen
  2005-08-17 22:26   ` Patrick Gundlach
  2005-08-17 22:35   ` Olivier
  0 siblings, 2 replies; 6+ messages in thread
From: Hans Hagen @ 2005-08-17 21:20 UTC (permalink / raw)


Olivier wrote:

>Hi,
>
>I would like to set the headers all caps, but not the title of the
>section in the body text.
>
>This setting
>
>%\setupheader[text][style={\WORD}] % <- does not work
>\setupheadertexts[text][\setups{run:left}][][][\setups{run:right}]
>\startsetups run:left
>   \CapHeadFont\pagenumber\qquad\WORD{\getmarking[section]}
>\stopsetups
>
>eats the section title in the headers.
>
>What should I do to get it right?
>  
>
the best would be an all-caps font; anyhow, here is ahack: 

\setupheadertexts
  [\setups{run:middle}]

\startsetups run:middle
   -- \expanded{\WORD{\fetchmark[chapter][first]}} --
\stopsetups

\starttext

\chapter{test}

\stoptext

don't ask why -) 

Hans 


-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

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

* Re: Uppercase in headers
  2005-08-17 21:20 ` Hans Hagen
@ 2005-08-17 22:26   ` Patrick Gundlach
  2005-08-17 22:53     ` Olivier
  2005-08-17 22:35   ` Olivier
  1 sibling, 1 reply; 6+ messages in thread
From: Patrick Gundlach @ 2005-08-17 22:26 UTC (permalink / raw)


Hi,


> the best would be an all-caps font; anyhow, here is ahack: 
>
> \setupheadertexts
>   [\setups{run:middle}]
>
> \startsetups run:middle
>    -- \expanded{\WORD{\fetchmark[chapter][first]}} --
> \stopsetups
>
> \starttext
>
> \chapter{test}
>
> \stoptext


Once Olivier tries this out, perhaps he could add a wiki page?

:-)

Patrick 
-- 
ConTeXt wiki and more: http://contextgarden.net

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

* Re: Uppercase in headers
  2005-08-17 21:20 ` Hans Hagen
  2005-08-17 22:26   ` Patrick Gundlach
@ 2005-08-17 22:35   ` Olivier
  1 sibling, 0 replies; 6+ messages in thread
From: Olivier @ 2005-08-17 22:35 UTC (permalink / raw)


Quoting  "Hans Hagen" :
> -- was pragma@wxs.nl on Aug 17, 2005 at 11:20:00PM --

> \setupheadertexts
>  [\setups{run:middle}]
> 
> \startsetups run:middle
>   -- \expanded{\WORD{\fetchmark[chapter][first]}} --
> \stopsetups

Many thanks for that one,
Olivier

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

* Re: Re: Uppercase in headers
  2005-08-17 22:26   ` Patrick Gundlach
@ 2005-08-17 22:53     ` Olivier
  2005-08-18  6:48       ` Patrick Gundlach
  0 siblings, 1 reply; 6+ messages in thread
From: Olivier @ 2005-08-17 22:53 UTC (permalink / raw)


Quoting  "Patrick Gundlach" :
> -- was patrick@gundla.ch on Aug 18, 2005 at 12:26:06AM --

> Once Olivier tries this out, perhaps he could add a wiki page?
Done there: http://contextgarden.net/Headers_and_Footers

Olivier

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

* Re: Uppercase in headers
  2005-08-17 22:53     ` Olivier
@ 2005-08-18  6:48       ` Patrick Gundlach
  0 siblings, 0 replies; 6+ messages in thread
From: Patrick Gundlach @ 2005-08-18  6:48 UTC (permalink / raw)


Hello Olivier,

>> Once Olivier tries this out, perhaps he could add a wiki page?
> Done there: http://contextgarden.net/Headers_and_Footers

Great! Thanks.  (Same to all contributers).


Patrikk
-- 
ConTeXt wiki and more: http://contextgarden.net

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

end of thread, other threads:[~2005-08-18  6:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-17 14:33 Uppercase in headers Olivier
2005-08-17 21:20 ` Hans Hagen
2005-08-17 22:26   ` Patrick Gundlach
2005-08-17 22:53     ` Olivier
2005-08-18  6:48       ` Patrick Gundlach
2005-08-17 22:35   ` Olivier

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