X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Fexamples%2Fxypic.lyx;h=121ef160e2b22b5007ca1ecb0a8f972c22aa240c;hb=3c93d5078918f43af76827d2991ed5fa35a3a20e;hp=3d9e6249a48dbde55acc1f84bc72b9528b5fdb5b;hpb=1a63ca7ca0464cff837ff69553315e6fe584bce3;p=lyx.git diff --git a/lib/examples/xypic.lyx b/lib/examples/xypic.lyx index 3d9e6249a4..121ef160e2 100644 --- a/lib/examples/xypic.lyx +++ b/lib/examples/xypic.lyx @@ -1,12 +1,11 @@ -#LyX 1.6.5svn created this file. For more info see http://www.lyx.org/ -\lyxformat 345 +#LyX 2.0 created this file. For more info see http://www.lyx.org/ +\lyxformat 413 \begin_document \begin_header \textclass scrartcl \begin_preamble \usepackage[all]{xy} - % define new commands used in sec. 5.1 \newcommand{\xyR}[1]{ \xydef@\xymatrixrowsep@{#1}} @@ -28,18 +27,26 @@ \end_preamble \options BCOR7.5mm \use_default_options false +\maintain_unincluded_children false \language english +\language_package default \inputencoding auto +\fontencoding global \font_roman ae \font_sans default \font_typewriter default \font_default_family default +\use_non_tex_fonts false \font_sc false \font_osf false \font_sf_scale 100 \font_tt_scale 100 \graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default \paperfontsize 12 \spacing single \use_hyperref true @@ -61,22 +68,31 @@ \use_geometry false \use_amsmath 1 \use_esint 0 +\use_mhchem 1 +\use_mathdots 1 \cite_engine basic \use_bibtopic false +\use_indices false \paperorientation portrait +\suppress_date false +\use_refstyle 0 +\index Index +\shortcut idx +\color #008000 +\end_index \secnumdepth 3 \tocdepth 3 \paragraph_separation indent -\defskip medskip +\paragraph_indentation default \quotes_language english \papercolumns 1 \papersides 2 \paperpagestyle default \tracking_changes false \output_changes false -\author "" -\author "" -\author "" +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict true \end_header \begin_body @@ -194,7 +210,7 @@ xypic \align center \begin_inset Graphics filename xyfigure.png - scale 50 + width 75col% BoundingBox 0bp 0bp 580bp 440bp clip @@ -643,7 +659,8 @@ xymatrix{ \begin_layout Standard \begin_inset Formula $\xymatrix{U\ar@/_{1pc}/[ddr]_{\psi}\ar@/{}^{1pc}/[drr]^{\varphi}\ar@{.>}[dr]|-{(x,y)}\\ & X\times_{Z}Y\ar[d]^{q}\ar[r]_{p} & X\ar[d]_{f}\\ - & Y\ar[r]^{g} & Z} + & Y\ar[r]^{g} & Z +} $ \end_inset @@ -853,8 +870,8 @@ ar[r] & Z } \begin_layout Standard \begin_inset Formula \xymatrix{ U \ar[ddr] \ar[drr] \ar[dr]\\ & X \times_{Z} Y \ar[d] \ar[r] & X \ar[d]\\ - & Y \ar[r] & Z } - + & Y \ar[r] & Z +} \end_inset @@ -1017,8 +1034,8 @@ ar[r]^g & Z } \begin_layout LyX-Code \begin_inset Formula \xymatrix{ U \ar[ddr]_{\psi}\ar[drr]^{\varphi}\ar[dr]|-{(x,y)}\\ & X \times_{Z} Y \ar[d]^{q} \ar[r]_{p} & X \ar[d]_{f}\\ - & Y \ar[r]^{g} & Z } - + & Y \ar[r]^{g} & Z +} \end_inset @@ -1198,7 +1215,7 @@ ar@{^(->}[r]. \begin_layout Standard \begin_inset Tabular - + @@ -1228,7 +1245,6 @@ Source code in LyX \begin_layout Plain Layout \begin_inset Formula \xymatrix{\ \ar[r] & \ } - \end_inset @@ -1257,7 +1273,6 @@ ar \begin_layout Plain Layout \begin_inset Formula \xymatrix{\ \ar@{-->}[r] & \ } - \end_inset @@ -1286,7 +1301,6 @@ ar@{-->} \begin_layout Plain Layout \begin_inset Formula \xymatrix{\ \ar@{..>}[r] & \ } - \end_inset @@ -1315,7 +1329,6 @@ ar@{..>} \begin_layout Plain Layout \begin_inset Formula \xymatrix{\ \ar@{~>}[r] & \ } - \end_inset @@ -1344,7 +1357,6 @@ ar@{~>} \begin_layout Plain Layout \begin_inset Formula \xymatrix{\ \ar@{->>}[r] & \ } - \end_inset @@ -1373,7 +1385,6 @@ ar@{->>} \begin_layout Plain Layout \begin_inset Formula \xymatrix{\ \ar@{-->>}[r] & \ } - \end_inset @@ -1402,7 +1413,6 @@ ar@{-->>} \begin_layout Plain Layout \begin_inset Formula \xymatrix{\ \ar@{>->>}[r] & \ } - \end_inset @@ -1431,7 +1441,6 @@ ar@{>->>} \begin_layout Plain Layout \begin_inset Formula \xymatrix{\ \ar@{_{(}->}[r] & \ } - \end_inset @@ -1460,7 +1469,6 @@ ar@{_(->} \begin_layout Plain Layout \begin_inset Formula \xymatrix{\ \ar@{^{(}->}[r] & \ } - \end_inset @@ -1489,7 +1497,6 @@ ar@{^(->} \begin_layout Plain Layout \begin_inset Formula \xymatrix{\ \ar@{|-|}[r] & \ } - \end_inset @@ -1533,7 +1540,7 @@ Following the @-character by either a 2, 3, _,or a ^, we can produce arrows \begin_layout Standard \begin_inset Tabular - + @@ -1563,7 +1570,6 @@ Source code for LyX \begin_layout Plain Layout \begin_inset Formula \xymatrix{\ \ar@2[r] & \ } - \end_inset @@ -1592,7 +1598,6 @@ ar@2 \begin_layout Plain Layout \begin_inset Formula \xymatrix{\ \ar@3[r] & \ } - \end_inset @@ -1621,7 +1626,6 @@ ar@3 \begin_layout Plain Layout \begin_inset Formula \xymatrix{\ \ar@_{->}[r] & \ } - \end_inset @@ -1650,7 +1654,6 @@ ar@_{->} \begin_layout Plain Layout \begin_inset Formula \xymatrix{\ \ar@^{->}[r] & \ } - \end_inset @@ -1679,7 +1682,6 @@ ar@^{->} \begin_layout Plain Layout \begin_inset Formula \xymatrix{\ \ar@^{>>->>}[r] & \ } - \end_inset @@ -1708,7 +1710,6 @@ ar@^{>>->>} \begin_layout Plain Layout \begin_inset Formula \xymatrix{\ \ar@{^{<}-_{>}}[r] & \ } - \end_inset @@ -1737,7 +1738,6 @@ ar@{^<-_>} \begin_layout Plain Layout \begin_inset Formula \xymatrix{\ \ar@2{--}[r] & \ } - \end_inset @@ -1826,7 +1826,8 @@ This defines a new arrow tip, referred to as ar@{-|>}[r] \family default and which displays correctly in LyX as: -\begin_inset Formula \[ +\begin_inset Formula +\[ \xymatrix{A\ar@{-|>}[r] & \ \ B} \] @@ -1887,7 +1888,8 @@ produces \end_inset -\begin_inset Formula \[ +\begin_inset Formula +\[ \xymatrix{\circ\ar@<1ex>[r] & \circ\ar@<1ex>[l]} \] @@ -2012,7 +2014,8 @@ ar@/_{.5pc}/[l]} \end_layout \begin_layout Standard -\begin_inset Formula \[ +\begin_inset Formula +\[ \xymatrix{A\ar@/{}_{.5pc}/[r] & B\ar@/{}_{.5pc}/[l]} \] @@ -2085,9 +2088,11 @@ in \end_layout \begin_layout Standard -\begin_inset Formula \[ +\begin_inset Formula +\[ \xymatrix{A\ar@(dr,dl)[r]\ar@(dr,dl)[rr] & B\ar@(d,r)[dl] & C\\ -E\ar@(ul,ur)} +E\ar@(ul,ur) +} \] \end_inset @@ -2199,7 +2204,8 @@ $ \end_layout \begin_layout Standard -\begin_inset Formula \[ +\begin_inset Formula +\[ \xymatrix{\txt{start}\ar[r] & *++[o][F]{1}\ar[r] & *++[o][F=]{2}\ar@(ur,dr)\ar@(ur,ul)[l]} \] @@ -2330,9 +2336,11 @@ The dimension of the rectangle is given as a dotted pair . These are followed by the framing commands, to produce figures such as the following: -\begin_inset Formula \[ +\begin_inset Formula +\[ \xymatrix{A & B\ar@(d,r)[dl]\sp(0.2)\phi\sp(0.7)\psi\save"1,1"."2,1"*+[F=]\frm{}\restore\,\\ -C & \save"1,1"."1,2"*++[F]\frm{}\restore} +C & \save"1,1"."1,2"*++[F]\frm{}\restore +} \] \end_inset @@ -3026,9 +3034,11 @@ xyC{.5pc} \end_layout \begin_layout Standard -\begin_inset Formula \[ +\begin_inset Formula +\[ \xyC{.5pc}\xyC{9pc}\xymatrix{A\ar[r]\ar[d] & B\\ -C\ar@{}[ur]|{\text{{horizontal stretch}}}} +C\ar@{}[ur]|{\text{{horizontal stretch}}} +} \] \end_inset @@ -3169,9 +3179,11 @@ phi_{4}}. \end_layout \begin_layout Standard -\begin_inset Formula \[ +\begin_inset Formula +\[ \xyC{4pc}\xymatrix{\bullet\ar[dr]\sp(0.3)\varphi & \circ\ar@{}[d]|\vdots\ar@(r,r)[d]\sp(0.2){\phi_{1}}\sp(0.4){\phi_{2}}\sb(0.6){\phi_{3}}\sp(0.8){\phi_{4}}\\ -\circ\ar[ur]\sb(0.3)\phi & \bullet} +\circ\ar[ur]\sb(0.3)\phi & \bullet +} \] \end_inset @@ -3364,6 +3376,32 @@ Xy \end_inset -pic to make braids, cobordism, string diagrams, and much more. + You might want to look on +\family typewriter +inset_preview.lyx +\family default + example shipped with LyX, which demonstrates how to use more advanced +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + +-commands via +\family typewriter +ERT +\family default + and +\family typewriter +Instant preview +\family default + insets. A good and rather systematic introduction to \family typewriter @@ -3395,6 +3433,7 @@ key "Ouvaton" \end_layout \begin_layout Bibliography +\labelwidthstring References \begin_inset CommandInset bibitem LatexCommand bibitem label "1" @@ -3432,6 +3471,7 @@ xypic \end_layout \begin_layout Bibliography +\labelwidthstring References \begin_inset CommandInset bibitem LatexCommand bibitem label "2" @@ -3454,6 +3494,7 @@ http://www.tug.org/tex-archive/help/Catalogue/entries/preview-latex.html \end_layout \begin_layout Bibliography +\labelwidthstring References \begin_inset CommandInset bibitem LatexCommand bibitem label "3" @@ -3476,6 +3517,7 @@ http://www.tug.org/tex-archive/help/Catalogue/entries/xypic.html \end_layout \begin_layout Bibliography +\labelwidthstring References \begin_inset CommandInset bibitem LatexCommand bibitem label "4" @@ -3498,6 +3540,7 @@ http://www.gnu.org/software/auctex/ \end_layout \begin_layout Bibliography +\labelwidthstring References \begin_inset CommandInset bibitem LatexCommand bibitem label "5" @@ -3532,7 +3575,7 @@ status collapsed \begin_layout Plain Layout -http://www.dpmms.cam.ac.uk/~al366/xytutorial.html +http://www.math.columbia.edu/~lauda/xy/ \end_layout \end_inset @@ -3541,6 +3584,7 @@ http://www.dpmms.cam.ac.uk/~al366/xytutorial.html \end_layout \begin_layout Bibliography +\labelwidthstring References \begin_inset CommandInset bibitem LatexCommand bibitem label "6"