| 1 |
\SbSSCT{Dans le texte}{In the text} |
| 2 |
|
| 3 |
\psset{fillcolor=yellow,fillstyle=none,linecolor=blue} |
| 4 |
|
| 5 |
\bigskip |
| 6 |
\TFRGB{dessin directement dans le texte}{picture in the text} \psline[linecolor=red](0,0)(4,4) \psline[linecolor=blue](0,0)(4,2) \pscircle[linecolor=green]{2} \TFRGB{ici est inclus le code suivant}{here is the following code} : \BS{}psline[linecolor=red](0,0)(4,4) \BS{}psline[linecolor=blue](0,0)(4,2) \BS{}pscircle[linecolor=green]\AC{2} |
| 7 |
|
| 8 |
% les lignes sont tracées ici .\psline[linecolor=red](0,0)(4,4) \psline[linecolor=blue](0,0)(4,2) |
| 9 |
|
| 10 |
\bigskip |
| 11 |
\TFRGB{Le dessin se superpose au texte , Il n'a pas de dimension !}{ |
| 12 |
The drawing is superimposed on the text, it has no dimension!} |
| 13 |
|
| 14 |
%---------------------------------------------------------- |
| 15 |
\SbSSCT{Dans un environnement pspicture}{In a pspicture environment} |
| 16 |
|
| 17 |
\begin{tabular}{|l|l|} |
| 18 |
\hline |
| 19 |
\multicolumn{2}{|c|}{2 syntaxes}\\ \hline |
| 20 |
\BSS{pspicture}(4,4) |
| 21 |
& |
| 22 |
\BSS{begin\AC{pspicture}}(4,4) |
| 23 |
\\ |
| 24 |
\BS{}psframe(4,4) |
| 25 |
& |
| 26 |
\BS{}psframe(4,4) |
| 27 |
\\ |
| 28 |
\BS{}pscircle[linecolor=red](2,2)\AC{1cm} |
| 29 |
& |
| 30 |
\BS{}pscircle[linecolor=red](2,2)\AC{1cm} |
| 31 |
\\ |
| 32 |
\BSS{endpspicture} |
| 33 |
& |
| 34 |
\BSS{end\AC{pspicture}} |
| 35 |
\\ |
| 36 |
\hline |
| 37 |
|
| 38 |
\TFRGB{texte avant}{text before} |
| 39 |
\pspicture(4,4) |
| 40 |
\psframe(4,4) |
| 41 |
\pscircle[linecolor=red](2,2){1cm} |
| 42 |
\endpspicture |
| 43 |
\TFRGB{texte après}{text after} |
| 44 |
|
| 45 |
& |
| 46 |
\begin{pspicture}(4,4) |
| 47 |
\TFRGB{texte avant}{text before} |
| 48 |
\psframe(4,4) |
| 49 |
\pscircle[linecolor=red](2,2){1cm} |
| 50 |
\end{pspicture} |
| 51 |
\TFRGB{texte après}{text after} |
| 52 |
\\ \hline |
| 53 |
\end{tabular} |
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
\SbSSCT{Coupure de l'image}{Clipping the picture} |
| 60 |
|
| 61 |
\begin{tabular}{|c|p{2cm}|c|} |
| 62 |
\hline |
| 63 |
\BS{}begin\AC{pspicture}(4,4) & &\BS{}begin\AC{pspicture}{\red *}(4,4) \\ |
| 64 |
\BS{}pscircle[linecolor=red](2,2)\AC{2.5} & & \BS{}pscircle[linecolor=red](2,2)\AC{2.5} |
| 65 |
\\ \hline |
| 66 |
|
| 67 |
\begin{pspicture}(4,4) |
| 68 |
\psframe(4,4) |
| 69 |
\pscircle[linecolor=red](2,2){2.5} |
| 70 |
\pscircle[linecolor=green](2,2){2} |
| 71 |
\pscircle[linecolor=blue](2,2){1} |
| 72 |
\end{pspicture} |
| 73 |
& & |
| 74 |
\begin{pspicture}*(4,4) |
| 75 |
\psframe(4,4) |
| 76 |
\pscircle[linecolor=red](2,2){2.5} |
| 77 |
\pscircle[linecolor=green](2,2){2} |
| 78 |
\pscircle[linecolor=blue](2,2){1} |
| 79 |
\end{pspicture} |
| 80 |
\\ \hline |
| 81 |
\end{tabular} |
| 82 |
|
| 83 |
\SbSSCT{Rognage partiel}{Partial clipping} |
| 84 |
|
| 85 |
\begin{tabular}{|c|c|} |
| 86 |
\hline |
| 87 |
\begin{pspicture}*[shift=*](-2,-2)(3,2) %\psgrid |
| 88 |
\psclip {\psdiamond(.5,.5)(2,1)} |
| 89 |
\pscircle[linecolor=red]{.5} |
| 90 |
\pscircle[linecolor=red]{1} |
| 91 |
\endpsclip |
| 92 |
\pscircle[linecolor=green]{1.5} |
| 93 |
\end{pspicture} |
| 94 |
& |
| 95 |
\parbox{8cm}{ |
| 96 |
\BS{}begin\AC{pspicture}*(-2,-2)(3,2) \\ |
| 97 |
\BSS{psclip} {\red \AC{\BS{}psdiamond(.5,.5)(2,1)}} \\ |
| 98 |
\BS{}pscircle[linecolor=red]\AC{.5} \\ |
| 99 |
\BS{}pscircle[linecolor=red]\AC{1} \\ |
| 100 |
\BSS{endpsclip} \\ |
| 101 |
\BS{}pscircle[linecolor=green]\AC{1.5} \\ |
| 102 |
\BS{}end\AC{pspicture}} |
| 103 |
\\ \hline |
| 104 |
\end{tabular} |
| 105 |
|
| 106 |
%--------------------------------------------------------------- |
| 107 |
|
| 108 |
\SbSSCTTC{Positionnement par rapport au texte}{Relative to the text line} %{Relative to the text line \cite{pst-news05} \cite{pst-news08} } |
| 109 |
|
| 110 |
|
| 111 |
\begin{tabular}{|c|c|c|c|} |
| 112 |
\hline |
| 113 |
\multicolumn{4}{|c|}{ \TFRGB{avant}{before} \BS{}begin\AC{pspicture}[\RDD{shift}=*](1,1) \BS{}psframe(1,1) \BS{end\AC{pspicture} \TFRGB{après}{after} }}\\ \hline |
| 114 |
\TFRGB{avant}{before} \begin{pspicture}(1,1) \psframe(1,1) \end{pspicture} \TFRGB{après}{after} |
| 115 |
& |
| 116 |
\TFRGB{avant}{before} \begin{pspicture}[shift=*](1,1) \psframe(1,1) \end{pspicture} \TFRGB{après}{after} |
| 117 |
& |
| 118 |
\TFRGB{avant}{before} \begin{pspicture}[shift=.5cm](1,1) \psframe(1,1) \end{pspicture} \TFRGB{après}{after} |
| 119 |
& |
| 120 |
\TFRGB{avant}{before} \begin{pspicture}[shift=-.75cm](1,1) \psframe(1,1) \end{pspicture} \TFRGB{après}{after} |
| 121 |
\\ |
| 122 |
\hline {\blue \dft{}} & shift=* & shift=.5cm & shift=-.75cm \\ |
| 123 |
\hline |
| 124 |
\end{tabular} |
| 125 |
|