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}
44 \ifundefined{lilypondpaperinterscorelinefill}
45 \def\lilypondpaperinterscorelinefill{0}
47 \def\lilypondpaperinterscorelinefill{1}
50 \def\interscoreline{\vskip \lilypondpaperinterscoreline \lilypondpaperunit plus \lilypondpaperinterscorelinefill fill}
53 \botalign{\hbox{\raise #1\leftalign{\kern #2{}#3}}}}%
55 % Are we using PDFTeX? If so, use pdf definitions.
56 % MiKTeX checks \pdfoutput the wrong way, makes our
57 % check more complicated.
58 \ifx\pdfoutput\undefined
69 \def\EndLilyPondOutput{%
70 \vskip 0pt plus \lilypondpaperinterscorelinefill00 fill\csname bye\endcsname
74 % need to do some stuff to turn pagenumbering off
75 % they seriously mess up your fragments.
77 \ifx\csname nolilyfooter\endcsname\relax
78 \message{[footer defined]}%
79 \csname lilyfooter\texsuffix\endcsname%
81 \message{[footer empty]}
83 nolilyfooter\texsuffix\endcsname