Unfortunately, the lilypond-book program is naïve enough to only look
for the
sequence of characters "lilypondfile" when searching through the file,
i.e. it
does not understand your \newcommand trick. If you have a reasonably good
text editor, you can probably use that to replace all occurences of
\lily{...} by
the block of code you wrote (for example in Emacs, you can use
query-replace-regexp).
/Mats
Joe Mc Cool wrote:
Please,
in my latex file I have:
\newcommand{\lily }[1]{\lilypondfile{#1}{#1}}
but, lilypond-book then complains:
lilypond-book: error: file not found: #1
Again in my niavete, I had hoped to use blocks of latex code like:
\begin{figure}[h]
\index{over the ocean}
\lily{lilys/over.the.ocean.ly} % current implementation of newcommand
\end{figure}
I am using a figure environment to ensure that no tune involves a page
turn.
I have googled and googled and noticed that this issue has come up
before, but I do not see a work around.
--
=============================================
Mats Bengtsson
Signal Processing
Signals, Sensors and Systems
Royal Institute of Technology
SE-100 44 STOCKHOLM
Sweden
Phone: (+46) 8 790 8463
Fax: (+46) 8 790 7260
Email: [EMAIL PROTECTED]
WWW: http://www.s3.kth.se/~mabe
=============================================
_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user