'latex': {
- 'output-lilypond-fragment' : r'''\begin[eps,singleline,%s]{lilypond}
- \context Staff <
+ 'output-lilypond-fragment' : r'''\begin[singleline,%s]{lilypond}
\context Voice{
%s
}
- >
\end{lilypond}''',
'output-filename' : r'''\verb+%s+:\\
%% %s
'output-default-post': "\\def\postLilyPondExample{}\n",
'output-default-pre': "\\def\preLilyPondExample{}\n",
'usepackage-graphics': '\\usepackage{graphics}\n',
- 'output-eps': '\\noindent\\parbox{\\lilypondepswidth{%(fn)s.eps}}{\includegraphics{%(fn)s}}',
'output-noinline': r'''
%% generated: %(fn)s.eps
''',
# why do we have distinction between @mbinclude and @include?
'texi': {
- 'include': '(?m)^[^%\n]*?(?P<match>@mbinclude[ \n\t]+(?P<filename>[^\t \n]*))',
+ 'include': '(?m)^[^%\n]*?(?P<match>@mbinclude\s+(?P<filename>\S*))',
'input': no_match,
'header': no_match,
'preamble-end': no_match,
if not m:
error ("Latex documents must start with a \documentclass command")
if m.group (1):
- options = re.split (',[\n \t]*', m.group (1)[1:-1])
+ options = re.split (r',\s*', m.group (1)[1:-1])
else:
options = []
if 'twocolumn' in options:
options = []
(content, nm) = find_file (m.group ('filename'))
options.append ("filename=%s" % nm)
-
+ (path, base) = os.path.split (nm)
+
+ if path not in include_path:
+ include_path.append (path)
return [('lilypond', content, options)]
if 'noinline' in opts:
s = 'output-noinline'
elif format == 'latex':
- if 'eps' in opts:
- s = 'output-eps'
+ if 'quote' in opts:
+ s = 'output-latex-quoted'
else:
- if 'quote' in opts:
- s = 'output-latex-quoted'
- else:
- s = 'output-latex-noquote'
+ s = 'output-latex-noquote'
elif format == 'texi':
if 'quote' in opts:
s = 'output-texi-quoted'