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
|
%%
%% The LaTeX Graphics Companion, 2ed (first printing May 2007)
%%
%% Example 5-15-3 on page 306.
%%
%% Copyright (C) 2007 Michel Goossens, Frank Mittelbach, Denis Roegel, Sebastian Rahtz, Herbert Vo\ss
%%
%% It may be distributed and/or modified under the conditions
%% of the LaTeX Project Public License, either version 1.3
%% of this license or (at your option) any later version.
%%
%% See http://www.latex-project.org/lppl.txt for details.
%%
\documentclass{ttctexa}
\pagestyle{empty}
\setcounter{page}{6}
\setlength\textwidth{340.0pt}
\StartShownPreambleCommands
\usepackage{pstricks}
\StopShownPreambleCommands
\begin{document}
Theoretically, both macros should draw the same filled square, as the
absolute coordinates are the same. But two different squares are drawn,
appearing in different places on the page, the small dark blue one
(pstverb)\pstverb{newpath 20 -20 moveto
40 0 rlineto 0 40 rlineto -40 0 rlineto 0 -40 rlineto
0.8 setgray fill }%
\pstVerb{newpath 20 -20 moveto
40 0 rlineto 0 40 rlineto -40 0 rlineto 0 -40 rlineto
1 0.56 0 0 setcmykcolor fill }%
(pstVerb) outside of the text area and the big grey square amidst this
paragraph. The text ``(pstverb)(pstVerb)''{} is placed correctly at the
current text position. However, the text afterwards is changed to blue
used in the book ($1\,0.56\, 0\, 0\,$ as CMYKa color). Only a
\black\verb+black+ command switches this back here. Additionally, two
different-sized squares are drawn, which is a problem with the
\verb+dvips+ program, because it does not reset all values properly.
With V\TeX{} both squares are of equal size, but on different positions.
\end{document}
|