|
From: | Dr . Raphael D . Thöne |
Subject: | Re: Lilypond-book question |
Date: | Sat, 9 Jul 2016 21:52:13 +0000 |
Hello Philippe, hello Jeffrey,
thanks for your help.
I used the right path (I typed the whole path) and then run a test file, compiling it with lilybook and then finally with latexpdf. It worked!
/Applications/LilyPond.app/Contents/Resources/bin/lilypond-book --output=out --pdf lily/lily.lytex
Adding the path:
You mentioned pico.profile (why pico? Or can I use any name?)
I first created a lilybook file in a folder called bin and when I run it in the Terminal (Mac), it works
Last login: Sat Jul 9 23:46:54 on ttys001
Raphi:~ raphaelthoene$ /Users/raphaelthoene/bin/lilybook ; exit;
Usage: lilypond-book [OPTION]... FILE
Process LilyPond snippets in hybrid HTML, LaTeX, texinfo or DocBook document.
Examples:
$ lilypond-book --filter="tr '[a-z]' '[A-Z]'" BOOK
$ lilypond-book -F "convert-ly --no-version --from=2.0.0 -" BOOK
$ lilypond-book --process='lilypond -I include' BOOK
Options:
-F, --filter=FILTER pipe snippets through FILTER [default: `convert-ly -n
-']
-f, --format=FORMAT use output format FORMAT (texi [default], texi-html,
latex, html, docbook)
-h, --help show this help and exit
-I, --include=DIR add DIR to include path
--info-images-dir=DIR
format Texinfo output so that Info will look for
images of music in DIR
--left-padding=PAD
pad left side of music to align music inspite of
uneven bar numbers (in mm)
--lily-loglevel=LOGLEVEL
Print lilypond log messages according to LOGLEVEL
--lily-output-dir=DIR
write lily-XXX files to DIR, link into --output dir
--load-custom-package=PACKAGE
Load the additional python PACKAGE (containing e.g. a
custom output format)
-l, --loglevel=LOGLEVEL
Print log messages according to LOGLEVEL (NONE, ERROR,
WARNING, PROGRESS (default), DEBUG)
-o, --output=DIR write output to DIR
-P, --process=COMMAND
process ly_files using COMMAND FILE...
--redirect-lilypond-output
Redirect the lilypond output
-s, --safe Compile snippets in safe mode
--skip-lily-check
do not fail if no lilypond output is found
--skip-png-check
do not fail if no PNG images are found for EPS files
--use-source-file-names
write snippet output files with the same base name as
their source file
-V, --verbose be verbose
--version show version number and exit
-w, --warranty show warranty and copyright
Options only for the latex and texinfo backends:
--latex-program=PROG
run executable PROG instead of latex, or in case --pdf
option is set instead of pdflatex
--texinfo-program=PROG
run executable PROG instead of texi2pdf
--pdf create PDF files for use with PDFTeX
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
[Prozess beendet]
I created then a file called pico.profile and saved it in my home directory. I only consists of two lines:
export PATH=$PATH:~/bin
BLANK LINE
When I now directly try to run lilybook with the path, it tells me that lilybook cannot still be found.
Last login: Sat Jul 9 23:47:38 on ttys000
Raphi:~ raphaelthoene$ lilypond-book --output=out --pdf lily/lily.lytex
-bash: lilypond-book: command not found
Raphi:~ raphaelthoene$
Thanks again for your help,
Raphael.
|
[Prev in Thread] | Current Thread | [Next in Thread] |