]> git.lyx.org Git - lyx.git/blobdiff - lib/examples/xypic.lyx
Insert correct shortcut for environment split
[lyx.git] / lib / examples / xypic.lyx
index 4c9e2a2ee192ae8c1c9df2d3f5588e57e7898ee4..b4419f263f944732bdad9952555f310b0275268e 100644 (file)
@@ -1,7 +1,8 @@
-#LyX 2.2 created this file. For more info see http://www.lyx.org/
-\lyxformat 503
+#LyX 2.3 created this file. For more info see http://www.lyx.org/
+\lyxformat 544
 \begin_document
 \begin_header
+\save_transient_properties true
 \origin /systemlyxdir/examples/
 \textclass scrartcl
 \begin_preamble
@@ -62,6 +63,8 @@
 \font_osf false
 \font_sf_scale 100 100
 \font_tt_scale 100 100
+\use_microtype false
+\use_dash_ligatures false
 \graphics default
 \default_output_format default
 \output_sync 0
 \use_geometry false
 \use_package amsmath 1
 \use_package amssymb 1
-\use_package cancel 0
-\use_package esint 0
+\use_package cancel 1
+\use_package esint 1
 \use_package mathdots 1
-\use_package mathtools 0
+\use_package mathtools 1
 \use_package mhchem 1
-\use_package stackrel 0
-\use_package stmaryrd 0
-\use_package undertilde 0
+\use_package stackrel 1
+\use_package stmaryrd 1
+\use_package undertilde 1
 \cite_engine basic
 \cite_engine_type default
 \biblio_style plain
 \use_bibtopic false
 \use_indices false
 \paperorientation portrait
-\suppress_date false
+\suppress_date true
 \justification true
 \use_refstyle 0
+\use_minted 0
 \notefontcolor #0000ff
 \index Index
 \shortcut idx
 \tocdepth 3
 \paragraph_separation indent
 \paragraph_indentation default
-\quotes_language english
+\is_math_indent 0
+\math_numbering_side default
+\quotes_style english
+\dynamic_quotes 0
 \papercolumns 1
 \papersides 2
 \paperpagestyle default
@@ -141,7 +148,8 @@ Xy
 
 \end_inset
 
--pic in \SpecialCharNoPassThru LyX
+-pic in \SpecialChar LyX
+
 \end_layout
 
 \begin_layout Author
@@ -150,12 +158,12 @@ H.
 \end_layout
 
 \begin_layout Abstract
-With the recent versions of \SpecialCharNoPassThru LyX
+With the recent versions of \SpecialChar LyX
  and with the 
 \family typewriter
 preview
 \family default
--style installed in the \SpecialCharNoPassThru LaTeX
+-style installed in the \SpecialChar LaTeX
 -System, the graph drawing package 
 \family typewriter
 
@@ -173,9 +181,9 @@ Xy
 
 
 \family default
--pic can be conveniently used inside \SpecialCharNoPassThru LyX
+-pic can be conveniently used inside \SpecialChar LyX
 .
- Diagrams can be edited and displayed inside the main \SpecialCharNoPassThru LyX
+ Diagrams can be edited and displayed inside the main \SpecialChar LyX
  editing window.
  Here, we shall describe how to use the 
 \family typewriter
@@ -187,7 +195,7 @@ xymatrix
 \family typewriter
 xypic
 \family default
- inside \SpecialCharNoPassThru LyX
+ inside \SpecialChar LyX
  in order to draw, to edit and to preview diagrams as typically
  used in category theory, algebra, and related fields.
  
@@ -212,25 +220,26 @@ The
 xypic
 \family default
 -package has long served as a convenient tool for easily constructing graphs
- and diagrams in \SpecialCharNoPassThru LaTeX
+ and diagrams in \SpecialChar LaTeX
 .
- Unfortunately, its use in \SpecialCharNoPassThru LyX
- had long been restricted to the infamous
- \SpecialCharNoPassThru TeX
code boxes, meaning that the \SpecialCharNoPassThru LyX
- editor could only display the \SpecialCharNoPassThru LaTeX
--source
and not the finished diagram.
+ Unfortunately, its use in \SpecialChar LyX
+ had long been restricted to the infamous \SpecialChar TeX
+ code
boxes, meaning that the \SpecialChar LyX
+ editor could only display the \SpecialChar LaTeX
+-source and not
+ the finished diagram.
  The new 
 \family typewriter
 preview
 \family default
--style of \SpecialCharNoPassThru LaTeX
- which is part of the AUC\SpecialCharNoPassThru TeX
+-style of \SpecialChar LaTeX
+ which is part of the AUC\SpecialChar TeX
  project
 \begin_inset CommandInset citation
 LatexCommand cite
 key "AUCTeX"
+literal "true"
 
 \end_inset
 
@@ -238,7 +247,7 @@ key "AUCTeX"
 \family typewriter
 xypic
 \family default
--diagrams, constructed, displayed and interactively edited inside \SpecialCharNoPassThru LyX
+-diagrams, constructed, displayed and interactively edited inside \SpecialChar LyX
 .
 \end_layout
 
@@ -281,9 +290,9 @@ Xy
 
 \end_inset
 
--pic can be used from inside \SpecialCharNoPassThru LyX
+-pic can be used from inside \SpecialChar LyX
 , how diagrams can be created and edited.
- We have tested the following using \SpecialCharNoPassThru LyX
+ We have tested the following using \SpecialChar LyX
  versions 1.3.7 up to 1.6, running under
  Windows
 \begin_inset space \thinspace{}
@@ -308,7 +317,7 @@ Xy
 
 \end_inset
 
--pic code inside the \SpecialCharNoPassThru LyX
+-pic code inside the \SpecialChar LyX
 -window, select it all and convert it to a graphical
  representation by pressing 
 \family sans
@@ -333,7 +342,7 @@ Xy
 \end_inset
 
 -pic more frequently, or if you want to modify your initial figure, you
- will want to assemble and modify your figures using \SpecialCharNoPassThru LyX
+ will want to assemble and modify your figures using \SpecialChar LyX
 's math editor.
  
 \end_layout
@@ -347,7 +356,8 @@ Once the cursor is moved over a diagram, this is displayed as an array of
 \end_layout
 
 \begin_layout Standard
-In the first two sections of this documentation, we explain how to use \SpecialCharNoPassThru LyX
+In the first two sections of this documentation, we explain how to use \SpecialChar LyX
+
  in the first mentioned mode and we introduce all 
 \begin_inset ERT
 status collapsed
@@ -402,7 +412,7 @@ Xy
 \end_inset
 
 -pic, rather our motivation is to give an introduction how the most important
- commands work inside \SpecialCharNoPassThru LyX
+ commands work inside \SpecialChar LyX
 , since the keystrokes as explained in the 
 \begin_inset ERT
 status collapsed
@@ -420,10 +430,11 @@ Xy
 \begin_inset CommandInset citation
 LatexCommand cite
 key "xypic manual"
+literal "true"
 
 \end_inset
 
- will not always function correctly inside \SpecialCharNoPassThru LyX
+ will not always function correctly inside \SpecialChar LyX
 .
  
 \end_layout
@@ -433,7 +444,7 @@ Preparation
 \end_layout
 
 \begin_layout Standard
-The following requires that the \SpecialCharNoPassThru LaTeX
+The following requires that the \SpecialChar LaTeX
 -packages 
 \family typewriter
 xypic
@@ -442,12 +453,13 @@ xypic
 \family typewriter
 preview
 \family default
- are installed in the \SpecialCharNoPassThru LaTeX
+ are installed in the \SpecialChar LaTeX
  system.
  They are available from CTAN, see at 
 \begin_inset CommandInset citation
 LatexCommand cite
 key "instant-preview"
+literal "true"
 
 \end_inset
 
@@ -456,6 +468,7 @@ key "instant-preview"
 \begin_inset CommandInset citation
 LatexCommand cite
 key "xypic"
+literal "true"
 
 \end_inset
 
@@ -465,9 +478,9 @@ key "xypic"
 Tools\SpecialChar menuseparator
 Reconfigure
 \family default
- from the main \SpecialCharNoPassThru LyX
+ from the main \SpecialChar LyX
  menu.
- The steps to a first diagram output in \SpecialCharNoPassThru LyX
+ The steps to a first diagram output in \SpecialChar LyX
  are then:
 \end_layout
 
@@ -475,15 +488,11 @@ Reconfigure
 Activate and test 
 \family typewriter
 preview
-\family default
-\begin_inset Separator parbreak
-\end_inset
-
 \end_layout
 
 \begin_deeper
 \begin_layout Enumerate
-Open \SpecialCharNoPassThru LyX
+Open \SpecialChar LyX
 , choose 
 \family sans
 Tools\SpecialChar menuseparator
@@ -525,7 +534,7 @@ Test, if
 \family typewriter
 instant-preview
 \family default
- works by opening a \SpecialCharNoPassThru LyX
+ works by opening a \SpecialChar LyX
 -document and entering any math-formula, e.
 \begin_inset space \thinspace{}
 \end_inset
@@ -566,15 +575,11 @@ Xy
 -pic
 \family typewriter
 :
-\family default
-\begin_inset Separator parbreak
-\end_inset
-
 \end_layout
 
 \begin_deeper
 \begin_layout Enumerate
-Inside your \SpecialCharNoPassThru LyX
+Inside your \SpecialChar LyX
 -Document, enter the text 
 \family typewriter
 
@@ -638,6 +643,7 @@ Xy
 \begin_inset CommandInset citation
 LatexCommand cite
 key "xypic manual"
+literal "true"
 
 \end_inset
 
@@ -799,9 +805,9 @@ times_Z Y   & X
 \end_layout
 
 \begin_layout Standard
-The pattern should be familiar from \SpecialCharNoPassThru LaTeX
-: We see three rows, the first
- two being terminated by the end-of-line-marker 
+The pattern should be familiar from \SpecialChar LaTeX
+: We see three rows, the first two being
+ terminated by the end-of-line-marker 
 \family typewriter
 
 \backslash
@@ -1135,9 +1141,9 @@ g.
 (.3)
 \family default
 .
- In \SpecialCharNoPassThru LyX
- this works only for labels which are placed on top of the arrow,
such as 
+ In \SpecialChar LyX
+ this works only for labels which are placed on top of the arrow, such
+ as 
 \family typewriter
 
 \backslash
@@ -1189,7 +1195,7 @@ ar[r]_(.3)
 \backslash
 psi
 \family default
- is not correctly interpreted by \SpecialCharNoPassThru LyX
+ is not correctly interpreted by \SpecialChar LyX
 's math editor.
  Two workarounds are suggested in the last section of this note.
 \end_layout
 
 \backslash
 ar@{^(->}[r].
-\family default
-\begin_inset Separator parbreak
-\end_inset
-
 \end_layout
 
 \begin_layout Standard
 \align center
 \begin_inset Tabular
 <lyxtabular version="3" rows="11" columns="2">
-<features rotate="0" tabularvalignment="middle">
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0pt">
 <column alignment="center" valignment="top">
 <row>
@@ -1307,7 +1309,8 @@ Result
 \begin_inset Text
 
 \begin_layout Plain Layout
-Source code in \SpecialCharNoPassThru LyX
+Source code in \SpecialChar LyX
+
 \end_layout
 
 \end_inset
@@ -1363,8 +1366,7 @@ $
 \family typewriter
 
 \backslash
-ar@{\twohyphens
->}
+ar@{-->}
 \end_layout
 
 \end_inset
@@ -1476,8 +1478,7 @@ $
 \family typewriter
 
 \backslash
-ar@{\twohyphens
->>}
+ar@{-->>}
 \end_layout
 
 \end_inset
@@ -1608,16 +1609,13 @@ Following the @-character by either a 2, 3, _ or a ^, we can produce arrows
  with double, triple shaft or arrows showing only the lower or upper half
  of their tips and ends.
  Arrows need not have tips nor ends, as the last example shows:
-\begin_inset Separator parbreak
-\end_inset
-
 \end_layout
 
 \begin_layout Standard
 \align center
 \begin_inset Tabular
 <lyxtabular version="3" rows="8" columns="2">
-<features rotate="0" tabularvalignment="middle">
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top">
 <column alignment="center" valignment="top">
 <row>
@@ -1634,7 +1632,8 @@ Result
 \begin_inset Text
 
 \begin_layout Plain Layout
-Source code for \SpecialCharNoPassThru LyX
+Source code for \SpecialChar LyX
+
 \end_layout
 
 \end_inset
@@ -1832,8 +1831,7 @@ $
 \family typewriter
 
 \backslash
-ar@2{\twohyphens
-}
+ar@2{--}
 \end_layout
 
 \end_inset
@@ -1905,7 +1903,7 @@ This defines a new arrow tip, referred to as
 \backslash
 ar@{-|>}[r]
 \family default
- and which displays correctly in \SpecialCharNoPassThru LyX
+ and which displays correctly in \SpecialChar LyX
  as:
 \begin_inset Formula 
 \[
@@ -1982,7 +1980,7 @@ $
 \end_inset
 
 .
- When their code is written inside \SpecialCharNoPassThru LyX
+ When their code is written inside \SpecialChar LyX
  as above, select it and choose either
  
 \family sans
@@ -2029,7 +2027,7 @@ For bending arrows we use the modifier @/
 \end_inset
 
 / .
- The ellipsis stands for a \SpecialCharNoPassThru TeX
+ The ellipsis stands for a \SpecialChar TeX
 -measure which needs to be entered as a lower
  or upper index.
  Whereas in 
@@ -2054,7 +2052,7 @@ ar@/_1pc/
 \family typewriter
 1pc
 \family default
- downwards, this cannot directly be done in \SpecialCharNoPassThru LyX
+ downwards, this cannot directly be done in \SpecialChar LyX
 .
  It is necessary, to enclose the measure in a pair of braces, such as e.
 \begin_inset space \thinspace{}
@@ -2329,7 +2327,7 @@ ar@(ur,ul)[l]
 \end_layout
 
 \begin_layout Standard
-The \SpecialCharNoPassThru LaTeX
+The \SpecialChar LaTeX
  command 
 \family typewriter
 
@@ -2482,7 +2480,7 @@ restore
 \end_layout
 
 \begin_layout Section
-Using \SpecialCharNoPassThru LyX
+Using \SpecialChar LyX
 's math editor
 \begin_inset CommandInset label
 LatexCommand label
@@ -2507,9 +2505,8 @@ Ctrl-m
 \family sans
 Ctrl-M
 \family default
-, one may construct and modify the whole xypic-diagram inside \SpecialCharNoPassThru LyX
-'s math
- editor.
+, one may construct and modify the whole xypic-diagram inside \SpecialChar LyX
+'s math editor.
  We describe the editing steps for a figure just like the one above.
  
 \end_layout
@@ -2519,7 +2516,7 @@ Caveat - how to enter braces
 \end_layout
 
 \begin_layout Standard
-Recall that in \SpecialCharNoPassThru LyX
+Recall that in \SpecialChar LyX
 's math-editor any pair of braces 
 \family typewriter
 {
@@ -2568,7 +2565,7 @@ Xy
 \backslash
 {
 \family default
- and let \SpecialCharNoPassThru LyX
+ and let \SpecialChar LyX
  provide the closing brace and the box into which to enter the
  description of the arrow.
 \end_layout
@@ -2728,7 +2725,7 @@ r
 \begin_layout Standard
 Next, label the arrows by attaching a label text as upper or lower indices
  to the end of the arrow's path.
- As always in \SpecialCharNoPassThru LyX
+ As always in \SpecialChar LyX
 's math editor, an underscore 
 \family typewriter
 _
@@ -2738,7 +2735,7 @@ _
 ^
 \family default
  followed by a space opens a box for an upper index.
- You can enter any \SpecialCharNoPassThru LaTeX
+ You can enter any \SpecialChar LaTeX
 -code as a label.
 \end_layout
 
@@ -2785,7 +2782,7 @@ Finally, you can modify the appearance of the arrows by entering @-modifiers
 \backslash
 {
 \family default
- with the arrow description entered inside the \SpecialCharNoPassThru LyX
+ with the arrow description entered inside the \SpecialChar LyX
 -supplied box.
  If this box remains empty, you have specified an empty arrow.
  This is a useful construction, too, as you will see in the next section.
@@ -2851,9 +2848,9 @@ where
 \emph on
 measure
 \emph default
- is any valid \SpecialCharNoPassThru TeX
--measure that should be entered as upper or lower index
- to the first slash /.
+ is any valid \SpecialChar TeX
+-measure that should be entered as upper or lower index to
+ the first slash /.
  Make sure that the ending slash does not end up being part of the upper
  or lower index.
 \end_layout
@@ -2879,7 +2876,7 @@ A more serious reason could be a syntactical error in your input (in that
 \family sans
 Ctrl+Z
 \family default
-, or try to translate the \SpecialCharNoPassThru LyX
+, or try to translate the \SpecialChar LyX
 -file into 
 \family sans
 DVI
@@ -2903,7 +2900,7 @@ Hacks
 \end_layout
 
 \begin_layout Standard
-Certain things do not work correctly inside \SpecialCharNoPassThru LyX
+Certain things do not work correctly inside \SpecialChar LyX
 .
  The ones that we (used to) miss most are the horizontal and vertical scaling
  of diagrams, and the correct positioning of arrows.
@@ -2935,6 +2932,7 @@ Xy
 \begin_inset CommandInset citation
 LatexCommand cite
 key "xypic manual"
+literal "true"
 
 \end_inset
 
@@ -2999,7 +2997,7 @@ xymatrix@R=1pc
 \end_inset
 
  into a formula to get the desired matrix because the @-character is interpreted
- by \SpecialCharNoPassThru LyX
+ by \SpecialChar LyX
  as ending the 
 \family typewriter
 
@@ -3144,10 +3142,6 @@ Document\SpecialChar menuseparator
 Preamble
 \family default
 ):
-\family default
-\begin_inset Separator parbreak
-\end_inset
-
 \end_layout
 
 \begin_deeper
@@ -3222,7 +3216,7 @@ xyC
 \family default
  or both.
  Don't forget the backslashes and remember, that the closing brace is automatica
-lly supplied by \SpecialCharNoPassThru LyX
+lly supplied by \SpecialChar LyX
 .
  Inside the braces enter the dimensions.
 \begin_inset Newline newline
@@ -3379,7 +3373,7 @@ ar[ur]_(0.3)
 \backslash
 phi
 \family default
-, does not work from inside \SpecialCharNoPassThru LyX
+, does not work from inside \SpecialChar LyX
 .
  Instead, one has to replace the hat-symbol ^, resp.
  the underscore _ , by the macros 
@@ -3603,6 +3597,7 @@ Xy
 \begin_inset CommandInset citation
 LatexCommand cite
 key "xypic manual"
+literal "true"
 
 \end_inset
 
@@ -3613,6 +3608,7 @@ key "xypic manual"
 \begin_inset CommandInset citation
 LatexCommand cite
 key "Lauda"
+literal "true"
 
 \end_inset
 
@@ -3634,7 +3630,7 @@ Xy
 \family typewriter
 inset_preview.lyx
 \family default
- example shipped with \SpecialCharNoPassThru LyX
+ example shipped with \SpecialChar LyX
 , which demonstrates how to use more advanced 
 \begin_inset ERT
 status collapsed
@@ -3650,7 +3646,8 @@ Xy
 
 -commands via 
 \family typewriter
-\SpecialCharNoPassThru TeX
+\SpecialChar TeX
+
 \begin_inset space ~
 \end_inset
 
@@ -3674,6 +3671,7 @@ Instant preview
 \begin_inset CommandInset bibitem
 LatexCommand bibitem
 key "xypic manual"
+literal "true"
 
 \end_inset
 
@@ -3717,6 +3715,7 @@ https://www.ctan.org/tex-archive/macros/generic/diagrams/xypic/doc/xyguide.pdf
 \begin_inset CommandInset bibitem
 LatexCommand bibitem
 key "xypic reference"
+literal "true"
 
 \end_inset
 
@@ -3760,6 +3759,7 @@ https://www.ctan.org/tex-archive/macros/generic/diagrams/xypic/doc/xyrefer.pdf
 \begin_inset CommandInset bibitem
 LatexCommand bibitem
 key "xypic"
+literal "true"
 
 \end_inset
 
@@ -3798,6 +3798,7 @@ http://www.ctan.org/pkg/xypic
 \begin_inset CommandInset bibitem
 LatexCommand bibitem
 key "instant-preview"
+literal "true"
 
 \end_inset
 
@@ -3823,10 +3824,11 @@ http://www.gnu.org/software/auctex/preview-latex.html
 \begin_inset CommandInset bibitem
 LatexCommand bibitem
 key "AUCTeX"
+literal "true"
 
 \end_inset
 
-Homepage of AUC\SpecialCharNoPassThru TeX
+Homepage of AUC\SpecialChar TeX
 : 
 \begin_inset Flex URL
 status collapsed
@@ -3845,6 +3847,7 @@ http://www.gnu.org/software/auctex/
 \begin_inset CommandInset bibitem
 LatexCommand bibitem
 key "Lauda"
+literal "true"
 
 \end_inset