bug-lilypond
[Top][All Lists]
Advanced

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

Re: squeezed measure


From: Mats Bengtsson
Subject: Re: squeezed measure
Date: Mon, 31 Jan 2005 18:19:07 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040913

The problem is a limitation of the Cygwin implementation of the
Python scripting language used in the implementation of lilypond-book.
I did an ugly fix in version 2.2, but considered it too ugly to be
included in all future versions. Now it appears that nobody tried
to find a better solution, so maybe we should include it in the
latest development version anyhow.

You can include the fix yourself, even if you are not a programmer.
Just open the file C:\cygwin\bin\lilypond-book in a text editor
(use the same one that you use for your .ly files) and change the
line that says

latex_filter_cmd = 'latex "\\nonstopmode \input /dev/stdin"'

into

latex_filter_cmd = 'cat > lily-tmp.tex; latex "\\nonstopmode \input lily-tmp.tex";rm lily-tmp.tex'

(make that a single line)

For the hackers of the list, more information about the problem
can be found in
http://lists.gnu.org/archive/html/bug-lilypond/2004-06/msg00012.html
with followups and my ugly fix can be found in
http://savannah.gnu.org/cgi-bin/viewcvs/lilypond/lilypond/scripts/lilypond-book.py.diff?r1=1.165.2.1&r2=1.165.2.2&only_with_tag=lilypond_2_2


   /Mats

Dr. Charles Gran wrote:
When I run a version of the example found at
http://www.lilypond.org/doc/v2.4/Documentation/user/out-www/lilypond/An-example-of-a-musicological-document.html#An-example-of-a-musicological-document

I get a squezzed example for the first staff of music.

I'm using cygwin under Windows XP (2.4.2) and these commands:
lilypond-book --output=out lilybook.tex
cd out
latex lilybook
dvips -Ppdf -u+lilypond -u+ec-mftrace lilybook
ps2pdf lilybook.ps




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

\documentclass[a4paper]{article}
\begin{document}

Documents for @command{lilypond-book} may freely mix music and text.
For example,

\begin{lilypond}
\relative c' {
  c2 g'2 \times 2/3 { f8 e d } c'2 g4
}
\end{lilypond}

Options are put in brackets.

\begin[fragment,quote,staffsize=26,verbatim]{lilypond}
  c'4 f16
\end{lilypond}

Larger examples can be put into a separate file, and introduced with
\verb+\lilypondfile+.

%\lilypondfile[quote,noindent]{screech-boink.ly}

\end{document}--Message-Boundary-29443
Content-type: text/plain; charset=US-ASCII
Content-disposition: inline
Content-description: Attachment information.

The following section of this message contains a file attachment
prepared for transmission using the Internet MIME message format.
If you are using Pegasus Mail, or any other MIME-compliant system,
you should be able to save it or view it from within your mailer.
If you cannot, please ask your system administrator for assistance.

   ---- File information -----------
     File:  lilybook.pdf
     Date:  30 Jan 2005, 16:28
     Size:  14102 bytes.
     Type:  Unknown


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

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