]> git.donarmstrong.com Git - lilypond.git/commitdiff
* tex/lilyponddefs.tex (lilypondpagebreak): New overridable macro.
authorJan Nieuwenhuizen <janneke@gnu.org>
Sun, 11 Apr 2004 08:17:29 +0000 (08:17 +0000)
committerJan Nieuwenhuizen <janneke@gnu.org>
Sun, 11 Apr 2004 08:17:29 +0000 (08:17 +0000)
* scm/output-tex.scm (stop-page): Use it.

ChangeLog
scm/output-tex.scm
tex/lilyponddefs.tex

index 08d17f5b017a1fa5b85ec67ae8242f7f0255ca15..dcdddb978eb05d07ddc715962b21ef74de115f5a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 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.
index a4c65d6c317814c586bc9aa075fafca9d1a822f0..a74d8e883b831aee28f47d5c709da24d375ee524 100644 (file)
 (define (stop-page last?)
   (if last?
       "\\vss\n}\n\\vfill\n"
-      "\\vss\n}\n\\vfill\\newpage\n"))
+      "\\vss\n}\n\\vfill\\lilypondpagebreak\n"))
index f71b45285e29742846b5855f6486bec16a3f16f3..a26ea6877c8b1285e8b947ca947d94b05313e262 100644 (file)
   \lilypondnext
 }
 
+%% 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}
   \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}}