]> git.donarmstrong.com Git - lilypond.git/blobdiff - python/book_latex.py
Optimizations for pure-height approximations.
[lilypond.git] / python / book_latex.py
index ec4ce93156565a0a7af613d1d295dda2ef2981bf..677e88a1f70fe42a78df7419b8f4f512689c3693 100644 (file)
@@ -6,6 +6,11 @@ import os
 import book_base as BookBase
 from book_snippets import *
 import lilylib as ly
+global _;_=ly._
+
+progress = ly.progress
+warning = ly.warning
+error = ly.error
 
 # Recognize special sequences in the input.
 #
@@ -101,6 +106,7 @@ Latex_output = {
 
     OUTPUT: r'''{%%
 \parindent 0pt
+\noindent
 \ifx\preLilyPondExample \undefined
 \else
   \expandafter\preLilyPondExample
@@ -255,8 +261,7 @@ class BookLatexOutputFormat (BookBase.BookOutputFormat):
             str += "".ljust (breaks, "\n").replace ("\n","%\n")
 
         if QUOTE in snippet.option_dict:
-            rep['str'] = str
-            str = self.output[QUOTE] % rep
+            str = self.output[QUOTE] % {'str': str}
         return str