From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: jbf <roma83537@gmail.com>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: [NTG-context] Re: \underbar in head
Date: Thu, 21 Sep 2023 18:04:01 +0200 [thread overview]
Message-ID: <be7cd104-7ebf-5500-6369-4ec562124931@gmail.com> (raw)
In-Reply-To: <615a9f7c-e33e-e2ef-5fc3-3e57a7c048e2@gmail.com>
jbf schrieb am 21.09.2023 um 07:01:
> However, Wolfgang, if I do, e.g.
>
> \setuphead[chapter][textcommand={\setbar[underbar]}]
>
> \starttext
>
> \startchapter[title={My title}]
>
> \input ward
>
> \stopchapter
>
> \stoptext
>
> Then I do not get My Title with underline, which is what I want, and nor
> is anything else underlined in 'Ward'.
I get a line below the chapter title with LMTX and LuaTeX with the
current ConTeXt version.
%%%% begin example
\setuphead
[chapter]
[textcommand={\setbar[underbar]}]
\starttext
\startchapter[title={My title}]
\input ward
\stopchapter
\stoptext
%%%% end example
The line is limited to the title because the textcommand key is used to
set \underbar, when you want a line below the whole chapter content you
can use the insidesection and aftersection keys.
%%%% begin example
\setuphead
[chapter]
[insidesection={\startbar[underbar]},
aftersection={\stopbar}]
\starttext
\startchapter[title={My title}]
\input ward
\stopchapter
\stoptext
%%%% end example
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage : https://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2023-09-21 16:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-21 3:03 [NTG-context] " jbf
2023-09-21 4:26 ` [NTG-context] " Wolfgang Schuster
2023-09-21 5:01 ` jbf
2023-09-21 16:04 ` Wolfgang Schuster [this message]
2023-09-21 21:36 ` jbf
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=be7cd104-7ebf-5500-6369-4ec562124931@gmail.com \
--to=wolfgang.schuster.lists@gmail.com \
--cc=ntg-context@ntg.nl \
--cc=roma83537@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).