2 %% include file for LilyPond
4 %% this file defines various macros to accomodate lilypond output
6 %% let's not make par before endinput
9 \def\ifundefined#1{\expandafter\ifx\csname#1\endcsname\relax}
14 %\font\fetasixteen=feta16
15 %\def\fetafont{\fetasixteen}
16 %\def\fetachar#1{\hbox{\fetasixteen#1}}
18 % If we must make titles, do so, before we're Skipped.
19 \ifx\mustmakelilypondtitle\undefined\else\makelilypondtitle\fi
20 \ifx\mustmakelilypondpiecetitle\undefined\else\makelilypondpiecetitle\fi
22 % skip if included already
23 \def\SkipLilydefs{\endinput}
24 \ifundefined{EndLilyPondOutput}
25 \def\EndLilyPondOutput{\csname bye\endcsname}
30 % need to do some stuff to turn pagenumbering off
31 \ifundefined{documentclass}
32 \input lilypond-plaintex
37 \def\botalign#1{\vbox to 0pt{\vss #1}}
38 \def\leftalign#1{\hbox to 0pt{#1\hss}}
40 % Attempt to keep lilypiecetitle together with the piece:
41 \def\myfilbreak{\par\vfil\penalty200\vfilneg}
43 % stacked horizontal lines
44 \ifundefined{lilypondpaperinterscoreline}
45 \def\lilypondpaperinterscoreline{16}
47 \ifundefined{lilypondpaperinterscorelinefill}
48 \def\lilypondpaperinterscorelinefill{0}
50 \def\lilypondpaperinterscorelinefill{1}
53 \def\interscoreline{\vskip\lilypondpaperinterscoreline pt plus %
54 \lilypondpaperinterscorelinefill fill}
57 \botalign{\hbox{\raise #1\leftalign{\kern #2{}#3}}}}%
59 % Are we using PDFTeX? If so, use pdf definitions.
60 % MiKTeX checks \pdfoutput the wrong way, makes our
61 % check more complicated.
62 \ifx\pdfoutput\undefined
73 \def\EndLilyPondOutput{%
74 \vskip 0pt plus \lilypondpaperinterscorelinefill00 fill\csname bye\endcsname
78 % need to do some stuff to turn pagenumbering off
79 % they seriously mess up your fragments.
81 \ifx\csname nolilyfooter\endcsname\relax
82 \message{[footer defined]}%
83 \csname lilyfooter\texsuffix\endcsname%
85 \message{[footer empty]}
87 nolilyfooter\texsuffix\endcsname