Musixtex 中需要对两种大小音符的和弦进行音符横线调整,基本代码如下:
\documentclass{report}
\usepackage{musixtex}
%\usepackage[top=3cm, bottom=2.8cm, left=2.5cm, right=2.5cm, marginparwidth=0cm, marginparsep=0cm, headheight=13.6pt, a4paper]{geometry}
\begin{document}
\begin{music}
\font\A=phvb8t at 8pt% added for letter type.
\font\B=phvb8t at 9pt% added for letter type.
\parindent0mm
\setinterstaff{1}{14}%Distancia entre sistemas del pentagrama
\def\writebarno{\A\the\barno}
\scale{1.0}
\startbarno=1
\instrumentnumber{2}
%\setstaffs{1}{2}
\nobarnumbers
\startpiece
\notes\hsk&\hsk\en
\notes\isluru1p\zq g{\stemlength{6}\tinynotesize\off{-0.05\elemskip} \qu{j}}&\isluru2l\Ibl1ll{5}\qb1{l}\en
\notes\qsk&\qb1{k}\en
\notes\zq{j}\curve {3}33\tslur1m{\stemlength{6}\tinynotesize\off{-0.2\elemskip} \ql{m}}&\qb1{l}\en
\notes\qsk&\tqb1o\en
\notes\isluru4o\ibl3l{-5}\zqb3{l}{\stemlength{6}\tinynotesize\off{-0.2\elemskip} \qb3{o}}&\ibl0l{-5}\qb0{n}\en
\notes\zqb3{j}{\stemlength{6}\tinynotesize\off{-0.2\elemskip} \tqb3{m}}&\qb0{l}\en
\notes\zq g\tslur4p{\stemlength{6}\tinynotesize\off{-0.03\elemskip} \qu{j}}&\qb0{j}\curve {8}77\tslur2g\tqb0g\en
\endpiece
\end{music}
\end{document}
答案1
我删除了很多括号,还有一些空格。我改变了一些元素的顺序。我定义了一个 hsize,看看 musixflx 之后水平位置是否合适。
\documentclass{report}%
\usepackage{musixtex}%
%\usepackage[top=3cm, bottom=2.8cm, left=2.5cm, right=2.5cm, marginparwidth=0cm, marginparsep=0cm, headheight=13.6pt, a4paper]{geometry}
\begin{document}%
\begin{music}%
\font\A=phvb8t at 8pt% added for letter type.
\font\B=phvb8t at 9pt% added for letter type.
\hsize=60mm%
\parindent0mm
\setinterstaff{1}{14}%Distancia entre sistemas del pentagrama
\def\writebarno{\A\the\barno}%
\scale{1.0}
\startbarno=1
\instrumentnumber{2}%
%\setstaffs{1}{2}
\nobarnumbers
\startpiece
\notes\hsk&\hsk\en%
\notes\ibsluru1i\zq g\tinynotesize\off{0.3\elemskip}\stemlength{6}%
\qu j\normalnotesize\off{-0.3\elemskip}\sk\zq j\tinynotesize%\curve333
\stemlength{6}\tslur1g\ql m\normalnotesize\sk &\isluru2l\Ibl1ll3\qb1{lkl}\tqb1o\en%
%
\notes\isluru4o\ibl3l{-5}\zqb3l\tinynotesize\qb3o\normalnotesize%\stemlength{6}
\tbl3\zqb3j\tinynotesize\qb3m\normalnotesize\tbsluru4o\zq g\stemlength{6}\tinynotesize\off{0.3\elemskip}\qu j\sk&\ibl0l{-5}\qb0{n}\qb0{l}\qb0{j}\curve677\tslur2g\tqb0g\en
\endpiece
\end{music}%
\end{document}
答案2
删除里面的空格后{\stemlength{6}\tinynotesize\off{-0.02\elemskip}\qb3{o}}
,梁就没问题了,但还需要进行垂直线调整。部分解决的代码如下:
\documentclass{report}
\usepackage{musixtex}
%\usepackage[top=3cm, bottom=2.8cm, left=2.5cm, right=2.5cm, marginparwidth=0cm, marginparsep=0cm, headheight=13.6pt, a4paper]{geometry}
\begin{document}
\begin{music}
\font\A=phvb8t at 8pt% added for letter type.
\font\B=phvb8t at 9pt% added for letter type.
\parindent0mm
\setinterstaff{1}{14}%Distancia entre sistemas del pentagrama
\def\writebarno{\A\the\barno}
\scale{1.0}
\startbarno=1
\instrumentnumber{2}
%\setstaffs{1}{2}
\nobarnumbers
\startpiece
\notes\hsk&\hsk\en
\notes\isluru1p\zq g{\stemlength{6}\tinynotesize\off{-0.05\elemskip} \qu{j}}&\isluru2l\Ibl1ll{5}\qb1{l}\en
\notes\qsk&\qb1{k}\en
\notes\zq{j}\curve {3}33\tslur1m{\stemlength{6}\tinynotesize\off{-0.2\elemskip} \ql{m}}&\qb1{l}\en
\notes\qsk&\tqb1o\en
\notes\isluru4o\ibl3l{-5}\zqb3{l}{\stemlength{6}\tinynotesize\off{-0.02\elemskip}\qb3{o}}&\ibl0l{-5}\qb0{n}\en
\notes\zqb3{j}{\stemlength{6}\tinynotesize\off{-0.01\elemskip}\tqb3{m}}&\qb0{l}\en
\notes\zq{g}\tslur4p{\stemlength{6}\tinynotesize\off{-0.03\elemskip} \qu{j}}&\qb0{j}\curve {8}77\tslur2g\tqb0g\en
\endpiece
\end{music}
\end{document}