]> git.donarmstrong.com Git - lilypond.git/blobdiff - tex/lilyponddefs.tex
* tex/titledefs.tex: Replaced \ifx\blabla\undefined
[lilypond.git] / tex / lilyponddefs.tex
index 8f6bae4167d6754e7fb9a707d10f7252cd76fdc9..5cc6d4ffcf95e3b7b6172efe765fad235816cfaa 100644 (file)
@@ -55,6 +55,7 @@
         \endgroup
         \def\lilyponddocument{}
         \documentclass[a4paper]{article}
+       \nofiles
         \pagestyle{empty}
         % \begin is defined as \outer in texinfo, thus we use \csname
         \csname begin\endcsname{document}
   \lilypondnext
 }
 
-\newread\lilypondinput
-
 % the following macro is executed only once
 \gdef\lilypondspecial{
   \special{header=music-drawing-routines.ps}
   {\gdef\lilypondpaperinterscorelinefill{0}}
   {\gdef\lilypondpaperinterscorelinefill{1}}
 
-\gdef\interscoreline{
+%% Allow overriding of interscoreline, eg for lilypond --preview
+\lilypondifundefined{interscoreline}
+{\gdef\interscoreline{
   \vskip \lilypondpaperinterscoreline \lilypondpaperunit
     plus \lilypondpaperinterscorelinefill fill
-}
+}}{}
 
 % Are we using PDFTeX?  If so, use pdf definitions.
 % MiKTeX checks \pdfoutput the wrong way, thus we use \csname.
       {\input lily-ps-defs }
       {
         \pdfoutput = 1
-        \input lily-pdf-defs
+        \input lily-pdf-defs %
       }
   }
   {}