ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Denis Maier via ntg-context <ntg-context@ntg.nl>
To: <taco@bittext.nl>, <ntg-context@ntg.nl>
Cc: denis.maier@unibe.ch
Subject: Re: double underbars
Date: Tue, 30 Nov 2021 14:02:22 +0000	[thread overview]
Message-ID: <9d69895870034582922a687ef3f10926@unibe.ch> (raw)
In-Reply-To: <DBE89B34-FBB0-4CE7-BA5D-418D60E07707@bittext.nl>

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
___________________________________________________________________________________

  reply	other threads:[~2021-11-30 14:02 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-30 11:06 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 [this message]
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

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=9d69895870034582922a687ef3f10926@unibe.ch \
    --to=ntg-context@ntg.nl \
    --cc=denis.maier@unibe.ch \
    --cc=taco@bittext.nl \
    /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).