* [NTG-context] \underbar in head
@ 2023-09-21 3:03 jbf
2023-09-21 4:26 ` [NTG-context] " Wolfgang Schuster
0 siblings, 1 reply; 5+ messages in thread
From: jbf @ 2023-09-21 3:03 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 322 bytes --]
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
Julian
[-- Attachment #1.2: Type: text/html, Size: 562 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* [NTG-context] Re: \underbar in head
2023-09-21 3:03 [NTG-context] \underbar in head jbf
@ 2023-09-21 4:26 ` Wolfgang Schuster
2023-09-21 5:01 ` jbf
0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2023-09-21 4:26 UTC (permalink / raw)
To: mailing list for ConTeXt users, jbf
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
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* [NTG-context] Re: \underbar in head
2023-09-21 4:26 ` [NTG-context] " Wolfgang Schuster
@ 2023-09-21 5:01 ` jbf
2023-09-21 16:04 ` Wolfgang Schuster
0 siblings, 1 reply; 5+ messages in thread
From: jbf @ 2023-09-21 5:01 UTC (permalink / raw)
To: Wolfgang Schuster, mailing list for ConTeXt users
[-- 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* [NTG-context] Re: \underbar in head
2023-09-21 5:01 ` jbf
@ 2023-09-21 16:04 ` Wolfgang Schuster
2023-09-21 21:36 ` jbf
0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2023-09-21 16:04 UTC (permalink / raw)
To: jbf; +Cc: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* [NTG-context] Re: \underbar in head
2023-09-21 16:04 ` Wolfgang Schuster
@ 2023-09-21 21:36 ` jbf
0 siblings, 0 replies; 5+ messages in thread
From: jbf @ 2023-09-21 21:36 UTC (permalink / raw)
To: Wolfgang Schuster, mailing list for ConTeXt users
So clearly I would need to upgrade my version. It does not work with
what I have at the moment. Thank you.
Julian
On 22/9/23 02:04, Wolfgang Schuster wrote:
> I get a line below the chapter title with LMTX and LuaTeX with the
> current ConTeXt version.
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-09-21 21:38 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-21 3:03 [NTG-context] \underbar in head jbf
2023-09-21 4:26 ` [NTG-context] " Wolfgang Schuster
2023-09-21 5:01 ` jbf
2023-09-21 16:04 ` Wolfgang Schuster
2023-09-21 21:36 ` jbf
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).