| 1 |
%% |
| 2 |
%% This is file `bmpsize-dvipdfm.def', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% bmpsize.dtx (with options: `dvipdfm') |
| 8 |
%% |
| 9 |
%% This is a generated file. |
| 10 |
%% |
| 11 |
%% Project: bmpsize |
| 12 |
%% Version: 2019/12/29 v1.8 |
| 13 |
%% |
| 14 |
%% Copyright (C) |
| 15 |
%% 2006-2009 Heiko Oberdiek |
| 16 |
%% 2016-2019 Oberdiek Package Support Group |
| 17 |
%% |
| 18 |
%% This work may be distributed and/or modified under the |
| 19 |
%% conditions of the LaTeX Project Public License, either |
| 20 |
%% version 1.3c of this license or (at your option) any later |
| 21 |
%% version. This version of this license is in |
| 22 |
%% https://www.latex-project.org/lppl/lppl-1-3c.txt |
| 23 |
%% and the latest version of this license is in |
| 24 |
%% https://www.latex-project.org/lppl.txt |
| 25 |
%% and version 1.3 or later is part of all distributions of |
| 26 |
%% LaTeX version 2005/12/01 or later. |
| 27 |
%% |
| 28 |
%% This work has the LPPL maintenance status "maintained". |
| 29 |
%% |
| 30 |
%% The Current Maintainers of this work are |
| 31 |
%% Heiko Oberdiek and the Oberdiek Package Support Group |
| 32 |
%% https://github.com/ho-tex/oberdiek/issues |
| 33 |
%% |
| 34 |
%% |
| 35 |
%% This work consists of the main source file bmpsize.dtx |
| 36 |
%% and the derived files |
| 37 |
%% bmpsize.sty, bmpsize.pdf, bmpsize.ins, bmpsize.drv, |
| 38 |
%% bmpsize-base.sty, bmpsize-test.tex, bmpsize-dvips.def, |
| 39 |
%% bmpsize-dvipdfm.def, bmpsize-dvipdfmx.def. |
| 40 |
%% |
| 41 |
\ProvidesFile{bmpsize-dvipdfm.def}% |
| 42 |
[2019/12/29 v1.8 Graphics bitmap driver for dvipdfm (HO)]% |
| 43 |
\expandafter\edef\csname @bmpsize@driver@catcodes\endcsname{% |
| 44 |
\catcode44 \the\catcode44 % , |
| 45 |
\catcode46 \the\catcode46 % . |
| 46 |
\catcode58 \the\catcode58 % : |
| 47 |
\catcode60 \the\catcode60 % < |
| 48 |
\catcode61 \the\catcode61 % = |
| 49 |
\catcode62 \the\catcode62 % > |
| 50 |
\catcode64 \the\catcode64 % @ |
| 51 |
} |
| 52 |
\catcode64 11 % |
| 53 |
\@makeother\, |
| 54 |
\@makeother\. |
| 55 |
\@makeother\: |
| 56 |
\@makeother\< |
| 57 |
\@makeother\= |
| 58 |
\@makeother\> |
| 59 |
\@ifundefined{@bmpsize@count}{% |
| 60 |
\csname newcount\endcsname\@bmpsize@count |
| 61 |
\@bmpsize@count=\z@ |
| 62 |
}{} |
| 63 |
\begingroup\expandafter\expandafter\expandafter\endgroup |
| 64 |
\expandafter\ifx\csname pdf@escapestring\endcsname\relax |
| 65 |
\def\@bmpsize@pdfescapestring#1{#1}% |
| 66 |
\else |
| 67 |
\let\@bmpsize@pdfescapestring\pdf@escapestring |
| 68 |
\fi |
| 69 |
\def\bmpsize@dvipdfm@factor{.99626} |
| 70 |
\def\Ginclude@bmp#1{% |
| 71 |
\message{<#1>}% |
| 72 |
\ifGin@clip |
| 73 |
\global\advance\@bmpsize@count\@ne |
| 74 |
\edef\@bmpsize@clip@name{@CLIP@\the\@bmpsize@count}% |
| 75 |
\special{% |
| 76 |
pdf:bxobj \@bmpsize@clip@name\space |
| 77 |
width \the\Gin@req@width\space |
| 78 |
height \the\Gin@req@height |
| 79 |
}% |
| 80 |
\fi |
| 81 |
\hbox to \z@{% |
| 82 |
\@ifundefined{Gin@ollx}{% |
| 83 |
\dimen@\z@ |
| 84 |
}{% |
| 85 |
\ifx\Gin@scalex\Gin@exclamation |
| 86 |
\let\Gin@scalex\Gin@scaley |
| 87 |
\fi |
| 88 |
\ifx\Gin@scaley\Gin@exclamation |
| 89 |
\let\Gin@scaley\Gin@scalex |
| 90 |
\fi |
| 91 |
\@ifundefined{bmpsize@width}{% |
| 92 |
\let\bmpsize@width\Gin@ourx |
| 93 |
\let\bmpsize@height\Gin@oury |
| 94 |
}{}% |
| 95 |
\dimen@=\Gin@llx bp\relax |
| 96 |
\dimen@=\Gin@scalex\dimen@ |
| 97 |
\kern-\dimen@ |
| 98 |
\advance\Gin@req@width\dimen@ |
| 99 |
\dimen@=\bmpsize@width bp\relax |
| 100 |
\advance\dimen@ by -\Gin@urx bp\relax |
| 101 |
\dimen@=\Gin@scalex\dimen@ |
| 102 |
\advance\Gin@req@width\dimen@ |
| 103 |
\dimen@=\bmpsize@height bp\relax |
| 104 |
\advance\dimen@ by -\Gin@ury bp\relax |
| 105 |
\dimen@=\Gin@scaley\dimen@ |
| 106 |
\advance\Gin@req@height\dimen@ |
| 107 |
\dimen@=\Gin@lly bp\relax |
| 108 |
\dimen@=\Gin@scaley\dimen@ |
| 109 |
\advance\Gin@req@height\dimen@ |
| 110 |
}% |
| 111 |
\ifdim\dimen@=\z@ |
| 112 |
\else |
| 113 |
\vbox to\z@\bgroup |
| 114 |
\kern\dimen@ |
| 115 |
\fi |
| 116 |
\edef\@bmpsize@temp{@IMG@\@bmpsize@pdfescapestring{#1}}% |
| 117 |
\@ifundefined{\@bmpsize@temp}{% |
| 118 |
\global\advance\@bmpsize@count\@ne |
| 119 |
\expandafter\xdef\csname\@bmpsize@temp\endcsname{% |
| 120 |
\the\@bmpsize@count |
| 121 |
}% |
| 122 |
\special{% |
| 123 |
pdf:image @IMG\the\@bmpsize@count\space |
| 124 |
width \the\Gin@req@width\space |
| 125 |
height \the\Gin@req@height\space |
| 126 |
depth 0pt (\@bmpsize@pdfescapestring{#1})% |
| 127 |
}% |
| 128 |
}{% |
| 129 |
\special{% |
| 130 |
pdf:bt % |
| 131 |
xscale \strip@pt\dimexpr |
| 132 |
\bmpsize@dvipdfm@factor\Gin@req@width\relax\space |
| 133 |
yscale \strip@pt\dimexpr |
| 134 |
\bmpsize@dvipdfm@factor\Gin@req@height\relax |
| 135 |
}% |
| 136 |
\special{pdf:uxobj @IMG\csname\@bmpsize@temp\endcsname}% |
| 137 |
\special{pdf:et}% |
| 138 |
}% |
| 139 |
\ifdim\dimen@=\z@ |
| 140 |
\else |
| 141 |
\vss |
| 142 |
\egroup |
| 143 |
\fi |
| 144 |
\hss |
| 145 |
}% |
| 146 |
\ifGin@clip |
| 147 |
\special{pdf:exobj}% |
| 148 |
\special{pdf:uxobj \@bmpsize@clip@name}% |
| 149 |
\fi |
| 150 |
} |
| 151 |
\@bmpsize@driver@catcodes |
| 152 |
\endinput |
| 153 |
%% |
| 154 |
%% End of file `bmpsize-dvipdfm.def'. |