Re: [Gregorio-users] how to make all the * in the gabc score turn red

2015-03-18 Thread Pierre Couderc

I simply use c*/c,c†/c,c✠/c,c℟/c,c℣/c...

On 03/16/2015 09:35 PM, Brother Gabriel-Marie wrote:
How can I do that? Every time a * appears in the gabc text, I want to 
make it red.

Can I even do that?


___
Gregorio-users mailing list
Gregorio-users@gna.org
https://mail.gna.org/listinfo/gregorio-users


___
Gregorio-users mailing list
Gregorio-users@gna.org
https://mail.gna.org/listinfo/gregorio-users


Re: [Gregorio-users] how to make all the * in the gabc score turn red

2015-03-17 Thread Jakub Jelinek
On Tue, Mar 17, 2015 at 09:40:31AM -0500, Brother Gabriel-Marie wrote:
 By versiculum-based macros, you all mean anything wrapped in the v/v
 inside the gabc code, right?
 
 When I put this in my tex template, it just removes the ℣ and ℟ characters
 from the resulting pdf.

What I'm using is:
% Emit R/, V/, A/ and + in red
\let\oldrbar\Rbar
\let\oldvbar\Vbar
\let\oldabar\Abar
\let\oldgrecross\grecross
\let\oldgrestar\grestar
\let\oldgredagger\gredagger
\let\olddag\dag
\let\oldddag\ddag
\renewcommand{\Rbar}{\textbf{\color{red}\oldrbar}}
\renewcommand{\Vbar}{\textbf{\color{red}\oldvbar}}
\renewcommand{\Abar}{\textbf{\color{red}\oldabar}}
\renewcommand{\grecross}{\textbf{\color{red}\oldgrecross}}
\renewcommand{\grestar}{\textbf{\color{red}\oldgrestar}}
\renewcommand{\gredagger}{\textbf{\color{red}\oldgredagger}}
\renewcommand{\dag}{{\color{red}\olddag}}
\renewcommand{\ddag}{{\color{red}\oldddag}}
\newcommand{\Rbardot}{{\color{red}\textbf{\oldrbar}.~}}
\newcommand{\Vbardot}{{\color{red}\textbf{\oldvbar}.~}}
\newcommand{\Abardot}{{\color{red}\textbf{\oldabar}.~}}
\newcommand{\Psdot}{{\color{red}\textbf{Ps}.~}}

and using a sed replace spA//sp. and spV//sp.
and spR//sp. in the gabc sources with
v\Abardot{}/v etc., so that even the dot after it
is red, even in gabc sources I don't want to change manually.

Jakub

___
Gregorio-users mailing list
Gregorio-users@gna.org
https://mail.gna.org/listinfo/gregorio-users


Re: [Gregorio-users] how to make all the * in the gabc score turn red

2015-03-17 Thread Henry So Jr.
For your Versiculum-based macros:

\newfontfamily\versiculum{Versiculum}
\def\Abar{{\color{red}\versiculum a}}
\def\Rbar{{\color{red}\versiculum r}}
\def\Vbar{{\color{red}\versiculum v}}

Henry

On Tuesday, 17 March 2015 at 07:33:06 am -0500, Gerry Davila wrote:
 So how would one adapt this to make all \Abar, \Rbar, \Vbar red? Thanks.
 
 Gerry Davila
 Schola Sancte Michael
 
 ___
 Gregorio-users mailing list
 Gregorio-users@gna.org
 https://mail.gna.org/listinfo/gregorio-users
 

___
Gregorio-users mailing list
Gregorio-users@gna.org
https://mail.gna.org/listinfo/gregorio-users


Re: [Gregorio-users] how to make all the * in the gabc score turn red

2015-03-17 Thread Gerry Davila
Thank you!

Gerry Davila
Schola Sancte Michael

 On Mar 17, 2015, at 7:52 AM, Henry So Jr. henr...@panix.com wrote:
 
 For your Versiculum-based macros:
 
 \newfontfamily\versiculum{Versiculum}
 \def\Abar{{\color{red}\versiculum a}}
 \def\Rbar{{\color{red}\versiculum r}}
 \def\Vbar{{\color{red}\versiculum v}}
 
 Henry
 
 On Tuesday, 17 March 2015 at 07:33:06 am -0500, Gerry Davila wrote:
 So how would one adapt this to make all \Abar, \Rbar, \Vbar red? Thanks.
 
 Gerry Davila
 Schola Sancte Michael
 
 ___
 Gregorio-users mailing list
 Gregorio-users@gna.org
 https://mail.gna.org/listinfo/gregorio-users
 

___
Gregorio-users mailing list
Gregorio-users@gna.org
https://mail.gna.org/listinfo/gregorio-users


Re: [Gregorio-users] how to make all the * in the gabc score turn red

2015-03-17 Thread Brother Gabriel-Marie
By versiculum-based macros, you all mean anything wrapped in 
the v/v inside the gabc code, right?


When I put this in my tex template, it just removes the ℣ 
and ℟ characters from the resulting pdf.



On 3/17/2015 7:52 AM, Henry So Jr. wrote:

For your Versiculum-based macros:

\newfontfamily\versiculum{Versiculum}
\def\Abar{{\color{red}\versiculum a}}
\def\Rbar{{\color{red}\versiculum r}}
\def\Vbar{{\color{red}\versiculum v}}

Henry

On Tuesday, 17 March 2015 at 07:33:06 am -0500, Gerry Davila wrote:

So how would one adapt this to make all \Abar, \Rbar, \Vbar red? Thanks.

Gerry Davila
Schola Sancte Michael

___
Gregorio-users mailing list
Gregorio-users@gna.org
https://mail.gna.org/listinfo/gregorio-users


___
Gregorio-users mailing list
Gregorio-users@gna.org
https://mail.gna.org/listinfo/gregorio-users




___
Gregorio-users mailing list
Gregorio-users@gna.org
https://mail.gna.org/listinfo/gregorio-users


Re: [Gregorio-users] how to make all the * in the gabc score turn red

2015-03-17 Thread Henry So Jr.
\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
 Gregorio-users@gna.org
 https://mail.gna.org/listinfo/gregorio-users
 

___
Gregorio-users mailing list
Gregorio-users@gna.org
https://mail.gna.org/listinfo/gregorio-users


Re: [Gregorio-users] how to make all the * in the gabc score turn red

2015-03-16 Thread Brother Gabriel-Marie

Father,

Wow - that's done in the .sty file - I've never ventered 
past the tex template yet...  I'll have to think about that 
one!  Thanks!


On 3/16/2015 3:59 PM, Jacques Peron wrote:

Dear Brother,

You should look at there 
https://github.com/jperon/Lourdes/blob/master/lib/gredoc.sty, 
especially lines 216 and after. I've done that for ℣. and 
℟. too (including the dot).


God Bless,

Fr. Jacques Peron +

2015-03-16 21:35 GMT+01:00 Brother Gabriel-Marie 
brgabr...@sspx.org mailto:brgabr...@sspx.org:


How can I do that? Every time a * appears in the gabc
text, I want to make it red.
Can I even do that?

___
Gregorio-users mailing list
Gregorio-users@gna.org mailto:Gregorio-users@gna.org
https://mail.gna.org/listinfo/gregorio-users




___
Gregorio-users mailing list
Gregorio-users@gna.org
https://mail.gna.org/listinfo/gregorio-users


Re: [Gregorio-users] how to make all the * in the gabc score turn red

2015-03-16 Thread Br. Samuel Springuel
Yes, but not simply.  You will have to modify your gabc to accomplish 
it.  You have three choices:


1) Use c*/c in your score.  The c/c tags color text 
gregoriocolor, which is defined as a red similar to what you would find 
in liturgical books (RGB: 229,53,44).  If you want to change that color, 
look at the documentation for the xcolor package for details on 
redefining colors.  This only works in the lyrics.


2) Use v{\color{red}*}/v in your score.  This will color the 
asterisk red (RGB: 255,0,0).  Change color as you want.  This only works 
in the lyrics.


3) Define a macro in your TeX file which produces the red asterisk you 
want and then put def-m1: \redasterisk in your gabc header (change the 
number 1 to something else if you already have defined macros) and then 
put [em1], [gm1], or [nm1] in the score where needed.  These tags go in 
the notes, not the lyrics, and the variation (e, g, n) has to do with 
how they interact with the notes (see 
http://home.gna.org/gregorio/gabc/details#verbatim for details).


✝
Br. Samuel, OSB
(R. Padraic Springuel)

PAX ☧ ΧΡΙΣΤΟΣ

___
Gregorio-users mailing list
Gregorio-users@gna.org
https://mail.gna.org/listinfo/gregorio-users


Re: [Gregorio-users] how to make all the * in the gabc score turn red

2015-03-16 Thread Brother Gabriel-Marie
I took a good look at Father Peron's sty file, and cyphered 
to do this:


\renewcommand{\*}{ \color{red}{*}\color{black}}
\let\grestar\*
\let\greheightstar\*

I put this in my tex template - not any sty file, and it 
works!  You can see below that all the *'s are in red and I 
never put anything at all in my gabc code - which means I 
can reuse the template for all the gabc files.
(I am using my Greg program, which lets you reuse a special 
tex template for all/any scores)


Thanks for your help, Father, Brother.




On 3/16/2015 4:03 PM, Br. Samuel Springuel wrote:
Yes, but not simply.  You will have to modify your gabc to 
accomplish it.  You have three choices:


1) Use c*/c in your score.  The c/c tags color 
text gregoriocolor, which is defined as a red similar to 
what you would find in liturgical books (RGB: 229,53,44).  
If you want to change that color, look at the 
documentation for the xcolor package for details on 
redefining colors.  This only works in the lyrics.


2) Use v{\color{red}*}/v in your score.  This will 
color the asterisk red (RGB: 255,0,0).  Change color as 
you want. This only works in the lyrics.


3) Define a macro in your TeX file which produces the red 
asterisk you want and then put def-m1: \redasterisk in 
your gabc header (change the number 1 to something else if 
you already have defined macros) and then put [em1], 
[gm1], or [nm1] in the score where needed.  These tags go 
in the notes, not the lyrics, and the variation (e, g, n) 
has to do with how they interact with the notes (see 
http://home.gna.org/gregorio/gabc/details#verbatim for 
details).


✝
Br. Samuel, OSB
(R. Padraic Springuel)

PAX ☧ ΧΡΙΣΤΟΣ

___
Gregorio-users mailing list
Gregorio-users@gna.org
https://mail.gna.org/listinfo/gregorio-users


___
Gregorio-users mailing list
Gregorio-users@gna.org
https://mail.gna.org/listinfo/gregorio-users