On 08/02/2017 12:00 PM, Mikael P. Sundqvist wrote: > Hi, > > I'm trying to print chapter and section titles in the margins, and it > works fine, except that the chapter title is also printed on the same > page as the chapter starts, which I find unnecessary.
Hi Mikael, margintext as alternative for \setuphead may be a better approach: \showframe \setuppagenumbering[alternative=doublesided] \definemargindata[margintext:chapter] [margintext] [width=\rightmarginwidth, location=outer, align=flushleft] \defineheadalternative [margintext:chapter] [margintext] [margintext=margintext:chapter] \definemargindata[margintext:section] [margintext] [width=\leftmarginwidth, location=inner] \defineheadalternative [margintext:section] [margintext] [margintext=margintext:section] \setuphead[chapter] [alternative=margintext:chapter, style=\tf, number=no] \setuphead[section] [alternative=margintext, style=\tf, number=no] \starttext \chapter{Foo} \dorecurse{15}{\section{Bar}\input ward\par} \stoptext All this comes from Hans replying to a question of mine some days ago and from the last lines from typo-mar.mkiv. I hope I got it right ;-), Pablo -- http://www.ousia.tk ___________________________________________________________________________________ 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 ___________________________________________________________________________________