Debian Codegraph @

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

raw
1 \SbSSCT{Texte dans un cadre]}{Text in a frame}
2
3 \begin{tabular}{|c|c|}
4 \hline
5 \begin{pspicture}(-0.2,-0.2)(4.2,1.7)
6 \psTextFrame(0,0)(4,1.5){\TFRGB{texte}{text}}
7 \end{pspicture}
8 &
9 \begin{pspicture}(-0.2,-0.2)(4.2,1.7)
10 \psTextFrame*[linecolor=yellow](0,0)(4,1.5){\TFRGB{texte}{text}}
11 \end{pspicture}
12 \\
13 \hline
14 \BSS{psTextFrame}(0,0)(4,2)\AC{\TFRGB{texte}{text}}
15 &
16 \BS{}psTextFrame{\red *}[linecolor=yellow](0,0)(4,2)\AC{\TFRGB{texte}{text}}
17 \\
18 \hline
19 \end{tabular}
20
21 \SbSbSSCT{Problème de dépassement du cadre}{Problem : text too long for the frame}
22
23 \begin{tabular}{|c|} \hline
24 \BS{psTextFrame}(0,0)(4,1)\AC{\TFRGB{Problème de dépassement du cadre}{Problem : text too long for the frame}}
25 \\ \hline
26 \begin{pspicture}(-.2,-0.2)(4.5,1.2)
27 \psTextFrame(0,0)(4,1){\TFRGB{Problème de dépassement du cadre}{Problem : text too long for the frame}}
28 \end{pspicture}
29 \\ \hline
30 \end{tabular}
31
32
33 \bigskip
34
35 \textbf{Solutions}
36
37 \begin{tabular}{|c|c|} \hline
38 \begin{pspicture}(-.2,-0.2)(4.2,1.2)
39 \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}}}
40 \end{pspicture}
41 &
42 \begin{pspicture}(-.2,-0.2)(4.2,1.2)
43 \psTextFrame(0,0)(4,1){\begin{minipage}[c]{3.5cm}
44 \TFRGB{Problème de dépassement du cadre : problème résolu}{ text too long for the frame : Problem solved} \end{minipage}}
45 \end{pspicture}
46 \\ \hline
47 \parbox{6.5cm}{
48 \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} }}}
49 &
50 \parbox{6.5cm}{ \BS{}psTextFrame(0,0)(4,2)\AC{ {\red \BS{}begin\AC{minipage}[c]\AC{3.5cm}}
51
52 \TFRGB{Problème de dépassement du cadre : problème résolu}{ text too long for the frame : Problem solved}
53 {\red \BS{end\AC{minipage}}}}}
54 \\ \hline
55 \end{tabular}
56
57 \SbSbSSCT{Rotation du texte}{Text rotation in the frame}
58
59 \begin{tabular}{|c|l|}
60 \hline \begin{pspicture}[shift=*](-.2,-0.2)(4.2,2.2)
61 \psTextFrame[rot=90](0,0)(4,2){\TFRGB{texte}{text}}
62 \end{pspicture} &
63 \BS{}psTextFrame[\RDD{rot}=90](0,0.5)(4,2)\AC{\TFRGB{texte}{text}} \\
64 \hline
65 \end{tabular}
66 %
67 \SbSbSSCT{Position du texte}{Position of the text in the frame}
68
69 \begin{tabular}{|c|c|c|c|c|}
70 \hline
71 \multicolumn{5}{|c|}{ \BS{}psTextFrame[\RDD{ref=l}](0,0)(2,2)\AC{\TFRGB{texte}{text}}} \\
72 \hline
73 \begin{pspicture}(-.2,-0.2)(2.2,2.2)
74 \psTextFrame[ref=l](0,0)(2,2){\TFRGB{texte}{text}}
75 \end{pspicture}
76 &
77 \begin{pspicture}(-.2,-0.2)(2.2,2.2)
78 \psTextFrame[ref=r](0,0)(2,2){\TFRGB{texte}{text}}
79 \end{pspicture}
80 &
81 \begin{pspicture}(-.2,-0.2)(2.2,2.2)
82 \psTextFrame[ref=t](0,0)(2,2){\TFRGB{texte}{text}}
83 \end{pspicture}
84 &
85 \begin{pspicture}(-.2,-0.2)(2.2,2.2)
86 \psTextFrame[ref=b](0,0)(2,2){\TFRGB{texte}{text}}
87 \end{pspicture}
88 &
89 \begin{pspicture}(-.2,-0.2)(2.2,2.2)
90 \psTextFrame[ref=B](0,0)(2,2){\TFRGB{texte}{text}}
91 \end{pspicture}
92 \\
93 \hline ref=l & ref=r & ref=t & ref=b & ref=B \\
94 \hline
95 \end{tabular}
96 \smallskip
97