Re: Specify output directory *in* the file

2017-08-01 Thread Knut Petersen
Hi Thomas #(format #t "\nCurrent output-filename: \"~a\"\n" (paper-variable (ly:parser-lookup '$current-book) 'output-filename)) Thanks for that snippet. I spent hours to find a way to get the current output filename and suffix. $current-book and similar variables definitely should be

Re: Specify output directory *in* the file

2017-04-18 Thread Timothy Lanfear
On 18/04/17 20:28, Thomas Morley wrote: #(format #t "\nCurrent output-filename: \"~a\"\n" (paper-variable (ly:parser-lookup '$current-book) 'output-filename)) This example of ly:parser-lookup was the clue I needed to figure out how to read fields in a book's header. \version

Re: Specify output directory *in* the file

2017-04-18 Thread Patrick Hubers
Op 18-4-2017 om 21:28 schreef Thomas Morley: Not sure if it'll help, here some methods to retrieve values: [...] #(format #t "\nCurrent filename: \"~a.ly\"\n" (ly:parser-output-name)) HTH, Harm This is great, because I found that I actually preferred to use the original file name.

Re: Specify output directory *in* the file

2017-04-18 Thread Urs Liska
Am 18. April 2017 20:34:40 MESZ schrieb Jeffery Shivers : >On Tue, Apr 18, 2017 at 12:57 PM, Patrick Hubers >wrote: >> >> I would love to use this solution, but it means that you also have to >define >> the actual name of the *file* in addition

Re: Specify output directory *in* the file

2017-04-18 Thread Thomas Morley
2017-04-18 20:34 GMT+02:00 Jeffery Shivers : > On Tue, Apr 18, 2017 at 12:57 PM, Patrick Hubers wrote: >> >> 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.

Re: Specify output directory *in* the file

2017-04-18 Thread Jeffery Shivers
On Tue, Apr 18, 2017 at 12:57 PM, Patrick Hubers wrote: > > 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

Re: Specify output directory *in* the file

2017-04-18 Thread Patrick Hubers
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

Re: Specify output directory *in* the file

2017-04-05 Thread Urs Liska
Am 05.04.2017 um 11:32 schrieb Malte Meyn: > > Am 05.04.2017 um 11:19 schrieb Urs Liska: >> Hi all, >> >> is it possible to specify an output directory from within the LilyPond >> file without going through the hoops of ly:book-process? >> >> TIA >> Urs > How about \bookOutputName? This works

Re: Specify output directory *in* the file

2017-04-05 Thread Malte Meyn
Am 05.04.2017 um 11:19 schrieb Urs Liska: > Hi all, > > is it possible to specify an output directory from within the LilyPond > file without going through the hoops of ly:book-process? > > TIA > Urs How about \bookOutputName? This works with absolute paths like \bookOutputName

Specify output directory *in* the file

2017-04-05 Thread Urs Liska
Hi all, is it possible to specify an output directory from within the LilyPond file without going through the hoops of ly:book-process? TIA Urs -- u...@openlilylib.org https://openlilylib.org http://lilypondblog.org ___ lilypond-user mailing list