Debian Codegraph @

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

raw
1
2 %Syntaxe :
3 %\BSS{psbrace}[Options](A)(B)\AC{\TFRGB{texte}{text}}
4
5 \SbSbSSCT{Dans un environnement pspicture}{Braces in pspicture}
6
7
8 \begin{tabular}{|c|c|} \hline
9 \begin{pspicture}[shift=*](-.5,-0.5)(5,4.5)
10 \psaxes[xticksize=4,yticksize=4,axesstyle=frame](5,4)
11 \pnode(1,1){B}\pnode(3,2){C}
12 \psbrace(B)(C){\TFRGB{texte}{text}}
13 \psbrace(4,3)(1,3){}
14 \psdots[dotstyle=*,linecolor=blue,dotscale=2](B) \nput{45}{B}{B}
15 \psdots[dotstyle=*,linecolor=blue,dotscale=2](C) \nput{45}{C}{C}%
16 \end{pspicture}
17 &
18 \parbox{3.5cm}{
19 \BS{}pnode(1,1)\AC{B} \BS{}pnode(3,2)\AC{C}
20
21 \BSS{psbrace}(B)(C)\AC{\TFRGB{texte}{text}} \BSI{psbrace}{pstricks-add}
22
23 \bigskip
24 \textbf{\BS{psbrace}}(4,3)(1,3)\AC{} }
25 \\ \hline
26 \end{tabular}
27
28 %\begin{center}
29 %
30 %\end{center}
31
32 %\bigskip
33
34
35 % \psbrace[bracePos=0.25,nodesepB=10 pt,rot=90](0,2)(\linewidth,2){\fbox{Text}}
36 \bigskip
37 \begin{tabular}{|c|c|}\hline
38 \multicolumn{2}{|c|}{\TFRGB{Rôle de l'astérisque}{Role of the asterisk} \footnotemark[1] } \\
39 \hline
40 \begin{pspicture}(-.5,-.5)(4,3)
41 \psaxes[xticksize=2.5,yticksize=4,axesstyle=frame](4,2.5)
42 \psbrace[braceWidth=.5cm,fillcolor=yellow](1,1)(3,2){}
43 \end{pspicture} &
44 \begin{pspicture}(-.5,-.5)(4,3)
45 \psaxes[xticksize=2.5,yticksize=5,axesstyle=frame](4,2.5)
46 \psbrace*[braceWidth=.5cm,fillcolor=yellow](1,1)(3,2){}
47 \end{pspicture} \\ \hline
48 \BS{}psbrace(1,1)(3,2)\AC{} &
49 \BS{}psbrace*(1,1)(3,2)\AC{} \\
50 \hline
51 \end{tabular}
52
53 \footnotetext[1]{braceWidth=.5cm,fillcolor=yellow}
54
55 \SbSbSSCT{Dans le texte}{The brace in the text}
56 \TFRGB{le noeud A est ici \pnode(0,0){A} et le noeud B est ici}{the node A is here \pnode(0,0){A} and the node B is here} \pnode(0,0){B} \BS{}psbrace(A)(B)\AC{\TFRGB{texte}{text}}
57 \psbrace(A)(B){\TFRGB{texte}{text}}
58 \smallskip
59
60 {\red \TFRGB{L'accolage n'a pas de dimension}{The brace has no dimension !}}
61
62 \vspace{1cm}
63
64
65 \pnode(0,0){A} \TFRGB{ici, se trouve le noeud}{here is the node} A
66
67 \BS{}vspace\AC{1cm}
68 \vspace{1cm}
69
70 \pnode(0,0){B} \TFRGB{ici, se trouve le noeud}{here is the node} B \BS{}psbrace(A)(B)\AC{}
71 \psbrace[rot=90](A)(B){}
72
73 \vspace{1cm}
74
75
76
77
78 \subsubsection{Options}
79 \begin{tabular}{|c|c|c|}
80 \hline
81 \begin{pspicture}(-.5,-.5)(4.2,2.5)
82 \psaxes[xticksize=2.2,yticksize=4,axesstyle=frame](4,2.2)
83 \pnode(1,1){B}\pnode(3,2){C}
84 \psbrace[braceWidth=5pt](B)(C){\TFRGB{texte}{text}}
85 \end{pspicture}
86 &
87 \begin{pspicture}(-.5,-.5)(4.2,2.5)
88 \psaxes[xticksize=2.2,yticksize=4,axesstyle=frame](4,2.2)
89 \pnode(1,1){B}\pnode(3,2){C}
90 \psbrace[braceWidthInner=.5cm](B)(C){\TFRGB{texte}{text}}
91 \end{pspicture}
92 &
93 \begin{pspicture}(-.5,-.5)(4.2,2.5)
94 \psaxes[xticksize=2.2,yticksize=4,axesstyle=frame](4,2.2)
95 \pnode(1,1){B}\pnode(3,2){C}
96 \psbrace[braceWidthOuter=.5cm](B)(C){\TFRGB{texte}{text}}
97 \end{pspicture}
98 \\ \hline
99 \RDD{braceWidth}=5pt \RDI{braceWidth}{pstricks-add} & \RDD{braceWidthInner}=.5cm \RDI{braceWidthInner}{pstricks-add} &
100 \RDD{braceWidthOuter}=.5cm \RDI{braceWidthOuter}{pstricks-add}
101 \\ \hline
102 {\blue \dft : \BS{pslinewidth}} & {\blue \dft : 10\BS{pslinewidth}} & {\blue \dft : 10\BS{pslinewidth} }
103 \\ \hline
104 \begin{pspicture}(-.5,-.5)(4.2,2.5)
105 \psaxes[xticksize=2.2,yticksize=4,axesstyle=frame](4,2.2)
106 \pnode(1,1){B}\pnode(3,2){C}
107 \psbrace[bracePos=.25](B)(C){\TFRGB{texte}{text}}
108 \end{pspicture}
109 &
110 \begin{pspicture}(-.5,-.5)(4.2,2.5)
111 \psaxes[xticksize=2.2,yticksize=4,axesstyle=frame](4,2.2)
112 \pnode(1,1){B}\pnode(3,2){C}
113 \psbrace[nodesepA=.5cm](B)(C){\TFRGB{texte}{text}}
114 \end{pspicture}
115 &
116 \begin{pspicture}(-.5,-.5)(4.2,2.5)
117 \psaxes[xticksize=2.2,yticksize=4,axesstyle=frame](4,2.2)
118 \pnode(1,1){B}\pnode(3,2){C}
119 \psbrace[nodesepB=.5cm](B)(C){\TFRGB{texte}{text}}
120 \end{pspicture}
121 \\ \hline
122 \RDD{bracePos}=.25 \RDI{bracePos}{pstricks-add} &
123 \RDD{nodesepA}=5pt \RDI{nodesepA}{pstricks-add} & \RDD{nodesepB}=5pt \RDI{nodesepB}{pstricks-add}\\
124 Position (\%) & \TFRGB{décalage horizontal}{horizontal offset} & \TFRGB{décalage vertical}{vertical offset}
125 \\ \hline
126 {\blue \dft : .5} & {\blue\dft : 0pt }& {\blue \dft : 0pt }
127 \\ \hline
128 \begin{pspicture}(-.5,-.5)(4.2,2.5)
129 \psaxes[xticksize=2.2,yticksize=4,axesstyle=frame](4,2.2)
130 \pnode(1,1){B}\pnode(3,2){C}
131 \psbrace[rot=90](B)(C){\TFRGB{texte}{text}}
132 \end{pspicture}
133 &
134 \begin{pspicture}(-.5,-.5)(4.2,2.5)
135 \psaxes[xticksize=2.2,yticksize=4,axesstyle=frame](4,2.2)
136 \pnode(1,1){B}\pnode(3,2){C}
137 \psbrace[rot=90,ref=r](B)(C){\TFRGB{texte}{text}}
138 \end{pspicture}
139 &
140 \begin{pspicture}(-.5,-.5)(4.2,2.5)
141 \psaxes[xticksize=2.2,yticksize=4,axesstyle=frame](4,2.2)
142 \pnode(1,1){B}\pnode(3,2){C}
143 \psbrace[rot=90,ref=l](B)(C){\TFRGB{texte}{text}}
144 \end{pspicture}
145 \\ \hline
146 \RDD{rot}=90 \RDI{rot}{pstricks-add} &
147 rot=90,\RDD{ref} = {\red r} \RDI{ref}{pstricks-add} & rot=90,ref={\red l }
148 \\ \hline
149 \begin{pspicture}(-.5,-.5)(4.2,2.5)
150 \psaxes[xticksize=2.2,yticksize=4,axesstyle=frame](4,2.2)
151 \pnode(1,1){B}\pnode(3,2){C}
152 \psbrace[rot=90,ref=b](B)(C){\TFRGB{texte}{text}}
153 \end{pspicture}
154 &
155 \begin{pspicture}(-.5,-.5)(4.2,2.5)
156 \psaxes[xticksize=2.2,yticksize=4,axesstyle=frame](4,2.2)
157 \pnode(1,1){B}\pnode(3,2){C}
158 \psbrace[rot=90,ref=t](B)(C){\TFRGB{texte}{text}}
159 \end{pspicture}
160 &
161 \begin{pspicture}(-.5,-.5)(4.2,2.5)
162 \psaxes[xticksize=2.2,yticksize=4,axesstyle=frame](4,2.2)
163 \pnode(1,1){B}\pnode(3,2){C}
164 \psbrace[rot=90,ref=C](B)(C){\TFRGB{texte}{text}}
165 \end{pspicture}
166 \\ \hline
167 rot=90,ref={\red b} & rot=90,ref={\red t} & rot=90,ref={\red C}
168 \\ \hline
169 \begin{pspicture}(-.5,-.5)(4.2,2.5)
170 \psaxes[xticksize=2.2,yticksize=4,axesstyle=frame](4,2.2)
171 \pnode(1,1){B}\pnode(3,2){C}
172 \psbrace[rot=90,ref=B](B)(C){\TFRGB{texte}{text}}
173 \end{pspicture}
174 &
175 \begin{pspicture}(-.5,-.5)(4.2,2.5)
176 \psaxes[xticksize=2.2,yticksize=4,axesstyle=frame](4,2.2)
177 \pnode(1,1){B}\pnode(3,2){C}
178 \psbrace[rot=90,ref=lC](B)(C){\TFRGB{texte}{text}}
179 \end{pspicture}
180 &
181 \begin{pspicture}(-.5,-.5)(4.2,2.5)
182 \psaxes[xticksize=2.2,yticksize=4,axesstyle=frame](4,2.2)
183 \pnode(1,1){B}\pnode(3,2){C}
184 \psbrace[fillcolor=green](B)(C){\TFRGB{texte}{text}}
185 \end{pspicture}
186 \\ \hline
187 rot=90,ref={\red B} & rot=90,ref={\red lC}& \RDD{fillcolor}=green \RDI{fillcolor}{pstricks-add}\\ \hline
188 \end{tabular}
189
190 \bigskip