]> git.donarmstrong.com Git - lilypond.git/blob - tex/lilyponddefs.tex
* tex/lilyponddefs.tex: Uncommented feta character support.
[lilypond.git] / tex / lilyponddefs.tex
1 %%
2 %% include file for LilyPond
3 %%
4 %% this file defines various macros to accomodate lilypond output
5 %%
6 %% let's not make par before endinput
7
8 % TeXbook ex 7.7
9 \def\ifundefined#1{\expandafter\ifx\csname#1\endcsname\relax}
10
11 % The feta characters
12 \input feta20.tex
13
14 \font\fetasixteen=feta16
15 \def\fetafont{\fetasixteen}
16 \def\fetachar#1{\hbox{\fetasixteen#1}}
17
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
21 %
22 % skip if included already
23 \def\SkipLilydefs{\endinput}
24 \ifundefined{EndLilyPondOutput}
25         \def\EndLilyPondOutput{\csname bye\endcsname}
26         \def\SkipLilydefs{}
27 \fi
28 \SkipLilydefs
29
30 % need to do some stuff to turn pagenumbering off
31 \ifundefined{documentclass}
32         \input lilypond-plaintex
33 \else
34         \input lilypond-latex
35 \fi
36
37 \def\botalign#1{\vbox to 0pt{\vss #1}}
38 \def\leftalign#1{\hbox to 0pt{#1\hss}}
39
40 % Attempt to keep lilypiecetitle together with the piece:
41
42 %
43 % TODO: figure this out.
44 %
45
46 \def\myfilbreak{} %\par\vfil\penalty200\vfilneg}
47
48
49 \ifundefined{lilypondpaperinterscorelinefill}
50         \def\lilypondpaperinterscorelinefill{0}
51 \else
52         \def\lilypondpaperinterscorelinefill{1}
53 \fi
54
55 \def\interscoreline{\vskip \lilypondpaperinterscoreline \lilypondpaperunit plus \lilypondpaperinterscorelinefill fill}
56
57 \def\placebox#1#2#3{%
58         \botalign{\hbox{\raise #1\leftalign{\kern #2{}#3}}}}%
59
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  
64   \input lily-ps-defs
65 \else
66   \ifx\pdfoutput\relax
67     \input lily-ps-defs
68   \else
69     \pdfoutput=1
70     \input lily-pdf-defs
71   \fi
72 \fi
73
74 \def\EndLilyPondOutput{%
75  \vskip 0pt plus \lilypondpaperinterscorelinefill00 fill\csname bye\endcsname
76 }
77 \def\postheader{}
78
79 % need to do some stuff to turn pagenumbering off
80 % they seriously mess up  your fragments.
81
82 \ifx\csname nolilyfooter\endcsname\relax
83         \message{[footer defined]}%
84         \csname lilyfooter\texsuffix\endcsname%
85 \else
86         \message{[footer empty]}
87         \csname%
88         nolilyfooter\texsuffix\endcsname
89 \fi
90 \newdimen\outputscale
91 \endinput