texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

texinfo update (Sun May 7 18:22:01 EDT 2006)


From: Karl Berry
Subject: texinfo update (Sun May 7 18:22:01 EDT 2006)
Date: Sun, 07 May 2006 18:22:03 -0400

Index: ChangeLog
===================================================================
RCS file: /sources/texinfo/texinfo/ChangeLog,v
retrieving revision 1.588
retrieving revision 1.589
diff -u -r1.588 -r1.589
--- ChangeLog   5 May 2006 16:31:37 -0000       1.588
+++ ChangeLog   7 May 2006 22:04:41 -0000       1.589
@@ -1,3 +1,8 @@
+2006-05-07  Karl Berry  <address@hidden>
+
+       * doc/texinfo.tex (\dopdfimage): width and height args might have
+       whitespace.  Report from Bob Chassell.
+
 2006-05-05  Karl Berry  <address@hidden>
 
        * texinfo.tex (\definetextfonsizexi, \definetextfonsizex): new cmds.
Index: doc/texinfo.tex
===================================================================
RCS file: /sources/texinfo/texinfo/doc/texinfo.tex,v
retrieving revision 1.212
retrieving revision 1.213
diff -u -r1.212 -r1.213
--- doc/texinfo.tex     5 May 2006 16:31:37 -0000       1.212
+++ doc/texinfo.tex     7 May 2006 22:04:28 -0000       1.213
@@ -3,7 +3,7 @@
 % Load plain if necessary, i.e., if running under initex.
 \expandafter\ifx\csname fmtname\endcsname\relax\input plain\fi
 %
-\def\texinfoversion{2006-05-05.09}
+\def\texinfoversion{2006-05-07.15}
 %
 % Copyright (C) 1985, 1986, 1988, 1990, 1991, 1992, 1993, 1994, 1995,
 % 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free
@@ -1237,9 +1237,10 @@
 \ifpdf
   \input pdfcolor
   \pdfcatalog{/PageMode /UseOutlines}%
+  % #1 is image name, #2 width (might be empty/whitespace), #3 height (ditto).
   \def\dopdfimage#1#2#3{%
-    \def\imagewidth{#2}%
-    \def\imageheight{#3}%
+    \def\imagewidth{#2}\setbox0 = \hbox{\ignorespaces #2}%
+    \def\imageheight{#3}\setbox2 = \hbox{\ignorespaces #3}%
     % without \immediate, pdftex seg faults when the same image is
     % included twice.  (Version 3.14159-pre-1.0-unofficial-20010704.)
     \ifnum\pdftexversion < 14
@@ -1247,8 +1248,8 @@
     \else
       \immediate\pdfximage
     \fi
-      \ifx\empty\imagewidth\else width \imagewidth \fi
-      \ifx\empty\imageheight\else height \imageheight \fi
+      \ifdim \wd0 >0pt width \imagewidth \fi
+      \ifdim \wd2 >0pt height \imageheight \fi
       \ifnum\pdftexversion<13
          #1.pdf%
        \else
P ChangeLog
P doc/texinfo.tex


reply via email to

[Prev in Thread] Current Thread [Next in Thread]