gnu-music-discuss
[Top][All Lists]
Advanced

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

Patch! Re: lilypond book still don't print beams and slurs


From: Mats Bengtsson
Subject: Patch! Re: lilypond book still don't print beams and slurs
Date: Thu, 29 Mar 2001 10:31:17 +0200

>       The strange thing :
>       "lilypond-book toto.tex" produce a lily-*.ly  a lily-*.tex and a 
> toto.latex 
> files.
>       Running ly2dvi on the .ly file produce the good .dvi output.
>       Running tex on the .tex file produce the good .dvi output.
>       Running latex on toto.latex produce a .dvi with no beams and no slur (I 
> dont 
> test other features).
>       I have no warnig during lilypond-book or latex (exept overfull \vbox... 
> as 
> usual :o).
>       So what's the problem. I have no problem to built the documentation 
> with all 
> the beam/slurs. 

This turned out to be quite intricate. The problem is actually caused by
\usepackage[francais]{babel}
which redefines ':' by adding an extra space. This breaks the
TeX code for inline Postscript \special{ps: ...}

The patch below should solve your problem.

    /Mats


diff -u lily-ps-defs.tex.orig lily-ps-defs.tex
--- lily-ps-defs.tex.orig       Thu Mar 22 10:27:54 2001
+++ lily-ps-defs.tex    Thu Mar 29 10:27:24 2001
@@ -7,12 +7,14 @@
 % header info (macros/defs, etc) should go into a \special{! ... }, 
 % note the ! sign.  See dvips.info for details.
 %
+% Escape the colon with \string to avoid problem with french babel
+%
 \def\lilySpace{ }
 \def\turnOnPostScript{%
         % This sets CTM so that you get to the currentpoint
         % by executing a 0 0 moveto
         \def\embeddedps##1{%
-                \special{ps: @beginspecial @setspecial
+                \special{ps\string: @beginspecial @setspecial
                         \lilypondpaperoutputscale\lilySpace 
                         \lilypondpaperoutputscale\lilySpace scale 
                         ##1 @endspecial}%





reply via email to

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