uncomment the next 2 lines if you want a pdf output %\xyoption

uncomment the next 2 lines if you want a pdf output. %\xyoption{ps}. %\xyoption{dvips}. SRC = main.tex. DVI = main.dvi. PS = tutorial.ps all: dvi ps pdf dvi: $(SRC ...
67KB taille 0 téléchargements 107 vues
Makefile SRC = main.tex DVI = main.dvi PS = tutorial.ps all: dvi ps pdf dvi: $(SRC) tex main.tex @rm -f *.log ps: $(DVI) dvips -o $(PS) $(DVI) pdf: $(PS) ps2pdf $(PS) @rm -f *.ps @rm -f *.dvi

skeleton source file \input xy \xyoption{all} % uncomment the next 2 lines if you want a pdf output %\xyoption{ps} %\xyoption{dvips} $$\xymatrix{ entry & entry . . . \\ entry & entry . . . \\ ... }$$

ARROW

u

ul

l

ur

ul

r

l

dl d dr Basic command for the arrows above is:

dl

\ar[ul]

DIRECTION

u

d

ur

ul

r

l

dr

dl

\ar@/^/[ul]

u

ur

r

d

dr

\ar@/_/[ul]

CURVING

1

2

3

4

1 \ar@/^/[r] & 2 \ar@/^1pc/[r] & 3 \ar@/^2pc/[r] & 4

1

2

3

4

1 \ar@/_/[r] & 2 \ar@/_1pc/[r] & 3 \ar@/_2pc/[r] & 4

ARROW STYLES 1 1 1 1

\ar@{-->}[r] & 2 \ar@{|->}[r] & 2 \ar@{}[r] & 2 \ar@{>->}[r] & 2

1 1 1 1

2 2 2 2

1 1 1 1 1

\ar@{-}[r] & 2 \ar@3{|->}[r] & 2 \ar@_{x->}[r] & 2 \ar@{~}[r] & 2 \ar@{{}{x}{}}[r] & 2 1

1 1 1 1 1

2 2 2 2 2

1 1 1 1 1

\ar@{}[r] & 2 \ar@{{*}-{*}}[r] & 2 \ar@{^{(}->}[r] & 2 \ar@{.>>}[r] & 2 \ar@{->>}[r] & 2

1 1• 1 1 1

2 •2

2 2 2

\newdir{ >>}{{}*!/-6pt/@{>>}} \def\rrar{% \ar@{*{\UseTips\dir{ >>}}-*{\UseTips\dir{>}}}}

MORE

+

ARROW

@variant{tail shaft head}: tail and head can be omitted @variant{head} variant{tip} variant{shaft} variant: ^ left _ right

$\xymatrix{ 1 \rrar[r] & 2 \\ 3 & 4 \rrar[l] }$

1

2

3

4

yield

STYLES

2 double

3 triple

Plain shafts (in kernel library) \ar@2{-}[r] \ar@3{.}[r] \ar@{--}[r] \ar@2{~~}[r]

\ar@3{-}[r] \ar@{~}[r] \ar@2{--}[r]

\ar@{.}[r] \ar@2{~}[r] \ar@3{--}[r] \ar@3{~~}[r]

\ar@2{.}[r] \ar@3{~}[r] \ar@{~~}[r]

Plain tips which are heads or tails (in kernel library) \ar@{.>}[r] \ar@3{.>}[r] \ar@2{.}[r] \ar@{.}[r] \ar@2{.>>}[r] \ar@^{.}[r] \ar@3{.>>}[r] \ar@_{.{+} & H

+

E

A

A \ar[r]^(.2){+} & B & C \ar[r]^(.4){+} & D \\ E \ar[r]^}} |>{\SelectTips{eu}{}\object@{>}} & B$

SLIDING

ARROWS SIDEWAYS

@: slide the arrow left sideways by len A

$\xymatrix{ A \ar@[dr]^a_. \\ & B \ar@[ul]^b \ar@[r]^c & C \ar@[l]^d_. }$

a . b

B

c . d

$\xymatrix@1{A \ar@/^/[r] \ar@/^/@[r] & B}$ 5

A

B

C

A

B