lilypond-user
[Top][All Lists]
Advanced

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

Re: Specify output directory *in* the file


From: Patrick Hubers
Subject: Re: Specify output directory *in* the file
Date: Tue, 18 Apr 2017 18:57:40 +0200
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

Op 5-4-2017 om 11:32 schreef Malte Meyn:
is it possible to specify an output directory from within the LilyPond
file without going through the hoops of ly:book-process?
How about \bookOutputName? This works with absolute paths like

  \bookOutputName "/home/malte/foo" (output to /home/malte/foo.pdf)

and with relative paths too. You don’t need an explicit \book {} block.
I would love to use this solution, but it means that you also have to define the actual name of the *file* in addition to the directory. Is there a way to derive the filename from the title and use that? I found that using

  \bookOutputName \concat { "/home/foo/" \fromproperty #'header:title }

does not work...

Thanks for any pointers.

Regards, Patrick

reply via email to

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