Autor Thema: Abstand zur tagline in 2.14.0 ??  (Gelesen 1923 mal)

harm6

  • Member
Abstand zur tagline in 2.14.0 ??
« am: Samstag, 11. Juni 2011, 21:37 »
Hallo,

In 2.12.3 konnte man mit \paper { foot-separation = ... } einen Abstand zur tagline einregeln, der (wenn man sonst keine footer gesetzt hatte) auch nur dort gewirkt hat.

In 2.14.0 gelingt es mir nicht!

\version "2.14.0"
%\version "2.12.3"

\header { tagline = \markup { "blablabla" } }

%{
\header {
        tagline = \markup {
         \fill-line {
         \center-column { \transparent \draw-line #'(0 . 60 )
                  "blablabla" }
         }
        }
}
%}

\paper  {
  ragged-last-bottom = ##f
  #(define top-margin (* 1 cm))
  #(define bottom-margin (* 1.5 cm))
  page-count = 2
  %foot-separation = 60
%%{
  last-bottom-spacing =
    #'(;(basic-distance . 60)
       (minimum-distance . 60)
       (padding . 60)
       ;(stretchability . 12)
       )
%}
}

one = {
        \relative c' {
         \repeat unfold 100 { a'4 a a a }
        }
}

\score {
        \new Staff {
        \one
        }
}
%%{
\markup {
        \wordwrap {
        longText longText longText longText longText longText longText longText
        longText longText longText longText longText longText longText longText
        longText longText longText longText longText longText longText longText
        longText longText longText longText longText longText longText longText
        longText longText longText longText longText longText longText longText
        longText longText longText longText longText longText longText longText        
        longText longText longText longText longText longText longText longText
        longText longText longText longText longText longText longText longText
        longText longText longText longText longText longText longText longText
        longText longText longText longText longText longText longText longText
        longText longText longText longText longText longText longText longText
        longText longText longText longText longText longText longText longText        
        longText longText longText longText longText longText longText longText
        longText longText longText longText longText longText longText longText
        longText longText longText longText longText longText longText longText
        }
}
%}    

Es ist zwar so, daß man mittels last-bottom-spacing den Abstand zur tagline verändern kann, aber der Abstand zum unteren Rand der ersten Seite wird auch vergrößert, obwohl dort keine footer definiert sind!

Wie kann ich nur den Abstand zur tagline einstellen?

Wenn man im Code last-bottom-spacing rausnimmt und den auskommentierten header-Block aktiviert, hat man zwar einen funktionierenden work-around. Ich nenn' sowas allerdings Fischer-Technik!


Noch schöne Pfingsttage!
  Harm

P.S. Das markup mit "longText" steht da, weil mich mir nicht sicher bin, ob nicht ein Befehl speziell für markups benötigt wird.
« Letzte Änderung: Samstag, 11. Juni 2011, 21:40 von harm6 »

RobUr

  • Member
Re:Abstand zur tagline in 2.14.0 ??
« Antwort #1 am: Mittwoch, 15. Juni 2011, 15:58 »
Hallo Harm!

Zitat von: harm6
In 2.12.3 konnte man mit \paper { foot-separation = ... } einen Abstand zur tagline einregeln, der (wenn man sonst keine footer gesetzt hatte) auch nur dort gewirkt hat.
Das ist sicher ein unbeabsichtigtes „Feature“ … Ich würde es eher als Bug einstufen, da ja foot-separation laut NR den Abstand zum Footer auf jeder Seite regeln sollte. Den Fall, dass Footer-Markup überhaupt nicht definiert ist, hat wohl niemand berücksichtigt – für dich ein Feature, für andere ein Bug?

Die Bezeichnung last-bottom-spacing ist einfach irreführend; ich würde dahinter ebenfalls den Abstand zum letzten unteren Rand, also den auf der letzten Seite vermuten (vgl. ragged-last[-bottom]). Die NR erklärt last-bottom-spacing jedenfalls als „the distance from the last system or top-level markup on a page to the bottom of the printable area (i.e. the top of the bottom margin)“.

Als eleganterer Workaround fällt mir nur ein, die Tagline mittels des \raise-Befehls abzusetzen:
\header {
tagline = \markup \raise #-30 {
"blablabla"
}
}

Grüße, Robert

harm6

  • Member
Re:Abstand zur tagline in 2.14.0 ??
« Antwort #2 am: Donnerstag, 16. Juni 2011, 00:21 »
Hallo Robert,

Zitat von: RobUr
... für dich ein Feature, für andere ein Bug?

Auf die Idee, daß dieses Verhalten beim setzen von foot-separation in 2.12.3 ein unbeabsichtigter bug sein könnte bin ich überhaupt nicht gekommen! Ich habe es vielmehr genossen auf simple Art den gewünschten Abstand herstellen zu können. Deine Erklärung ist jedoch sehr einleuchtend.

Vielen Dank für den Workaround. Er ist tatsächlich viieeel eleganter!

Gruß,
  Harm