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: Tue, 6 Dec 2005 21:22:34 +0100
User-agent: Mutt/1.5.11

* Arvid Grotting on Tuesday, December 06, 2005 at 19:50:59 +0100:
> I have a step in my Makefile where I do the following, after running 
> lilypond-book but before running latex:
> 
>     sed -i 's/%%BoundingBox: -*[1-9][0-9]*/%%BoundingBox: 0/' lily*eps

Ah, thanks! Coincidentially I just found your
Message-ID: <address@hidden>
and wanted to try it.

> You need to use GNU sed (or another sed that has "-i" for in-place 
> substitution).

or, a bit more convoluted, w/ normal sed and redirection, I do
now this in my shell script:

#v+
for f in lily*.eps
do
        tf=`mktemp -t ${0##*/}-XXXXXXX` || exit 1
        sed -e 's/^%%BoundingBox: -*[1-9][0-9]*/%%BoundingBox: 0/' $f >$tf
        mv $tf $f
done
#v-

> Works for me, with 2.6; YMMV.

Yes, with 2.7 too.

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]