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:


        [width=\rightmarginwidth, location=outer, align=flushleft]


        [width=\leftmarginwidth, location=inner]


        [alternative=margintext:chapter, style=\tf, number=no]
        [alternative=margintext, style=\tf, number=no]


    \dorecurse{15}{\section{Bar}\input ward\par}


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 ;-),


If your question is of interest to others as well, please add an entry to the 

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

Reply via email to