-#LyX 1.6.0svn created this file. For more info see http://www.lyx.org/
-\lyxformat 334
+#LyX 1.6.2svn created this file. For more info see http://www.lyx.org/
+\lyxformat 345
\begin_document
\begin_header
\textclass book
\fi % end if pdflatex is used
- % the pages of the TOC are numbered roman
- % and a pdf-bookmark for the TOC is added
- \pagenumbering{roman}
- \let\myTOC\tableofcontents
- \renewcommand\tableofcontents{%
- \pdfbookmark[1]{Contents}{}
- \myTOC
- \cleardoublepage
- \pagenumbering{arabic} }
+% the pages of the TOC is numbered roman
+% and a pdf-bookmark for the TOC is added
+\let\myTOC\tableofcontents
+\renewcommand\tableofcontents{%
+ \frontmatter
+ \pdfbookmark[1]{\contentsname}{}
+ \myTOC
+ \mainmatter }
% redefine the \LyX macro for PDF bookmarks
\def\LyX{\texorpdfstring{%
L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
- {LyX }}
+ {LyX}}
\end_preamble
+\use_default_options false
\language english
\inputencoding auto
\font_roman default
\font_osf false
\font_sf_scale 100
\font_tt_scale 100
+
\graphics default
\paperfontsize 12
\spacing single
\pdf_bookmarks true
\pdf_bookmarksnumbered true
\pdf_bookmarksopen true
-\pdf_bookmarksopenlevel 2
+\pdf_bookmarksopenlevel 1
\pdf_breaklinks false
\pdf_pdfborder false
\pdf_colorlinks true
\pdf_backref false
-\pdf_pagebackref false
\pdf_pdfusetitle false
\pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true,pdfstartview=XYZ, plainpages=false, pdfpagelabels"
\papersize default
Tutorial
\emph default
, you should definitely check out Section
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
you can have a look at the
\emph on
Embedded
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
Objects
\begin_layout Section
Your first LyX document
-\begin_inset CommandInset label
-LatexCommand label
-name "sec:Your-first-LyX"
-
-\end_inset
-
-
\end_layout
\begin_layout Standard
\begin_inset Quotes erd
\end_inset
- hints about how to fix things
+ hints about how to fix things.
\begin_inset Foot
status collapsed
\end_inset
-.
If you want to cheat, or check what you've done, there's also a file called
\family typewriter
\family sans
File\SpecialChar \menuseparator
Save
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
As
\family sans
File\SpecialChar \menuseparator
Save
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
As\SpecialChar \@.
\family sans
Edit\SpecialChar \menuseparator
Find
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
&
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
Replace
In the dialog, search with the
\family sans
Find
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
Next
\family sans
Replace
\family default
- button to replace a word you've found
+ button to replace a word you've found.
\begin_inset Foot
status collapsed
\end_inset
-.
If you like, you can specify whether to make the search case-sensitive,
or to search for only complete words; you can also search backwards through
the document.
\begin_layout Description
Character
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
Formatting You can
\family sans
Edit\SpecialChar \menuseparator
Text
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
Style
\begin_layout Subsection
WYSIWYM: Whitespace in LyX
-\begin_inset CommandInset label
-LatexCommand label
-name "sec:whitespace"
-
-\end_inset
-
-
\end_layout
\begin_layout Standard
\family sans
HFill
\family default
-s and vertical space --- which are more powerful and versatile than multiple
- spaces or blank lines --- and ways to change font sizes, character styles,
+s and vertical space — which are more powerful and versatile than multiple
+ spaces or blank lines — and ways to change font sizes, character styles,
and paragraph alignments by hand.
The idea, though, is that you can write your whole document, focusing on
content, and just worry about that fine-tuning at the end.
\family typewriter
More
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
Stuff
\begin_layout Standard
It gets better.
Go to the end of Section
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
1 again (after
\family default
.
Section
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
\end_inset
, which used to be Section
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
2, has been automatically renumbered to Section
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
3! In true WYSIWYM fashion, you just need to identify the text that makes
.
If you put yet another section before Section
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
2, Section
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
2 will be renumbered as Section 3, and the subsections will be renumbered
\family default
s, but you're only allowed to use them in certain types (text classes) of
LyX documents (see Section
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
\family sans
List
\family default
- environment --- not found in LaTeX --- is a slightly different form of
- the
+ environment is a slightly different form of the
\family sans
Description
\family default
, one way is to use the
\family sans
Protected
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
Break
environment (or just use the keybinding,
\family sans
M-p
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
s
the words with
\family sans
Protected
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
Blank
For example, books are generally printed double-sided, while articles are
single-sided.
In addition, many documents contain special environments: letters contain
- some environments --- such as the sender's address and the signature ---
- which do not make sense in a book or article.
+ some environments — such as the sender's address and the signature — which
+ do not make sense in a book or article.
The LyX
\emph on
document class
American Mathematics Society journals using the
\family sans
Article
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
(AMS)
\emph default
section of the
\emph on
-Extended Features
+Additional Features
\emph default
manual for many more details.
\end_layout
\family sans
File\SpecialChar \menuseparator
New
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
from
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
Template
box, you'll see several environments, like the
\family sans
My
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
Address
\begin_layout Plain Layout
One warning, if you're writing from a template.
- If you erase all of the text in an environment --- for example, if you
- erase the whole
+ If you erase all of the text in an environment — for example, if you erase
+ the whole
\family sans
My
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
Address
\family default
- field so that you can replace it with your own --- and then you move the
+ field so that you can replace it with your own — and then you move the
cursor without writing any text, the environment may disappear.
This is because most environments cannot exist without any text in them.
Just reselect the environment from the
\end_layout
\begin_layout Standard
-LyX (like LaTeX) considers the title --- which may contain the actual title,
- the author, the date, and even an abstract of a paper --- to be a separate
+LyX (like LaTeX) considers the title — which may contain the actual title,
+ the author, the date, and even an abstract of a paper — to be a separate
part of the document.
\end_layout
\begin_layout Section
Labels and Cross-References
-\begin_inset CommandInset label
-LatexCommand label
-name "sec:labels"
-
-\end_inset
-
-
\end_layout
\begin_layout Standard
LyX (and LaTeX) over conventional word processors.
\end_layout
-\begin_layout Subsection*
+\begin_layout Subsection
Your first label
\end_layout
\end_layout
\begin_layout Standard
-So far you haven't done anything --- the DVI output will look exactly the
+So far you haven't done anything — the DVI output will look exactly the
same, since labels don't show up in the printed document.
However, now that you have added a label, you can refer to that label with
cross-references.
We'll do that next.
\end_layout
-\begin_layout Subsection*
+\begin_layout Subsection
Your first cross-reference
\end_layout
\begin_layout Standard
-Place the cursor somewhere in Section
-\begin_inset Space ~
+Place the cursor somewhere in section
+\begin_inset space ~
\end_inset
2 of your document.
\begin_inset Newline newline
\end_inset
-Section , which can be found on page .
+section, which can be found on page.
\end_layout
\begin_layout Standard
-Now --- with the cursor after the word
+Now set the cursor after the word
\begin_inset Quotes eld
\end_inset
\begin_inset Quotes erd
\end_inset
- --- choose
+ and choose
\family sans
Insert\SpecialChar \menuseparator
Cross
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
Reference
(To be really correct, you should put a
\family sans
Protected
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
Blank
Same for the page reference.)
\end_layout
+\begin_layout Standard
+Alternatively to that method, you can right-click on a label and use in
+ the appearing context menu
+\family sans
+Copy as Reference
+\family default
+.
+ The cross-reference to this label is now in the clipboard and can be copied
+ to the actual cursor position via the menu
+\family sans
+Edit\SpecialChar \menuseparator
+Paste
+\family default
+ (shortcut Ctrl+V).
+\end_layout
+
\begin_layout Standard
LyX puts the references in a box right where the cursor was.
In the printed document, this reference marker will be replaced with either
\end_inset
Section
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
2
\end_inset
Page
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
1
\end_inset
(or whatever page Section
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
2's title is on).
dialog, clicking
\family sans
Go
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
to
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
Label
will move the cursor to the referenced label.
\end_layout
-\begin_layout Subsection*
+\begin_layout Subsection
More fun with labels
\end_layout
We told you that LyX takes care about numbering cross-references; now you
can test that.
Add a new section before Section
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
2.
- Update the DVI view, and --- voilà! --- the section cross reference changed
+ Update the DVI view, and — voilà! — the section cross reference changed
to
\begin_inset Quotes eld
\end_inset
\end_inset
to a subsection, and the cross-reference will reference Subsection
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
2.1 instead of Section
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
3.
\begin_layout Plain Layout
By the way, copying a chapter title may cause an error, because chapters
aren't allowed in the article class, see section
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
\end_inset
the footnote.
- You can unfold the footnote at any time --- and re-edit its text, if you
- want --- by clicking again on the
+ You can unfold the footnote at any time and re-edit its text by clicking
+ again on the
\begin_inset Quotes eld
\end_inset
\family sans
Insert\SpecialChar \menuseparator
Marginal
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
Note
Click on the boxed reference number, and the
\family sans
Bibliography
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
item
The
\family sans
Text
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
after
field in the
\family sans
Bibliography
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
item
\family sans
Insert\SpecialChar \menuseparator
List
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
/
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
TOC\SpecialChar \menuseparator
Table
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
of
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
Contents
If, on the other hand, you've never written in LaTeX, then the
\family sans
Math
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
Panel
Insert\SpecialChar \menuseparator
Math\SpecialChar \menuseparator
Inline
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
Formula
\family default
; this can be frustrating, because you can't see what an expression looks
like until you LaTeX the file, and may have to spend time to find e.
-\begin_inset Space \thinspace{}
+\begin_inset space \thinspace{}
\end_inset
g.
-\begin_inset Space ~
+\begin_inset space \space{}
\end_inset
missing brackets.
An exponent can be entered from the
\family sans
Math
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
Toolbar
\end_layout
\begin_layout Standard
-Writing a subscript (index) is just as easy --- start one by typing the
- underscore key,
+Writing a subscript (index) is just as easy — start one by typing the underscore
+ key,
\begin_inset Quotes eld
\end_inset
The
\family sans
Math
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
Toolbar
However, we're going to concentrate on using the
\family sans
Math
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
Toolbars
\end_inset
Math
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
(auto)
The
\family sans
Math
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
Toolbar
will look bad if you have a big fraction or matrix inside the parentheses.
So better use in this case one of the three delimiter buttons that insert
directly e.
-\begin_inset Space \thinspace{}
+\begin_inset space \thinspace{}
\end_inset
g.
-\begin_inset Space ~
+\begin_inset space \space{}
\end_inset
a (
-\begin_inset Space \thinspace{}
+\begin_inset space \thinspace{}
\end_inset
) pair.
on the button you want from the
\family sans
Math
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
Toolbar
in the
\family sans
Math
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
Toolbar
Click on the
\family sans
Math
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
Toolbar
\begin_layout Subsection
Matrices
-\begin_inset CommandInset label
-LatexCommand label
-name "sec:matrices"
-
-\end_inset
-
-
\end_layout
\begin_layout Standard
in the
\family sans
Math
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
Toolbar
Edit\SpecialChar \menuseparator
Math\SpecialChar \menuseparator
Rows
-\begin_inset Space \thinspace{}
+\begin_inset space \thinspace{}
\end_inset
&
-\begin_inset Space \thinspace{}
+\begin_inset space \thinspace{}
\end_inset
Columns
in the
\family sans
Math
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
Toolbar
Insert\SpecialChar \menuseparator
Math\SpecialChar \menuseparator
Cases
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
Environment
\end_layout
\begin_layout Itemize
-Change typefaces, e.g., to write bold-face text in an expression.
+Change typefaces, e.
+\begin_inset space \thinspace{}
+\end_inset
+
+g.
+\begin_inset space \space{}
+\end_inset
+
+to write bold-face text in an expression.
\end_layout
\begin_layout Itemize
and the
\emph on
Embedded
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
Objects
to get a
\family sans
Table
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
Settings
\begin_layout Itemize
LyX can read LaTeX documents.
See section
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
new LyX users will most likely be interested in.
In the interests of keeping the Tutorial short, we will give only minimal
information here.
- The the
+ The
\emph on
Extended
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
Features
and the
\emph on
Embedded
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
Objects
\family sans
Insert\SpecialChar \menuseparator
TeX
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
Code
This may be faster than using the
\family sans
Math
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
Toolbar
usepackage{foo}
\family default
in the preamble (see section
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
\end_inset
-), you can use any package you want --- although you won't have WYSIWYM
- support for that package's features.
+), you can use any package you want — although you won't have WYSIWYM support
+ for that package's features.
\end_layout
\begin_layout Subsection
-Importing LaTeX Documents ---
+Importing LaTeX Documents —
\family typewriter
tex2lyx
\family default
File\SpecialChar \menuseparator
Import\SpecialChar \menuseparator
LaTeX
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
(plain)
x
\bar default
tra
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
Options
Document\SpecialChar \menuseparator
Settings\SpecialChar \menuseparator
LaTeX
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
Preamble
al references to be used in multiple documents.
Select
\family sans
-\bar under
-I
-\bar default
-nsert\SpecialChar \menuseparator
+Insert\SpecialChar \menuseparator
List
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
/
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
-T
-\bar under
-O
-\bar default
-C\SpecialChar \menuseparator
-
-\bar under
-B
-\bar default
-ibTeX
-\begin_inset Space ~
+TOC\SpecialChar \menuseparator
+BibTeX
+\begin_inset space ~
\end_inset
Bibliography
Citation
\family default
(see section
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
When this happens, LyX will open a
\family sans
LaTeX
-\begin_inset Space ~
+\begin_inset space ~
\end_inset
Errors