how to place getmarking[title] in header instead of getmarking[chapter]
![](https://secure.gravatar.com/avatar/2349dcb0bed02a89d589125ccc301859.jpg?s=120&d=mm&r=g)
Hi all, I know how to put the current chapter in the header. But how can I also put the value of \starttitle in the header. In this mwe the \starttitle command does not modify the header. Is it possible to do something like: \getmarking[chapter or title] I cannot include \setmarking[chapter]{title headline} right before \starttitle as the source is created automatically. \setupheadertexts [text] [{\getmarking[chapter]}] [] [] [{\getmarking[chapter]}] \setupcombinedlist[content][list={chapter}] \starttext \placecontent \startchapter [title=Lorem] \startsection [title=Lorem subsection] \stopsection \stopchapter \startchapter [title=Ipsum] \stopchapter \starttitle [title=title headline] Pellentesque dapibus suscipit ligula. Donec posuere augue in quam. Etiam vel tortor sodales tellus ultricies commodo. \page Nullam eu ante vel est convallis dignissim. \stoptitle \stoptext
![](https://secure.gravatar.com/avatar/b9093698dc66621c584549528e50e2d1.jpg?s=120&d=mm&r=g)
can use this for the header:
\setupheadertexts
[text]
[{\namedstructurevariable{chapter}{title}}]
[]
[]
[{\namedstructurevariable{chapter}{title}}]
juh via ntg-context
Hi all,
I know how to put the current chapter in the header.
But how can I also put the value of \starttitle in the header.
In this mwe the \starttitle command does not modify the header.
Is it possible to do something like:
\getmarking[chapter or title]
I cannot include \setmarking[chapter]{title headline} right before \starttitle as the source is created automatically.
\setupheadertexts [text] [{\getmarking[chapter]}] [] [] [{\getmarking[chapter]}]
\setupcombinedlist[content][list={chapter}] \starttext \placecontent \startchapter [title=Lorem]
\startsection [title=Lorem subsection] \stopsection \stopchapter \startchapter [title=Ipsum] \stopchapter \starttitle [title=title headline]
Pellentesque dapibus suscipit ligula. Donec posuere augue in quam. Etiam vel tortor sodales tellus ultricies commodo.
\page
Nullam eu ante vel est convallis dignissim.
\stoptitle \stoptext
___________________________________________________________________________________ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net
___________________________________________________________________________________
participants (2)
-
fv leung
-
juh