X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=python%2Fbook_latex.py;h=8097443f7f320f01c858e2cac7af597eb6f1de66;hb=a066a93ee74edebb9d238a1bac93c3bc7e8e6e4a;hp=1faa57639bda653ec807c9844232b672c9bd762a;hpb=89038542fcb8c151d930c51d3e1444c41c94ebe8;p=lilypond.git diff --git a/python/book_latex.py b/python/book_latex.py index 1faa57639b..8097443f7f 100644 --- a/python/book_latex.py +++ b/python/book_latex.py @@ -68,6 +68,17 @@ Latex_snippet_res = { (?P\S+?) })''', + 'musicxml_file': + r'''(?smx) + ^[^%\n]*? + (?P + \\musicxmlfile\s*( + \[ + \s*(?P.*?)\s* + \])?\s*\{ + (?P\S+?) + })''', + 'singleline_comment': r'''(?mx) ^.*? @@ -106,6 +117,7 @@ Latex_output = { OUTPUT: r'''{%% \parindent 0pt +\noindent \ifx\preLilyPondExample \undefined \else \expandafter\preLilyPondExample