* double underbars
@ 2021-11-30 11:06 Denis Maier via ntg-context
2021-11-30 13:19 ` Taco Hoekwater via ntg-context
0 siblings, 1 reply; 10+ messages in thread
From: Denis Maier via ntg-context @ 2021-11-30 11:06 UTC (permalink / raw)
To: ntg-context; +Cc: denis.maier
[-- Attachment #1.1: Type: text/plain, Size: 459 bytes --]
Hi,
for a current project I'll need different variants of underbars.
- A normal underbar
- A dotted underbar
- A combination of both
Is there a way to combine them? I was hoping to have the dotted variant above the normal bar.
This is not working
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\starttext
\underbar{asdf}
\underdot{asdf}
\underbar{\underdot{asdf}}
\stoptext
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Best,
Denis
[-- Attachment #1.2: Type: text/html, Size: 3091 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: double underbars
2021-11-30 11:06 double underbars Denis Maier via ntg-context
@ 2021-11-30 13:19 ` Taco Hoekwater via ntg-context
2021-11-30 13:38 ` Denis Maier via ntg-context
2021-11-30 13:40 ` Henning Hraban Ramm via ntg-context
0 siblings, 2 replies; 10+ messages in thread
From: Taco Hoekwater via ntg-context @ 2021-11-30 13:19 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Taco Hoekwater
> On 30 Nov 2021, at 12:06, Denis Maier via ntg-context <ntg-context@ntg.nl> wrote:
>
> Hi,
>
> for a current project I’ll need different variants of underbars.
>
> - A normal underbar
> - A dotted underbar
> - A combination of both
>
> Is there a way to combine them? I was hoping to have the dotted variant above the normal bar.
I would like to have this type of “complete” bar nesting as well.
As it stands, you can nest \underbars inside \underbars and \overstrikes inside \overstrikes and \overbars inside \overbars, but no other combinations work. Interoperability between these (as well as \underdot, \underdash, \underrandom ...) would be really cool.
Either with \xxxxbar or a nestable dy-shift version of textbackgrounds would be really handy sometimes. :)
>
> This is not working
>
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> \starttext
>
> \underbar{asdf}
>
> \underdot{asdf}
>
> \underbar{\underdot{asdf}}
>
> \stoptext
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
>
>
> Best,
> Denis
>
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
—
Taco Hoekwater E: taco@bittext.nl
genderfluid (all pronouns)
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: double underbars
2021-11-30 13:19 ` Taco Hoekwater via ntg-context
@ 2021-11-30 13:38 ` Denis Maier via ntg-context
2021-11-30 13:52 ` Taco Hoekwater via ntg-context
2021-11-30 13:40 ` Henning Hraban Ramm via ntg-context
1 sibling, 1 reply; 10+ messages in thread
From: Denis Maier via ntg-context @ 2021-11-30 13:38 UTC (permalink / raw)
To: taco, ntg-context; +Cc: denis.maier
Thanks, Taco. Good to know. Although it's not what I wanted to hear, of course...
I was thinking using mp to draw the combination could be solution, but unfortunately I don't know metafun yet.
If my understanding of https://source.contextgarden.net/node-rul.mkiv is correct, it should be possible to build upon the defintion of rules:under:dots (l. 327) Any hints how I could get this started?
Another question: what do you mean with a dy-shift version?
Best,
Denis
> -----Ursprüngliche Nachricht-----
> Von: Taco Hoekwater <taco@bittext.nl>
> Gesendet: Dienstag, 30. November 2021 14:19
> An: mailing list for ConTeXt users <ntg-context@ntg.nl>
> Cc: Maier, Denis Christian (UB) <denis.maier@unibe.ch>
> Betreff: Re: [NTG-context] double underbars
>
>
>
> > On 30 Nov 2021, at 12:06, Denis Maier via ntg-context <ntg-
> context@ntg.nl> wrote:
> >
> > Hi,
> >
> > for a current project I’ll need different variants of underbars.
> >
> > - A normal underbar
> > - A dotted underbar
> > - A combination of both
> >
> > Is there a way to combine them? I was hoping to have the dotted variant
> above the normal bar.
>
> I would like to have this type of “complete” bar nesting as well.
>
> As it stands, you can nest \underbars inside \underbars and \overstrikes
> inside \overstrikes and \overbars inside \overbars, but no other
> combinations work. Interoperability between these (as well as \underdot,
> \underdash, \underrandom ...) would be really cool.
>
> Either with \xxxxbar or a nestable dy-shift version of textbackgrounds would
> be really handy sometimes. :)
>
>
>
> >
> > This is not working
> >
> > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> > \starttext
> >
> > \underbar{asdf}
> >
> > \underdot{asdf}
> >
> > \underbar{\underdot{asdf}}
> >
> > \stoptext
> > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> >
> >
> > Best,
> > Denis
> >
> >
> __________________________________________________________
> ____________
> > _____________ 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
> >
> __________________________________________________________
> ____________
> > _____________
>
> —
> Taco Hoekwater E: taco@bittext.nl
> genderfluid (all pronouns)
>
>
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: double underbars
2021-11-30 13:19 ` Taco Hoekwater via ntg-context
2021-11-30 13:38 ` Denis Maier via ntg-context
@ 2021-11-30 13:40 ` Henning Hraban Ramm via ntg-context
1 sibling, 0 replies; 10+ messages in thread
From: Henning Hraban Ramm via ntg-context @ 2021-11-30 13:40 UTC (permalink / raw)
To: ntg-context; +Cc: Henning Hraban Ramm
Am 30.11.21 um 14:19 schrieb Taco Hoekwater via ntg-context:
> I would like to have this type of “complete” bar nesting as well.
YES, #metoo
> As it stands, you can nest \underbars inside \underbars and \overstrikes inside \overstrikes and \overbars inside \overbars, but no other combinations work. Interoperability between these (as well as \underdot, \underdash, \underrandom ...) would be really cool.
>
> Either with \xxxxbar or a nestable dy-shift version of textbackgrounds would be really handy sometimes. :)
\startbar[under,over,strikethrough] ... \stopbar ?
\barbar[top=single,bottom=double,mp=mp:swiggly]{text} ?
A nestable version of the existing bars would have the advantage that
you can add bars one after the other.
Hraban
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: double underbars
2021-11-30 13:38 ` Denis Maier via ntg-context
@ 2021-11-30 13:52 ` Taco Hoekwater via ntg-context
2021-11-30 14:02 ` Denis Maier via ntg-context
` (3 more replies)
0 siblings, 4 replies; 10+ messages in thread
From: Taco Hoekwater via ntg-context @ 2021-11-30 13:52 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Taco Hoekwater
> On 30 Nov 2021, at 14:38, Denis Maier via ntg-context <ntg-context@ntg.nl> wrote:
>
> Thanks, Taco. Good to know. Although it's not what I wanted to hear, of course...
>
> I was thinking using mp to draw the combination could be solution, but unfortunately I don't know metafun yet.
>
> If my understanding of https://source.contextgarden.net/node-rul.mkiv is correct, it should be possible to build upon the defintion of rules:under:dots (l. 327) Any hints how I could get this started?
Yes, that is the right part to get started with. You could just copy the whole \startuseMPgraphic and rename it for editing (to let’s say rules:under:bardots), then do
\definebar[underbardot] [undergraphic][mp=rules:under:bardots]
and play with the mp until you are happy with the output.
But the problem is that you have to create an “underbardot" that contains both the bar and the dots, to fix the non-nesting problem. It is then quite hard to get that definition to align properly with any enclosing “underbar” (I tried something like that a while ago and basically gave up. I did not want to spend a whole of time on it so I just told the client “computer says no").
> Another question: what do you mean with a dy-shift version?
Nested bars have a parameter ‘dy’ which controls the vertical shifts needed to make sure that they do not overlap. Text backgrounds do not have that option at all.
>
> Best,
> Denis
>
>> -----Ursprüngliche Nachricht-----
>> Von: Taco Hoekwater <taco@bittext.nl>
>> Gesendet: Dienstag, 30. November 2021 14:19
>> An: mailing list for ConTeXt users <ntg-context@ntg.nl>
>> Cc: Maier, Denis Christian (UB) <denis.maier@unibe.ch>
>> Betreff: Re: [NTG-context] double underbars
>>
>>
>>
>>> On 30 Nov 2021, at 12:06, Denis Maier via ntg-context <ntg-
>> context@ntg.nl> wrote:
>>>
>>> Hi,
>>>
>>> for a current project I’ll need different variants of underbars.
>>>
>>> - A normal underbar
>>> - A dotted underbar
>>> - A combination of both
>>>
>>> Is there a way to combine them? I was hoping to have the dotted variant
>> above the normal bar.
>>
>> I would like to have this type of “complete” bar nesting as well.
>>
>> As it stands, you can nest \underbars inside \underbars and \overstrikes
>> inside \overstrikes and \overbars inside \overbars, but no other
>> combinations work. Interoperability between these (as well as \underdot,
>> \underdash, \underrandom ...) would be really cool.
>>
>> Either with \xxxxbar or a nestable dy-shift version of textbackgrounds would
>> be really handy sometimes. :)
>>
>>
>>
>>>
>>> This is not working
>>>
>>> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
>>> \starttext
>>>
>>> \underbar{asdf}
>>>
>>> \underdot{asdf}
>>>
>>> \underbar{\underdot{asdf}}
>>>
>>> \stoptext
>>> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
>>>
>>>
>>> Best,
>>> Denis
>>>
>>>
>> __________________________________________________________
>> ____________
>>> _____________ 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
>>>
>> __________________________________________________________
>> ____________
>>> _____________
>>
>> —
>> Taco Hoekwater E: taco@bittext.nl
>> genderfluid (all pronouns)
>>
>>
>
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
—
Taco Hoekwater E: taco@bittext.nl
genderfluid (all pronouns)
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: double underbars
2021-11-30 13:52 ` Taco Hoekwater via ntg-context
@ 2021-11-30 14:02 ` Denis Maier via ntg-context
2021-11-30 14:13 ` Aditya Mahajan via ntg-context
` (2 subsequent siblings)
3 siblings, 0 replies; 10+ messages in thread
From: Denis Maier via ntg-context @ 2021-11-30 14:02 UTC (permalink / raw)
To: taco, ntg-context; +Cc: denis.maier
Ok, so I will see. But, if even you gave up, I should better hope that someone else hears our desperate cries ;)
Denis
> -----Ursprüngliche Nachricht-----
> Von: Taco Hoekwater <taco@bittext.nl>
> Gesendet: Dienstag, 30. November 2021 14:52
> An: mailing list for ConTeXt users <ntg-context@ntg.nl>
> Cc: Maier, Denis Christian (UB) <denis.maier@unibe.ch>
> Betreff: Re: [NTG-context] double underbars
>
>
>
> > On 30 Nov 2021, at 14:38, Denis Maier via ntg-context <ntg-
> context@ntg.nl> wrote:
> >
> > Thanks, Taco. Good to know. Although it's not what I wanted to hear, of
> course...
> >
> > I was thinking using mp to draw the combination could be solution, but
> unfortunately I don't know metafun yet.
> >
> > If my understanding of https://source.contextgarden.net/node-rul.mkiv is
> correct, it should be possible to build upon the defintion of rules:under:dots
> (l. 327) Any hints how I could get this started?
>
> Yes, that is the right part to get started with. You could just copy the whole
> \startuseMPgraphic and rename it for editing (to let’s say
> rules:under:bardots), then do
>
> \definebar[underbardot] [undergraphic][mp=rules:under:bardots]
>
> and play with the mp until you are happy with the output.
>
> But the problem is that you have to create an “underbardot" that contains
> both the bar and the dots, to fix the non-nesting problem. It is then quite
> hard to get that definition to align properly with any enclosing “underbar” (I
> tried something like that a while ago and basically gave up. I did not want to
> spend a whole of time on it so I just told the client “computer says no").
>
>
> > Another question: what do you mean with a dy-shift version?
>
> Nested bars have a parameter ‘dy’ which controls the vertical shifts needed
> to make sure that they do not overlap. Text backgrounds do not have that
> option at all.
>
> >
> > Best,
> > Denis
> >
> >> -----Ursprüngliche Nachricht-----
> >> Von: Taco Hoekwater <taco@bittext.nl>
> >> Gesendet: Dienstag, 30. November 2021 14:19
> >> An: mailing list for ConTeXt users <ntg-context@ntg.nl>
> >> Cc: Maier, Denis Christian (UB) <denis.maier@unibe.ch>
> >> Betreff: Re: [NTG-context] double underbars
> >>
> >>
> >>
> >>> On 30 Nov 2021, at 12:06, Denis Maier via ntg-context <ntg-
> >> context@ntg.nl> wrote:
> >>>
> >>> Hi,
> >>>
> >>> for a current project I’ll need different variants of underbars.
> >>>
> >>> - A normal underbar
> >>> - A dotted underbar
> >>> - A combination of both
> >>>
> >>> Is there a way to combine them? I was hoping to have the dotted
> >>> variant
> >> above the normal bar.
> >>
> >> I would like to have this type of “complete” bar nesting as well.
> >>
> >> As it stands, you can nest \underbars inside \underbars and
> >> \overstrikes inside \overstrikes and \overbars inside \overbars, but
> >> no other combinations work. Interoperability between these (as well
> >> as \underdot, \underdash, \underrandom ...) would be really cool.
> >>
> >> Either with \xxxxbar or a nestable dy-shift version of
> >> textbackgrounds would be really handy sometimes. :)
> >>
> >>
> >>
> >>>
> >>> This is not working
> >>>
> >>> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> >>> \starttext
> >>>
> >>> \underbar{asdf}
> >>>
> >>> \underdot{asdf}
> >>>
> >>> \underbar{\underdot{asdf}}
> >>>
> >>> \stoptext
> >>> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> >>>
> >>>
> >>> Best,
> >>> Denis
> >>>
> >>>
> >>
> __________________________________________________________
> >> ____________
> >>> _____________ 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
> >>>
> >>
> __________________________________________________________
> >> ____________
> >>> _____________
> >>
> >> —
> >> Taco Hoekwater E: taco@bittext.nl
> >> genderfluid (all pronouns)
> >>
> >>
> >
> >
> __________________________________________________________
> ____________
> > _____________ 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
> >
> __________________________________________________________
> ____________
> > _____________
>
> —
> Taco Hoekwater E: taco@bittext.nl
> genderfluid (all pronouns)
>
>
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: double underbars
2021-11-30 13:52 ` Taco Hoekwater via ntg-context
2021-11-30 14:02 ` Denis Maier via ntg-context
@ 2021-11-30 14:13 ` Aditya Mahajan via ntg-context
2021-11-30 15:17 ` Hans Hagen via ntg-context
2021-11-30 17:57 ` Hans Hagen via ntg-context
3 siblings, 0 replies; 10+ messages in thread
From: Aditya Mahajan via ntg-context @ 2021-11-30 14:13 UTC (permalink / raw)
To: Taco Hoekwater via ntg-context; +Cc: Aditya Mahajan
[-- Attachment #1: Type: text/plain, Size: 554 bytes --]
On Tue, 30 Nov 2021, Taco Hoekwater via ntg-context wrote:
>
> > Another question: what do you mean with a dy-shift version?
>
> Nested bars have a parameter ‘dy’ which controls the vertical shifts needed to make sure that they do not overlap. Text backgrounds do not have that option at all.
There are backgroundoffset and frameoffset in framedtext ... not sure if they are inherited in text backgrounds. Or you can defining everything in metapost (but that may lose composability).
https://tex.stackexchange.com/a/125486/323
Aditya
[-- 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: double underbars
2021-11-30 13:52 ` Taco Hoekwater via ntg-context
2021-11-30 14:02 ` Denis Maier via ntg-context
2021-11-30 14:13 ` Aditya Mahajan via ntg-context
@ 2021-11-30 15:17 ` Hans Hagen via ntg-context
2021-12-09 17:46 ` Henning Hraban Ramm via ntg-context
2021-11-30 17:57 ` Hans Hagen via ntg-context
3 siblings, 1 reply; 10+ messages in thread
From: Hans Hagen via ntg-context @ 2021-11-30 15:17 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Hans Hagen, Taco Hoekwater
On 11/30/2021 2:52 PM, Taco Hoekwater via ntg-context wrote:
>
>
>> On 30 Nov 2021, at 14:38, Denis Maier via ntg-context <ntg-context@ntg.nl> wrote:
>>
>> Thanks, Taco. Good to know. Although it's not what I wanted to hear, of course...
>>
>> I was thinking using mp to draw the combination could be solution, but unfortunately I don't know metafun yet.
>>
>> If my understanding of https://source.contextgarden.net/node-rul.mkiv is correct, it should be possible to build upon the defintion of rules:under:dots (l. 327) Any hints how I could get this started?
>
> Yes, that is the right part to get started with. You could just copy the whole \startuseMPgraphic and rename it for editing (to let’s say rules:under:bardots), then do
>
> \definebar[underbardot] [undergraphic][mp=rules:under:bardots]
>
> and play with the mp until you are happy with the output.
>
> But the problem is that you have to create an “underbardot" that contains both the bar and the dots, to fix the non-nesting problem. It is then quite hard to get that definition to align properly with any enclosing “underbar” (I tried something like that a while ago and basically gave up. I did not want to spend a whole of time on it so I just told the client “computer says no").
>
>
>> Another question: what do you mean with a dy-shift version?
>
> Nested bars have a parameter ‘dy’ which controls the vertical shifts needed to make sure that they do not overlap. Text backgrounds do not have that option at all.
i've added that so one can nest the mp driven ones but still within the
same category ... i'll look into a mix (more complex management wise so
typically a rainy weekend thing; i know how to do it but ...)
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: double underbars
2021-11-30 13:52 ` Taco Hoekwater via ntg-context
` (2 preceding siblings ...)
2021-11-30 15:17 ` Hans Hagen via ntg-context
@ 2021-11-30 17:57 ` Hans Hagen via ntg-context
3 siblings, 0 replies; 10+ messages in thread
From: Hans Hagen via ntg-context @ 2021-11-30 17:57 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Hans Hagen, Taco Hoekwater
[-- Attachment #1: Type: text/plain, Size: 1150 bytes --]
On 11/30/2021 2:52 PM, Taco Hoekwater via ntg-context wrote:
> But the problem is that you have to create an “underbardot" that contains both the bar and the dots, to fix the non-nesting problem. It is then quite hard to get that definition to align properly with any enclosing “underbar” (I tried something like that a while ago and basically gave up. I did not want to spend a whole of time on it so I just told the client “computer says no").
a new experience ... taco and giving up ... (probably when you'd told
the client that it would take a few hours it suddenly became less
important -)
anyway, attached what happens with two different classes ... i didn't
even test more than two as it's 'undefined behaviour' and when you need
that you should revert to old school typewriter typesetting
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
[-- Attachment #2: b.pdf --]
[-- Type: application/pdf, Size: 30508 bytes --]
[-- Attachment #3: 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: double underbars
2021-11-30 15:17 ` Hans Hagen via ntg-context
@ 2021-12-09 17:46 ` Henning Hraban Ramm via ntg-context
0 siblings, 0 replies; 10+ messages in thread
From: Henning Hraban Ramm via ntg-context @ 2021-12-09 17:46 UTC (permalink / raw)
To: ntg-context; +Cc: Henning Hraban Ramm
Am 30.11.21 um 16:17 schrieb Hans Hagen via ntg-context:
>>
>>> Another question: what do you mean with a dy-shift version?
>>
>> Nested bars have a parameter ‘dy’ which controls the vertical shifts
>> needed to make sure that they do not overlap. Text backgrounds do not
>> have that option at all.
> i've added that so one can nest the mp driven ones but still within the
> same category ... i'll look into a mix (more complex management wise so
> typically a rainy weekend thing; i know how to do it but ...)
If I use \overbar within \underbar, the same dy is used, i.e. in the
example, the first \overbar is in the right location, while the second
is too high:
\starttext
\overbar{Über} \underbar{Unterstrich \underbar{steigt \overbar{auf} den
\underbar{Unterberg}}}.
\stoptext
Hraban
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2021-12-09 17:46 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-30 11:06 double underbars Denis Maier via ntg-context
2021-11-30 13:19 ` Taco Hoekwater via ntg-context
2021-11-30 13:38 ` Denis Maier via ntg-context
2021-11-30 13:52 ` Taco Hoekwater via ntg-context
2021-11-30 14:02 ` Denis Maier via ntg-context
2021-11-30 14:13 ` Aditya Mahajan via ntg-context
2021-11-30 15:17 ` Hans Hagen via ntg-context
2021-12-09 17:46 ` Henning Hraban Ramm via ntg-context
2021-11-30 17:57 ` Hans Hagen via ntg-context
2021-11-30 13:40 ` Henning Hraban Ramm via ntg-context
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).