From cd714a64d020708b032b559a3472727b9c1921b0 Mon Sep 17 00:00:00 2001 From: "Br. Samuel Springuel" Date: Wed, 9 Mar 2016 20:22:32 -0500 Subject: [PATCH] Two-line initial information 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. --- doc/Command_Index_User.tex | 2 ++ tex/gregoriotex-main.tex | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/doc/Command_Index_User.tex b/doc/Command_Index_User.tex index 329274a3e..4c7380a69 100644 --- a/doc/Command_Index_User.tex +++ b/doc/Command_Index_User.tex @@ -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. diff --git a/tex/gregoriotex-main.tex b/tex/gregoriotex-main.tex index e03de4f76..b6925a23e 100644 --- a/tex/gregoriotex-main.tex +++ b/tex/gregoriotex-main.tex @@ -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{}%