summaryrefslogtreecommitdiff
path: root/info/visualpstricks/Source/cadre.tex
blob: 4ad1706f61a09b01ce967478528a5b8910ef90d8 (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
\SbSSCT{Texte dans un cadre]}{Text in a frame} 

\begin{tabular}{|c|c|}
\hline 
\begin{pspicture}(-0.2,-0.2)(4.2,1.7)
\psTextFrame(0,0)(4,1.5){\TFRGB{texte}{text}}
\end{pspicture}
&  
\begin{pspicture}(-0.2,-0.2)(4.2,1.7)
\psTextFrame*[linecolor=yellow](0,0)(4,1.5){\TFRGB{texte}{text}}
\end{pspicture}  
\\ 
\hline  
\BSS{psTextFrame}(0,0)(4,2)\AC{\TFRGB{texte}{text}}
&
\BS{}psTextFrame{\red *}[linecolor=yellow](0,0)(4,2)\AC{\TFRGB{texte}{text}}
\\ 
\hline 
\end{tabular} 

\SbSbSSCT{Problème de dépassement du cadre}{Problem : text too long for the frame}
 
 \begin{tabular}{|c|} \hline  
 \BS{psTextFrame}(0,0)(4,1)\AC{\TFRGB{Problème de dépassement du cadre}{Problem : text too long for the frame}}
\\ \hline
\begin{pspicture}(-.2,-0.2)(4.5,1.2)
\psTextFrame(0,0)(4,1){\TFRGB{Problème de dépassement du cadre}{Problem : text too long for the frame}}
\end{pspicture}
\\  \hline 
 \end{tabular} 


\bigskip

\textbf{Solutions}

\begin{tabular}{|c|c|} \hline 
  \begin{pspicture}(-.2,-0.2)(4.2,1.2)
 \psTextFrame(0,0)(4,1){\parbox{3.5cm}{\TFRGB{Problème de dépassement du cadre : problème résolu}{ text too long for the frame : Problem solved}}}
 \end{pspicture}
&
  \begin{pspicture}(-.2,-0.2)(4.2,1.2)
  \psTextFrame(0,0)(4,1){\begin{minipage}[c]{3.5cm}
 \TFRGB{Problème de dépassement du cadre : problème résolu}{ text too long for the frame : Problem solved} \end{minipage}}
  \end{pspicture}
\\ \hline  
\parbox{6.5cm}{ 
\BS{psTextFrame}(0,0)(4,2)\AC{ {\red\BS{parbox}}\AC{3.5cm}\AC{\TFRGB{Problème de dépassement du cadre : problème résolu}{ text too long for the frame : Problem solved}  }}}
&
\parbox{6.5cm}{ \BS{}psTextFrame(0,0)(4,2)\AC{  {\red \BS{}begin\AC{minipage}[c]\AC{3.5cm}}

\TFRGB{Problème de dépassement du cadre : problème résolu}{ text too long for the frame : Problem solved}
 {\red  \BS{end\AC{minipage}}}}}
\\ \hline 
\end{tabular} 

\SbSbSSCT{Rotation du texte}{Text rotation in the frame}

\begin{tabular}{|c|l|}
\hline  \begin{pspicture}[shift=*](-.2,-0.2)(4.2,2.2)
 \psTextFrame[rot=90](0,0)(4,2){\TFRGB{texte}{text}}
 \end{pspicture} & 
 \BS{}psTextFrame[\RDD{rot}=90](0,0.5)(4,2)\AC{\TFRGB{texte}{text}} \\ 
\hline 
\end{tabular}  
%
 \SbSbSSCT{Position du texte}{Position of the text in the frame}

 \begin{tabular}{|c|c|c|c|c|}
 \hline
 \multicolumn{5}{|c|}{ \BS{}psTextFrame[\RDD{ref=l}](0,0)(2,2)\AC{\TFRGB{texte}{text}}} \\
 \hline  
\begin{pspicture}(-.2,-0.2)(2.2,2.2)
\psTextFrame[ref=l](0,0)(2,2){\TFRGB{texte}{text}}
\end{pspicture} 
& 
\begin{pspicture}(-.2,-0.2)(2.2,2.2)
\psTextFrame[ref=r](0,0)(2,2){\TFRGB{texte}{text}}
\end{pspicture}   
&
\begin{pspicture}(-.2,-0.2)(2.2,2.2)
\psTextFrame[ref=t](0,0)(2,2){\TFRGB{texte}{text}}
\end{pspicture}
&
\begin{pspicture}(-.2,-0.2)(2.2,2.2)
 \psTextFrame[ref=b](0,0)(2,2){\TFRGB{texte}{text}}
 \end{pspicture}
&
\begin{pspicture}(-.2,-0.2)(2.2,2.2)
\psTextFrame[ref=B](0,0)(2,2){\TFRGB{texte}{text}}
\end{pspicture}
  \\ 
 \hline ref=l & ref=r  & ref=t  & ref=b & ref=B \\ 
 \hline 
 \end{tabular} 
\smallskip