summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/pst2pdf/test2.tex
blob: ca85de586942630cc34efeea6ed4370a17739ae2 (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
\documentclass[12pt,english]{article}
\usepackage[T1]{fontenc}
\usepackage{pstricks}
\usepackage{pst-node}
\usepackage{pst-3dplot}
\usepackage{pst-calendar}
\usepackage{pst-exa}
\usepackage{blindtext}
\usepackage{babel}
\usepackage{microtype}% for the last pdflatex run
\begin{document}

foo\begin{pspicture}[showgrid=true](4,2)\psscaleboxto(8,2){foo}\end{pspicture}bar

\begin{PSTexample}[width=4cm,pos=r]
\begin{pspicture}[showgrid=true](4,2)
  \psscaleboxto(4,2){foo bar}
\end{pspicture}
\end{PSTexample}


foo\begin{pspicture}[showgrid=true](4,2)
  \psscaleboxto(8,2){foo bar baz}
\end{pspicture}bar



\begin{PSTexample}[pos=t]
\begin{postscript}
\psscalebox{0.5}{%
\psCalDodecaeder[style=january,unit=0.75,Year=2010]}
\end{postscript}
\end{PSTexample}

\includegraphics{tux.jpg}% a jpg image


foo bar baz foo bar baz
 
\begin{postscript}\rnode{foo}{foo} bar baz

foo bar baz foo bar \rnode{baz}{baz} foo bar baz
\ncarc[linecolor=red]{<->}{foo}{baz}\end{postscript}

foo bar baz

\begin{PSTexample}[pos=b]
\begin{postscript}
\psframebox{%
\begin{pspicture}(-3,-2)(3,6.5)
\pstThreeDCoor[zMax=7]
\pstIIIDCylinder[RotY=30,fillstyle=solid,fillcolor=red!20,linecolor=black!60](0,0,0){2}{5}
\pstThreeDLine[linecolor=red]{->}(0,0,5)(0,0,7)
\pstThreeDLine[linecolor=red]{->}(-1,0,0)(4,0,0)
\pstThreeDLine[linecolor=red]{->}(0,-1,0)(0,4,0)
\end{pspicture}
}
\end{postscript}
\end{PSTexample}


\begin{PSTexample}[width=7.5cm]
\begin{postscript}
\begin{pspicture*}(-4,-2)(3,6.5)
\pstThreeDCoor[zMax=7]
\pstIIIDCylinder[RotY=30,fillstyle=solid,fillcolor=red!20,linecolor=black!60](0,0,0){2}{5}
\pstThreeDLine[linecolor=red]{->}(0,0,5)(0,0,7)
\pstThreeDLine[linecolor=red]{->}(-1,0,0)(4,0,0)
\pstThreeDLine[linecolor=red]{->}(0,-1,0)(0,4,0)
\end{pspicture*}
\end{postscript}
\end{PSTexample}




\end{document}