Re: [NTG-context] The name of the current section?

2004-05-21 Thread Michal Kvasnicka
Dear Mikael.
Many thanks. Your solution
\setupheadertexts
   [{\headnumber[section]\quad\getmarking[section][current]}]
   []
   []
   [{Chapter \headnumber[chapter]:\quad\getmarking[chapter][current]}]
 

is precisely what I searched for. Many thanks once more.
With best regards
M.K.
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] The name of the current section?

2004-05-19 Thread Michal Kvasnicka
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
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] The name of the current section?

2004-05-19 Thread Willi Egger
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
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context