lilypond-user
[Top][All Lists]

## Re: subsubsection lilypondfile

 From: David Raleigh Arnold Subject: Re: subsubsection lilypondfile Date: Thu, 21 Apr 2005 14:02:42 -0400 User-agent: KMail/1.7.1

On Thursday 21 April 2005 05:29 am, you wrote:

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

That works very well, and it is a solution for one line of
lilypond music.  But this:

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

does not work.  Latex wants to insert a "}" at the end of
the line.  If I tell it not to do so in its interactive
phase it puts two lines of music, clefs, measure numbers
and all on a single line.

This comes close to the right result, setting a line width in
the .ly file, but for some reason the lines
do not reach the left edge.  I can get additional indention of the
first line, but what good is that?:

\newsavebox{\music}
\savebox{\music}{\begin{minipage}[t]{0pt}{\lilypondfile%
{two.ly}}\end{minipage}}
\section{\usebox{\music}}

There is no default indention any more in 1.4.5, which is unfortunate.
Is that a bug?

The practical problem is that it doesn't help if almost all of the
examples are on a single line.  Consistent numbering is impossible if
*any* of the examples are more than one line long.

Anyway, thanks a lot for your help.  daveA

--
Practice pie charts, plans and schedules are good.
Practice logs, diaries and records are good.
When they fail, and they will, do another.
How else can repeated failure be a recipe for success?

The only technical exercises for all guitarists worth a lifetime
of practice: "Dynamic Guitar Technique".  Nothing else is close.