[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lilypond-user
Subject:    =?UTF-8?Q?Strange_behaviour_of_multiple_=5cinclude=e2=80=99d_docume?= =?UTF-8?Q?nts?=
From:       Immanuel Asmus <iasmus () freenet ! de>
Date:       2023-01-30 15:10:06
Message-ID: 3d4aa128-5591-40c3-238a-31935ab9a6f0 () freenet ! de
[Download RAW message or body]

Dear community,

I’ve been using lilypond for a fair amount of time, and even though I 
sometimes use non-standard notation, I’ve never had any problem finding 
a solution. Until now.

It’s my first time typesetting a song cycle I wrote. I want (as what I 
understand is recommended) to typeset every piece on its own, then 
include all of them via the \include command.

My main document looks like this:

    \version "2.22.2"

    \header {
       title = "Seltsame Liebeslieder"
       composer = "Frühjahr 2007 – Frühjahr 2021"
       tagline = ##f
    }

    \include "Trinklied.ly"
    \include "Fruehlingslied.ly"
    \include "Wetterlied.ly"

Now, including the first and second piece was no problem. When I add the 
third piece, however, I end up without any line break up from the middle 
of it (see attached “nobreak.png”).

Compiling Wetterlied.ly (outside the main document) works just fine. 
Also, \include’ing /only/ "Wetterlied.ly" gives the desired result (as 
shown in "desired.png").

I’ve tried changing the order (first "Wetterlied.ly", then a different 
piece); I’ve tried stripping some paper information from the original 
file (there are only set-paper-size and the margins) – all to no avail. 
Since I do not know where to look for the error, I hesitate to post code 
from Wetterlied.ly. I will include, however, my code for mm. 26 throug 
32 in each voice.

I’m hoping to find help here. Thanks in advance.

Immanuel


voice:

    R1*15/16 \graceNotes {d8*1/2}  %26
    | f8 r r4 r2  %27
    |  r2 r4. g8
    \bar "||" \key g \minor %28
        bes bes a bes4 bes a8  %29
    | bes bes a bes r4. g8 %30
    |  bes bes a bes ~ \tuplet 3/2 2 { bes4-- bes-- a--  %31
    | bes-- bes-- a-- } bes4--
           \cadenzaOn \hideNotes \grace g4 \glissando \unHideNotes
    \cadenzaOff
           c8 a  %32

right hand:

    schnips = {r4 d r d}
    schnipsEins = {r4 d r2}
    right = \relative c' {
        \repeat unfold 15 \schnips \schnipsEins
        \bar "||" \key g \minor
        \repeat unfold 7 \schnips \schnipsEins
    }

left hand:

       f4-- r8 f as( g as4--)  %26
       f4-- r8 f c4-- es--   %27
       f4-- r2.   %28
       \bar "||" \key g \minor
       \repeat unfold 2 {
         g4-- r8 g d4-- f--    %29 (and later, 37)
       g4-- r8 g bes( a bes4--)  %30
       g4-- r8 g d4-- f--    %31
       g4-- r8 g bes( a g4--)  %32
       }

[Attachment #3 (multipart/related)]

[Attachment #5 (text/html)]

<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Dear community,</p>
    <p>I’ve been using lilypond for a fair amount of time, and even
      though I sometimes use non-standard notation, I’ve never had any
      problem finding a solution. Until now.</p>
    <p>It’s my first time typesetting a song cycle I wrote. I want (as
      what I understand is recommended) to typeset every piece on its
      own, then include all of them via the <font face="Courier New,
        Courier, monospace">\include</font> command.</p>
    <p>My main document looks like this:</p>
    <blockquote>
      <p><font face="Courier New, Courier, monospace">\version "2.22.2"<br>
          <br>
          \header {<br>
            title = "Seltsame Liebeslieder"<br>
            composer = "Frühjahr 2007 – Frühjahr 2021"<br>
            tagline = ##f<br>
          }<br>
          <br>
          \include "Trinklied.ly"<br>
          \include "Fruehlingslied.ly"<br>
          \include "Wetterlied.ly"</font></p>
    </blockquote>
    <p>Now, including the first and second piece was no problem. When I
      add the third piece, however, I end up without any line break up
      from the middle of it (see attached “nobreak.png”).</p>
    <p><img src="cid:part1.jA3Ttm7j.Yhsr0B9n@freenet.de"
        moz-do-not-send="false"></p>
    <p>Compiling Wetterlied.ly (outside the main document) works just
      fine. Also, <font face="Courier New, Courier, monospace">\include</font>’ing
      <i>only</i> "Wetterlied.ly" gives the desired result (as shown in
      "desired.png").</p>
    <p><img src="cid:part2.62Fj0wMR.LkxiMKfJ@freenet.de"
        moz-do-not-send="false"></p>
    <p>I’ve tried changing the order (first "Wetterlied.ly", then a
      different piece); I’ve tried stripping some paper information from
      the original file (there are only <font face="Courier New,
        Courier, monospace">set-paper-size</font> and the margins) – all
      to no avail. Since I do not know where to look for the error, I
      hesitate to post code from Wetterlied.ly. I will include, however,
      my code for mm. 26 throug 32 in each voice.</p>
    <p>I’m hoping to find help here. Thanks in advance.</p>
    <p>Immanuel</p>
    <p><br>
    </p>
    <p>voice:</p>
    <blockquote>
      <p><font face="Courier New, Courier, monospace">R1*15/16 
          \graceNotes {d8*1/2}  %26</font><br>
        <font face="Courier New, Courier, monospace">| f8 r r4 r2  %27<br>
          |  r2 r4. g8 <br>
          \bar "||" \key g \minor %28<br>
             bes bes a bes4 bes a8  %29<br>
          | bes bes a bes r4. g8 %30<br>
          |  bes bes a bes ~ \tuplet 3/2 2 { bes4-- bes-- a--  %31<br>
          | bes-- bes-- a-- } bes4-- <br>
                \cadenzaOn \hideNotes \grace g4 \glissando \unHideNotes
          \cadenzaOff<br>
                c8 a  %32<br>
        </font></p>
    </blockquote>
    <p>right hand:</p>
    <blockquote>
      <p><font face="Courier New, Courier, monospace">schnips = {r4 d r
          d}<br>
          schnipsEins = {r4 d r2}<br>
          right = \relative c' {<br>
             \repeat unfold 15 \schnips \schnipsEins<br>
             \bar "||" \key g \minor<br>
             \repeat unfold 7 \schnips \schnipsEins<br>
          }</font></p>
    </blockquote>
    <p>left hand:</p>
    <blockquote>
      <p><font face="Courier New, Courier, monospace">  f4-- r8 f as( g
          as4--)  %26<br>
            f4-- r8 f c4-- es--   %27<br>
            f4-- r2.   %28<br>
            \bar "||" \key g \minor<br>
            \repeat unfold 2 { <br>
              g4-- r8 g d4-- f--    %29 (and later, 37)<br>
            g4-- r8 g bes( a bes4--)  %30<br>
            g4-- r8 g d4-- f--    %31<br>
            g4-- r8 g bes( a g4--)  %32<br>
            }</font><br>
      </p>
    </blockquote>
  </body>
</html>
["nobreak.png" (image/png)]
["desired.png" (image/png)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic