summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/pstricks-examples-en/08-02-8.ltx
blob: 588c83cd0d90512ed2a3319a4e1392434a50c2f1 (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
%% 
%%  A DANTE-Edition example
%% 
%%  Example 08-02-8 on page 101.
%% 
%%  Copyright (C) 2011 Herbert Voss
%% 
%%  It may be distributed and/or modified under the conditions
%%  of the LaTeX Project Public License, either version 1.3
%%  of this license or (at your option) any later version.
%% 
%%  See http://www.latex-project.org/lppl.txt for details.
%% 
%% 
%% ==== 
% Show page(s) 1
%% 
\documentclass[]{article}
\pagestyle{empty}
\setlength\textwidth{201.70511pt}

\usepackage{pstricks-add,booktabs,ragged2e}
\usepackage[utf8]{inputenc}

\begin{document}
\def\CMD#1{\texttt{\small\textbackslash#1}}
\def\Lkeyword#1{\texttt{\small#1}}
\psset{arrowscale=1.8,linecolor=red,unit=1cm,linewidth=0.75pt}
\begin{tabular}{@{} p{3cm}  p{7.5cm} @{}}\toprule
\emph{name} & \emph{example}\\\midrule
\Lkeyword{ArrowInside}\newline
\psline[ArrowInside=->](0,0.1)(2,0.1)
 &  \CMD{psline[ArrowInside=->](0,0)(2,0)}\tabularnewline
%
\Lkeyword{ArrowInsidePos} \newline
\psline[ArrowInside=->, ArrowInsidePos=0.25](0,0.1)(2,0.1)
&  \CMD{psline[ArrowInside=->,}\newline
	\hspace*{2em}\texttt{ArrowInsidePos=0.25](0,0)(2,0)}\tabularnewline
%
\Lkeyword{ArrowInsidePos} \newline
\psline[ArrowInside=->, ArrowInsidePos=10](0,0.1)(2,0.1)
&  \CMD{psline[ArrowInside=->,}\newline
	\hspace*{2em}\texttt{ArrowInsidePos=10](0,0)(2,0)}\tabularnewline
%
\Lkeyword{ArrowInsideNo} \newline
\psline[ArrowInside=->, ArrowInsideNo=2](0,0.1)(2,0.1)
&  \CMD{psline[ArrowInside=->,}\newline
	\hspace*{2em}\texttt{ArrowInsideNo=2](0,0)(2,0)}\tabularnewline
%
\Lkeyword{ArrowInsideOffset} \newline
\psline[ArrowInside=->, ArrowInsideNo=2,ArrowInsideOffset=0.1](0,0.1)(2,0.1)
&  \CMD{psline[ArrowInside=->,}\newline
    \hspace*{2em}\texttt{ArrowInsideNo=2,}\newline
    \hspace*{2em}\texttt{ArrowInsideOffset=0.1](0,0)(2,0)}\tabularnewline
%
\Lkeyword{ArrowInside} \newline
\psline[ArrowInside=->]{->}(0,0)(2,0)
&  \CMD{psline[ArrowInside=->]\{->\}(0,0)(2,0)}\tabularnewline
%
\Lkeyword{ArrowInsidePos} \newline
\psline[ArrowInside=->, ArrowInsidePos=0.25]{->}(0,0)(2,0)
&  \CMD{psline[ArrowInside=->,}\newline
	\hspace*{2em}\texttt{ArrowInsidePos=0.25]\{->\}(0,0)(2,0)}\tabularnewline
%
\Lkeyword{ArrowInsidePos} \newline
\psline[ArrowInside=->, ArrowInsidePos=10]{->}(0,0)(2,0)
&  \CMD{psline[ArrowInside=->,}\newline
	\hspace*{2em}\texttt{ArrowInsidePos=10]\{->\}(0,0)(2,0)}\tabularnewline
%
\Lkeyword{ArrowInsideNo} \newline
\psline[ArrowInside=->, ArrowInsideNo=2]{->}(0,0)(2,0)
&  \CMD{psline[ArrowInside=->,}\newline
	\hspace*{2em}\texttt{ArrowInsideNo=2]\{->\}(0,0)(2,0)}\tabularnewline
%
\Lkeyword{ArrowInsideOffset} \newline
\psline[ArrowInside=->, ArrowInsideNo=2,ArrowInsideOffset=0.1]{->}(0,0)(2,0) %
& \CMD{psline[ArrowInside=->,ArrowInsideNo=2,}\newline
	\hspace*{2em}\texttt{ArrowInsideOffset=0.1]\{->\}(0,0)(2,0)}\tabularnewline
%
\Lkeyword{ArrowFill} \newline
\psline[arrowscale=3,ArrowFill=false]{<->>}(0,0)(2,0) %
& \CMD{psline[arrowscale=3,}\newline
	\hspace*{2em}\texttt{ArrowFill=false]\{<->\/>\}(0,0)(2,0)}\\\bottomrule
\end{tabular}
\end{document}