[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Lilypond files in Texshop

From: Ole Schmidt
Subject: Re: Lilypond files in Texshop
Date: Tue, 6 Jan 2009 19:30:49 +0100

did you read my mail? I also attach the file.

Attachment: Lilypond-LaTeX.engine
Description: Binary data


Some time ago I had the same problem.
You can modify the Lilypond-LaTeX.engine like below (thanks to Kieren MacMillan):

Am 02.09.2008 um 01:21 schrieb Kieren MacMillan:

In your copy of Lilypond-LaTeX.engine, try replacing


# Create directory to put all temporary stuff
mkdir -p "$1:r"-out/
# Copy local style files, if any, where latex will be able to find them
cp *.sty "$1:r"-out
if ({ lilypond-book --output="$1:r"-out --psfonts "$1" }) then
cd "$1:r"-out
if ({ latex "$1" }) then
 if ({ dvips -o -Ppdf -R0 -h "$1:r".psfonts "$1:r".dvi }) then
   if ({ ps2pdf "$1:r".ps }) then
     mv "$1:r".pdf ..


# Delete existing output (PDF) file
rm "$1".pdf
# Create directory to put all temporary stuff
mkdir -p "$1:r"-out/
# Invoke L-B
lilypond-book --output="$1:r"-out --pdf "$1"
cd "$1:r"-out
pdflatex "$1"
# Copy output (PDF) file to parent directory
mv "$1:r".pdf ..
# Delete temporary stuff
rm -rf *
cd ..
# Delete (empty) temp directory
rmdir "$1:r"-out
# Display output (PDF) file
open "$1:r".pdf

It's not "safe" (i.e., it doesn't have 'if' checks, etc.), but it works for me. =)

Hope this helps!
Am 06.01.2009 um 10:34 schrieb Hasi:

Does anyone know how I can include Lilypond files in Texshop (without the
Lilypond-Latex extension, because this one is not working)?
I would prefer to not do it from the command line...

lilypond-user mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]