Re: Snippet only as PDF

2022-02-27 Thread Bophead 2000
Hi Jean,

That works fine for PDF and EPS output already, but not for SVG. So I added

#(ly:set-option 'backend 'svg)

afterwards and that made the Lilypond command line options for SVG output
work. I guess that overrides the EPS-backend defined in “
lilypond-book-preamble.ly”.

I will try to modify the “lilypond-book-preamble.ly” file accordingly, save
it under a different name and call that new file instead. Would the EPS and
PDF output still work properly then?

So far you have helped me a lot already, the SVG output is not really
needed in the moment, but it interests me still how to achieve it correctly.

Merci Beaucoup

Bophead

On Sun, Feb 27, 2022 at 5:35 PM Jean Abou Samra  wrote:

> Le 27/02/2022 à 10:40, Bophead 2000 a écrit :
> > What is the simplest way to get snippets cut down to only content as
> > only one file – be it PDF, EPS or SVG?
>
> Add
>
> #(ly:set-option 'aux-files #f)
>
> Best,
> Jean
>
>


Re: Snippet only as PDF

2022-02-27 Thread Jean Abou Samra

Le 27/02/2022 à 10:40, Bophead 2000 a écrit :
What is the simplest way to get snippets cut down to only content as 
only one file – be it PDF, EPS or SVG?


Add

#(ly:set-option 'aux-files #f)

Best,
Jean




Re: Snippet only as PDF

2022-02-27 Thread David Wright
On Sun 27 Feb 2022 at 14:16:32 (+0100), Bophead 2000 wrote:

> > > I want to produce lilypond snippets to be used within a text – but only in
> > > one graphics file format (PDF, EPS or SVG). In the moment I am using a
> > > method I copied from the examples in the HTML-manuals putting the
> > > following in front of the music:
> > >
> > > \include "lilypond-book-preamble.ly "

[ … ]

> > > So far everything is working but what annoys me are all those files that I
> > > don’t need: tex, texi etc. (I am not using LaTeX) cluttering my folders.
> > > (Don’t get me wrong – those files may be useful and necessary if using
> > > LaTeX, but I am using ConTeXt so I have no use for them.)
> > >
> > > So my question is:
> > >
> > > What is the simplest way to get snippets cut down to only content as only
> > > one file – be it PDF, EPS or SVG?

> Back to pure Lilypond:
> 
> Nonetheless I would still like to know if there is a way to render a
> snippet cut to its pure musical content in only one file format. Me and
> others might have a use for such snippets as graphics for other programs as
> well that do not integrate Lilypond as well as ConTeXt.
> 
> (From ConTeXt I am used to “--purgeall” to get rid of all the auxiliary
> files. But something like that doesn’t seem to to exist for Lilypond as
> there is an intention behind all those files).

Hraban, as a ConTeXt user, may have more idea of your workflow.
My scripts merely remove the excess files, using constructs
like "${Sourcefilename/%.ly/.log}" to generate their names.

(Actually they don't remove the files, but move them to a nonce
directory under /tmp, so that they could be inspected if required.
/tmp is cleaned automatically.)

Cheers,
David.



Re: Snippet only as PDF

2022-02-27 Thread Henning Hraban Ramm

Hi Bophead,

Am 27.02.22 um 14:16 schrieb Bophead 2000:

Hi Hraban,

I have seen that page in ConTeXtgarden. But as far as I understood the 
“filter” module works only in ConTeXt MkIV and the workaround to use it 
in ConTeXt LMTX has a security flaw (cannot remember where I read the 
latter). That is why I have not tried it yet. I wanted something that 
works with LMTX as well.


The filter module works with LMTX, and if something doesn’t work, Aditya 
is usually quick to fix it.


But I will look into that as in the moment I switched back to MkIV 
anyway to be able to use Dan Kreiders MusFrets font 
(https://www.notationcentral.com/product/musfrets/ 
) properly (it is 
working with ligatures and colr/cpal font features and not displayed 
properly in most PDF readers if rendered with LMTX).


Please raise that issue on the ConTeXt mailing list – if something 
doesn’t work with LMTX that does work with MkIV, it’s something Hans 
will usually fix quickly (even if at the moment he’s busy working on the 
math enhancements).



Grüße aus München


Grüße aus Limburg/Lahn ;)

Hraban




Re: Re: Snippet only as PDF

2022-02-27 Thread Bophead 2000
Hi Hraban,

I have seen that page in ConTeXtgarden. But as far as I understood the
“filter” module works only in ConTeXt MkIV and the workaround to use it in
ConTeXt LMTX has a security flaw (cannot remember where I read the latter).
That is why I have not tried it yet. I wanted something that works with
LMTX as well.

But I will look into that as in the moment I switched back to MkIV anyway
to be able to use Dan Kreiders MusFrets font (
https://www.notationcentral.com/product/musfrets/) properly (it is working
with ligatures and colr/cpal font features and not displayed properly in
most PDF readers if rendered with LMTX).

And of course I am willing to improve the ConTeXt-LilyPond integration
together.

Back to pure Lilypond:

Nonetheless I would still like to know if there is a way to render a
snippet cut to its pure musical content in only one file format. Me and
others might have a use for such snippets as graphics for other programs as
well that do not integrate Lilypond as well as ConTeXt.

(From ConTeXt I am used to “--purgeall” to get rid of all the auxiliary
files. But something like that doesn’t seem to to exist for Lilypond as
there is an intention behind all those files).

Grüße aus München

Bophead

> Hi Bophead,
>
> welcome, fellow ConTeXt user!
> Do you know https://wiki.contextgarden.net/LilyPond ?
> I’m using only parts of lilypond-book-preamble.ly
>
> Maybe we can improve the ConTeXt-LilyPond integration together.
>
> Hraban
>
> Am 27.02.22 um 10:40 schrieb Bophead 2000:
>
> Hello all,
>
>
> I want to produce lilypond snippets to be used within a text – but only in
> one graphics file format (PDF, EPS or SVG). In the moment I am using a
> method I copied from the examples in the HTML-manuals putting the
> following in front of the music:
>
> 
>
> \include "lilypond-book-preamble.ly "
>
> \paper {
>indent = 0\mm
>line-width = 160\mm
>line-width = #(- line-width (* mm  3.00) (* mm 1))
>line-width = 160\mm - 2.0 * 10.16\mm
>line-width = #(- line-width (* mm  3.00) (* mm 1))
> }
>
> \layout {}
>
> 
>
>
> So far everything is working but what annoys me are all those files that I
> don’t need: tex, texi etc. (I am not using LaTeX) cluttering my folders.
> (Don’t get me wrong – those files may be useful and necessary if using
> LaTeX, but I am using ConTeXt so I have no use for them.)
>
> So my question is:
>
>
> What is the simplest way to get snippets cut down to only content as only
> one file – be it PDF, EPS or SVG?
>
> Thanks in advance
> Bophead
>
>


Re: Snippet only as PDF

2022-02-27 Thread Henning Hraban Ramm

Hi Bophead,

welcome, fellow ConTeXt user!
Do you know https://wiki.contextgarden.net/LilyPond ?
I’m using only parts of lilypond-book-preamble.ly

Maybe we can improve the ConTeXt-LilyPond integration together.

Hraban

Am 27.02.22 um 10:40 schrieb Bophead 2000:

Hello all,

I want to produce lilypond snippets to be used within a text – but only 
in one graphics file format (PDF, EPS or SVG).


In the moment I am using a method I copied from the examples in the 
HTML-manuals putting the following in front of the music:




\include "lilypond-book-preamble.ly "

\paper {
   indent = 0\mm
   line-width = 160\mm
   line-width = #(- line-width (* mm  3.00) (* mm 1))
   line-width = 160\mm - 2.0 * 10.16\mm
   line-width = #(- line-width (* mm  3.00) (* mm 1))
}

\layout {}



So far everything is working but what annoys me are all those files that 
I don’t need: tex, texi etc. (I am not using LaTeX) cluttering my 
folders. (Don’t get me wrong – those files may be useful and necessary 
if using LaTeX, but I am using ConTeXt so I have no use for them.)


So my question is:

What is the simplest way to get snippets cut down to only content as 
only one file – be it PDF, EPS or SVG?


Thanks in advance
Bophead





Snippet only as PDF

2022-02-27 Thread Bophead 2000
Hello all,

I want to produce lilypond snippets to be used within a text – but only in
one graphics file format (PDF, EPS or SVG).

In the moment I am using a method I copied from the examples in the
HTML-manuals putting the following in front of the music:



\include "lilypond-book-preamble.ly"

\paper {
  indent = 0\mm
  line-width = 160\mm
  line-width = #(- line-width (* mm  3.00) (* mm 1))
  line-width = 160\mm - 2.0 * 10.16\mm
  line-width = #(- line-width (* mm  3.00) (* mm 1))
}

\layout {}



So far everything is working but what annoys me are all those files that I
don’t need: tex, texi etc. (I am not using LaTeX) cluttering my folders.
(Don’t get me wrong – those files may be useful and necessary if using
LaTeX, but I am using ConTeXt so I have no use for them.)

So my question is:

What is the simplest way to get snippets cut down to only content as only
one file – be it PDF, EPS or SVG?

Thanks in advance
Bophead