Skip to content

Commit

Permalink
Two-line initial information
Browse files Browse the repository at this point in the history
Added a note to the documentation indicating that a two line initial must have two line breaks in the gabc
Added error at end of score if a score with a two line initial ends without finding the end of the second line.
  • Loading branch information
rpspringuel committed Mar 10, 2016
1 parent c204040 commit cd714a6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/Command_Index_User.tex
Original file line number Diff line number Diff line change
Expand Up @@ -787,6 +787,8 @@ \subsubsection{Text Elements}
\#1 & number & The number of lines required by the initial. If \texttt{0}, the score will have no separated initial.\\
\end{argtable}

\textbf{Nota Bene:} As currently implemented, you cannot set an initial which is larger than 2 lines and in order to do so you must set manual line breaks in the gabc for the first two lines.

\macroname{\textbackslash gresetmodenumbersystem}{\#1}{gregoriotex-main.tex}
Sets the number system used for the mode number.

Expand Down
5 changes: 5 additions & 0 deletions tex/gregoriotex-main.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1249,6 +1249,11 @@

%macro called at the end of a score
\def\GreEndScore{%
\ifnum\gre@biginitial=1\relax%
\ifnum\gre@knownline<3\relax%
\gre@error{Score ended before finding the end\MessageBreak of the second line of a 2-line initial. Make sure\MessageBreak you have at least two manual line breaks in \MessageBreak your gabc}%
\fi%
\fi%
\global\gre@lastoflinecount=0\relax %
\gre@useautoeolcustos%
\GreEndEUOUAE{}%
Expand Down

0 comments on commit cd714a6

Please sign in to comment.