From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Wolfgang Schuster <wolfgang.schuster@gmail.com>
Subject: Re: Figured bass symbols in a text.
Date: Fri, 10 Aug 2012 19:59:36 +0200 [thread overview]
Message-ID: <50254C08.4070108@wxs.nl> (raw)
In-Reply-To: <4FAB7784-A41B-45E6-B281-ECF32467A445@gmail.com>
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
___________________________________________________________________________________
next prev parent reply other threads:[~2012-08-10 17:59 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 [this message]
2012-08-10 19:09 ` Sietse Brouwer
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=50254C08.4070108@wxs.nl \
--to=pragma@wxs.nl \
--cc=ntg-context@ntg.nl \
--cc=wolfgang.schuster@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).