lilypond-user
[Top][All Lists]
Advanced

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

Re: lilypond-latex


From: Kieren MacMillan
Subject: Re: lilypond-latex
Date: Mon, 1 Sep 2008 19:21:28 -0400

Hi all,

great! thank you

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 ..
      endif
    endif
  endif
endif
___________________________________

with
___________________________________

# 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!
Kieren.




reply via email to

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