lilypond-user
[Top][All Lists]
Advanced

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

Re: Removing bar numbers with lilypond-book


From: Mats Bengtsson
Subject: Re: Removing bar numbers with lilypond-book
Date: Mon, 13 Aug 2007 15:39:24 +0200
User-agent: Thunderbird 2.0.0.5 (X11/20070716)

I tried your example again (just adding
\documentclass[a4paper]{article}
\begin{document}
at the top and
\end{document}
at the end) and it works without any problems, using LilyPond 2.10.25.
I know that there have been lots and lots of bug fixes in the recent
2.10.x versions, so it may be a good idea to upgrade (the Linux installation
package at www.lilypond.org should work fine on Ubuntu).

  /Mats

Tim Sawyer wrote:
I'm happy with making it invisible, the extra space isn't an issue for me.

Just to be clear with the \remove solution - it is *not* working for me, even with the capital S corrected. I'm using lilypond 2.10.5, on Ubuntu. Anyone got any clues as to why?

This code (copied and pasted from my source):

\begin[staffsize=20]{lilypond}
\score
{
  \version "2.10.0"
  {
    \time 4/4
    \override Staff.VerticalAxisGroup #'minimum-Y-extent = #'(-6 . 7)
    \override Staff.TimeSignature #'style = #'()
    \clef bass
    <<
{ \stemUp e4 e4 e4 e4 e8[ e8] e8[ e8] e8[ e8] e8[ e8] e16 e e e e16 e e e e16 e e e e16 e e e e1 \bar "|." }
    \addlyrics { blah }
    >>
  }
  \layout {
        \context {
          \Score
          \remove "Bar_number_engraver"
        }
      }
}
\end{lilypond}

Results in this error:

Parsing...
volume1.lytex:2158:3: error: syntax error, unexpected STRING, expecting '='

         \context {
volume1.lytex:2159:3: error: syntax error, unexpected STRING, expecting '='

           \Score
error: failed files: "lily-c91153c955"

As I said, I'm not bothered about getting this to work, but it would be useful to understand why I'm getting a problem with it when I shouldn't.

Tim.

On Monday 13 Aug 2007, Mats Bengtsson wrote:
Your example below works like a charm, if you just fix the
capital "S" that others already have pointed out.
I always write the \version statement outside the \score{...} block, but
it seems that it works to place it where you have it as well.

The alternative solution
\override Score.BarNumber #'transparent = ##t
has a disadvantage, namely that LilyPond still will allocate space for the
bar number, even though it's not printed, so the spacing between the score
lines may get unnecessarily wide (though the inter-score line spacing
isn't handled
the same way when you use lilypond-book as when you use pure lilypond).

   /Mats

Tim Sawyer wrote:
Thanks for that, but I'm still having trouble.  Putting that \layout
block in either place results in this error:

volume1.lytex:2145:2: error: syntax error, unexpected STRING, expecting
'='

        \context {
volume1.lytex:2146:2: error: syntax error, unexpected STRING, expecting
'='

          \Score

My code is now like this:

\begin[staffsize=20]{lilypond}
\score
{
  \version "2.10.0"
  {
    \time 4/4
    \override Staff.VerticalAxisGroup #'minimum-Y-extent = #'(-6 . 7)
    \override Staff.TimeSignature #'style = #'()
    \clef bass
    <<
    { \stemUp e4 e4 e4 e4 e8 e8 e8 e8 e8 e8 e8 e8 e16 e e e e16 e e e e16
e e e e16 e e e e1 \bar "|." }
    \addlyrics { blah }

  }
  \layout {
       \context {
         \score
         \remove "Bar_number_engraver"
       }
     }
}
\end{lilypond}

ta,

Tim.

Quoting Tim Sawyer <address@hidden>:
I have a section of a tex file, used with lilypond book, that looks
something like this:

\begin[staffsize=20]{lilypond}
\score
{
 \version "2.10.0"
 {
   \time 4/4
   \override Staff.VerticalAxisGroup #'minimum-Y-extent = #'(-6 . 7)
   \override Staff.TimeSignature #'style = #'()
   \clef bass
   \stemUp
   e4 e4 e4 e4 e8 e e8 e e8 e e8 e e16 e e e e16 e e e e16 e e e e16 e
e e e1 }
}
\end{lilypond}

I can't work out where to put \remove "Bar_number_engraver" to get
bar numbers
turned off.  Everywhere I put it seems to create an error when running
lilypond-book.

Can someone point me in the right direction please?

ta,

Tim.


_______________________________________________
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




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