\renewcommand is itself a command which has two required arguments, the
first being the name of the command to create or replace, and the second
being the text of the command. These arguments are supplied within
curly braces.
Therefore, "\*" is the command being replaced and "{\color{red}*}" is
what \* will generate.
If you don't put the extra set of curly braces, i.e.
\renewcommand{\*}{\color{red}*}
then \* would generate "\color{red}*" which would turn everything after
it (until the next \color command) red.
Regards,
Henry
On Tuesday, 17 March 2015 at 10:18:30 am -0500, Brother Gabriel-Marie wrote:
> Elie,
>
> \renewcommand{\*}{{\color{red}*}}
>
> That works!
> I didn't realize that there had to be double curlies for
> Gregorio.
> I'm still getting used to tex coding, and have just begun
> looking at .sty files....
> Thanks for your time and patience.
>
> On 3/17/2015 9:50 AM, Élie Roux wrote:
> > Le 17/03/2015 15:34, Brother Gabriel-Marie a écrit :
> >> Elie,
> >> I had actually already tried that.
> >>
> >> \renewcommand{\*}{\color{red}*}}
> > it should be :
> >
> > \renewcommand{\*}{{\color{red}*}}
> >
> > I didn't try though... but it looks like the way gregorio handles it
> > (see gregorio.sty line 71).
> >
> > Thank you,
>
>
> _______________________________________________
> Gregorio-users mailing list
> [email protected]
> https://mail.gna.org/listinfo/gregorio-users
>
_______________________________________________
Gregorio-users mailing list
[email protected]
https://mail.gna.org/listinfo/gregorio-users