Mercurial > hg > octave-terminal
changeset 9095:b5a1a2d0be7e
texinfo.tex: prefer pdf images if generating pdf output
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 06 Apr 2009 11:28:41 -0400 |
parents | 2e35cfcf6a6a |
children | 5235caf89e12 |
files | doc/ChangeLog doc/texinfo.tex |
diffstat | 2 files changed, 18 insertions(+), 14 deletions(-) [+] |
line wrap: on
line diff
--- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,3 +1,7 @@ +2009-04-06 John W. Eaton <jwe@octave.org> + + * texinfo.tex: Prefer PDF image files if generating PDF output. + 2009-03-27 Rik <rdrider0-list@yahoo.com> * interpreter/intro.txi: Add new sample section on elementary
--- a/doc/texinfo.tex +++ b/doc/texinfo.tex @@ -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{2009-03-07.09} +\def\texinfoversion{2009-04-06.11} % % Copyright (C) 1985, 1986, 1988, 1990, 1991, 1992, 1993, 1994, 1995, % 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, @@ -1375,26 +1375,26 @@ % others). Let's try in that order. \let\pdfimgext=\empty \begingroup - \openin 1 #1.png \ifeof 1 - \openin 1 #1.jpg \ifeof 1 - \openin 1 #1.jpeg \ifeof 1 - \openin 1 #1.JPG \ifeof 1 - \openin 1 #1.pdf \ifeof 1 - \openin 1 #1.PDF \ifeof 1 + \openin 1 #1.pdf \ifeof 1 + \openin 1 #1.PDF \ifeof 1 + \openin 1 #1.png \ifeof 1 + \openin 1 #1.jpg \ifeof 1 + \openin 1 #1.jpeg \ifeof 1 + \openin 1 #1.JPG \ifeof 1 \errhelp = \nopdfimagehelp \errmessage{Could not find image file #1 for pdf}% - \else \gdef\pdfimgext{PDF}% + \else \gdef\pdfimgext{JPG}% + \fi + \else \gdef\pdfimgext{jpeg}% \fi - \else \gdef\pdfimgext{pdf}% + \else \gdef\pdfimgext{jpg}% \fi - \else \gdef\pdfimgext{JPG}% + \else \gdef\pdfimgext{png}% \fi - \else \gdef\pdfimgext{jpeg}% + \else \gdef\pdfimgext{PDF}% \fi - \else \gdef\pdfimgext{jpg}% + \else \gdef\pdfimgext{pdf}% \fi - \else \gdef\pdfimgext{png}% - \fi \closein 1 \endgroup %