On Wed, Aug 2, 2017 at 7:21 PM, Pablo Rodriguez <oi...@gmx.es> wrote:
> 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
> ___________________________________________________________________________________

Hi Pablo,

many thanks for your answer! I think I might have described my issue a
bit vague. Just to clarify:

I do not want to change the output of the chapters/sections themself.

I want to have a "running header", but in the margin rather than in
the header. I get that with the code I gave, but I want to disable it
for new chapters _on the page where the chapter begins_.

If you have a copy of Bringhursts book, you know what I mean.

If it is still not clear what I mean please ask me to clarify it further.

/Mikael
___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to