Re: LilyPond and ConTeXt

2013-09-09 Thread Urs Liska

Am 09.09.2013 06:40, schrieb Henning Hraban Ramm:

Am 2013-09-08 um 21:18 schrieb David Rogers davidandrewrog...@gmail.com:




Henning Hraban Ramm lilypon...@fiee.net writes:


I’m the one behind the previous lilypond module for ConTeXt and the current 
LilyPond filter suggestion.
For me, it works great (besides the usual layout problems with TeX).

I guess the matter is, what are you planning to do?
I’m typesetting songbooks.

I'd like to be able to make a teaching book for piano students - short
pieces with comments and explanations in between, with the ability to
have section or chapter headings and other types of headings as well,
and easy control over page-breaking (both within the music and between
the pieces) would be nice. Shouldn't be more difficult than a songbook,
I would think - perhaps even less, because there are fewer lines of
lyrics.

Yes, sounds not too ambitious with regard to LilyPond in ConTeXt.

You can simply copy my setup, but you should name every single example then (to 
avoid recompiling if you re-arrange or insert one).
In my setup, every song is a component in its own file (that also allows me 
to reuse songs for different compilations), and I use the component name as buffer name.
If you have more than one example per file/component, you must at least attach 
a number. If that’s common in your book, it should be easy to use a TeX counter 
(I’m not good in TeX programming and would ask on the mailing list how to do 
that).
If it makes sense for you, you could also typeset your examples as numbered 
illustrations, just adapt the line with \\externalfigure

Urs’s suggestion also sounds good, if you want to choose the safe LaTeX way.


Actually, I don't want to 'pull' anybody away from ConTeXt to LaTeX.
Although, each additional user of my package increases pressure to 
complete it ;-)


Best
Urs




Greetlings, Hraban
---
fiëé visuëlle
Henning Hraban Ramm
http://www.fiee.net
http://angerweit.tikon.ch/lieder/
https://www.cacert.org (I'm an assurer)





___
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 and ConTeXt

2013-09-08 Thread Henning Hraban Ramm
Am 2013-09-06 um 23:12 schrieb David Rogers davidandrewrog...@gmail.com:

 Hello
 There have been several methods in the history of LilyPond for
 integrating LilyPond scores with ConTeXt documents (ConTeXt is a newer
 more-flexible system somewhat analogous to LaTeX).
 
 Right now, which is the best choice for putting ConTeXt and LilyPond
 together? (Your answer might be Don't bother, just use LaTeX, if you
 have a good reason for saying that.)


Hi David,

I’m the one behind the previous lilypond module for ConTeXt and the current 
LilyPond filter suggestion.
For me, it works great (besides the usual layout problems with TeX).

I guess the matter is, what are you planning to do?
I’m typesetting songbooks.


Greetlings, Hraban
---
fiëé visuëlle
Henning Hraban Ramm
http://www.fiee.net
http://angerweit.tikon.ch/lieder/
https://www.cacert.org (I'm an assurer)


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


Re: LilyPond and ConTeXt

2013-09-08 Thread Henning Hraban Ramm
Am 2013-09-06 um 23:50 schrieb Marc Hohl m...@hohlart.de:

 Am 06.09.2013 19:12, schrieb David Rogers:
 Hello
 
 There have been several methods in the history of LilyPond for
 integrating LilyPond scores with ConTeXt documents (ConTeXt is a newer
 more-flexible system somewhat analogous to LaTeX).
 
 Right now, which is the best choice for putting ConTeXt and LilyPond
 together? (Your answer might be Don't bother, just use LaTeX, if you
 have a good reason for saying that.)
 
 
 Hehe – just use LaTeX ;-)

I would not. Let’s not start a flame war here.

 I stumbled across this problem some time ago and found
 http://wiki.contextgarden.net/LilyPond
 
 which might work or not, but since this project would have been the first try 
 to get a grip with ConTeXt and I didn't manage to get even
 the stuff mentioned in this link up and running,

Can you tell me, what your problems were? I’d like to enhance the documentation.

 I decided to use
 XeLaTeX and lilypond-book for the simple reason that I find it easier to
 find help on the web concerning LaTeX-specific problems ;-)


Of course the LaTeX community is bigger. If LaTeX fits your needs, use it. 
ConTeXt needs a bit more own handicraft, but then you have all the adjustings 
screws at your fingertips.
I prefer the accessibility of ConTeXt’s setup commands over writing/adapting 
LaTeX style files that never *completely* fit your needs. And I don’t want to 
know about conflicting packages...


Greetlings, Hraban
---
fiëé visuëlle
Henning Hraban Ramm
http://www.fiee.net
http://angerweit.tikon.ch/lieder/
https://www.cacert.org (I'm an assurer)





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


Re: LilyPond and ConTeXt

2013-09-08 Thread David Kastrup
Henning Hraban Ramm lilypon...@fiee.net writes:

 Am 2013-09-06 um 23:50 schrieb Marc Hohl m...@hohlart.de:

 Am 06.09.2013 19:12, schrieb David Rogers:
 Hello
 
 There have been several methods in the history of LilyPond for
 integrating LilyPond scores with ConTeXt documents (ConTeXt is a newer
 more-flexible system somewhat analogous to LaTeX).
 
 Right now, which is the best choice for putting ConTeXt and LilyPond
 together? (Your answer might be Don't bother, just use LaTeX, if you
 have a good reason for saying that.)
 
 
 Hehe – just use LaTeX ;-)

 I would not. Let’s not start a flame war here.

Context is not supported by Lilypond-book as far as I can tell.  That
might be a worthwhile project for a Context user.

-- 
David Kastrup


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


Re: LilyPond and ConTeXt

2013-09-08 Thread Henning Hraban Ramm

Am 2013-09-08 um 16:28 schrieb David Kastrup d...@gnu.org:

 Right now, which is the best choice for putting ConTeXt and LilyPond
 together? (Your answer might be Don't bother, just use LaTeX, if you
 have a good reason for saying that.)
 
 Hehe – just use LaTeX ;-)
 
 I would not. Let’s not start a flame war here.
 
 Context is not supported by Lilypond-book as far as I can tell.  That
 might be a worthwhile project for a Context user.

No, the approach is different.

Lilypond-book is a preprocessor that works on a pre-LaTeX source, extracts the 
LilyPond snippets, compiles them and writes a LaTeX source with image 
inclusions back. (As far as I understand.)

With ConTeXt we use the filter module to call external programs on snippets 
at runtime (keeping track of changes, to avoid unnecessary runs), i.e. in the 
LilyPond case we write everything between \startlilypond and \stoplilypond into 
a buffer file, run LilyPond on it (if the snippet’s MD5 sum is different than 
the previous version) and inject the image inclusion directly into ConTeXt’s 
processing stream.

On the wiki page I show my version of the setup: 
http://wiki.contextgarden.net/LilyPond
It’s really simple Lua code. (Ok, you have to get used to ConTeXt’s use of Lua.)
The biggest part is the lookup on the number of systems - I decided to include 
single systems to let the page breaking to ConTeXt.

Both approaches have their merits, I guess.

Greetlings, Hraban
---
fiëé visuëlle
Henning Hraban Ramm
http://www.fiee.net
http://angerweit.tikon.ch/lieder/
https://www.cacert.org (I'm an assurer)





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


Re: LilyPond and ConTeXt

2013-09-08 Thread Marc Hohl

Am 08.09.2013 11:20, schrieb Henning Hraban Ramm:

Am 2013-09-06 um 23:50 schrieb Marc Hohl m...@hohlart.de:


Am 06.09.2013 19:12, schrieb David Rogers:

Hello

There have been several methods in the history of LilyPond for
integrating LilyPond scores with ConTeXt documents (ConTeXt is a newer
more-flexible system somewhat analogous to LaTeX).

Right now, which is the best choice for putting ConTeXt and LilyPond
together? (Your answer might be Don't bother, just use LaTeX, if you
have a good reason for saying that.)



Hehe – just use LaTeX ;-)


I would not. Let’s not start a flame war here.


I did not intend to start a flame war, I was just quoting David's
remark ;-)



I stumbled across this problem some time ago and found
http://wiki.contextgarden.net/LilyPond

which might work or not, but since this project would have been the first try 
to get a grip with ConTeXt and I didn't manage to get even
the stuff mentioned in this link up and running,


Can you tell me, what your problems were? I’d like to enhance the documentation.


Well, I don't remember exactly where my problems were – it is just that
I work for 20 years with LaTeX, so I am quite familiar with it, whereas
playing half an hour with ConTeXt did not show up any included scores,
so I deinstalled it.

Nevertheless, I'd like to give ConTeXt a try in the future ...



I decided to use
XeLaTeX and lilypond-book for the simple reason that I find it easier to
find help on the web concerning LaTeX-specific problems ;-)



Of course the LaTeX community is bigger. If LaTeX fits your needs, use it.


It worked quite well for my project, but not out-of-the-box, as you may
guess ;-)


ConTeXt needs a bit more own handicraft, but then you have all the adjustings 
screws at your fingertips.
I prefer the accessibility of ConTeXt’s setup commands over writing/adapting 
LaTeX style files that
 never *completely* fit your needs. And I don’t want to know about 
conflicting packages...


ConTeXt seems to be monolithic and this makes it very interesting for
me.

My personal problem (or call it style of approach) is that I learned
LaTeX by buying Helmut Kopkas books and worked right through them from
cover to cover.
I miss a book that does the same for ConTeXt.

And yes, I know that there is *a lot* of information/manuals/stuff
about ConTeXt available, but printing 400+ pages of the manual and
placing it on my desktop is not the same as a good book that takes
you by the hand and explains everything from simple to complicated.

I may be outdated, but this is my preferred way of getting a grip on
ConTeXt ;-)

But I think this became quite off-topic now.

Regards,

Marc


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


Re: LilyPond and ConTeXt

2013-09-08 Thread David Rogers
Henning Hraban Ramm lilypon...@fiee.net writes:

 Am 2013-09-06 um 23:12 schrieb David Rogers davidandrewrog...@gmail.com:

 Hello
 There have been several methods in the history of LilyPond for
 integrating LilyPond scores with ConTeXt documents (ConTeXt is a newer
 more-flexible system somewhat analogous to LaTeX).
 
 Right now, which is the best choice for putting ConTeXt and LilyPond
 together? (Your answer might be Don't bother, just use LaTeX, if you
 have a good reason for saying that.)


 Hi David,

 I’m the one behind the previous lilypond module for ConTeXt and the current 
 LilyPond filter suggestion.
 For me, it works great (besides the usual layout problems with TeX).

 I guess the matter is, what are you planning to do?
 I’m typesetting songbooks.

I'd like to be able to make a teaching book for piano students - short
pieces with comments and explanations in between, with the ability to
have section or chapter headings and other types of headings as well,
and easy control over page-breaking (both within the music and between
the pieces) would be nice. Shouldn't be more difficult than a songbook,
I would think - perhaps even less, because there are fewer lines of
lyrics.

-- 
Thanks
David

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


Re: LilyPond and ConTeXt

2013-09-08 Thread Urs Liska

Am 08.09.2013 17:18, schrieb David Rogers:

Henning Hraban Ramm lilypon...@fiee.net writes:


Am 2013-09-06 um 23:12 schrieb David Rogers davidandrewrog...@gmail.com:


Hello
There have been several methods in the history of LilyPond for
integrating LilyPond scores with ConTeXt documents (ConTeXt is a newer
more-flexible system somewhat analogous to LaTeX).

Right now, which is the best choice for putting ConTeXt and LilyPond
together? (Your answer might be Don't bother, just use LaTeX, if you
have a good reason for saying that.)


Hi David,

I’m the one behind the previous lilypond module for ConTeXt and the current 
LilyPond filter suggestion.
For me, it works great (besides the usual layout problems with TeX).

I guess the matter is, what are you planning to do?
I’m typesetting songbooks.

I'd like to be able to make a teaching book for piano students - short
pieces with comments and explanations in between, with the ability to
have section or chapter headings and other types of headings as well,
and easy control over page-breaking (both within the music and between
the pieces) would be nice. Shouldn't be more difficult than a songbook,
I would think - perhaps even less, because there are fewer lines of
lyrics.

You might check out musicexamples 
(http://www.openlilylib.org/musicexamples), a LaTeX package. Still 
slightly short of a first official release but maybe useful in that respect.
One thing on the list of ideas is to make a (LuaLaTeX only) extension 
allowing to enter LilyPond code like in lilypond-book that is then 
processed directly from compiling the document (similar to what Henning 
describes for ConTeXt).


Best
Urs

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


Re: LilyPond and ConTeXt

2013-09-08 Thread Henning Hraban Ramm

Am 2013-09-08 um 21:18 schrieb David Rogers davidandrewrog...@gmail.com:

 Henning Hraban Ramm lilypon...@fiee.net writes:
 
 I’m the one behind the previous lilypond module for ConTeXt and the current 
 LilyPond filter suggestion.
 For me, it works great (besides the usual layout problems with TeX).
 
 I guess the matter is, what are you planning to do?
 I’m typesetting songbooks.
 
 I'd like to be able to make a teaching book for piano students - short
 pieces with comments and explanations in between, with the ability to
 have section or chapter headings and other types of headings as well,
 and easy control over page-breaking (both within the music and between
 the pieces) would be nice. Shouldn't be more difficult than a songbook,
 I would think - perhaps even less, because there are fewer lines of
 lyrics.

Yes, sounds not too ambitious with regard to LilyPond in ConTeXt.

You can simply copy my setup, but you should name every single example then (to 
avoid recompiling if you re-arrange or insert one).
In my setup, every song is a component in its own file (that also allows me 
to reuse songs for different compilations), and I use the component name as 
buffer name.
If you have more than one example per file/component, you must at least attach 
a number. If that’s common in your book, it should be easy to use a TeX counter 
(I’m not good in TeX programming and would ask on the mailing list how to do 
that).
If it makes sense for you, you could also typeset your examples as numbered 
illustrations, just adapt the line with \\externalfigure

Urs’s suggestion also sounds good, if you want to choose the safe LaTeX way.


Greetlings, Hraban
---
fiëé visuëlle
Henning Hraban Ramm
http://www.fiee.net
http://angerweit.tikon.ch/lieder/
https://www.cacert.org (I'm an assurer)





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


LilyPond and ConTeXt

2013-09-06 Thread David Rogers
Hello

There have been several methods in the history of LilyPond for
integrating LilyPond scores with ConTeXt documents (ConTeXt is a newer
more-flexible system somewhat analogous to LaTeX).

Right now, which is the best choice for putting ConTeXt and LilyPond
together? (Your answer might be Don't bother, just use LaTeX, if you
have a good reason for saying that.)

-- 
David R

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


Re: LilyPond and ConTeXt

2013-09-06 Thread Marc Hohl

Am 06.09.2013 19:12, schrieb David Rogers:

Hello

There have been several methods in the history of LilyPond for
integrating LilyPond scores with ConTeXt documents (ConTeXt is a newer
more-flexible system somewhat analogous to LaTeX).

Right now, which is the best choice for putting ConTeXt and LilyPond
together? (Your answer might be Don't bother, just use LaTeX, if you
have a good reason for saying that.)



Hehe – just use LaTeX ;-)

I stumbled across this problem some time ago and found

http://wiki.contextgarden.net/LilyPond

which might work or not, but since this project would have been the 
first try to get a grip with ConTeXt and I didn't manage to get even

the stuff mentioned in this link up and running, I decided to use
XeLaTeX and lilypond-book for the simple reason that I find it easier to
find help on the web concerning LaTeX-specific problems ;-)

You may find that the spacing between staff lines is not optimal
when using lilypond-book, but a suitable definition for 
\betweenLilyPondSystem may help in this case.


Marc

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


Re: LilyPond and ConTeXt

2013-09-06 Thread Janek Warchoł
2013/9/6 Marc Hohl m...@hohlart.de:
 You may find that the spacing between staff lines is not optimal
 when using lilypond-book, but a suitable definition for
 \betweenLilyPondSystem may help in this case.

In that case you may be interested in reading this
http://lilypondblog.org/2013/07/creating-songbooks-with-lilypond-and-latex/
Urs, i remember that you were using something like this - this is it,
or is there yet another tool available?

best,
Janek

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