On , 6 May 2000, [EMAIL PROTECTED] writes:
> I am working on entering a piece of music (excerpts from the Phantom of
> the Opera). How can i make sure that the section title appears on the
> same page as the first score-line? Or, starting each section on a new
> page? (for version 1.2.27)
Try the latest 1.3, there was a fix in 1.3.31 by Mats. I've appended
the diff for you.
> These questions may have been asked before; unfortunately I could not
> find relevant information in the docs.
>
> Btw: I hev seen output from several music typesetting programs;
> Lily wins hands-down!
Thanks. What output did you see, why does Lily win?
Greetings,
Jan.
Hi,
Here's a patch that fixes some page layout problems.
I'm not sure that it always fixes the problem that
piece titles are typeset just before a page break,
but it did at least solve the problem in the example
I tried.
/Mats
Generated by (address unknown),
>From = lilypond-1.3.30, To = lilypond-1.3.30.mb1
usage
cd lilypond-source-dir; patch -E -p1 < lilypond-1.3.30.mb1.diff
Patches do not contain automatically generated files
or (urg) empty directories,
i.e., you should rerun autoconf, configure
diff -urN ../lilypond-1.3.30/CHANGES ./CHANGES
--- ../lilypond-1.3.30/CHANGES Mon Mar 6 12:26:15 2000
+++ ./CHANGES Tue Mar 7 21:48:15 2000
@@ -1,3 +1,9 @@
+1.3.30.mb1
+=========
+
+* Fixed the page layout, reintroducing space for the header and
+ trying to keep piece titles on the same page as the piece.
+ The header and footer can now contain several lines.
1.3.29.hwn1
===========
diff -urN ../lilypond-1.3.30/VERSION ./VERSION
--- ../lilypond-1.3.30/VERSION Mon Mar 6 12:26:15 2000
+++ ./VERSION Tue Mar 7 21:48:22 2000
@@ -2,7 +2,7 @@
MAJOR_VERSION=1
MINOR_VERSION=3
PATCH_LEVEL=30
-MY_PATCH_LEVEL=
+MY_PATCH_LEVEL=mb1
# use the above to send patches: MY_PATCH_LEVEL is always empty for a
# released version.
diff -urN ../lilypond-1.3.30/scripts/ly2dvi.py ./scripts/ly2dvi.py
--- ../lilypond-1.3.30/scripts/ly2dvi.py Wed Mar 1 00:49:39 2000
+++ ./scripts/ly2dvi.py Tue Mar 7 21:49:07 2000
@@ -263,15 +263,16 @@
%%\addtolength{\topmargin}{-1cm}
%%\setlength{\textwidth}{%s}
%%\setlength{\textheight}{%s}
-\geometry{width=%spt, left=%spt, height=%spt, top=%spt, nohead}
+\geometry{width=%spt, left=%spt, height=%spt, top=%spt}
\input lilyponddefs
\input titledefs
%s
\makeatletter
-\renewcommand{\@oddhead}{\hfil{\small\theheader\quad\textbf{\thepage}}}%%
+\renewcommand{\@oddhead}{\parbox{\textwidth}%%
+ {\mbox{}\small\theheader\hfill\textbf{\thepage}}}%%
%% UGR.
%%\renewcommand{\@evenhead}{eve!{\small\mudelainstrument{,}\quad\textbf{\thepage}}\hfil}%%
-\renewcommand{\@oddfoot}{{\thefooter}\hfil}%%
+\renewcommand{\@oddfoot}{\parbox{\textwidth}{\mbox{}\thefooter}}%%
\begin{document}
""" % ( program_id(), Props.get('filename'), now, Props.get('papersize'),
Props.get('language'), Props.get('pagenumber'), linewidth, textheight,
@@ -341,7 +342,7 @@
this.write(r"""
%% \vfill\hfill{\mudelatagline}
\makeatletter
-\renewcommand{\@oddfoot}{\hfil\mudelatagline}%
+\renewcommand{\@oddfoot}{\parbox{\textwidth}{\mbox{}\mudelatagline}}%%
\makeatother
\end{document}
""")
diff -urN ../lilypond-1.3.30/tex/lilyponddefs.tex ./tex/lilyponddefs.tex
--- ../lilypond-1.3.30/tex/lilyponddefs.tex Mon Nov 15 00:01:16 1999
+++ ./tex/lilyponddefs.tex Tue Mar 7 21:34:53 2000
@@ -30,8 +30,11 @@
\input feta20.tex
+% Attempt to keep lilypiecetitle together with the piece:
+\def\myfilbreak{\par\vfil\penalty200\vfilneg}
+
% stacked horizontal lines
-\def\interscoreline{\vskip 16pt}
+\def\interscoreline{\vskip 16pt\myfilbreak}
\def\placebox#1#2#3{%
\botalign{\hbox{\raise #1\leftalign{\kern #2{}#3}}}}%
diff -urN ../lilypond-1.3.30/tex/titledefs.tex ./tex/titledefs.tex
--- ../lilypond-1.3.30/tex/titledefs.tex Mon Feb 14 15:12:27 2000
+++ ./tex/titledefs.tex Tue Mar 7 21:39:11 2000
@@ -76,9 +76,10 @@
}
\def\makelilypiecetitle
{
- \bigskip
+ \bigskip\myfilbreak
{\flushright{\theopus}\par}
{\flushleft{\large\normalfont\scshape\thepiece}\par}
+ \nopagebreak%
\global\let\theopus\relax%
\global\let\thepiece\relax%
}
--
Jan Nieuwenhuizen <[EMAIL PROTECTED]> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien | http://www.lilypond.org