> In the first inclusion, the \grecommentary is not rendered and the
> neumes are shifted to the right.

The problem lies here:

{\large{Antiphona ad tertiam}}
\includeant{Prophetæ predicaverunt}{a--prophetae-predicaverunt}{i\
}{d}{Gen 42, 10}

this code makes the title (the \large{} part) be in the same paragraph
as the score, which messes everything up. I believe a few things
disappear because of the lua callback eating more or less empty lines.
Anyway, for me this clearly is an error in the main TeX file (which
obviously doesn't want titles and scores to be in the same paragraph),
not in Gregorio. The attached patch fixes the errors of the document, I
let you decide if you want to integrate it or change it to print errors
instead (I have no strong opinion on that)...

Thank you,
-- 
Elie
diff --git a/tex/gregoriotex-main.tex b/tex/gregoriotex-main.tex
index 48e6000..a5b06f3 100644
--- a/tex/gregoriotex-main.tex
+++ b/tex/gregoriotex-main.tex
@@ -598,7 +598,7 @@
 }%
 
 \def\grecommentary#1{%
-  \vbox{\hfill\hbox{#1}}%
+  \ifhmode\par\fi\vbox{\hfill\hbox{#1}}\par %
   \relax %
 }
 
@@ -1008,6 +1008,8 @@
 % #5 is if 1 if we have space above the staff
 % #6 is the point-and-click filename
 \def\GreBeginScore#1#2#3#4#5#6{%
+  % scores must be new paragraphs!
+  \ifhmode\par\fi %
   \global\setluatexattribute\gre@attr@glyph@id{0}%
   \xdef\gre@gabcname{#6}%
   \global\let\gre@save@englishcentering\gre@lyriccentering\relax % DEPRECATED
_______________________________________________
Gregorio-devel mailing list
[email protected]
https://mail.gna.org/listinfo/gregorio-devel

Répondre à