GeneralMusixTeX: Problem with adding lyrics. Unexpected questionmarks.

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
MimiKLM
Posts: 8
Joined: Wed Jun 27, 2018 6:35 pm

MusixTeX: Problem with adding lyrics. Unexpected questionmarks.

Post by MimiKLM »

Hi,

I have an unexpected behavior. When I latex my tex file

Code: Select all

latex.exe test.tex
and then do the pdfout of dvi

Code: Select all

dvipdfm -p a4 test.dvi
I see what I don't want to see.

I'm expecting lyrics in the first extract and no lyrics in the second. I have lyrics in first as I want, but in the extract just underneath the first one I see the question marks.

CODE:

Code: Select all

\documentclass[a4paper,12pt]{article}
\usepackage[T1]{polski}
\usepackage[cp1250]{inputenc}
\usepackage{pslatex}
\usepackage{graphicx}
\usepackage{framed}
\usepackage{musixtex}
\usepackage[top=1cm,left=2cm,right=2cm,bottom=1cm]{geometry}

\include{musixlyr}

\begin{document}

\begin{music}
\setlength\parindent{0pt}
\generalsignature{2}
% use smallest available size:
\smallmusicsize
\renewcommand*\writebarno{\textit{\the\barno}}
\systemnumbers
\setlyrics{text}{%
   Ra-dosť krás-na isk-ra bo-hov E-ly-zej-ská dcé-ra ty, o-má-me-ní
  }
\assignlyrics1{text}
\startextract
\NOtes\qu{ffgh}\enotes
\barre
\NOTes\qu{hgfe}\enotes
\barre
\NOtes\qu{ddef}\enotes
\barre
\NOTes\qup f\cu e\hu e\enotes
\barre
\NOtes\qu{ffgh}\enotes
\endextract
\end{music}

\begin{music}
\setlength\parindent{0pt}
\generalsignature{2}
% use smallest available size:
\smallmusicsize
\renewcommand*\writebarno{\textit{\the\barno}}
\systemnumbers
%\setlyrics{text}{
%   Ra-dosť krás-na isk-ra bo-hov E-ly-zej-ská dcé-ra ty, o-má-me-ní
%  }
%\assignlyrics1{text}
\startextract
\NOtes\qu{ffgh}\enotes
\barre
\NOTes\qu{hgfe}\enotes
\barre
\NOtes\qu{ddef}\enotes
\barre
\NOTes\qup f\cu e\hu e\enotes
\barre
\NOtes\qu{ffgh}\enotes
\endextract
\end{music}

\end{document}
RESULT:
tst.PNG
tst.PNG (17.77 KiB) Viewed 2356 times
What I've forgotten about?

Recommended reading 2024:

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

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

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

MusixTeX: Problem with adding lyrics. Unexpected questionmarks.

Post by Stefan Kottwitz »

Hi Mimi,

welcome to the forum!

I think you better set \assignlyrics1{} without argument instead of doing nothing, so the lyrics will be empty. When I tested your example with that, it came out without question marks.

Stefan
LaTeX.org admin
MimiKLM
Posts: 8
Joined: Wed Jun 27, 2018 6:35 pm

MusixTeX: Problem with adding lyrics. Unexpected questionmarks.

Post by MimiKLM »

Many thanks, it works!
Post Reply