On 7/23/07, Matt Gushee wrote:
Mojca Miklavec wrote:
\setupheadertexts [\sc Book Title][] [][{\it (\getmarking[chapter][current])}]
Okay, that seems to work, too. But why use the [current] argument? Are there conditions where
\getmarking[chapter]
doesn't return the current chapter title?
Probably not, it's only an optional parameter. You have also [last], [first], ... etc., but [current] is (most probably) the default one.
However, there seems to be a little bug. This works perfectly well for section (\getmarking[section]), but for chapter the chapter labels seem to be erased after the first appearance.
Hmm, that doesn't happen for me. I'm using the 2007-01-23 release of ConTeXt. Which version are you using?
I tested with 2007.04.17, 2007.01.12 and 2007.07.03, but result is the same: Chapter title only appears on the first page and never again. If you replace chapter by section, it works OK. Mojca ------------------------------------ \setuppagenumbering [alternative=doublesided,location=bottom] \setupheadertexts [{\sc Book Title}][] [][{\it (\getmarking[chapter][current])}] \starttext some text \page \chapter{First Chapter} some text \page some text \page some text \page \chapter{Second Chapter} some text \page \chapter{Third Chapter} some text \page some text \stoptext