Debian Codegraph @

texmf-dist/doc/latex/visualpstricks/Source/VPSTdebut.tex

raw
1 \documentclass[a4paper]{article}
2
3 \usepackage{etex}
4 \usepackage[utf8]{inputenc}
5 \usepackage[T1]{fontenc}
6 \usepackage{lmodern}
7
8 \usepackage[frenchb]{babel}
9 %
10 \usepackage{amsmath,amsfonts}
11 %\usepackage{amssymb}
12 %\usepackage{pdfpages}
13 \usepackage{textcomp}
14 \usepackage{makeidx}
15 \usepackage{pst-all}
16
17 \usepackage{graphicx}
18 \usepackage{hyperref}
19 \usepackage{pst-fr3d}
20 \usepackage{infix-RPN}
21 \usepackage{pst-infixplot}
22
23 \usepackage{pst-eucl}
24 \usepackage{pst-slpe}
25 \usepackage{wrapfig}
26 \usepackage{pst-solides3d}
27 \usepackage{pst-3dplot}
28 \usepackage{pst-fun}
29 \usepackage{pst-func}
30 \usepackage{pst-bezier}
31 \usepackage{pst-bspline}
32 \usepackage{animate}
33 \usepackage{makeidx}
34 \usepackage{pst-tools}
35 \usepackage{pst-poly}
36 %\usepackage{pst-gantt}
37
38 %\usepackage{showidx}
39 %\usepackage{pst-abspos}
40 %====================================================================
41
42 \makeindex
43
44 \newcommand{\AC}[1]{\{#1\}}
45
46 \newcommand{\BS}[1]{$\backslash$#1}
47
48 %\newcommand{\BSS}[1]{\textbf{\cyan $\backslash${#1}}\index{Commandes!\textbackslash{}#1}}
49 \newcommand{\BSS}[1]{\textbf{\textbackslash{#1}}\index{\textbf{1) Commandes}!#1 @\textbackslash{}#1}}
50
51 \newcommand{\BSI}[2]{ \index{\textbf{4) Par modules }!\textbf{#2}!#1@\textbackslash{}#1 (M)}}
52
53 %\newcommand{\BSI}[2]{\cite{#2} \index{\textbf{4) Par modules }!\textbf{#2}!#1@\textbackslash{}#1 (M)}}
54
55 \newcommand{\RDI}[2]{ \index{\textbf{4) Par modules }!\textbf{#2}!#1@#1 (P)}}
56
57 %\newcommand{\RDI}[2]{\cite{#2} \index{\textbf{4) Par modules }!\textbf{#2}!#1@#1 (P)}}
58
59 \newcommand{\BDI}[2]{\cite{#2} \index{\textbf{4) Par modules }!\textbf{#2}!#1@#1 (V) }}
60
61 \newcommand{\RDD}[1]{{\red #1}\index{\textbf{2) Paramètres et options}!#1}}
62
63 \newcommand{\RDDD}[2]{{\red #1}\index{\textbf{2) Paramètres et options}!#2!#1}}
64
65 \newcommand{\BDD}[1]{{\blue #1}\index{\textbf{3) Variables PsTricks}!#1}}
66
67 \newcommand{\DFR}{\psset{unit=.25cm,fillstyle=solid,linewidth=0pt}\begin{pspicture*}(3,1.5) \psframe[fillcolor=blue](1,1.5)\psframe[fillcolor=white](1,0)(2,1.5)\psframe[fillcolor=red](2,0)(3,1.5)\end{pspicture*}
68 \psset{unit=1cm,fillstyle=solid,linewidth=1pt}}
69
70 \newcommand{\DGB}{\psset{unit=.25cm,fillstyle=solid,linewidth=0pt}\begin{pspicture*}(3,1.5) \psframe[fillcolor=blue](3,1.5) \psline[linecolor=white,linewidth=.1cm](3,1.5)\psline[linecolor=white,linewidth=.1cm](0,1.5)(3,0) \psline[linecolor=white,linewidth=.1cm](0,.75)(3,.75)\psline[linecolor=white,linewidth=.1cm](1.5,0)(1.5,1.5)
71 \psline[linecolor=red,linewidth=.05cm](3,1.5) \psline[linecolor=red,linewidth=.05cm](0,1.5)(3,0)
72 \psline[linecolor=red,linewidth=.05cm](0,.75)(3,.75) \psline[linecolor=red,linewidth=.05cm](1.5,0)(1.5,1.5) \end{pspicture*}
73
74 \psset{unit=1cm,fillstyle=solid,linewidth=1pt}}
75
76 \newcommand{\maboite}[1]{\begin{center} \psframebox[fillcolor=yellow,fillstyle=solid]{ \parbox{.5\linewidth} {\centering #1}} \end{center}}
77
78 \newcommand{\mydessin}[1]{%
79 \begin{pspicture}(-5,-3)(5,5)
80 \psset{unit=.5cm}
81 \psset{solidmemory}
82 \psset{viewpoint=50 #1 20 rtp2xyz, Decran=50}
83 \psSolid[object=cylindrecreux,h=10,r=2,fillcolor=white,mode=4,name=A1,action=none,incolor=green!50,SphericalCoor,viewpoint=50 30 20](0,0,-3)%
84 %
85 \psSolid[object=conecreux,h=15,r=2,RotY=-60,fillcolor=white,incolor=red!50,action=none,mode=5,name=B1,SphericalCoor,viewpoint=50 30 20](4,0,0)%
86 \psSolid[object=fusion,action=draw**,base=A1 B1,SphericalCoor,](0,0,0)%
87 \composeSolid%
88 \end{pspicture}}
89
90 \newcommand{\essais}[1]{}
91
92 \newcommand{\MonMotif}{%
93 \begin{pspicture}(1,.5)
94 \psframe[dimen=middle,fillcolor=yellow,fillstyle=solid,linecolor=blue](1,.5)
95 \pscircle[dimen=middle,fillcolor=magenta,fillstyle=solid,linecolor=magenta](.5,.25){.1}
96 \end{pspicture}}
97
98
99
100
101
102
103 \newcommand{\xx}{\unskip\kern.05em:}