summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@gnu.org>1998-05-27 21:04:33 +0000
committerKarl Berry <karl@gnu.org>1998-05-27 21:04:33 +0000
commita709205e81faceaad612e388c8f05b3b05495d44 (patch)
treea55e1ab7dbce4774b3d2e574ad927702b90f4495
parent9391fb8e4ce004886701775af5f77d539d83c391 (diff)
downloadgunmake-a709205e81faceaad612e388c8f05b3b05495d44.tar.gz
* texinfo.tex (\imagexxx): Center image if it is not part of a
paragraph.
-rw-r--r--texinfo.tex7
1 files changed, 6 insertions, 1 deletions
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.