GeneralMusixtex staff breaking issue

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Gabaux
Posts: 2
Joined: Thu Dec 19, 2013 10:48 pm

Musixtex staff breaking issue

Post by Gabaux »

Hi,

I am quite new to MusixTeX and I try to typeset my first piece.

Here is my LaTeX input (I stripped all non relevant details):

Code: Select all

\documentclass[a4paper,12pt]{article}
\usepackage{musixtex}   

\begin{document}

\generalmeter\meterC
\noindent \startpiece
\notes\qa{cegj}\enotes
\bar
\notes\qa{hgfd}\enotes
\bar
\notes\Qqbu hhgf\qa{eg}\enotes
\bar
\notes\Qqbu higf\qa{ef}\enotes
\bar
\notes\Qqbu fdgf\qa{fg}\enotes
\bar
\notes\qa{hifg}\enotes
\bar
\notes\Qqbu fegf\qa{ig}\enotes
\bar
\notes\qa{cegj}\enotes
\bar
\notes\Qqbu hhgf\qa{eg}\enotes
\bar
\notes\Qqbu hhgf\qa{eg}\enotes
\bar
\notes\Qqbu higf\qa{ef}\enotes
\bar
\notes\qa{cegj}\enotes
\bar
\notes\qa{hgfd}\enotes
\endpiece

\end{document}  
I have the following problems:

1. The first staff is shorter than the others.

2. All staves have 4 bars, though I think there would be room for a fifth.

3. The actual length of the staves is different and the lengths of the bars are different, too.

I am sure that I miss something very simple. Could anybody give me some hints?

Thanks in advance,

Gabaux

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Musixtex staff breaking issue

Post by cgnieder »

Here is what I get (with an up to date TeX Live 2013) with only one modification of your code (I changed \noindent into \setlength\parindent{0pt} and added the {music} environment to keep this setting local.

I compiled with the following sequence (I called the file test.tex):
  1. pdflatex test
  2. musixflx test.mx1
  3. pdflatex test

Code: Select all

\documentclass[a4paper,12pt]{article}
\usepackage{musixtex}   

\begin{document}

\begin{music}
  \setlength\parindent{0pt}%
  \generalmeter\meterC
  \startpiece
    \notes\qa{cegj}\enotes
    \bar
    \notes\qa{hgfd}\enotes
    \bar
    \notes\Qqbu hhgf\qa{eg}\enotes
    \bar
    \notes\Qqbu higf\qa{ef}\enotes
    \bar
    \notes\Qqbu fdgf\qa{fg}\enotes
    \bar
    \notes\qa{hifg}\enotes
    \bar
    \notes\Qqbu fegf\qa{ig}\enotes
    \bar
    \notes\qa{cegj}\enotes
    \bar
    \notes\Qqbu hhgf\qa{eg}\enotes
    \bar
    \notes\Qqbu hhgf\qa{eg}\enotes
    \bar
    \notes\Qqbu higf\qa{ef}\enotes
    \bar
    \notes\qa{cegj}\enotes
    \bar
    \notes\qa{hgfd}\enotes
  \endpiece
\end{music}

\end{document}
Regards
Attachments
musixtex.png
musixtex.png (13.98 KiB) Viewed 3031 times
site moderator & package author
Post Reply