* scm/output-tex.scm (stop-page): Use it.
2004-04-11 Jan Nieuwenhuizen <janneke@gnu.org>
2004-04-11 Jan Nieuwenhuizen <janneke@gnu.org>
+ * tex/lilyponddefs.tex (lilypondpagebreak): New overridable macro.
+
+ * scm/output-tex.scm (stop-page): Use it.
+
* scm/output-ps.scm (define-fonts): Bugfix.
* lily/grob.cc: Add penalty to interface.
* scm/output-ps.scm (define-fonts): Bugfix.
* lily/grob.cc: Add penalty to interface.
(define (stop-page last?)
(if last?
"\\vss\n}\n\\vfill\n"
(define (stop-page last?)
(if last?
"\\vss\n}\n\\vfill\n"
- "\\vss\n}\n\\vfill\\newpage\n"))
+ "\\vss\n}\n\\vfill\\lilypondpagebreak\n"))
+%% Allow overriding of pagebreak
+\lilypondifundefined{lilypondpagebreak}
+{
+ \lilypondifundefined{@nodocument}
+ {\gdef\lilypondpagebreak{\eject}}
+ {\gdef\lilypondpagebreak{\newpage}}
+ }
+ {}
+
%% Include \special only once.
\gdef\lilypondspecial{
\special{header=music-drawing-routines.ps}
%% Include \special only once.
\gdef\lilypondspecial{
\special{header=music-drawing-routines.ps}
\kern#1\outputscale
\vrule width #2\outputscale depth #3\outputscale height #4\outputscale}
\kern#1\outputscale
\vrule width #2\outputscale depth #3\outputscale height #4\outputscale}
+%% FIXME: 'interscoreline' and 'lilypondPAPERinterscoreline
\lilypondifundefined{lilypondpaperinterscorelinefill}
{\gdef\lilypondpaperinterscorelinefill{0}}
{\gdef\lilypondpaperinterscorelinefill{1}}
\lilypondifundefined{lilypondpaperinterscorelinefill}
{\gdef\lilypondpaperinterscorelinefill{0}}
{\gdef\lilypondpaperinterscorelinefill{1}}