lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lilypond-book and DIN A4 ?!?


From: Mats Bengtsson
Subject: Re: lilypond-book and DIN A4 ?!?
Date: Tue, 02 Aug 2005 11:31:57 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050511

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:address@hidden 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: address@hidden
[mailto:address@hidden On Behalf Of Mats Bengtsson
Sent: Monday, August 01, 2005 10:01 AM
To: Martin Brodbeck
Cc: address@hidden
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
address@hidden
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: address@hidden
        WWW: http://www.s3.kth.se/~mabe
=============================================


_______________________________________________
lilypond-user mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-user



_______________________________________________
lilypond-user mailing list
address@hidden
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: address@hidden
        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 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 = \relative c' { \key f \major
        \time 4/4
        
        d4 d c bes |
        bes2 a |
d,4\rest bes'8 bes bes4 bes8 a ~ |
        a4 a8 a c4 c8 c ~ |
        c2 d,\rest
        d'4 a d e c2 b |
        bes4 bes g g |
        f2 d\rest \bar":|"
}

StimmeBass = \relative c' { a4 a a a |
        g2 f |
        s4 f8 f f4 f8 f ~ |
        f4 e8 d8 c4 c8 f8 ~ |
        f2 s |
        f4 f e e |
        f2 f |
        f4 bes c, c |
        d2 s |
}

Text =\lyricmode {
\set stanza = "1." Mei -- ne en -- gen Gren -- zen, mei -- ne kur -- ze Sicht, __
        brin -- ge ich vor dich. __
        Wand -- le sie in Wei -- te.
        Herr, er -- bar -- me dich.
}

Akkorde = \chordmode { d2:m a4:m b:7 g:m a:7 d2:m b1
        f2 c f a:7
   d:m e:7 f g bes c d:m
}

Frauen =
        \context Staff = "fr" <<
        \clef treble
        \set Staff.instrument = \markup { \column { \line { Sopran \hspace #0.6 
} Alt } }
        \set Staff.instr = #""
        \set Staff.midiInstrument = #"choir aahs"

      \context Voice = "sopran" { \voiceOne \StimmeSop }
      \context Voice = "alt" { \voiceTwo \StimmeAlt }
      \lyricsto "alt" \new Lyrics \Text
  >>

Maenner =
        \context Staff = "ma" <<
        \clef bass
        \set Staff.instrument = \markup { \column { "Tenor" { "Bass"} } }
        \set Staff.instr = #""
        \set Staff.midiInstrument = #"choir aahs"

      \context Voice = "tenor" { \voiceOne \StimmeTen }
      \context Voice = "bass" { \voiceTwo \StimmeBass }
        >>

\score { <<

                \override Score.BarNumber  #'padding = #2
                \context ChordNames { \germanChords \myChordProperties \Akkorde 
}
                        \context ChoirStaff <<
                        \Frauen
                        \Maenner
>> >>

        \layout { }
        %\midi { }
}


------------------------------------------------------------------------

_______________________________________________
lilypond-user mailing list
address@hidden
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: address@hidden
        WWW: http://www.s3.kth.se/~mabe
=============================================




reply via email to

[Prev in Thread] Current Thread [Next in Thread]