Am 26.07.2011 um 06:04 schrieb Jeong Dalyoung:

> Dear all,
> 
> For the header text, I used \getmarking as follows:
> 
> \setupheadertexts[][{\getmarking[{\v!title}]}]
> 
> *****
> This problem comes from my setting which is as follows: 
> 
> \title{\ss\bf\tfb Title}
> 
> I changed it by using the definition as follows:
> 
> \def\Mytitle#1{%
> \framedtext
> [width=\overlaywidth,
> height=5\bodyfontsize,
> background=color,
> backgroundcolor=lightgray,
> offset=2pt,
> strut=no,
> frame=off,
> align=middle,
> top=\vss,
> bottom=\vss]{
> \sans #1} }
> 
> \setuphead[title][textcommand=\Mytitle]
> 
> This makes everything fine.


Don’t set the font style with the argument of the \title command, use 
\setuphead.

\setupheadertexts[][title]

\define[2]\Mytitle
  {\framedtext
     [width=broad,
      height=5\bodyfontsize,
      background=color,
      backgroundcolor=lightgray,
      offset=2pt,
      strut=no,
      frame=off,
      align={middle,middle}]
   {#2}}

\setuphead
  [title]
  [command=\Mytitle,
   style=\ssbfb] % \ss\bfb

\setupheader[style=\ssb] % \ss\tfb

\starttext
\title{Title}
\stoptext

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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to