mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-25 05:55:34 +00:00
xypic.lyx: correct typos and a preamble definition, remove whitespace and ERT
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28614 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
9874a917df
commit
3154091853
@ -9,7 +9,6 @@
|
|||||||
|
|
||||||
% define new commands used in sec. 5.1
|
% define new commands used in sec. 5.1
|
||||||
\newcommand{\xyR}[1]{
|
\newcommand{\xyR}[1]{
|
||||||
\makeatletter
|
|
||||||
\xydef@\xymatrixrowsep@{#1}}
|
\xydef@\xymatrixrowsep@{#1}}
|
||||||
\newcommand{\xyC}[1]{
|
\newcommand{\xyC}[1]{
|
||||||
\xydef@\xymatrixcolsep@{#1}}
|
\xydef@\xymatrixcolsep@{#1}}
|
||||||
@ -84,7 +83,7 @@
|
|||||||
\begin_layout Title
|
\begin_layout Title
|
||||||
Using
|
Using
|
||||||
\begin_inset ERT
|
\begin_inset ERT
|
||||||
status collapsed
|
status open
|
||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
|
|
||||||
@ -112,7 +111,7 @@ preview
|
|||||||
\family typewriter
|
\family typewriter
|
||||||
|
|
||||||
\begin_inset ERT
|
\begin_inset ERT
|
||||||
status collapsed
|
status open
|
||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
|
|
||||||
@ -163,7 +162,7 @@ xypic
|
|||||||
-package has long served as a convenient tool for easily constructing graphs
|
-package has long served as a convenient tool for easily constructing graphs
|
||||||
and diagrams in LaTeX.
|
and diagrams in LaTeX.
|
||||||
Unfortunately, its use in LyX had long been restricted to the infamous
|
Unfortunately, its use in LyX had long been restricted to the infamous
|
||||||
ERT-boxes, meaning that the LyX editor could only display the LaTeX-source
|
TeX code boxes, meaning that the LyX editor could only display the LaTeX-source
|
||||||
and not the finished diagram.
|
and not the finished diagram.
|
||||||
The new
|
The new
|
||||||
\family typewriter
|
\family typewriter
|
||||||
@ -213,7 +212,7 @@ xypic
|
|||||||
\begin_layout Standard
|
\begin_layout Standard
|
||||||
In this note, we describe how
|
In this note, we describe how
|
||||||
\begin_inset ERT
|
\begin_inset ERT
|
||||||
status collapsed
|
status open
|
||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
|
|
||||||
@ -226,7 +225,11 @@ Xy
|
|||||||
|
|
||||||
-pic can be used from inside LyX, how diagrams can be created and edited.
|
-pic can be used from inside LyX, how diagrams can be created and edited.
|
||||||
We have tested the following using LyX versions 1.3.7 up to 1.6, running under
|
We have tested the following using LyX versions 1.3.7 up to 1.6, running under
|
||||||
WindowsXP and under Windows Vista.
|
Windows
|
||||||
|
\begin_inset space \thinspace{}
|
||||||
|
\end_inset
|
||||||
|
|
||||||
|
XP and under Windows Vista.
|
||||||
|
|
||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
@ -234,7 +237,7 @@ Xy
|
|||||||
There are two modes of operations: For a start, and for some first tests,
|
There are two modes of operations: For a start, and for some first tests,
|
||||||
it may be easiest to first enter the
|
it may be easiest to first enter the
|
||||||
\begin_inset ERT
|
\begin_inset ERT
|
||||||
status collapsed
|
status open
|
||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
|
|
||||||
@ -257,7 +260,7 @@ Ctrl-M
|
|||||||
.
|
.
|
||||||
If you use
|
If you use
|
||||||
\begin_inset ERT
|
\begin_inset ERT
|
||||||
status collapsed
|
status open
|
||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
|
|
||||||
@ -285,7 +288,7 @@ Once the cursor is moved over a diagram, this is displayed as an array of
|
|||||||
In the first two sections of this documentation, we explain how to use LyX
|
In the first two sections of this documentation, we explain how to use LyX
|
||||||
in the first mentioned mode and we introduce all
|
in the first mentioned mode and we introduce all
|
||||||
\begin_inset ERT
|
\begin_inset ERT
|
||||||
status collapsed
|
status open
|
||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
|
|
||||||
@ -307,7 +310,7 @@ reference "sec:math-editor"
|
|||||||
|
|
||||||
explains how to use the
|
explains how to use the
|
||||||
\begin_inset ERT
|
\begin_inset ERT
|
||||||
status collapsed
|
status open
|
||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
|
|
||||||
@ -325,7 +328,7 @@ Xy
|
|||||||
\begin_layout Standard
|
\begin_layout Standard
|
||||||
It is not our intention to write another introduction to
|
It is not our intention to write another introduction to
|
||||||
\begin_inset ERT
|
\begin_inset ERT
|
||||||
status collapsed
|
status open
|
||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
|
|
||||||
@ -339,7 +342,7 @@ Xy
|
|||||||
-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
|
commands work inside LyX, since the keystrokes as explained in the
|
||||||
\begin_inset ERT
|
\begin_inset ERT
|
||||||
status collapsed
|
status open
|
||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
|
|
||||||
@ -443,7 +446,7 @@ g.
|
|||||||
|
|
||||||
\begin_layout Enumerate
|
\begin_layout Enumerate
|
||||||
Move the cursor out of the formula, and watch it change its appearance to
|
Move the cursor out of the formula, and watch it change its appearance to
|
||||||
look just like in the finished dvi- or postscript document.
|
look just like in the finished DVI- or PostScript document.
|
||||||
|
|
||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
@ -451,7 +454,7 @@ Move the cursor out of the formula, and watch it change its appearance to
|
|||||||
\begin_layout Enumerate
|
\begin_layout Enumerate
|
||||||
Activate and test
|
Activate and test
|
||||||
\begin_inset ERT
|
\begin_inset ERT
|
||||||
status collapsed
|
status open
|
||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
|
|
||||||
@ -514,7 +517,7 @@ $
|
|||||||
\begin_layout Standard
|
\begin_layout Standard
|
||||||
The following diagram, which is taken from the documentation of
|
The following diagram, which is taken from the documentation of
|
||||||
\begin_inset ERT
|
\begin_inset ERT
|
||||||
status collapsed
|
status open
|
||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
|
|
||||||
@ -999,7 +1002,7 @@ ar[r]^g & Z }
|
|||||||
|
|
||||||
\begin_layout Standard
|
\begin_layout Standard
|
||||||
\begin_inset ERT
|
\begin_inset ERT
|
||||||
status collapsed
|
status open
|
||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
|
|
||||||
@ -1039,7 +1042,7 @@ For labels placed to the left or to the right of the arrow this does not
|
|||||||
work.
|
work.
|
||||||
The corresponding
|
The corresponding
|
||||||
\begin_inset ERT
|
\begin_inset ERT
|
||||||
status collapsed
|
status open
|
||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
|
|
||||||
@ -1101,7 +1104,7 @@ Modification of the design, the form or the positioning of arrows are introduced
|
|||||||
\family default
|
\family default
|
||||||
indicates, whether we want to modify the design, the or the curvature of
|
indicates, whether we want to modify the design, the or the curvature of
|
||||||
the arrow.
|
the arrow.
|
||||||
Various modifactions can be applied to an arrow at the same time.
|
Various modifications can be applied to an arrow at the same time.
|
||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
\begin_layout Subsubsection
|
\begin_layout Subsubsection
|
||||||
@ -1754,12 +1757,12 @@ Within certain limits there is even a way to design your own arrows.
|
|||||||
\backslash
|
\backslash
|
||||||
newdir
|
newdir
|
||||||
\family default
|
\family default
|
||||||
command in the preample.
|
command in the preamble.
|
||||||
For explanations, we refer to the
|
For explanations, we refer to the
|
||||||
\family typewriter
|
\family typewriter
|
||||||
|
|
||||||
\begin_inset ERT
|
\begin_inset ERT
|
||||||
status collapsed
|
status open
|
||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
|
|
||||||
@ -1885,7 +1888,7 @@ $
|
|||||||
\family sans
|
\family sans
|
||||||
Ctrl-m
|
Ctrl-m
|
||||||
\family default
|
\family default
|
||||||
for inline appearence or
|
for inline appearance or
|
||||||
\family sans
|
\family sans
|
||||||
Ctrl-M
|
Ctrl-M
|
||||||
\family default
|
\family default
|
||||||
@ -1994,8 +1997,7 @@ ar@/_{.5pc}/[l]}
|
|||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
\begin_layout Subsubsection
|
\begin_layout Subsubsection
|
||||||
Specifying exit- and entrance directions.
|
Specifying exit- and entrance directions
|
||||||
|
|
||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
\begin_layout Standard
|
\begin_layout Standard
|
||||||
@ -2112,7 +2114,7 @@ Framing objects
|
|||||||
\begin_layout Standard
|
\begin_layout Standard
|
||||||
With
|
With
|
||||||
\begin_inset ERT
|
\begin_inset ERT
|
||||||
status collapsed
|
status open
|
||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
|
|
||||||
@ -2182,18 +2184,7 @@ $
|
|||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
\begin_layout Standard
|
\begin_layout Standard
|
||||||
\begin_inset ERT
|
\noindent
|
||||||
status collapsed
|
|
||||||
|
|
||||||
\begin_layout Plain Layout
|
|
||||||
|
|
||||||
|
|
||||||
\backslash
|
|
||||||
noindent
|
|
||||||
\end_layout
|
|
||||||
|
|
||||||
\end_inset
|
|
||||||
|
|
||||||
can be typeset as
|
can be typeset as
|
||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
@ -2247,7 +2238,7 @@ entrymodifiers={++[o][F-]}
|
|||||||
\family default
|
\family default
|
||||||
, all following entries inside
|
, all following entries inside
|
||||||
\begin_inset ERT
|
\begin_inset ERT
|
||||||
status collapsed
|
status open
|
||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
|
|
||||||
@ -2430,7 +2421,7 @@ Recall that in LyX's math-editor any pair of braces
|
|||||||
to the parameter is entered.
|
to the parameter is entered.
|
||||||
In connection with
|
In connection with
|
||||||
\begin_inset ERT
|
\begin_inset ERT
|
||||||
status collapsed
|
status open
|
||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
|
|
||||||
@ -2519,7 +2510,7 @@ xymatrix
|
|||||||
|
|
||||||
1-
|
1-
|
||||||
\begin_inset ERT
|
\begin_inset ERT
|
||||||
status collapsed
|
status open
|
||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
|
|
||||||
@ -2621,7 +2612,6 @@ _
|
|||||||
\family default
|
\family default
|
||||||
followed by a space opens a box for an upper index.
|
followed by a space opens a box for an upper index.
|
||||||
You can enter any LaTeX-code as a label.
|
You can enter any LaTeX-code as a label.
|
||||||
|
|
||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
\begin_layout Subsection
|
\begin_layout Subsection
|
||||||
@ -2732,21 +2722,8 @@ where
|
|||||||
\emph on
|
\emph on
|
||||||
measure
|
measure
|
||||||
\emph default
|
\emph default
|
||||||
is any valid
|
is any valid TeX-measure that should be entered as upper or lower index
|
||||||
\begin_inset ERT
|
to the first slash /.
|
||||||
status collapsed
|
|
||||||
|
|
||||||
\begin_layout Plain Layout
|
|
||||||
|
|
||||||
|
|
||||||
\backslash
|
|
||||||
TeX
|
|
||||||
\end_layout
|
|
||||||
|
|
||||||
\end_inset
|
|
||||||
|
|
||||||
-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
|
Make sure that the ending slash does not end up being part of the upper
|
||||||
or lower index.
|
or lower index.
|
||||||
\end_layout
|
\end_layout
|
||||||
@ -2769,33 +2746,20 @@ lly convert it into graphical output.
|
|||||||
A more serious reason could be a syntactical error in your input.
|
A more serious reason could be a syntactical error in your input.
|
||||||
If necessary, redo the last editing steps, using
|
If necessary, redo the last editing steps, using
|
||||||
\emph on
|
\emph on
|
||||||
Ctrl-z
|
Ctrl+Z
|
||||||
\emph default
|
\emph default
|
||||||
, or try to translate the
|
, or try to translate the LyX-file into
|
||||||
\begin_inset ERT
|
|
||||||
status collapsed
|
|
||||||
|
|
||||||
\begin_layout Plain Layout
|
|
||||||
|
|
||||||
|
|
||||||
\backslash
|
|
||||||
LyX
|
|
||||||
\end_layout
|
|
||||||
|
|
||||||
\end_inset
|
|
||||||
|
|
||||||
-file into
|
|
||||||
\emph on
|
\emph on
|
||||||
dvi
|
DVI
|
||||||
\emph default
|
\emph default
|
||||||
using
|
using
|
||||||
\emph on
|
\emph on
|
||||||
Ctrl-d
|
Ctrl+D
|
||||||
\emph default
|
\emph default
|
||||||
or
|
or
|
||||||
\family sans
|
\family sans
|
||||||
View\SpecialChar \menuseparator
|
View\SpecialChar \menuseparator
|
||||||
Dvi
|
DVI
|
||||||
\family default
|
\family default
|
||||||
.
|
.
|
||||||
There should be some error generated, which hopefully gives you a hint
|
There should be some error generated, which hopefully gives you a hint
|
||||||
@ -2807,20 +2771,7 @@ Hacks
|
|||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
\begin_layout Standard
|
\begin_layout Standard
|
||||||
Certain things do not work correctly inside
|
Certain things do not work correctly inside LyX.
|
||||||
\begin_inset ERT
|
|
||||||
status collapsed
|
|
||||||
|
|
||||||
\begin_layout Plain Layout
|
|
||||||
|
|
||||||
|
|
||||||
\backslash
|
|
||||||
LyX
|
|
||||||
\end_layout
|
|
||||||
|
|
||||||
\end_inset
|
|
||||||
|
|
||||||
.
|
|
||||||
The ones that we (used to) miss most are the horizontal and vertical scaling
|
The ones that we (used to) miss most are the horizontal and vertical scaling
|
||||||
of diagrams, and the correct positioning of arrows.
|
of diagrams, and the correct positioning of arrows.
|
||||||
There are some workarounds that we are explaining here.
|
There are some workarounds that we are explaining here.
|
||||||
@ -2836,7 +2787,7 @@ It is often convenient to stretch the horizontal or the vertical dimensions
|
|||||||
of an entire diagram by using spacing commands for rows and/or columns.
|
of an entire diagram by using spacing commands for rows and/or columns.
|
||||||
According to the
|
According to the
|
||||||
\begin_inset ERT
|
\begin_inset ERT
|
||||||
status collapsed
|
status open
|
||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
|
|
||||||
@ -2860,7 +2811,7 @@ xymatrix@R=1pc{
|
|||||||
\family default
|
\family default
|
||||||
defines an
|
defines an
|
||||||
\begin_inset ERT
|
\begin_inset ERT
|
||||||
status collapsed
|
status open
|
||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
|
|
||||||
@ -2892,7 +2843,7 @@ xymatrix@C=
|
|||||||
Unfortunately, these commands do currently not work inside LyX, as the
|
Unfortunately, these commands do currently not work inside LyX, as the
|
||||||
@-character is interpreted by LyX as ending the
|
@-character is interpreted by LyX as ending the
|
||||||
\begin_inset ERT
|
\begin_inset ERT
|
||||||
status collapsed
|
status open
|
||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
|
|
||||||
@ -2910,7 +2861,7 @@ Xy
|
|||||||
\begin_layout Standard
|
\begin_layout Standard
|
||||||
Knowing that
|
Knowing that
|
||||||
\begin_inset ERT
|
\begin_inset ERT
|
||||||
status collapsed
|
status open
|
||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
|
|
||||||
@ -2994,7 +2945,7 @@ xymatrixcolsep@
|
|||||||
\backslash
|
\backslash
|
||||||
xyR{...} into the
|
xyR{...} into the
|
||||||
\begin_inset ERT
|
\begin_inset ERT
|
||||||
status collapsed
|
status open
|
||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
|
|
||||||
@ -3024,8 +2975,8 @@ xyC
|
|||||||
{
|
{
|
||||||
\family default
|
\family default
|
||||||
or both.
|
or both.
|
||||||
Dont't forget the backslashes and remember, that the closing brace is automatic
|
Don't forget the backslashes and remember, that the closing brace is automatica
|
||||||
ally supplied by LyX.
|
lly supplied by LyX.
|
||||||
Inside the braces enter the dimensions.
|
Inside the braces enter the dimensions.
|
||||||
The default is
|
The default is
|
||||||
\family typewriter
|
\family typewriter
|
||||||
@ -3062,7 +3013,7 @@ Label positioning
|
|||||||
\begin_layout Standard
|
\begin_layout Standard
|
||||||
Another useful
|
Another useful
|
||||||
\begin_inset ERT
|
\begin_inset ERT
|
||||||
status collapsed
|
status open
|
||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
|
|
||||||
@ -3073,13 +3024,13 @@ Xy
|
|||||||
|
|
||||||
\end_inset
|
\end_inset
|
||||||
|
|
||||||
-vcommand allows the correct positioning of labels along the shaft of arrows.
|
-command allows the correct positioning of labels along the shaft of arrows.
|
||||||
This feature is sometimes necessary, when the default position of a label
|
This feature is sometimes necessary, when the default position of a label
|
||||||
would otherwise clutter the picture, or would even coincide with other
|
would otherwise clutter the picture, or would even coincide with other
|
||||||
items, such as the intersection of the arrows in the figure below.
|
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,
|
In order to shift a label position alongside the shaft of an arrow,
|
||||||
\begin_inset ERT
|
\begin_inset ERT
|
||||||
status collapsed
|
status open
|
||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
|
|
||||||
@ -3294,7 +3245,7 @@ Further
|
|||||||
\family typewriter
|
\family typewriter
|
||||||
|
|
||||||
\begin_inset ERT
|
\begin_inset ERT
|
||||||
status collapsed
|
status open
|
||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
|
|
||||||
@ -3321,7 +3272,7 @@ xymatrix
|
|||||||
\family typewriter
|
\family typewriter
|
||||||
|
|
||||||
\begin_inset ERT
|
\begin_inset ERT
|
||||||
status collapsed
|
status open
|
||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
|
|
||||||
@ -3339,7 +3290,7 @@ Xy
|
|||||||
\family typewriter
|
\family typewriter
|
||||||
|
|
||||||
\begin_inset ERT
|
\begin_inset ERT
|
||||||
status collapsed
|
status open
|
||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
|
|
||||||
@ -3371,7 +3322,7 @@ key "Lauda"
|
|||||||
|
|
||||||
explains how to use
|
explains how to use
|
||||||
\begin_inset ERT
|
\begin_inset ERT
|
||||||
status collapsed
|
status open
|
||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
|
|
||||||
@ -3387,7 +3338,7 @@ Xy
|
|||||||
\family typewriter
|
\family typewriter
|
||||||
|
|
||||||
\begin_inset ERT
|
\begin_inset ERT
|
||||||
status collapsed
|
status open
|
||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
|
|
||||||
@ -3424,7 +3375,7 @@ key "xypic manual"
|
|||||||
Kristoffer H.
|
Kristoffer H.
|
||||||
Rose:
|
Rose:
|
||||||
\begin_inset ERT
|
\begin_inset ERT
|
||||||
status collapsed
|
status open
|
||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
|
|
||||||
@ -3526,7 +3477,7 @@ key "Lauda"
|
|||||||
|
|
||||||
Aarlon Lauda:
|
Aarlon Lauda:
|
||||||
\begin_inset ERT
|
\begin_inset ERT
|
||||||
status collapsed
|
status open
|
||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
|
|
||||||
@ -3569,7 +3520,7 @@ key "Ouvaton"
|
|||||||
|
|
||||||
Filipp Ouvaton:
|
Filipp Ouvaton:
|
||||||
\begin_inset ERT
|
\begin_inset ERT
|
||||||
status collapsed
|
status open
|
||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user