lilypond-user
[Top][All Lists]
Advanced

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

Re: Rendering cropped SVG


From: Simon Albrecht
Subject: Re: Rendering cropped SVG
Date: Tue, 15 Sep 2015 20:46:42 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0

Am 15.09.2015 um 20:32 schrieb address@hidden:
Unfortunately that didn't work, it still leaves a .ps file behind.

Huh. Normally it wouldn’t; please try to create a tiny example. Also, check the log messages; they should have something like

Converting to `document.pdf'...

Deleting `/tmp/lilypond-s634Nb'...

Success: compilation successfully completed


at the end – the middle of these lines is the deletion of the intermediate .ps file.

Yours, Simon


Am 15.09.2015 um 20:25 schrieb Simon Albrecht <address@hidden>:

Am 15.09.2015 um 20:22 schrieb address@hidden:
Thanks, that works. I set up a build system for Sublime (which has Lilypond syntax highlighting with the SubLilyPond package).

{
	"shell_cmd": "lilypond -dno-point-and-click '$file_base_name.ly'; pdfcrop --margins 1 '$file_base_name.pdf' '$file_base_name.pdf'; pdf2svg '$file_base_name.pdf' '$file_base_name.svg'; rm -f '$file_base_name.pdf'; rm -f '$file_base_name.ps'",
	"selector": "source.lilypond",
}

This will render and crop a pdf, convert it to svg and delete the pdf. However, I don't know why it won't remove the .ps file, or why it is created in the first place. Is there a way to prevent Lilypond from creating the .ps file?


Since LilyPond doesn’t have a proper PDF backend, first a .ps file is created, which is converted to .pdf afterwards. There is a program option to have the intermediate files deleted automatically: -ddelete-intermediate-files.

HTH, Simon

    


reply via email to

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