在 Gregorio 中自動對齊連禱文和詩句

在 Gregorio 中自動對齊連禱文和詩句

我正在嘗試使用 Gregorio 使用 Latex 建立多行檔案。我已經使用我的系統成功編譯了樂譜,因此就 Gregorio 安裝而言,一切運作良好。

在嘗試找到創建多行樂譜的解決方案時,我遇到了這個“如何”。我將原始程式碼複製到各個文件中並嘗試編譯,但遇到了一個我無法弄清楚的錯誤。我已經在 LaTeX 中完成了一些宏編程,但我不太了解 LuaLaTeX 和所有其他可用編譯器之間的差異。我相信這是相關的,因為輸出日誌的一部分顯示“\pdfsavepos”不受支援”。以下是輸出:

 This is LuaTeX, Version 0.95.0 (TeX Live 2016) 
 system commands enabled.
(./litany.tex
LaTeX2e <2016/03/31>
Babel <3.9r> and hyphenation patterns for 1 language(s) loaded.
(/usr/local/texlive/2016/texmf-dist/tex/latex/base/report.cls
Document Class: report 2014/09/29 v1.4h Standard LaTeX document class
(/usr/local/texlive/2016/texmf-dist/tex/latex/base/size10.clo))
(/usr/local/texlive/2016/texmf-dist/tex/latex/geometry/geometry.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/ifpdf.sty)
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/ifvtex.sty)
(/usr/local/texlive/2016/texmf-dist/tex/generic/ifxetex/ifxetex.sty))
(/usr/local/texlive/2016/texmf-dist/tex/lualatex/gregoriotex/gregoriotex.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/xcolor/xcolor.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics-cfg/color.cfg)
(/usr/local/texlive/2016/texmf-dist/tex/lualatex/luatex-def/luatex.def
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/infwarerr.sty)
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/ltxcmds.sty)))
(/usr/local/texlive/2016/texmf-dist/tex/latex/oberdiek/kvoptions.sty
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/etexcmds.sty
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/ifluatex.sty))))
(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics-cfg/graphics.cfg)))
(/usr/local/texlive/2016/texmf-dist/tex/luatex/luatexbase/luatexbase.sty
(/usr/local/texlive/2016/texmf-dist/tex/luatex/ctablestack/ctablestack.sty))
(/usr/local/texlive/2016/texmf-dist/tex/luatex/luaotfload/luaotfload.sty(using 
write cache: /Users/myusername/Library/texlive/2016/texmf-var/luatex-cache/gen
eric)(using read cache: /usr/local/texlive/2016/texmf-var/luatex-cache/generic 
/Users/myusername/Library/texlive/2016/texmf-var/luatex-cache/generic)tput: No value for $TERM and no -T specified

luaotfload | main : initialization completed in 0.633 seconds)
(/usr/local/texlive/2016/texmf-dist/tex/luatex/luamplib/luamplib.sty)
(/usr/local/texlive/2016/texmf-dist/tex/generic/xstring/xstring.sty
(/usr/local/texlive/2016/texmf-dist/tex/generic/xstring/xstring.tex))
(/usr/local/texlive/2016/texmf-dist/tex/luatex/gregoriotex/gregoriotex-main.tex
(litany.gaux)
(/usr/local/texlive/2016/texmf-dist/tex/luatex/gregoriotex/gregoriotex-spaces.t
ex)(compiling luc: /usr/local/texlive/2016/texmf-var/luatex-cache/generic/fonts
/otl/greciliae.luc)(load luc: /Users/myusername/Library/texlive/2016/texmf-var
/luatex-cache/generic/fonts/otl/greciliae.luc)
(/usr/local/texlive/2016/texmf-dist/tex/luatex/gregoriotex/gregoriotex-chars.te
x)
(/usr/local/texlive/2016/texmf-dist/tex/luatex/gregoriotex/gregoriotex-signs.te
x)
(/usr/local/texlive/2016/texmf-dist/tex/luatex/gregoriotex/gregoriotex-syllable
.tex)
(/usr/local/texlive/2016/texmf-dist/tex/luatex/gregoriotex/gregoriotex-symbols.
tex(compiling luc: /usr/local/texlive/2016/texmf-var/luatex-cache/generic/fonts
/otl/greextra.luc)(load luc: /Users/myusername/Library/texlive/2016/texmf-var/
luatex-cache/generic/fonts/otl/greextra.luc))
(/usr/local/texlive/2016/texmf-dist/tex/luatex/gregoriotex/gsp-default.tex)
(/usr/local/texlive/2016/texmf-dist/tex/luatex/gregoriotex/gregoriotex-nabc.tex
))) (/usr/local/texlive/2016/texmf-dist/tex/latex/oberdiek/zref.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/oberdiek/zref-base.sty
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/kvdefinekeys.sty)
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/luatex-loader.sty
(/usr/local/texlive/2016/texmf-dist/scripts/oberdiek/oberdiek.luatex.lua)))
(/usr/local/texlive/2016/texmf-dist/tex/latex/oberdiek/auxhook.sty)))
(/usr/local/texlive/2016/texmf-dist/tex/latex/oberdiek/zref-savepos.sty

/usr/local/texlive/2016/texmf-dist/tex/latex/oberdiek/zref-savepos.sty:59: Pack
age zref Error: \pdfsavepos is not supported.
(zref)                It is provided by pdfTeX (1.40) or XeTeX.

See the zref package documentation for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.59 }{}
      %
? 
Process aborted

我相信這與 Gregorio 需要使用 LuaLaTeX 相關,而 \pdfsavepos 在那裡不受支援。有什麼修復的想法嗎?謝謝!

答案1

我忘記確保支援包是最新的。我更新了 TeXLive Utility,但沒有解決問題;然而,當我進入軟體包並重新安裝「oberdiek」時,連結中的檔案運作得很好!

相關內容