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 -----------------------------------------------------------------
participants (1)
-
Hans Hagen