bug-lilypond
[Top][All Lists]
Advanced

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

Re: [lilypond-book] bar number pushes staff into right margin


From: Christian Ebert
Subject: Re: [lilypond-book] bar number pushes staff into right margin
Date: Mon, 5 Dec 2005 21:08:10 +0100
User-agent: Mutt/1.5.11

* Christian Ebert on Monday, December 05, 2005 at 14:00:33 +0100:
> Hello,
> 
> [ LilyPond 2.7.20 ]
> 
> In the following example the bar number pushes the staff into the
> right margin:

A workaround would be something like the following after getting
the size of the overfull hbox out of the logfile.

#v+
%\version "2.7.15"

%\documentclass[a5paper,pagesize]{scrartcl}
\documentclass[a5paper]{article}
% outcomment following line to see grid
%\usepackage[colorgrid,gridunit=pt]{eso-pic}
\usepackage{graphics}

\makeatletter
\newenvironment{lilyleft}[1]{%
  \list{}{%
    \setlength\leftmargin{-#1}%
    \setlength\listparindent\parindent
    \setlength\itemsep\parskip
    \setlength\itemindent\z@
    \setlength\topsep\z@
    \setlength\parsep\parskip
    \setlength\partopsep\parskip
    address@hidden
    \setlength\labelwidth\z@
    address@hidden@ne
  }\item\relax
address@hidden@ne\endlist}
\makeatother

\begin{document}

Text.

\noindent
\rule{\textwidth}{1.5pt}

\begin{lilyleft}{4pt}
  \begin{lilypond}
    melody = \relative c' {
      c d e f g a b c \break
      c d e f g a b c \bar"||"
    }
    \score { \melody }
  \end{lilypond}
\end{lilyleft}

Text.

\noindent
\rule{\textwidth}{1.5pt}

\begin{lilypond}
melody = \relative c' {
  c d e f g a b c \bar"||"
}
\score { \melody }
\end{lilypond}

Text.

\end{document}
#v-

Well ...

c
-- 
_B A U S T E L L E N_ lesen!  --->> <http://www.blacktrash.org/baustellen.html>




reply via email to

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