]> git.donarmstrong.com Git - lilypond.git/blob - tex/lilyponddefs.tex
release: 1.2.4
[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 % skip if included already
12 \def\SkipLilydefs{\endinput}
13 \ifundefined{EndLilyPondOutput}
14         \def\EndLilyPondOutput{\csname bye\endcsname}
15         \def\SkipLilydefs{}
16 \fi
17 \SkipLilydefs
18
19 % need to do some stuff to turn pagenumbering off
20 \ifundefined{documentclass}
21         \input lilypond-plaintex
22 \else
23         \input lilypond-latex
24 \fi
25
26
27 %
28 \def\botalign#1{\vbox to 0pt{\vss #1}}
29 \def\leftalign#1{\hbox to 0pt{#1\hss}}
30
31 \input feta20.tex
32 \font\textmusic=cmmi10
33 \def\textsharp{\raise.4ex\hbox{\textmusic\char"5D}}
34 \def\textnatural{\raise.4ex\hbox{\textmusic\char"5C}}
35 \def\textflat{\raise.2ex\hbox{\textmusic\char"5B}}
36
37
38
39
40
41 % stacked horizontal lines
42 \def\interscoreline{\vskip 16pt}
43 \def\placebox#1#2#3{%
44         \botalign{\hbox{\raise #1\leftalign{\kern #2{}#3}}}}%
45
46 % Are we using PDFTeX?  If so, use pdf definitions to translate
47 % \embeddedps commands to embedded PDF.
48 \ifx\pdfoutput\undefined  
49   \input lily-ps-defs
50 \else
51   \pdfoutput=1
52   \input lily-pdf-defs
53 \fi
54
55 \def\EndLilyPondOutput{%
56   \csname bye\endcsname
57 }
58 \def\postheader{}
59
60 % need to do some stuff to turn pagenumbering off
61 % they seriously mess up  your fragments.
62
63 \ifx\csname nolilyfooter\endcsname\relax
64         \message{[footer defined]}%
65         \csname lilyfooter\texsuffix\endcsname%
66 \else
67         \message{[footer empty]}
68         \csname%
69         nolilyfooter\texsuffix\endcsname
70 \fi
71
72 % fix chord.cc::banter_str before removing these
73 \input fetdefs
74
75 \endinput