]> git.donarmstrong.com Git - lilypond.git/blobdiff - tex/lilyponddefs.tex
(ChordNamesContext): minimumverticalExtent
[lilypond.git] / tex / lilyponddefs.tex
index aaeab27d9c16a2e00271ebff8a4ca9f66bed1c03..ccf820e122aaa5298763b43639d59965d0a68296 100644 (file)
@@ -4,10 +4,11 @@
 %% this file defines various macros to accomodate lilypond output
 %%
 %% let's not make par before endinput
-%
+
 % TeXbook ex 7.7
 \def\ifundefined#1{\expandafter\ifx\csname#1\endcsname\relax}
-%
+
+
 % If we must make titles, do so, before we're Skipped.
 \ifx\mustmakelilypondtitle\undefined\else\makelilypondtitle\fi
 \ifx\mustmakelilypondpiecetitle\undefined\else\makelilypondpiecetitle\fi
         \input lilypond-latex
 \fi
 
+% The feta characters
+\input feta20.tex
+
+\font\fetasixteen=feta16
+\def\fetafont{\fetasixteen}
+\def\fetachar#1{\hbox{\fetasixteen#1}}
+
 
-%
 \def\botalign#1{\vbox to 0pt{\vss #1}}
 \def\leftalign#1{\hbox to 0pt{#1\hss}}
 
-\input feta20.tex
-
 % Attempt to keep lilypiecetitle together with the piece:
-\def\myfilbreak{\par\vfil\penalty200\vfilneg}
 
-% stacked horizontal lines
-\ifundefined{lilypondpaperinterscoreline}
-        \def\lilypondpaperinterscoreline{16}
-\fi
+%
+% TODO: figure this out.
+%
+
+\def\myfilbreak{} %\par\vfil\penalty200\vfilneg}
+
+
 \ifundefined{lilypondpaperinterscorelinefill}
         \def\lilypondpaperinterscorelinefill{0}
+\else
+        \def\lilypondpaperinterscorelinefill{1}
 \fi
 
-\def\interscoreline{\vskip\lilypondpaperinterscoreline pt plus %
-  \lilypondpaperinterscorelinefill fill}
+\def\interscoreline{\vskip \lilypondpaperinterscoreline \lilypondpaperunit plus \lilypondpaperinterscorelinefill fill}
 
 \def\placebox#1#2#3{%
         \botalign{\hbox{\raise #1\leftalign{\kern #2{}#3}}}}%
 
-% Are we using PDFTeX?  If so, use pdf definitions to translate
-% \embeddedps commands to embedded PDF.
+% Are we using PDFTeX?  If so, use pdf definitions.
+% MiKTeX checks \pdfoutput the wrong way, makes our
+% check more complicated.
 \ifx\pdfoutput\undefined  
   \input lily-ps-defs
 \else
-  \pdfoutput=1
-  \input lily-pdf-defs
+  \ifx\pdfoutput\relax
+    \input lily-ps-defs
+  \else
+    \pdfoutput=1
+    \input lily-pdf-defs
+  \fi
 \fi
 
 \def\EndLilyPondOutput{%
- \vskip 0pt plus \lilypondpaperinterscorelinefill00 fill\csname bye\endcsname
-}
-\def\postheader{}
+\ifundefined{lilypondpaperlastpagefill}%
+  \vskip 0pt plus \lilypondpaperinterscorelinefill00 fill
+\fi
+\csname bye\endcsname}
 
 % need to do some stuff to turn pagenumbering off
 % they seriously mess up  your fragments.
@@ -77,4 +91,7 @@
         nolilyfooter\texsuffix\endcsname
 \fi
 
+\ifx\outputscale\undefined
+        \csname global\endcsname\csname newdimen\endcsname\outputscale
+\fi
 \endinput