LaTeX forum ⇒ GeneralMusixTeX: Problem with adding lyrics. Unexpected questionmarks. Topic is solved

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

MusixTeX: Problem with adding lyrics. Unexpected questionmarks.

Postby MimiKLM » Wed Jun 27, 2018 7:11 pm

Hi,

I have an unexpected behavior. When I latex my tex file
  1. latex.exe test.tex
and then do the pdfout of dvi
  1. 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:

  1. \documentclass[a4paper,12pt]{article}
  2. \usepackage[T1]{polski}
  3. \usepackage[cp1250]{inputenc}
  4. \usepackage{pslatex}
  5. \usepackage{graphicx}
  6. \usepackage{framed}
  7. \usepackage{musixtex}
  8. \usepackage[top=1cm,left=2cm,right=2cm,bottom=1cm]{geometry}
  9.  
  10. \include{musixlyr}
  11.  
  12. \begin{document}
  13.  
  14. \begin{music}
  15. \setlength\parindent{0pt}
  16. \generalsignature{2}
  17. % use smallest available size:
  18. \smallmusicsize
  19. \renewcommand*\writebarno{\textit{\the\barno}}
  20. \systemnumbers
  21. \setlyrics{text}{%
  22. Ra-dosť krás-na isk-ra bo-hov E-ly-zej-ská dcé-ra ty, o-má-me-ní
  23. }
  24. \assignlyrics1{text}
  25. \startextract
  26. \NOtes\qu{ffgh}\enotes
  27. \barre
  28. \NOTes\qu{hgfe}\enotes
  29. \barre
  30. \NOtes\qu{ddef}\enotes
  31. \barre
  32. \NOTes\qup f\cu e\hu e\enotes
  33. \barre
  34. \NOtes\qu{ffgh}\enotes
  35. \endextract
  36. \end{music}
  37.  
  38. \begin{music}
  39. \setlength\parindent{0pt}
  40. \generalsignature{2}
  41. % use smallest available size:
  42. \smallmusicsize
  43. \renewcommand*\writebarno{\textit{\the\barno}}
  44. \systemnumbers
  45. %\setlyrics{text}{
  46. % Ra-dosť krás-na isk-ra bo-hov E-ly-zej-ská dcé-ra ty, o-má-me-ní
  47. % }
  48. %\assignlyrics1{text}
  49. \startextract
  50. \NOtes\qu{ffgh}\enotes
  51. \barre
  52. \NOTes\qu{hgfe}\enotes
  53. \barre
  54. \NOtes\qu{ddef}\enotes
  55. \barre
  56. \NOTes\qup f\cu e\hu e\enotes
  57. \barre
  58. \NOtes\qu{ffgh}\enotes
  59. \endextract
  60. \end{music}
  61.  
  62. \end{document}


RESULT:

tst.PNG
tst.PNG (17.77 KiB) Viewed 107 times


What I've forgotten about?

User avatar
Stefan Kottwitz
Site Admin
Posts: 8946
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Thu Jun 28, 2018 10:10 am

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
Site admin

MimiKLM
Posts: 8
Joined: Wed Jun 27, 2018 6:35 pm

Postby MimiKLM » Fri Jun 29, 2018 12:56 pm

Many thanks, it works!


Return to “General”

Who is online

Users browsing this forum: No registered users and 12 guests