Re: Lilypond-book-preamble introducing page break after custom header

2023-03-15 Thread Jean Abou Samra
Le mercredi 15 mars 2023 à 22:49 +0100, Jean Abou Samra a écrit :
> - 
> use `-dseparate-page-formats=pdf` if you want to get one output file per page 
> (or per system if also using lilypond-book-preamble.ly),
> 
> 
> - 
> use `-dtall-page-formats=pdf` if you want to get squashed pages.

P.S. Can also be done in the .ly file itself with `#(ly:set-option 
'separate-page-formats 'pdf)` or `#(ly:set-option 'tall-page-formats 'pdf)`.


signature.asc
Description: This is a digitally signed message part


Re: Lilypond-book-preamble introducing page break after custom header

2023-03-15 Thread Jean Abou Samra
Le mercredi 15 mars 2023 à 17:32 -0400, Fr. Samuel Springuel a écrit :
> The attached file compiles differently under 2.22 and 2.24: 2.24 introduces a 
> page break that isn’t present in 2.22.  This is causing some havoc in my 
> lyluatex tool chain.  Any idea what’s causing the problem and how to fix it?

This change was on purpose.

lilypond-book-preamble.ly arranges so that LilyPond's notion of pages is 
changed to make each system or markup a page of its own (except explicit 
`\book`s).

In 2.22, lilypond-book sets the EPS backend to be used, and the EPS backend 
caused two things:

* Separate-page output: one file "document-pagenumber.pdf" per page. Since 
lilypond-book-preamble.ly also turns systems into pages, that effectively means 
one page per system.

* Tall-page output: the main "document.pdf" output file is just all pages 
squashed together.

In 2.24, it doesn't do that anymore. It mostly makes the “system as page” 
setting. Furthermore, the EPS backend has been removed in favor of separate 
options:

- use `-dseparate-page-formats=pdf` if you want to get one output file per page 
(or per system if also using lilypond-book-preamble.ly),

- use `-dtall-page-formats=pdf` if you want to get squashed pages.


signature.asc
Description: This is a digitally signed message part


Re: lilypond-book -> latex

2022-12-02 Thread Carlos Knauer
Thanks a lot!

Em sex., 2 de dez. de 2022 02:03, Werner LEMBERG  escreveu:

>
> > I need package "lilypond-book->latex". How can I download it ?
>
> If you have downloaded or installed LilyPond, you should already have
> the `lilypond-book` script.  On the command line, say
>
> ```
> lilypond-book --help
> ```
>
> for a first overview of the available options; you need to add
> `--format=latex` to make the script handle LaTeX input files.
>
> Assuming that you are using the latest stable release (2.22.2), the
> complete documentation of `lilypond-book` is available online as
>
>   https://lilypond.org/doc/v2.22/Documentation/usage/lilypond_002dbook
>
>
> Werner
>


Re: lilypond-book -> latex

2022-12-01 Thread Werner LEMBERG


> I need package "lilypond-book->latex". How can I download it ?

If you have downloaded or installed LilyPond, you should already have
the `lilypond-book` script.  On the command line, say

```
lilypond-book --help
```

for a first overview of the available options; you need to add
`--format=latex` to make the script handle LaTeX input files.

Assuming that you are using the latest stable release (2.22.2), the
complete documentation of `lilypond-book` is available online as

  https://lilypond.org/doc/v2.22/Documentation/usage/lilypond_002dbook


Werner



Re: lilypond-book and html

2022-10-28 Thread Jean Abou Samra

Le 28/10/2022 à 21:31, Tristan Latchford a écrit :
warning: `(gs -q -dNODISPLAY -dNOSAFER -dNOPAUSE -dBATCH -dEPSCrop 
-dAutoRotatePages=/None -dPrinted=false 
/var/folders/29/4w1k0cl94mngf7t5hbc7ht2rgn/T//lilypond-tmp-986077)' 
failed (256)


fatal error: failed files: "d4/lily-5f5a117f.ly 64/lily-933bb9de.ly"
Command '/usr/local/bin/lilypond --formats=ps,png -dbackend=eps -I  
"./"  -I  "../" -deps-box-padding=3.00  -dread-file-list 
-dno-strip-output-dir 
".../Desktop/quick-access/snippet-names-090095318efd5fabb1fd2304c2b0d3cb.ly"' 
returned non-zero exit status 1.


Can anybody help me with this, so I can get my lovely .html output?




For me, that works.

- Maybe you kept the output open in some application? Under Windows, if 
the file is open somewhere, it can't be overwritten. You need to close 
it before re-running lilypond-book.


- Does LilyPond work well outside of lilypond-book?

- If none of the above helps, can you run lilypond-book with --verbose 
and send the log?


Best,
Jean




Re: Lilypond-book problem

2022-09-07 Thread Rip _Mus
@David : Yeah, I'm sorry, I meant ".py". Anyway, a very good analysis of
the situation!

@Knute Snortum  : Thank you for your suggestions! I'm
thinking about reporting this issue.

Il giorno mar 6 set 2022 alle ore 19:25 Knute Snortum 
ha scritto:

> On Tue, Sep 6, 2022 at 8:09 AM David Wright 
> wrote:
> >
> > On Tue 06 Sep 2022 at 11:19:28 (+0200), Rip _Mus wrote:
> > > Il giorno lun 5 set 2022 alle ore 19:06 Knute Snortum ha scritto:
> > > > On Sun, Sep 4, 2022 at 10:26 PM Rip _Mus wrote:
> > > > >> On Sun, Sep 4, 2022 at 9:06 AM Rip _Mus wrote:
> >
> > > > >> > I have installed the version 2.22.1, wich I used for a lot of
> big
> > > > project.
> > > > >> > A lot of times I tried to open terminal and run "lilypond-book"
> but
> > > > without success. I already add the folder "...\usr\bin" to the
> > > > environmental variabile path, in fact the command "lilypond" runs.
> > > > >> > Someone could help me?
> >
> > > > > thanks for the reply!  You're right, I could have added a few more
> > > > details.
> > > > > The operating system is Windows 10. For using Lilypond on command
> line,
> > > > I followed the instructions on the site.
> > > > > I added the folder "C:Program Files (x86)\LilyPond\usr\bin" to the
> > > > environmental variable “Path”.
> > > > >  I think I followed them well, as the "ilypond" command works.  The
> > > > other commands "lilypond-book" and "convert-ly" instead give me the
> > > > following message:
> > > > >
> > > > > 'lilypond-book' is not recognized as an internal or external
> command
> > > > >
> > > > > What I notice is that in the folder in question there are
> lilypond-book
> > > > and convert-ly scripts, but they are without extension (for example
> * .py)
> > > > >
> > > > > What do you think about?
> >
> > > > Well, I had the same experience as you.  One solution is to type:
> > > >
> > > > python3 "C:Program Files (x86)\LilyPond\usr\bin\lilypond-book"
> > > >
> > > > You could put that in a batch file somewhere in your PATH.  There may
> > > > be other solutions too.
> >
> > > Ok!
> > > I tried and it works very well!
> > > Another solution is to add the extension ".ly" to the file name and
> then
> > > the command runs.
> >
> > More likely you added .py ?
>
> Just adding ".py" to lilypond-book didn't work for me.  At the command
> line I got a message that "lilypond-book" was not an executable.  From
> the Windows file folder a command screen popped up for a split second,
> then vanished.
>
> But here's another way to do this: create a file called
> lilypond-book.bat somewhere in your PATH, then paste this into it:
>
> @python3 "C:\Program Files
> (x86)\LilyPond-2.22.2\usr\bin\lilypond-book" %*
>
> You should be able to type "lilypond.book" anywhere you cd to.
>
> --
> Knute Snortum
>


Re: Lilypond-book problem

2022-09-06 Thread Knute Snortum
On Tue, Sep 6, 2022 at 8:09 AM David Wright  wrote:
>
> On Tue 06 Sep 2022 at 11:19:28 (+0200), Rip _Mus wrote:
> > Il giorno lun 5 set 2022 alle ore 19:06 Knute Snortum ha scritto:
> > > On Sun, Sep 4, 2022 at 10:26 PM Rip _Mus wrote:
> > > >> On Sun, Sep 4, 2022 at 9:06 AM Rip _Mus wrote:
>
> > > >> > I have installed the version 2.22.1, wich I used for a lot of big
> > > project.
> > > >> > A lot of times I tried to open terminal and run "lilypond-book" but
> > > without success. I already add the folder "...\usr\bin" to the
> > > environmental variabile path, in fact the command "lilypond" runs.
> > > >> > Someone could help me?
>
> > > > thanks for the reply!  You're right, I could have added a few more
> > > details.
> > > > The operating system is Windows 10. For using Lilypond on command line,
> > > I followed the instructions on the site.
> > > > I added the folder "C:Program Files (x86)\LilyPond\usr\bin" to the
> > > environmental variable “Path”.
> > > >  I think I followed them well, as the "ilypond" command works.  The
> > > other commands "lilypond-book" and "convert-ly" instead give me the
> > > following message:
> > > >
> > > > 'lilypond-book' is not recognized as an internal or external command
> > > >
> > > > What I notice is that in the folder in question there are lilypond-book
> > > and convert-ly scripts, but they are without extension (for example * .py)
> > > >
> > > > What do you think about?
>
> > > Well, I had the same experience as you.  One solution is to type:
> > >
> > > python3 "C:Program Files (x86)\LilyPond\usr\bin\lilypond-book"
> > >
> > > You could put that in a batch file somewhere in your PATH.  There may
> > > be other solutions too.
>
> > Ok!
> > I tried and it works very well!
> > Another solution is to add the extension ".ly" to the file name and then
> > the command runs.
>
> More likely you added .py ?

Just adding ".py" to lilypond-book didn't work for me.  At the command
line I got a message that "lilypond-book" was not an executable.  From
the Windows file folder a command screen popped up for a split second,
then vanished.

But here's another way to do this: create a file called
lilypond-book.bat somewhere in your PATH, then paste this into it:

@python3 "C:\Program Files (x86)\LilyPond-2.22.2\usr\bin\lilypond-book" %*

You should be able to type "lilypond.book" anywhere you cd to.

--
Knute Snortum



Re: Lilypond-book problem

2022-09-06 Thread David Wright
On Tue 06 Sep 2022 at 11:19:28 (+0200), Rip _Mus wrote:
> Il giorno lun 5 set 2022 alle ore 19:06 Knute Snortum ha scritto:
> > On Sun, Sep 4, 2022 at 10:26 PM Rip _Mus wrote:
> > >> On Sun, Sep 4, 2022 at 9:06 AM Rip _Mus wrote:

> > >> > I have installed the version 2.22.1, wich I used for a lot of big
> > project.
> > >> > A lot of times I tried to open terminal and run "lilypond-book" but
> > without success. I already add the folder "...\usr\bin" to the
> > environmental variabile path, in fact the command "lilypond" runs.
> > >> > Someone could help me?

> > > thanks for the reply!  You're right, I could have added a few more
> > details.
> > > The operating system is Windows 10. For using Lilypond on command line,
> > I followed the instructions on the site.
> > > I added the folder "C:Program Files (x86)\LilyPond\usr\bin" to the
> > environmental variable “Path”.
> > >  I think I followed them well, as the "ilypond" command works.  The
> > other commands "lilypond-book" and "convert-ly" instead give me the
> > following message:
> > >
> > > 'lilypond-book' is not recognized as an internal or external command
> > >
> > > What I notice is that in the folder in question there are lilypond-book
> > and convert-ly scripts, but they are without extension (for example * .py)
> > >
> > > What do you think about?

> > Well, I had the same experience as you.  One solution is to type:
> >
> > python3 "C:Program Files (x86)\LilyPond\usr\bin\lilypond-book"
> >
> > You could put that in a batch file somewhere in your PATH.  There may
> > be other solutions too.

> Ok!
> I tried and it works very well!
> Another solution is to add the extension ".ly" to the file name and then
> the command runs.

More likely you added .py ?

> I don't understand why it is not the way described in Lilypond manuals.
> Anyway, thank you so much for your help!

The archetypal system for Lilypond is un*x/linux, so the documentation
reflects that. Where Windows differs, that's often pointed out. See,
for example, Usage §2.2 Invoking convert-ly.

Unfortunately, the principal reference for Windows on the Command Line
doesn't mention this difference or give an example (lilypond itself is
a real EXE file, whereas all the support programs are Python scripts):

https://lilypond.org/windows.html

web.pdf page number 44, physical page 46.

Perhaps the reason is that the documentation writer(s) had set their
environment variable PATHEXT to include .py (or should it be .PY ?)
long ago, and have forgotten about it:

https://www.nextofwindows.com/what-is-pathext-environment-variable-in-windows

But sometimes that appears not to be the answer either:

https://superuser.com/questions/1619580/pathext-environment-variable-not-working

--

In researching this, I noticed that, on the web, the target of
https://lilypond.org/doc/v2.23/Documentation/web-big-page.html#windows
appears to be Nicolas Sceaux's use of LP, whereas the 2.23.12 version
on my system points to the correct place in the page, corresponding to:

https://lilypond.org/windows.html

Disclaimer: I don't use Windows, so all is hypothetical.

Cheers,
David.



Re: Lilypond-book problem

2022-09-06 Thread Knute Snortum
On Tue, Sep 6, 2022 at 2:19 AM Rip _Mus  wrote:
>
> Ok!
> I tried and it works very well!
> Another solution is to add the extension ".ly" to the file name and then the 
> command runs.

Huh.  I'm surprised that works.  I guess LilyPond is smart enough to
execute Python code.

> I don't understand why it is not the way described in Lilypond manuals.

Well, you can report it as a bug at https://lilypond.org/bug-reports.html

Or you can even change it by contributing!
https://lilypond.org/doc/v2.23/Documentation/contributor/documentation-work

--
Knute Snortum



Re: Lilypond-book problem

2022-09-06 Thread Rip _Mus
Ok!
I tried and it works very well!
Another solution is to add the extension ".ly" to the file name and then
the command runs.
I don't understand why it is not the way described in Lilypond manuals.
Anyway, thank you so much for your help!

Il giorno lun 5 set 2022 alle ore 19:06 Knute Snortum 
ha scritto:

> Well, I had the same experience as you.  One solution is to type:
>
> python3 "C:Program Files (x86)\LilyPond\usr\bin\lilypond-book"
>
> You could put that in a batch file somewhere in your PATH.  There may
> be other solutions too.
>
> --
> Knute Snortum
>
>
> On Sun, Sep 4, 2022 at 10:26 PM Rip _Mus 
> wrote:
> >
> > Good morning,
> > thanks for the reply!  You're right, I could have added a few more
> details.
> > The operating system is Windows 10. For using Lilypond on command line,
> I followed the instructions on the site.
> > I added the folder "C:Program Files (x86)\LilyPond\usr\bin" to the
> environmental variable “Path”.
> >  I think I followed them well, as the "ilypond" command works.  The
> other commands "lilypond-book" and "convert-ly" instead give me the
> following message:
> >
> > 'lilypond-book' is not recognized as an internal or external command
> >
> > What I notice is that in the folder in question there are lilypond-book
> and convert-ly scripts, but they are without extension (for example * .py)
> >
> > What do you think about?
> >
> >
> > Il lun 5 set 2022, 02:13 Knute Snortum  ha scritto:
> >>
> >> On Sun, Sep 4, 2022 at 9:06 AM Rip _Mus 
> wrote:
> >> >
> >> > Good morning,
> >> > I have installed the version 2.22.1, wich I used for a lot of big
> project.
> >> > A lot of times I tried to open terminal and run "lilypond-book" but
> without success. I already add the folder "...\usr\bin" to the
> environmental variabile path, in fact the command "lilypond" runs.
> >> > Someone could help me?
> >>
> >> It would be helpful to know exactly what is going wrong.  Do you get
> >> error messages?  Post them.  Not doing what you think it should?  Tell
> >> us what it's doing and what you think it should be doing.  Also, tell
> >> us the OS, is it linux?
> >>
> >> --
> >> Knute Snortum
>


Re: Lilypond-book problem

2022-09-05 Thread Knute Snortum
Well, I had the same experience as you.  One solution is to type:

python3 "C:Program Files (x86)\LilyPond\usr\bin\lilypond-book"

You could put that in a batch file somewhere in your PATH.  There may
be other solutions too.

--
Knute Snortum


On Sun, Sep 4, 2022 at 10:26 PM Rip _Mus  wrote:
>
> Good morning,
> thanks for the reply!  You're right, I could have added a few more details.
> The operating system is Windows 10. For using Lilypond on command line, I 
> followed the instructions on the site.
> I added the folder "C:Program Files (x86)\LilyPond\usr\bin" to the 
> environmental variable “Path”.
>  I think I followed them well, as the "ilypond" command works.  The other 
> commands "lilypond-book" and "convert-ly" instead give me the following 
> message:
>
> 'lilypond-book' is not recognized as an internal or external command
>
> What I notice is that in the folder in question there are lilypond-book and 
> convert-ly scripts, but they are without extension (for example * .py)
>
> What do you think about?
>
>
> Il lun 5 set 2022, 02:13 Knute Snortum  ha scritto:
>>
>> On Sun, Sep 4, 2022 at 9:06 AM Rip _Mus  wrote:
>> >
>> > Good morning,
>> > I have installed the version 2.22.1, wich I used for a lot of big project.
>> > A lot of times I tried to open terminal and run "lilypond-book" but 
>> > without success. I already add the folder "...\usr\bin" to the 
>> > environmental variabile path, in fact the command "lilypond" runs.
>> > Someone could help me?
>>
>> It would be helpful to know exactly what is going wrong.  Do you get
>> error messages?  Post them.  Not doing what you think it should?  Tell
>> us what it's doing and what you think it should be doing.  Also, tell
>> us the OS, is it linux?
>>
>> --
>> Knute Snortum



Re: Lilypond-book problem

2022-09-04 Thread Rip _Mus
Good morning,
thanks for the reply!  You're right, I could have added a few more details.
The operating system is Windows 10. For using Lilypond on command line, I
followed the instructions on the site.
I added the folder "C:Program Files (x86)\LilyPond\usr\bin" to the
environmental variable “Path”.
 I think I followed them well, as the "ilypond" command works.  The other
commands "lilypond-book" and "convert-ly" instead give me the following
message:

'lilypond-book' is not recognized as an internal or external command

What I notice is that in the folder in question there are lilypond-book and
convert-ly scripts, but they are without extension (for example * .py)

What do you think about?


Il lun 5 set 2022, 02:13 Knute Snortum  ha scritto:

> On Sun, Sep 4, 2022 at 9:06 AM Rip _Mus 
> wrote:
> >
> > Good morning,
> > I have installed the version 2.22.1, wich I used for a lot of big
> project.
> > A lot of times I tried to open terminal and run "lilypond-book" but
> without success. I already add the folder "...\usr\bin" to the
> environmental variabile path, in fact the command "lilypond" runs.
> > Someone could help me?
>
> It would be helpful to know exactly what is going wrong.  Do you get
> error messages?  Post them.  Not doing what you think it should?  Tell
> us what it's doing and what you think it should be doing.  Also, tell
> us the OS, is it linux?
>
> --
> Knute Snortum
>


Re: Lilypond-book problem

2022-09-04 Thread Knute Snortum
On Sun, Sep 4, 2022 at 9:06 AM Rip _Mus  wrote:
>
> Good morning,
> I have installed the version 2.22.1, wich I used for a lot of big project.
> A lot of times I tried to open terminal and run "lilypond-book" but without 
> success. I already add the folder "...\usr\bin" to the environmental 
> variabile path, in fact the command "lilypond" runs.
> Someone could help me?

It would be helpful to know exactly what is going wrong.  Do you get
error messages?  Post them.  Not doing what you think it should?  Tell
us what it's doing and what you think it should be doing.  Also, tell
us the OS, is it linux?

--
Knute Snortum



Re: lilypond-book texinfo and a two-book-ly-file

2022-07-17 Thread Thomas Morley
Am Sa., 9. Juli 2022 um 13:41 Uhr schrieb Thomas Morley
:

> (2) One of the books is in portrait the other in landscape format
> Is there any texinfo option to get the landscape one rotated?
> That landscape thingy is needed and I can't change it, it may be an
> option to drop the portrait-book, though.
> Even dropping that one I'd need to get the landscape output rotated, though.

I found a way to support portrait _and_ landscape, at least this
problem is solved.



Re: lilypond-book texinfo and a two-book-ly-file

2022-07-09 Thread Thomas Morley
Am Sa., 9. Juli 2022 um 16:44 Uhr schrieb Jean Abou Samra :
>
>
>
> Le 09/07/2022 à 13:41, Thomas Morley a écrit :
> > Hi,
> >
> > for some huge custom code I'm going to write some documentation using 
> > texinfo.
> > I started to set up the file manual.tely.
> > In terminal then:
> >  lilypond-book manual.tely
> >  texi2html manual.texi
> >
> > At some point I have:
> > @lilypondfile[quote]{../doc-snippets/haenschen-klein.ly}
> >
> > Two questions about it:
> > (1) This ly-file ouputs two books and I see several images after
> > running lilypond-book for it:
> > lily-6333cb39-1-1.eps
> > lily-6333cb39-1.eps
> > lily-6333cb39.eps
> > lily-6333cb39-1.png
> > lily-6333cb39.png
> > Alas only the output of the first book is finally printed (i.e. after 
> > texi2html)
> > Is it possible get both books printed?
>
>
> A low-tech solution is to put your music variables in an
> include file and do two ly snippets, each with one of the
> two books.

Ok, I'll continue to try out things :)

> > (2) One of the books is in portrait the other in landscape format
> > Is there any texinfo option to get the landscape one rotated?
> > That landscape thingy is needed and I can't change it, it may be an
> > option to drop the portrait-book, though.
> > Even dropping that one I'd need to get the landscape output rotated, though.
>
> I don't think Texinfo has an easy way to rotate an image when
> inserting it.
>
> If I were to do this, I would probably just write the documentation
> in a .ly file using \markup. Alternatively, I might use Sphinx,
> which unlike Texinfo is extensible, and modify
> https://github.com/sphinx-notes/lilypond
> to add support for rotating the output.
>
> Jean
>

I'll really love the texinfo/lilypond-book/html combination.
Most the feature to click on an image and get the source-code.

Thus \markup in ly-file is no option.
I once tried for another project, it was a nightmare...

I had a quick glance over the sphinx docu
https://sphinx.silverrainz.me/lilypond/
But couldn't figure whether it's possible with sphinx?

Thanks,
  Harm



Re: lilypond-book texinfo and a two-book-ly-file

2022-07-09 Thread Jean Abou Samra




Le 09/07/2022 à 13:41, Thomas Morley a écrit :

Hi,

for some huge custom code I'm going to write some documentation using texinfo.
I started to set up the file manual.tely.
In terminal then:
 lilypond-book manual.tely
 texi2html manual.texi

At some point I have:
@lilypondfile[quote]{../doc-snippets/haenschen-klein.ly}

Two questions about it:
(1) This ly-file ouputs two books and I see several images after
running lilypond-book for it:
lily-6333cb39-1-1.eps
lily-6333cb39-1.eps
lily-6333cb39.eps
lily-6333cb39-1.png
lily-6333cb39.png
Alas only the output of the first book is finally printed (i.e. after texi2html)
Is it possible get both books printed?



A low-tech solution is to put your music variables in an
include file and do two ly snippets, each with one of the
two books.



(2) One of the books is in portrait the other in landscape format
Is there any texinfo option to get the landscape one rotated?
That landscape thingy is needed and I can't change it, it may be an
option to drop the portrait-book, though.
Even dropping that one I'd need to get the landscape output rotated, though.


I don't think Texinfo has an easy way to rotate an image when
inserting it.

If I were to do this, I would probably just write the documentation
in a .ly file using \markup. Alternatively, I might use Sphinx,
which unlike Texinfo is extensible, and modify
https://github.com/sphinx-notes/lilypond
to add support for rotating the output.

Jean




Re: Lilypond-book

2022-03-21 Thread Jonas Hahnfeld via LilyPond user discussion
Am Sonntag, dem 20.03.2022 um 21:33 +0100 schrieb Jean Abou Samra:
> Le 20/03/2022 à 20:34, Martín Rincón Botero a écrit :
> > Hi Jean,
> > 
> > I'm on Ubuntu 20.04. It seems the printing code that we added to 
> > book_latex.py is returning an empty string. Here's the new logging 
> > output of lilypond-book:
> > 
> > lilypond-book (GNU LilyPond) 2.22.1
> > Reading `/home/martin/Escritorio/newfile1.tex'
> > Running `pdflatex' on file `/tmp/tmp0i00kf9b.tex' to detect default 
> > page settings.
> > 
> > lilypond-book: warning: Unable to auto-detect default settings:
> > pdflatex: /home/martin/lilypond/usr/lib/libstdc++.so.6: version 
> > `CXXABI_1.3.9' not found (required by pdflatex)
> > pdflatex: /home/martin/lilypond/usr/lib/libz.so.1: no version 
> > information available (required by /lib/x86_64-linux-gnu/libpng16.so.16)
> > pdflatex: /home/martin/lilypond/usr/lib/libz.so.1: no version 
> > information available (required by /lib/x86_64-linux-gnu/libpng16.so.16)
> 
> 
> 
> Aaah, *that* is the interesting piece of information from the
> start. But -- OMG, I can reproduce it on my own installation.
> I hadn't even imaged it would be broken for me. Is lilypond-book
> actually working for anyone on Linux??

To be fair, only the official binaries and only since the libraries
require version information (not sure when that is). It could be that
many lilypond-book users actually rely on the distro-provided LilyPond.
Also it should only affect PDF-related formats, so for example not
HTML, and I don't understand what the actual implication is (probably
because I don't use lilypond-book myself.)

> At any rate, it seems like it's an issue with the way the
> lilypond-book shell wrapper created by GUB sets LD_LIBRARY_PATH.
> I have no time to investigate what it should do, but the problem
> should go away by installing LilyPond 2.23.6 from
> https://gitlab.com/lilypond/lilypond/-/releases/release%252F2.23.6-1
> since the new infrastructure creating binaries no longer
> does that. For me, that works.

Yes, this is one of the problems about LD_LIBRARY_PATH and why we will
go for full static builds.


signature.asc
Description: This is a digitally signed message part


Re: Lilypond-book

2022-03-20 Thread Martín Rincón Botero
Dear Jean,

thank you very much for your time and patience! If that's the only solution, 
I'll try installing the/this last "unstable" version in the near future.
Regards,
Martín.

On mar. 20 2022, at 9:33 pm, Jean Abou Samra  wrote:
> Le 20/03/2022 à 20:34, Martín Rincón Botero a écrit :
> > Hi Jean,
> >
> > I'm on Ubuntu 20.04. It seems the printing code that we added to
> > book_latex.py is returning an empty string. Here's the new logging
> > output of lilypond-book:
> >
> > lilypond-book (GNU LilyPond) 2.22.1
> > Reading `/home/martin/Escritorio/newfile1.tex'
> > Running `pdflatex' on file `/tmp/tmp0i00kf9b.tex' to detect default
> > page settings.
> >
> > lilypond-book: warning: Unable to auto-detect default settings:
> > pdflatex: /home/martin/lilypond/usr/lib/libstdc++.so.6: version
> > `CXXABI_1.3.9' not found (required by pdflatex)
> > pdflatex: /home/martin/lilypond/usr/lib/libz.so.1: no version
> > information available (required by /lib/x86_64-linux-gnu/libpng16.so.16)
> > pdflatex: /home/martin/lilypond/usr/lib/libz.so.1: no version
> > information available (required by /lib/x86_64-linux-gnu/libpng16.so.16)
>
>
>
> Aaah, *that* is the interesting piece of information from the
> start. But -- OMG, I can reproduce it on my own installation.
> I hadn't even imaged it would be broken for me. Is lilypond-book
> actually working for anyone on Linux??
>
> At any rate, it seems like it's an issue with the way the
> lilypond-book shell wrapper created by GUB sets LD_LIBRARY_PATH.
> I have no time to investigate what it should do, but the problem
> should go away by installing LilyPond 2.23.6 from
> https://gitlab.com/lilypond/lilypond/-/releases/release%252F2.23.6-1
> since the new infrastructure creating binaries no longer
> does that. For me, that works.
>
> Jean

Re: Lilypond-book

2022-03-20 Thread Jean Abou Samra

Le 20/03/2022 à 20:34, Martín Rincón Botero a écrit :

Hi Jean,

I'm on Ubuntu 20.04. It seems the printing code that we added to 
book_latex.py is returning an empty string. Here's the new logging 
output of lilypond-book:


lilypond-book (GNU LilyPond) 2.22.1
Reading `/home/martin/Escritorio/newfile1.tex'
Running `pdflatex' on file `/tmp/tmp0i00kf9b.tex' to detect default 
page settings.


lilypond-book: warning: Unable to auto-detect default settings:
pdflatex: /home/martin/lilypond/usr/lib/libstdc++.so.6: version 
`CXXABI_1.3.9' not found (required by pdflatex)
pdflatex: /home/martin/lilypond/usr/lib/libz.so.1: no version 
information available (required by /lib/x86_64-linux-gnu/libpng16.so.16)
pdflatex: /home/martin/lilypond/usr/lib/libz.so.1: no version 
information available (required by /lib/x86_64-linux-gnu/libpng16.so.16)




Aaah, *that* is the interesting piece of information from the
start. But -- OMG, I can reproduce it on my own installation.
I hadn't even imaged it would be broken for me. Is lilypond-book
actually working for anyone on Linux??

At any rate, it seems like it's an issue with the way the
lilypond-book shell wrapper created by GUB sets LD_LIBRARY_PATH.
I have no time to investigate what it should do, but the problem
should go away by installing LilyPond 2.23.6 from
https://gitlab.com/lilypond/lilypond/-/releases/release%252F2.23.6-1
since the new infrastructure creating binaries no longer
does that. For me, that works.

Jean




Re: Lilypond-book

2022-03-20 Thread Martín Rincón Botero
Hi Jean,

I'm on Ubuntu 20.04. It seems the printing code that we added to book_latex.py 
is returning an empty string. Here's the new logging output of lilypond-book:
lilypond-book (GNU LilyPond) 2.22.1
Reading `/home/martin/Escritorio/newfile1.tex'
Running `pdflatex' on file `/tmp/tmp0i00kf9b.tex' to detect default page 
settings.

lilypond-book: warning: Unable to auto-detect default settings:
pdflatex: /home/martin/lilypond/usr/lib/libstdc++.so.6: version `CXXABI_1.3.9' 
not found (required by pdflatex)
pdflatex: /home/martin/lilypond/usr/lib/libz.so.1: no version information 
available (required by /lib/x86_64-linux-gnu/libpng16.so.16)
pdflatex: /home/martin/lilypond/usr/lib/libz.so.1: no version information 
available (required by /lib/x86_64-linux-gnu/libpng16.so.16)

lilypond-book: warning: cannot detect textwidth from LaTeX
Dissecting...
All snippets are up to date...
Linking files...
Compiling `newfile1.tex'...
Writing `/home/martin/Escritorio/out/newfile1.tex'...
''

On mar. 20 2022, at 8:18 pm, Jean Abou Samra  wrote:
> Le 20/03/2022 à 19:49, Martín Rincón Botero a écrit :
> > Hi Jean,
> >
> > thank you very much for wanting to take a look at it. Attached is the
> > .log file.
>
>
> Pheew. It looks correct, so something is wrong in the way lilypond-book
> gets it from the system. OK, can you locate the file book_latex.py in
> your LilyPond installation and apply the following diff?
>
>
> diff --git a/python/book_latex.py b/python/book_latex.py
> index ab8b2c7d3e..1c0f7bff50 100644
> --- a/python/book_latex.py
> +++ b/python/book_latex.py
> @@ -256,7 +256,9 @@ def get_latex_textwidth(source, global_options):
> os.unlink(tmpfile)
> if os.path.exists(auxfile):
> os.unlink(auxfile)
> + print(repr(parameter_string))
> if os.path.exists(logfile):
> + print(repr(parameter_string))
> parameter_string = open(logfile, encoding="utf8").read()
> os.unlink(logfile)
>
>
> Then re-run and paste the lilypond-book logging output. Also, what OS
> are you running? Is it Windows?
>



Re: Lilypond-book

2022-03-20 Thread Jean Abou Samra

Le 20/03/2022 à 19:49, Martín Rincón Botero a écrit :

Hi Jean,

thank you very much for wanting to take a look at it. Attached is the 
.log file.



Pheew. It looks correct, so something is wrong in the way lilypond-book 
gets it from the system. OK, can you locate the file book_latex.py in 
your LilyPond installation and apply the following diff?



diff --git a/python/book_latex.py b/python/book_latex.py
index ab8b2c7d3e..1c0f7bff50 100644
--- a/python/book_latex.py
+++ b/python/book_latex.py
@@ -256,7 +256,9 @@ def get_latex_textwidth(source, global_options):
 os.unlink(tmpfile)
 if os.path.exists(auxfile):
 os.unlink(auxfile)
+    print(repr(parameter_string))
 if os.path.exists(logfile):
+    print(repr(parameter_string))
 parameter_string = open(logfile, encoding="utf8").read()
 os.unlink(logfile)


Then re-run and paste the lilypond-book logging output. Also, what OS 
are you running? Is it Windows?





Re: Lilypond-book

2022-03-20 Thread Martín Rincón Botero
Hi Jean,

thank you very much for wanting to take a look at it. Attached is the .log file.
Regards,
Martín.

On mar. 16 2022, at 8:42 pm, Jean Abou Samra  wrote:
>
>
> Le 16/03/2022 à 11:18, Martín Rincón Botero a écrit :
> > Dear community,
> >
> > so that I have any idea on where to look and maybe give more useful
> > information, I got this warning (that should be an error, because the
> > pdf output is useless) when using lilypond-book after upgrading to
> > Lilypond 2.22.1 (it used to work perfectly before) on Ubuntu
> > 20.04: lilypond-book: warning: cannot detect textwidth from LaTeX.
> > After googling I've seen some people who run into this problem when
> > using Xetex, but I'm using PdfLatex, so their solutions obviously
> > don't work in my case. What could be causing this problem?
>
>
>
> Can you compile a file made of your LaTeX preamble to which you append
> \begin{document}
> \typeout{textwidth=\the\textwidth}
> \typeout{columnsep=\the\columnsep}
> \makeatletter\if@twocolumn\typeout{columns=2}\fi\makeatother
> \end{document}
>
>
> and attach the .log file?
> Jean

newfile1.log
Description: Binary data


Re: Lilypond-book

2022-03-16 Thread Jean Abou Samra




Le 16/03/2022 à 11:18, Martín Rincón Botero a écrit :

Dear community,

so that I have any idea on where to look and maybe give more useful 
information, I got this warning (that should be an error, because the 
pdf output is useless) when using lilypond-book after upgrading to 
Lilypond 2.22.1 (it used to work perfectly before) on Ubuntu 
20.04: lilypond-book: warning: cannot detect textwidth from LaTeX. 
After googling I've seen some people who run into this problem when 
using Xetex, but I'm using PdfLatex, so their solutions obviously 
don't work in my case. What could be causing this problem?




Can you compile a file made of your LaTeX preamble to which you append

\begin{document}
\typeout{textwidth=\the\textwidth}
\typeout{columnsep=\the\columnsep}
\makeatletter\if@twocolumn\typeout{columns=2}\fi\makeatother
\end{document}


and attach the .log file?

Jean




Re: lilypond book

2021-09-21 Thread Carlos Martinez
Woah! I think this is above my head!

I would be perhaps interested in learning laTex but I do have questions, 

Does it disrupts the layout on the lilypond files?

There has to be an easy way to use the book function. I cannot find a sample I 
saw and would like to use to add the 13 pieces under one file easier on 
lilypond. Perhaps is easier in Latex I don’t know. I would have to try …

> On Sep 21, 2021, at 17:33, Karlin High  wrote:
> 
> On 9/21/2021 5:17 PM, Richard Chonak wrote:
>> If you're familiar with LaTeX, you can create a document that invokes 
>> Lilypond scores:
> 
> In that case, there is also lyluatex:
> 
> 
> -- 
> Karlin High
> Missouri, USA
> 




Re: lilypond book

2021-09-21 Thread Karlin High

On 9/21/2021 5:17 PM, Richard Chonak wrote:
If you're familiar with LaTeX, you can create a document that invokes 
Lilypond scores:


In that case, there is also lyluatex:


--
Karlin High
Missouri, USA



Re: lilypond book

2021-09-21 Thread Richard Chonak
If you're familiar with LaTeX, you can create a document that invokes 
Lilypond scores:


main.lytex:

\documentclass[12pt]{book}
\usepackage[paperheight=10in,paperwidth=7in,margin=0.5in,twoside]{geometry} 


\usepackage[latin,main=english]{babel}
\usepackage{fontspec}
\usepackage{fancyhdr}
\pagestyle{empty}

\lilypondfile[noindent,staffsize=18,line-width=6\in]{Score1.ly}
\newpage
\lilypondfile[noindent,staffsize=18,line-width=6\in]{Score2.ly}



and process it with the command:

lilypond-book main.lytex




Re: lilypond book

2021-09-21 Thread Carlos Martinez
Hi, this could work! I will try it. But what I would like to do is to use the 
same independent file of the pieces, 

So for example the include piece1.ly 


Then I can just update one file…

And then include the piece1.ly  and piece2.ly 
 into the book..?




> On Sep 21, 2021, at 16:27, Knute Snortum  wrote:
> 
> On Tue, Sep 21, 2021 at 11:13 AM Carlos Martinez
>  wrote:
>> 
>> Hi,
>> 
>> I am trying to put together a book. A collection  of 13 pieces with lilypond.
> ...
>> I want each piece to show its own
>> 
>> - Title and composer
>> - each piece start in its own page.
>> 
>> I am trying to setting it up but I cannot do it!
>> 
>> I have already engraved each piece… and would love to have the include. But 
>> somehow it is not working..
> ...
> 
> If I understand your question, would this work?  I don't know what's
> in your includes, so I can't help you there.
> 
> %%%
> \version "2.20.0"
> 
> music = { c'4 4 4 4 }
> 
> \bookpart {
>  \header {
>title = "Title 1"
>composer = "Composer 1"
>  }
>  \score {
>\new Staff \music
>  }
> }
> 
> \bookpart {
>  \header {
>title = "Title 2"
>composer = "Composer 2"
>  }
>  \score {
>\new Staff \music
>  }
> }
> %%%
> 
> --
> Knute Snortum
> 



Re: lilypond book

2021-09-21 Thread Knute Snortum
On Tue, Sep 21, 2021 at 11:13 AM Carlos Martinez
 wrote:
>
> Hi,
>
> I am trying to put together a book. A collection  of 13 pieces with lilypond.
...
> I want each piece to show its own
>
> - Title and composer
> - each piece start in its own page.
>
> I am trying to setting it up but I cannot do it!
>
> I have already engraved each piece… and would love to have the include. But 
> somehow it is not working..
...

If I understand your question, would this work?  I don't know what's
in your includes, so I can't help you there.

%%%
\version "2.20.0"

music = { c'4 4 4 4 }

\bookpart {
  \header {
title = "Title 1"
composer = "Composer 1"
  }
  \score {
\new Staff \music
  }
}

\bookpart {
  \header {
title = "Title 2"
composer = "Composer 2"
  }
  \score {
\new Staff \music
  }
}
%%%

--
Knute Snortum



Re: lilypond-book executable

2021-02-12 Thread Daniel Connors
Thank you for pointing out my typo.  I apologize for that.  In some of the
previous versions of lilypond, the python scripts in the /bin directory did
not have the .py extension and Windows wouldn't run those python scripts.
(That didn't wasn't a problem for Linux users.)

Dan

On Fri, Feb 12, 2021 at 9:44 AM Phil Holmes  wrote:

> Not sure if the missing "d" is a typo - I assume it is.  In that case,
> there's no need to rename it because it is called lilypond-book.py as
> installed.  Windows, of course "helpfully" hides extensions by default, so
> it may not appear as that in Windows Explorer.
>
> On 12/02/2021 14:02, Daniel Connors wrote:
> > If you want to run lilypond-book on Windows, you'll need to rename it to
> lilypon-book.py
> >
> > Dan
>
> --
> Phil Holmes
>
>


Re: lilypond-book executable

2021-02-12 Thread Phil Holmes

Not sure if the missing "d" is a typo - I assume it is.  In that case, there's no need to 
rename it because it is called lilypond-book.py as installed.  Windows, of course 
"helpfully" hides extensions by default, so it may not appear as that in Windows Explorer.

On 12/02/2021 14:02, Daniel Connors wrote:

If you want to run lilypond-book on Windows, you'll need to rename it to 
lilypon-book.py

Dan


--
Phil Holmes




Re: lilypond-book executable

2021-02-12 Thread Daniel Connors
If you want to run lilypond-book on Windows, you'll need to rename it to
lilypon-book.py

Dan


Re: lilypond-book executable

2021-02-12 Thread Phil Holmes

It is a python file, not an executable (as in not a .exe).

On 11/02/2021 23:00, Luke Bang wrote:

Hi,
I just installed lilypond and according to the website I see that there's a 
lilypond-book executable I can run in the Windows version.
I don't see this in the /usr/bin directory, but I do see some other file by the 
name lilypond-book which is not an executable. Am I missing something?

Thanks,
Luke


--
Phil Holmes




Re: lilypond-book executable

2021-02-12 Thread David Menéndez Hurtado
How did you install it? Here is what I get on my system:

 [david@Hopper ~]$ ll /usr/bin/lilypond-book
-rwxr-xr-x. 1 root root 27690 Jan 20 19:01 /usr/bin/lilypond-book

As you can see, it is executable.


/David.

On Fri, 12 Feb 2021 at 00:29, Luke Bang  wrote:

> Hi,
> I just installed lilypond and according to the website I see that there's
> a lilypond-book executable I can run in the Windows version.
> I don't see this in the /usr/bin directory, but I do see some other file
> by the name lilypond-book which is not an executable. Am I missing
> something?
>
> Thanks,
> Luke
>


Re: lilypond-book executable

2021-02-11 Thread David Wright
On Thu 11 Feb 2021 at 17:00:33 (-0600), Luke Bang wrote:
> I just installed lilypond and according to the website I see that there's a
> lilypond-book executable I can run in the Windows version.
> I don't see this in the /usr/bin directory, but I do see some other file by
> the name lilypond-book which is not an executable. Am I missing something?

A listing of the directory might help. For linux, that looks like:

$ ls … lilypond-2.22.0-1.linux-64/bin/
lrwxrwxrwx  67 abc2ly -> 
/…/lilypond-2.22.0-1.linux-64/bin/lilypond-wrapper.python3
lrwxrwxrwx  67 convert-ly -> 
/…/lilypond-2.22.0-1.linux-64/bin/lilypond-wrapper.python3
lrwxrwxrwx  67 etf2ly -> 
/…/lilypond-2.22.0-1.linux-64/bin/lilypond-wrapper.python3
-rwxr-x--- 180 lilypond
lrwxrwxrwx  67 lilypond-book -> 
/…/lilypond-2.22.0-1.linux-64/bin/lilypond-wrapper.python3
lrwxrwxrwx  65 lilypond-invoke-editor -> 
/…/lilypond-2.22.0-1.linux-64/bin/lilypond-wrapper.guile
-rwxr-x--- 555 lilypond-wrapper.guile
-rwxr-x--- 557 lilypond-wrapper.python3
lrwxrwxrwx  67 midi2ly -> 
/…/lilypond-2.22.0-1.linux-64/bin/lilypond-wrapper.python3
lrwxrwxrwx  67 mup2ly -> 
/…/lilypond-2.22.0-1.linux-64/bin/lilypond-wrapper.python3
lrwxrwxrwx  67 musicxml2ly -> 
/…/lilypond-2.22.0-1.linux-64/bin/lilypond-wrapper.python3
-rwxr-x--- 874 uninstall-lilypond
$ 

So almost all the programs that one commands are symlinks to
wrapper scripts that ensure the correct library versions are used.
(The number are "file" sizes.)

Cheers,
David.



Re: lilypond-book V2.22.0 hanging on Windows 10

2021-01-13 Thread Daniel Connors
David,

Yes, I am running on Windows.  I made sure that no PDF viewer was running
and tried running the lilypond-book script and it still hangs.  I even
closed emacs to make sure that some file in my emacs buffers wasn't the
culprit.  The script is hanging on Windows 10.

Thank you for your suggestion.

Dan

On Wed, Jan 13, 2021 at 12:09 AM David Wright 
wrote:

> On Tue 12 Jan 2021 at 11:21:40 (-0500), Daniel Connors wrote:
> > I am trying to embed a music engraving in a LaTeX document and am
> following
> > the example given at
> >
> https://lilypond.org/doc/v2.19/Documentation/usage/an-example-of-a-musicological-document
> .
> > My example is a bit simpler than what is given in the documentation.  I
> > have named this file lilylatexly.lytex
> > ---
> >
> > \documentclass[a4paper]{article}
> >
> > \begin{document}
> >
> > Documents for \verb+lilypond-book+ may freely mix music and text.
> > For example,
> >
> > \begin{lilypond}
> > \relative c' {
> >   c2 e2 \tuplet 3/2 { f8 a b } a2 e4
> > }
> > \end{lilypond}
> >
> > Options are put in brackets.
> >
> > \begin{lilypond}[fragment,quote,staffsize=26,verbatim]
> >   c'4 f16
> > \end{lilypond}
> >
> > \end{document}
> >
> > -
> >
> > When I run the lilypond-book python script to process the .lytex file,
> the
> > process starts, then hands and I get this python error traceback when I
> > kill the process with Ctrl-C:
> >
> > c:\Labs>lilypond-book --output=out --pdf lilylatexly.lytex
> > lilypond-book.py (GNU LilyPond) 2.22.0
> > Reading `c:\Labs\lilylatexly.lytex'
> > Running `pdflatex' on file
> > `C:\Users\X~1\AppData\Local\Temp\tmphrkt8nkt.tex' to detect default
> > page settings.
> >
> > Traceback (most recent call last):
> >   File "C:\Program Files (x86)\LilyPond\usr\bin\lilypond-book.py", line
> > 820, in 
> > main()
> >   File "C:\Program Files (x86)\LilyPond\usr\bin\lilypond-book.py", line
> > 798, in main
> > chunks = do_file(files[0])
> >   File "C:\Program Files (x86)\LilyPond\usr\bin\lilypond-book.py", line
> > 600, in do_file
> > global_options.formatter.init_default_snippet_options(source)
> >   File "C:\Program Files
> > (x86)\LilyPond\usr\share\lilypond\current\python\book_base.py", line 173,
> > in init_default_snippet_options
> > line_width = self.get_line_width(source)
> >   File "C:\Program Files
> > (x86)\LilyPond\usr\share\lilypond\current\python\book_latex.py", line
> 314,
> > in get_line_width
> > textwidth = get_latex_textwidth(source, self.global_options)
> >   File "C:\Program Files
> > (x86)\LilyPond\usr\share\lilypond\current\python\book_latex.py", line
> 247,
> > in get_latex_textwidth
> > (parameter_string, error_string) = proc.communicate()
> >   File
> >
> "C:\Users\X\AppData\Local\Programs\Python\Python37\lib\subprocess.py",
> > line 920, in communicate
> > stdout, stderr = self._communicate(input, endtime, timeout)
> >   File
> >
> "C:\Users\X\AppData\Local\Programs\Python\Python37\lib\subprocess.py",
> > line 1244, in _communicate
> > self.stdout_thread.join(self._remaining_time(endtime))
> >   File
> > "C:\Users\\AppData\Local\Programs\Python\Python37\lib\threading.py",
> > line 1032, in join
> > self._wait_for_tstate_lock()
> >   File
> > "C:\Users\X\AppData\Local\Programs\Python\Python37\lib\threading.py",
> > line 1048, in _wait_for_tstate_lock
> > elif lock.acquire(block, timeout):
> > KeyboardInterrupt
> > ---
> > NOTES:
> > (1) I am running python 3.7;  I don't have any versions of python 2.X on
> my
> > PC.  I had seen in discussion threads that I needed to have a newer
> version
> > of lilypond so that python 3 would work with the lilypond-book python
> > scripts.  I removed my older version of lilypond and now have V2.22.0
> > installed.
> >
> > (2) I had to rename lilypond-book to lilypond-book.py so that Windows 10
> > recognized it as a python script.
> >
> > (3) This example works fine with my linux installation of lilypond
> 2.22.0.
> >
> > (4) From the python traceback there is some locking going on.  I don't
> know
> > if this is some problem with write access to files?  Do I need to invoke
> > the script with ADMIN privileges?
>
> You appear to be running on Windows. A common problem is that Windows
> doesn't let you write to a file that another application has open.
> So make sure you close out.pdf before you run lilypond-book.
> (I don't *think* you have to delete it as well.)
>
> Cheers,
> David.
>


Re: lilypond-book V2.22.0 hanging on Windows 10

2021-01-12 Thread David Wright
On Tue 12 Jan 2021 at 11:21:40 (-0500), Daniel Connors wrote:
> I am trying to embed a music engraving in a LaTeX document and am following
> the example given at
> https://lilypond.org/doc/v2.19/Documentation/usage/an-example-of-a-musicological-document.
> My example is a bit simpler than what is given in the documentation.  I
> have named this file lilylatexly.lytex
> ---
> 
> \documentclass[a4paper]{article}
> 
> \begin{document}
> 
> Documents for \verb+lilypond-book+ may freely mix music and text.
> For example,
> 
> \begin{lilypond}
> \relative c' {
>   c2 e2 \tuplet 3/2 { f8 a b } a2 e4
> }
> \end{lilypond}
> 
> Options are put in brackets.
> 
> \begin{lilypond}[fragment,quote,staffsize=26,verbatim]
>   c'4 f16
> \end{lilypond}
> 
> \end{document}
> 
> -
> 
> When I run the lilypond-book python script to process the .lytex file, the
> process starts, then hands and I get this python error traceback when I
> kill the process with Ctrl-C:
> 
> c:\Labs>lilypond-book --output=out --pdf lilylatexly.lytex
> lilypond-book.py (GNU LilyPond) 2.22.0
> Reading `c:\Labs\lilylatexly.lytex'
> Running `pdflatex' on file
> `C:\Users\X~1\AppData\Local\Temp\tmphrkt8nkt.tex' to detect default
> page settings.
> 
> Traceback (most recent call last):
>   File "C:\Program Files (x86)\LilyPond\usr\bin\lilypond-book.py", line
> 820, in 
> main()
>   File "C:\Program Files (x86)\LilyPond\usr\bin\lilypond-book.py", line
> 798, in main
> chunks = do_file(files[0])
>   File "C:\Program Files (x86)\LilyPond\usr\bin\lilypond-book.py", line
> 600, in do_file
> global_options.formatter.init_default_snippet_options(source)
>   File "C:\Program Files
> (x86)\LilyPond\usr\share\lilypond\current\python\book_base.py", line 173,
> in init_default_snippet_options
> line_width = self.get_line_width(source)
>   File "C:\Program Files
> (x86)\LilyPond\usr\share\lilypond\current\python\book_latex.py", line 314,
> in get_line_width
> textwidth = get_latex_textwidth(source, self.global_options)
>   File "C:\Program Files
> (x86)\LilyPond\usr\share\lilypond\current\python\book_latex.py", line 247,
> in get_latex_textwidth
> (parameter_string, error_string) = proc.communicate()
>   File
> "C:\Users\X\AppData\Local\Programs\Python\Python37\lib\subprocess.py",
> line 920, in communicate
> stdout, stderr = self._communicate(input, endtime, timeout)
>   File
> "C:\Users\X\AppData\Local\Programs\Python\Python37\lib\subprocess.py",
> line 1244, in _communicate
> self.stdout_thread.join(self._remaining_time(endtime))
>   File
> "C:\Users\\AppData\Local\Programs\Python\Python37\lib\threading.py",
> line 1032, in join
> self._wait_for_tstate_lock()
>   File
> "C:\Users\X\AppData\Local\Programs\Python\Python37\lib\threading.py",
> line 1048, in _wait_for_tstate_lock
> elif lock.acquire(block, timeout):
> KeyboardInterrupt
> ---
> NOTES:
> (1) I am running python 3.7;  I don't have any versions of python 2.X on my
> PC.  I had seen in discussion threads that I needed to have a newer version
> of lilypond so that python 3 would work with the lilypond-book python
> scripts.  I removed my older version of lilypond and now have V2.22.0
> installed.
> 
> (2) I had to rename lilypond-book to lilypond-book.py so that Windows 10
> recognized it as a python script.
> 
> (3) This example works fine with my linux installation of lilypond 2.22.0.
> 
> (4) From the python traceback there is some locking going on.  I don't know
> if this is some problem with write access to files?  Do I need to invoke
> the script with ADMIN privileges?

You appear to be running on Windows. A common problem is that Windows
doesn't let you write to a file that another application has open.
So make sure you close out.pdf before you run lilypond-book.
(I don't *think* you have to delete it as well.)

Cheers,
David.



Re: lilypond-book→latex

2018-12-21 Thread N. Andrew Walsh
On Fri, Dec 21, 2018 at 7:24 PM Urs Liska  wrote:

>
> Why do you want this? Is there any specific reason not to use lualatex? I
> know you already run lyluatex in the Kayser project.
>

Well, because in this case it's in a chapter in my dissertation, the whole
of which is in Lyx. I'd rather avoid redoing the whole toolchain if I can.

But as Lyx seems to work less and less well with all the custom nonsense I
keep adding, I might have to take the plunge eventually.

Cheers,

A
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: lilypond-book→latex

2018-12-21 Thread Urs Liska


Am 21. Dezember 2018 19:19:21 MEZ schrieb "N. Andrew Walsh" 
:
>Hi Federico,
>
>according to release notes, Lyx has had support for lilypond-book for
>some
>time now. See here:
>
>https://wiki.lyx.org/LyX/NewInLyX20#lb
>
>That's where it says it requires the "lilypond-book→(pdf)latex"
>package,
>which my Lyx says it can't find.
>
>Any advice? Are there any Lyx users who got this working?

Why do you want this? Is there any specific reason not to use lualatex? I know 
you already run lyluatex in the Kayser project.

If it is about existing documents: these *should* readily compile with lyluatex 
that provides a superset of lilypond-boom syntax.

Urs

>
>Cheers,
>
>A
>
>On Fri, Dec 21, 2018 at 7:14 PM Federico Bruni 
>wrote:
>
>>
>>
>> Il giorno ven 21 dic 2018 alle 11:24, "N. Andrew Walsh"
>>  ha scritto:
>> > Hi List,
>> >
>> > dumb question: I'm trying to integrate lilypond into my Lyx
>document,
>> > and while it has the lilypond-book module, it says it can't find
>the
>> > "lilypond-book→(pdf)latex" package. Where do I find this package?
>> >
>> > I have lilypond installed in its own subdirectory, as well as my
>> > texlive installation in another one (so neither are the system
>> > packages from my distribution's repo). I'm using gentoo Linux.
>> >
>>
>> Hi Andrew
>>
>> lilypond-book is a preprocessor and I don't think you can use it in
>Lyx
>> (I have zero experience with Lyx though).
>>
>> Why don't you try lyluatex?
>> https://github.com/jperon/lyluatex/blob/master/README.en.md
>>
>> Then you can process your .tex file directly using lualatex and I
>guess
>> this will play well with Lyx.
>>
>>
>>
>>

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: lilypond-book→latex

2018-12-21 Thread N. Andrew Walsh
Hi Federico,

according to release notes, Lyx has had support for lilypond-book for some
time now. See here:

https://wiki.lyx.org/LyX/NewInLyX20#lb

That's where it says it requires the "lilypond-book→(pdf)latex" package,
which my Lyx says it can't find.

Any advice? Are there any Lyx users who got this working?

Cheers,

A

On Fri, Dec 21, 2018 at 7:14 PM Federico Bruni  wrote:

>
>
> Il giorno ven 21 dic 2018 alle 11:24, "N. Andrew Walsh"
>  ha scritto:
> > Hi List,
> >
> > dumb question: I'm trying to integrate lilypond into my Lyx document,
> > and while it has the lilypond-book module, it says it can't find the
> > "lilypond-book→(pdf)latex" package. Where do I find this package?
> >
> > I have lilypond installed in its own subdirectory, as well as my
> > texlive installation in another one (so neither are the system
> > packages from my distribution's repo). I'm using gentoo Linux.
> >
>
> Hi Andrew
>
> lilypond-book is a preprocessor and I don't think you can use it in Lyx
> (I have zero experience with Lyx though).
>
> Why don't you try lyluatex?
> https://github.com/jperon/lyluatex/blob/master/README.en.md
>
> Then you can process your .tex file directly using lualatex and I guess
> this will play well with Lyx.
>
>
>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: lilypond-book→latex

2018-12-21 Thread Federico Bruni



Il giorno ven 21 dic 2018 alle 11:24, "N. Andrew Walsh" 
 ha scritto:

Hi List,

dumb question: I'm trying to integrate lilypond into my Lyx document, 
and while it has the lilypond-book module, it says it can't find the 
"lilypond-book→(pdf)latex" package. Where do I find this package?


I have lilypond installed in its own subdirectory, as well as my 
texlive installation in another one (so neither are the system 
packages from my distribution's repo). I'm using gentoo Linux.




Hi Andrew

lilypond-book is a preprocessor and I don't think you can use it in Lyx 
(I have zero experience with Lyx though).


Why don't you try lyluatex?
https://github.com/jperon/lyluatex/blob/master/README.en.md

Then you can process your .tex file directly using lualatex and I guess 
this will play well with Lyx.





___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Lilypond-Book error (can't find the "screech-and-boink.ly" snippet)

2018-10-09 Thread Pedro Pessoa
ps: I am on a Windows 6.1.7601



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: lilypond-book

2018-09-27 Thread David Price

Never mind. I got it. It was a typo in the link I put into my bin folder.



> On Sep 27, 2018, at 10:31 AM, David Price  wrote:
> 
> Hello. I am trying to use the lilypond-book example in Chapter 3.1 : 
> lilypond-book --output=out --pdf lilybook.lytex
> 
> but got an error message: cannot determine format for:  lilypond-book.lytexa
> 
> so I added "-f latex: to the input :   lilypond-book -f latex --output=out 
> --pdf lilybook.lytex
> 
> and got the error message:  file not found: lilybook.lytexa
> 
> Why is it adding an "a" to the end of the word lytex?
> 
> 
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: lilypond-book: Special characters in filenames using \lilypondfile with LaTeX

2018-02-08 Thread Urs Liska



Am 08.02.2018 um 11:09 schrieb André Rohrbach:

Hi :)

I use LilyPond in combination with LaTeX since a few weeks and I'm
very happy about this great piece of software!
Yesterday I came across an issue using lilypond-book:



If you are just starting to use LilyPond with LaTeX I suggest you have a 
look at the lyluatex package (https://github.com/jperon/lyluatex), which 
we're currently completing to be a fully compatible with lilypond-book. 
Different from lilypond-book it's not a preprocessor but will handle the 
LilyPond compilation directly from the LaTeX run.

Although it will probably not help you with your issue at hand.

Also https://github.com/uliska/musicexamples might be of interest to you 
- but I will soon make substantial changes to it, also to work with 
lyluatex (means: you are encouraged to have a look at the package but 
shouldn't get too involved with learning it or even using it in real 
documents).



Best
Urs

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: lilypond-book: Special characters in filenames using \lilypondfile with LaTeX

2018-02-08 Thread Br. Samuel Springuel
Not sure about quotes, but LaTeX, as a rule, hates spaces in filenames. 
They should be avoided at all costs in LaTeX documents.  Even though 
lilypond-book is a preprocessor (and thus not subject to the same 
restrictions), it thus wouldn't surprise me that it is the same way.

--
✝
Br. Samuel, OSB
St. Anselm’s Abbey
Washington, DC
(R. Padraic Springuel)

PAX ☧ ΧΡΙΣΤΟΣ

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Lilypond-book error messages

2016-10-15 Thread David Kastrup
bostjan k  writes:

> I've installed Lilypond on Windows 10. Converting ly files seems ok.
>
> When I run lilypond-book on the test file, I get the following:
>
> ---
>
> C:\Users\Bostjan\lily\test>lilypond-book --pdf tt2.lytex
> lilypond-book.py (GNU LilyPond) 2.18.2
> Reading tt2.lytex...
> Running `pdflatex' on file
> `c:\users\botjan~1\appdata\local\temp\tmp6cukep.tex' to detect default page
> settings.
>
> lilypond-book.py: warning: Unable to auto-detect default settings:
>
> lilypond-book.py: warning: cannot detect textwidth from LaTeX

Put LaTeX somewhere where lilypond-book can find it (adjust PATH ?).

> stderr_write
> encoded_write (sys.stderr, s)
>   File "C:\Program Files
> (x86)\LilyPond\usr\share\lilypond\current\python\lilylib.py", line 63, in
> encoded_write
> f.write (s.encode (f.encoding or 'utf-8', 'replace'))
> UnicodeDecodeError: 'utf8' codec can't decode byte 0x9a in position 21:
> unexpected code byte
>
>
> -
>
>
> I've no idea what to do. 

Write your source file with an utf-8 capable editor.  LilyPond and
lilypond-book cannot deal with anything else.

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: lilypond-book: Processing multiple lytex files with a single command

2016-09-27 Thread David Kastrup
tapani  writes:

> I managed to tweak this to make it work for my project. Thank you very much
> indeed!
>
> A further question:
>
> The way I have built my project is to have lots (100+) individual .lytex
> files, which are compiled and the resulting .tex files are included in a
> master .tex file (using \input). However, for that to work, the preambles of
> all the intermediate .tex files need to be removed (in my case, commented
> out), together with "\begin/end{document}".
>
> Can I use the makefile to do that: to read each individual .tex file, append
> a % sign on every line in the preamble, etc., and then compile the master
> file?
>
> My current makefile looks like this:
>
>
>
>
> tapani wrote
>> Thank you. I will give this a go.

That does not look like a Makefile.

At any rate, this looks like you could probably work with the "combine"
document class for combining several full LaTeX documents.

If your TeX installation has documentation installed, the command

texdoc combine

should tell you more.

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: lilypond-book: Processing multiple lytex files with a single command

2016-09-27 Thread tapani
I managed to tweak this to make it work for my project. Thank you very much
indeed!

A further question:

The way I have built my project is to have lots (100+) individual .lytex
files, which are compiled and the resulting .tex files are included in a
master .tex file (using \input). However, for that to work, the preambles of
all the intermediate .tex files need to be removed (in my case, commented
out), together with "\begin/end{document}".

Can I use the makefile to do that: to read each individual .tex file, append
a % sign on every line in the preamble, etc., and then compile the master
file?

My current makefile looks like this:




tapani wrote
> Thank you. I will give this a go.





--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/lilypond-book-Processing-multiple-lytex-files-with-a-single-command-tp194804p194979.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: lilypond-book: Processing multiple lytex files with a single command

2016-09-24 Thread tapani
Thank you. I will give this a go.



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/lilypond-book-Processing-multiple-lytex-files-with-a-single-command-tp194804p194895.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: lilypond-book: Processing multiple lytex files with a single command

2016-09-24 Thread tapani
Many thanks. This works well.



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/lilypond-book-Processing-multiple-lytex-files-with-a-single-command-tp194804p194894.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: lilypond-book: Processing multiple lytex files with a single command

2016-09-21 Thread Federico Bruni
Il giorno mer 21 set 2016 alle 14:49, tapani  ha 
scritto:
I need to process several dozen lytex files at once for a single 
project (on
Ubuntu). Is there a way of processing every lytex file in a given 
location
with a single command, rather than having to compile each one 
separately?


[I read somewhere about using a makefile, but I failed to understand 
it

sufficiently to apply it.]

Any help would be very much appreciated!


Hey Tapani

Yes, makefile is a good way to go.
I started using it in the last weeks and I think it's very very useful 
with LilyPond. I've been wanting to try to improve the doc about 
Makefile but didn't find the time to study it a bit more and try a 
patch.


Basically you'll have to do something like this (replace "[TAB] " with 
a real TAB character):


# Rule to compile any .ly file to PDF and MIDI
# The pattern is "output: input". I'll use % (same as * in bash), to 
catch all files ending with...

# $< is the input file
#
%.pdf, %.midi: %.ly
[TAB] lilypond $<

# Rule to build a lilypond-book file
mybook.pdf: mybook.lytex
[TAB] lilypond-book OPTIONS... $<

# Targets
book: mybook.pdf

clean:
[TAB] rm *.pdf *.midi




___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: lilypond-book: Processing multiple lytex files with a single command

2016-09-21 Thread mskala
On Wed, 21 Sep 2016, tapani wrote:
> I need to process several dozen lytex files at once for a single project (on
> Ubuntu). Is there a way of processing every lytex file in a given location
> with a single command, rather than having to compile each one separately?

for fn in *.lytex ; do lilypond-book $fn ; done

-- 
Matthew Skala
msk...@ansuz.sooke.bc.ca People before principles.
http://ansuz.sooke.bc.ca/

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: lilypond-book: warning: cannot detect textwidth from LaTeX

2016-07-28 Thread Federico Bruni

David, many thanks for showing a working example.


 Dissecting...
 lilypond-book: error: file not found: 23.10.63.ly


This is embarassing: it was just an oversight of mine, as the file name 
is 23-10-63.ly. Sorry.


The other problem was related to the lilypond executable:

1. lilypond.org binary package version 2.19.45 installed in 
~/.local/bin had some relocation problem (see output pasted in a 
previous email)
2. Fedora lilypond package had another sort of problem (see below). 
Don't know if this is related to GCC6.


Finally I installed version 2.19.46 under /usr/local and it works fine.

So problem solved.
Thanks
Federico


PS
This is the error when I run fedora package installed in /usr/bin:

$ LANG=C lilypond-book --include=/home/fede/Documenti/spartiti/ly 
--output=out --pdf Antologia-Unterberger.lytex

lilypond-book (GNU LilyPond) 2.19.45
Reading Antologia-Unterberger.lytex...
Running `pdflatex' on file `/tmp/tmpXXvUe9.tex' to detect default page 
settings.


Dissecting...
Writing snippets...
Processing...
Running lilypond...
GNU LilyPond 2.19.45
Processing `./snippet-map--9017404594108087438.ly'
Parsing...
Processing `./11/lily-a176969c.ly'
Parsing...
Renaming input to: `23-10-63.ly'
Interpreting music...[8][16]
Preprocessing graphical objects...command failed: /usr/bin/lilypond 
--formats=ps -dbackend=eps -I "./" -I "../" -I 
"/home/fede/Documenti/spartiti/ly" --formats=eps --pdf 
-dinclude-eps-fonts -dgs-load-fonts -deps-box-padding=3.00  
-dread-file-list -dno-strip-output-dir 
"/home/fede/Documenti/spartiti/Unterberger/out/snippet-names--9017404594108087438.ly"

Child was terminated by signal 11




___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: lilypond-book: warning: cannot detect textwidth from LaTeX

2016-07-27 Thread David Wright
On Wed 27 Jul 2016 at 08:57:26 (+0200), Federico Bruni wrote:
> The libraries error was due to some path and relocation problem,
> because if I use Fedora lilypond package (/usr/bin) everything works
> correctly.
> 
> Except that the .tex file generated by lilypond-book is saved in
> /tmp and when the .ly file is included it cannot find it.
> What's wrong in the below .lytex file?
> 
> 
> 
> $ which lilypond-book
> /usr/bin/lilypond-book
> 
> $ lilypond-book --include=/home/fede/Documenti/spartiti/ly
> --output=out --pdf file.lytex
> lilypond-book (GNU LilyPond) 2.19.45
> Reading file.lytex...
> Running `pdflatex' on file `/tmp/tmpw7DwQy.tex' to detect default
> page settings.
> 
> Dissecting...
> lilypond-book: error: file not found: 23.10.63.ly
> 
> 
> 
> Why it's creating a .tex file in /tmp and calling pdflated on it?
> According to the Usage manual¹, that commmand should generate a .tex
> file and then _I_ should launch pdflatex.

At the point your process stopped, it's barely begun. The file in /tmp
will contain something like

\nonstopmode
\documentclass[a4paper]{article}
\begin{document}
\typeout{textwidth=\the\textwidth}
\typeout{columnsep=\the\columnsep}
\makeatletter\if@twocolumn\typeout{columns=2}\fi\makeatother
\end{document}

and normally it disappears in a flash. (I had to run
while : ; do cat /tmp/tmp*.tex ; done
in a captured session just to find that out.)

The clue as to why it gets no further is in the error message.
The bash functions I actually use to run LP and TeX keep things simple
by changing into the appropriate directories, so start with everything
in /tmp. Then change one thing at a time.

Here's an example run of mine, using just the naked commands. I've
inserted blank lines before each prompt (which prints the current
directory):

/tmp $ cat boo.lytex
\documentclass[a4paper]{article}
\begin{document}
Documents for \verb+lilypond-book+ may freely mix music and text.
For example,
\begin{lilypond}
\relative {
  c'2 e2 \tuplet 3/2 { f8 a b } a2 e4
}
\end{lilypond}
\lilypondfile[quote,noindent,line-width=15\cm]{bigger.ly}
\end{document}

/tmp $ cat bigger.ly
{ c' d' e' f' g' a' b' c'' g c' e' g' c'' e'' g'' c''' }

/tmp $ lilypond-book --output=out --pdf boo.lytex
lilypond-book (GNU LilyPond) 2.18.2
Reading boo.lytex...
Running `pdflatex' on file `/tmp/tmpZjkSDV.tex' to detect default page settings.

Dissecting...
Writing snippets...
Processing...
Running lilypond...
GNU LilyPond 2.18.2
Processing `snippet-map--1217663831.ly'
Parsing...
Processing `boo.lytex'
Parsing...
Renaming input to: `bigger.ly'
Interpreting music...
Preprocessing graphical objects...
Calculating line breaks... 
Drawing systems... 
Layout output to `5a/lily-42767417.eps'...
Converting to `5a/lily-42767417.pdf'...
Layout output to `5a/lily-42767417-1.eps'...
Converting to `5a/lily-42767417-1.pdf'...
Writing 5a/lily-42767417-systems.texi...
Writing 5a/lily-42767417-systems.tex...
Writing 5a/lily-42767417-systems.count...
Processing `boo.lytex'
Parsing...
Interpreting music...
Preprocessing graphical objects...
Calculating line breaks... 
Drawing systems... 
Layout output to `ac/lily-941a492d.eps'...
Converting to `ac/lily-941a492d.pdf'...
Layout output to `ac/lily-941a492d-1.eps'...
Converting to `ac/lily-941a492d-1.pdf'...
Writing ac/lily-941a492d-systems.texi...
Writing ac/lily-941a492d-systems.tex...
Writing ac/lily-941a492d-systems.count...
Success: compilation successfully completed
Linking files...
Compiling /tmp/out/boo.tex...
Writing `/tmp/out/boo.tex'...

/tmp $ cd out

/tmp/out $ lualatex boo.tex
This is LuaTeX, Version beta-0.79.1 (TeX Live 2015/dev/Debian) (rev 4971) 
 restricted \write18 enabled.
(./boo.tex
LaTeX2e <2014/05/01>
Babel <3.9l> and hyphenation patterns for 44 languages loaded.
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo))
(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/share/texlive/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/share/texlive/texmf-dist/tex/latex/latexconfig/graphics.cfg)
(/usr/share/texlive/texmf-dist/tex/latex/pdftex-def/pdftex.def
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/infwarerr.sty)
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ltxcmds.sty)
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifluatex.sty)
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifpdf.sty)
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/luatex-loader.sty
(/usr/share/texlive/texmf-dist/scripts/oberdiek/oberdiek.luatex.lua)
No file boo.aux.
(/usr/share/texlive/texmf-dist/tex/context/base/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
) 

Re: lilypond-book: warning: cannot detect textwidth from LaTeX

2016-07-27 Thread Federico Bruni
The libraries error was due to some path and relocation problem, 
because if I use Fedora lilypond package (/usr/bin) everything works 
correctly.


Except that the .tex file generated by lilypond-book is saved in /tmp 
and when the .ly file is included it cannot find it.

What's wrong in the below .lytex file?



$ which lilypond-book
/usr/bin/lilypond-book

$ lilypond-book --include=/home/fede/Documenti/spartiti/ly --output=out 
--pdf file.lytex

lilypond-book (GNU LilyPond) 2.19.45
Reading file.lytex...
Running `pdflatex' on file `/tmp/tmpw7DwQy.tex' to detect default page 
settings.


Dissecting...
lilypond-book: error: file not found: 23.10.63.ly



Why it's creating a .tex file in /tmp and calling pdflated on it?
According to the Usage manual¹, that commmand should generate a .tex 
file and then _I_ should launch pdflatex.


¹ 
http://lilypond.org/doc/v2.19/Documentation/usage/invoking-lilypond_002dbook



Il giorno lun 25 lug 2016 alle 8:59, Federico Bruni 
 ha scritto:

Hi folks

I've searched the archives but couldn't find an answer to this 
problem.


I have a file.lytex file which contains these lines:

%%
\documentclass[a4paper]{article}
\usepackage[utf8]{inputenc}

\begin{document}

\lilypondfile[noindent,line-width=15\cm]{23.10.63.ly}

\end{document}
%%

I compile it with the below command. What's wrong with it?
I set the width of the lilypond file, while the document width is 
already set by \documentclass. What else is missing?


Thanks
Federico


$ make
lilypond-book --include=/home/fede/Documenti/spartiti/ly --output=out 
file.lytex;

lilypond-book (GNU LilyPond) 2.19.45
Reading file.lytex...
Running `latex' on file `/tmp/tmphleGw3.tex' to detect default page 
settings.


lilypond-book: warning: Unable to auto-detect default settings:
latex: /home/fede/.local/lilypond/usr/lib/libz.so.1: no version 
information available (required by /lib64/libpng16.so.16)
latex: /home/fede/.local/lilypond/usr/lib/libjpeg.so.62: no version 
information available (required by /lib64/libpoppler.so.58)
latex: /home/fede/.local/lilypond/usr/lib/libtiff.so.5: no version 
information available (required by /lib64/libpoppler.so.58)
latex: /home/fede/.local/lilypond/usr/lib/libstdc++.so.6: version 
`CXXABI_1.3.9' not found (required by /lib64/libpoppler.so.58)


lilypond-book: warning: cannot detect textwidth from LaTeX
Dissecting...
lilypond-book: error: file not found: 23.10.63.ly

Traceback (most recent call last):
 File "/home/fede/.local/lilypond/usr/bin/lilypond-book", line 789, 
in ?

   main ()
 File "/home/fede/.local/lilypond/usr/bin/lilypond-book", line 772, 
in main

   chunks = do_file (files[0])
 File "/home/fede/.local/lilypond/usr/bin/lilypond-book", line 611, 
in do_file

   chunks = find_toplevel_snippets (source, global_options.formatter)
 File "/home/fede/.local/lilypond/usr/bin/lilypond-book", line 362, 
in find_toplevel_snippets

   snip = klass (type, m, formatter, line_number, global_options)
 File 
"/home/fede/.local/lilypond/usr/share/lilypond/current/python/book_snippets.py", 
line 825, in __init__

   global_options.include_path, global_options.original_dir)).read ()
 File 
"/home/fede/.local/lilypond/usr/share/lilypond/current/python/book_base.py", 
line 27, in find_file

   exit (1)
TypeError: 'str' object is not callable
Makefile:20: recipe for target 'file.pdf' failed
make: *** [file.pdf] Error 1




___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Lilypond-book question

2016-07-09 Thread flup2
pico is the easiest text editor from the Terminal.

So, the command "pico .profile" (pico is the program, the command;
".profile" is the hidden file) opens the file with the user's PATH settings.
As a hidden file, it's easier editing it via the Terminal. On some
configuration, the hidden file is not ".profile" (sometimes, it is ".bash")

One could add one line, like this one:
export PATH="/Applications/LilyPond.app/Contents/Resources/bin:$PATH"

I'll look at TexMaker tomorrow

Philippe



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Lilypond-book-question-tp192449p192507.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Lilypond-book question

2016-07-09 Thread Urs Liska
Hi Raphael,

nice to see you here as well ;-)


Am 09.07.2016 um 23:52 schrieb Dr. Raphael D. Thöne:
> Hello Philippe, hello Jeffrey,
>
> thanks for your help.
>
> I used the right path (I typed the whole path) and then run a test
> file, compiling it with lilybook and then finally with latexpdf. It
> worked!
> /Applications/LilyPond.app/Contents/Resources/bin/lilypond-book
> --output=out --pdf lily/lily.lytex
>
> Adding the path:
> You mentioned pico.profile (why pico? Or can I use any name?) 
> I first created a lilybook file in a folder called bin and when I run
> it in the Terminal (Mac), it works
>
> ...
>
> I created then a file called pico.profile and saved it in my home
> directory. I only consists of two lines:
> export PATH=$PATH:~/bin
> BLANK LINE
>
> When I now directly try to run lilybook with the path, it tells me
> that lilybook cannot still be found.
> Last login: Sat Jul  9 23:47:38 on ttys000
> Raphi:~ raphaelthoene$ lilypond-book --output=out --pdf lily/lily.lytex
> -bash: lilypond-book: command not found
> Raphi:~ raphaelthoene$

I don't know exactly how things go on Mac, but simply changing/adding a
configuration file won't change anything on a UNIX system. You also have
to make sure that the shell (the one that is actually executing the
command) has read that file. I'm not sure about that "pico" either, but
on Linux any profiles may only be read upon the start of a shell - or by
explicitly calling "source pico.profile" on it. OTOH there are different
types of profiles that are read in different contexts so I won't make
any concrete suggestions.

But as you *are* using LaTeX already please let me point you to two
packages that are valuable for the use-case of writing seminar texts and
other mixed documents which we talked about: lilyglyphs and musicexamples.
lilyglyphs is in CTAN and TeXLive, so it should be available on your
LaTeX distribution, otherwise consult
ftp://ftp.rrzn.uni-hannover.de/pub/mirror/tex-archive/macros/luatex/latex/lilyglyphs/documentation/lilyglyphs.pdf
musicexamples is not fully ready yet - that is, it *is* ready but not
extremely useful yet. Nevertheless it provides a few cool things for
inserting music in LaTeX documents. It is not released yet but you can
find it at https://github.com/uliska/musicexamples.

Best
Urs

>
>
>
> Thanks again for your help,
> Raphael.
>
>
>> Am 09.07.2016 um 22:14 schrieb flup2 > >:
>>
>> Hello,
>>
>> At first look, it seems that your terminal settings do not include
>> the path
>> to lilypond-book.
>>
>> There are multiple ways to solve it:
>> - use the complete command (quite boring...). If lilypond is placed
>> in your
>> Applications folder, the complete path should be
>>
>> - add lilypond-book path in the PATH. Usually, this is done by
>> editing the
>> .profile file in your user folder, using the terminal (I use "pico
>> .profile")
>>
>> Regarding TeXmaker, I cannot help now (I would need time to look at),
>> but I
>> guess you need to show the complete path of lilypond-book to TeXMaker
>>
>> Philippe
>>
>>
>>
>> --
>> View this message in context:
>> http://lilypond.1069038.n5.nabble.com/Lilypond-book-question-tp192449p192461.html
>> Sent from the User mailing list archive at Nabble.com
>> .
>>
>> ___
>> lilypond-user mailing list
>> lilypond-user@gnu.org 
>> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
>
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Lilypond-book question

2016-07-09 Thread Dr . Raphael D . Thöne
Hello Philippe, hello Jeffrey,

thanks for your help.

I used the right path (I typed the whole path) and then run a test file, 
compiling it with lilybook and then finally with latexpdf. It worked!
/Applications/LilyPond.app/Contents/Resources/bin/lilypond-book --output=out 
--pdf lily/lily.lytex

Adding the path:
You mentioned pico.profile (why pico? Or can I use any name?)
I first created a lilybook file in a folder called bin and when I run it in the 
Terminal (Mac), it works

Last login: Sat Jul  9 23:46:54 on ttys001
Raphi:~ raphaelthoene$ /Users/raphaelthoene/bin/lilybook ; exit;
Usage: lilypond-book [OPTION]... FILE

Process LilyPond snippets in hybrid HTML, LaTeX, texinfo or DocBook document.

Examples:
 $ lilypond-book --filter="tr '[a-z]' '[A-Z]'" BOOK
 $ lilypond-book -F "convert-ly --no-version --from=2.0.0 -" BOOK
 $ lilypond-book --process='lilypond -I include' BOOK

Options:
   -F, --filter=FILTER  pipe snippets through FILTER [default: `convert-ly -n
-']
   -f, --format=FORMAT  use output format FORMAT (texi [default], texi-html,
latex, html, docbook)
   -h, --help   show this help and exit
   -I, --include=DIRadd DIR to include path
   --info-images-dir=DIR
format Texinfo output so that Info will look for
images of music in DIR
   --left-padding=PAD
pad left side of music to align music inspite of
uneven bar numbers (in mm)
   --lily-loglevel=LOGLEVEL
Print lilypond log messages according to LOGLEVEL
   --lily-output-dir=DIR
write lily-XXX files to DIR, link into --output dir
   --load-custom-package=PACKAGE
Load the additional python PACKAGE (containing e.g. a
custom output format)
   -l, --loglevel=LOGLEVEL
Print log messages according to LOGLEVEL (NONE, ERROR,
WARNING, PROGRESS (default), DEBUG)
   -o, --output=DIR write output to DIR
   -P, --process=COMMAND
process ly_files using COMMAND FILE...
   --redirect-lilypond-output
Redirect the lilypond output
   -s, --safe   Compile snippets in safe mode
   --skip-lily-check
do not fail if no lilypond output is found
   --skip-png-check
do not fail if no PNG images are found for EPS files
   --use-source-file-names
write snippet output files with the same base name as
their source file
   -V, --verbosebe verbose
   --versionshow version number and exit
   -w, --warranty   show warranty and copyright

Options only for the latex and texinfo backends:
   --latex-program=PROG
run executable PROG instead of latex, or in case --pdf
option is set instead of pdflatex
   --texinfo-program=PROG
run executable PROG instead of texi2pdf
   --pdfcreate PDF files for use with PDFTeX

Report bugs via  
http://post.gmane.org/post.php?group=gmane.comp.gnu.lilypond.bugs
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Prozess beendet]

I created then a file called pico.profile and saved it in my home directory. I 
only consists of two lines:
export PATH=$PATH:~/bin
BLANK LINE

When I now directly try to run lilybook with the path, it tells me that 
lilybook cannot still be found.
Last login: Sat Jul  9 23:47:38 on ttys000
Raphi:~ raphaelthoene$ lilypond-book --output=out --pdf lily/lily.lytex
-bash: lilypond-book: command not found
Raphi:~ raphaelthoene$



Thanks again for your help,
Raphael.


Am 09.07.2016 um 22:14 schrieb flup2 
>:

Hello,

At first look, it seems that your terminal settings do not include the path
to lilypond-book.

There are multiple ways to solve it:
- use the complete command (quite boring...). If lilypond is placed in your
Applications folder, the complete path should be

- add lilypond-book path in the PATH. Usually, this is done by editing the
.profile file in your user folder, using the terminal (I use "pico
.profile")

Regarding TeXmaker, I cannot help now (I would need time to look at), but I
guess you need to show the complete path of lilypond-book to TeXMaker

Philippe



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Lilypond-book-question-tp192449p192461.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

___
lilypond-user 

Re: Lilypond-book question

2016-07-09 Thread Jeffery Shivers
Hi Raphael,

The instructions for setting up lilypond on the command line are here:
http://lilypond.org/macos-x.html

Note that `lilypond` and `lilypond-book` etc. are distinct scripts. Just
having the package on your computer doesn't automatically point the
terminal to lilypond.

best,
Jeffery

On Sat, Jul 9, 2016 at 4:14 PM, flup2  wrote:

> Hello,
>
> At first look, it seems that your terminal settings do not include the path
> to lilypond-book.
>
> There are multiple ways to solve it:
> - use the complete command (quite boring...). If lilypond is placed in your
> Applications folder, the complete path should be
>
> - add lilypond-book path in the PATH. Usually, this is done by editing the
> .profile file in your user folder, using the terminal (I use "pico
> .profile")
>
> Regarding TeXmaker, I cannot help now (I would need time to look at), but I
> guess you need to show the complete path of lilypond-book to TeXMaker
>
> Philippe
>
>
>
> --
> View this message in context:
> http://lilypond.1069038.n5.nabble.com/Lilypond-book-question-tp192449p192461.html
> Sent from the User mailing list archive at Nabble.com.
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Lilypond-book question

2016-07-09 Thread flup2
Hello,

At first look, it seems that your terminal settings do not include the path
to lilypond-book.

There are multiple ways to solve it:
- use the complete command (quite boring...). If lilypond is placed in your
Applications folder, the complete path should be 

- add lilypond-book path in the PATH. Usually, this is done by editing the
.profile file in your user folder, using the terminal (I use "pico
.profile")

Regarding TeXmaker, I cannot help now (I would need time to look at), but I
guess you need to show the complete path of lilypond-book to TeXMaker

Philippe



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Lilypond-book-question-tp192449p192461.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: lilypond-book and latex indenting issue

2016-07-08 Thread David Wright
On Fri 08 Jul 2016 at 14:08:57 (-0400), Benjamin Strecker wrote:
> On Fri, Jul 8, 2016 at 1:32 PM, Vaylor Trucks  wrote:
> > I found the problem. Invoking lilypond-book with --left-padding 0 solved
> > the problem.
> >
> 
> That is a much better solution.

Agreed. To be honest, I did the same as the OP; looked first at the
EPS files generated. Then I looked for the output PDF and realised I
had to run LaTeX myself! But 3 was a good guess!

I'm no fan of lilypond-book, preferring to rely on pdfcrop to crop
PDF snippets precisely, and then placing them where I want them.

Cheers,
David.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: lilypond-book and latex indenting issue

2016-07-08 Thread Benjamin Strecker
Hello,

On Fri, Jul 8, 2016 at 1:21 PM, Vaylor Trucks  wrote:
> Vaylor Trucks  gmail.com> writes:
>
>>
>> I'm not sure if this is a LaTeX question or a Lilypond question.
>
> After some digging, the definitely seems to be a Lilypond issue. If I look
> in the output directory I specify in invoking lilypond-book, I see the
> .PDF files created by Lilypond which are used as images in the LaTeX doc,
> and there is definitely white space to the left of the staff in these
> images. The question I have now is, how to I eliminate that white space if
> not by using #indent=0?
>

lilypond-book adds a little bit of space by slightly reducing the
line-width (it looks like about 4mm to me).  One possible way to
remove this space is by adding the following to a paper block inside
your external .ly file:

line-width = #(+ line-width (* mm 4))

And in the preamble of your .lytex file:

\def\preLilyPondExample{\hspace*{-3mm}}
\newcommand{\betweenLilyPondSystem}[1]{\linebreak\hspace*{-3mm}}

Note: this is what I would call a workaround, not a fix.  There are
reasons why this space exists.  If you are using braces at the
beginning of a stave or have long bar numbers showing up at the
beginning of the line, these will be hanging in the left margin.

Hope this helps!
Ben

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: lilypond-book and latex indenting issue

2016-07-08 Thread Benjamin Strecker
On Fri, Jul 8, 2016 at 1:32 PM, Vaylor Trucks  wrote:
> I found the problem. Invoking lilypond-book with --left-padding 0 solved
> the problem.
>

That is a much better solution.

Cheers!
Ben

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: lilypond-book and latex indenting issue

2016-07-08 Thread David Wright
On Fri 08 Jul 2016 at 17:21:17 (+), Vaylor Trucks wrote:
> Vaylor Trucks  gmail.com> writes:
> > I'm not sure if this is a LaTeX question or a Lilypond question. 
> 
> After some digging, the definitely seems to be a Lilypond issue. If I look 
> in the output directory I specify in invoking lilypond-book, I see the 
> .PDF files created by Lilypond which are used as images in the LaTeX doc, 
> and there is definitely white space to the left of the staff in these 
> images. The question I have now is, how to I eliminate that white space if 
> not by using #indent=0?

Try indent = -3

Cheers,
David.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: lilypond-book and latex indenting issue

2016-07-08 Thread Vaylor Trucks
I found the problem. Invoking lilypond-book with --left-padding 0 solved 
the problem.


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: lilypond-book and latex indenting issue

2016-07-08 Thread Vaylor Trucks
Vaylor Trucks  gmail.com> writes:

> 
> I'm not sure if this is a LaTeX question or a Lilypond question. 

After some digging, the definitely seems to be a Lilypond issue. If I look 
in the output directory I specify in invoking lilypond-book, I see the 
.PDF files created by Lilypond which are used as images in the LaTeX doc, 
and there is definitely white space to the left of the staff in these 
images. The question I have now is, how to I eliminate that white space if 
not by using #indent=0?


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: lilypond-book

2015-08-11 Thread Marek Stepanek

Hello Jacques!


Really impressing! Your script is now part of my /bin commands!


Merci infiniment :-)



marek



On 10/08/15 20:56, Jacques Menu wrote:
 Hello Marek,
 
 I use a custom « lilyb » script defined as follows, that takes care of the 
 subdirectory for the intermediate files generated by lilypond-book:
 
 
 menu@macbookprojm:~/Documents/LaTeX/PartitionsLilypond  which lilyb
 /Users/menu/bin/lilyb
 
 
 snip

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: lilypond-book

2015-08-11 Thread Jacques Menu
Hello Marek,

Iour velkom, glad I could help!

JM

 Le 11 août 2015 à 11:04, Marek Stepanek ms...@podiuminternational.org a 
 écrit :
 
 
 Hello Jacques!
 
 
 Really impressing! Your script is now part of my /bin commands!
 
 
 Merci infiniment :-)
 
 
 
 marek
 
 
 
 On 10/08/15 20:56, Jacques Menu wrote:
 Hello Marek,
 
 I use a custom « lilyb » script defined as follows, that takes care of the 
 subdirectory for the intermediate files generated by lilypond-book:
 
 
 menu@macbookprojm:~/Documents/LaTeX/PartitionsLilypond  which lilyb
 /Users/menu/bin/lilyb
 
 
 snip


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: lilypond-book

2015-08-10 Thread Kevin Barry
Hi Marek,

Instead of creating a link to the lilypond-book script, could you try
following the instructions here:
http://lilypond.org/macos-x.html
to create executables, and see if that fixes the problem.

Kevin

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: lilypond-book

2015-08-10 Thread Jacques Menu
Hello Marek,

I use a custom « lilyb » script defined as follows, that takes care of the 
subdirectory for the intermediate files generated by lilypond-book:


menu@macbookprojm:~/Documents/LaTeX/PartitionsLilypond  which lilyb
/Users/menu/bin/lilyb


menu@macbookprojm:~/Documents/LaTeX/PartitionsLilypond  ll 
/Users/menu/bin/lilyb
8 -rwxr-xr-x@ 1 menu  staff  1657 May 16 22:54:18 2014 /Users/menu/bin/lilyb*


menu@macbookprojm:~/Documents/LaTeX/PartitionsLilypond  cat 
/Users/menu/bin/lilyb
#!/bin/bash

USAGE=-- Usage: $0 filename[.lytex]

if [ $# -ne 1 ]; then
echo $USAGE
exit 1
fi

FILENAME=$1

echo -- env
env | grep -i lilypond
echo

echo

FILENAME_RADIX=${FILENAME%.lytex}
FILENAME_SUFFIX=${FILENAME#${FILENAME_RADIX}}
if [ ${FILENAME_RADIX} == ${FILENAME} ]; then
FILENAME_SUFFIX=.lytex
fi

echo -- FILENAME= ${FILENAME}
echo -- FILENAME_RADIX  = ${FILENAME_RADIX}
echo -- FILENAME_SUFFIX = ${FILENAME_SUFFIX}
echo

OUTPUT_DIR=out-lilypond-book

echo -- OUTPUT_DIR  = ${OUTPUT_DIR}
echo


echo 

echo -- Launching lilypondbook...
lilypond-book --output=${OUTPUT_DIR} --pdf ${FILENAME_RADIX}${FILENAME_SUFFIX}
echo

ls -sal ${OUTPUT_DIR}/${FILENAME_RADIX}.tex
echo


echo 

cd ${OUTPUT_DIR}
echo -- Current directory: ${PWD}
echo

echo 

echo -- Launching LaTeX...

pdflatex ${FILENAME_RADIX}

ls -sal ${FILENAME_RADIX}.tex ${FILENAME_RADIX}.pdf
echo

cp -p ${FILENAME_RADIX}.pdf ..


echo 

cd ..
echo -- Current directory: ${PWD}
echo

ls -sal ${FILENAME_RADIX}.pdf
echo

open ${FILENAME_RADIX}.pdf

exit # enlever pour interagir...

echo 

read -p == Do you want to open ${FILENAME_RADIX}.pdf right now? [*/n]  
DO_OPEN
case ${DO_OPEN} in
[nN] )
;;
* )
open ${FILENAME_RADIX}.pdf
;;
esac

echo





 Le 10 août 2015 à 19:24, Kevin Barry barr...@gmail.com a écrit :
 
 Hi Marek,
 
 Instead of creating a link to the lilypond-book script, could you try
 following the instructions here:
 http://lilypond.org/macos-x.html
 to create executables, and see if that fixes the problem.
 
 Kevin
 
 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 https://lists.gnu.org/mailman/listinfo/lilypond-user


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: lilypond-book (again) and LyricText font problem

2015-08-03 Thread Marc Hohl

Addendum:


I tried to force lilypond to use this font by adding

\context {
 \Score
 \override LyricText.font-name = Mala's Handwriting
}

to the .ily file, but there's no difference.


Properly included in a \layout { ... } environment, of course.

Marc

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: lilypond-book (again) and LyricText font problem

2015-08-03 Thread Marc Hohl

Sorry for the noise, I fould the culprit:

the standalone snippets were (erroneously) built with the latest 
self-compiled lilypond, whereas lilypond-book is an older version

that did not find the font.

Marc

Am 03.08.2015 um 18:36 schrieb Marc Hohl:

Addendum:


I tried to force lilypond to use this font by adding

\context {
 \Score
 \override LyricText.font-name = Mala's Handwriting
}

to the .ily file, but there's no difference.


Properly included in a \layout { ... } environment, of course.

Marc

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user




___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Lilypond-book Cutting off Slurs

2015-07-16 Thread Urs Liska
The same can happen with tuplet brackets.
And it also happens when using -dpreview.
IMO this is a bug.

Urs

Am 16. Juli 2015 07:59:08 MESZ, schrieb Kevin Barry barr...@gmail.com:
When I encounter this problem I usually add some kind of invisible grob
underneath the staff (a markup with the colour set to white for
example).
It's a hack, but as far as I know there isn't a way to tell LilyPond
there
is something there.

Kevin




___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Lilypond-book Cutting off Slurs

2015-07-16 Thread David Kastrup
Urs Liska u...@openlilylib.org writes:

 The same can happen with tuplet brackets.
 And it also happens when using -dpreview.
 IMO this is a bug.

Cross-staff material is not considered for the skylines used for
calculating system distances.  It would make sense to collect them in
separate skylines that are merged to the overall outline once relative
system positioning is done.

Perhaps with skyline positioning it might be an option to add them to
the bounding box but not to the skyline.

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Lilypond-book Cutting off Slurs

2015-07-16 Thread Nick Baskin
On Thu, Jul 16, 2015 at 12:05 AM, David Kastrup d...@gnu.org wrote:

 Urs Liska u...@openlilylib.org writes:

  The same can happen with tuplet brackets.
  And it also happens when using -dpreview.
  IMO this is a bug.

 Cross-staff material is not considered for the skylines used for
 calculating system distances.  It would make sense to collect them in
 separate skylines that are merged to the overall outline once relative
 system positioning is done.

 Perhaps with skyline positioning it might be an option to add them to
 the bounding box but not to the skyline.

 --
 David Kastrup


Thanks all — adding a text markup didn't solve the problem for me (with
2.18.0), but adding a dynamic did!

Nick

-- 
And she forgot the stars, the moon, and sun,
And she forgot the blue above the trees,
And she forgot the dells where waters run,
And she forgot the chilly autumn breeze...

— Keats, Isabella, or the Pot of Basil
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Lilypond-book Cutting off Slurs

2015-07-15 Thread Kevin Barry
When I encounter this problem I usually add some kind of invisible grob
underneath the staff (a markup with the colour set to white for example).
It's a hack, but as far as I know there isn't a way to tell LilyPond there
is something there.

Kevin
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: lilypond-book, snippet inside tabular

2015-04-04 Thread karl
dl.mcnam...@comcast.net:
 I'm trying to put lilypond snippets inside a tabular environment in LaTeX, 
 but 
 running lilypond-book on the file seems to ignore the lilypond blocks. 
 I'm guessing that lilypond-book just ignores the tabular environment as a 
 whole. 
 
 Anyone have a workaround for using lilypond-book? otherwise I'll revert to my 
 initial thought: 
 running lilypond (to produce the snippets) and latex (to produce the doc) 
 separately. 
...

You can make lilypond generate eps's for each systems, which you then
can \includegraphics into the tex file.

I do that by using
 \include lilypond-book-preamble.ly
and
 $(LP) --ps -dbackend=eps $

For a I.ly, it will generate I-xx.eps (where xx is numbers 1..,
one for each system) and I-systems.tex, which contains the needed
\includedgraphics commands, Then I simply \input{I-systems.tex} in
my latex file.

Have a look at

 http://turkos.aspodata.se/git/musik/WAMozart/requiem/

///

The above is basically a manually run lilypond-book thing.

Regards,
/Karl Hammar

---
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: lilypond-book, snippet inside tabular

2015-04-04 Thread Nick Payne

On 05/04/2015 07:28, dl.mcnam...@comcast.net wrote:
I'm trying to put lilypond snippets inside a tabular environment in 
LaTeX, but

running lilypond-book on the file seems to ignore the lilypond blocks.
I'm guessing that lilypond-book just ignores the tabular environment 
as a whole.


Anyone have a workaround for using lilypond-book? otherwise I'll 
revert to my initial thought:
running lilypond (to produce the snippets) and latex (to produce the 
doc) separately.


Have a look at Lyx. Support for lilypond-book is mentioned here: 
http://wiki.lyx.org/LyX/NewInLyX20#lb, and there is a sample lyx 
document with lilypond code that is installed in the examples folder 
when you install Lyx.


Alternatively, with Scribus you can certainly have Lilypond code in a 
frame in a table, as I've done that in the past, but Scribus doesn't use 
LaTeX - though you can embed LaTeX code in a Scribus frame.


Nick
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: lilypond-book: warning: cannot detect textwidth from LaTeX

2014-09-26 Thread Marc Hohl

Am 25.09.2014 um 20:51 schrieb Julien Rioux:

On 24/09/2014 11:52 AM, Xirux Nefer wrote:

I am using lilypond-book to compile solfeo.lytex:


[...]



[...]

Thanks for your report. This seems to me like the same issue as
https://code.google.com/p/lilypond/issues/detail?id=2471


Ah, ok. I wasn't aware of any xelatex-specific bugs to lilypond-book.

I am currently working on a new project with xelatex/lilypond-book on
ubuntu 14.04 and did not encounter any problems so far.

Marc


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: lilypond-book: warning: cannot detect textwidth from LaTeX

2014-09-26 Thread Xirux Nefer
Davide Liessi davide.liessi at gmail.com writes:

 The warning is correct: 'fontload' is not among the possible options
 What were you trying to achieve with that option?

I swear I saw that in the documentation, ha ha... although after 3 days
reading lilypond's docs I may have ended up suffering spectral visions. I
was trying to set custom fonts in the .ly file and then telling LilyPond to
be aware of those fonts when it was the time to spit them out into my TeX
document.



 i.e. you told lilypond-book to invoke LilyPond with the following command:
lilypond --define-default=line-width=12\cm
 Also in this case the warning is correct: 'line-width' is not a
 possible option

 You probably wanted to specify the line width of the fragments, you 
 should specify it in the single LilyPond fragments, e.g.
   
 \lilypondfile[indent=1\cm,ragged-right,line-width=12\cm]
 {scores/Lesson_1.01.xml.ly}

Yeah, that's exactly what I was trying to do, I had tried specifying it in
the single LilyPond fragments first, but it was ignoring it, i.e., running
the same MWE with that option added, and compiling with the same command in
the CLI with that option removed, the snippet was wider than my document's
\textwidth. That's why I moved that option from the fragment to the command
line. I also tried using it in both places. But still no luck...

Anyway, thanks for the help =)



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: lilypond-book: warning: cannot detect textwidth from LaTeX

2014-09-25 Thread Marc Hohl

Am 24.09.2014 um 17:52 schrieb Xirux Nefer:

I am using lilypond-book to compile solfeo.lytex:

---

\documentclass[12pt,a4paper]{book}
\usepackage[textwidth=12cm,textheight=20cm]{geometry}
\usepackage{lipsum}
\usepackage{fontspec}
\usepackage{Alegreya}
\begin{document}
\lipsum[1]
\lilypondfile[indent=1\cm,fontload,ragged-right]{scores/Lesson_1.01.xml.ly}
\lipsum[2-4]
\end{document}

---


Using:

---

lilypond-book --output=out --latex-program=xelatex --left-padding=0
--process='lilypond --define-default=line-width=12\cm' solfeo.lytex

---


And I  am getting the error in the subject of this message. The output of
the compilation is:


[...]

Have you tried to comment out the line \lilypondfile... and compile the
document directly with xelatex? It looks as if xelatex has some 
problems, not lilypond ...




lilypond-book: warning: cannot detect textwidth from LaTeX
Dissecting...
Writing snippets...
lilypond-book: warning: ignoring unknown ly option: fontload


Ok, lilypond-book claims that the option 'fontload' does not exist.

But everything else looks like a xelatx-specific problem to me.

HTH,

Marc


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: lilypond-book: warning: cannot detect textwidth from LaTeX

2014-09-25 Thread Xirux Nefer
Marc Hohl marc at hohlart.de writes:

 
 Have you tried to comment out the line \lilypondfile... and compile the
 document directly with xelatex? It looks as if xelatex has some 
 problems, not lilypond ...
 

Yes. If I comment that line:

---

\documentclass[12pt,a4paper]{book}
\usepackage[textwidth=12cm,textheight=20cm]{geometry}
\usepackage{lipsum}
\usepackage{fontspec}
\usepackage{Alegreya}
\begin{document}
\lipsum[1]
%\lilypondfile[indent=1\cm,fontload,ragged-right]{scores/Lesson_1.01.xml.ly}
\lipsum[2-4]
\end{document}

---

And then compile with:
xelatex solfeo.lytex


I get the following output:

---

This is XeTeX, Version 3.1415926-2.5-0..3 (TeX Live 2013/Debian)
 restricted \write18 enabled.
entering extended mode
(./solfeo.lytex
LaTeX2e 2011/06/27
Babel 3.9h and hyphenation patterns for 2 languages loaded.
(/usr/share/texlive/texmf-dist/tex/latex/base/book.cls
Document Class: book 2007/10/19 v1.4h Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/bk12.clo))
(/usr/share/texlive/texmf-dist/tex/latex/geometry/geometry.sty
--- A bunch of .sty files here ---
(/usr/share/texlive/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/share/texlive/texmf-dist/tex/latex/latexconfig/graphics.cfg)
(/usr/share/texlive/texmf-dist/tex/xelatex/xetex-def/xetex.def
(/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec.cfg))) (./solfeo.aux)
(/usr/share/texmf/tex/latex/tipa/t3cmr.fd)
*geometry* driver: auto-detecting
*geometry* detected driver: xetex
[1] [2] (./solfeo.aux) )
Output written on solfeo.pdf (2 pages).
Transcript written on solfeo.log.

---

Nothing weird to my ignorant eyes.


  lilypond-book: warning: ignoring unknown ly option: fontload
 
 Ok, lilypond-book claims that the option 'fontload' does not exist.
 
 But everything else looks like a xelatx-specific problem to me.
 
 HTH,
 
 Marc
 


This is also weird... why doesn't it recognize the fontload option?
Cheers


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: lilypond-book: warning: cannot detect textwidth from LaTeX

2014-09-25 Thread Davide Liessi
Hi.

I can't say much about the xelatex issue (except that it actually
looks like issue 2471, as Julien wrote), because I can't reproduce it
on my machine (Mac OS 10.6.8).

However, you have a couple of problems with LilyPond and lilypond-book.

1. You got the following warning:
 lilypond-book: warning: ignoring unknown ly option: fontload
because you wrote in the file:
 \lilypondfile[indent=1\cm,fontload,ragged-right]{scores/Lesson_1.01.xml.ly}

The warning is correct: 'fontload' is not among the possible options
of lilypond-book's pseudo-commands and pseudo-environments, as you can
see in the usage manual:
http://lilypond.org/doc/v2.18/Documentation/usage/music-fragment-options

What were you trying to achieve with that option?

2. You got the following warning:
 advertencia: no existe la opción interna line-width
because you invoked lilypond-book with the following command:
 lilypond-book --output=out --latex-program=xelatex --left-padding=0
 --process='lilypond --define-default=line-width=12\cm' solfeo.lytex
i.e. you told lilypond-book to invoke LilyPond with the following command:
   lilypond --define-default=line-width=12\cm

Also in this case the warning is correct: 'line-width' is not a
possible option of the lilypond program, as you can see in the usage
manual:
http://lilypond.org/doc/v2.18/Documentation/usage/command_002dline-usage

You probably wanted to specify the line width of the fragments,
because lilypond-book wasn't able to determine it from xelatex.
'line-width' is an option of lilypond-book's pseudo-commands and
pseudo-environments: you should specify it in the single LilyPond
fragments, e.g.
   
\lilypondfile[indent=1\cm,ragged-right,line-width=12\cm]{scores/Lesson_1.01.xml.ly}
See again the usage manual:
http://lilypond.org/doc/v2.18/Documentation/usage/music-fragment-options

If you explicitly specify the line-width in each fragment,
lilypond-book will still try to determine the line width automatically
(you'll still get all the xelatex warnings), but will use the
explicitly specified value (the warnings will have no effect on the
end result).

Best wishes.
Davide

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: lilypond-book and includes

2014-08-09 Thread James

On 09/08/14 13:50, TaoCG wrote:

Dear List,

I'm having trouble using includes with lilypond-book.
When I use \include in the snippet with an absolute path it works but when I
try to include the path with the comand-line option I get an empty staff.

e.g.

\include /home/user/lily/test.ly

works, whereas

\include test.ly

with

--include=/home/user/lily/

doesn't.

And I don't get an error message, it's just an empty staff.
If I change the \include to a non-existant file I do get an error message.

I use lilypond-book from within lyx if this matters.

So, using absolute paths would be a workaround but I'd much prefer finding a
solution for this to work with --include




http://code.google.com/p/lilypond/issues/detail?id=4046

?

Note that this issue is currently going through the normal patch 
process, so if this is your issue and there is no suitable workaround in 
the threads mentioned then it will probably be in the code in the next 
week if not in an official unstable release.


James

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: lilypond-book and includes

2014-08-09 Thread TaoCG
Thanks, I tried the mentioned workaround but apparently this isn't the
problem.
Its not that the included file is not found. As I said, if I specify a
non-existant file with \include while using --include I get an error that
file is not found, but when I put the correct filename I get an empty staff
instead of the desired output.

The file I want to include contains some custom drum-definitions.
I post it, maybe someone can try to reproduce the problem.

### file to include: bata-def.ly ###
#(define (place-rests rest)
 (let* ((sp 0))
 (if
  (eq? (ly:grob-property-data rest 'duration-log) 1)
  (set! sp -2))
 sp))

drumPitchNames =
#'((enuopen . enuopen)
   (enumuff . enumuff)
   (chacha . chacha)
   (en . enuopen)
   (em . enumuff)
   (ch . chacha))

#(define bata-style
 '(
  (enuopen () #f -2)
  (enumuff cross #f -2)
  (chacha () #f 2)))

\layout {
\context {
\DrumStaff
\name BataStaff
drumStyleTable = #(alist-hash-table bata-style)
\override StaffSymbol.line-positions = #'(-2 2)
\override Rest.staff-position = #place-rests
\override TimeSignature.style = #'numbered
\override Stem.direction = #1
}
\context {
\StaffGroup
\accepts BataStaff
}
}


### actual snippet ###
\include bata-def.ly

okonkolo = \drummode {
eo2 ch
}

\score {
\new StaffGroup

\time 4/4
\new BataStaff \okonkolo

}



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/lilypond-book-and-includes-tp165429p165435.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: lilypond-book and includes

2014-08-09 Thread TaoCG
There was an error in the snippet I posted.
This is correct:

### snippet ###
okonkolo = \drummode {
en2 ch
}

\score {
\new StaffGroup

\time 4/4
\new BataStaff \okonkolo

}



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/lilypond-book-and-includes-tp165429p165436.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: lilypond-book and includes

2014-08-09 Thread TaoCG
Ok, I solved it. It's still strange though.
The problem lay in the included file at this part:

drumPitchNames =
#'((enuopen . enuopen)
   (enumuff . enumuff)
   (chacha . chacha)
   (en . enuopen)
   (em . enumuff)
   (ch . chacha)) 

When I rename the 'em'-shortcut to 'ef' it works.



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/lilypond-book-and-includes-tp165429p165438.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: lilypond-book and includes

2014-08-09 Thread David Kastrup
TaoCG tao_lilypondu...@gmx.net writes:

 Dear List,

 I'm having trouble using includes with lilypond-book.
 When I use \include in the snippet with an absolute path it works but when I
 try to include the path with the comand-line option I get an empty staff.

 e.g.

 \include /home/user/lily/test.ly

 works, whereas

 \include test.ly

 with

 --include=/home/user/lily/

 doesn't.

 And I don't get an error message, it's just an empty staff.
 If I change the \include to a non-existant file I do get an error message.

Check whether there is some test.ly within LilyPond's tree for you.
Maybe you left one there yourself at some point of time, and that is
getting earlier in the search path than your /home/user/lily/test.ly.

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: LilyPond-Book and \include statements

2014-07-04 Thread James
On 30/06/14 20:02, Br. Samuel Springuel wrote:
 Looking in those directories, I find no *.log files and the *.texi
 file simply contains a list of @image commands which point at the
 generated eps files (with @c eof at the end) and thus doesn't seem to
 be of much use.  Is there some option flag to force the *.log file?

 On the issues of the include statement and the included files, I don't
 think there are any problems there because LilyPond itself operates
 just fine on the files, as does lilypond-book when I'm not using the
 --output or --lily-output-dir options.  It's only when I specify one
 (or both) of those options that the problem arises.  You should be
 able to double check this yourself by looking at the source files I
 attached to the original email (I claim no expertise for my opinion,
 only that it appears to work to me).

 ✝
 Br. Samuel, OSB
 (R. Padraic Springuel)

 PAX ☧ ΧΡΙΣΤΟΣ
I haven't been able to figure it out other than I can replicate the
problem using TexInfo and lilypond-book, the actual offending line is the

aster = \set stanza = \markup{*}

Variable.

It works in a good old fashioned *.ly file compiled with lilypond on the
command line but when used with LilyPond-book it seems to have problems.
I don't know what 'environment' LilyPond book is adding to the snippets
you are incorporating into your Tex code - and tried it with nofragment
as well as fragment option and it still failed.

Maybe someone can work it out on the list, I can tell you that
lilypond-book calls some of the files in ../lilypond/current/python/..
which again may give some clues as to what could be tweaked. Or perhaps
there is another way of constructing that variable that doesn't trigger
the problem.

Sorry that I don't have a solution.

James

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: LilyPond-Book and \include statements

2014-06-30 Thread James

On 29/06/14 21:42, Br. Samuel Springuel wrote:
Attached is a small sample project which attempts to exploit the 
\include statement in lilypond in a lilypond-book project.  The goal 
(and why I have two scores in this small sample) is to be able to 
place in Format.lyi those pieces of the lilypond code (such as font 
selection, or the definition of certain symbols) which should apply to 
every snippet in the final project.


If I run lilypond-book Main.lytex everything works as expected. 
However, this, creates lots of files and folders in the working 
directory, especially on large projects.  As a result, I'd like to 
make use of the --output and --lily-output-dir options to create 
subdirectories where these files can be placed (leaving the top 
directory relatively clean).  However, when I try to enable either of 
these options (as well as both), lilypond complains that it cannot 
find Format.lyi.  Specifically I get the following:


rps-mac:Test_Lily_include  RPS$ lilypond-book Main.lytex 
--lily-output-dir Main-lily

lilypond-book (GNU LilyPond) 2.18.2
Reading Main.lytex...
Running `latex' on file 
`/var/folders/7r/jmxwxnms3jl6hptxkfymx380gq/T/tmptNZoeb.tex' to 
detect default page settings.


Dissecting...
Writing snippets...
Processing...
Running lilypond...
GNU LilyPond 2.18.2
Processing `snippet-map-279971155.ly'
Parsing...
Processing `Main.lytex'
Parsing...
Renaming input to: `Scores/Hymn.ly'
Scores/Hymn.ly:4:10: error: cannot find file: `Format.lyi'
(search path: 
`Scores:/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/fonts/svg/:/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/fonts/type1/:/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/fonts/otf/:/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/scm:/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/ps:/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/ly:Main-lily:.:..:')

\include
 Format.lyi
Scores/Hymn.ly:18:46: error: unknown escaped string: `\aster'
Come Ho -- ly Spir -- it, live in us
 \aster with God the Fa 
-- ther and the Son.  And grant us your a -- bun -- dant grace to 
sanc -- ti -- fi and make us one.

Interpreting music...[8]
Preprocessing graphical objects...
Calculating line breaks...
Drawing systems...
Layout output to `bf/lily-bfe9e111.eps'...
Layout output to `bf/lily-bfe9e111-1.eps'...
Layout output to `bf/lily-bfe9e111-2.eps'...
Layout output to `bf/lily-bfe9e111-3.eps'...
Writing bf/lily-bfe9e111-systems.texi...
Writing bf/lily-bfe9e111-systems.tex...
Writing bf/lily-bfe9e111-systems.count...
Processing `Main.lytex'
Parsing...
Renaming input to: `Scores/OurFather.ly'
Scores/OurFather.ly:4:10: error: cannot find file: `Format.lyi'
(search path: 
`Scores:/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/fonts/svg/:/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/fonts/type1/:/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/fonts/otf/:/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/scm:/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/ps:/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/ly:Main-lily:.:..:')

\include
 Format.lyi
Interpreting music...[8]
Preprocessing graphical objects...
Calculating line breaks...
Drawing systems...
Layout output to `8d/lily-e3a5995c.eps'...
Layout output to `8d/lily-e3a5995c-1.eps'...
Layout output to `8d/lily-e3a5995c-2.eps'...
Layout output to `8d/lily-e3a5995c-3.eps'...
Layout output to `8d/lily-e3a5995c-4.eps'...
Layout output to `8d/lily-e3a5995c-5.eps'...
Layout output to `8d/lily-e3a5995c-6.eps'...
Layout output to `8d/lily-e3a5995c-7.eps'...
Writing 8d/lily-e3a5995c-systems.texi...
Writing 8d/lily-e3a5995c-systems.tex...
Writing 8d/lily-e3a5995c-systems.count...
fatal error: failed files: 
command failed: 
/Applications/LilyPond.app/Contents/Resources/bin/lilypond 
--formats=ps -dbackend=eps  -I  Main-lily  -I  .  -I  .. 
--formats=eps  -deps-box-padding=3.00  -dread-file-list 
-dno-strip-output-dir /Users/RPS/Documents/Abbey/Test_Lily_include 
/Main-lily/snippet-names-279971155.ly

Child returned 1


Using the --output Main-out option (or both simultaneously) yields a 
similar output.


Does anyone know why this might be happening and what I can do to fix it?


Well not from just this. However if you use the location of the failed 
files:


8d/lily-e3a5995c.ly

and

bf/lily-bfe9e111.ly

Somewhere in one of those '8d' and 'bf' directories should be a 
corresponding *.log files that might give more clues to what the 
specific problem is.


Lilypond-book is what we use (essentially) to automate the building of 
all the pictures of examples of LilyPond code in the manuals and these 
*.log (and possibly *.texi files) that get generated are were the 
messages are going to be from my 

Re: LilyPond-Book and \include statements

2014-06-30 Thread Br. Samuel Springuel
Looking in those directories, I find no *.log files and the *.texi file 
simply contains a list of @image commands which point at the generated 
eps files (with @c eof at the end) and thus doesn't seem to be of much 
use.  Is there some option flag to force the *.log file?


On the issues of the include statement and the included files, I don't 
think there are any problems there because LilyPond itself operates just 
fine on the files, as does lilypond-book when I'm not using the --output 
or --lily-output-dir options.  It's only when I specify one (or both) of 
those options that the problem arises.  You should be able to double 
check this yourself by looking at the source files I attached to the 
original email (I claim no expertise for my opinion, only that it 
appears to work to me).


✝
Br. Samuel, OSB
(R. Padraic Springuel)

PAX ☧ ΧΡΙΣΤΟΣ

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Lilypond-book and Default Staff Size

2014-06-09 Thread James

On 09/06/14 14:50, Br. Samuel Springuel wrote:
I'm creating a document with Lilypond book and want all the musical 
systems in the document to be the same size, but also want to be able 
to tune the size to match the document font size settings (I have to 
produce the document in both a normal version and a large type 
version).  So far, I've been placing a staffsize=# option on each 
snippet, but as the number of snippets is proliferating, this is 
getting cumbersome.  Is there a way to globally set the staff size for 
all lilypond snippets in a document?

http://lilypond.org/doc/v2.19/Documentation/usage/music-fragment-options

?

James

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Lilypond-book and Default Staff Size

2014-06-09 Thread Br. Samuel Springuel
Those options (specifically staffsize) are what I'm using right now, but 
they have to be set for each Lilypond command separately.  I'm wondering 
if there is a way to set them once and have said value apply to the 
whole document (which contains multiple Lilypond commands).


✝
Br. Samuel, OSB
(R. Padraic Springuel)

PAX ☧ ΧΡΙΣΤΟΣ

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: LilyPond-Book on Windows

2014-04-13 Thread Br. Samuel Springuel
I just tried rerunning lilypond-book after changing the temp directory 
to something simpler.  That has run successfully, mostly.  There were no 
errors thrown by either lilypond-book or pdflatex, but the snippet 
widths did not fit the page properly.  The contents of the commandline 
follow:



Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Admincd c:\tmp

C:\tmpset TEMP=c:\temp

C:\tmplilypond-book test.lytex
lilypond-book.py (GNU LilyPond) 2.19.4
Reading test.lytex...
Running `latex' on file `c:\temp\tmpt5-2t3.tex' to detect default page settings.


lilypond-book.py: warning: Unable to auto-detect default settings:

lilypond-book.py: warning: cannot detect textwidth from LaTeX
Dissecting...
Writing snippets...
Processing...
Running lilypond...
GNU LilyPond 2.19.4
programming error: file name not normalized: C:\tmp\snippet-names-1571787863.ly
continuing, cross fingers
Processing `snippet-map-1571787863.ly'
Parsing...
Processing `test.lytex'
Parsing...
Interpreting music...[8][8]
Preprocessing graphical objects...
Calculating line breaks...
Drawing systems...
Layout output to `f6/lily-b39ab8e8.eps'...
Layout output to `f6/lily-b39ab8e8-1.eps'...
Layout output to `f6/lily-b39ab8e8-2.eps'...
Layout output to `f6/lily-b39ab8e8-3.eps'...
Writing f6/lily-b39ab8e8-systems.texi...
Writing f6/lily-b39ab8e8-systems.tex...
Writing f6/lily-b39ab8e8-systems.count...
Success: compilation successfully completed
Linking files...
Compiling C:\tmp\test.tex...
Writing `C:\tmp\test.tex'...

C:\tmppdflatex test.tex
This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/W32TeX)
 restricted \write18 enabled.
entering extended mode
(./test.tex
LaTeX2e 2011/06/27
Babel 3.9k and hyphenation patterns for 78 languages loaded.
(c:/texlive/2013/texmf-dist/tex/latex/base/report.cls
Document Class: report 2007/10/19 v1.4h Standard LaTeX document class
(c:/texlive/2013/texmf-dist/tex/latex/base/size12.clo))
(c:/texlive/2013/texmf-dist/tex/latex/graphics/graphics.sty
(c:/texlive/2013/texmf-dist/tex/latex/graphics/trig.sty)
(c:/texlive/2013/texmf-dist/tex/latex/latexconfig/graphics.cfg)
(c:/texlive/2013/texmf-dist/tex/latex/pdftex-def/pdftex.def
(c:/texlive/2013/texmf-dist/tex/generic/oberdiek/infwarerr.sty)
(c:/texlive/2013/texmf-dist/tex/generic/oberdiek/ltxcmds.sty)))
No file test.aux.
(c:/texlive/2013/texmf-dist/tex/context/base/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
) (c:/texlive/2013/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty
(c:/texlive/2013/texmf-dist/tex/generic/oberdiek/ifluatex.sty)
(c:/texlive/2013/texmf-dist/tex/generic/oberdiek/ifpdf.sty))
(c:/texlive/2013/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty
(c:/texlive/2013/texmf-dist/tex/latex/oberdiek/grfext.sty
(c:/texlive/2013/texmf-dist/tex/generic/oberdiek/kvdefinekeys.sty))
(c:/texlive/2013/texmf-dist/tex/latex/oberdiek/kvoptions.sty
(c:/texlive/2013/texmf-dist/tex/latex/graphics/keyval.sty)
(c:/texlive/2013/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty
(c:/texlive/2013/texmf-dist/tex/generic/oberdiek/etexcmds.sty)))
(c:/texlive/2013/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg))
(./f6/lily-b39ab8e8-systems.tex
f6/lily-b39ab8e8-1-eps-converted-to.pdf, id=1, 548.0475pt x 78.2925pt
use f6/lily-b39ab8e8-1-eps-converted-to.pdf
f6/lily-b39ab8e8-2-eps-converted-to.pdf, id=2, 548.0475pt x 51.19125pt
use f6/lily-b39ab8e8-2-eps-converted-to.pdf
f6/lily-b39ab8e8-3-eps-converted-to.pdf, id=3, 548.0475pt x 50.1875pt
use f6/lily-b39ab8e8-3-eps-converted-to.pdf)
Overfull \hbox (158.04616pt too wide) in paragraph at lines 15--27
[]

Overfull \hbox (158.04616pt too wide) in paragraph at lines 15--27
[]

Overfull \hbox (158.04616pt too wide) in paragraph at lines 15--27
[]

Underfull \hbox (badness 1) in paragraph at lines 15--27

(c:/texlive/2013/texmf-dist/tex/latex/base/omscmr.fd) [1{c:/texlive/2013/texmf-
var/fonts/map/pdftex/updmap/pdftex.map} ./f6/lily-b39ab8e8-1-eps-converted-to.
pdf ./f6/lily-b39ab8e8-2-eps-converted-to.pdf ./f6/lily-b39ab8e8-3-eps-conv
erted-to.pdf] (./test.aux) )
(see the transcript file for additional information)c:/texlive/2013/texmf-dist
/fonts/type1/public/amsfonts/cm/cmr10.pfbc:/texlive/2013/texmf-dist/fonts/typ
e1/public/amsfonts/cm/cmr12.pfbc:/texlive/2013/texmf-dist/fonts/type1/public/
amsfonts/cm/cmsy10.pfbc:/texlive/2013/texmf-dist/fonts/type1/public/amsfonts/
cm/cmti10.pfbc:/texlive/2013/texmf-dist/fonts/type1/urw/ncntrsbk/uncb8a.pfb
c:/texlive/2013/texmf-dist/fonts/type1/urw/ncntrsbk/uncr8a.pfb
Output written on test.pdf (1 page, 90811 bytes).
Transcript written on test.log.

C:\tmp


A second trial with lualatex still caused the hanging error.  The 
contents of that command line:



Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Admincd c:\tmp

C:\tmpset TEMP=c:\temp

C:\tmplilypond-book --latex-program lualatex test.lytex
lilypond-book.py (GNU LilyPond) 2.19.4
Reading test.lytex...

Re: LilyPond-Book on Windows

2014-04-11 Thread Evans Winner
Br. Samuel Springuel rpspring...@gmail.com writes:

I just downloaded the lilypond 2.19.4 windows binary and I'm not
seeing any change in the behavior of lilypond-book.

I don't know if this is worth anything, but I have not been
having lilypond-book hang with 2.19.3, but due to a
different problem, I tried changing to 2.19.4, and now the
same files and command line result in what appears to be a
hung python.  At any rate, it sits for longer than my meager
patience can withstand.  This is on Windows 7 Professional,
service pack 1, and it is the Python version 2.5.4 that came
with Lilypond.

I am probably not clever enough to provide further useful
information without prompting, but would be quite happy to
be prompted.


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: LilyPond-Book on Windows

2014-04-11 Thread Evans Winner
Evans Winner ego...@gmail.com writes:

[...] and it is the Python version 2.5.4 that came

Excuse me, I meant 2.4.5.


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: python 2.6 in GUB Re: LilyPond-Book on Windows

2014-04-08 Thread Phil Holmes
- Original Message - 
From: Graham Percival gra...@percival-music.ca

To: David Kastrup d...@gnu.org
Cc: Jan Nieuwenhuizen jann...@gnu.org; Phil Holmes 
m...@philholmes.net; Br. Samuel Springuel rpspring...@gmail.com; 
lilypond-user@gnu.org; Julien Rioux julien.ri...@gmail.com

Sent: Sunday, April 06, 2014 2:42 AM
Subject: python 2.6 in GUB Re: LilyPond-Book on Windows



On Sat, Apr 05, 2014 at 08:53:04AM +0200, David Kastrup wrote:

Jan Nieuwenhuizen jann...@gnu.org writes:

 David Kastrup writes:

 So my first impulse would be to throw out the workaround for 2.4.2 
 that


 Let's do that.

Well, issue 1933
URL:http://code.google.com/p/lilypond/issues/detail?id=1933 would
suggest that this is a bad idea.  Nothing substantially has changed
since then.  I'm currently trying to get the TEXINPUTS stuff integrated
into the Mingw fix to arrive back at a working lilypond-book, but of
course it is to be hoped that moving Python forward to 2.6 might make
that problem go away.  But it will take longer to figure that out.


Doesn't Julien have GUB with python 2.6 ready for testing?  I
would move forward on that before diving into the dark waters of
os.popen in python 2.4.  I remember bug 1933; it was really
annoying.

Cheers,
- Graham



I pulled Julien's branch directly from his repo in order to update my 
version of GUB to his version with Python 2.6.  The LilyPond build failed, 
with the error listing below.  I've got the full python.log if needed.


*** Stage: compile (python, freebsd-x86)
*** Stage: install (python, freebsd-x86)
all python modules:_elementtree.so, imageop.so, _testcapi.so, array.so, 
itertools.so, _bsddb.so, crypt.so, _bytesio.so, _multiprocessing.so, 
_csv.so, _struct.so, ossaudiodev.so, _weakref.so, select.so, mmap.so, dl.so, 
parser.so, _hotshot.so, _lsprof.so, _random.so, grp.so, _codecs_kr.so, 
_codecs_tw.so, _codecs_cn.so, _codecs_jp.so, operator.so, _heapq.so, 
_socket.so, _collections.so, _sha512.so, pyexpat.so, dbm.so, cPickle.so, 
fcntl.so, resource.so, _ctypes.so, unicodedata.so, _codecs_hk.so, syslog.so, 
termios.so, cStringIO.so, _bisect.so, _sha256.so, _locale.so, _functools.so, 
_codecs_iso2022.so, _json.so, _ctypes_test.so, _fileio.so, 
_multibytecodec.so, future_builtins.so, nis.so, strop.so, _md5.so, _sha.so, 
audioop.so

Tail of target/freebsd-x86/log/python.log 
Running chmod
('/home/gub/gub/target/freebsd-x86/install/python-2.6.4-root/usr/cross/bin/python-config', 
493)

{}
invoking assert_fine ()
all python modules:_elementtree.so, imageop.so, _testcapi.so, array.so, 
itertools.so, _bsddb.so, crypt.so, _bytesio.so, _multiprocessing.so, 
_csv.so, _struct.so, ossaudiodev.so, _weakref.so, select.so, mmap.so, dl.so, 
parser.so, _hotshot.so, _lsprof.so, _random.so, grp.so, _codecs_kr.so, 
_codecs_tw.so, _codecs_cn.so, _codecs_jp.so, operator.so, _heapq.so, 
_socket.so, _collections.so, _sha512.so, pyexpat.so, dbm.so, cPickle.so, 
fcntl.so, resource.so, _ctypes.so, unicodedata.so, _codecs_hk.so, syslog.so, 
termios.so, cStringIO.so, _bisect.so, _sha256.so, _locale.so, _functools.so, 
_codecs_iso2022.so, _json.so, _ctypes_test.so, _fileio.so, 
_multibytecodec.so, future_builtins.so, nis.so, strop.so, _md5.so, _sha.so, 
audioop.so

 Tail of target/freebsd-x86/log/python.log

Traceback (most recent call last):
File bin/gub, line 233, in exceptional_build
build (settings, options, files)
File bin/gub, line 229, in build
b.build_source_packages (names)
File bin/../gub/buildrunner.py, line 334, in build_source_packages
self.spec_build (spec_name)
File bin/../gub/buildrunner.py, line 262, in spec_build
deferred_runner.execute_deferred_commands ()
File bin/../gub/runner.py, line 167, in execute_deferred_commands
cmd.execute (self.logger)
File bin/../gub/commands.py, line 172, in execute
return self.func (logger, *self.args)
File /home/gub/gub/gub/specs/python-2.4.py, line 104, in assert_fine
raise Exception ('Python module failed: ' + module)
Exception: Python module failed: datetime
*** Failed target: freebsd-x86::python


--
Phil Holmes 



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: python 2.6 in GUB Re: LilyPond-Book on Windows

2014-04-08 Thread David Kastrup
Phil Holmes m...@philholmes.net writes:

 I pulled Julien's branch directly from his repo in order to update my
 version of GUB to his version with Python 2.6.  The LilyPond build
 failed, with the error listing below.  I've got the full python.log if
 needed.

[...]

 Running chmod
 ('/home/gub/gub/target/freebsd-x86/install/python-2.6.4-root/usr/cross/bin/python-config',
 493)

[...]
 File /home/gub/gub/gub/specs/python-2.4.py, line 104, in assert_fine
 raise Exception ('Python module failed: ' + module)
 Exception: Python module failed: datetime
 *** Failed target: freebsd-x86::python

That seems suspicious: the specs are 2.4?  I think that Jan's repository
stated throw the Python 2.6 switch somewhere.  Would an equivalent of
that commit be in Julien's branch?

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: python 2.6 in GUB Re: LilyPond-Book on Windows

2014-04-08 Thread Phil Holmes
- Original Message - 
From: David Kastrup d...@gnu.org

To: Phil Holmes m...@philholmes.net
Cc: Graham Percival gra...@percival-music.ca; Jan Nieuwenhuizen 
jann...@gnu.org; lilypond-user@gnu.org; Julien Rioux 
julien.ri...@gmail.com

Sent: Tuesday, April 08, 2014 3:45 PM
Subject: Re: python 2.6 in GUB Re: LilyPond-Book on Windows



Phil Holmes m...@philholmes.net writes:


I pulled Julien's branch directly from his repo in order to update my
version of GUB to his version with Python 2.6.  The LilyPond build
failed, with the error listing below.  I've got the full python.log if
needed.


[...]


Running chmod
('/home/gub/gub/target/freebsd-x86/install/python-2.6.4-root/usr/cross/bin/python-config',
493)


[...]

File /home/gub/gub/gub/specs/python-2.4.py, line 104, in assert_fine
raise Exception ('Python module failed: ' + module)
Exception: Python module failed: datetime
*** Failed target: freebsd-x86::python


That seems suspicious: the specs are 2.4?  I think that Jan's repository
stated throw the Python 2.6 switch somewhere.  Would an equivalent of
that commit be in Julien's branch?



I did wonder about that.  I assume GUB is actually running 2.4 at this 
point, since it seems to be compiling 2.6?


--
Phil Holmes 



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: LilyPond-Book on Windows

2014-04-08 Thread Br. Samuel Springuel
I just downloaded the lilypond 2.19.4 windows binary and I'm not seeing 
any change in the behavior of lilypond-book.


Checking the included python version, and it still appears to be 2.4.5. 
 Was this supposed to be upped to 2.6?


Here's the contents of my command prompt after using the 
KeyboardInterrupt to stop the apparently hung process:



Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Admincd My Documents\Sext Hymns

C:\Documents and Settings\Admin\My Documents\Sext Hymnslilypond-book --latex-pr
ogram pdflatex --output C:\Documents and Settings\Admin\My Documents\Sext Hymns
\test-out --lily-output-dir C:\Documents and Settings\Admin\My Documents\Sext
Hymns\test-lily --verbose test.lytex
lilypond-book.py: Setting LilyPond's output to --verbose, implied by lilypond-bo
ok's setting
lilypond-book.py (GNU LilyPond) 2.19.4
Reading test.lytex...
Running `pdflatex' on file `c:\docume~1\admin\locals~1\temp\tmpaidjyx.tex' to de
tect default page settings.

Executing: pdflatex c:\docume~1\admin\locals~1\temp\tmpaidjyx.tex

Traceback (most recent call last):
  File c:\Program Files\LilyPond\usr\bin\lilypond-book.py, line 776, in ?
main ()
  File c:\Program Files\LilyPond\usr\bin\lilypond-book.py, line 759, in main
chunks = do_file (files[0])
  File c:\Program Files\LilyPond\usr\bin\lilypond-book.py, line 607, in do_fil
e
global_options.formatter.init_default_snippet_options (source)
  File c:\Program Files\LilyPond\usr\share\lilypond\current\python\book_base.py
, line 141, in init_default_snippet_options
line_width = self.get_line_width (source)
  File c:\Program Files\LilyPond\usr\share\lilypond\current\python\book_latex.p
y, line 300, in get_line_width
textwidth = get_latex_textwidth (source, self.global_options)
  File c:\Program Files\LilyPond\usr\share\lilypond\current\python\book_latex.p
y, line 212, in get_latex_textwidth
returncode = os.system(cmd)
KeyboardInterrupt

C:\Documents and Settings\Admin\My Documents\Sext Hymns


Adding the --pdf flag changes things a bit:


C:\Documents and Settings\Admin\My Documents\Sext Hymnslilypond-book --latex-pr
ogram pdflatex  --output C:\Documents and Settings\Admin\My Documents\Sext Hy
mns\test-out --lily-output-dir C:\Documents and Settings\Admin\My Documents\Se
xt Hymns\test-lily --verbose --pdf test.lytex
Usage: lilypond-book [OPTION]... FILE

Process LilyPond snippets in hybrid HTML, LaTeX, texinfo or DocBook document.

Examples:
 $ lilypond-book --filter=tr '[a-z]' '[A-Z]' BOOK
 $ lilypond-book -F convert-ly --no-version --from=2.0.0 - BOOK
 $ lilypond-book --process='lilypond -I include' BOOK

Options:
   -F, --filter=FILTER  pipe snippets through FILTER [default: `convert-ly -n
-']
   -f, --format=FORMAT  use output format FORMAT (texi [default], texi-html,
latex, html, docbook)
   -h, --help   show this help and exit
   -I, --include=DIRadd DIR to include path
   --info-images-dir=DIR
format Texinfo output so that Info will look for
images of music in DIR
   --left-padding=PAD
pad left side of music to align music inspite of
uneven bar numbers (in mm)
   --lily-loglevel=LOGLEVEL
Print lilypond log messages according to LOGLEVEL
   --lily-output-dir=DIR
write lily-XXX files to DIR, link into --output dir
   --load-custom-package=PACKAGE
Load the additional python PACKAGE (containing e.g. a
custom output format)
   -l, --loglevel=LOGLEVEL
Print log messages according to LOGLEVEL (NONE, ERROR,
WARNING, PROGRESS (default), DEBUG)
   -o, --output=DIR write output to DIR
   -P, --process=COMMAND
process ly_files using COMMAND FILE...
   --redirect-lilypond-output
Redirect the lilypond output
   -s, --safe   Compile snippets in safe mode
   --skip-lily-check
do not fail if no lilypond output is found
   --skip-png-check
do not fail if no PNG images are found for EPS files
   --use-source-file-names
write snippet output files with the same base name as
their source file
   -V, --verbosebe verbose
   --versionshow version number and exit
   -w, --warranty   show warranty and copyright

Options only for the latex and texinfo backends:
   --latex-program=PROG
run executable PROG instead of latex, or in case --pdf
option is set instead of pdflatex
   --texinfo-program=PROG
run executable PROG instead of texi2pdf
   --pdfcreate PDF files for use with PDFTeX

Report bugs via  

Re: LilyPond-Book on Windows

2014-04-08 Thread David Kastrup
Br. Samuel Springuel rpspring...@gmail.com writes:

 I just downloaded the lilypond 2.19.4 windows binary and I'm not
 seeing any change in the behavior of lilypond-book.

 Checking the included python version, and it still appears to be
 2.4.5. Was this supposed to be upped to 2.6?

No, this is still 2.4.5 which is supposed to be used.

 Here's the contents of my command prompt after using the
 KeyboardInterrupt to stop the apparently hung process:

 Microsoft Windows XP [Version 5.1.2600]
 (C) Copyright 1985-2001 Microsoft Corp.

 C:\Documents and Settings\Admincd My Documents\Sext Hymns

 C:\Documents and Settings\Admin\My Documents\Sext Hymnslilypond-book 
 --latex-pr
 ogram pdflatex --output C:\Documents and Settings\Admin\My Documents\Sext 
 Hymns
 \test-out --lily-output-dir C:\Documents and Settings\Admin\My 
 Documents\Sext
 Hymns\test-lily --verbose test.lytex
 lilypond-book.py: Setting LilyPond's output to --verbose, implied by 
 lilypond-bo
 ok's setting
 lilypond-book.py (GNU LilyPond) 2.19.4
 Reading test.lytex...
 Running `pdflatex' on file `c:\docume~1\admin\locals~1\temp\tmpaidjyx.tex' 
 to de
 tect default page settings.

 Executing: pdflatex c:\docume~1\admin\locals~1\temp\tmpaidjyx.tex

Oh, good grief.  What happens when you create a directory C:\tmp, copy
the files to be processed in there, and run lilypond-book on them while
in _that_ directory?

On my GNU/Linux system, I can trigger the following
pdflatex c:\docume~1\admin\locals~1\temp\tmpaidjyx.tex
This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/Debian)
 restricted \write18 enabled.
entering extended mode
! I can't find file `c:docume'.
to be read again 
   \protect 
* c:docume~
 1adminlocals~1temptmpaidjyx.tex
(Press Enter to retry, or Control-D to exit)
Please type another input file name:

which then hangs on an input prompt.

 Adding the --pdf flag changes things a bit:

 C:\Documents and Settings\Admin\My Documents\Sext Hymnslilypond-book 
 --latex-pr
 ogram pdflatex  --output C:\Documents and Settings\Admin\My 
 Documents\Sext Hy
 mns\test-out --lily-output-dir C:\Documents and Settings\Admin\My 
 Documents\Se
 xt Hymns\test-lily --verbose --pdf test.lytex
 Usage: lilypond-book [OPTION]... FILE

Again: what happens when running this in c:\tmp on files placed there?

 Process LilyPond snippets in hybrid HTML, LaTeX, texinfo or DocBook document.

This looks like something is throwing the command line into tatters.
Can you please try with simpler command lines, only adding complexity by
and by?  And report at which moment stuff starts breaking?

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


  1   2   3   4   5   6   >