ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Sietse Brouwer <sbbrouwer@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Figured bass symbols in a text.
Date: Fri, 10 Aug 2012 21:09:20 +0200	[thread overview]
Message-ID: <CAF=dkzxefw2Y6eCTx8F-hOcvim0nbDH02KRAKFkzFAsH76Dgag@mail.gmail.com> (raw)
In-Reply-To: <50254C08.4070108@wxs.nl>

Hans wrote:
> So, we have low/high definable and clonable etc. Best check if the defaults
> are compatible. Valid parameters are 'up', 'down' and 'distance'
> (dimensions) and of course 'style' and 'color'.

Just downloaded and tested, looks nice.
Small bug: It's called lomihi, but the arguments are placed middle/high/low.

For documentation/clarification, is the following correct?
distance = extra kerning, distance between lomihi and preceding character.
up = how much the {hi} arg is raised
down = how much the {low} arg is lowered

Support for the [left] keyword seems to have been dropped, but is
still in the documentation comments.
Perhaps instead support align=..., and turn distance= into kernbefore=
and kernafter=? Sorry about not knowing enough to implement it myself.

Cheers,
Sietse

On Fri, Aug 10, 2012 at 7:59 PM, Hans Hagen <pragma@wxs.nl> wrote:
> On 10-8-2012 18:08, Wolfgang Schuster wrote:
>>
>>
>> Am 10.08.2012 um 18:00 schrieb "Rogers, Michael K" <mroge02@emory.edu>:
>>
>>> Hi,
>>>
>>> Since no one has offered a quick ConTeXt solution, I offer my usual -- a
>>> dumb Plain TeX solution:
>>>
>>> \def\lomihi#1#2#3{${\scriptstyle{#2}}\limits_{#1}^{#3}$}
>>>
>>> With the Computer Modern font, the top is a little further away from the
>>> middle than the bottom.  It can be adjusted with something like
>>>
>>>
>>> \def\lomihi#1#2#3{${\scriptstyle{#2}}\limits_{#1}^{\lower0.23pt\hbox{$\scriptstyle{#3}$}}$}
>>>
>>> but this would probably have to be adjusted for each font and size.
>>
>>
>> You can use \framed:
>>
>>
>> \defineframed[lohimi][align=flushleft,location=middle,frame=off,foregroundstyle=\tx]
>>
>> \starttext
>> text \lohi{1}{2} text \lohimi{1\\2\\3} text
>> \stoptext
>
>
> Neat trick.
>
> ===
>
> Wolfgang,
>
> The next beta has:
>
> \starttext
>
> \definelow       [MyLow]   [style=\txx]
> \definehigh      [MyHigh]  [style=\txx]
> \definelowhigh   [MyLoHi]  [style=\txx]
> \definelowmidhigh[MyLoMiHi][style=\txx]
>
> We have
>     \ruledhbox{\low         {L}} and \ruledhbox{\MyLow         {L}} and
>     \ruledhbox{\high        {H}} and \ruledhbox{\MyHigh        {H}} and
>     \ruledhbox{\lohi     {L}{H}} and \ruledhbox{\MyLoHi     {L}{H}} and
>     \ruledhbox{\lomihi{L}{M}{H}} and \ruledhbox{\MyLoMiHi{L}{M}{H}}.
>
> \stoptext
>
> So, we have low/high definable and clonable etc. Best check if the defaults
> are compatible. Valid parameters are 'up', 'down' and 'distance'
> (dimensions) and of course 'style' and 'color'.
>
> Hans
>
> -----------------------------------------------------------------
>                                           Hans Hagen | PRAGMA ADE
>               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
>                                              | 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://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


  reply	other threads:[~2012-08-10 19:09 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-10  9:35 Robert Blackstone
2012-08-10 16:00 ` Rogers, Michael K
2012-08-10 16:08   ` Wolfgang Schuster
2012-08-10 17:59     ` Hans Hagen
2012-08-10 19:09       ` Sietse Brouwer [this message]
2012-08-10 23:03         ` Hans Hagen
     [not found] <mailman.99.1344625786.14247.ntg-context@ntg.nl>
2012-08-11  7:03 ` Robert Blackstone
2012-08-11  7:13 ` Robert Blackstone
2012-08-12  9:00 ` Robert Blackstone
2012-08-12 12:48   ` Rogers, Michael K
2012-08-13 15:58   ` john Culleton
     [not found] <mailman.3.1344938401.1170.ntg-context@ntg.nl>
2012-08-14 17:23 ` Robert Blackstone

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='CAF=dkzxefw2Y6eCTx8F-hOcvim0nbDH02KRAKFkzFAsH76Dgag@mail.gmail.com' \
    --to=sbbrouwer@gmail.com \
    --cc=ntg-context@ntg.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).