diff options
author | Karl Berry <karl@freefriends.org> | 2007-05-09 21:54:51 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2007-05-09 21:54:51 +0000 |
commit | 1b38d8b54a69cadeaa6385690a7c81d829136b57 (patch) | |
tree | 04211e793c0561074765e235bccf1e6ccb3ff23b /Master/texmf-dist/tex/latex/oberdiek/bmpsize-dvipdfmx.def | |
parent | 64ae38fe6e63257c9c5387838608ac4e8f664446 (diff) |
oberdiek update
git-svn-id: svn://tug.org/texlive/trunk@4272 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/oberdiek/bmpsize-dvipdfmx.def')
-rw-r--r-- | Master/texmf-dist/tex/latex/oberdiek/bmpsize-dvipdfmx.def | 124 |
1 files changed, 120 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/oberdiek/bmpsize-dvipdfmx.def b/Master/texmf-dist/tex/latex/oberdiek/bmpsize-dvipdfmx.def index dacf67b3f06..18360665b9a 100644 --- a/Master/texmf-dist/tex/latex/oberdiek/bmpsize-dvipdfmx.def +++ b/Master/texmf-dist/tex/latex/oberdiek/bmpsize-dvipdfmx.def @@ -29,18 +29,134 @@ %% bmpsize-dvipdfm.def, bmpsize-dvipdfmx.def. %% \ProvidesFile{bmpsize-dvipdfmx.def}% - [2007/04/11 v1.2 Graphics bitmap driver for dvipdfmx (HO)]% + [2007/04/29 v1.3 Graphics bitmap driver for dvipdfmx (HO)]% \expandafter\edef\csname @bmpsize@driver@catcodes\endcsname{% + \catcode44 \the\catcode44 % , \catcode46 \the\catcode46 % . + \catcode58 \the\catcode58 % : + \catcode60 \the\catcode60 % < + \catcode61 \the\catcode61 % = + \catcode62 \the\catcode62 % > \catcode64 \the\catcode64 % @ } \catcode64 11 % +\@makeother\, \@makeother\. -\@ifundefined{bmpsize@dvipdfm@factor}{% - \def\bmpsize@dvipdfm@factor{.01384}% +\@makeother\: +\@makeother\< +\@makeother\= +\@makeother\> +\@ifundefined{@bmpsize@count}{% + \csname newcount\endcsname\@bmpsize@count + \@bmpsize@count=\z@ }{} +\begingroup\expandafter\expandafter\expandafter\endgroup +\expandafter\ifx\csname pdfescapestring\endcsname\relax + \def\@bmpsize@pdfescapestring#1{#1}% +\else + \let\@bmpsize@pdfescapestring\pdfescapestring +\fi +\def\bmpsize@dvipdfmx@factor{1.3837} +\def\Ginclude@bmp#1{% + \message{<#1>}% + \ifGin@clip + \global\advance\@bmpsize@count\@ne + \edef\@bmpsize@clip@name{@CLIP@\the\@bmpsize@count}% + \special{% + pdf:bxobj \@bmpsize@clip@name\space + width \the\Gin@req@width\space + height \the\Gin@req@height + }% + \fi + \hbox to \z@{% + \@ifundefined{Gin@ollx}{% + \dimen@\z@ + }{% + \ifx\Gin@scalex\Gin@exclamation + \let\Gin@scalex\Gin@scaley + \fi + \ifx\Gin@scaley\Gin@exclamation + \let\Gin@scaley\Gin@scalex + \fi + \@ifundefined{bmpsize@width}{% + \let\bmpsize@width\Gin@ourx + \let\bmpsize@height\Gin@oury + }{}% + \dimen@=\Gin@llx bp\relax + \dimen@=\Gin@scalex\dimen@ + \kern-\dimen@ + \advance\Gin@req@width\dimen@ + \dimen@=\bmpsize@width bp\relax + \advance\dimen@ by -\Gin@urx bp\relax + \dimen@=\Gin@scalex\dimen@ + \advance\Gin@req@width\dimen@ + \dimen@=\bmpsize@height bp\relax + \advance\dimen@ by -\Gin@ury bp\relax + \dimen@=\Gin@scaley\dimen@ + \advance\Gin@req@height\dimen@ + \dimen@=\Gin@lly bp\relax + \dimen@=\Gin@scaley\dimen@ + \advance\Gin@req@height\dimen@ + }% + \ifdim\dimen@=\z@ + \else + \vbox to\z@\bgroup + \kern\dimen@ + \fi + \edef\@bmpsize@temp{@IMG@\@bmpsize@pdfescapestring{#1}}% + \@ifundefined{\@bmpsize@temp}{% + \global\advance\@bmpsize@count\@ne + \expandafter\ifx\csname bmpsize@pixelwidth\endcsname\relax + \else + \expandafter\xdef\csname\@bmpsize@temp\endcsname{% + \the\@bmpsize@count:\bmpsize@pixelwidth:\bmpsize@pixelheight + }% + \fi + \special{% + pdf:image @IMG\the\@bmpsize@count\space + width \the\Gin@req@width\space + height \the\Gin@req@height\space + depth 0pt (\@bmpsize@pdfescapestring{#1})% + }% + }{% + \expandafter\expandafter\expandafter\@bmpsize@extract + \csname\@bmpsize@temp\endcsname\@nil + \edef\@bmpsize@xscale{% + \strip@pt\dimexpr + \bmpsize@dvipdfmx@factor\Gin@req@width\relax + }% + \edef\@bmpsize@yscale{% + \strip@pt\dimexpr + \bmpsize@dvipdfmx@factor\Gin@req@height\relax + }% + \@bmpsize@div\@bmpsize@xscale\@bmpsize@xscale\@bmpsize@pixelwidth + \@bmpsize@div\@bmpsize@yscale\@bmpsize@yscale\@bmpsize@pixelheight + \special{% + pdf:bt % + xscale \@bmpsize@xscale\space + yscale \@bmpsize@yscale + }% + \special{pdf:uxobj @IMG\@bmpsize@imgnum}% + \special{pdf:et}% + }% + \ifdim\dimen@=\z@ + \else + \vss + \egroup + \fi + \hss + }% + \ifGin@clip + \special{pdf:exobj}% + \special{pdf:uxobj \@bmpsize@clip@name}% + \fi +} +\def\@bmpsize@extract#1:#2:#3\@nil{% + \def\@bmpsize@imgnum{#1}% + \def\@bmpsize@pixelwidth{#2}% + \def\@bmpsize@pixelheight{#3}% +} \@bmpsize@driver@catcodes -\input{bmpsize-dvipdfm.def} \endinput %% %% End of file `bmpsize-dvipdfmx.def'. |