summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/visualpstricks/Source/styl.tex
blob: 35ffca4f8d0ea7b01f6a07d50276194c48942b85 (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

\TFRGB{syntaxe : \BSS{newpsstyle}\AC{nom}\AC{paramètres}}{syntax : \BSS{newpsstyle}\AC{name}\AC{parameters}}
\bigskip


\TFRGB{Exemple}{Example} :

 \emph{\TFRGB{Définition du nouveau style}{Definition of the new style}} :

\textbf{\BS{}newpsstyle}\AC{{\red mafleche}}\AC{arrowsize=4pt 6,arrowlength=2,doubleline=true,linewidth=1pt}

\newpsstyle{mafleche}{arrowsize=4pt 6,arrowlength=2,doubleline=true,linewidth=1pt} 
%
\bigskip

 \emph{\TFRGB{Utilisation  du nouveau style}{Using the new style} }:
%
\BS{}psline[{\red style=mafleche}]\AC{->}(0,0)(3,0) \hspace{1cm} 
\begin{pspicture}(4,.5)
\psline[style=mafleche]{->}(0,0)(4,0)
\end{pspicture}

\bigskip

\bigskip
\textbf{\TFRGB{Ajout ou modification d'un paramètre du style}{Adding or changing a parameter style \cite{pst-news08}}}

\bigskip
\addtopsstyle{mafleche}{linecolor=red}
\BSS{addtopsstyle}\AC{mafleche}\AC{linecolor=red}
\begin{pspicture}(4,.5)
\psline[style=mafleche]{->}(0,0)(4,0)
\end{pspicture}

\bigskip
\addtopsstyle{mafleche}{linestyle=dashed}
\BS{}addtopsstyle\AC{mafleche}\AC{linestyle=dashed}
\begin{pspicture}(4,.5)
\psline[style=mafleche]{->}(0,0)(4,0)
\end{pspicture}