使用 Musixtex 进行发夹垂直对齐

使用 Musixtex 进行发夹垂直对齐

需要调整发夹的垂直对齐。基本代码如下:

\documentclass[tikz,border=3mm]{standalone}
\usepackage[top=3cm, bottom=2.8cm, left=3.5cm, right=2.5cm, marginparwidth=0cm, marginparsep=0cm, headheight=13.6pt, a4paper]{geometry}
\usepackage[T1]{fontenc}
\usepackage{polyglossia}
\setmainlanguage{spanish}

\usepackage{musixtex} 

\begin{document}
\centering
\hspace*{2.5cm}\begin{music}
    %\input musixps
    \font\A=phvb8t at 10pt% added for letter type.
    \setclef1\treble % Clave de Sol para el Instrumento 1
    \nobarnumbers % Omite la numeración en los compases
    \nostartrule % Inicia sin barra vertical
    \startextract %inicia el fragmento musical
    \NOTEs\icresc\zchar{13}{\pp}\wh{c}\en\bar
    \NOTEs\zchar{13}{\p}\wh{d}\en\bar
    \NOTEs\zchar{13}{\mp}\wh{e}\en\bar
    \NOTEs\zchar{13}{\mf}\wh{f}\en\bar
    \NOTEs\zchar{13}{\f}\wh{g}\tcresc\en\bar
    \NOTEs\zchar{13}{\ff}\wh{j}\en\bar
    \NOTEs\icresc\zchar{13}{\f}\wh{g}\en\bar
    \NOTEs\zchar{13}{\mf}\wh{f}\en\bar
    \NOTEs\zchar{13}{\mp}\wh{e}\en\bar
    \NOTEs\zchar{13}{\p}\wh{d}\en\bar
    \NOTEs\zchar{13}{\pp}\wh{c}\tdecresc\en
    \endextract % Se finaliza el fragmento musical
 \end{music}
 
\end{document}

当前输出如下: 当前的

期望的输出如下: 期望

答案1

我不确定官方认可的方法,但\raisebox可以提供所需的修复。

\documentclass[tikz,border=3mm]{standalone}
\usepackage[top=3cm, bottom=2.8cm, left=3.5cm, right=2.5cm, marginparwidth=0cm, marginparsep=0cm, headheight=13.6pt, a4paper]{geometry}
\usepackage[T1]{fontenc}
\usepackage{polyglossia}
\setmainlanguage{spanish}

\usepackage{musixtex} 

\begin{document}
\centering
\hspace*{2.5cm}\begin{music}
    %\input musixps
    \font\A=phvb8t at 10pt% added for letter type.
    \setclef1\treble % Clave de Sol para el Instrumento 1
    \nobarnumbers % Omite la numeración en los compases
    \nostartrule % Inicia sin barra vertical
    \startextract %inicia el fragmento musical
    \NOTEs\icresc\zchar{13}{\pp}\wh{c}\en\bar
    \NOTEs\zchar{13}{\p}\wh{d}\en\bar
    \NOTEs\zchar{13}{\mp}\wh{e}\en\bar
    \NOTEs\zchar{13}{\mf}\wh{f}\en\bar
    \NOTEs\zchar{13}{\f}\wh{g}\raisebox{-12pt}{\tcresc}\en\bar
    \NOTEs\zchar{13}{\ff}\wh{j}\en\bar
    \NOTEs\icresc\zchar{13}{\f}\wh{g}\en\bar
    \NOTEs\zchar{13}{\mf}\wh{f}\en\bar
    \NOTEs\zchar{13}{\mp}\wh{e}\en\bar
    \NOTEs\zchar{13}{\p}\wh{d}\en\bar
    \NOTEs\zchar{13}{\pp}\wh{c}\raisebox{-12pt}{\tdecresc}\en
    \endextract % Se finaliza el fragmento musical
 \end{music}
 
\end{document}

在此处输入图片描述

答案2

只需更换你的台词

\NOTEs\zchar{13}{\f}\wh{g}\tcresc\en\bar

\NOTEs\zchar{13}{\pp}\wh{c}\tdecresc\en

这样:

\NOTEs\zchar{13}{\f}\wh{g}\zcharnote N{\tcresc}\en\bar

和这个:

\NOTEs\zchar{13}{\pp}\wh{c}\zcharnote N{\tdecresc}\en

根据 musixdoc.pdf 第 10.7 章第 53 页

相关内容