From: "Mikael P. Sundqvist" <mickep@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Disable overlay on chapter pages
Date: Wed, 2 Aug 2017 19:28:02 +0200 [thread overview]
Message-ID: <CAHy-LL-nvRaNZM5OwdYGA_RRO3xdKZL9LHBVKoLX_o9cUs1rAg@mail.gmail.com> (raw)
In-Reply-To: <5e505ebf-2600-f27b-5221-7330a666b388@gmx.es>
On Wed, Aug 2, 2017 at 7:21 PM, Pablo Rodriguez <oinos@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
___________________________________________________________________________________
next prev parent reply other threads:[~2017-08-02 17:28 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-02 10:00 Mikael P. Sundqvist
2017-08-02 17:21 ` Pablo Rodriguez
2017-08-02 17:28 ` Mikael P. Sundqvist [this message]
2017-08-02 19:29 ` Pablo Rodriguez
2017-08-02 20:23 ` Henning Hraban Ramm
2017-08-02 20:33 ` Mikael P. Sundqvist
2017-08-03 8:35 ` Jean-Pierre Delange
2017-08-03 16:03 ` Hans Hagen
2017-08-03 17:29 ` Pablo Rodriguez
2017-08-03 18:11 ` Mikael P. Sundqvist
2017-08-04 7:53 ` Hans Hagen
2017-08-04 12:06 ` Mikael P. Sundqvist
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAHy-LL-nvRaNZM5OwdYGA_RRO3xdKZL9LHBVKoLX_o9cUs1rAg@mail.gmail.com \
--to=mickep@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).