]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-book: Fix latex output on windows (issue 2209).
authorJulien Rioux <jrioux@physics.utoronto.ca>
Tue, 10 Jan 2012 22:33:22 +0000 (17:33 -0500)
committerJulien Rioux <jrioux@physics.utoronto.ca>
Sun, 15 Jan 2012 18:06:28 +0000 (13:06 -0500)
Use forward slashes as path separators in latex.

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 ()