RE: lilypond-book and DIN A4 ?!?

2005-08-03 Thread Georg Dummer
Your are right. This was never intended to be a general solution. I only
realised that some others have the same problems with lilypond-book and
maybe they can benefit from this.  Of course anyone as to adapt this hack to
his needs.
But without this workaround lilypond-book (2.6.1) is rather useless for me
and I have to downgrade to 2.4.6 .

Georg

-Original Message-
From: Mats Bengtsson [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 03, 2005 9:19 AM
To: Georg Dummer
Cc: lilypond-user
Subject: Re: lilypond-book and DIN A4 ?!?

Sorry to be picky, but I can't see that this solution would be generally
useful. As can be seen in a related discussion in bug-lilypond, I think we
are beginning to realize what the actual problems are and how they can be
solved in lilypond-book.

/Mats

Georg Dummer wrote:
> According to the hint of Mats (possible extra space after the last 
> bar) I changed my workaround:
> 
> \usepackage{ifthen}
> \newcommand{\preLilyPondExample}{\raggedleft}
> \newcommand{\betweenLilyPondSystem}[1]{%
>   \ifthenelse{\equal{#1}{2}}%
>   {\\[0.5cm] \raggedright}%
>   {\\[0.5cm]}%
>}%
> \newcommand{\postLilyPondExample}{\\ \vspace{0.5cm}}
> 
> Now only the first two pictures (header and first sytem) are right
aligned.
> The rest remains left aligned.
> To work properly the linewidth should not be set in the song.
> 
> Georg
> 
> 
> -Original Message-
> From: Martin Brodbeck [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, August 02, 2005 1:38 PM
> To: Georg Dummer
> Cc: lilypond-user
> Subject: Re: lilypond-book and DIN A4 ?!?
> 
> Georg Dummer schrieb:
> 
> Hi Georg,
> 
> 
>>Here is an example that demonstrates the problem. Commenting out the 
>>linewidth in the *.ly-file only places the last systems the right way.
> 
> 
> Yes, this is exactly true. Just to make it clear: I've no linewidth or 
> something in my .ly file but the resuling output is as I said and like 
> in your example.
> 
> Martin
> 
> 
> 
> ___
> 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: lilypond-book and DIN A4 ?!?

2005-08-03 Thread Mats Bengtsson

Sorry to be picky, but I can't see that this solution would be
generally useful. As can be seen in a related discussion in
bug-lilypond, I think we are beginning to realize what the
actual problems are and how they can be solved in lilypond-book.

   /Mats

Georg Dummer wrote:

According to the hint of Mats (possible extra space after the last bar) I
changed my workaround:

\usepackage{ifthen}
\newcommand{\preLilyPondExample}{\raggedleft}
\newcommand{\betweenLilyPondSystem}[1]{%
\ifthenelse{\equal{#1}{2}}%
{\\[0.5cm] \raggedright}%
{\\[0.5cm]}%
 }%
\newcommand{\postLilyPondExample}{\\ \vspace{0.5cm}}

Now only the first two pictures (header and first sytem) are right aligned.
The rest remains left aligned.
To work properly the linewidth should not be set in the song.

Georg


-Original Message-
From: Martin Brodbeck [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 02, 2005 1:38 PM

To: Georg Dummer
Cc: lilypond-user
Subject: Re: lilypond-book and DIN A4 ?!?

Georg Dummer schrieb:

Hi Georg,


Here is an example that demonstrates the problem. Commenting out the 
linewidth in the *.ly-file only places the last systems the right way.



Yes, this is exactly true. Just to make it clear: I've no linewidth or
something in my .ly file but the resuling output is as I said and like in
your example.

Martin



___
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: lilypond-book and DIN A4 ?!?

2005-08-03 Thread Georg Dummer
According to the hint of Mats (possible extra space after the last bar) I
changed my workaround:

\usepackage{ifthen}
\newcommand{\preLilyPondExample}{\raggedleft}
\newcommand{\betweenLilyPondSystem}[1]{%
\ifthenelse{\equal{#1}{2}}%
{\\[0.5cm] \raggedright}%
{\\[0.5cm]}%
 }%
\newcommand{\postLilyPondExample}{\\ \vspace{0.5cm}}

Now only the first two pictures (header and first sytem) are right aligned.
The rest remains left aligned.
To work properly the linewidth should not be set in the song.

Georg


-Original Message-
From: Martin Brodbeck [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 02, 2005 1:38 PM
To: Georg Dummer
Cc: lilypond-user
Subject: Re: lilypond-book and DIN A4 ?!?

Georg Dummer schrieb:

Hi Georg,

> Here is an example that demonstrates the problem. Commenting out the 
> linewidth in the *.ly-file only places the last systems the right way.

Yes, this is exactly true. Just to make it clear: I've no linewidth or
something in my .ly file but the resuling output is as I said and like in
your example.

Martin



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


Re: lilypond-book and DIN A4 ?!?

2005-08-02 Thread Martin Brodbeck

Georg Dummer schrieb:

Hi Georg,


Here is an example that demonstrates the problem. Commenting out the
linewidth in the *.ly-file only places the last systems the right way.


Yes, this is exactly true. Just to make it clear: I've no linewidth or 
something in my .ly file but the resuling output is as I said and like 
in your example.


Martin


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


Re: lilypond-book and DIN A4 ?!?

2005-08-02 Thread Mats Bengtsson

OK, you do actually specify the line width explicitly in your .ly
file, which overrides the automatic line width detection done by
lilypond-book. This is an important fact for people who look in the
mailing list archives and try to use your solution. The crucial lines
are
\layout {
   linewidth = 170 \mm
indent = 15 \mm
}
and the fact that this linewidth is significantly shorter then the
text width you used in your LaTeX document. Otherwise the flushright
don't help. However, my guess is that your solution does not work
for example if you add a fermata over the last bar line of the score,
since that will extend to the right of the end of the score line.

See also the email I sent to bug-lilypond some minutes ago on related
issues.

  /Mats

Georg Dummer wrote:

Here is an example that demonstrates the problem. Commenting out the
linewidth in the *.ly-file only places the last systems the right way.
Because this problem was already discussed here I abstained from sending the
code.
But maybe there is a better solution.

Georg

-Original Message-
From: Mats Bengtsson [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 01, 2005 4:18 PM

To: Georg Dummer
Cc: lilypond-user
Subject: Re: lilypond-book and DIN A4 ?!?

As far as I can see, the \begin{flushright} doesn't solve anything as long
as you let lilypond-book determine the line width of the scores, since they
will be rather too long then too short (see my email to bug-lilypond a few
minutes ago).
However, if you explicitly set the line width of the music examples to be
shorter than the line width of the remaining LaTeX document, then it makes
sense to use something like what you propose to work around these bugs.

Since you haven't provided any complete example including both LaTeX and
LilyPond code, it's a bit hard to realize exactly what problems you try to
solve.

/Mats

Georg Dummer wrote:


This is my newest achievement:

\newcommand{\preLilyPondExample}{\begin{flushright}}
\newcommand{\betweenLilyPondSystem}[1]{\hfill} % maybe not needed   
\newcommand{\postLilyPondExample}{\end{flushright}}

This also gives acceptable results if you have set the instrument 
name. In this case the first system (eps-picture) normaly has a 
different width than the onthers.


Georg

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
On Behalf Of Mats Bengtsson

Sent: Monday, August 01, 2005 10:01 AM
To: Martin Brodbeck
Cc: lilypond-user@gnu.org
Subject: Re: lilypond-book and DIN A4 ?!?

As has been stated before: As long as you don't specify the line width 
(or paper size) within the actual .ly code, there should be no need to 
use this workaround.


   /Mats

Martin Brodbeck wrote:



Graham Percival schrieb:



Known issue; please search the lilypond-user and bug-lilypond mailist 
archives for discussion and workarounds.

(it was probably discussed on lilypond-devel as well)



After a third watch at lilypond-user I found a workaround:
"\newcommand{\betweenLilyPondSystem}[1]{\linebreak}" in the preamble 
of the LaTeX document fixes the issue.


Thanks,
Martin


___
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



___
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
=




\header {
  poet = "Text: Eugen Eckert "
  composer = "Musik: Winfried Heurich"
  copyright = "© wer auch immmer"
  enteredby = "Georg Dummer"
}

\layout {
   linewidth = 170 \mm
indent = 15 \mm
}
\renameinput "Messe/MeineEngenGrenzen.ly"
\version "2.6.0"
\include "../templates/defaults.ly"

StimmeSop =   \relative c' { 
	\key f \major

\time 4/4


a'4 

RE: lilypond-book and DIN A4 ?!?

2005-08-02 Thread Georg Dummer
Here is an example that demonstrates the problem. Commenting out the
linewidth in the *.ly-file only places the last systems the right way.
Because this problem was already discussed here I abstained from sending the
code.
But maybe there is a better solution.

Georg

-Original Message-
From: Mats Bengtsson [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 01, 2005 4:18 PM
To: Georg Dummer
Cc: lilypond-user
Subject: Re: lilypond-book and DIN A4 ?!?

As far as I can see, the \begin{flushright} doesn't solve anything as long
as you let lilypond-book determine the line width of the scores, since they
will be rather too long then too short (see my email to bug-lilypond a few
minutes ago).
However, if you explicitly set the line width of the music examples to be
shorter than the line width of the remaining LaTeX document, then it makes
sense to use something like what you propose to work around these bugs.

Since you haven't provided any complete example including both LaTeX and
LilyPond code, it's a bit hard to realize exactly what problems you try to
solve.

/Mats

Georg Dummer wrote:
> This is my newest achievement:
> 
> \newcommand{\preLilyPondExample}{\begin{flushright}}
> \newcommand{\betweenLilyPondSystem}[1]{\hfill} % maybe not needed 
> \newcommand{\postLilyPondExample}{\end{flushright}}
> 
> This also gives acceptable results if you have set the instrument 
> name. In this case the first system (eps-picture) normaly has a 
> different width than the onthers.
> 
> Georg
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] 
> On Behalf Of Mats Bengtsson
> Sent: Monday, August 01, 2005 10:01 AM
> To: Martin Brodbeck
> Cc: lilypond-user@gnu.org
> Subject: Re: lilypond-book and DIN A4 ?!?
> 
> As has been stated before: As long as you don't specify the line width 
> (or paper size) within the actual .ly code, there should be no need to 
> use this workaround.
> 
> /Mats
> 
> Martin Brodbeck wrote:
> 
>>Graham Percival schrieb:
>>
>>
>>>Known issue; please search the lilypond-user and bug-lilypond mailist 
>>>archives for discussion and workarounds.
>>>(it was probably discussed on lilypond-devel as well)
>>
>>
>>After a third watch at lilypond-user I found a workaround:
>>"\newcommand{\betweenLilyPondSystem}[1]{\linebreak}" in the preamble 
>>of the LaTeX document fixes the issue.
>>
>>Thanks,
>>Martin
>>
>>
>>___
>>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
> 
> 
> 
> ___
> 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
=


test.lytex
Description: Binary data
\header {
  poet = "Text: Eugen Eckert "
  composer = "Musik: Winfried Heurich"
  copyright = "© wer auch immmer"
  enteredby = "Georg Dummer"
}

\layout {
   linewidth = 170 \mm
indent = 15 \mm
}
\renameinput "Messe/MeineEngenGrenzen.ly"
\version "2.6.0"
\include "../templates/defaults.ly"

StimmeSop =   \relative c' { 
	\key f \major
  	\time 4/4
  	
  	
  	a'4 a a f |
  	e2 d |
  	b'4\rest d,8 d e4 \break \bar"" f8 f ~  | 
  	f4 f8 f g4 a8 a ~ |
 	a2 b\rest \bar"|:" \break
  	d4 d d c a2 g  |
  	f4 g e e |
	d2 b'\rest \bar":|"
}

StimmeAlt =   \relative c' { 
	f4 f e d |
	d \melisma cis \melismaEnd d2 |
	s4 d8 d d4 d8 c ~ |
	c4 c8 c e4 e8 f8 ~ |
	f2 s |
	a4 a gis gis | 
	a2 d, |
  	d4 d d c |
  	a2 s |
}

StimmeTen =  \relati

Re: lilypond-book and DIN A4 ?!?

2005-08-01 Thread Mats Bengtsson

As far as I can see, the \begin{flushright} doesn't solve
anything as long as you let lilypond-book determine the
line width of the scores, since they will be rather too long
then too short (see my email to bug-lilypond a few minutes ago).
However, if you explicitly set the line width of the music
examples to be shorter than the line width of the remaining
LaTeX document, then it makes sense to use something like
what you propose to work around these bugs.

Since you haven't provided any complete example including both
LaTeX and LilyPond code, it's a bit hard to realize exactly
what problems you try to solve.

   /Mats

Georg Dummer wrote:

This is my newest achievement:

\newcommand{\preLilyPondExample}{\begin{flushright}}
\newcommand{\betweenLilyPondSystem}[1]{\hfill} % maybe not needed   
\newcommand{\postLilyPondExample}{\end{flushright}} 


This also gives acceptable results if you have set the instrument name. In
this case the first system (eps-picture) normaly has a different width than
the onthers.

Georg

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Mats Bengtsson
Sent: Monday, August 01, 2005 10:01 AM
To: Martin Brodbeck
Cc: lilypond-user@gnu.org
Subject: Re: lilypond-book and DIN A4 ?!?

As has been stated before: As long as you don't specify the line width (or
paper size) within the actual .ly code, there should be no need to use this
workaround.

/Mats

Martin Brodbeck wrote:


Graham Percival schrieb:


Known issue; please search the lilypond-user and bug-lilypond mailist 
archives for discussion and workarounds.

(it was probably discussed on lilypond-devel as well)



After a third watch at lilypond-user I found a workaround:
"\newcommand{\betweenLilyPondSystem}[1]{\linebreak}" in the preamble 
of the LaTeX document fixes the issue.


Thanks,
Martin


___
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



___
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: lilypond-book and DIN A4 ?!?

2005-08-01 Thread Georg Dummer
This is my newest achievement:

\newcommand{\preLilyPondExample}{\begin{flushright}}
\newcommand{\betweenLilyPondSystem}[1]{\hfill} % maybe not needed   
\newcommand{\postLilyPondExample}{\end{flushright}} 

This also gives acceptable results if you have set the instrument name. In
this case the first system (eps-picture) normaly has a different width than
the onthers.

Georg

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Mats Bengtsson
Sent: Monday, August 01, 2005 10:01 AM
To: Martin Brodbeck
Cc: lilypond-user@gnu.org
Subject: Re: lilypond-book and DIN A4 ?!?

As has been stated before: As long as you don't specify the line width (or
paper size) within the actual .ly code, there should be no need to use this
workaround.

/Mats

Martin Brodbeck wrote:
> Graham Percival schrieb:
> 
>> Known issue; please search the lilypond-user and bug-lilypond mailist 
>> archives for discussion and workarounds.
>> (it was probably discussed on lilypond-devel as well)
> 
> 
> After a third watch at lilypond-user I found a workaround:
> "\newcommand{\betweenLilyPondSystem}[1]{\linebreak}" in the preamble 
> of the LaTeX document fixes the issue.
> 
> Thanks,
> Martin
> 
> 
> ___
> 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



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


Re: lilypond-book and DIN A4 ?!?

2005-08-01 Thread Mats Bengtsson

As has been stated before: As long as you don't specify
the line width (or paper size) within the actual .ly code,
there should be no need to use this workaround.

   /Mats

Martin Brodbeck wrote:

Graham Percival schrieb:


Known issue; please search the lilypond-user and bug-lilypond
mailist archives for discussion and workarounds.
(it was probably discussed on lilypond-devel as well)



After a third watch at lilypond-user I found a workaround:
"\newcommand{\betweenLilyPondSystem}[1]{\linebreak}" in the preamble of 
the LaTeX document fixes the issue.


Thanks,
Martin


___
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: lilypond-book and DIN A4 ?!?

2005-07-27 Thread Martin Brodbeck

Graham Percival schrieb:

Known issue; please search the lilypond-user and bug-lilypond
mailist archives for discussion and workarounds.
(it was probably discussed on lilypond-devel as well)


After a third watch at lilypond-user I found a workaround:
"\newcommand{\betweenLilyPondSystem}[1]{\linebreak}" in the preamble of 
the LaTeX document fixes the issue.


Thanks,
Martin


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


Re: lilypond-book and DIN A4 ?!?

2005-07-27 Thread Graham Percival


On 26-Jul-05, at 11:57 PM, Martin Brodbeck wrote:


The funny thing is: after calling lilypond-book, the resulting
lily-.eps file looks perfect. But with the resulting page (see
ugly.jpg in attachment) is something wrong.


Known issue; please search the lilypond-user and bug-lilypond
mailist archives for discussion and workarounds.
(it was probably discussed on lilypond-devel as well)

Cheers,
- Graham



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