Musixtex 中需要配置乐谱最后一行左对齐(需要将最后一小节从红线向左移动到橙线左右),基本代码如下:
\documentclass[aspectratio=169]{beamer}
\usepackage[T1]{fontenc}
\usepackage[spanish]{babel}
\usepackage{musixtex}
\begin{document}
\begin{frame}[t]
\frametitle{?`Qué es \underline{Musixtex}?}
\centering
\begin{music}
%\let\addspace\relax
\parindent0mm
\nobarnumbers
\instrumentnumber{1} % a single instrument
\setstaffs1{1} % with one staffs
\generalmeter{\meterC}
%\startextract
\startpiece
\NOTEs\wh{c}\en\bar%
\NOTes\hl{g}\hu{e}\en\bar%
\NOtes\qa{fghi}\en%\bar
\alaligne
\Notes\cl{qpon}\cup m\ccu l\clp k\ccl j\en
\setdoubleBAR
\endpiece%\endextract
\end{music}
\end{frame}
\end{document}
只是为了澄清一下。反馈后解决的代码如下:
\documentclass[aspectratio=169]{beamer}
\usepackage[T1]{fontenc}
\usepackage[spanish]{babel}
\usepackage{musixtex}
\begin{document}
\begin{frame}[t]
\frametitle{?`Qué es \underline{Musixtex}?}
\centering
\begin{music}
%\let\addspace\relax
\parindent0mm
\nobarnumbers
\instrumentnumber{1} % a single instrument
\setstaffs1{1} % with one staffs
\generalmeter{\meterC}
%\startextract
\startpiece
\NOTEs\wh{c}\en\bar%
\NOTes\hl{g}\hu{e}\en\bar%
\NOtes\qa{fghi}\en%\bar
\endpiece
\hsize70mm\hoffset0mm\parindent0mm
\startpiece
\Notes\cl{qpon}\cup m\ccu l\clp k\ccl j\en
\setdoubleBAR
\endpiece%\endextract
\end{music}
\end{frame}
\end{document}
答案1
用类似以下内容替换您的\alaligne
行:
\endpiece
\hsize100mm\hoffset0mm\parindent0mm
\startpiece
...