[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: latex, newcommand and lilypond-book

From: Mats Bengtsson
Subject: Re: latex, newcommand and lilypond-book
Date: Mon, 14 Jan 2008 10:31:11 +0100
User-agent: Thunderbird (X11/20070716)

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).


Joe Mc Cool wrote:

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:

     \index{over the ocean}
     \lily{lilys/}  % current implementation of newcommand

I am using a figure environment to ensure that no tune involves a page

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
        Phone: (+46) 8 790 8463                         
       Fax:   (+46) 8 790 7260
        Email: address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]