lilypond-user
[Top][All Lists]

## Re: Keeping TeX and Lilypond and the same page?

 From: Mats Bengtsson Subject: Re: Keeping TeX and Lilypond and the same page? Date: Thu, 09 Jan 2003 20:23:28 +0100 User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021003

This is really a general LaTeX question and not specific for
Lilypond. Anyway, one solution is to put the score together with
the title in a figure environment. This means that it is kept together
as one unit. Also, if you have other ordinary text, the figure may
"float" to the top or bottom of the page or to the next page.
Try:

\begin{figure}[htb]
\begin{center}
{\large E Study \# 2}\\
\end{center}

\begin[23pt,noindent,noquote]{lilypond}
\score {
\notes \relative c'' {
e4\downbow_1 e4\downbow_2 e4\downbow_3 e4\downbow_4
e4 e4 e2
e4 e4 e4 e4
e4 e4 e2
\bar "|."
}
}
\end{lilypond}
\end{figure}

The arguments to figure means that it can stay "h"ere, float to the
"t"op of the page or to the "b"ottom of the page.

/Mats

Jeremy Cowgar wrote:
I have:

{\samepage

\begin{center}
{\large E Study \# 2}\\
\end{center}

\begin[23pt,noindent,noquote]{lilypond}
\score {
\notes \relative c'' {
e4\downbow_1 e4\downbow_2 e4\downbow_3 e4\downbow_4
e4 e4 e2
e4 e4 e4 e4
e4 e4 e2
\bar "|."
}
}
\end{lilypond}
}

trying to keep that block on the same page. In the grand scheme of things, the top text appears on the bottom of page 14, and the music at the top of 15.

If remove a line before that text, then the text atop of the lilypond block and the first line of the lilypond music appears at the bottom of page 14, then the last line of the lilypond music appears at the top of page 15.

Is their a way I can make it all on one page? i.e. if it doesn't all fit here, put it *all* on the next page?

Thanks,

Jeremy

_______________________________________________
Lilypond-user mailing list
http://mail.gnu.org/mailman/listinfo/lilypond-user

--
=============================================
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