Figured bass symbols in a text.
Dear all, Is there a neat way to insert a stack of three figures in a line of text with the middle one sitting on the base line? I need it in a discussion of figured bass. (Figured bass is a system to indicate harmonies to be played above a bass-line. The figures can be single or stacked, two or three above each other. In discussing this topic in articles and books these "figures" are usually written as they appear in the music scores, in other words, stacked.) For a stack of two figures it can be done perfectly with \lohi{}{}. Is there a way to do it for a stack of three figures with the middle one sitting on the base line? (Something like \lomihi{}{}{}?) Here is an example in which the problem is stated once more. ----------------------------------------------- \starttext This does not look professional. A typical problematic example of this printing practice is Monteverdi's {\em L'Orfeo}, where, in the third act, in Speranze's recitative {\em Ecco l'atra palude}, several single fourths are printed, leaving for the continuo player the choice to play 5/4, 6/4, or 7/4/2. \medskip This does, for \lohi{4}{5} and \lohi{4}{6}. But how could this be done also for 7/4/2? (Interline distance may be enlarged as necessary.) A typical problematic example of this printing practice is Monteverdi's {\em L'Orfeo}, where, in the third act, in Speranze's recitative {\em Ecco l'atra palude}, several single fourths are printed, leaving for the continuo player the choice to play \lohi{4}{5}, \lohi{4}{6}, or 7/4/2. \stoptext ------------------------------------------------ Thanks in advance for any help. Best regards, Robert Blackstone
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. Hope that helps, Michael On Aug 10, 2012, at 5:35 AM, Robert Blackstone wrote:
Dear all,
Is there a neat way to insert a stack of three figures in a line of text with the middle one sitting on the base line? I need it in a discussion of figured bass. (Figured bass is a system to indicate harmonies to be played above a bass-line. The figures can be single or stacked, two or three above each other. In discussing this topic in articles and books these "figures" are usually written as they appear in the music scores, in other words, stacked.) For a stack of two figures it can be done perfectly with \lohi{}{}.
Is there a way to do it for a stack of three figures with the middle one sitting on the base line? (Something like \lomihi{}{}{}?)
Here is an example in which the problem is stated once more. ----------------------------------------------- \starttext
This does not look professional.
A typical problematic example of this printing practice is Monteverdi's {\em L'Orfeo}, where, in the third act, in Speranze's recitative {\em Ecco l'atra palude}, several single fourths are printed, leaving for the continuo player the choice to play 5/4, 6/4, or 7/4/2. \medskip
This does, for \lohi{4}{5} and \lohi{4}{6}. But how could this be done also for 7/4/2? (Interline distance may be enlarged as necessary.)
A typical problematic example of this printing practice is Monteverdi's {\em L'Orfeo}, where, in the third act, in Speranze's recitative {\em Ecco l'atra palude}, several single fourths are printed, leaving for the continuo player the choice to play \lohi{4}{5}, \lohi{4}{6}, or 7/4/2. \stoptext ------------------------------------------------ Thanks in advance for any help.
Best regards, Robert Blackstone ___________________________________________________________________________________ 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 ___________________________________________________________________________________
________________________________ This e-mail message (including any attachments) is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message (including any attachments) is strictly prohibited. If you have received this message in error, please contact the sender by reply e-mail message and destroy all copies of the original message (including attachments).
Am 10.08.2012 um 18:00 schrieb "Rogers, Michael K"
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 Wolfgang
On 10-8-2012 18:08, Wolfgang Schuster wrote:
Am 10.08.2012 um 18:00 schrieb "Rogers, Michael K"
: 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 -----------------------------------------------------------------
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
On 10-8-2012 18:08, Wolfgang Schuster wrote:
Am 10.08.2012 um 18:00 schrieb "Rogers, Michael K"
: 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 ___________________________________________________________________________________
On 10-8-2012 21:09, Sietse Brouwer wrote:
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.
ok, i'll fix that ... (or maybe midlowhigh is nicer ?)
For documentation/clarification, is the following correct? distance = extra kerning, distance between lomihi and preceding character.
only with low, high an lohi
up = how much the {hi} arg is raised down = how much the {low} arg is lowered
indeed
Support for the [left] keyword seems to have been dropped, but is still in the documentation comments.
still there, only for lohi .. maybe we should add an align key some day
Perhaps instead support align=..., and turn distance= into kernbefore= and kernafter=? Sorry about not knowing enough to implement it myself.
hm, distance is often used for this so that's better I'll do 'align' when there is demand for it. Thanks for keeping the wiki so up to date. 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 -----------------------------------------------------------------
participants (5)
-
Hans Hagen
-
Robert Blackstone
-
Rogers, Michael K
-
Sietse Brouwer
-
Wolfgang Schuster