[OS X TeX] TeXShop and Lilypond

M A markoilcan at gmail.com
Mon Apr 16 12:31:29 EDT 2007

> Texshop wouldn't run the version with #! /bin/tcsh and I'm not too
> programming savvy but am willing to change things around that are
> easy to put back. I'd still like to continue to try and get this
> working and share my results. I put back tcsh to #!/bin/tcsh and it
> wouldn't run, but, I added \ to the end of the line '#!/bin/tcsh\ and
> now Texshop is running until I get to errors like 'paragraph ended
> before \begin was complete. <to be read again>  and so on down the
> line. Texshop will only run this once and has to be quit or it won't
> recognize the Lilypond-LaTex.engine again. I am going to continue
> when I can, I need to learn some more about Latex and lilypond at
> this point I think.

Assuming the your file is called "filename.lytex" the following should
work within the terminal:

lilypond-book --pdf filename.lytex
pdflatex filename.tex

The lilypond-book command may only reside within the lilypond.app
application, depending on how you installed lilypond, in which case
you would need to type


instead. I don't use Texshop, but I believe that if the above works,
the only thing you would need to change to make it an engine would be
to change "filename" to "$1". You should be sure that your original
file does not end in .tex to make sure the lilypond-book does not
overwrite the file.

Mark A

------------------------- 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/

More information about the MacOSX-TeX mailing list