![在 Gregorio 中自动对连祷文和诗句进行多行对齐](https://linux22.com/image/347945/%E5%9C%A8%20Gregorio%20%E4%B8%AD%E8%87%AA%E5%8A%A8%E5%AF%B9%E8%BF%9E%E7%A5%B7%E6%96%87%E5%92%8C%E8%AF%97%E5%8F%A5%E8%BF%9B%E8%A1%8C%E5%A4%9A%E8%A1%8C%E5%AF%B9%E9%BD%90%20.png)
我正在尝试使用 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”时,链接中的文件就可以正常工作了!