Here's one way to accomplish that.

I added this code to the main LaTeX file:

\usepackage{ifthen}
%
% ... and then after the begin{document}....
%
\newcounter{greboldon}
\setcounter{greboldon}{0}
\newcommand{\dobold}{\setcounter{greboldon}{1}}%
\newcommand{\undobold}{\setcounter{greboldon}{0}}%
\renewcommand{\gretextformat}[1]%
{\ifthenelse{\equal{\value{greboldon}}{1}}{\bf{#1}}{#1}\relax}


Then, in the gabc code, I can add
<v>dobold{}</v>
and
<v>undobold{}</v>
to turn boldface text on and off.


--RC




On 09/19/2010 09:40 AM, Elie Roux wrote:
> Adam Bartlett a écrit :
>   >
>> In wondering if there is another way to use the<b>bold</b>  tags in gabc
>> other than to enclose each pertinent syllable or word in the tags
>> individually.  I have tried to apply this to an entire line of text to
>> no avail.  Is the only way to use these to apply them to only one syllable?
>
> Hello,
>
> I think the best way to achieve this is to do a small TeX macro and to
> call it into a verb, something like
>
> \def\dobold{...}
>
> redefining the normal text format to be bold and then
>
> (c4)Glo(g)ry(h) to(j) God(j) in(i) the(j) high(kj)est,(j) (::)
> <v>\dobold{}</v>and(g) on(h) earth(jkj) peace(j_i_j_) to(j) peo(h)ple(h)
> of(g) good(f) will.(g) (::)
>
> To be a bit cleaner, you could use the gabc macro system described on
> http://home.gna.org/gregorio/gabc/details#verbatim .
>
> Thank you,


_______________________________________________
Gregorio-users mailing list
[email protected]
https://mail.gna.org/listinfo/gregorio-users

Reply via email to