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



lilypond-book -> latex

2022-12-01 Thread Carlos Knauer
Hi.
Carlos, from Brazil.
I need package "lilypond-book->latex". How can I download it ?
Thanks


lilypond-book latex input duplicating

2022-11-29 Thread Jason Addison
If I \input{something} twice in a lytex file, it gets duplicated by
lilypond-book. How do I keep this from happening?

I'm using lilypond 2.22.2, from brew.

For example:

inp.lytex:

\documentclass[]{book}
\begin{document}
Hey!
\input{you}
Hey!
\input{you}
\end{document}


you.tex:

You!


command:
$ lilypond-book --output=out --pdf inp.lytex

now see out/you.tex:
$ cat out/you.tex
You!
You!

There are 2 "You!" strings, and the pdf file, from running "pdflatex
inp.tex" in out/, looks like:

Hey! You! You! Hey! You! You!

What I expect is:

Hey! You! Hey! You!

By the way, if I input it three times it gets triplicated. If I do it
once, it is normal.

Thanks,
Jason



Re: Any LyX users? Missing prerequisites: lilypond-book->latex

2022-05-31 Thread Andrew Bernard
No I mean it would be good if you submitted this module to OLL when I 
get it back up and running soonish.


Andrew


Henning Hraban Ramm wrote on 1/06/2022 1:13 AM:

That’s good to hear – but do you mean with OLL?





Re: Any LyX users? Missing prerequisites: lilypond-book->latex

2022-05-31 Thread Jacques Peron
Sorry, I forgot saying that the code between backticks should be saved to a
"test.tex" file.

Le mar. 31 mai 2022 à 17:19, Jacques Peron  a écrit :

> Le mar. 31 mai 2022 à 16:18, Kevin Cole  a écrit :
>
>> On Tue, May 31, 2022 at 10:02 AM Damian leGassick
>>  wrote:
>>
>> > My sense is also that for smaller documents, learning Lyx is actually
>> more work than just learning lilypond-book as tweaks outside of what Lyx
>> provides (and there could be many) require you to know your way around
>> normal ()TeX.
>>
>> Uh-oh. That's a bit worrisome, since I was stymied by lilypond-book
>> alone... Since you're the only person so far who seems to have spent
>> time with LyX, I'll take that under serious advisement...
>>
>> Depending on your needs, you could probably try with [lyluatex](
> https://github.com/jperon/lyluatex). For simple docs, it can be as simple
> as (backticks excluded):
>
> ```
> \documentclass{article}
> \usepackage{libertine}
> \usepackage{lyluatex}
>
> \begin{document}
>
> \lilypond{a b c}
>
> % To include external test.ly, uncomment next line
> %\lilypondfile{test.ly}
>
> \end{document}
> ```
>
> Then, assuming you have a proper installation of LilyPond and TeXLive (the
> simple way: apt install lilypond texlive-full):
> lualatex --shell-escape test
>
> Good luck!
>
>
>


Re: Any LyX users? Missing prerequisites: lilypond-book->latex

2022-05-31 Thread Jacques Peron
Le mar. 31 mai 2022 à 16:18, Kevin Cole  a écrit :

> On Tue, May 31, 2022 at 10:02 AM Damian leGassick
>  wrote:
>
> > My sense is also that for smaller documents, learning Lyx is actually
> more work than just learning lilypond-book as tweaks outside of what Lyx
> provides (and there could be many) require you to know your way around
> normal ()TeX.
>
> Uh-oh. That's a bit worrisome, since I was stymied by lilypond-book
> alone... Since you're the only person so far who seems to have spent
> time with LyX, I'll take that under serious advisement...
>
> Depending on your needs, you could probably try with [lyluatex](
https://github.com/jperon/lyluatex). For simple docs, it can be as simple
as (backticks excluded):

```
\documentclass{article}
\usepackage{libertine}
\usepackage{lyluatex}

\begin{document}

\lilypond{a b c}

% To include external test.ly, uncomment next line
%\lilypondfile{test.ly}

\end{document}
```

Then, assuming you have a proper installation of LilyPond and TeXLive (the
simple way: apt install lilypond texlive-full):
lualatex --shell-escape test

Good luck!


Re: Any LyX users? Missing prerequisites: lilypond-book->latex

2022-05-31 Thread Henning Hraban Ramm

Am 31.05.22 um 17:01 schrieb Andrew Bernard:
The OLL repo will be ready again in a few days. An excellent candidate 
for that.


I used ConTeXt with great success in the past.


That’s good to hear – but do you mean with OLL?

AFAIR Urs provided just LaTeX support for his critical edition stuff.

But everything that works within LilyPond of course also works with 
ConTeXt, since “we” include only the resulting PDFs.


Hraban



Re: Any LyX users? Missing prerequisites: lilypond-book->latex

2022-05-31 Thread Andrew Bernard

Hello Hraban.

The OLL repo will be ready again in a few days. An excellent candidate 
for that.


I used ConTeXt with great success in the past.

Andrew


Henning Hraban Ramm wrote on 1/06/2022 12:49 AM:
I actually don’t use LaTeX but ConTeXt where I wrote the LilyPond 
bridge myself (https://wiki.contextgarden.net/LilyPond; I should adapt 
it to a current LP version). It’s not as sophisticated as the 
collaboration between LaTeX and LilyPond, esp. if you look at Urs 
Liska’s work, but it was always enough for my songbooks. 




Re: Any LyX users? Missing prerequisites: lilypond-book->latex

2022-05-31 Thread Henning Hraban Ramm

Am 31.05.22 um 16:02 schrieb Damian leGassick:

That said, it is a good environment for embedding multiple Lilypond generated 
pdf/eps in a structured text document, because any changes in those pdf/eps 
files are picked up automatically without having to reimport them (cf MS Word) 
or even refresh Lyx - they just change.


Of course, since TeX takes what’s there in every run. Layout apps 
warning you that something has changed is sometimes helpful (but 
annoying in most cases).



be aware that multi-page lilypond scores need to be imported into Lyx one page 
at a time - it will not ‘flow’ a score between multiple boxes.


I don’t know how LyX does it, but you can select pages from multipage 
PDFs with the \includepdf command from the pdfpages package.



My sense is also that for smaller documents, learning Lyx is actually more work 
than just learning lilypond-book as tweaks outside of what Lyx provides (and 
there could be many) require you to know your way around normal ()TeX.


I never liked LyX and its way to hide TeX behind a GUI, since you will 
get in trouble as soon as something happens or as you need something extra.


I’m also quite sure the usual way to include LilyPond scores is system 
by system, since lilypond-book produces them.


I actually don’t use LaTeX but ConTeXt where I wrote the LilyPond bridge 
myself (https://wiki.contextgarden.net/LilyPond; I should adapt it to a 
current LP version). It’s not as sophisticated as the collaboration 
between LaTeX and LilyPond, esp. if you look at Urs Liska’s work, but it 
was always enough for my songbooks.


Hraban



Re: Any LyX users? Missing prerequisites: lilypond-book->latex

2022-05-31 Thread Damian leGassick


> 
> Uh-oh. That's a bit worrisome, since I was stymied by lilypond-book
> alone... Since you're the only person so far who seems to have spent
> time with LyX, I'll take that under serious advisement...

For simple stuff Lyx is much simpler. I’d certainly recommend you try it.


Re: Any LyX users? Missing prerequisites: lilypond-book->latex

2022-05-31 Thread Kevin Cole
On Tue, May 31, 2022 at 10:02 AM Damian leGassick
 wrote:

> fwiw I was never able to get Lyx’s native Lilypond mode working reliably. The 
> manual was, and remains completely unhelpful.

Thanks! Knowing that the manual is unhelpful is really helpful. ;-)
Not to mention knowing that LyX's native LilyPond mode is sketchy.

> That said, it is a good environment for embedding multiple Lilypond generated 
> pdf/eps in a structured text document, because any changes in those pdf/eps 
> files are picked up automatically without having to reimport them (cf MS 
> Word) or even refresh Lyx - they just change.

Okay. I can [he says prematurely and optimistically] work with that.

> I’ve typeset a long complex analytical doctoral thesis and several 
> harmony/analysis workbooks like this and it works really well.

As a rank amateur (sometimes very rank) merely attempting to replicate
what I see on paper with a less-than-complete understanding of what
I'm looking at, my needs are, I think, considerably more modest. (I'm
doing it more for preservation, and the benefit of my friends who
actually do read music. They'll be able to either put it on the
electronic device of their choice, or print out better-looking copies.
Then, I then follow them, playing by ear.)

> be aware that multi-page lilypond scores need to be imported into Lyx one 
> page at a time - it will not ‘flow’ a score between multiple boxes.

Also an "important safety tip" that I can work with. (I've got Linux
applications that burst multiple pages into individual files.)

> My sense is also that for smaller documents, learning Lyx is actually more 
> work than just learning lilypond-book as tweaks outside of what Lyx provides 
> (and there could be many) require you to know your way around normal ()TeX.

Uh-oh. That's a bit worrisome, since I was stymied by lilypond-book
alone... Since you're the only person so far who seems to have spent
time with LyX, I'll take that under serious advisement...



Re: Any LyX users? Missing prerequisites: lilypond-book->latex

2022-05-31 Thread Damian leGassick
fwiw I was never able to get Lyx’s native Lilypond mode working reliably. The 
manual was, and remains completely unhelpful.

That said, it is a good environment for embedding multiple Lilypond generated 
pdf/eps in a structured text document, because any changes in those pdf/eps 
files are picked up automatically without having to reimport them (cf MS Word) 
or even refresh Lyx - they just change.

I’ve typeset a long complex analytical doctoral thesis and several 
harmony/analysis workbooks like this and it works really well.

be aware that multi-page lilypond scores need to be imported into Lyx one page 
at a time - it will not ‘flow’ a score between multiple boxes.

My sense is also that for smaller documents, learning Lyx is actually more work 
than just learning lilypond-book as tweaks outside of what Lyx provides (and 
there could be many) require you to know your way around normal ()TeX.

D

> On 30 May 2022, at 19:08, David Wright  wrote:
> 
> On Sun 29 May 2022 at 20:30:34 (-0400), Kevin Cole wrote:
>> [Asked on the lyx mailing list but, so far, no response.]
>> 
>> I'm running the latest -- and greatest(?)  -- release of Pop!_OS,
>> which is effectively Ubuntu. Specifically, 22.04 LTS ("Jammy").
>> 
>> I'm finding myself having a hard enough time with LilyPond alone,
>> without the added burden of learning everything about LaTeX, XeTeX,
>> LuaTeX, etc, (just to get the font I want) along with LilyPond-Book.
>> So, I'm hoping, for what I want to do, that LyX -- which I also don't
>> know, will be less of a climb.
> 
> It seems a slightly odd choice to me, as it's designed AIUI to give
> a more wysiwyg experience, which would seem to be the opposite of
> the lilypond-book workflow. Perhaps I'm wrong.
> 
>> I've just installed LyX and have not adjusted any preferences /
>> options / configurations. When I try Help -> Specific Manuals ->
>> LilyPond I get a pop-up:
> 
> Very appropriate!
> 
>> __
>> The module lilypond requires a package that is not
>> available in your LaTeX installation, or a converter that
>> you have not installed. LaTeX output may not be possible.
>> Missing prerequisites:
>>lilypond-book->latex
>> See section 3.1.2.3 (Modules) of the User's Guide for more information.
>> __



Re: Any LyX users? Missing prerequisites: lilypond-book->latex

2022-05-30 Thread David Wright
On Sun 29 May 2022 at 20:30:34 (-0400), Kevin Cole wrote:
> [Asked on the lyx mailing list but, so far, no response.]
> 
> I'm running the latest -- and greatest(?)  -- release of Pop!_OS,
> which is effectively Ubuntu. Specifically, 22.04 LTS ("Jammy").
> 
> I'm finding myself having a hard enough time with LilyPond alone,
> without the added burden of learning everything about LaTeX, XeTeX,
> LuaTeX, etc, (just to get the font I want) along with LilyPond-Book.
> So, I'm hoping, for what I want to do, that LyX -- which I also don't
> know, will be less of a climb.

It seems a slightly odd choice to me, as it's designed AIUI to give
a more wysiwyg experience, which would seem to be the opposite of
the lilypond-book workflow. Perhaps I'm wrong.

> I've just installed LyX and have not adjusted any preferences /
> options / configurations. When I try Help -> Specific Manuals ->
> LilyPond I get a pop-up:

Very appropriate!

> __
> The module lilypond requires a package that is not
> available in your LaTeX installation, or a converter that
> you have not installed. LaTeX output may not be possible.
> Missing prerequisites:
> lilypond-book->latex
> See section 3.1.2.3 (Modules) of the User's Guide for more information.
> __
> 
> I've read elsewhere that it should just work "out of the box" on
> Ubuntu systems. I ran the Tools->Reconfigure (though
> from everything I read it wasn't necessary). No change. It still
> didn't find what it's looking for. Anyone know what I'm missing?

Well, if § 3.1.2.3 (Modules) of the User's Guide doesn't help (what
does it say), I would look through the .log file from an attempt at
running LP-book, and see if it tells you what it's specifically
failing to find.

Running under strace might tell you more, by showing which files it
looks for and attempts to open, but it's voluminous and may be
difficult to interpret.

Cheers,
David.



Any LyX users? Missing prerequisites: lilypond-book->latex

2022-05-29 Thread Kevin Cole
[Asked on the lyx mailing list but, so far, no response.]

Hi,

I'm running the latest -- and greatest(?)  -- release of Pop!_OS,
which is effectively Ubuntu. Specifically, 22.04 LTS ("Jammy").

I'm finding myself having a hard enough time with LilyPond alone,
without the added burden of learning everything about LaTeX, XeTeX,
LuaTeX, etc, (just to get the font I want) along with LilyPond-Book.
So, I'm hoping, for what I want to do, that LyX -- which I also don't
know, will be less of a climb.

I've just installed LyX and have not adjusted any preferences /
options / configurations. When I try Help -> Specific Manuals ->
LilyPond I get a pop-up:
__
The module lilypond requires a package that is not
available in your LaTeX installation, or a converter that
you have not installed. LaTeX output may not be possible.
Missing prerequisites:
    lilypond-book->latex
See section 3.1.2.3 (Modules) of the User's Guide for more information.
__

I've read elsewhere that it should just work "out of the box" on
Ubuntu systems. I ran the Tools->Reconfigure (though
from everything I read it wasn't necessary). No change. It still
didn't find what it's looking for. Anyone know what I'm missing?

P.S. For the record, I have:

$ lyx --version
LyX 2.3.6 (2020-11-27)
Configuration
  Host type:   x86_64-pc-linux-gnu
...

$ lilypond --version
GNU LilyPond 2.22.1

$ lilypond-book --version
2.22.1

$ latex --version
pdfTeX 3.141592653-2.6-1.40.22 (TeX Live 2022/dev/Debian)
kpathsea version 6.3.4/dev
Copyright 2021 Han The Thanh (pdfTeX) et al.

Just to be sure:

$ dpkg -l | \
> tr -s "\t " " " | \
> cut -d " " -f 2-3 | \
> egrep "(lyx|tex|lilypond)" | \
> egrep -v "tex(t|port)"
fonts-lyx 2.3.6-1
fonts-texgyre 20180621-3.1
geany-plugin-latex 1.38+dfsg-1
latexmk 1:4.76-1
libptexenc1:amd64 2021.20210626.59705-1build1
libsynctex2:amd64 2021.20210626.59705-1build1
libtexlua53:amd64 2021.20210626.59705-1build1
libtexluajit2:amd64 2021.20210626.59705-1build1
lilypond 2.22.1-2
lilypond-data 2.22.1-2
lilypond-doc 2.22.1-2
lilypond-doc-html 2.22.1-2
lilypond-doc-pdf 2.22.1-2
lilypond-fonts 2.22.1-2
lyx 2.3.6-1
lyx-common 2.3.6-1
pd-motex 1.1.4-4
preview-latex-style 12.2-1ubuntu1
tex-common 6.17
tex-gyre 20180621-3.1
texinfo 6.8-4build1
texlive 2021.20220204-1
texlive-base 2021.20220204-1
texlive-binaries 2021.20210626.59705-1build1
texlive-extra-utils 2021.20220204-1
texlive-font-utils 2021.20220204-1
texlive-fonts-recommended 2021.20220204-1
texlive-fonts-recommended-doc 2021.20220204-1
texlive-lang-english 2021.20220204-1
texlive-lang-greek 2021.20220204-1
texlive-latex-base 2021.20220204-1
texlive-latex-base-doc 2021.20220204-1
texlive-latex-extra 2021.20220204-1
texlive-latex-extra-doc 2021.20220204-1
texlive-latex-recommended 2021.20220204-1
texlive-latex-recommended-doc 2021.20220204-1
texlive-luatex 2021.20220204-1
texlive-metapost 2021.20220204-1
texlive-metapost-doc 2021.20220204-1
texlive-pictures 2021.20220204-1
texlive-pictures-doc 2021.20220204-1
texlive-plain-generic 2021.20220204-1
texlive-science 2021.20220204-1
texlive-xetex 2021.20220204-1


-- 
Physical
Kevin Cole, RHCE
("ubuntourist")
Brain-Washington,
Disenfranchised City
Virtual
Git:
https://codeberg.org/ubuntourist/
CV:
https://stackoverflow.com/cv/ubuntourist/
LinkedIn:
https://linkedin.com/in/ubuntourist/
GPG Key ID: 0x3E696927



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


lilypond-book→latex

2018-12-21 Thread N. Andrew Walsh
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.

Thanks for the help,

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


lilypond-book/LateX Beamer: best rendering practice?

2013-02-12 Thread Florian Hollerweger
Hi all,

As mentioned earlier, I am planning to deliver a Lilypond workshop together 
with a friend at this year's Linux Audio Conference. For the workshop slides, I 
already have a working setup using lilypond-book --pdf in combination with 
pdflatex and LaTeX Beamer.

However, I am not entirely satisfied with the *on-screen* PDF display that my 
current setup provides.
In particular, the BWV 861 comparison between Finale (PDF from [1]) and 
Lilypond (generated with lilypond-book --pdf and pdflatex) does not look half 
as convincing as the PNG comparison on the website [2], no matter which PDF 
viewer I use.

Don't worry, I am not gonna embark on a discussion of barline thickness for 
on-screen PDF rendering :) But I would be interested in your suggestions re. a 
best Lilypond rendering practice for my following requirements:

===BEGIN LETTER TO SANTA===
- On-screen display must be of sufficient enough quality to convince also 
without printed examples. The benchmark is the BWV 861 comparison mentioned 
above.

- Must use lilypond-book and LaTeX Beamer, but choice of Lilypond/LaTeX output 
format (PDF, PNG, PS, etc.) is flexible.

- I don't care which viewer application (acroread, Okular, etc.) I have to use 
for the presentation, but it should ideally work under Linux.

- Doesn't hurt if the final document looks good in print, too :) However, I'd 
be willing to implement two parallel rendering toolchains for on-screen and 
print.
===END LETTER TO SANTA===

I have a feeling this might boil down to a PDF vs. PNG showdown?

- For high-quality LaTeX documents, PDF seems to be preferable to PNG, hence 
my initial choice of pflatex and lilypond-book --pdf.

- But I get the impression that PNGs (rather than PDFs) might be the way to go 
for better-quality on-screen display of Lilypond output?

Any comments or pointers in the right directions will be greatly appreciated!

Best,
flo.H


References:

[1] 
http://git.savannah.gnu.org/gitweb/?p=lilypond.git;a=blob;f=Documentation/pictures/pdf/bwv861-finale2008a.pdf;h=b4d64e6d06f68af78e3e39a0f49283b04a48be03;hb=HEAD

[2] 
http://lilypond.org/doc/v2.16/Documentation/essay-big-page.html#Engraved-examples-_0028BWV-861_0029

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


Re: lilypond-book/LateX Beamer: best rendering practice?

2013-02-12 Thread Phil Holmes
- Original Message - 
From: Florian Hollerweger f...@mur.at

To: Lilypond User List lilypond-user@gnu.org
Sent: Tuesday, February 12, 2013 11:55 AM
Subject: lilypond-book/LateX Beamer: best rendering practice?



Hi all,

As mentioned earlier, I am planning to deliver a Lilypond workshop 
together with a friend at this year's Linux Audio Conference. For the 
workshop slides, I already have a working setup using lilypond-book --pdf 
in combination with pdflatex and LaTeX Beamer.


- But I get the impression that PNGs (rather than PDFs) might be the way 
to go for better-quality on-screen display of Lilypond output?



I guess the benefit of PNG is that you're not reliant on the PDF on-screen 
renderer to control the look of the output.  However, if you create the PNGs 
you're going to use at their final size, you're still dependent on a 
relatively unsophisticated mechanism to fit the lines and features to the 
pixels.  I would experiment with creating PNGs much larger than you require 
and resizing them with an image processing application.  Also experiment 
with LilyPond's anti-alias-factor.


--
Phil Holmes 



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


Re: lilypond-book/LateX Beamer: best rendering practice?

2013-02-12 Thread Florian Hollerweger
Hi Phil,

I'll go and do as you say, but wouldn't I be facing the problem that pdflatex 
has its own ideas at which resolution to actually render PNGs?

That's precisely why I have ended up using graphics in PDF format whenever I 
can with pdflatex, but maybe I should investigate LaTeX rendering options other 
than *pdf*latex...

Best,
flo.H


Phil Holmes wrote:
 I guess the benefit of PNG is that you're not reliant on the PDF on-screen 
 renderer to control the look of the output.  However, if you create the PNGs 
 you're going to use at their final size, you're still dependent on a 
 relatively unsophisticated mechanism to fit the lines and features to the 
 pixels.  I would experiment with creating PNGs much larger than you require 
 and resizing them with an image processing application.  Also experiment 
 with LilyPond's anti-alias-factor.

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


Re: lilypond-book/LateX Beamer: best rendering practice?

2013-02-12 Thread David Kastrup
Florian Hollerweger f...@mur.at writes:

 Hi Phil,

 I'll go and do as you say, but wouldn't I be facing the problem that
 pdflatex has its own ideas at which resolution to actually render
 PNGs?

It just packages them.  It is up to you with what resolution you prepare
them before inclusion into PDFLaTeX.

 That's precisely why I have ended up using graphics in PDF format
 whenever I can with pdflatex,

With print, very much the best idea.  Maybe it is worth checking out a
number of PDF previewers, too.

-- 
David Kastrup


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


Re: in-line note font elements in lilypond-book + latex?

2007-05-23 Thread Mats Bengtsson



Marcus Brinkmann wrote:

Hi Mats,

as usual, your advice is invaluable.  I am getting somewhere, just not
quite there yet.

At Mon, 21 May 2007 13:11:53 +0200,
Mats Bengtsson [EMAIL PROTECTED] wrote:
  
You can simply insert short LilyPond examples in the middle of ordinary 
text. Example:



The first part of the example works fine.  The second produces three
pages, mostly empty.  It seems that the output of the non-fragment is
a big chunk, the bounding box is something like 800x600.
  
Always tell what LilyPond version you use! Now that I try it with the 
different
versions I have available, it turns out that this is a bug which occurs 
in the stable

version, 2.10.x, but has been fixed in the development version, 2.11.x.
I will send a bug report, but it might happen that the reason it works 
in version 2.11
is some major restructuring of the implementation, so I don't know how 
easy it

would be to fix it in 2.10.

   /Mats


I can do something with the first example.  However, it requires me to
suppress the staff if I only want the note.  I grabbed the below from
the lilypond manual (Rhythm section).  Because the staff is
transparent, but still occupies space, I need to play around a bit
with the bounding box, though.  This can be done in Latex, but if
there is a less fragile solution, it may be worth to get it written
down.

\begin{lilypond}
\score {
\relative c' { d4 }
  \layout {
ragged-right = ##t
indent=0\mm
\context {
  \Score
\remove Bar_number_engraver
}
\context {
  \Staff
\remove Clef_engraver
\override StaffSymbol #'transparent = ##t
\override TimeSignature #'transparent = ##t
\override BarLine #'transparent = ##t
\consists Pitch_squash_engraver
}
  }
}
\end{lilypond}

Thanks,
Marcus

  

\documentclass[a4paper]{article}
\begin{document}

Here is a short LilyPond example
\begin[fragment,relative]{lilypond}
c4
\end{lilypond}
embedded within ordinary text.

Here is another example with only a Text Markup command
\begin{lilypond}
\markup{\note #4 #UP = 100 }
\end{lilypond}
followed by some more text.
\end{document}


/Mats

Marcus Brinkmann wrote:


Hi,

I would like to typeset, for example, quarter-note = 100 as part
of a text in a paragraph, rather than as a vertical block element.  I
  




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


--
=
Mats Bengtsson
Signal Processing
Signals, Sensors and Systems
Royal Institute of Technology
SE-100 44  STOCKHOLM
Sweden
Phone: (+46) 8 790 8463 
   Fax:   (+46) 8 790 7260
Email: [EMAIL PROTECTED]
WWW: http://www.s3.kth.se/~mabe
=



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


Re: in-line note font elements in lilypond-book + latex?

2007-05-23 Thread Mats Bengtsson

Marcus Brinkmann wrote:



The first part of the example works fine.  The second produces three
pages, mostly empty.  It seems that the output of the non-fragment is
a big chunk, the bounding box is something like 800x600.

I can do something with the first example.  However, it requires me to
suppress the staff if I only want the note.  I grabbed the below from
the lilypond manual (Rhythm section).  Because the staff is
transparent, but still occupies space, I need to play around a bit
with the bounding box, though.  This can be done in Latex, but if
there is a less fragile solution, it may be worth to get it written
down.
 


If you want to stick to the stable version, an answer to this
question can be found in the Tips and Tricks document,
which contains an example called engraver-one-by-one.ly
which answers your question. Note that only part of the
example is shown in the Tips and Tricks document. Click
on the score to see the corresponding .ly code and run
it yourself to see all the steps.

  /Mats


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


Re: in-line note font elements in lilypond-book + latex?

2007-05-22 Thread Marcus Brinkmann
Hi Mats,

as usual, your advice is invaluable.  I am getting somewhere, just not
quite there yet.

At Mon, 21 May 2007 13:11:53 +0200,
Mats Bengtsson [EMAIL PROTECTED] wrote:
 
 You can simply insert short LilyPond examples in the middle of ordinary 
 text. Example:

The first part of the example works fine.  The second produces three
pages, mostly empty.  It seems that the output of the non-fragment is
a big chunk, the bounding box is something like 800x600.

I can do something with the first example.  However, it requires me to
suppress the staff if I only want the note.  I grabbed the below from
the lilypond manual (Rhythm section).  Because the staff is
transparent, but still occupies space, I need to play around a bit
with the bounding box, though.  This can be done in Latex, but if
there is a less fragile solution, it may be worth to get it written
down.

\begin{lilypond}
\score {
\relative c' { d4 }
  \layout {
ragged-right = ##t
indent=0\mm
\context {
  \Score
\remove Bar_number_engraver
}
\context {
  \Staff
\remove Clef_engraver
\override StaffSymbol #'transparent = ##t
\override TimeSignature #'transparent = ##t
\override BarLine #'transparent = ##t
\consists Pitch_squash_engraver
}
  }
}
\end{lilypond}

Thanks,
Marcus

 \documentclass[a4paper]{article}
 \begin{document}
 
 Here is a short LilyPond example
 \begin[fragment,relative]{lilypond}
 c4
 \end{lilypond}
 embedded within ordinary text.
 
 Here is another example with only a Text Markup command
 \begin{lilypond}
 \markup{\note #4 #UP = 100 }
 \end{lilypond}
 followed by some more text.
 \end{document}
 
 
 /Mats
 
 Marcus Brinkmann wrote:
  Hi,
 
  I would like to typeset, for example, quarter-note = 100 as part
  of a text in a paragraph, rather than as a vertical block element.  I



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


Re: in-line note font elements in lilypond-book + latex?

2007-05-21 Thread Mats Bengtsson
You can simply insert short LilyPond examples in the middle of ordinary 
text. Example:


\documentclass[a4paper]{article}
\begin{document}

Here is a short LilyPond example
\begin[fragment,relative]{lilypond}
c4
\end{lilypond}
embedded within ordinary text.

Here is another example with only a Text Markup command
\begin{lilypond}
\markup{\note #4 #UP = 100 }
\end{lilypond}
followed by some more text.
\end{document}


   /Mats

Marcus Brinkmann wrote:

Hi,

I would like to typeset, for example, quarter-note = 100 as part
of a text in a paragraph, rather than as a vertical block element.  I
can possibly mess around with latex to get the desired effect, using
nested box elements and includegraphics (if you have already a
solution for that, please send it to me!).  However, is there a
simpler canonical way to do that?

Or is a quarter note already a composed object (note-head + stem) that
can not be easily assembled in latex from the lilypond font?

Thanks,
Marcus



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


--
=
Mats Bengtsson
Signal Processing
Signals, Sensors and Systems
Royal Institute of Technology
SE-100 44  STOCKHOLM
Sweden
Phone: (+46) 8 790 8463 
   Fax:   (+46) 8 790 7260
Email: [EMAIL PROTECTED]
WWW: http://www.s3.kth.se/~mabe
=



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


in-line note font elements in lilypond-book + latex?

2007-05-20 Thread Marcus Brinkmann
Hi,

I would like to typeset, for example, quarter-note = 100 as part
of a text in a paragraph, rather than as a vertical block element.  I
can possibly mess around with latex to get the desired effect, using
nested box elements and includegraphics (if you have already a
solution for that, please send it to me!).  However, is there a
simpler canonical way to do that?

Or is a quarter note already a composed object (note-head + stem) that
can not be easily assembled in latex from the lilypond font?

Thanks,
Marcus



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


Lilypond-book + LaTeX (WinXP)

2006-09-22 Thread Sami

Hi everyone.

I seem to have a problem with lilypond-book, when it calls latex. 

I have WinXP SP2, TexLive 2005 from Ctan (the whole thing), and Lilypond
2.9.18 (development). I did this (meaning, I installed the development
version vs the stable one) to avoid some problems that I read were present
in the stable version (about TexLive). Anyway, I write in command line:

lilypond-book --format=latex --psfonts --output=1stExample.tex
1stExample.lytex

It responds:

lilypond-book.py (GNU Lilypond) 2.9.18
Reading 1stExample.lytex...
Running latex...Traceback (most recent call last):
   File ...\usr\bin\lilypond-book.py, line 1780, in ? main ()
   File ...\usr\bin\lilypond-book.py, line 1734, in main 
  chunks = do_file (file)
   File ...\usr\bin\lilypond-book.py, line 1612, in do_file 
  set_default_options (source)
   File ...\usr\bin\lilypond-book.py, line 746, in set_default_options 
  textwidth = get_latex_textwidth (source)
   File ...\usr\bin\lilypond-book.py, line 1421, in get_latex_textwidth 
  ly.system ('latex %s' % tmpfile, be_verbose=global_options.verbose)
   File ...\usr\share\lilypond\current\python\lilylib.py, line 99, in
system 
  stderr=stdout_setting)
   File /usr/lib/python2.4/subprocess.py, line 542, in __init__
   File /usr/lib/python2.4/subprocess.py, line 899, in _execute_child
AttributeError: 'module' object has no attribute 'pipe'

After that, nothing has been produced.

Let me add that all the other formats except latex (in other words, texi,
texi-html and html) actually produce something. Only latex has this problem.
What can I do? I have so far done everything I read - installed the all-new
python, removed lililyb.py and convertrules and all, put them back, you name
it. Any help would be very appreciated. BTW, the 1stExample.lytex is the one
from the pdf book (the musicological example). 
-- 
View this message in context: 
http://www.nabble.com/Lilypond-book-%2B-LaTeX-%28WinXP%29-tf2319305.html#a6452374
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.



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


Re: lilypond-book - latex environment

2003-03-10 Thread Mats Bengtsson
I you read INSTALL.txt, you will find instructions on how to
source the files lilypond-profile/lilypond-login to get the
environment correctly set. What you suggest here is actually
not the best way (trademark) to solve the problem.
If you didn't run make install, you the settings in
buildscripts/out/lilypond-profile will still be correct
if you run configure with --prefix=$PWD.
   /Mats

Rutger Hofman wrote:
Hi folks

I managed to run lilypond-book, then LaTeX.
But it took me some time to figure out all that
I had to set in the environment.
I would like to suggest that this be explained
somewhere in the documentation for running
lilypond-book.
Suggestion:

Let LILYPOND be the directory where you built lilypond.

Then the following environment variables must be set:

TEXINPUTS  $LILYPOND/tex:$LILYPOND/mf/out:
MFINPUTS   $LILYPOND/mf:
TEXPSHEADERS   $LILYPOND/ps:
Cheers

Rutger



___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user
--
=
Mats Bengtsson
Signal Processing
Signals, Sensors and Systems
Royal Institute of Technology
SE-100 44  STOCKHOLM
Sweden
Phone: (+46) 8 790 8463 
Fax:   (+46) 8 790 7260
Email: [EMAIL PROTECTED]
WWW: http://www.s3.kth.se/~mabe
=


___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user


lilypond-book - latex environment

2003-03-09 Thread Rutger Hofman
Hi folks

I managed to run lilypond-book, then LaTeX.
But it took me some time to figure out all that
I had to set in the environment.
I would like to suggest that this be explained
somewhere in the documentation for running
lilypond-book.
Suggestion:

Let LILYPOND be the directory where you built lilypond.

Then the following environment variables must be set:

TEXINPUTS  $LILYPOND/tex:$LILYPOND/mf/out:
MFINPUTS   $LILYPOND/mf:
TEXPSHEADERS   $LILYPOND/ps:
Cheers

Rutger



___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user


Lilypond-book LaTeX

2002-12-17 Thread Ralph Little
Hi All,
Sorry for being a dunce, but I know little of LaTeX (not having used it for
years!) and I'm trying to get the manual example running.
The lilypond-book bit seems to work OK, but I can't get seem to get LaTeX to
find the feta font files.
I've tried fiddling with TEXINPUTS and TEXMF but to no avail.

export
TEXINPUTS=.:/usr/local/share/lilypond/1.7.4/tex:/usr/share/texmf/tex/latex/b
ase:
/usr/share/texmf/tex/latex/graphics:/usr/share/texmf/tex/latex/config

export
TEXMF={@local_lilypond_datadir@,{@local_lilypond_datadir@,{@local_lilypond_d
atadir@,{!!/usr/local/share/lilypond/1.7.4/fonts/tfm,!!/usr/local/share/texm
f,!!/usr/share/texmf


Here is what I get:

88888
This is TeX, Version 3.14159 (Web2C 7.3.1)
(lilbook.latex
LaTeX2e 2000/06/01
Babel v3.7h and hyphenation patterns for american, french, german,
ngerman, i
talian, nohyphenation, loaded.
(/usr/share/texmf/tex/latex/base/article.cls
Document Class: article 2000/05/19 v1.4b Standard LaTeX document class
(/usr/share/texmf/tex/latex/base/size10.clo))
(/usr/share/texmf/tex/latex/graphics/graphics.sty
(/usr/share/texmf/tex/latex/graphics/trig.sty)
(/usr/share/texmf/tex/latex/config/graphics.cfg)
(/usr/share/texmf/tex/latex/graphics/dvips.def)) (lilbook.aux)
(lily-1115171988.tex (/usr/local/share/lilypond/1.7.4/tex/lilyponddefs.tex
(/usr/local/share/lilypond/1.7.4/tex/lilypond-latex.tex LaTeX definitions)
(/usr/local/share/lilypond/1.7.4/tex/feta20.tex)kpathsea: Running mktextfm
feta16
mktextfm: Running mf \mode:=ljfour; mag:=1; nonstopmode; input feta16
This is METAFONT, Version 2.7182 (Web2C 7.3.1)
kpathsea: Running mktexmf  feta16

! I can't find file `feta16'.
* ...:=ljfour; mag:=1; nonstopmode; input feta16
  
Please type another input file name
! Emergency stop.
* ...:=ljfour; mag:=1; nonstopmode; input feta16
  
Transcript written on mfput.log.
mktextfm: `mf \mode:=ljfour; mag:=1; nonstopmode; input feta16' failed.
kpathsea: Appending font creation commands to missfont.log.

! Font \fetasixteen=feta16 not loadable: Metric (TFM) file not found.
to be read again 
   \def 
l.51 \def
 \fetafont{\fetasixteen}
? 
! Emergency stop.
to be read again 
   \def 
l.51 \def
 \fetafont{\fetasixteen}
No pages of output.
Transcript written on lilbook.log.

88888

I have Lily 1.7.4 on Redhat 8.
Ly2dvi works fine.

Contents of /usr/local/share/lilypond/1.7.4/fonts/tfm:

feta11.tfm, feta13.tfm, feta16.tfm, feta19.tfm, feta20.tfm, feta23.tfm, 
feta26.tfm, feta-braces0.tfm, feta-braces1.tfm, feta-braces2.tfm, 
feta-braces3.tfm, feta-braces4.tfm, feta-braces5.tfm, feta-braces6.tfm, 
feta-braces7.tfm, feta-braces8.tfm, feta-din10.tfm, feta-din11.tfm, 
feta-din12.tfm, feta-din13.tfm, feta-din14.tfm, feta-din17.tfm, 
feta-din19.tfm, feta-din4.tfm, feta-din5.tfm, feta-din6.tfm, feta-din7.tfm, 
feta-din8.tfm, feta-din9.tfm, feta-nummer10.tfm, feta-nummer7.tfm, 
parmesan11.tfm, parmesan13.tfm, parmesan16.tfm, parmesan19.tfm, 
parmesan20.tfm, parmesan23.tfm, parmesan26.tfm

Any help would be greatly appreciated!

Cheers,
Ralph





-- 
Our communications with you matter to us. This e-mail and any attachments
are confidential and are sent on the basis of our copyright, e-mail and
security policy which can be inspected at our website at
http://www.tribaldata.co.uk/html/contact.html#6. If you are not the intended
recipient, please notify the sender and delete this message.  Thank you. 
-- 



___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user



Lilypond-book LaTeX

2002-12-17 Thread Ralph Little
You're a star mate!
That did the trick.
I had done what you said. :(
Xdvi output looks brill.

Cheers,
Ralphy

-Original Message-
From: Mats Bengtsson [mailto:[EMAIL PROTECTED]] 
Sent: 17 December 2002 14:40
To: Ralph Little
Cc: '[EMAIL PROTECTED]'
Subject: Re: Lilypond-book  LaTeX


Ralph Little wrote:
 Hi All,
 Sorry for being a dunce, but I know little of LaTeX (not having used it
for
 years!) and I'm trying to get the manual example running.
 The lilypond-book bit seems to work OK, but I can't get seem to get LaTeX
to
 find the feta font files.
 I've tried fiddling with TEXINPUTS and TEXMF but to no avail.
 
 export

TEXINPUTS=.:/usr/local/share/lilypond/1.7.4/tex:/usr/share/texmf/tex/latex/b
 ase:
 /usr/share/texmf/tex/latex/graphics:/usr/share/texmf/tex/latex/config

There's no need to set TEXINPUTS if you get the following setting correct.
 
 export

TEXMF={@local_lilypond_datadir@,{@local_lilypond_datadir@,{@local_lilypond_d

atadir@,{!!/usr/local/share/lilypond/1.7.4/fonts/tfm,!!/usr/local/share/texm
 f,!!/usr/share/texmf

Did you compile Lilypond yourself? It looks as if you sourced the file
buildscripts/lilypond-profile.sh and not buildscripts/out/lilypond-profile.
Try to unset the variable and then use the setting from lilypond-profile.


/Mats


-- 
Our communications with you matter to us. This e-mail and any attachments
are confidential and are sent on the basis of our copyright, e-mail and
security policy which can be inspected at our website at
http://www.tribaldata.co.uk/html/contact.html#6. If you are not the intended
recipient, please notify the sender and delete this message.  Thank you. 
-- 



___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user