# [OS X TeX] TeXShop and Lilypond

Michael Millett mjmm60 at excite.com
Tue Apr 17 00:26:12 EDT 2007

Alan:

I think I am on the right track with this. But it still is not working.
I am getting this error:

2007-04-16 23:00:45.407 TeXShop[327] *** NSTask: Task create for path
/Users/michaelm/Library/TeXShop/Engines/Lilypond-LaTeX.engine failed: 2,
"No such file or directory".

Saved as a text file;
Put it in folder as listed above;
Changed the name to the above;
Ran the code in the Terminal, as you gave it (no error messages were
returned);
Ran LaTeX with Lilypond-LaTeX as the selected engine;

But, for some reason, it isn't working.

Perhaps, is it having trouble finding the Lilypond application?
I say that because I originally had it inside a folder on my desktop. So
I moved it to the Applications folder, as you indicated it should be.

If this sounds like it might be the problem, would you kindly help show
me how to set the path.

Otherwise, are there any other possible solutions you can think of?

By the way, I also tried:

\begin (and end) {Lilypond-LaTeX}
\begin {Lilypond}
and
\begin {lilypond}

Thanks again for helping.
Michael

Alan Munn wrote:
> At 10:40 AM +0200 4/16/07, Tobias Sebastian Kuhn wrote:
>> Am 16.04.2007 um 05:21 schrieb Michael Millett:
>>
>>> I was hoping someone on this list has experience using Lilypond
>>> (music notation program) with TeXShop, and could help me.
>>>
>>
>>
>> Look here:
>> http://www.dimi.uniud.it/~vitacolo/freesoftware.html#desktoppub
>> Scroll down a bit, there are engines, they may work:
>>
>
> Michael, (and Daniel) your original example posted works fine using
> the Lilypond.engine from the link posted by Tobias.
>
> (Assuming Lilypond is installed in /Applications)
>
>
>
> Save the file in ~/Library/TeXShop/Engines as Lilypond-LaTeX.engine
> without the .txt extension.
>
> Open a terminal window and type:
>
> chmod +x ~/Library/TeXShop/Engines/Lilypond-LaTeX.engine
>
> Quit out of TeXShop (if it's running) and open it up again.
>
> Open your file, and in the pull-down menu that allows you to choose
> the engine, you should see Lilypond-LaTeX.  Choose that and then click
> on the typeset button.  Your document should appear properly.
>
> If you put
>
> %%!TEX TS-program = Lilypond-Latex
>
> as the first line of your file, TeXShop will choose the engine
> automatically.
>
> Alan
>
>

------------------------- Helpful Info -------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/