I am not an expert with Latex at all and I am just happy to be able to use it — to some extent. After quite some time, I decided to continue working with it and I saw that all my Gregorian chants do not compile anymore. The following error message is shown:
(./gregoriotex.tex[\directlua]:1: attempt to call a nil value (field 'check_version')
stack traceback:
[\directlua]:1: in main chunk.
l.63 ...x.check_version(\number\greinternalversion)}
I am using MiKTeX Console V. 2.9.7206 and made all updates on Dec/18 2019. The Gregorio package I am using is V.5.2.1.
this is my Code around the Gregorio TeX file:
% !TEX TS-program = lualatex
% !TEX encoding = UTF-8
\documentclass[12pt]{article}
\usepackage{fontspec}
\usepackage{graphicx}
\usepackage{geometry}
\geometry{a4paper}
\geometry{left=1cm, right=1cm, top=1cm, bottom=1cm}
\usepackage{gregoriotex}
\begin{document}
\begin{center}\begin{huge}\textsc{Credo}\end{huge}\end{center}
\setspaceafterinitial{2.2mm plus 0em minus 0em}
\setspacebeforeinitial{2.2mm plus 0em minus 0em}
\def\greinitialformat#1{{\fontsize{43}{43}\selectfont #1}}
\redlines
\gresetfirstlineaboveinitial{\small \textsc{\textbf{III.}}}{\small \textsc\textbf{III.}}
\commentary{{\small \emph{XVII. s.}}}
\definecolor{Red}{rgb}{0.9,0.3,0.3}
\definecolor{Black}{rgb}{0.0,0.0,0.0}
\includescore{CredoIII.tex}
\end{document}
I'm not sure if it really makes sense to paste the whole GABC file here. Instead I uploaded the file to pastebin: https://pastebin.com/UBKfuhT3 If i should still paste it here, I can do, of course...
I already looked for this issue here and elsewhere and I found some references to microtype (e.g. microtype error with lualatex: "attempt to call field warning a nil value"), but I cannot figure out if or how this relates to my issue or how I could use it to solve my issue…
Can anyone help?
.gabc
file from 2012 that still works (and can insert it as an example for your question if you like), but I had to make some changes to the.tex
file where I include the score.