| 1 |
|
| 2 |
\TFRGB{syntaxe : \BSS{newpsstyle}\AC{nom}\AC{paramètres}}{syntax : \BSS{newpsstyle}\AC{name}\AC{parameters}} |
| 3 |
\bigskip |
| 4 |
|
| 5 |
|
| 6 |
\TFRGB{Exemple}{Example} : |
| 7 |
|
| 8 |
\emph{\TFRGB{Définition du nouveau style}{Definition of the new style}} : |
| 9 |
|
| 10 |
\textbf{\BS{}newpsstyle}\AC{{\red mafleche}}\AC{arrowsize=4pt 6,arrowlength=2,doubleline=true,linewidth=1pt} |
| 11 |
|
| 12 |
\newpsstyle{mafleche}{arrowsize=4pt 6,arrowlength=2,doubleline=true,linewidth=1pt} |
| 13 |
% |
| 14 |
\bigskip |
| 15 |
|
| 16 |
\emph{\TFRGB{Utilisation du nouveau style}{Using the new style} }: |
| 17 |
% |
| 18 |
\BS{}psline[{\red style=mafleche}]\AC{->}(0,0)(3,0) \hspace{1cm} |
| 19 |
\begin{pspicture}(4,.5) |
| 20 |
\psline[style=mafleche]{->}(0,0)(4,0) |
| 21 |
\end{pspicture} |
| 22 |
|
| 23 |
\bigskip |
| 24 |
|
| 25 |
\bigskip |
| 26 |
\textbf{\TFRGB{Ajout ou modification d'un paramètre du style}{Adding or changing a parameter style \cite{pst-news08}}} |
| 27 |
|
| 28 |
\bigskip |
| 29 |
\addtopsstyle{mafleche}{linecolor=red} |
| 30 |
\BSS{addtopsstyle}\AC{mafleche}\AC{linecolor=red} |
| 31 |
\begin{pspicture}(4,.5) |
| 32 |
\psline[style=mafleche]{->}(0,0)(4,0) |
| 33 |
\end{pspicture} |
| 34 |
|
| 35 |
\bigskip |
| 36 |
\addtopsstyle{mafleche}{linestyle=dashed} |
| 37 |
\BS{}addtopsstyle\AC{mafleche}\AC{linestyle=dashed} |
| 38 |
\begin{pspicture}(4,.5) |
| 39 |
\psline[style=mafleche]{->}(0,0)(4,0) |
| 40 |
\end{pspicture} |