as a newbie to lilypond, I read workflow for integrating Lilybond-book into LaTeX which is outlined in the documentation:
I typed the testfile, saved it in a separate folder, but on my mac, I get the following message (Terminal)
Last login: Sat Jul 9 17:53:26 on ttys001
Raphi:~ raphaelthoene$ cd lily
Raphi:lily raphaelthoene$ lilypond-book --output=out --pdf lilybook.lytex
-bash: lilypond-book: command not found
Raphi:lily raphaelthoene$ lilypond-book --output=out --pdf lilybook.lytex
-bash: lilypond-book: command not found
Raphi:lily raphaelthoene$
Apparently, I haven’t installed the lilypond-package, although Lilypond is working on my machine. Where do I
get the lilypond-book-package and how do I install it (sudo)?
Or does it have something to do with the following info?
Note: If you are happy with the GUI instructions below, then please ignore these instructions.
MacOS X on the command line
The most convenient way to run lilypond scripts is by setting up “helper” scripts of your own.
-
Create a directory to store these scripts,
mkdir -p ~/bin
cd ~/bin
-
Create a file called
lilypond
which contains
Note: DIR will generally be /Applications/
-
Create similar files
lilypond-book
, convert-ly
, and any other scripts you wish to use, by replacing the bin/lilypond
with bin/convert-ly
(or other program name). -
Make the file executable,
chmod u+x lilypond
-
Now, add this directory to your path. Modify (or create) a file called
.profile
in your home directory such that it contains
export PATH=$PATH:~/bin
This file should end with a blank line.
Invoking individual scripts
The scripts — such as lilypond-book
, convert-ly
, abc2ly
, and even lilypond
itself — are included inside the .app
file for MacOS X.
Scripts can also be run from the command line by invoking them directly:
The same is true for all other scripts in that directory, such as lilypond-book
and convert-ly
.
Is there an easier way, e.g. to integrate lilypond-book directly into TeXMaker?
Thanks for your help,
Raphael.