From a709205e81faceaad612e388c8f05b3b05495d44 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 27 May 1998 21:04:33 +0000 Subject: * texinfo.tex (\imagexxx): Center image if it is not part of a paragraph. --- texinfo.tex | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'texinfo.tex') diff --git a/texinfo.tex b/texinfo.tex index 7c39052..9573e23 100644 --- a/texinfo.tex +++ b/texinfo.tex @@ -5012,7 +5012,12 @@ width0pt\relax} \fi % \epsfbox itself resets \epsf?size at each figure. \setbox0 = \hbox{\ignorespaces #2}\ifdim\wd0 > 0pt \epsfxsize=#2\relax \fi \setbox0 = \hbox{\ignorespaces #3}\ifdim\wd0 > 0pt \epsfysize=#3\relax \fi - \epsfbox{#1.eps}% + % If the image is by itself, center it. + \ifvmode + \centerline{\epsfbox{#1.eps}}% + \else + \epsfbox{#1.eps}% + \fi } % End of control word definitions. -- cgit v1.2.3