Debian Codegraph @

texmf-dist/doc/luatex/gregoriotex/gsp-sample.tex

raw
1 %GregorioTeX file.
2 %
3 % Copyright (C) 2010-2025 The Gregorio Project (see CONTRIBUTORS.md)
4 %
5 % This file is part of Gregorio.
6 %
7 % Gregorio is free software: you can redistribute it and/or modify
8 % it under the terms of the GNU General Public License as published by
9 % the Free Software Foundation, either version 3 of the License, or
10 % (at your option) any later version.
11 %
12 % Gregorio is distributed in the hope that it will be useful,
13 % but WITHOUT ANY WARRANTY; without even the implied warranty of
14 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 % GNU General Public License for more details.
16 %
17 % You should have received a copy of the GNU General Public License
18 % along with Gregorio. If not, see <http://www.gnu.org/licenses/>.
19
20 %%%%%%%%%%%%%%%%%%%%%%%%%
21 %%
22 %% This file is an example of how the various penalties and spacings can be changed to tweak the
23 %% overall look of a Gregorio score.
24 %%
25 %% When customizing this file to your own use, you do not need to include all the penalties and
26 %% distances listed below. Those not included will fall back onto their default values.
27 %%
28 %% The name of all space configuration files should start with `gsp-` and end with `.tex`; what goes
29 %% in between is up to you (so long as it doesn’t contain spaces). To load a space configuration
30 %% file called `gsp-sample.tex`, use `\greloadspaceconf{sample}`. The defaults can be reloaded
31 %% with `\greloadspaceconf{default}`.
32 %%
33 %%%%%%%%%%%%%%%%%%%%%%%%%
34
35
36 %%%%%%%%%%%%%%%%%%%%%%%%%
37 %%
38 %% At the risk of oversimplifying, penalties affect line breaks: larger penalties indicate that line
39 %% breaks should be less likely at the corresponding location, smaller penalties (including negative
40 %% values) indicate that line breaks are more likely.
41 %%
42 %%%%%%%%%%%%%%%%%%%%%%%%%
43
44 % penalty to force a break on a new line
45 \grechangecount{newlinepenalty}{-10001}%
46 % penalty to prevent a line break
47 \grechangecount{nobreakpenalty}{10001}%
48 % penalty at the end of a syllable which is the end of a word
49 \grechangecount{endofwordpenalty}{-100}%
50 % penalty at the end of a syllable which is not the end of a word
51 \grechangecount{endofsyllablepenalty}{-50}%
52 % penalty at the end of a syllable which is just a bar, with something printed
53 % under it
54 \grechangecount{endafterbarpenalty}{-200}%
55 % penalty right after a bar with nothing printed
56 \grechangecount{endafterbaraltpenalty}{-200}%
57 % penalty at the end of the score
58 \grechangecount{finalpenalty}{0}%
59 % penalty at the end of a breakable neumatic element (typically at a space
60 % between elements)
61 \grechangecount{endofelementpenalty}{-50}%
62 % hyphenpenalty will be used in discretionaries, in Gregorio this is used for
63 % a bar with clef change for example. It also set \exhyphenpenalty. It should
64 % be close to endafterbarpenalty
65 \grechangecount{hyphenpenalty}{-200}%
66 % broken penalty is the vertical penalty inserted after a break on a clef change
67 % I'm not sure it should be set, but it might be useful...
68 \grechangecount{brokenpenalty}{0}%
69
70 %% These macro enable the tuning of linepenalty, tolerance, pretolerance
71 %% and emergencystretch
72 \grechangecount{looseness}{-1}%
73 \grechangecount{tolerance}{9000}%
74 % Workaround for bug 842 (http://tracker.luatex.org/view.php?id=842)
75 % see http://tug.org/pipermail/luatex/2013-July/004516.html
76 % The idea is that we use discretionaries (explicit hyphens, though more than hyphens in our case) for clef changes, and we need to give them a special penalty, which is not taken into account if pretolerance is > -1 on LuaTeX < 0.80. For a more detailed explanation see http://tug.org/pipermail/luatex/2013-July/004516.html.
77 \ifnum\the\luatexversion < 78\relax %
78 \grechangecount{pretolerance}{-1}%
79 \else %
80 \grechangecount{pretolerance}{\the\pretolerance}%
81 \fi %
82 \grechangedim{emergencystretch}{\the\emergencystretch}{scalable}%
83 % By default, we don't care if a line of score is alone on the page,
84 % if you think it is bad, you can modify the two following values. Assigning
85 % 10000 to them will prevent all orphaned lines (this will certainly improve
86 % some spacings a lot).
87 \grechangecount{widowpenalty}{0}%
88 \grechangecount{clubpenalty}{0}%
89
90
91 %%%%%%%%%%%%%%%%%%%
92 %%
93 %% Protrusion factors indicate that certain characters are allowed to extend into the right hand
94 %% margin when they occur at the end of the line. This allows you to create a more optically
95 %% straight margin as the eye tends to discount some characters (mostly punctuation) when
96 %% determining whether the end of several lines of text line up.
97 %%
98 %%%%%%%%%%%%%%%%%%%
99
100 % protrusion factor for comma
101 \gresetprotrusionfactor{,}{0}%
102 % protrusion factor for semicolon
103 \gresetprotrusionfactor{;}{0}%
104 % protrusion factor for colon
105 \gresetprotrusionfactor{:}{0}%
106 % protrusion factor for period
107 \gresetprotrusionfactor{.}{0}%
108 % protrusion factor for hyphens added automatically in the Lua phase
109 \gresetprotrusionfactor{eolhyphen}{0}%
110 % protrusion factor used by <pr> without an argument
111 \gresetprotrusionfactor{default}{1}%
112
113
114
115
116 %%%%%%%%%%%%%%%%%%%
117 %%
118 %% The following spacings govern the distance between various elements (names are chosen to
119 %% indicate when each spacing is used). The macro for changing distances is \grechangedim and
120 %% it takes 3 arguments:
121 %%
122 %% (1) the name of the spacing to be changed
123 %% (2) the value of the spacing
124 %% (3) either `scalable` or `fixed` to indicate how the spacing should behave when
125 %% `\grechangestaffsize` is invoked. If `scalable` then the spacing is proportionally rescaled;
126 %% if `fixed` it will remain at its given value; if `inherited` then #2 should be the name of
127 %% another spacing from which this spacing derives its value.
128 %%
129 %%%%%%%%%%%%%%%%%%%
130
131 %This count tells gregoriotex what size staff the below values correspond to.
132 %% The default staff size is 17. At this size the scores should be approximately the size usually
133 %% seen in a gradual.
134 %% If you’re creating your own space configuration file, you may set this to some other value,
135 %% should you so desire.
136 %% If the current staff size doesn’t match the value given here when the spacing file is loaded, then
137 %% all scalable distances will be rescaled appropriately.
138 \greconffactor=17%
139
140 %How thick the lines should be. When set equal to \greconffactor (above) the staff lines will be their default thickness. Larger numbers result in thicker lines.
141 \grechangestafflinethickness{17}%
142
143 % the additional width of the additional lines (compared to the width of the glyph they're associated with)
144 \grechangedim{additionallineswidth}{0.14584 cm}{scalable}%
145 % width of the additional lines, used only for the custos (maybe should depend on the width of the custos...)
146 % the width is the one for the custos at end of lines, the line for custos in the middle of a score is the same
147 % multiplied by 2.
148 \grechangedim{additionalcustoslineswidth}{0.09114 cm}{scalable}%
149 % null space
150 \grechangedim{zerowidthspace}{0 cm}{scalable}%
151 % space between glyphs in the same element
152 \grechangedim{interglyphspace}{0.06927 cm plus 0.00363 cm minus 0.00363 cm}{scalable}%
153 % space between an alteration (flat or natural) and the next glyph
154 \grechangedim{alterationspace}{0.07747 cm}{scalable}%
155 % space between a clef and a flat (for clefs with flat)
156 \grechangedim{clefflatspace}{0.05469 cm plus 0.00638 cm minus 0.00638 cm}{scalable}%
157 % space before a choral sign
158 \grechangedim{beforelowchoralsignspace}{0.04556 cm plus 0.00638 cm minus 0.00638 cm}{scalable}%
159 % when bolshifts are enabled, minimal space between a clef at the beginning of the line and a leading alteration glyph (should be larger than clefflatspace so that a flatted clef can be distinguished from a flat which is part of the first glyph on a line, but also smaller than spaceafterlineclef, the distance from the clef to the first notes)
160 \grechangedim{beforealterationspace}{0.1 cm}{scalable}%
161 % half-space between elements
162 \grechangedim{halfspace}{0.03463 cm plus 0.00091 cm minus 0.00182 cm}{scalable}%
163 % space between elements
164 \grechangedim{interelementspace}{0.06927 cm plus 0.00182 cm minus 0.00363 cm}{scalable}%
165 % larger space between elements
166 \grechangedim{largerspace}{0.10938 cm plus 0.01822 cm minus 0.00911 cm}{scalable}%
167 % space between elements in ancient notation
168 \grechangedim{nabcinterelementspace}{0.06927 cm plus 0.00182 cm minus 0.00363 cm}{scalable}%
169 % larger space between elements in ancient notation
170 \grechangedim{nabclargerspace}{0.10938 cm plus 0.01822 cm minus 0.00911 cm}{scalable}%
171 % space between elements which has the size of a note
172 \grechangedim{glyphspace}{0.21877 cm plus 0.01822 cm minus 0.01822 cm}{scalable}%
173 % space before in-line custos
174 \grechangedim{spacebeforeinlinecustos}{0.10938 cm plus 0.01822 cm minus 0.00911 cm}{scalable}%
175 % space before end-of-line custos
176 \grechangedim{spacebeforeeolcustos}{0.23 cm plus 0 cm minus 0 cm}{scalable}%
177 % space before punctum mora and augmentum duplex
178 \grechangedim{spacebeforesigns}{0.050 cm plus 0.004 cm minus 0.004 cm}{scalable}%
179 % when a syllable is shifted left because of a preceding punctum mora, moraadjustmentbar is
180 % also added. Use it to make the syllable a bit further from the punctum mora if you want.
181 % This version is the general case.
182 \grechangedim{moraadjustment}{0.050 cm}{scalable}%
183 % This version is for when punctum mora is before a bar.
184 \grechangedim{moraadjustmentbar}{0.050 cm}{scalable}%
185 % space after punctum mora and augmentum duplex
186 \grechangedim{spaceaftersigns}{0.08203 cm plus 0.0082 cm minus 0.0082 cm}{scalable}%
187 % space after a clef at the beginning of a line
188 \grechangedim{spaceafterlineclef}{0.23 cm plus 0 cm minus 0.01367 cm}{scalable}%
189 % space after a clef at the beginning of a line, when the clef and first note are vertically distant
190 \grechangedim{shortspaceafterlineclef}{0.18 cm plus 0 cm minus 0.01367 cm}{scalable}%
191 % minimal space between notes of different words
192 \grechangedim{interwordspacenotes}{0.29 cm plus 0.05 cm minus 0.05 cm}{scalable}%
193 % minimal space between notes of the same syllable.
194 \grechangedim{intersyllablespacenotes}{0.24 cm}{scalable}%
195 % stretching added in the case where the text of two syllables of the same word are
196 % separated with an automatic hyphen
197 \grechangedim{intersyllablespacestretchhyphen}{0cm plus 0.05cm}{scalable}%
198 % minimal space between letters of different words.
199 \grechangedim{interwordspacetext}{0.17 cm plus 0.05 cm minus 0.05 cm}{scalable}%
200 % Versions of interword spaces for euouae blocks
201 \grechangedim{interwordspacenotes@euouae}{0.23 cm plus 0.1 cm minus 0.05 cm}{scalable}%
202 \grechangedim{interwordspacetext@euouae}{0.21 cm plus 0.1 cm minus 0.05 cm}{scalable}%
203 % versions of note spaces when the first note of the second syllable is an alteration
204 % those are used in euouae blocks
205 \grechangedim{interwordspacenotes@alteration}{0.1 cm plus 0.07 cm minus 0.01 cm}{scalable}%
206 \grechangedim{intersyllablespacenotes@alteration}{0.1 cm}{scalable}%
207 % space between notes of a bivirga or trivirga
208 \grechangedim{bitrivirspace}{0.06927 cm plus 0.00182 cm minus 0.00546 cm}{scalable}%
209 % space between notes of a bistropha or tristrophae
210 \grechangedim{bitristrospace}{0.06927 cm plus 0.00182 cm minus 0.00546 cm}{scalable}%
211 %
212 %%%%%%%%%%%%%%%%%%%%
213 % puncta inclinata %
214 %%%%%%%%%%%%%%%%%%%%
215 %
216 % space between two descending punctum inclinatum
217 \grechangedim{punctuminclinatumshift}{-0.03918 cm plus 0.0009 cm minus 0.0009 cm}{scalable}%
218 % space between two descending or ascending punctum inclinatum at the unison
219 \grechangedim{punctuminclinatumunisonshift}{0.05286 cm plus 0.00728 cm minus 0.00455 cm}{scalable}%
220 % space before descending puncta inclinata
221 \grechangedim{beforepunctainclinatashift}{0.05286 cm plus 0.00728 cm minus 0.00455 cm}{scalable}%
222 % space between a descending punctum inclinatum and a punctum inclinatum deminutus
223 \grechangedim{punctuminclinatumanddebilisshift}{-0.02278 cm plus 0.0009 cm minus 0.0009 cm}{scalable}%
224 % space between two punctum inclinatum deminutus
225 \grechangedim{punctuminclinatumdebilisshift}{-0.00728 cm plus 0.0009 cm minus 0.0009 cm}{scalable}%
226 % space between descending puncta inclinata, larger ambitus (range=3rd)
227 \grechangedim{punctuminclinatumbigshift}{0.07565 cm plus 0.0009 cm minus 0.0009 cm}{scalable}%
228 % space between descending puncta inclinata, larger ambitus (range=4th or 5th)
229 \grechangedim{punctuminclinatummaxshift}{0.17865 cm plus 0.0009 cm minus 0.0009 cm}{scalable}%
230 % space between two ascending punctum inclinatum
231 \grechangedim{ascendingpunctuminclinatumshift}{-0.03918 cm plus 0.0009 cm minus 0.0009 cm}{scalable}%
232 % space between a punctum inclinatum and a punctum inclinatum deminutus, ascending
233 \grechangedim{ascendingpunctuminclinatumanddebilisshift}{-0.02278 cm plus 0.0009 cm minus 0.0009 cm}{scalable}%
234 % space between ascending puncta inclinata, larger ambitus (range=3rd)
235 \grechangedim{ascendingpunctuminclinatumbigshift}{0.07565 cm plus 0.0009 cm minus 0.0009 cm}{scalable}%
236 % space between ascending puncta inclinata, larger ambitus (range=4th or 5th)
237 \grechangedim{ascendingpunctuminclinatummaxshift}{0.17865 cm plus 0.0009 cm minus 0.0009 cm}{scalable}%
238 % space between a punctum inclinatum and a no-bar glyph one pitch below
239 \grechangedim{descendinginclinatumtonobarshift}{-0.00073 cm plus 0.00363 cm minus 0.00363 cm}{scalable}%
240 % space between a punctum inclinatum and a no-bar glyph two pitches below
241 \grechangedim{descendinginclinatumtonobarbigshift}{0.10927 cm plus 0.00363 cm minus 0.00363 cm}{scalable}%
242 % space between a punctum inclinatum and a no-bar glyph three or four pitches below
243 \grechangedim{descendinginclinatumtonobarmaxshift}{0.23927 cm plus 0.00363 cm minus 0.00363 cm}{scalable}%
244 % space between a punctum inclinatum and a no-bar glyph one pitch above
245 \grechangedim{ascendinginclinatumtonobarshift}{-0.02473 cm plus 0.00363 cm minus 0.00363 cm}{scalable}%
246 % space between a punctum inclinatum and a no-bar glyph two pitches above
247 \grechangedim{ascendinginclinatumtonobarbigshift}{0.04427 cm plus 0.00363 cm minus 0.00363 cm}{scalable}%
248 % space between a punctum inclinatum and a no-bar glyph three or four pitches above
249 \grechangedim{ascendinginclinatumtonobarmaxshift}{0.12927 cm plus 0.00363 cm minus 0.00363 cm}{scalable}%
250 % space between two descending punctum inclinatum glyphs in an ascent
251 \grechangedim{descendingpunctuminclinatumascendingshift}{-0.07918 cm plus 0.0009 cm minus 0.0009 cm}{scalable}%
252 % space between two ascending punctum inclinatum glyphs in an descent
253 \grechangedim{ascendingpunctuminclinatumdescendingshift}{-0.07918 cm plus 0.0009 cm minus 0.0009 cm}{scalable}%
254 % Space after after a non-punctum inclinatum and before the upright punctum inclinatum
255 \grechangedim{uprightpunctuminclinatumshift}{0.05286 cm plus 0.00728 cm minus 0.00455 cm}{scalable}%
256
257 %
258 %%%%%%%%
259 % bars %
260 %%%%%%%%
261 %
262 % bars inside syllables
263 %
264 \grechangedim{bar@virgula}{0.1823 cm plus 0.22787 cm minus 0.00469 cm}{scalable}%
265 % short versions are when the notes are very low (virgula, minima, and minimis only)
266 \grechangedim{bar@virgula@short}{0.13 cm plus 0.05 cm minus 0.00469 cm}{scalable}%
267 \grechangedim{bar@minimis}{0.1823 cm plus 0.22787 cm minus 0.00469 cm}{scalable}%
268 \grechangedim{bar@minimis@short}{0.12 cm plus 0.05 cm minus 0.00469 cm}{scalable}%
269 \grechangedim{bar@minima}{0.1823 cm plus 0.22787 cm minus 0.00469 cm}{scalable}%
270 \grechangedim{bar@minima@short}{0.12 cm plus 0.05 cm minus 0.00469 cm}{scalable}%
271 \grechangedim{bar@minor}{0.1823 cm plus 0.22787 cm minus 0.00469 cm}{scalable}%
272 % dominican bars
273 \grechangedim{bar@dominican}{0.1823 cm plus 0.22787 cm minus 0.00469 cm}{scalable}%
274 \grechangedim{bar@maior}{0.1823 cm plus 0.22787 cm minus 0.00469 cm}{scalable}%
275 \grechangedim{bar@finalis}{0.1823 cm plus 0.22787 cm minus 0.00469 cm}{scalable}%
276 % space added before the final divisio finalis (old bar spacing algorithm only)
277 \grechangedim{bar@finalfinalis}{0.29169 cm plus 0.07292 cm minus 0.27345 cm}{scalable}%
278 %
279 % bars having their own syllable, with text associated (new bar spacing algorithm only)
280 % plus or minus here will trigger some problems
281 %
282 \grechangedim{bar@virgula@standalone@text}{0.2323 cm}{scalable}%
283 \grechangedim{bar@virgula@standalone@text@short}{0.19 cm}{scalable}%
284 \grechangedim{bar@minimis@standalone@text}{0.2323 cm}{scalable}%
285 \grechangedim{bar@minimis@standalone@text@short}{0.19 cm}{scalable}%
286 \grechangedim{bar@minima@standalone@text}{0.2323 cm}{scalable}%
287 \grechangedim{bar@minima@standalone@text@short}{0.19 cm}{scalable}%
288 \grechangedim{bar@minor@standalone@text}{0.2323 cm}{scalable}%
289 \grechangedim{bar@dominican@standalone@text}{0.2323 cm}{scalable}%
290 \grechangedim{bar@maior@standalone@text}{0.2323 cm}{scalable}%
291 \grechangedim{bar@finalis@standalone@text}{0.2323 cm}{scalable}%
292 % actual space before divisio finalis, not additional one
293 \grechangedim{bar@finalfinalis@standalone@text}{0.29169 cm}{scalable}%
294 %
295 % bars having their own syllable, with no text associated (new bar spacing algorithm only)
296 %
297 \grechangedim{bar@virgula@standalone@notext}{0.2 cm}{scalable}%
298 \grechangedim{bar@virgula@standalone@notext@short}{0.19 cm}{scalable}%
299 \grechangedim{bar@minimis@standalone@notext}{0.2 cm}{scalable}%
300 \grechangedim{bar@minimis@standalone@notext@short}{0.19 cm}{scalable}%
301 \grechangedim{bar@minima@standalone@notext}{0.2 cm}{scalable}%
302 \grechangedim{bar@minima@standalone@notext@short}{0.19 cm}{scalable}%
303 \grechangedim{bar@minor@standalone@notext}{0.2323 cm}{scalable}%
304 \grechangedim{bar@dominican@standalone@notext}{0.2323 cm}{scalable}%
305 \grechangedim{bar@maior@standalone@notext}{0.2323 cm}{scalable}%
306 \grechangedim{bar@finalis@standalone@notext}{0.2323 cm}{scalable}%
307 \grechangedim{bar@finalfinalis@standalone@notext}{0.29169 cm}{scalable}%
308 %
309 % minimal space between letters of different syllable texts for text around bars
310 % (new bar spacing algorithm only)
311 \grechangedim{interwordspacetext@bars}{0.18 cm}{scalable}%
312 % minimal space between letters of different syllable texts for text around bars,
313 % euouae context
314 \grechangedim{interwordspacetext@bars@euouae}{0.18 cm}{scalable}%
315 \grechangedim{interwordspacetext@bars@notext}{0.19 cm}{scalable}%
316 % minimal space between letters of different syllable texts for text around bars,
317 % euouae context
318 \grechangedim{interwordspacetext@bars@notext@euouae}{0.18 cm}{scalable}%
319 % rubber length that will be added around bars in new bar spacing algorithm
320 \grechangedim{bar@rubber}{0 cm plus 0.025 cm minus 0.025 cm}{scalable}%
321 % in the case of an alteration after a bar, the alteration will "protrude" left of this value
322 % think of it as some kind of moraadjustmentbar
323 \grechangedim{alterationadjustmentbar}{0.07 cm}{scalable}%
324 % additional space that will appear around bars that are preceded by a custos and followed by a key.
325 \grechangedim{spacearoundclefbars}{0.03645 cm plus 0.00455 cm minus 0.0009 cm}{scalable}%
326 % space between the text of previous syllable and text associated with a bar (old bar spacing algorithm only)
327 \grechangedim{textbartextspace}{0.24611 cm plus 0.13672 cm minus 0.04921 cm}{scalable}%
328 % minimal space between a note and a bar (old algorithm only)
329 \grechangedim{notebarspace}{0.31903 cm plus 0.27345 cm minus 0.02824 cm}{scalable}%
330 % Maximum offset between a bar and its associated text when the text goes left of the bar (new bar spacing algorithm only)
331 \grechangedim{maxbaroffsettextleft}{0.3 cm}{scalable}%
332 % Same as maxbaroffsettextleft when text goes right of the bar
333 \grechangedim{maxbaroffsettextright}{0.15 cm}{scalable}%
334 % Maximum offset between a no-bar (i.e. something like `text()` in gabc) and its associated text when the text goes left of the no-bar (new bar spacing algorithm only)
335 \grechangedim{maxbaroffsettextleft@nobar}{12 cm}{scalable}%
336 % Same as maxbaroffsettextleft@nobar when text goes right of the no-bar
337 \grechangedim{maxbaroffsettextright@nobar}{12 cm}{scalable}%
338 % Space between the two bars of a divisio finalis
339 % Maximum offset between a bar and its associated text when the text goes left of the bar and the bar terminates a line (i.e. something line `text(::z)` in gabc) (new bar spacing algorithm only)
340 \grechangedim{maxbaroffsettextleft@eol}{0.0 cm}{scalable}%
341 % Same as maxbaroffsettextleft@eol when text goes right of the bar
342 \grechangedim{maxbaroffsettextright@eol}{0 cm}{scalable}%
343 \grechangedim{divisiofinalissep}{0.1094 cm}{scalable}%
344 %
345 %
346 % maximal space between two syllables for which we consider a dash is not needed
347 \grechangedim{maximumspacewithoutdash}{0 cm}{scalable}%
348 % an extensible space for the beginning of lines
349 \grechangedim{afterclefnospace}{0 cm plus 0.27345 cm minus 0 cm}{scalable}%
350 % space between the initial and the beginning of the score
351 \grechangedim{afterinitialshift}{0.2 cm}{scalable}%
352 % space before the initial
353 \grechangedim{beforeinitialshift}{0.2 cm}{scalable}%
354 % when bolshifts are enabled, minimum space between beginning of line and first syllable text
355 \grechangedim{minimalspaceatlinebeginning}{0.05 cm}{scalable}%
356 % space to force the initial width to. Ignored when 0.
357 \grechangedim{manualinitialwidth}{0 cm}{scalable}%
358 % minimum width of the initial. Ignored when manualinitialwidth is non-zero.
359 \grechangedim{minimalinitialwidth}{0 cm}{scalable}%
360 % distance to move the initial up by
361 \grechangedim{initialraise}{0 cm}{scalable}%
362 % Space between lines in the annotation
363 \grechangedim{annotationseparation}{0.05 cm}{scalable}%
364 % Amount to raise (positive) or lower (negative) the annotations from the default position
365 \grechangedim{annotationraise}{-0.2 cm}{scalable}%
366 % Space between lines in the commentary
367 \grechangedim{commentaryseparation}{0.05 cm}{scalable}%
368 % Amount to raise (positive) or lower (negative) the commentary from the default position (base line of bottom commentary aligned with top line of staff)
369 \grechangedim{commentaryraise}{0.2 cm}{scalable}%
370 % space at the beginning of the lines if there is no clef
371 \grechangedim{noclefspace}{0.1 cm}{scalable}%
372 % space around a clef change
373 \grechangedim{clefchangespace}{0.27345 cm plus 0.14584 cm minus 0.01367 cm}{scalable}%
374 % When \gre@clivisalignment is 2, this distance is the maximum length of the consonants after vowels for which the clivis will be aligned on its center.
375 \grechangedim{clivisalignmentmin}{0.3 cm}{scalable}%
376
377 %%%%%%%%%%%%%%%%%%
378 % vertical spaces
379 %%%%%%%%%%%%%%%%%%
380
381 % the amount to shift down:
382 % (a) low choral signs that are not lower than the note, regardless of whether
383 % it's on a line or in a space
384 % (b) high choral signs and low choral signs that are lower than the note which
385 % are in a space
386 \grechangedim{choralsigndownshift}{0.00911 cm}{scalable}%
387 % the amount to shift up:
388 % (a) high choral signs and low choral signs that are lower than the note which
389 % are on a line
390 \grechangedim{choralsignupshift}{0.04556 cm}{scalable}%
391 % the space for the translation
392 \grechangedim{translationheight}{0.5 cm}{scalable}%
393 %the space above the lines
394 \grechangedim{spaceabovelines}{0 cm}{scalable}%
395 % this counter is the threshold above which we start accounting notes above
396 % lines for additional space above lines. For instance with a threshold of
397 % 2 and a staff of 4 lines, notes with a pitch of k and l will not interfere
398 % with the space above lines
399 \grechangecount{additionaltopspacethreshold}{2}%
400 % same, for notes taken into account for alt text vertical position
401 \grechangecount{additionaltopspacealtthreshold}{0}%
402 % same, for notes taken into account for nabc vertical position
403 \grechangecount{additionaltopspacenabcthreshold}{4}%
404 %the space between the lines and the bottom of the text
405 \grechangedim{spacelinestext}{0.60617 cm}{scalable}%
406 % the per-note additional space between lines and the bottom of the text
407 \grechangedim{noteadditionalspacelinestext}{0.14413 cm}{scalable}%
408 % this counter is the number of low notes which will add on additional distance
409 \grechangecount{noteadditionalspacelinestextthreshold}{2}%
410 %the space beneath the text
411 \grechangedim{spacebeneathtext}{0 cm}{scalable}%
412 % height of the text above the note line
413 \grechangedim{abovelinestextraise}{-0.1 cm}{scalable}%
414 % height that is added at the top of the lines if there is text above the lines (it must be bigger than the text for it to be taken into consideration)
415 \grechangedim{abovelinestextheight}{0.3 cm}{scalable}%
416 % an additional shift you can give to the brace above the bars if you don't like it
417 \grechangedim{braceshift}{0 cm}{scalable}%
418 % a shift you can give to the accentus above the curly brace
419 \grechangedim{curlybraceaccentusshift}{-0.05 cm}{scalable}%
420 % the amount to shift the over slur up
421 \grechangedim{overslurshift}{0.05000 cm}{scalable}%
422 % the amount to shift the under slur up
423 \grechangedim{underslurshift}{0.01000 cm}{scalable}%
424 % shift for a horizontal episema over a note in a low position in the space
425 \grechangedim{overhepisemalowshift}{0.02287 cm}{scalable}%
426 % shift for a horizontal episema over a note in a high position in the space
427 \grechangedim{overhepisemahighshift}{0.10066 cm}{scalable}%
428 % shift for a horizontal episema under a note in a low position in the space
429 \grechangedim{underhepisemalowshift}{0.02763 cm}{scalable}%
430 % shift for a horizontal episema under a note in a high position in the space
431 \grechangedim{underhepisemahighshift}{0.10981 cm}{scalable}%
432 % shift for a horizontal episema in the middle of a space
433 \grechangedim{hepisemamiddleshift}{0.07206 cm}{scalable}%
434 % shift for a vertical episema in a low position in the space
435 \grechangedim{vepisemalowshift}{-0.01262 cm}{scalable}%
436 % shift for a vertical episema in a high position in the space
437 \grechangedim{vepisemahighshift}{0.06634 cm}{scalable}%
438 % shift for a punctum mora for a note on a line
439 \grechangedim{linepunctummorashift}{-0.06314 cm}{scalable}%
440 % shift for a punctum mora for a note in a space
441 \grechangedim{spacepunctummorashift}{-0.02013 cm}{scalable}%
442 % shift for a punctum mora for the second note (in a space) of a pes with ambitus one
443 \grechangedim{spaceamonepespunctummorashift}{0.00183 cm}{scalable}%
444 % shift for a punctum mora for the second note in a porrectus, on a line
445 \grechangedim{lineporrectuspunctummorashift}{0.04575 cm}{scalable}%
446 % shift for a punctum mora for the second note in a porrectus, in a space
447 \grechangedim{spaceporrectuspunctummorashift}{0.00000 cm}{scalable}%
448 % shift for a rare sign
449 \grechangedim{raresignshift}{0.18302 cm}{scalable}%
450 % up-shift for a bracket
451 \grechangedim{bracketupshift}{0.03000 cm}{scalable}%
452 % down-shift for a bracket
453 \grechangedim{bracketdownshift}{0.04000 cm}{scalable}%
454 %
455
456 %%%%%%%%%%
457 %% Line spacings
458 %%%%%%%%%%
459 \grechangedim{parskip}{1pt plus 1pt}{scalable}%
460 \grechangedim{lineskip}{0pt plus 1pt}{scalable}%
461 \grechangedim{baselineskip}{55pt plus 5pt minus 5pt}{scalable}%
462 \grechangedim{lineskiplimit}{0pt}{scalable}%