]> git.donarmstrong.com Git - lilypond.git/blobdiff - python/book_latex.py
lilypond-book: Fix latex output on windows (issue 2209).
[lilypond.git] / python / book_latex.py
index 591de34eea79f470d1594b8fd8cd7c627ffe2b1e..be7c4e18830c2b10a014c6f61e0a635c10ea7865 100644 (file)
@@ -125,7 +125,7 @@ Latex_output = {
   \expandafter\preLilyPondExample
 \fi
 \def\lilypondbook{}%%
-\input %(base)s-systems.tex
+\input{%(base)s-systems.tex}
 \ifx\postLilyPondExample \undefined
 \else
   \expandafter\postLilyPondExample
@@ -297,7 +297,7 @@ class BookLatexOutputFormat (BookBase.BookOutputFormat):
     def snippet_output (self, basename, snippet):
         str = ''
         rep = snippet.get_replacements ();
-        rep['base'] = basename
+        rep['base'] = basename.replace ('\\', '/')
         str += self.output_print_filename (basename, snippet)
         if VERBATIM in snippet.option_dict:
             rep['verb'] = snippet.verb_ly ()