Debian Codegraph @

texmf-dist/tex/latex/oberdiek/bmpsize-dvips.def

raw
1 %%
2 %% This is file `bmpsize-dvips.def',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% bmpsize.dtx (with options: `dvips')
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-dvips.def}%
42 [2019/12/29 v1.8 Graphics bitmap driver for dvips (HO)]%
43 \expandafter\edef\csname @bmpsize@driver@catcodes\endcsname{%
44 \catcode44 \the\catcode44 % ,
45 \catcode58 \the\catcode58 % :
46 \catcode60 \the\catcode60 % <
47 \catcode61 \the\catcode61 % =
48 \catcode62 \the\catcode62 % >
49 \catcode64 \the\catcode64 % @
50 }
51 \catcode64 11 %
52 \@makeother\,
53 \@makeother\:
54 \@makeother\<
55 \@makeother\=
56 \@makeother\>
57 \def\Ginclude@bmp#1{%
58 \message{<#1>}%
59 \raise\Gin@req@height
60 \hbox to\Gin@req@width{%
61 \ifGin@clip
62 \vbox to\z@{%
63 \special{ps:gsave currentpoint}%
64 \kern\Gin@req@height
65 \hbox to\z@{%
66 \kern\Gin@req@width
67 \special{ps:%
68 currentpoint %
69 newpath %
70 3 index 3 index moveto %
71 1 index 3 index lineto %
72 2 copy lineto %
73 exch pop exch pop %
74 lineto %
75 closepath %
76 clip %
77 }%
78 \hss
79 }%
80 \vss
81 }%
82 \fi
83 \@ifundefined{Gin@ollx}{%
84 \dimen@\z@
85 }{%
86 \ifx\Gin@scalex\Gin@exclamation
87 \let\Gin@scalex\Gin@scaley
88 \fi
89 \ifx\Gin@scaley\Gin@exclamation
90 \let\Gin@scaley\Gin@scalex
91 \fi
92 \@ifundefined{bmpsize@width}{%
93 \let\bmpsize@width\Gin@ourx
94 \let\bmpsize@height\Gin@oury
95 }{}%
96 \dimen@=\Gin@llx bp\relax
97 \dimen@=\Gin@scalex\dimen@
98 \kern-\dimen@
99 \advance\Gin@req@width\dimen@
100 \dimen@=\bmpsize@width bp\relax
101 \advance\dimen@ by -\Gin@urx bp\relax
102 \dimen@=\Gin@scalex\dimen@
103 \advance\Gin@req@width\dimen@
104 \dimen@=\Gin@lly bp\relax
105 \dimen@=\Gin@scaley\dimen@
106 \advance\Gin@req@height\dimen@
107 \dimen@=\bmpsize@height bp\relax
108 \advance\dimen@ by -\Gin@ury bp\relax
109 \dimen@=\Gin@scaley\dimen@
110 \advance\Gin@req@height\dimen@
111 }%
112 \ifdim\dimen@=\z@
113 \else
114 \vbox to\z@\bgroup
115 \kern-\dimen@
116 \fi
117 \special{em:graph #1,\the\Gin@req@width,\the\Gin@req@height}%
118 \ifdim\dimen@=\z@
119 \else
120 \vss
121 \egroup
122 \fi
123 \ifGin@clip
124 \special{ps::grestore}%
125 \fi
126 \hss
127 }%
128 }
129 \@bmpsize@driver@catcodes
130 \endinput
131 %%
132 %% End of file `bmpsize-dvips.def'.