Musixtex 中的 DC al Fine

Musixtex 中的 DC al Fine

需要用DC al Fine复制下面的例子,代码如下:

\documentclass[tikz,border=3mm]{standalone}
\usepackage[T1]{fontenc}
\usepackage{polyglossia}
\setmainlanguage{spanish}

\usepackage{musixtex} 

\newlength{\musicwidth}%new
\setlength{\musicwidth}{0.95\textwidth}%new, can be set for each instance of a figure environment 


\begin{document}
Write the following musical example as it would actually be played without the D.C. al Fine or Fine.\\

\begin{music}
    \font\A=phvb8t at 8pt% added for letter type.
    \instrumentnumber{1}
    \setclefsymbol{1}{\empty}%
    \nostartrule
    \generalmeter{\meterfrac{2}4} %Compás en 3/4
    \setlines{1}{1}
    %\hsize=\musicwidth
    \nobarnumbers
    \sepbarrules%
    \startpiece% i
    \Notes\qu {ii}\en\bar%
    \Notes\ibu0i0\qb0{i}\tbu0\qb0{i}\qu {i}\en\bar%
    \notes\itied0i\hu i\sk\sk\en\bar\setdoubleBAR
    \systemnumbers
    \znotes\ccn{12}{\hspace*{-0.7cm}\boxit{\bf $4$}}\en
    \znotes\zcn{q}{\hspace*{+0.3cm}\bf\A Fine}\en
    \notes\ttie0\hu i\sk\sk\en\bar
    \NOtes\qp\qu i\en\bar
    \NOtes\qp\qu i\en\bar
    \NOtes\qu i\ibu0i0\qb0{i}\tbu0\qb0{i}\en\bar
    \systemnumbers
    \znotes\ccn{12}{\hspace*{-0.5cm}\boxit{\bf $8$}}\en
    \NOTes\qu {ii}\en
    \znotes\ccn{s}{\hspace*{-1.3cm}\bf\A D.C. al Fine}\en
    \setdoublebar\endpiece
 \end{music}
 
 \begin{music}
    \instrumentnumber{1}
    \setclefsymbol{1}{\empty}%
    \nostartrule
    \generalmeter{\meterfrac{2}4} %Compás en 3/4
    \setlines{1}{1}
    %\hsize=\musicwidth
    \nobarnumbers
    \sepbarrules%
    \startpiece% i
    \NOtes\sk\en\bar%
    \NOtes\sk\en\bar%
    \NOtes\sk\en\bar
    \systemnumbers
    \znotes\ccn{12}{\hspace*{-0.7cm}\boxit{\bf $4$}}\en
    \NOtes\sk\en\bar
    \NOtes\sk\en\bar
    \NOtes\sk\en\alaligne\bar
    \NOtes\sk\en\bar
    \systemnumbers
    \znotes\ccn{12}{\hspace*{-1.2cm}\boxit{\bf $8$}}\en
    \NOtes\sk\en\bar
    \NOtes\sk\en\bar
    \NOtes\sk\en\bar
    \NOtes\sk\en\bar
    \NOtes\sk\en
    \setdoublebar\endpiece
 \end{music}

\end{document}

当前输出为: 当前的

预期的输出是(请注意,需要为 DC al Fine 文本配置字体,并对齐第二个五线谱): 预期的

答案1

这是部分答案。\parindent0pt删除第一行的缩进。每次都必须在之后写入\begin{music}。此外,\bf $8$不会导致粗体 8。如果您说\bf 8,则确实如此。

您想要 Helvetica Italic 的 DC al Fine 还是标准音乐字体?

答案2

更新后的代码如下:

\documentclass[tikz,border=3mm]{standalone}
\usepackage[T1]{fontenc}
\usepackage{polyglossia}
\setmainlanguage{spanish}

\usepackage{musixtex} 

\newlength{\musicwidth}%new
\setlength{\musicwidth}{0.95\textwidth}%new, can be set for each instance of a figure environment 


\begin{document}
Write the following musical example as it would actually be played without the D.C. al Fine or Fine.\\

\begin{music}
    \font\A=phvb8t at 8pt% added for letter type.
    \instrumentnumber{1}
    \setclefsymbol{1}{\empty}%
    \nostartrule
    \generalmeter{\meterfrac{2}4} %Compás en 3/4
    \setlines{1}{1}
    %\hsize=\musicwidth
    \nobarnumbers
    \sepbarrules%
    \parindent0pt
    \startpiece% i
    \Notes\qu {ii}\en\bar%
    \Notes\ibu0i0\qb0{i}\tbu0\qb0{i}\qu {i}\en\bar%
    \notes\itied0i\hu i\sk\sk\en\bar\setdoubleBAR
    \systemnumbers
    \znotes\ccn{12}{\hspace*{-0.7cm}\boxit{\bf $4$}}\en
    \znotes\zcn{q}{\hspace*{+0.3cm}\bf\A Fine}\en
    \notes\ttie0\hu i\sk\sk\en\bar
    \NOtes\qp\qu i\en\bar
    \NOtes\qp\qu i\en\bar
    \NOtes\qu i\ibu0i0\qb0{i}\tbu0\qb0{i}\en\bar
    \systemnumbers
    \znotes\ccn{12}{\hspace*{-0.5cm}\boxit{\bf $8$}}\en
    \NOTes\qu {ii}\en
    \znotes\ccn{s}{\hspace*{-1.3cm}\bf\A D.C. al Fine}\en
    \setdoublebar\endpiece
 \end{music}
 
 \begin{music}
    \instrumentnumber{1}
    \setclefsymbol{1}{\empty}%
    \nostartrule
    \generalmeter{\meterfrac{2}4} %Compás en 3/4
    \setlines{1}{1}
    %\hsize=\musicwidth
    \nobarnumbers
    \sepbarrules%
    \parindent0pt
    \startpiece% i
    \NOtes\sk\en\bar%
    \NOtes\sk\en\bar%
    \NOtes\sk\en\bar
    \znotes\ccn{12}{\hspace*{-1.1cm}\boxit{\bf 4}}\en
    \NOtes\sk\en\bar
    \NOtes\sk\en\bar
    \NOtes\sk\en\alaligne%\bar
    \NOtes\sk\en\bar
    \znotes\ccn{12}{\hspace*{-1.05cm}\boxit{\bf 8}}\en
    \NOtes\sk\en\bar
    \NOtes\sk\en\bar
    \NOtes\sk\en\bar
    \NOtes\sk\en\bar
    \NOtes\sk\en
    \setdoubleBAR\endpiece
 \end{music}

\end{document}

输出如下(注意 DC 的字母类型应该用斜体): 输出

相关内容