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:
43 % TODO: figure this out.
46 \def\myfilbreak{} %\par\vfil\penalty200\vfilneg}
49 \ifundefined{lilypondpaperinterscorelinefill}
50 \def\lilypondpaperinterscorelinefill{0}
52 \def\lilypondpaperinterscorelinefill{1}
55 \def\interscoreline{\vskip \lilypondpaperinterscoreline \lilypondpaperunit plus \lilypondpaperinterscorelinefill fill}
58 \botalign{\hbox{\raise #1\leftalign{\kern #2{}#3}}}}%
60 % Are we using PDFTeX? If so, use pdf definitions.
61 % MiKTeX checks \pdfoutput the wrong way, makes our
62 % check more complicated.
63 \ifx\pdfoutput\undefined
74 \def\EndLilyPondOutput{%
75 \vskip 0pt plus \lilypondpaperinterscorelinefill00 fill\csname bye\endcsname
79 % need to do some stuff to turn pagenumbering off
80 % they seriously mess up your fragments.
82 \ifx\csname nolilyfooter\endcsname\relax
83 \message{[footer defined]}%
84 \csname lilyfooter\texsuffix\endcsname%
86 \message{[footer empty]}
88 nolilyfooter\texsuffix\endcsname