In principle, lilypond-book does not put any limitations on
where in your LaTeX document you put your music. However, when
trying the obvious
\section{\lilypond[fragment]{c d e f}}
latex will complain, probably there are some limitations in LaTeX on
what can go into the argument of \section{...}. However, the following
trick works:

\newsavebox{\music}
\savebox{\music}{\lilypond[fragment]{c d e f}}
\section{\usebox{\music}}

   /Mats

David Raleigh Arnold wrote:
Is there a way to use a lilypond file instead of the contents
of the curlies in \section, \subsection, and \subsubsection, as if
to have the appropriate numbers as instrument names in the first
indent.  e.g., in example.lytex:

 2.3 Section I
  2.3.1  Heading About Something
text.......................
  2.3.2  a piece of music....
.......
......
  2.3.3  About This Heading
more text...........
etc.

As a feature, I think it would be very worthwhile feature in
a lilypond book.

\subsection{}\lilypondfile{name.ly}

All it would take is to start the lilypond file immediately after the
[sub]section number. It would be helpful if every example had a
reference number in the docs, IMO. daveA

-- ============================================= 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 lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to