summaryrefslogtreecommitdiff
path: root/macros/latex/exptl/graphicp/laltest.tex
blob: 01013f602ab3be182c7e91630d8a1938e49ba772 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
%
% latest.tex -- both plain TeX and LaTeX
% by pts@fazekas.hu at Fri Jan 24 11:24:28 CET 2003
% at Mon Feb  3 16:21:04 CET 2003
%

\input laemu.sty

\ifLaTeX
  \documentclass{article}
  \usepackage[magyar]{babel}
  %\usepackage[german]{babel}
  \usepackage[latin2]{inputenc}
\fi

%\expandafter\ifx\csname usepackage\endcsname\relax%
%  \def\usepackage#1{\input#1.sty\relax}\fi%
%\usepackage{laemu}
%\usepackage{pts_img}

%\usepackage[nopdftexmpost]{graphicp}
\usepackage{graphicp}
%\usepackage[alma,korte]{graphicp}

\ifLaTeX
  \begin{document}
\fi

\makeatletter

\ifLaTeX
  Hello, LaTeX!
\else
  Hello, other.
\fi

%\@@muldivletposdim{\dimen3}{-2.99998pt}{2.83466pt}{1pt}% Imp: precision!! should be 8.50392
%  \immediate\write16{t9(-8.50394):\the\dimen3}% Division is not that exact...

% \message{\@@divhundred{345.6}}%
% \@@letdimcount{\count0}{0.5pt} \showthe\count0%

%\@@gobbleend almakorte\end szilva

%\expandafter\ifx\csname graphicPdriver
%\@@setdriver{dvips}
%\@@setdriver{pdftex}
%\@@setdriver{dvipdfm}
%\@@setdriver{}
%\@@setdriver{}
%
%
\setbox0=\vbox{\hsize=9cm
\hrule width 5cm
\noindent
Hello,%
\@@PutImage{}{}.{{3bp}{-10bp}{23bp}{20bp}}{0pt}{0pt}{0}{f2cletter.\@@img@defext}{}%
%\unskip%
World!

\par\noindent
2Hello,%
\@@PutImage{}{}.{{3bp}{-10bp}{23bp}{20bp}}{3cm}{0pt}{0}{f2cletter.\@@img@defext}{}%
World!
\hrule width 4cm

\par\noindent
Hello,%
\@@PutImage{}{}.{{3bp}{-10bp}{23bp}{20bp}}{0pt}{3cm}{0}{f2cletter.\@@img@defext}{}%
World!

\par\noindent
Hello,%
\@@PutImage{}{}.{{3bp}{-10bp}{23bp}{20bp}}{2cm}{3cm}{0}{f2cletter.\@@img@defext}{}%
World!

\par\noindent
Hello,%
%\includegraphics[width=2cm,height=3cm,noclip]{f2cletter.\@@img@defext}%
\includegraphics[width=2cm,height=3cm,noclip]{f2mletter}%
ZWorld!
\par
\hrule

\noindent
Hello,%
%\includegraphics[bbox={{0}{0}{20bp}{30bp}},width=20bp,height=30bp,noclip]{ficletter.png}% only in pdfTeX and dvipdfm
%\includegraphics[bbox={{0}{0}{20bp}{30bp}},width=2cm,height=3cm,noclip]{ficletter.eps}% only in pdfTeX and dvipdfm
%\includegraphics[bbox={{0}{0}{20bp}{30bp}},width=2cm,height=3cm,noclip]{ficletter.pdf}% only in pdfTeX and dvipdfm
%\includegraphics[width=2cm,height=3cm,noclip]{fromp.eps}%
\includegraphics[width=2cm,height=3cm,noclip,below]{descend.1}%
%\includegraphics[format=TIFF,bbox={{0}{0}{72bp}{72bp}},width=2cm,height=3cm,noclip]{ficletter.tiff}%
%\includegraphics[width=2cm,height=3cm,noclip]{ficletter.tiff}%
%\includegraphics[width=2cm,height=3cm,noclip]{ficletter.png}% only in pdfTeX
%\ifnum\pdftexversion>0
\iftrue%
\includegraphics[forceunknown=1,bbox={{0}{0}{20bp}{30bp}},width=2cm,height=3cm,noclip,below]{ficletter.png}% only in pdfTeX and dvipdfm
\includegraphics[forceunknown=1,bbox={{0}{0}{20bp}{30bp}},lower=10,width=2cm,height=3cm,noclip]{ficletter.png}% only in pdfTeX and dvipdfm
\fi
MetaPost!

%\def\secondofthree#1#2#3{#2}%
%\def\thirdofthree#1#2#3{#2}%

\message{%
  %\noexpand{\iffalse}\fi%
  E%
  %\iffalse{\fi%
  %\iffalse}\fi%
  %\expandafter\expandafter\expandafter\secondofthree%
  %\expandafter\string\csname{}\endcsname%
  \expandafter\@secondoftwo\string\\%
  F%
}%

%\message{AAA%
%  \expandafter\expandafter\expandafter\@firstoftwo
%  \expandafter\string\csname v\endcsname BBB}

%\def\xgobble{\let\next}%

\input laxtest.bbx

\par\noindent
Hello,%
%\iftrue % stress test on special characters in filename
\iffalse\iffalse
%\ifnum\pdftexversion>0\ifnum\pdftexversion>12 %
%\includegraphics[bbox={{3bp}{-10bp}{23bp}{20bp}},width=1cm,height=1cm,noclip]{%
\includegraphics[width=1cm,height=1cm,noclip,below]{%
  %\noexpand{%\expandafter\@gobble\n
  %\expandafter\expandafter\expandafter\xgobble%
  %\expandafter\noexpand}%
  %\iffalse}\fi%
  %\expandafter\@secondoftwo\string\^%
  %\expandafter\@secondoftwo\string\^\expandafter\@secondoftwo\string\^40%
  %\noexpand`tty%
  %\noexpand"a%
  %õ%
  %\ %
  % Dat: kpsewhich: $
%  ugly_&_\space \space \space \expandafter\@secondoftwo\string\\%
%  \expandafter\@secondoftwo\string\}%
%  \expandafter\@secondoftwo\string\%%
%  \expandafter\@secondoftwo\string\#%
%  \expandafter\@secondoftwo\string\^%
%  \expandafter\@secondoftwo\string\^a%
%  \expandafter\@secondoftwo\string\^e1%
%  \expandafter\@secondoftwo\string\^e9b%
%  \expandafter\@secondoftwo\string\{%
%  \expandafter\@secondoftwo\string\%%
%  \expandafter\@secondoftwo\string\#%
%  \expandafter\@secondoftwo\string\^%
%  \expandafter\@secondoftwo\string\~%
  %\noexpand~%
%  \noexpand`tty.
  ugly_&_\space \space \space \expandafter\@secondoftwo\string\\\expandafter\@secondoftwo\string\}\expandafter\@secondoftwo\string\%\expandafter\@secondoftwo\string\#\expandafter\@secondoftwo\string\^\expandafter\@secondoftwo\string\^a\expandafter\@secondoftwo\string\^^e1\expandafter\@secondoftwo\string\^^e9b\expandafter\@secondoftwo\string\{\expandafter\@secondoftwo\string\%\expandafter\@secondoftwo\string\#\expandafter\@secondoftwo\string\^\expandafter\@secondoftwo\string\~\expandafter\@secondoftwo\string\`.\@@img@defext%
%  ugly_&_\iftrue\space\fi \iftrue\space\fi \iftrue\space\fi \expandafter\@secondoftwo\string\\\expandafter\@secondoftwo\string\}\expandafter\@secondoftwo\string\%\expandafter\@secondoftwo\string\#\expandafter\@secondoftwo\string\^\expandafter\@secondoftwo\string\^a\expandafter\@secondoftwo\string\^^e1\expandafter\@secondoftwo\string\^^e9b\expandafter\@secondoftwo\string\{\expandafter\@secondoftwo\string\%\expandafter\@secondoftwo\string\#\expandafter\@secondoftwo\string\^\expandafter\@secondoftwo\string\~\expandafter\@secondoftwo\string\`.\@@img@defext%
}%
\fi\fi
Q.

}%
\shipout\box0

\end{document}