From a31683f2d40a62a259da7c04f64e8ea6f7870e07 Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen <janneke@gnu.org> Date: Fri, 20 Sep 2002 13:22:13 +0000 Subject: [PATCH] Handle \scoreshift and \outputscale in one go. Fix comments. --- ChangeLog | 3 +++ tex/lilyponddefs.tex | 24 ++++++++---------------- 2 files changed, 11 insertions(+), 16 deletions(-) diff --git a/ChangeLog b/ChangeLog index c975b7a2ed..07996b3db8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2002-09-20 Jan Nieuwenhuizen <janneke@gnu.org> + * tex/lilyponddefs.tex: Handle \scoreshift and \outputscale in one + go. Fix comments. + * cygwin: Cygwin updates. 2002-09-19 Han-Wen Nienhuys <hanwen@cs.uu.nl> diff --git a/tex/lilyponddefs.tex b/tex/lilyponddefs.tex index e25c304730..acacba8e3d 100644 --- a/tex/lilyponddefs.tex +++ b/tex/lilyponddefs.tex @@ -4,6 +4,7 @@ % % This file defines various macros to accomodate lilypond output. % +% Avoid \par while reading this file. \edef\lilyponddefsELC{\the\endlinechar}% \endlinechar -1\relax @@ -115,25 +116,16 @@ \csname nolilyfooter\texsuffix\endcsname \fi +% It is very bad that lilyponddefs.tex gets included in every lilypond +% output snippet. This is necessary because these output snippets +% often get encapsulated, eg by texinfo. This should be fixed by +% putting the variable parts in this file into a macro so that loading +% the file multiple times can be avoided. \ifx\outputscale\undefined \csname global\endcsname\csname newdimen\endcsname\outputscale + \csname global\endcsname\csname newdimen\endcsname\scoreshift \fi -\ifundefined{scoreshift} -\else - % It is very ugly to hide \newdimen with \endinput, but I see no - % alternative: Since it is defined as \outer in plain.tex, you can - % neither use it in macros nor skip in an \if... \fi construction. - % - % In general, it is very bad that lilyponddefs.tex is read in again - % and again... This should be fixed by putting the variable parts in - % this file into a macro so that loading the file multiple times can be - % avoided. - \endlinechar \lilyponddefsELC - \expandafter\endinput -\fi - -\newdimen\scoreshift - +% Restore newline functionality (disabled to avoid \par). \endlinechar \lilyponddefsELC \endinput -- 2.39.5