I found a way to achieve this, although it's a bit of a hack.  If you put
<alt> </alt> (you must put at least one space between these tags) after the
first syllable, it will add extra space above the line for the alt text,
but will not add extra space if elements already extend above the top line
of the staff.  You can set the amount of space that shows up by modifying
the \greabovelinestextraise line in the spaces file. (gsp-default.tex if
you are using the default)

If you want this to happen automatically without having to put this into
every .gabc file you have, you can modify the gregoriotex-syllable.tex so
that it does this the first time that \gresyllable is called.  You can do
this by adding this line

> \ifnum\bhbsylcount=0\relax\gresettextabovelines{
> }\relax\global\bhbsylcount=1\relax\fi \relax%

as the new line 531, immediately before the line that says

> #8\relax %

and adding this line

> \newcount\bhbsylcount

somewhere outside of a macro definition.  I added it right after the end of
the \gresyllable macro definition ends on line 600.

If anyone who is more familiar with TeX than I am has some comments about
whether this will break anything else, please let me know because I really
have barely a clue as to what I'm doing when it comes to TeX.

*Benjamin Bloomfield*

On Tue, Dec 6, 2011 at 09:21, Benjamin Bloomfield <[email protected]> wrote:

> I think the way to look at this would be to add a parameter to the
> gsp-default.tex for a minimum amount of space above the top line of the top
> chant staff, because if you add space below the title section itself, I
> don't think it would be possible to know whether there will already be
> space from elements that extend above the top line of the staff, such as a
> clef on the top line, a quarter bar, a neume containing a k, l, or m tone,
> or an episema that is above the top line of the clef.
>
> The problem with simply adding space to the commentary is that it will add
> space regardless, and thus there will be too much space if the clef is c4
> or there is a quarter bar on the first line, etc.
>
> Unfortunately, I don't understand TeX well enough to be able to implement
> something like this.
>
> *Benjamin Bloomfield*
>
> On Tue, Dec 6, 2011 at 06:49, Innocent Smith <[email protected]>wrote:
>
>> Dear Adam,
>>
>> I've noticed this issue also.
>>
>> It seems like the relevant section of the Gregorio code is fairly simple:
>> in Gregoriotex.tex, there is the following code:
>>
>> \def\commentary#1{%
>>   \vbox{\hfill\hbox{#1}}%
>>   \relax %
>> }
>>
>> It may be possible to redefine this to create more padding. Does anyone
>> have a sense of what would be best in this case? If I don't hear back from
>> anyone, I can try a few experiments, but perhaps it is quite easy in
>> principle. Is it as easy as creating some \vspace ?
>>
>> Another way to approach this issue would be to use a tag like
>> \subsubsection and redefine it to have the padding you want. Here is an
>> example of how I used the titlesec package to automate the various headings
>> for a large-scale project I'm working on:
>>
>> \usepackage[compact]{titlesec}
>> \titlespacing*{\chapter}{0pt}{*0}{*1}
>> \titlespacing*{\section}{0pt}{*0}{*1}
>> \titlespacing*{\subsection}{0pt}{*0}{*1}
>> \titlespacing*{\subsubsection}{0pt}{10pt}{*0}
>> \titleformat{\chapter} {\normalfont\LARGE\sc\center}{\thechapter}{1em}{}
>> \titleformat{\section} {\normalfont\Large\sc\center}{\thesection}{1em}{}
>> \titleformat{\subsection}
>> {\normalfont\large\sc\center}{\thesubsection}{1em}{}
>>
>> \titleformat{\subsubsection}{\normalfont\normalsize\it}{\thesubsubsection}{1em}{}
>>
>> It might be possible to redefine the \subsubsection to be the proper
>> formating you desire, setting the formating in the \titleformat part and
>> the spacing in \titlespacing -- I haven't played around with titlesec for a
>> few months, so I can't recall offhand how all the paramaters work. If we
>> don't hear back from anyone about the \commentary tag, I can try spending
>> some time to figure this out.
>>
>> Incidentally, these titlesec tags are a great help for large projects,
>> because you can then use the native latex functions of chapters and
>> sections and so forth to organize a long book, and have the table of
>> contents appear in  an ordered way and so forth.
>>
>> Best wishes for the Advent season,
>>
>> bro. Innocent, op
>>
>> On Tue, Dec 6, 2011 at 12:40 AM, Adam Bartlett <
>> [email protected]> wrote:
>>
>>> Dear Friends,
>>>
>>> Please pardon my asking this question again, but I didn't get much of an
>>> answer last time, so I thought I would try one more time:
>>>
>>> Is there any way to set a minimum spacing between the top of the staff
>>> (regardless of elements that reach above the staff) and the bottom of the
>>> commentary (and user-notes) produced text?
>>>
>>> The problem I'm encountering is that when none of the neume elements
>>> reach the top or above the top line (including a lack of a quarter bar) the
>>> commentary text becomes uncomfortably cramped with the top line. Here is an
>>> example:
>>>
>>>
>>>
>>>
>>> My desire would be for some padding to be automatically added in these
>>> instances to make the commentary and user-notes text the same as is found
>>> in the typical arrangement when text reaches above this top line, e.g.:
>>>
>>>
>>>
>>>
>>> I sense that there is no current way to do this. For those who don't
>>> know, I am using Gregorio to typeset all antiphons and chants in the
>>> forthcoming *Lumen Christi Missal<http://www.illuminarepublications.com>
>>>  *which will be a widely distributed pew book through out the United
>>> States. I would be happy to make a donation the lead developers of Gregorio
>>> if such a feature could be added to this incredible, and in my option, best
>>> chant engraving software.
>>>
>>> If interested please email me.
>>>
>>> Many thanks for all that you do.
>>>
>>> Regards,
>>>
>>> Adam Bartlett
>>> Illuminare Publications
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> 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
>>
>>
>
_______________________________________________
Gregorio-users mailing list
[email protected]
https://mail.gna.org/listinfo/gregorio-users

Reply via email to