Re: Rendering cropped SVG

2015-09-17 Thread potoroo
Apparently I don't clearly understand the mechanism. Why can't the program write the cropped pdf to the same file? > Am 17.09.2015 um 03:08 schrieb David Wright : > > I wrote earlier: After all, in your script you have: pdfcrop --margins 1

Re: Rendering cropped SVG

2015-09-17 Thread David Wright
> > Am 17.09.2015 um 03:08 schrieb David Wright : > > > > I wrote earlier: > After all, in your script you have: > pdfcrop --margins 1 '$file_base_name.pdf' '$file_base_name.pdf' > where the output filename is the same as the input filename. > > > > Well

Re: Rendering cropped SVG

2015-09-16 Thread David Wright
I wrote earlier: > > > After all, in your script you have: > > > pdfcrop --margins 1 '$file_base_name.pdf' '$file_base_name.pdf' > > > where the output filename is the same as the input filename. Quoting poto...@posteo.de (poto...@posteo.de): > I'm not using any version control here. Notice that

Re: Rendering cropped SVG

2015-09-15 Thread potoroo
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

Re: Rendering cropped SVG

2015-09-15 Thread Wols Lists
On 15/09/15 19:46, Simon Albrecht wrote: > Am 15.09.2015 um 20:32 schrieb poto...@posteo.de: >> 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 >

Re: Rendering cropped SVG

2015-09-15 Thread potoroo
I'm using Mac OS. There are no programs accessing the files. However, I just noticed that everything is alright the first time I render the file. But the second time, when the existing svg file needs to be overwritten, the ps file won't get deleted. When I delete both the svg and the ps, the ps

Re: Rendering cropped SVG

2015-09-15 Thread Simon Albrecht
Am 15.09.2015 um 20:59 schrieb poto...@posteo.de: My test file ist: \version "2.18.2" \pointAndClickOff \relative { c' d e f g f e d c' d e f g f e d c' d e f g f e d } \header { tagline = ##f } \paper { line-width=120\mm oddFooterMarkup=##f oddHeaderMarkup=##f bookTitleMarkup = ##f

Re: Rendering cropped SVG

2015-09-15 Thread Simon Albrecht
Am 15.09.2015 um 20:22 schrieb poto...@posteo.de: 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

Re: Rendering cropped SVG

2015-09-15 Thread potoroo
Unfortunately that didn't work, it still leaves a .ps file behind. > Am 15.09.2015 um 20:25 schrieb Simon Albrecht : > > Am 15.09.2015 um 20:22 schrieb poto...@posteo.de: >> Thanks, that works. I set up a build system for Sublime (which has Lilypond >> syntax

Re: Rendering cropped SVG

2015-09-15 Thread Simon Albrecht
Am 15.09.2015 um 20:32 schrieb poto...@posteo.de: 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

Re: Rendering cropped SVG

2015-09-15 Thread potoroo
My test file ist: \version "2.18.2" \pointAndClickOff \relative { c' d e f g f e d c' d e f g f e d c' d e f g f e d } \header { tagline = ##f } \paper { line-width=120\mm oddFooterMarkup=##f oddHeaderMarkup=##f bookTitleMarkup = ##f

Re: Rendering cropped SVG

2015-09-15 Thread David Wright
Quoting poto...@posteo.de (poto...@posteo.de): > I'm using Mac OS. There are no programs accessing the > files. However, I just noticed that everything is alright the first > time I render the file. But the second time, when the existing svg > file needs to be overwritten, the ps file won't get

Re: Rendering cropped SVG

2015-09-15 Thread potoroo
I'm not using any version control here. Notice that the pdf file is deleted correctly all the time, only the temporary ps file stays. And I'm not doing anything with the ps file after summoning Lilypond. I've used Lilypond before without having trouble with the temporary files. I guess I'll

Rendering cropped SVG

2015-09-14 Thread potoroo
Hello, I'd like to render my scores (only short exercises that don't fill a page) as .svg so I can include them on a website. For this, the images would have to be cropped without any white margins. I've searched the web for hours without finding a solution. I tried lilypond -dbackend=svg

Re: Rendering cropped SVG

2015-09-14 Thread Simon Albrecht
Only just did I see this e-mail has been rejected because the svg is too large. So – once more with only .ly… Am 14.09.2015 um 20:35 schrieb Simon Albrecht: Am 14.09.2015 um 18:28 schrieb poto...@posteo.de: Hello, I'd like to render my scores (only short exercises that don't fill a page) as

Re: Rendering cropped SVG

2015-09-14 Thread David Wright
Quoting poto...@posteo.de (poto...@posteo.de): > I forgot: My file is just the minimum to test if Lilypond can do what I want > it to do. > > \pointAndClickOff > > \relative { > c' d e f g f e d > c' d e f a a b d > c' d e f a a b d > } > > \version "2.18.2" I typeset music fragments

Re: Rendering cropped SVG

2015-09-14 Thread Simon Albrecht
Am 14.09.2015 um 18:28 schrieb poto...@posteo.de: short exercises that don't fill a page Forgot to add: You can easily choose another paper format \paper { #(set-paper-size "a5" 'landscape) } or set the paper width and height directly: \paper { paper-width = 10\cm paper-height = 270\mm }

Re: Rendering cropped SVG

2015-09-14 Thread potoroo
lilypond-book-preamble.ly works with eps, but when I change it to svg, it says: Systeme erstellen... /Applications/LilyPond.app/Contents/Resources/share/lilypond/current/scm/lily-library.scm:242:5: In procedure module-lookup in expression (process-procedure book paper ...):

Re: Rendering cropped SVG

2015-09-14 Thread potoroo
I forgot: My file is just the minimum to test if Lilypond can do what I want it to do. \pointAndClickOff \relative { c' d e f g f e d c' d e f a a b d c' d e f a a b d } \version "2.18.2" ___ lilypond-user mailing list lilypond-user@gnu.org

Re: Rendering cropped SVG

2015-09-14 Thread Simon Albrecht
Please always use ‘Reply all’, including the list. That way others can chime in, follow the thread, and answers will be available from the archive. Am 14.09.2015 um 21:06 schrieb poto...@posteo.de: I'm aware that I can set the paper size manually. But I want the sheet to be cropped exactly