ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: jbf <roma83537@gmail.com>
To: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>,
	mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: [NTG-context] Re: \underbar in head
Date: Thu, 21 Sep 2023 15:01:11 +1000	[thread overview]
Message-ID: <615a9f7c-e33e-e2ef-5fc3-3e57a7c048e2@gmail.com> (raw)
In-Reply-To: <122e1a2d-d050-32ef-40cb-fd08caecf1ba@gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 1068 bytes --]

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'.

Could it be something to do with the version of LMTX? Mine is 2022.08.25 
19:21 LMTX.

I do have a workaround, with a \defineframed[underbarframed] and then 
setting offsets accordingly and using that as a textcommand.

Julian

On 21/9/23 14:26, Wolfgang Schuster wrote:
> jbf schrieb am 21.09.2023 um 05:03:
>>
>> Am attempting to get an underlined head style (chapter) with:
>>
>> \setuphead[chapter][textcommand=\underbar]
>>
>> But I get no underline. Am I doing something wrong? I can, of course, 
>> achieve the result at each chapter level with 
>> \startchapter[title={\underbar{text}}] but would prefer to achieve 
>> this with \setuphead
>>
>
> \setuphead[chapter][textcommand={\setbar[underbar]}]
>
> \starttext
>
> \chapter{\samplefile{ward}}
>
> \stoptext
>
> Wolfgang
>

[-- Attachment #1.2: Type: text/html, Size: 4167 bytes --]

[-- Attachment #2: Type: text/plain, Size: 495 bytes --]

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

  reply	other threads:[~2023-09-21  5:02 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 [this message]
2023-09-21 16:04     ` Wolfgang Schuster
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=615a9f7c-e33e-e2ef-5fc3-3e57a7c048e2@gmail.com \
    --to=roma83537@gmail.com \
    --cc=ntg-context@ntg.nl \
    --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).