lilypond-user
[Top][All Lists]
Advanced

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

Re: subsubsection lilypondfile


From: Mats Bengtsson
Subject: Re: subsubsection lilypondfile
Date: Thu, 21 Apr 2005 11:29:23 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.7) Gecko/20050414

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: address@hidden
        WWW: http://www.s3.kth.se/~mabe
=============================================




reply via email to

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