% lilypond-plaintex.tex
%
\edef\lilypondplaintexELC{\the\endlinechar}%
\endlinechar -1\relax

\message{LilyPond Plain TeX settings}

\def\texsuffix{PlainTeX}

\def\lilyfooterPlainTeX{
  \footline = {
    \ifnum\pageno = 1\relax
      \smalltextfont\lilypondcopyright\hfil \lilypondtagline
    \else
      \hfil \the\pageno \hfil
    \fi
  }
}


%% make plain work ok Out Of The Box

\ifundefined{lilypondpaperunit}
\def\lhsize{\hsize} 
\else
\def\lhsize{\lilypondpaperlinewidth\lilypondpaperunit}
\fi

\ifdim0pt<\lhsize
\hsize=\lhsize
\fi

\advance\hoffset by -.6in

\def\nolilyfooterPlainTeX{\nopagenumbers}

\endlinechar \lilypondplaintexELC
\endinput
