From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: solved-how to make "\getmarking[title]" show using default font size?
Date: Tue, 26 Jul 2011 10:36:02 +0200 [thread overview]
Message-ID: <199EE91E-99A9-4D52-9DAB-8864EF44D831@googlemail.com> (raw)
In-Reply-To: <10F40120-D3C5-40E0-A822-B0E4B6DEA28D@me.com>
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
___________________________________________________________________________________
prev parent reply other threads:[~2011-07-26 8:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.1.1311588002.31726.ntg-context@ntg.nl>
2011-07-25 22:37 ` how " Jeong Dalyoung
2011-07-26 4:04 ` solved-how " Jeong Dalyoung
2011-07-26 8:36 ` Wolfgang Schuster [this message]
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=199EE91E-99A9-4D52-9DAB-8864EF44D831@googlemail.com \
--to=schuster.wolfgang@googlemail.com \
--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).