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'm setting a document that includes some music; I'm using lilypond-book for the musical examples. However, there are some points where the author has inserted a musical symbol in the text; I'm using MusiXTeX for those bits. Notes and accidentals are easy, but I can't find a way to put in just a clef sign. For example, the author says

The G sol re ut clef . . . is made thus, <treble-clef>.

I'd like to have a treble clef right in the text where it says <treble-clef>.

share|improve this question
add comment

2 Answers

up vote 8 down vote accepted

Found my own answer after help from Seamus:

The G sol re ut clef . . . is made thus, \begin{music}\trebleclef\end{music}.

That is, of course, after including \usepackage{musixtex} in the header.

share|improve this answer
add comment

There are various packages that allow you to include musical symbols. See p.88 et seq. of the LaTeX comprehensive symbols list.

Weirdly, I'm not actually sure the above document contains the "clef" symbols you want. (I don't actually know the terminology well enough to know if it's there) But if it isn't there, I don't know where you'll find it...

Your best bet might be to try and get musixtex to work inline... Searching musixtex documentation for "inline" gets only one hit, and it's no use...

You could print a pdf of just the symbol, and then \includegraphics it?

share|improve this answer
    
The document you refer to does not include the symbols I need; I looked at some length. Maybe \includegraphics is my best bet; I can get musixtex to work inline for most symbols, but after I've inserted a clef, it takes everything after that as music. –  JasonFruit Oct 13 '10 at 21:02
    
Is there not an \endmusic command? or something similar. It seems strange that this symbol isn't easily achieved... –  Seamus Oct 13 '10 at 21:05
    
I tried the \endmusic (or \endscore, I don't remember which it is) command, but it did nothing. It also surprises me that it's not easier. –  JasonFruit Oct 13 '10 at 21:21
1  
Found it! I should have been preceding it with \begin{music} and following it with \end{music}; \startpiece and \endpiece are not what I needed. –  JasonFruit Oct 13 '10 at 21:33
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.