* how to place getmarking[title] in header instead of getmarking[chapter] @ 2022-01-04 16:27 juh via ntg-context 2022-01-04 22:53 ` fv leung via ntg-context 0 siblings, 1 reply; 2+ messages in thread From: juh via ntg-context @ 2022-01-04 16:27 UTC (permalink / raw) To: mailing list for ConTeXt users; +Cc: juh 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: how to place getmarking[title] in header instead of getmarking[chapter] 2022-01-04 16:27 how to place getmarking[title] in header instead of getmarking[chapter] juh via ntg-context @ 2022-01-04 22:53 ` fv leung via ntg-context 0 siblings, 0 replies; 2+ messages in thread From: fv leung via ntg-context @ 2022-01-04 22:53 UTC (permalink / raw) To: mailing list for ConTeXt users; +Cc: fv leung [-- Attachment #1.1: Type: text/plain, Size: 1828 bytes --] can use this for the header: \setupheadertexts [text] [{\namedstructurevariable{chapter}{title}}] [] [] [{\namedstructurevariable{chapter}{title}}] juh via ntg-context <ntg-context@ntg.nl> 於 2022年1月5日 週三 上午12:28寫道: > 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 > > ___________________________________________________________________________________ > [-- Attachment #1.2: Type: text/html, Size: 2741 bytes --] [-- Attachment #2: Type: text/plain, Size: 493 bytes --] ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-01-04 22:53 UTC | newest] Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2022-01-04 16:27 how to place getmarking[title] in header instead of getmarking[chapter] juh via ntg-context 2022-01-04 22:53 ` fv leung via ntg-context
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).