需要显示一个矩形来填补缺失的注释,起始代码如下:
\documentclass[tikz,border=3mm]{standalone}
\usepackage[T1]{fontenc}
\usepackage{polyglossia}
\setmainlanguage{spanish}
\usepackage{tikz}
\usetikzlibrary{arrows.meta, calc}
\tikzstyle{every picture}+=[remember picture]
\usepackage{pifont} % Para usar simbolos ding
\usepackage{musicography}
\usepackage{musixtex}
\input{musixlyr}
\input {musixcho}
\input {musixdat}%fecha
\input {musixfll}
\input {musixgre}%gregoriano
\input {musixper}%percusión
\input {musixppff}
\input {musixstr}
\input {musixvbm} % experimental vectorized beams
\input {musixdbr} % lineas de barras punteadas, discontinuas y arbitrariamente discontinuas
\input {musixbm} % compatibilidad garrapateas con ganchos o con barras
\input {musixbbm} % compatibilidad semi garrapateas con ganchos o con barras
\begin{document}
Fill in the missing notes in the following Ionian modes:\\
G Ionian\\
\begin{music}
\parindent10mm
\sepbarrules
\instrumentnumber{1}
\setstaffs1{1}
\setclef1\bass
\nobarnumbers
\nostartrule
\startpiece%
\notes\wh{G*IJ*L*N}\en
\Endpiece
\end{music}
\end{document}
答案1
以下是一种方法:
- 画一个
\framebox
- 向左移动
- 将其向下移动。
宏\fbx
可让您在一个地方更改所需参数:在那里调整 3 个参数。我从切换到\notes
为\NOtes
框提供更多空间。还对您的\notes
行进行了一些重写。
使用pt
's 作为长度很简单。为了获得更大的灵活性,您可能希望使用 musixtex 自身定义的数量,即某些基础数据的倍数。
\documentclass{article}
% removing, what's not needed here
%\usepackage[T1]{fontenc}
%\usepackage{polyglossia}
%\setmainlanguage{spanish}
% \usepackage{tikz}
% \usetikzlibrary{arrows.meta, calc}
% \tikzstyle{every picture}+=[remember picture]
\usepackage{musixtex}
%\input{musixlyr}
%\input {musixcho}
%\input {musixdat}%fecha
%\input {musixfll}
%\input {musixgre}%gregoriano
%\input {musixper}%percusión
%\input {musixppff}
%\input {musixstr}
%\input {musixvbm} % experimental vectorized beams
%\input {musixdbr} % lineas de barras punteadas, discontinuas y arbitrariamente discontinuas
%\input {musixbm} % compatibilidad garrapateas con ganchos o con barras
%\input {musixbbm} % compatibilidad semi garrapateas con ganchos o con barras
% ~~~ adjust -4pt, 20pt and 30pt as needed ~~~
\newcommand\fbx[0]{\raisebox{-4pt}{%shifting everything down
\loffset{1}{%shifting content to the left
\framebox(20pt,30pt){}}}}% the desired empty field
\begin{document}
Fill in the missing notes in the following Ionian modes:\\
G Ionian\\
\begin{music}
\parindent10mm
\sepbarrules
\instrumentnumber{1}
\setstaffs1{1}
\setclef1\bass
\nobarnumbers
\nostartrule
\startpiece%
% \notes\wh{G*IJ*L*N}\en
\NOtes\wh{G}\fbx% making a bit more room
\wh{IJ}\fbx\wh{L}\fbx\wh{N}%\en
\en
\Endpiece
\end{music}
\end{document}