summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/visualpstricks/Source/plac.tex
blob: 4e43eca2cf22aabb1be74dec2450e6ede1073e4c (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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
%======================================================================

\SbSSCT{Commande rput}{Macro rput}


\psset{fillcolor=yellow,fillstyle=solid,linecolor=blue}


\TFRGB{syntaxe : \BS{rput}*[point de référence]\AC{rotation}(coordonnées)\AC{contenu}}{syntax : \BS{rput}*[reference point]\AC{rotation}(coordinates)\AC{contents}}

\bigskip



\SbSbSSCTTC{Rôle de l'astérisque}{Rôle de l'astérisque \protect \footnote{La couleur de fond est en jaune et le point de référence en bleu}}{Role of the asterisk}{Role of the asterisk  \protect \footnote{Fillcolor=yellow and Reference point = blue disk}}

\begin{tabular}{|p{3cm}|p{3cm}|}\hline
\rput(1,0){objet}  &  \rput*(1,0){objet}  \\
\textbf{\BS{}rput}(1,0)\AC{objet} & \textbf{\BS{}rput*}(1,0)\AC{objet} \\ \hline
\end{tabular}
%-------------------------------------

\SbSbSSCT{Point de référence }{Reference point} % \protect \footnote{La couleur de fond est en jaune et le point de référence en bleu} 


\begin{tabular}{|c|l|p{3cm}|c|}

\hline \multicolumn{4}{|c|}{Horizontal}   								\\ \hline
 
\rule[-.35cm]{0mm}{.7cm} l	& \TFRGB{à gauche}{left}		
&  \rput*[l](1,0){objet}\qdisk(1,0){3pt} 			
&  \BS{rput*}[{\red l}](1,0)\AC{objet}\BS{qdisk}(1,0)\AC{3pt} \\ \hline

\rule[-.35cm]{0mm}{.7cm} r 	& \TFRGB{à droite}{right}		
&   \rput*[r](1,0){objet}\qdisk(1,0){3pt}				
& \BS{rput*}[{\red r}](1,0)\AC{objet}\BS{qdisk}(1,0)\AC{3pt}  \\  \hline
 \multicolumn{4}{|c|}{vertical}   								\\ \hline

\rule[-.5cm]{0mm}{.7cm} t	
& \TFRGB{en haut}{top}		
&  \rput*[t](1,0){objet}	\qdisk(1,0){3pt}		
& \BS{rput*}[{\red t}](1,0)\AC{objet}\BS{qdisk}(1,0)\AC{3pt}  \\ \hline


\rule[-.2cm]{0mm}{.7cm }b 	& \TFRGB{en bas}{bottom}		
&  \rput*[b ](1,0){objet}	 \qdisk(1,0){3pt}		&
\BS{rput*} [{\red b}](1,0)\AC{objet}\BS{qdisk}(1,0)\AC{3pt}  \\ \hline


\rule[-.25cm]{0mm}{.7cm} B 	& \TFRGB{sur la ligne d'écriture}{baseline}		& \rput*[B](1,0){objet}	 \qdisk(1,0){3pt} 			& \BS{rput*}[{\red B]}(1,0)\AC{objet}\BS{qdisk}(1,0)\AC{3pt} \\ \hline

 \multicolumn{4}{|c|}{horizontal \TFRGB{et}{and} vertical}   								\\ \hline

\rule[-.5cm]{0mm}{.7cm} rt	
& \TFRGB{à droite et en haut}{right and top}		
& \rput*[rt](1,0){objet}	\qdisk(1,0){3pt} 
& \BS{rput}*[{\red rt}](1,0)\AC{objet}\BS{qdisk}(1,0)\AC{3pt}  \\  \hline 
 \end{tabular} 

%------------------------------------------------------

\SbSbSSCT{Angle de rotation de l'objet}{Rotation angle of the object}


\begin{tabular}{|p{2cm}|p{2cm}|p{2cm}|p{2cm}|p{2cm}|p{2cm}|p{2cm}|}\hline
   \BS{rput*}[t]\AC{45} 
&  \BS{rput*}[t]\AC{90} 
&  \BS{rput*}[b]\AC{90}
&  \BS{rput*}[B]\AC{90} 
&  \BS{rput*}[l]\AC{90}
&  \BS{rput*}[r]\AC{90}  \\ 
\hline \rule[-1cm]{0mm}{2cm}  
\rput*[t]{45}(1,0){objet}\qdisk(1,0){3pt} & 
\rput*[t]{90}(1,0){objet}\qdisk(1,0){3pt} & 
\rput*[b]{90}(1,0){objet}\qdisk(1,0){3pt} & 
\rput*[B]{90}(1,0){objet}\qdisk(1,0){3pt} & 
\rput*[l]{90}(1,0){objet}\qdisk(1,0){3pt} & 
\rput*[r]{90}(1,0){objet}\qdisk(1,0){3pt}  \\ 
\hline 
\end{tabular} 
%
%----------------------------------------------------------

\SbSbSSCT{Angles de rotation  en points cardinaux}{Rotation angle in cardinal points}

\begin{tabular}{|p{2cm}|p{2cm}|p{2cm}|p{2cm}|p{2cm}|p{2cm}|p{2cm}|}
\hline  \TFRGB{haut}{top} 	&  \TFRGB{haut}{top}  	&  \TFRGB{haut}{top}  	& \TFRGB{haut}{top}   & \TFRGB{gauche}{left}   &  \TFRGB{droite}{right}  \\
\TFRGB{ et Est}{and east} 		& \TFRGB{ et Ouest}{and west} & \TFRGB{et Nord}{and north}  & \TFRGB{ et Sud}{and south} & \TFRGB{ et Est}{and east}  & \TFRGB{ et Est}{and east}  \\
\hline  
   \BS{}rput*[t]\AC{E} 
&  \BS{}rput*[t]\AC{W} 
& \BS{}rput*[t]\AC{N}  
&  \BS{}rput*[t]\AC{S}   
&  \BS{}rput*[l]\AC{W}  
&  \BS{}rput*[r]\AC{W}  \\ 
\hline \rule[-1cm]{0mm}{2cm}  \rput*[t]{E}(1,0){objet}\qdisk(1,0){3pt} & \rput*[t]{W}(1,0){objet}\qdisk(1,0){3pt} & \rput*[t]{N}(1,0){objet}\qdisk(1,0){3pt} & \rput*[t]{S}(1,0){objet}\qdisk(1,0){3pt} & \rput*[l]{W}(1,0){objet}\qdisk(1,0){3pt} & \rput*[r]{W}(1,0){objet}\qdisk(1,0){3pt}  \\ 
\hline 
\end{tabular} 



\newpage
%%---------------------------------------------------------------

\SbSSCT{Commande uput}{Macro uput}
\psset{fillcolor=yellow,fillstyle=solid,linecolor=blue}


\TFRGB{ syntaxe :\BSS{uput}*\AC{écartement}[point de référence]\AC{rotation}(coordonnées)\AC{contenu} }{syntax  : \BSS{uput}*\AC{spacing}[Reference point]\AC{rotation}(coordinates)\AC{content}}
\smallskip



\SbSbSSCTTC{Rôle de l'astérisque}{Rôle de l'astérisque \protect \footnote{La couleur de fond est en jaune et le point de référence en bleu}}{Role of the asterisk}{Role of the asterisk  \protect \footnote{Fillcolor=yellow and Reference point = blue disk}}

\begin{tabular}{|p{3cm}|p{3cm}|}\hline
 \uput[r](1,0){objet} &  \uput*[r](1,0){objet}  \\ \hline
\textbf{\BS{}uput}(1,0)\AC{objet} & \textbf{\BS{}uput*}(1,0)\AC{objet} \\ \hline
\end{tabular}
 
\SbSbSSCT{Point de référence  : angle}{Reference point : angle}

\begin{center}
\begin{tabular}{|c|p{3cm}|c|} \hline

 \rule[-1cm]{0mm}{2cm} à 45°	&  \uput*[45](1,0){objet}\qdisk(1,0){3pt} 			&  \BS{uput*}[{\red 45}](1,0)\AC{objet}\BS{qdisk}(1,0)\AC{3pt}\\ \hline

 \rule[-1cm]{0mm}{2cm} à 90° 			&   \uput*[90](1,0){objet}\qdisk(1,0){3pt}				& \BS{uput*}[{\red 90}](1,0)\AC{objet}\BS{qdisk}(1,0)\AC{3pt}\\  \hline

 \rule[-1cm]{0mm}{2cm} à 120°		&  \uput*[120](1,0){objet}	\qdisk(1,0){3pt}		& \BS{uput*}[{\red 120}](1,0)\AC{objet}\BS{qdisk}(1,0)\AC{3pt} \\ \hline
 \end{tabular} 
 \end{center}

\bigskip
%%-----------------------------------------------------------------

\SbSbSSCT{Point de référence  : points cardinaux }{Reference point : letter} 

\begin{tabular}{|p{2cm}|p{2cm}|p{2cm}|p{2cm}|p{2cm}|p{2cm}|p{2cm}|}
\hline 
  \BS{uput*}[{\red u}] 
&  \BS{uput*}[{\red r}]
&  \BS{uput*}[{\red d}]
& \BS{uput*}[{\red l}]   
& \BS{uput*}[{\red ul}]  
&  \BS{uput*}[{\red ur}]  \\ 
\hline  \rule[-1cm]{0mm}{2cm} 
  \uput*[u](1,0){objet}\qdisk(1,0){3pt} 
& \uput*[r](1,0){objet}\qdisk(1,0){3pt} 
& \uput*[d](1,0){objet}\qdisk(1,0){3pt} 
& \uput*[l](1,0){objet}\qdisk(1,0){3pt} 
& \uput*[ul](1,0){objet}\qdisk(1,0){3pt} 
& \uput*[ur](1,0){objet}\qdisk(1,0){3pt}  \\ \hline 
\end{tabular} 



\bigskip
\SbSbSSCT{Angle de rotation de l'objet}{Rotation angle of the object} 


\begin{tabular}{|p{2cm}|p{2cm}|p{2cm}|p{2cm}|p{2cm}|p{2cm}|p{2cm}|}
\hline  
  \BS{uput*}[{\red u}]\AC{{\red 45}} 
& \BS{uput*}[{\red u}]\AC{{\red 90}}
& \BS{uput*}[{\red d}]\AC{{\red 90}}
& \BS{uput*}[{\red l}]\AC{{\red 90}}
& \BS{uput*}[{\red r}]\AC{{\red 90}}  
& \BS{uput*}[{\red ur}]\AC{{\red 90}}  \\ \hline  
\rule[-1.5cm]{0mm}{3cm} 
\uput*[u]{45}(1,0){objet}\qdisk(1,0){3pt} 
& \uput*[u]{90}(1,0){objet}\qdisk(1,0){3pt} 
& \uput*[d]{90}(1,0){objet}\qdisk(1,0){3pt} 
& \uput*[l]{90}(1,0){objet}\qdisk(1,0){3pt} 
& \uput*[r]{90}(1,0){objet}\qdisk(1,0){3pt} 
& \uput*[ur]{90}(1,0){objet}\qdisk(1,0){3pt}  \\ \hline 
\end{tabular} 
%

 
\bigskip
\SbSbSSCT{\'Ecartement de l'objet par rapport au point de référence}{Spacing between object and reference point}

\dft: \RDD{labelsep}= 0.5 pt 
\bigskip

\TFRGB{Exemple}{E\emph{}xample} : 

\begin{tabular}{ll}
\BS{}psset\AC{\red labelsep=1cm } &  \% \TFRGB{nouveau écartement par défaut}{new default spacing} \\ 
\BS{}uput(1,0)\{ à 1cm \}& \%  \TFRGB{utilisation  nouveau écartement par défaut}{use of the new default spacing} \\ 
\BS{}uput {\red \AC{3cm}}(1,0)\AC{à 3cm} & \% \TFRGB{écartement spécifié à 3 cm}{spacing = 3cm}  \\ 
\BS{}uput{\red \AC{3cm}[-30]}(1,0)\AC{à 3cm et à -30°} & \% \TFRGB{écartement spécifié à 3  et à un angle de -30°}{spacing = 3cm angle= -30°} \\  
\BS{}qdisk(1,0)\AC{3pt}  & \%\TFRGB{ point de référence}{Reference point} \\ 
 
\end{tabular} 
\bigskip


{\blue

\psset{labelsep=1cm} 
\uput[0](1,0){ à 1cm }      \uput{3cm}[0](1,0){ à 3cm}  \uput{3cm}[-30](1,0){ à 3cm et à -30°}\qdisk(1,0){3pt}  }

\vspace{2cm}


\SbSSCT{Commande psrotate}{Macro psrotate}
\label{rot}
\psset{fillstyle=none                                                        }
\begin{tabular}{|c|}\hline  
\BSS{psrotate}(2,1)\AC{45}\AC{\BS{psline}(0, 1)(1, 2)(2, 2)(3, 4)}  \BSI{psrotate}{pstricks-add} 
\\ \hline  
\begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm} 
\psline[linestyle=dotted](0, 1)(1, 2)(2, 2)(3, 4)
\psrotate(2,2){45}{\psline(0, 1)(1, 2)(2, 2)(3, 4)}
\qdisk(2,2){3pt}

 \end{psgraph}
\\ 
\hline 
\end{tabular}