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

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

Re: problems running mudela-book


From: Mark Hindley
Subject: Re: problems running mudela-book
Date: Fri, 13 Oct 2000 10:52:40 +0100

I had these same problems. Below is a patch which fixes it for me.

The problem seems to be that calling completize_preamble with chunks[0][1]
passes just the latex preamble without the \begin{document}.

Then completize_preamble just returns the string it was given without
adding \usepackage{graphics} or the default pre/postMudelaExample.

When patched it now works fine for me. How about anybody else?

Mark


***************************************************************
--- mudela-book.py      Thu Oct 12 08:38:20 2000
+++ mudela-book.py      Fri Oct 13 08:28:35 2000
@@ -587,13 +587,7 @@
                scan_latex_preamble(chunks)


-def completize_preamble (str):
-       m = get_re ('preamble-end').search( str)
-       if not m:
-               return str
-
-       preamble = str [:m.start (0)]
-       str = str [m.start(0):]
+def completize_preamble (preamble):

        if not get_re('def-post-re').search (preamble):
                preamble = preamble + get_output('output-default-post')
@@ -605,7 +599,7 @@

        preamble = preamble + '\\usepackage{graphics}\n'

-       return preamble + str
+       return preamble


 read_files = []
***************************************************************

Mark Hindley

Director of the Music Centre
University of St Andrews

01334 462226/7

http://www.st-andrews.ac.uk/services/music





reply via email to

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