bug-lilypond
[Top][All Lists]
Advanced

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

Re: Bad vertical placement of staves with lilypond-book-2.6.1


From: Mats Bengtsson
Subject: Re: Bad vertical placement of staves with lilypond-book-2.6.1
Date: Tue, 02 Aug 2005 08:59:37 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050511

Please search the mailing list archives for discussions on
this topic.

   /Mats

Nicholas Haggin wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

        Greetings, all.

        I have recently been experiencing problems with vertical placement
of staves in lilypond-book after upgrading from 2.4.5 to 2.6.1; the
odd staves of the output are in their proper place on the page, but
the even staves are typeset immediately next to their odd
counterparts (second next to first, etc.), running off the right
edge. At the behest of one of the developers I created the attached
small example; I was surprised when, after running it through
lilypond-book, it produced proper output.
        Attempts to break it by just editing the Lilypond snippet were
unsuccessful, so I tried to see if I could make one of my
lilypond-book projects look like the example. The project in
question did not use bar numbers; restoring Bar_number_engraver had
the following effects on each Lilypond snippet:
        -The first staff was in the right place.
        -The second staff rendered off the right edge of the page.
        -The remaining staves were in the right place.
No other changes to Lilypond code made any difference. Since I load
several LaTeX packages in the preamble of my project, it seemed to
be time to test odd package interactions. The project uses the
geometry package for controlling margins and paper size; when I
removed the line that loaded said package, the desired result was
achieved: my project looked exactly like the example.
        No effect was produced by reducing or altering the options passed
to the geometry package. To confirm that this package is the
problem, I added it to the example (the commented \usepackage
command) and it started misplacing the staves as in my project.
        This is a large problem for me; most of my lilypond-book projects
use neither the default paper size nor the default margins of LaTeX,
and the geometry package is the best way to handle both. Any light
that can be shed is much appreciated.
        Thanks in advance for your time.

- --
Nicholas Haggin

A.M.D.G.

Find my public keys at my website: http://nhaggin.freeshell.org/
-----BEGIN PGP SIGNATURE-----

iD8DBQFC6yjoYbuXiaDnyW4RAnJxAJ9qAn/1CPiL8AQ0QziXantncJnbDwCfYkH2
lQ0vGGsniyXTy3tdGSGY1DA=
=kGkp
-----END PGP SIGNATURE-----


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

\documentclass{article}
\usepackage{graphicx}
% Uncomment the next line to produce misalignment of staves
%\usepackage{geometry}

\begin{document}

\begin{lilypond}

\include "english.ly"

\layout {
  \context {
    \Score
    \remove Bar_number_engraver
  }
}

\relative c' { \time 3/4
  \set Staff.autoBeaming = ##f
  \key f \major
  f2 f4 f( e) f g( a) g f2.
  a2 a4 a( g) f c'( bf) a a g2
  f2 f4 f( e) f g( a) g f2.
  a2 a4 a( g) f c'( bf) a a g2
  \bar "|:"
  g2 a8[ c8] bf4( a) g a2 bf8[ d8] c2.
  d2 d4 c( bf) a bf( a) g f2.
  \bar ":|"
}
\end{lilypond}

\end{document}


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

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

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