\expandafter\preLilyPondExample
\fi
\def\lilypondbook{}%%
-\input %(base)s-systems.tex
+\input{%(base)s-systems.tex}
\ifx\postLilyPondExample \undefined
\else
\expandafter\postLilyPondExample
\fi
}''',
- PRINTFILENAME: '''\\texttt{%(filename)s}
+ PRINTFILENAME: r'''\texttt{%(filename)s}
+\linebreak
''',
QUOTE: r'''\begin{quote}
cmd = '%s %s' % (global_options.latex_program, tmpfile);
ly.debug_output ("Executing: %s\n" % cmd);
run_env = os.environ.copy()
- run_env['LC_ALL:'] = 'C'
+ run_env['LC_ALL'] = 'C'
### unknown why this is necessary
universal_newlines = True
def snippet_output (self, basename, snippet):
str = ''
rep = snippet.get_replacements ();
- rep['base'] = basename
- str += self.output_print_filename (basename, snippet)
+ rep['base'] = basename.replace ('\\', '/')
+ rep['filename'] = os.path.basename (snippet.filename).replace ('\\', '/')
+ rep['ext'] = snippet.ext
+ if PRINTFILENAME in snippet.option_dict:
+ str += self.output[PRINTFILENAME] % rep
if VERBATIM in snippet.option_dict:
rep['verb'] = snippet.verb_ly ()
str += self.output[VERBATIM] % rep