![使用 Musixtex 和 amsmath 包的短休止符](https://linux22.com/image/465757/%E4%BD%BF%E7%94%A8%20Musixtex%20%E5%92%8C%20amsmath%20%E5%8C%85%E7%9A%84%E7%9F%AD%E4%BC%91%E6%AD%A2%E7%AC%A6.png)
需要使用 Musixtex 中的 amsmath 包来实现短休止符(因为需要用到数学)。基本代码如下:
\documentclass{article}
\usepackage[a4paper]{geometry}
\usepackage[T1]{fontenc}
%\usepackage[no-math]{fontspec}
\usepackage{polyglossia}
\setmainlanguage{spanish}
\usepackage{tikz}
\usepackage{musixtex}
\usepackage{amsmath}
\usepackage{float}
\usepackage{xcolor}
\usepackage{colortbl}
\usepackage{tabularx} %Tabla con ajuste de ancho
\usepackage{multicol}
\usepackage{multirow,booktabs,setspace,caption}
\xdefinecolor{gray-undar}{RGB}{52,52,52}%0-0-100
\xdefinecolor{red-undar}{RGB}{179,35,79}%341-80-70
\begin{document}
\begin{center}
\begin{table}[H]
\caption{Notas con sus equivalentes silencios}
\label{tab:NotasConSilencios}
\begin{tikzpicture}
\node[transform shape,scale=0.6]{
\centering\centering\renewcommand*{\arraystretch}{2.1}
\begin{tabular}{!{\color{red-undar}\vrule}m{4.9cm}!{\color{red-undar}\vrule}m{2.5cm}!{\color{red-undar}\vrule}m{3.7cm}!{\color{red-undar}\vrule}m{3.9cm}!{\color{red-undar}\vrule}m{3.5cm}!{\color{red-undar}\vrule}}
\arrayrulecolor{red-undar}\hline
\centering\bfseries\sffamily Name & \centering\bfseries\sffamily Note & \centering\bfseries\sffamily Rest & \centering\bfseries\sffamily Equivalents & \\
\hline
Breve (Double Whole Note) & \begin{music}
\nostartrule
\setclefsymbol1{\empty}
\setlines{1}{0}
\let\breve=\relax
\startextract
\hskip0.1\elemskip
\NOtes\breve{c}\zcn{b}{\hspace*{-0.3cm}ó}\qsk\wqq{c}\en
\zendextract
\end{music} & \begin{music}
\nostartrule
\setclefsymbol1{\empty}
\vskip4.1\elemskip
\startextract
\hskip0.1\elemskip
\NOTEs\hsk\PAuse\en
\zendextract
\end{music} & Two Whole Notes & \begin{music}
\nostartrule
\setclefsymbol1{\empty}
\setlines{1}{0}
\startextract
\hskip0.1\elemskip
\NOtes\wh{c}\hqsk\wh{c}\en
\zendextract
\end{music} \\
\hline
\end{tabular}};
\end{tikzpicture}
\end{table}
\end{center}
\end{document}
期望的输出如下:
注意:我们需要同时使用两个包:musixtex 和 amsmath
答案1
最简单的方法是\breve{c}
用
\zbreve{c}\sk
因为\zbreve
中没有命令amsmath
。此外,请通过在行末添加 来改进您的音乐代码%
。对于以}
或 数字结尾的所有行,这是必要的。并避免在行末使用空格。