From: Joey McCollum via ntg-context <ntg-context@ntg.nl>
To: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
Cc: Joey McCollum <jmccollum20140511@gmail.com>,
mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Setting a heading text on its own page with \setuphead
Date: Sat, 7 Aug 2021 15:14:50 -0400 [thread overview]
Message-ID: <CAGxRUG_eEf6H4ypZaYxy6-hQn9_uNkeAZe-nNaR_=2YRZm1NRg@mail.gmail.com> (raw)
In-Reply-To: <c5fd9f33-2dfe-2ec7-bcb5-7930dcf6cd7a@gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 2919 bytes --]
Beautiful! This makes things even more succinct. I notice that if I try to
prevent paragraph indentation after a MyPart heading with the
"indentnext=no" argument, it doesn't work. Is this because of the
\page[blankpagebreak] command in the "after" argument? (In any case, I can
just change the "after" argument to
"after=\page[blankpagebreak]\noindentation" and things work as expected, so
this isn't a real problem. I'm just curious.)
Thanks!
Joey
On Sat, Aug 7, 2021 at 5:20 AM Wolfgang Schuster <
wolfgang.schuster.lists@gmail.com> wrote:
> Joey McCollum via ntg-context schrieb am 06.08.2021 um 19:12:
> > Hi,
> >
> > I'd like to define my own class of heading derived from the "part"
> > heading; in the MWE below, it's called "MyPart". I'd like this heading
> > to have the following features:
> >
> > * Its title should appear in the ToC, but its number should never be
> > printed in the ToC or in the text.
> > * It should always start on an odd page.
> > * Its text should be in a larger size than the text of the body, set
> > in all caps, and set with extra letterspacing.
> > * Most importantly, the title of the heading should appear on its own
> > page without a header or footer. The text of the body should begin
> > on the next odd page.
> >
> > I was hoping to accomplish all of this within the \setuphead command,
> > and it seems like this should be possible, but in the following example,
> > I'm not getting the text of the header at all:
> >
> > [...]
> >
> > I expect there's something obvious that I'm missing, but any help is
> > appreciated.
>
> Most of the stuff was already answered by Pablo. Below is my version how
> to set the layout to fit the requirements.
>
> \definefontfamily
> [garamond]
> [rm]
> [EBGaramond]
>
> \setupbodyfont
> [garamond,12pt]
>
> \definefont
> [MyPartFont]
> [Serif at 24pt]
> [line=36pt]
>
> \setuppagenumbering
> [alternative=doublesided,
> location=]
>
> \setupinterlinespace
> [line=18pt]
>
> \definepagebreak
> [blankpagebreak]
> [yes,header,footer,right]
>
> \definehead
> [MyPart]
> [part]
>
> \definecharacterkerning
> [mypartkerning]
> [factor=0.6666,
> features=letterspacing]
>
> \setuphead
> [MyPart]
> [placehead=yes,
> number=no,
> page=blankpagebreak,
> header=empty,
> footer=empty,
> align={flushleft,nothyphenated},
> style=MyPartFont,
>
> textstyle={\setcharacterkerning[mypartkerning]\setcharactercasing[WORD]},
> after={\page[blankpagebreak]}]
>
> \setupheadertexts
> [\structureuservariable{booktitle}] []
> [] [\structureuservariable{booktitle}]
>
> \setupfootertexts
> [pagenumber] []
> [] [pagenumber]
>
> \setupblank
> [line,fixed]
>
> \starttext
>
> \startMyPart [title={Title for Title Page}] [booktitle={Title for Header}]
> \dorecurse{6}{\input knuth\par}
> \stopMyPart
>
> \stoptext
>
> Wolfgang
>
[-- Attachment #1.2: Type: text/html, Size: 3818 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
___________________________________________________________________________________
prev parent reply other threads:[~2021-08-07 19:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-06 17:12 Joey McCollum via ntg-context
2021-08-06 17:54 ` Pablo Rodriguez via ntg-context
2021-08-06 23:41 ` Joey McCollum via ntg-context
2021-08-07 9:20 ` Wolfgang Schuster via ntg-context
2021-08-07 19:14 ` Joey McCollum via ntg-context [this message]
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='CAGxRUG_eEf6H4ypZaYxy6-hQn9_uNkeAZe-nNaR_=2YRZm1NRg@mail.gmail.com' \
--to=ntg-context@ntg.nl \
--cc=jmccollum20140511@gmail.com \
--cc=wolfgang.schuster.lists@gmail.com \
/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).