]> git.donarmstrong.com Git - lilypond.git/blobdiff - tex/lilyponddefs.tex
patch::: 1.5.43.jcn1
[lilypond.git] / tex / lilyponddefs.tex
index 696bf389a3ad28485da66e0f7993d0faf624beaa..c47267cead9fb9e7586fc7ab9ef42f6d2bd8ec4c 100644 (file)
@@ -4,9 +4,20 @@
 %% 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}
+
+% The feta characters
+\input feta20.tex
+
+\font\fetasixteen=feta16
+\def\fetafont{\fetasixteen}
+\def\fetachar#1{\hbox{\fetasixteen#1}}
+
+% If we must make titles, do so, before we're Skipped.
+\ifx\mustmakelilypondtitle\undefined\else\makelilypondtitle\fi
+\ifx\mustmakelilypondpiecetitle\undefined\else\makelilypondpiecetitle\fi
 %
 % skip if included already
 \def\SkipLilydefs{\endinput}
         \input lilypond-latex
 \fi
 
-
-%
 \def\botalign#1{\vbox to 0pt{\vss #1}}
 \def\leftalign#1{\hbox to 0pt{#1\hss}}
-\font\textmusic=cmmi10
-\def\textsharp{\raise.4ex\hbox{\textmusic\char"5D}}
-\def\textnatural{\raise.4ex\hbox{\textmusic\char"5C}}
-\def\textflat{\raise.2ex\hbox{\textmusic\char"5B}}
 
+% Attempt to keep lilypiecetitle together with the piece:
+\def\myfilbreak{\par\vfil\penalty200\vfilneg}
 
+% stacked horizontal lines
+\ifundefined{lilypondpaperinterscoreline}
+        \def\lilypondpaperinterscoreline{16}
+\fi
+\ifundefined{lilypondpaperinterscorelinefill}
+        \def\lilypondpaperinterscorelinefill{0}
+\else
+        \def\lilypondpaperinterscorelinefill{1}
+\fi
 
+\def\interscoreline{\vskip\lilypondpaperinterscoreline pt plus %
+  \lilypondpaperinterscorelinefill fill}
 
-% stacked horizontal lines
-\def\interscoreline{\vskip 16pt}
 \def\placebox#1#2#3{%
         \botalign{\hbox{\raise #1\leftalign{\kern #2{}#3}}}}%
-\input lily-ps-defs
+
+% 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
+  \ifx\pdfoutput\relax
+    \input lily-ps-defs
+  \else
+    \pdfoutput=1
+    \input lily-pdf-defs
+  \fi
+\fi
+
 \def\EndLilyPondOutput{%
 \csname bye\endcsname
\vskip 0pt plus \lilypondpaperinterscorelinefill00 fill\csname bye\endcsname
 }
 \def\postheader{}
 
@@ -56,6 +86,5 @@
         \csname%
         nolilyfooter\texsuffix\endcsname
 \fi
-
-
+\newdimen\outputscale
 \endinput