LaTeX 中的两个 lilypond 命令

LaTeX 中的两个 lilypond 命令

使用旧版本的 LaTeX (Slackware-14.2 + lilypond-2.18.2),我可以在一行中添加多个 lilypondfile。使用 lilypond-2.22.1 和 texlive-2021.21048 则无法正常工作。我怀疑问题出在 lilypond-book 上。

非工作型​​ lytex 示例:

Note c \lilypond[fragment,notime]{c'}, note d \lilypond[fragment,notime]{d'}

错误是:

! Undefined control sequence.
l.302 }, note d \lilypond
                         [fragment,notime]{d'}

答案1

解决方案是破坏 lilypond 文件/或内联文本,如下所示

Note c \lilypond[fragment,notime]{c'},
note d \lilypond[fragment,notime]{d'}

表格也是一样。lytex 示例:

Not working. Without break. Was working with previous versions of LaTex / lilypond
\begin{tabular}{c|c}
   \lilypond[fragment,relative=2,staffsize=26]{c} & Not working: \lilypond[fragment,relative=2,staffsize=26]{d}  \\
\end{tabular}

Working - with break
\begin{tabular}{c|c}
   \lilypond[fragment,relative=2,staffsize=26]{c} &
   \lilypond[fragment,relative=2,staffsize=26]{d}  \\ % break to work.
\end{tabular}

相关内容