[NTG-context] lilypond

Hans Hagen pragma at wxs.nl
Mon Aug 27 00:35:42 CEST 2007


Mojca,

cn you check this module for things like

		\leavevmode%
		\newdimen\FigWidth
		\FigWidth=\figurewidth
		\ifdim\FigWidth>\localhsize
			\!!dimena=\localhsize
			\advance\!!dimena by-\FigWidth
			\noindent\hskip\!!dimena
		\fi

(1) defining dimens this way will create new ones every time since 
registers are defined global

(2) there is no need for the intermediate dimen anyway

(3) use dontleavehmode instead of leavevmode

(4) things can be simplified to:


\ifdim\figurewidth>\localhsize
   \dontleavehmode\hskip\dimexpr\localhsize-\figurewidth\relax
\fi

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the ntg-context mailing list