From: Bruce Horrocks via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Bruce Horrocks <ntg@scorecrow.com>
Subject: Word wrap of 'part' titles
Date: Mon, 18 Apr 2022 21:46:24 +0100 [thread overview]
Message-ID: <C5CEA6A7-5645-483D-B74A-A2EF2E398D6F@scorecrow.com> (raw)
In the MWE below the 'part' title is centred but on one line only and, because it is a long title, the beginning and end are lost off the sides of the page.
If it were a 'chapter' title then I could insert '\\' to cause a line break at that point. However this does not seem to work for 'part'.
Is there a way of making 'part' titles wrap the same way that 'chapter' titles do?
% ---begin---
\define[2]\placePartTitle{\midaligned{#2}}
\definehead [Part] [part]
\setuphead[Part]
[ placehead=yes,
style={\tfd},
command=\placePartTitle,
]
\starttext
\startPart[title={A very long part title that needs to be wrapped manually}]
Some body text
\stopPart
\stoptext
%---end---
—
Bruce Horrocks
Hampshire, UK
___________________________________________________________________________________
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 reply other threads:[~2022-04-18 20:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-18 20:46 Bruce Horrocks via ntg-context [this message]
2022-04-18 21:10 ` Wolfgang Schuster via ntg-context
2022-04-18 23:19 ` Aditya Mahajan via ntg-context
2022-04-19 0:00 ` Bruce Horrocks via ntg-context
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=C5CEA6A7-5645-483D-B74A-A2EF2E398D6F@scorecrow.com \
--to=ntg-context@ntg.nl \
--cc=ntg@scorecrow.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).