# textcomp's \textmusicalnote doesn't work: "cannot open encoding file for reading"

I'd like to put a music note as an icon next to notes in my document. I discovered the \textmusicalnote symbol in the textcomp package, but it doesn't seem to render.

I suspect I'm doing something obviously wrong, but I can't see what right now.

I'm using the memoir class, but in an effort to create a minimal document I've tried using the standard article class. Here's my document:

\documentclass[a4paper]{article}
\usepackage{textcomp}
\begin{document}

Here is a note:

\textmusicalnote

or not, as the case may be.

\end{document}


Nothing appears at all where I'm expecting to see the quaver.

Is there a better way to do this?

Edit: The end of my log file shows:

!pdfTeX error: pdflatex (file cm-super-ts1.enc): cannot open encoding file for reading ==> Fatal error occurred, no output PDF file produced!

• I obtain the quaver when I process your code. What LaTeX system are you using? Apr 10 '12 at 21:36
• The same with me (quite recent texlive). Are there any errors/warnings in the log file? Apr 10 '12 at 21:37
• The end of my log file shows:!pdfTeX error: pdflatex (file cm-super-ts1.enc): cannot open encoding file for reading ==> Fatal error occurred, no output PDF file produced! Apr 10 '12 at 21:49
• I tried to match the title of your question to what's being discussed here. Although a general question about inserting musical notes would certainly be interesting, this seems to be more about solving the problem with \textmusicalnote. I also included the information from your comment in the question; it's usually preferable to have such important information right with the question. Editing the question is a legitimate way of answering a comment (you could add a note @userXYZ: See my edit if you like). Apr 10 '12 at 23:01

It looks like I didn't have enough fonts installed. I ran this command as root

yum install 'texlive-cm-super*'


to install the complete cm-super font details.

Now I can see music! :-)

• in my case, it was tex-cm-super, instead of texlive-cm-super
– user16710
Jul 18 '12 at 5:17

pkg install tex-dvipsk


I was getting the same error on Ubuntu.

Running sudo apt-cache search tex | grep super lead me to the package cm-super.

Simply running sudo apt install cm-super allowed me to create the PDF as expected.

I believe this error came after an auto-update of all my machine's packages, so that package must have slipped through the net.