14

How to write treble symbol in Tex? http://en.wikipedia.org/wiki/Clef

9

You may find the musixtex package useful. In the documentation you find more complex examples on how to use this package. Here just two small examples.

First

\documentclass{article}
\usepackage{musixtex}

\begin{document}
\begin{music}
\trebleclef 
\end{music}
\end{document}

First result

First result

Second

\documentclass{article}
\usepackage{musixtex}

\begin{document}
\begin{music}
\startextract
\Notes\ibbbu0h0\qb0e\tbbbu0\qb0e\tbbu0\qb0e\tbu0\qb0e\enotes
\zendextract
\end{music}
\end{document}

Second result

Second result

EDIT: Note that \begin{music} \end{music} is not necessary, I just recommend it, for it gives your code more structure and therefore makes it more readable.

Have Fun!

  • 2
    It is not necessary to enclose \trebleclef with the {music} environment. – clemens Jan 1 '13 at 19:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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