Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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!
share|improve this question
1  
I obtain the quaver when I process your code. What LaTeX system are you using? –  Gonzalo Medina Apr 10 '12 at 21:36
1  
The same with me (quite recent texlive). Are there any errors/warnings in the log file? –  mbork Apr 10 '12 at 21:37
1  
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! –  dr-jan 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). –  doncherry Apr 10 '12 at 23:01
add comment

1 Answer

up vote 3 down vote accepted

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! :-)

share|improve this answer
    
in my case, it was tex-cm-super, instead of texlive-cm-super –  user16710 Jul 18 '12 at 5:17
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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