From: Willi Egger <w.egger@boede.nl>
Subject: Re: The name of the current section?
Date: Wed, 19 May 2004 21:26:59 +0200 [thread overview]
Message-ID: <40ABB503.4060304@boede.nl> (raw)
In-Reply-To: <40AB4DD1.5020000@econ.muni.cz>
Hi,
Humble, I thought that your layout kan be setup with
\setupheadertexts[location][left text][right text][left .][right .]
\setupoutput[pdftex]
\usetypescript[palatino][texnansi]
\setupbodyfont[palatino,rm,12pt]
\setuppagenumbering[alternative=doublesided,
location={header,marginedge}]
\setupheadertexts
[section][{\headnumber[section]}][chapter][{\headnumber[chapter]}]
%leftpage: [pagenumber] [chapter title] (chap. [chapter number])
%rightpage: [section title] (sec. [section number]) [pagenumber]
\starttext
\chapter{Cheese}
\section{Parmiggiano Reggiano}
\blank[15cm]
\section{Grana Padano}
\blank[15cm]
\section{Gruy\`ere}
\blank[15cm]
\section{Tilsiter}
\blank[15cm]
\section{Appenzeller}
\chapter{Wine}
\section{Cabernet Sauvignon}
\blank[15cm]
\section{Pinot noir}
\blank[15cm]
\section{M\"uller-Thurgau}
\blank[15cm]
\section{Chasselat}
\stoptext
Willi
Michal Kvasnicka wrote:
> Good evening.
>
> Is there some command simmilar to \headnumber[section] that would tell
> me the name of the current chapter/section/...?
>
> I want to have the headertext on the left like this:
> [pagenumber] [chapter title] (chap. [chapter number])
> and on the right side like this:
> [section title] (sec. [section number]) [pagenumber]
> where [x] is value of x, e.g. [pagenumber] is the number of the current
> page.
>
> How can I do it?
>
> Many thanks
> Michal Kvasnicka
>
>
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
next prev parent reply other threads:[~2004-05-19 19:26 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-19 12:06 Michal Kvasnicka
2004-05-19 19:26 ` Willi Egger [this message]
2004-05-20 16:47 ` Michal Kvasnicka
2004-05-20 15:15 ` Mikael Persson
2004-05-21 12:59 ` Michal Kvasnicka
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=40ABB503.4060304@boede.nl \
--to=w.egger@boede.nl \
--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).