-#LyX 1.6.2svn created this file. For more info see http://www.lyx.org/
+#LyX 1.6.5svn created this file. For more info see http://www.lyx.org/
\lyxformat 345
\begin_document
\begin_header
\begin_preamble
\usepackage[all]{xy}
-
% define new commands used in sec. 5.1
\newcommand{\xyR}[1]{
\xydef@\xymatrixrowsep@{#1}}
\begin_layout Title
Using
\begin_inset ERT
-status open
+status collapsed
\begin_layout Plain Layout
\family typewriter
\begin_inset ERT
-status open
+status collapsed
\begin_layout Plain Layout
\family default
--Pic can be conveniently used inside LyX.
+-pic can be conveniently used inside LyX.
Diagrams can be edited and displayed inside the main LyX editing window.
Here, we shall describe how to use the
\family typewriter
\align center
\begin_inset Graphics
filename xyfigure.png
- scale 50
+ width 75col%
BoundingBox 0bp 0bp 580bp 440bp
clip
\begin_layout Standard
In this note, we describe how
\begin_inset ERT
-status open
+status collapsed
\begin_layout Plain Layout
There are two modes of operations: For a start, and for some first tests,
it may be easiest to first enter the
\begin_inset ERT
-status open
+status collapsed
\begin_layout Plain Layout
\end_inset
--Pic code inside the LyX-window, select it all and convert it to a graphical
+-pic code inside the LyX-window, select it all and convert it to a graphical
representation by pressing
\family sans
Ctrl-m
.
If you use
\begin_inset ERT
-status open
+status collapsed
\begin_layout Plain Layout
\end_inset
--Pic more frequently, or if you want to modify your initial figure, you
+-pic more frequently, or if you want to modify your initial figure, you
will want to assemble and modify your figures using LyX's math editor.
\end_layout
In the first two sections of this documentation, we explain how to use LyX
in the first mentioned mode and we introduce all
\begin_inset ERT
-status open
+status collapsed
\begin_layout Plain Layout
\end_inset
--Pic features that might be of use for drawing commutative diagrams, graphs
+-pic features that might be of use for drawing commutative diagrams, graphs
or automata.
Section
\begin_inset CommandInset ref
explains how to use the
\begin_inset ERT
-status open
+status collapsed
\begin_layout Plain Layout
\end_inset
--Pic commands inside a math-editing area.
+-pic commands inside a math-editing area.
\end_layout
\begin_layout Standard
It is not our intention to write another introduction to
\begin_inset ERT
-status open
+status collapsed
\begin_layout Plain Layout
\end_inset
--Pic, rather our motivation is to give an introduction how the most important
+-pic, rather our motivation is to give an introduction how the most important
commands work inside LyX, since the keystrokes as explained in the
\begin_inset ERT
-status open
+status collapsed
\begin_layout Plain Layout
\end_inset
--Pic manual
+-pic manual
\begin_inset CommandInset citation
LatexCommand cite
key "xypic manual"
.
After freshly installing them, it may be necessary, to run
\family sans
-Edit\SpecialChar \menuseparator
+Tools\SpecialChar \menuseparator
Reconfigure
\family default
from the main LyX menu.
\begin_layout Enumerate
Open LyX, choose
\family sans
-Edit\SpecialChar \menuseparator
+Tools\SpecialChar \menuseparator
Preferences\SpecialChar \menuseparator
Look and Feel\SpecialChar \menuseparator
-Graphics
+Display
\family default
- and place a check-mark at
+ and turn
\emph on
Instant Preview
+\emph default
+ on.
+\end_layout
+
+\begin_layout Enumerate
+In
+\family sans
+Document\SpecialChar \menuseparator
+Settings\SpecialChar \menuseparator
+Math
+\begin_inset space ~
+\end_inset
+
+Options
+\family default
+, uncheck
+\emph on
+Use AMS Math package automatically
+\emph default
+ and check
+\emph on
+Use AMS Math package
\emph default
.
-
\end_layout
\begin_layout Enumerate
\begin_layout Enumerate
Activate and test
\begin_inset ERT
-status open
+status collapsed
\begin_layout Plain Layout
\end_inset
--Pic
+-pic
\family typewriter
:
\end_layout
\end_inset
.
- Commutative diagrams
\end_layout
\end_deeper
+\begin_layout Section
+Commutative diagrams
+\end_layout
+
\begin_layout Standard
The following diagram, which is taken from the documentation of
\begin_inset ERT
-status open
+status collapsed
\begin_layout Plain Layout
\end_inset
--Pic
+-pic
\begin_inset CommandInset citation
LatexCommand cite
key "xypic manual"
\begin_inset Formula $\beta$
\end_inset
- above the arrow, i.
+ above the arrow, e.
\begin_inset space \thinspace{}
\end_inset
\begin_layout Standard
\begin_inset ERT
-status open
+status collapsed
\begin_layout Plain Layout
work.
The corresponding
\begin_inset ERT
-status open
+status collapsed
\begin_layout Plain Layout
\family typewriter
\begin_inset ERT
-status open
+status collapsed
\begin_layout Plain Layout
\family sans
\SpecialChar \menuseparator
-Alignment.
+Change Formula Type.
\end_layout
\begin_layout Subsection
\begin_layout Standard
With
\begin_inset ERT
-status open
+status collapsed
\begin_layout Plain Layout
\end_inset
--Pic, entries can obtain a single or a double frame, such as
+-pic, entries can obtain a single or a double frame, such as
\begin_inset Formula $\xymatrix{*+[F]{A}}
$
\end_inset
\family default
, all following entries inside
\begin_inset ERT
-status open
+status collapsed
\begin_layout Plain Layout
to the parameter is entered.
In connection with
\begin_inset ERT
-status open
+status collapsed
\begin_layout Plain Layout
1-
\begin_inset ERT
-status open
+status collapsed
\begin_layout Plain Layout
Alt-m w
\family default
for the row commands.
-
+ A more direct way uses the icons in the math toolbar once it has been activated
+ via
+\family sans
+View\SpecialChar \menuseparator
+Toolbars.
\end_layout
\begin_layout Subsection
\end_layout
\begin_layout Standard
-A more serious reason could be a syntactical error in your input.
- If necessary, redo the last editing steps, using
-\emph on
+A more serious reason could be a syntactical error in your input (in that
+ case, the math edition area disappears completely).
+ If necessary, undo the last editing steps, using
+\family sans
Ctrl+Z
-\emph default
+\family default
, or try to translate the LyX-file into
-\emph on
+\family sans
DVI
-\emph default
+\family default
using
-\emph on
+\family sans
Ctrl+D
-\emph default
+\family default
or
\family sans
View\SpecialChar \menuseparator
of an entire diagram by using spacing commands for rows and/or columns.
According to the
\begin_inset ERT
-status open
+status collapsed
\begin_layout Plain Layout
\family default
defines an
\begin_inset ERT
-status open
+status collapsed
\begin_layout Plain Layout
Unfortunately, these commands do currently not work inside LyX, as the
@-character is interpreted by LyX as ending the
\begin_inset ERT
-status open
+status collapsed
\begin_layout Plain Layout
\begin_layout Standard
Knowing that
\begin_inset ERT
-status open
+status collapsed
\begin_layout Plain Layout
\backslash
xyR{...} into the
\begin_inset ERT
-status open
+status collapsed
\begin_layout Plain Layout
\begin_layout Standard
Another useful
\begin_inset ERT
-status open
+status collapsed
\begin_layout Plain Layout
items, such as the intersection of the arrows in the figure below.
In order to shift a label position alongside the shaft of an arrow,
\begin_inset ERT
-status open
+status collapsed
\begin_layout Plain Layout
\family typewriter
\begin_inset ERT
-status open
+status collapsed
\begin_layout Plain Layout
\family typewriter
\begin_inset ERT
-status open
+status collapsed
\begin_layout Plain Layout
\family typewriter
\begin_inset ERT
-status open
+status collapsed
\begin_layout Plain Layout
\family default
--Pic manual
+-pic manual
\begin_inset CommandInset citation
LatexCommand cite
key "xypic manual"
explains how to use
\begin_inset ERT
-status open
+status collapsed
\begin_layout Plain Layout
\family typewriter
\begin_inset ERT
-status open
+status collapsed
\begin_layout Plain Layout
Kristoffer H.
Rose:
\begin_inset ERT
-status open
+status collapsed
\begin_layout Plain Layout
\emph on
--Pic User's Guide
+-pic User's Guide
\emph default
.
Version 3.7, Feb.
Aarlon Lauda:
\begin_inset ERT
-status open
+status collapsed
\begin_layout Plain Layout
\emph on
--Pic
+-pic
\emph default
\emph on
Filipp Ouvaton:
\begin_inset ERT
-status open
+status collapsed
\begin_layout Plain Layout
\emph on
--Pic
+-pic
\emph default
:
\emph on