9

I tried to make some music excerpts with two instruments using musixtex. I've got some alignment problems between the two instruments.

Here's an example:

\documentclass{standalone}

\usepackage{musixtex}

\begin{document}
  \begin{music}
    \parindent10mm
    \instrumentnumber{1} % a single instrument
    \setstaffs1{2} % with two staffs
    \setclef{1}{60} % clef de fa (6) en 1, clef de sol (0) en 2
    \startextract % starting real score
      \NOtes \zcharnote{-6}{IV} \hl M|\zhu{f h}\hu j\en
      \NOtes \zcharnote{-6}{V} \hl N|\zhu{d g}\hu i\en
      \NOtes \zcharnote{-6}{I} \hu J|\zhu{e g}\hu j\en
      \setdoublebar
    \endextract
   \end{music}
\end{document}

Here is what I get image

As we can see, the bass is not aligned with the tremble. How can I get a better alignment?

1 Answer 1

14

Remove the blank spaces before \hl and \hu.

a

\documentclass{standalone}

\usepackage{musixtex}

\begin{document}
    \begin{music}
        \parindent10mm
        \instrumentnumber{1} % a single instrument
        \setstaffs1{2} % with two staffs
        \setclef{1}{60} % clef de fa (6) en 1, clef de sol (0) en 2
        \startextract % starting real score
        \NOtes \zcharnote{-6}{IV}\hl M|\zhu{f h}\hu j\enotes
        \NOtes \zcharnote{-6}{V}\hl N|\zhu{d g}\hu i\enotes
        \NOtes \zcharnote{-6}{I}\hu J|\zhu{e g}\hu j\enotes
        \setdoublebar
        \endextract
    \end{music}
\end{document}
3
  • 2
    I not understand the difference between the question and your answer, but I like it.
    – Sebastiano
    Sep 6, 2021 at 20:35
  • 1
    @Sebastiano Look at the vertical alignment of the upper and lower last notes. Sep 6, 2021 at 20:59
  • 1
    Ah now I have understood ☹️😟
    – Sebastiano
    Sep 6, 2021 at 21:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.