--- /dev/null
+\documentclass{article}
+
+\input{include/def.tex}
+
+\begin{document}
+
+If the include file in the preamble is not available,
+the automatic line width detection would fail and the
+snippet below would have only one bar per line.
+
+\begin{lilypond}
+\relative c' {
+ a d a c e d a c
+ f g d e a d a c
+}
+\end{lilypond}
+
+Brought to you by \signature.
+
+\end{document}
progress = ly.progress
warning = ly.warning
error = ly.error
+debug = ly.debug_output
# Recognize special sequences in the input.
#
tmp_handle.close ()
progress (_ ("Running `%s' on file `%s' to detect default page settings.\n")
- % (global_options.latex_program, tmpfile));
- cmd = '%s %s' % (global_options.latex_program, tmpfile);
- ly.debug_output ("Executing: %s\n" % cmd);
+ % (global_options.latex_program, tmpfile))
+ cmd = 'TEXINPUTS=%s:$TEXINPUTS %s %s' \
+ % (global_options.input_dir, global_options.latex_program, tmpfile)
+ debug ("Executing: %s\n" % cmd)
run_env = os.environ.copy()
run_env['LC_ALL'] = 'C'
in_handle = file (input_fullname)
if input_filename == '-':
+ global_options.input_dir = os.getcwd ()
input_base = 'stdin'
elif included:
input_base = os.path.splitext (input_filename)[0]
else:
+ global_options.input_dir = os.path.split (input_absname)[0]
input_base = os.path.basename (
os.path.splitext (input_filename)[0])