#LyX 2.2 created this file. For more info see http://www.lyx.org/
-\lyxformat 503
+\lyxformat 506
\begin_document
\begin_header
+\save_transient_properties true
\origin /systemlyxdir/examples/
\textclass scrartcl
\begin_preamble
\end_inset
--pic in \SpecialCharNoPassThru LyX
+-pic in \SpecialChar LyX
+
\end_layout
\begin_layout Author
\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
\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
\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.
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
\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
\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{}
\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
\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
\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
\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
\end_inset
- will not always function correctly inside \SpecialCharNoPassThru LyX
+ will not always function correctly inside \SpecialChar LyX
.
\end_layout
\end_layout
\begin_layout Standard
-The following requires that the \SpecialCharNoPassThru LaTeX
+The following requires that the \SpecialChar LaTeX
-packages
\family typewriter
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
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
\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
\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
\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
\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
(.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
\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>
\begin_inset Text
\begin_layout Plain Layout
-Source code in \SpecialCharNoPassThru LyX
+Source code in \SpecialChar LyX
+
\end_layout
\end_inset
\family typewriter
\backslash
-ar@{\twohyphens
->}
+ar@{-->}
\end_layout
\end_inset
\family typewriter
\backslash
-ar@{\twohyphens
->>}
+ar@{-->>}
\end_layout
\end_inset
\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>
\begin_inset Text
\begin_layout Plain Layout
-Source code for \SpecialCharNoPassThru LyX
+Source code for \SpecialChar LyX
+
\end_layout
\end_inset
\family typewriter
\backslash
-ar@2{\twohyphens
-}
+ar@2{--}
\end_layout
\end_inset
\backslash
ar@{-|>}[r]
\family default
- and which displays correctly in \SpecialCharNoPassThru LyX
+ and which displays correctly in \SpecialChar LyX
as:
\begin_inset Formula
\[
\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
\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
\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{}
\end_layout
\begin_layout Standard
-The \SpecialCharNoPassThru LaTeX
+The \SpecialChar LaTeX
command
\family typewriter
\end_layout
\begin_layout Section
-Using \SpecialCharNoPassThru LyX
+Using \SpecialChar LyX
's math editor
\begin_inset CommandInset label
LatexCommand label
\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
\end_layout
\begin_layout Standard
-Recall that in \SpecialCharNoPassThru LyX
+Recall that in \SpecialChar LyX
's math-editor any pair of braces
\family typewriter
{
\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
\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
_
^
\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
\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.
\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
\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
\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.
\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
Preamble
\family default
):
-\family default
\begin_inset Separator parbreak
\end_inset
+
\end_layout
\begin_deeper
\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
\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
\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
-commands via
\family typewriter
-\SpecialCharNoPassThru TeX
+\SpecialChar TeX
+
\begin_inset space ~
\end_inset
\end_inset
-Homepage of AUC\SpecialCharNoPassThru TeX
+Homepage of AUC\SpecialChar TeX
:
\begin_inset Flex URL
status collapsed