Debian Codegraph @

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