-#LyX 1.5.3svn created this file. For more info see http://www.lyx.org/
-\lyxformat 276
+#LyX 1.6.0beta3 created this file. For more info see http://www.lyx.org/
+\lyxformat 335
\begin_document
\begin_header
\textclass book
\ifpdf % if pdflatex is used
% set fonts for nicer pdf view
- \IfFileExists{lmodern.sty}{\usepackage{lmodern}}
- {\usepackage[scaled=0.92]{helvet}
- \usepackage{mathptmx}
- \usepackage{courier} }
-
- % link all cross references and URLs in pdf output
- \usepackage[colorlinks=true, bookmarks, bookmarksnumbered,
- bookmarksopen, bookmarksopenlevel=2,
- linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,
- pdfpagelayout=OneColumn, pdfnewwindow=true,
- pdfstartview=XYZ, plainpages=false, pdfpagelabels,
- pdfauthor={LyX Team}, pdftex,
- pdftitle={The LyX Tutorial},pdfsubject={LyX-documentation Tutorial},
- pdfkeywords={LyX, documentation}]{hyperref}
-
-\else % if dvi or ps is produced
-
- % link all cross references and URLs in dvi output
- \usepackage[ps2pdf]{hyperref}
+ \IfFileExists{lmodern.sty}{\usepackage{lmodern}}{}
\fi % end if pdflatex is used
\graphics default
\paperfontsize 12
\spacing single
+\use_hyperref true
+\pdf_title "The LyX Tutorial"
+\pdf_author "LyX Team"
+\pdf_subject "LyX-documentation Tutorial"
+\pdf_keywords "LyX, documentation"
+\pdf_bookmarks true
+\pdf_bookmarksnumbered true
+\pdf_bookmarksopen true
+\pdf_bookmarksopenlevel 2
+\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
\use_geometry false
\use_amsmath 0
\begin_inset Foot
status collapsed
-\begin_layout Standard
+\begin_layout Plain Layout
If you have comments or error corrections, please send them to the LyX Documenta
tion mailing list,
\family typewriter
-lyx-docs@lists.lyx.org
+
+\begin_inset CommandInset href
+LatexCommand href
+target "lyx-docs@lists.lyx.org"
+type "mailto:"
+
+\end_inset
+
+
\family default
.
\end_layout
\end_layout
\begin_layout Standard
-\begin_inset LatexCommand tableofcontents
+\begin_inset CommandInset toc
+LatexCommand tableofcontents
\end_inset
\emph on
Tutorial
\emph default
-, you should definitely check out Section\InsetSpace ~
+, you should definitely check out Section
+\begin_inset space ~
+\end_inset
+
-\begin_inset LatexCommand ref
+\begin_inset CommandInset ref
+LatexCommand ref
reference "sec:latexusers"
\end_inset
If you want to learn some of the neat tricks you can do with LaTeX in LyX,
you can have a look at the
\emph on
-Embedded\InsetSpace ~
+Embedded
+\begin_inset space ~
+\end_inset
+
Objects
\emph default
manual.
\begin_layout Section
Your first LyX document
-\begin_inset LatexCommand label
+\begin_inset CommandInset label
+LatexCommand label
name "sec:Your-first-LyX"
\end_inset
\begin_inset Foot
status collapsed
-\begin_layout Standard
+\begin_layout Plain Layout
They can also serve as good examples of how to use the many features of
LyX.
\end_layout
\begin_inset Foot
status collapsed
-\begin_layout Standard
+\begin_layout Plain Layout
The hints are located in yellow
\begin_inset Quotes eld
\end_inset
Open the raw document, and use
\family sans
File\SpecialChar \menuseparator
-Save\InsetSpace ~
+Save
+\begin_inset space ~
+\end_inset
+
As
\family default
to save a copy in your own directory for you to work on.
Save your document with
\family sans
File\SpecialChar \menuseparator
-Save\InsetSpace ~
+Save
+\begin_inset space ~
+\end_inset
+
As\SpecialChar \@.
\end_layout
\begin_inset Foot
status collapsed
-\begin_layout Standard
+\begin_layout Plain Layout
You can save time by leaving the DVI-viewer running in the background.
Then, you can use
\family sans
Find/Replace Use
\family sans
Edit\SpecialChar \menuseparator
-Find\InsetSpace ~
-&\InsetSpace ~
+Find
+\begin_inset space ~
+\end_inset
+
+&
+\begin_inset space ~
+\end_inset
+
Replace
\family default
- to search.
+ (toolbar button
+\begin_inset Graphics
+ filename ../images/dialog-show_findreplace.png
+ scale 75
+
+\end_inset
+
+) to search.
In the dialog, search with the
\family sans
-Find\InsetSpace ~
+Find
+\begin_inset space ~
+\end_inset
+
Next
\family default
button, and use the
\begin_inset Foot
status collapsed
-\begin_layout Standard
+\begin_layout Plain Layout
Close the window when you're done or leave it open if you find it more convenien
t.
Most dialog boxes in LyX can operate like this.
\end_layout
\begin_layout Description
-Character\InsetSpace ~
+Character
+\begin_inset space ~
+\end_inset
+
Formatting You can
\emph on
emphasize
the
\family sans
Edit\SpecialChar \menuseparator
-Text\InsetSpace ~
+Text
+\begin_inset space ~
+\end_inset
+
Style
\family default
dialog (toolbar button
\begin_layout Subsection
WYSIWYM: Whitespace in LyX
-\begin_inset LatexCommand label
+\begin_inset CommandInset label
+LatexCommand label
name "sec:whitespace"
\end_inset
\end_layout
\begin_layout Standard
-Many commercial word processors are based on the WYSIWYG principle:
+Many word processors are based on the WYSIWYG principle:
\begin_inset Quotes eld
\end_inset
\begin_inset Foot
status collapsed
-\begin_layout Standard
+\begin_layout Plain Layout
You don't have to
\emph on
select
\family typewriter
-More\InsetSpace ~
+More
+\begin_inset space ~
+\end_inset
+
Stuff
\family default
\begin_layout Standard
It gets better.
- Go to the end of Section\InsetSpace ~
+ Go to the end of Section
+\begin_inset space ~
+\end_inset
+
1 again (after
\begin_inset Quotes eld
\end_inset
About This Document
\family default
.
- Section\InsetSpace ~
+ Section
+\begin_inset space ~
+\end_inset
+
\begin_inset Quotes eld
\end_inset
\begin_inset Quotes erd
\end_inset
-, which used to be Section\InsetSpace ~
-2, has been automatically renumbered to Section\InsetSpace ~
-3!
- In true WYSIWYM fashion, you just need to identify the text that makes
+, which used to be Section
+\begin_inset space ~
+\end_inset
+
+2, has been automatically renumbered to Section
+\begin_inset space ~
+\end_inset
+
+3! In true WYSIWYM fashion, you just need to identify the text that makes
up the section titles, and LyX takes care of numbering the sections and
typesetting them.
\end_layout
\end_inset
.
- If you put yet another section before Section\InsetSpace ~
-2, Section\InsetSpace ~
-2 will be renumbered
- as Section 3, and the subsections will be renumbered to
+ If you put yet another section before Section
+\begin_inset space ~
+\end_inset
+
+2, Section
+\begin_inset space ~
+\end_inset
+
+2 will be renumbered as Section 3, and the subsections will be renumbered
+ to
\begin_inset Quotes eld
\end_inset
Section
\family default
s, but you're only allowed to use them in certain types (text classes) of
- LyX documents (see Section\InsetSpace ~
+ LyX documents (see Section
+\begin_inset space ~
+\end_inset
+
-\begin_inset LatexCommand ref
+\begin_inset CommandInset ref
+LatexCommand ref
reference "sec:Document-Classes"
\end_inset
\emph default
, one way is to use the
\family sans
-Protected\InsetSpace ~
+Protected
+\begin_inset space ~
+\end_inset
+
Break
\family default
, which you get by typing
\family default
environment (or just use the keybinding,
\family sans
-M-p\InsetSpace ~
+M-p
+\begin_inset space ~
+\end_inset
+
s
\family default
).
\begin_inset Foot
status collapsed
-\begin_layout Standard
+\begin_layout Plain Layout
LyX won't let you select the first bullet unless you also select the paragraph
\emph on
\begin_inset Foot
status collapsed
-\begin_layout Standard
+\begin_layout Plain Layout
But a typesetter's tab, which will change to fit the size of the largest
term, not a pathetic, rigid, unchangeable typewriter
\family sans
If you want to have more than one word in the definition, then separate
the words with
\family sans
-Protected\InsetSpace ~
+Protected
+\begin_inset space ~
+\end_inset
+
Blank
\family default
s.
\begin_inset Foot
status collapsed
-\begin_layout Standard
+\begin_layout Plain Layout
used in this Tutorial for the long typing examples
\end_layout
Verse
\family default
in
-\newline
+\begin_inset Newline newline
+\end_inset
+
\family typewriter
example_raw.lyx
\begin_layout Section
Document Classes
-\begin_inset LatexCommand label
+\begin_inset CommandInset label
+LatexCommand label
name "sec:Document-Classes"
\end_inset
\begin_inset Foot
status collapsed
-\begin_layout Standard
+\begin_layout Plain Layout
for LaTeX users: this is equivalent to the LaTeX document class
\end_layout
\begin_inset Foot
status collapsed
-\begin_layout Standard
+\begin_layout Plain Layout
That's usually the default document class
\end_layout
For example, LyX supports typesetting (and extra environments) for the
American Mathematics Society journals using the
\family sans
-Article\InsetSpace ~
+Article
+\begin_inset space ~
+\end_inset
+
(AMS)
\family default
document class.
\begin_inset Tabular
<lyxtabular version="3" rows="7" columns="2">
<features>
-<column alignment="center" valignment="top" leftline="true" width="0pt">
-<column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
-<row topline="true" bottomline="true">
-<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+<column alignment="center" valignment="top" width="0pt">
+<column alignment="center" valignment="top" width="0pt">
+<row>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
\begin_inset Text
-\begin_layout Standard
+\begin_layout Plain Layout
Name
\end_layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text
-\begin_layout Standard
+\begin_layout Plain Layout
Notes
\end_layout
\end_inset
</cell>
</row>
-<row topline="true">
+<row>
<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text
-\begin_layout Standard
+\begin_layout Plain Layout
article
\end_layout
<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text
-\begin_layout Standard
+\begin_layout Plain Layout
one-sided, no chapters
\end_layout
\end_inset
</cell>
</row>
-<row topline="true">
+<row>
<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text
-\begin_layout Standard
+\begin_layout Plain Layout
article (AMS)
\end_layout
<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text
-\begin_layout Standard
+\begin_layout Plain Layout
layout & environments for American Math Society
\end_layout
\end_inset
</cell>
</row>
-<row topline="true">
+<row>
<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text
-\begin_layout Standard
+\begin_layout Plain Layout
report
\end_layout
<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text
-\begin_layout Standard
+\begin_layout Plain Layout
longer than article, two-sided
\end_layout
\end_inset
</cell>
</row>
-<row topline="true" bottomline="true">
-<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+<row>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
\begin_inset Text
-\begin_layout Standard
+\begin_layout Plain Layout
book
\end_layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text
-\begin_layout Standard
+\begin_layout Plain Layout
report + front and back matter
\end_layout
\end_inset
</cell>
</row>
-<row bottomline="true">
-<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+<row>
+<cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
\begin_inset Text
-\begin_layout Standard
+\begin_layout Plain Layout
presentation
\end_layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+<cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text
-\begin_layout Standard
+\begin_layout Plain Layout
transparencies
\end_layout
\end_inset
</cell>
</row>
-<row bottomline="true">
-<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+<row>
+<cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
\begin_inset Text
-\begin_layout Standard
+\begin_layout Plain Layout
letter
\end_layout
\end_inset
</cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+<cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text
-\begin_layout Standard
+\begin_layout Plain Layout
lots of extra environments for address, signature\SpecialChar \ldots{}
\end_layout
\end_layout
\begin_layout Standard
-ne way to write a letter would be to open a new file, and choose a
+One way to write a letter would be to open a new file, and choose a
\family sans
Letter
\family default
Open a new file with
\family sans
File\SpecialChar \menuseparator
-New\InsetSpace ~
-from\InsetSpace ~
+New
+\begin_inset space ~
+\end_inset
+
+from
+\begin_inset space ~
+\end_inset
+
Template
\family default
.
\family default
box, you'll see several environments, like the
\family sans
-My\InsetSpace ~
+My
+\begin_inset space ~
+\end_inset
+
Address
\family default
environment, which don't even exist in most other document classes.
\begin_inset Foot
status collapsed
-\begin_layout Standard
+\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
\family sans
-My\InsetSpace ~
+My
+\begin_inset space ~
+\end_inset
+
Address
\family default
field so that you can replace it with your own --- and then you move the
\begin_inset Foot
status collapsed
-\begin_layout Standard
+\begin_layout Plain Layout
You should not be using the letter any more, since the
\family sans
Letter
\family default
- textclass doesn't allow titles.
+ document class doesn't allow titles.
\end_layout
\end_inset
\begin_layout Section
Labels and Cross-References
-\begin_inset LatexCommand label
+\begin_inset CommandInset label
+LatexCommand label
name "sec:labels"
\end_inset
\begin_inset Foot
status collapsed
-\begin_layout Standard
+\begin_layout Plain Layout
Floats are explained in the
\emph on
User's Guide
\family default
or the toolbar button
\begin_inset Graphics
- filename D:/LyXSVN/LyX1.5.x/lib/images/label-insert.png
+ filename ../images/label-insert.png
scale 75
scaleBeforeRotation
\end_layout
\begin_layout Standard
-Place the cursor somewhere in Section\InsetSpace ~
+Place the cursor somewhere in Section
+\begin_inset space ~
+\end_inset
+
2 of your document.
Type
\end_layout
\begin_layout LyX-Code
If you want to know more about this document, then see
-\newline
-Section , which can
- be found on page .
+\begin_inset Newline newline
+\end_inset
+
+Section , which can be found on page .
\end_layout
\begin_layout Standard
--- choose
\family sans
Insert\SpecialChar \menuseparator
-Cross\InsetSpace ~
+Cross
+\begin_inset space ~
+\end_inset
+
Reference
\family default
or the toolbar button
.
(To be really correct, you should put a
\family sans
-Protected\InsetSpace ~
+Protected
+\begin_inset space ~
+\end_inset
+
Blank
\family default
in between the word
\begin_inset Quotes eld
\end_inset
-Section\InsetSpace ~
+Section
+\begin_inset space ~
+\end_inset
+
2
\begin_inset Quotes erd
\end_inset
\begin_inset Quotes eld
\end_inset
-Page\InsetSpace ~
+Page
+\begin_inset space ~
+\end_inset
+
1
\begin_inset Quotes erd
\end_inset
- (or whatever page Section\InsetSpace ~
+ (or whatever page Section
+\begin_inset space ~
+\end_inset
+
2's title is on).
\end_layout
Conveniently, a cross-reference acts as a hyperlink when you are editing
a document in LyX; clicking on it will pop up the
\family sans
-Reference
+Cross-Reference
\family default
dialog, clicking
\family sans
-Go\InsetSpace ~
-to\InsetSpace ~
+Go
+\begin_inset space ~
+\end_inset
+
+to
+\begin_inset space ~
+\end_inset
+
Label
\family default
will move the cursor to the referenced label.
\begin_layout Standard
We told you that LyX takes care about numbering cross-references; now you
can test that.
- Add a new section before Section\InsetSpace ~
+ Add a new section before Section
+\begin_inset space ~
+\end_inset
+
2.
Update the DVI view, and --- voilà ! --- the section cross reference changed
to
\begin_inset Quotes erd
\end_inset
- to a subsection, and the cross-reference will reference Subsection\InsetSpace ~
-2.1 instead
- of Section\InsetSpace ~
+ to a subsection, and the cross-reference will reference Subsection
+\begin_inset space ~
+\end_inset
+
+2.1 instead of Section
+\begin_inset space ~
+\end_inset
+
3.
The page reference won't change unless you add a whole page of text before
the label, of course.
\begin_inset Foot
status collapsed
-\begin_layout Standard
+\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\InsetSpace ~
+ aren't allowed in the article class, see section
+\begin_inset space ~
+\end_inset
+
-\begin_inset LatexCommand ref
+\begin_inset CommandInset ref
+LatexCommand ref
reference "sec:Document-Classes"
\end_inset
\begin_inset Foot
status collapsed
-\begin_layout Standard
+\begin_layout Plain Layout
It may be easier to select it using the keyboard.
You might accidentally open the footnote if you're trying to select the
marker itself with the mouse.
Margin notes can be added using the menu
\family sans
Insert\SpecialChar \menuseparator
-Marginal\InsetSpace ~
+Marginal
+\begin_inset space ~
+\end_inset
+
Note
\family default
or the toolbar button
\begin_layout Section
Bibliographies
-\begin_inset LatexCommand label
+\begin_inset CommandInset label
+LatexCommand label
name "sec:bibliographies"
\end_inset
Note that LyX automatically puts a number in a box before each reference.
Click on the boxed reference number, and the
\family sans
-Bibliography\InsetSpace ~
+Bibliography
+\begin_inset space ~
+\end_inset
+
item
\family default
dialog box appears.
\begin_layout Standard
The
\family sans
-Text\InsetSpace ~
+Text
+\begin_inset space ~
+\end_inset
+
after
\family default
field in the
\family default
field in the
\family sans
-Bibliography\InsetSpace ~
+Bibliography
+\begin_inset space ~
+\end_inset
+
item
\family default
dialog.
\family sans
Insert\SpecialChar \menuseparator
-List\InsetSpace ~
-/\InsetSpace ~
+List
+\begin_inset space ~
+\end_inset
+
+/
+\begin_inset space ~
+\end_inset
+
TOC\SpecialChar \menuseparator
-Table\InsetSpace ~
-of\InsetSpace ~
+Table
+\begin_inset space ~
+\end_inset
+
+of
+\begin_inset space ~
+\end_inset
+
Contents
\family default
.
Document\SpecialChar \menuseparator
Outline
\family default
+ or the toolbar button
+\begin_inset Graphics
+ filename ../images/dialog-toggle_toc.png
+ scale 75
+ scaleBeforeRotation
+
+\end_inset
+
.
This menu will work even if you don't have a table of contents inset in
your document.
commands can be typed in normally, but they will show up in a WYSIWYM fashion.
If, on the other hand, you've never written in LaTeX, then the
\family sans
-Math\InsetSpace ~
-Panel
-\family default
- will allow you to write professional-looking math quickly and easily
-\begin_inset Foot
-status collapsed
-
-\begin_layout Standard
-LyX can't check if the math you're writing is actually
-\emph on
-correct
-\emph default
-.
- Sorry.
-\end_layout
-
+Math
+\begin_inset space ~
\end_inset
-.
+Panel
+\family default
+ will allow you to write professional-looking math quickly and easily.
\end_layout
\begin_layout Section
\end_layout
\begin_layout Standard
-Now, that equation doesn't look very good, even in the
-\family typewriter
-dvi
-\family default
- file; there's no space between the letters and the equals sign, and you'd
- like to write an actual superscript for the
+Now, that equation doesn't look very good in LyX and in the output; there's
+ no space between the letters and the equals sign, and you'd like to write
+ an actual superscript for the
\begin_inset Quotes eld
\end_inset
\begin_layout Standard
Instead, we create a formula that will get typeset properly.
- In order to create a formula, just click the toolbar button with
-\begin_inset Formula $\frac{a+b}{c}$
+ In order to create a formula, just click the toolbar button
+\begin_inset Graphics
+ filename ../images/math-mode.png
+ scale 75
+ scaleBeforeRotation
+
+\end_inset
+
+ or use the menu
+\family sans
+Insert\SpecialChar \menuseparator
+Math\SpecialChar \menuseparator
+Inline
+\begin_inset space ~
\end_inset
- written on it in blue.
+Formula
+\family default
+.
LyX will insert a little blue square, which is an empty math formula.
- LyX has placed the cursor in the blue square, so just type
+ Now just type
\family typewriter
E=mc^2
\family default
\end_layout
\begin_layout Standard
-Run LaTeX and look at the
-\family typewriter
-dvi
-\family default
- file.
+Run LaTeX and look at the output.
Notice that the expression was typeset nicely, with spaces between the
letters and the equals sign, and a superscript
\begin_inset Quotes eld
sqrt
\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 missing
- brackets or other
-\begin_inset Quotes eld
+ like until you LaTeX the file, and may have to spend time to find e.
+\begin_inset space \thinspace{}
\end_inset
-bugs
-\begin_inset Quotes erd
+g.
+\begin_inset space ~
\end_inset
-.
- On the other hand, LyX doesn't attempt to get the expression to look perfect
- (WYSIWYG), but it gives you an extremely good idea of what the expression
- will look like.
+missing brackets.
+ LyX doesn't attempt to get the expression to look perfect (WYSIWYG), but
+ it gives you an extremely good idea of what the expression will look like.
LaTeX then takes care of the professional typesetting.
- 99% of the time, you won't have to make any changes to the font sizes or
- spacing that LaTeX outputs.
- This way (sorry to be so repetitive) you can focus on the
-\emph on
-content
-\emph default
- of your mathematical expressions, not their format.
\end_layout
\begin_layout Section
Select text either with the arrow keys or with the mouse.
\family sans
-\bar under
-E
-\bar default
-dit\SpecialChar \menuseparator
-
-\bar under
-U
-\bar default
-ndo
+Edit\SpecialChar \menuseparator
+Undo
\family default
- works in math mode, as does cutting and pasting.
- One thing to be careful of: if you're right outside a formula and you type
-
+ works in math mode as well as cut and paste.
+ One thing to be careful of: If you are left or right outside a formula
+ and you press
\family sans
Delete
\family default
- (or
+ or
\family sans
Backspace
\family default
-), it will delete the whole expression.
+, respectively, you delete the whole formula.
Luckily, you can just use
\family sans
Undo
\begin_inset Quotes erd
\end_inset
-, then typing
+, then press
\family sans
Up
\family default
- will move the cursor to the level of the superscript, just before the
+ and the cursor is moved to the level of the superscript, just before the
+
\begin_inset Quotes eld
\end_inset
Down
\family default
will move the cursor back to the regular level.
- In fact, if you hit
+ When you hit
+\family sans
+Space
+\family default
+ instead of
\family sans
Down
\family default
- from anywhere within the superscript, the cursor will be placed just
+, the cursor will be placed
\emph on
after
\emph default
\begin_layout Standard
An exponent can be entered from the
\family sans
-Math\InsetSpace ~
-Panel
+Math
+\begin_inset space ~
+\end_inset
+
+Toolbar
\family default
(see below), but it's actually simpler just to type the caret key,
\begin_inset Quotes eld
\family sans
Esc
\family default
- to exit Mathed entirely) will be in the superscript.
+ to exit the formula entirely) will be in the superscript.
\end_layout
\begin_layout Standard
\begin_layout Standard
The
\family sans
-Math\InsetSpace ~
+Math
+\begin_inset space ~
+\end_inset
+
Toolbar
\family default
- is a convenient way to enter symbols or to perform many complicated Mathed
- functions.
- Many of these functions can be accomplished from the keyboard or the
+ is a convenient way to enter symbols or to perform complicated formula
+ operations.
+ Many of these operations can be accomplished from the keyboard or the
\family sans
Edit\SpecialChar \menuseparator
Math
menus.
However, we're going to concentrate on using the
\family sans
-Math\InsetSpace ~
+Math
+\begin_inset space ~
+\end_inset
+
Toolbars
\family default
, just to let you know what's out there; you can learn keyboard shortcuts
\family sans
math toolbar
\family default
- can be turned on in the menu
+ is shown when the cursor is in a formula and can also be turned on manually
+ in the menu
\family sans
View\SpecialChar \menuseparator
Toolbars
\begin_inset Quotes eld
\end_inset
-Math\InsetSpace ~
+Math
+\begin_inset space ~
+\end_inset
+
(auto)
\begin_inset Quotes erd
\end_inset
\begin_layout Standard
The
\family sans
-Math\InsetSpace ~
+Math
+\begin_inset space ~
+\end_inset
+
Toolbar
\family default
which allow you to choose from a large array of symbols used in math: various
\end_layout
\begin_layout Standard
-To type a square root, just click on the button with a square root sign
- on it.
+To type a square root, just click on the button
+\begin_inset Graphics
+ filename ../images/math/sqrt.png
+ scale 75
+ scaleBeforeRotation
+
+\end_inset
+
+.
The square root appears, and the cursor is in a new insertion point inside
the square root.
You can type variables, numbers, other square roots, fractions, whatever
\end_inset
) is done the same way.
- The
-\family sans
-Decoration
-\family default
- types are available from the toolbar.
+ Decorations are available from the toolbar via the button
+\begin_inset Graphics
+ filename ../images/math/hat.png
+ scale 75
+ scaleBeforeRotation
+
+\end_inset
+
+.
Click on a decoration, and LyX will insert that decoration with an insertion
point under (or over) it.
Just type what you want in the insertion point.
\begin_layout Standard
Delimiters such as parentheses, brackets, and braces work similarly, but
are a bit more complicated.
- Hit the
-\family sans
-Delimiter
-\family default
- button, which features a blue square surrounded by brackets, to pop up
- the
+ Hit the delimiter button
+\begin_inset Graphics
+ filename ../images/dialog-show_mathdelimiter.png
+ scale 75
+ scaleBeforeRotation
+
+\end_inset
+
+ to pop up the
\family sans
Delimiter
\family default
dialog.
Your current selection of delimiters is displayed in a box.
It's a pair of parentheses by default, but you can choose a pair of braces,
- a brace and a parenthesis, or even choose the empty square to have something
+ a brace and a parenthesis, or choose the empty square to have something
like
\begin_inset Quotes eld
\end_inset
\family sans
Delimiter
\family default
- window.
+ dialog.
However, those parentheses will be the same size as regular text, which
will look bad if you have a big fraction or matrix inside the parentheses.
- Using the
-\family sans
-Delimiter
-\family default
- window will guarantee that the delimiters are sized based on what's inside
- them.
+ So better use in this case one of the three delimiter buttons that insert
+ directly e.
+\begin_inset space \thinspace{}
+\end_inset
+
+g.
+\begin_inset space ~
+\end_inset
+
+a (
+\begin_inset space \thinspace{}
+\end_inset
+
+) pair.
\end_layout
\begin_layout Standard
You can also put delimiters or a square root sign or a decoration on already
- existing text.
+ existing formula parts.
Select the portion of the formula that you want to adjust, and then click
on the button you want from the
\family sans
-Math\InsetSpace ~
+Math
+\begin_inset space ~
+\end_inset
+
Toolbar
\family default
.
\end_layout
\begin_layout Standard
-Fractions are very simple in Mathed.
- Just click on the
-\family sans
-Fraction
-\family default
- button in the
+To create a fraction, click on the fraction button
+\begin_inset Graphics
+ filename ../images/math/frac.png
+ lyxscale 75
+ scale 60
+ scaleBeforeRotation
+
+\end_inset
+
+ in the
\family sans
-Math\InsetSpace ~
+Math
+\begin_inset space ~
+\end_inset
+
Toolbar
\family default
-, which shows a fraction with blue squares in the numerator and the denominator.
+.
LyX writes two insertion points in a fraction.
As you would expect, you can use arrow keys or the mouse to move around
a fraction.
\begin_inset Quotes erd
\end_inset
- in math mode, LyX thinks you're typing the product of the three variables
+ in math mode, LyX thinks you are typing the product of the three variables
\begin_inset Formula $s$
\end_inset
\begin_inset Quotes erd
\end_inset
- (typing
+ (pressing
\family sans
Space
\family default
- will just exit math mode).
+ will exit the formula).
So how do you get
\begin_inset Quotes eld
\end_inset
-\begin_inset Formula $\sin x$
+\begin_inset Formula $\sin(x)$
\end_inset
\end_inset
-\begin_inset Formula $sinx$
+\begin_inset Formula $sin(x)$
\end_inset
\end_layout
\begin_layout Standard
-Click on
+Click on the
+\family sans
+Math
+\begin_inset space ~
+\end_inset
+
+Toolbar
+\family default
+ button
+\begin_inset Graphics
+ filename ../images/math/functions.png
+ scale 75
+ scaleBeforeRotation
+
+\end_inset
+
+ and then on
\begin_inset Quotes eld
\end_inset
\begin_inset Quotes erd
\end_inset
- in the
-\family sans
-Functions
-\family default
- list in the
-\family sans
-Math\InsetSpace ~
-Toolbar
-\family default
-.
+ in the appearing function list.
The word
\begin_inset Quotes eld
\end_inset
\begin_inset Quotes erd
\end_inset
- is written in black, in upright roman type.
+ is displayed in LyX in black, and set in upright roman type.
The whole word is treated as one symbol, so if you type
\family sans
Backspace
\begin_inset Quotes eld
\end_inset
-x
+(x)
\begin_inset Quotes erd
\end_inset
-, which will be written in blue italics, like you expect in Mathed.
- In the
-\family typewriter
-dvi
-\family default
- file, the expression will be correctly typeset.
- Try it.
+, which will be written in blue italics, like you expect in a formula.
+ In the output, the expression will be correctly typeset.
+ Try it out.
\end_layout
\begin_layout Standard
-Other commands you need to type in TeX mode using the
-\family sans
-Functions
-\family default
- box include other trigonometric functions and their inverses, hyperbolic
- functions, logarithms, limits, and quite a few others.
+The function list include other trigonometric functions and their inverses,
+ hyperbolic functions, logarithms, limits, and quite a few others.
These functions can take subscripts and superscripts, important for typing
\begin_inset Quotes eld
\begin_layout Subsection
Matrices
-\begin_inset LatexCommand label
+\begin_inset CommandInset label
+LatexCommand label
name "sec:matrices"
\end_inset
\end_layout
\begin_layout Standard
-Click on the
-\family sans
-Matrix
-\family default
- button in the
+Click on the matrix button
+\begin_inset Graphics
+ filename ../images/dialog-show_mathmatrix.png
+ scale 75
+ scaleBeforeRotation
+
+\end_inset
+
+ in the
\family sans
-Math\InsetSpace ~
+Math
+\begin_inset space ~
+\end_inset
+
Toolbar
\family default
.
- The dialog has two sliding bars which allow you to choose how many rows
- and columns you want in your matrix.
+ The appearing dialog allows you to choose how many rows and columns you
+ want in your matrix.
Choose 2 rows and 3 columns and hit
\family sans
-Apply
-\family default
- or
-\family sans
OK
\family default
.
\end_inset
matrix.
- As usual, you can put any sort of Mathed expression (a square root, another
+ As usual, you can put any sort of formula expression (a square root, another
matrix, etc.) in each insertion point.
You can also leave some of the insertion points empty if you want.
\end_layout
\end_layout
\begin_layout Standard
-If you suddenly need more rows or columns, use
+If you need to change the number of rows and columns, use the menu
\family sans
-\bar under
-E
-\bar default
-dit\SpecialChar \menuseparator
+Edit\SpecialChar \menuseparator
+Math\SpecialChar \menuseparator
+Rows
+\begin_inset space \thinspace{}
+\end_inset
-\bar under
-M
-\bar default
-ath\SpecialChar \menuseparator
-Add\InsetSpace ~
+&
+\begin_inset space \thinspace{}
+\end_inset
-\bar under
-R
-\bar default
-ow
+Columns
\family default
- and
-\family sans
-Add\InsetSpace ~
+ or the math toolbar buttons
+\begin_inset Graphics
+ filename ../images/tabular-feature_append-row.png
+ scale 75
+ scaleBeforeRotation
+
+\end_inset
+
+,
+\begin_inset Graphics
+ filename ../images/tabular-feature_delete-row.png
+ scale 75
+ scaleBeforeRotation
+
+\end_inset
+
+,
+\begin_inset Graphics
+ filename ../images/tabular-feature_append-column.png
+ scale 75
+ scaleBeforeRotation
+
+\end_inset
+
+,
+\begin_inset Graphics
+ filename ../images/tabular-feature_delete-column.png
+ scale 75
+ scaleBeforeRotation
+
+\end_inset
-\bar under
-C
-\bar default
-olumn
-\family default
.
- They add a row or column just after the current position.
- Overdid it? Use
-\family sans
-\bar under
-D
-\bar default
-elete\InsetSpace ~
-Row
-\family default
- and
-\family sans
-D
-\bar under
-e
-\bar default
-lete\InsetSpace ~
-Column
-\family default
- from the same menu.
\end_layout
\begin_layout Standard
for information on how to change the horizontal alignment of each column,
and how to change the vertical position of the whole matrix.
Note that if you want to write a table containing text, you should use
- LyX' wonderful table support, rather than trying to write text in a matrix.
+ LyX's wonderful table support, rather than trying to write text in a matrix.
\end_layout
\begin_layout Subsection
\emph on
User's Guide
\emph default
-), and multi-line equations (see Sec.
-
-\begin_inset LatexCommand ref
-reference "sec:multiline"
-
-\end_inset
-
-) must be in display mode.
+), and multi-line equations must be in display mode.
\end_layout
\begin_layout Standard
-Click on the
-\family sans
-Display
-\family default
- button in the
+Click on the display button
+\begin_inset Graphics
+ filename ../images/math-display.png
+ scale 75
+ scaleBeforeRotation
+
+\end_inset
+
+ in the
\family sans
-Math\InsetSpace ~
+Math
+\begin_inset space ~
+\end_inset
+
Toolbar
\family default
, which represents a couple lines of text before and after a centered blue
LyX inserts a formula, but the insertion point is on a new line, and it's
centered within that line.
Now type an expression and run LaTeX to see how it looks.
- The
-\family sans
-Display
-\family default
- button is actually a toggle; use it now to change a couple of your expressions
- to display mode and back.
+ The display button is actually a toggle; use it now to change a couple
+ of your expressions to display mode and back.
\end_layout
\end_layout
\begin_layout Standard
-One final note about the way displayed formulae are typeset: be careful
+One final note about the way displayed formulas are typeset: Be careful
about whether you're putting your equation into a new paragraph or not.
If your formula is in the middle of a sentence or paragraph, then don't
press
after
\emph default
the formula to start a new paragraph.
- That text will therefore be indented, which is probably not what you want.
+ That text will therefore eventually be indented, depending on your document
+ paragraph settings, which is probably not what you want.
\end_layout
\begin_layout Standard
\begin_inset Foot
status collapsed
-\begin_layout Standard
-After you've done it the hard way, why don't you give
+\begin_layout Plain Layout
+After you've done it the hard way, give
\family sans
-\bar under
-I
-\bar default
-nsert\SpecialChar \menuseparator
-Mat
-\bar under
-h
-\bar default
-\SpecialChar \menuseparator
+Insert\SpecialChar \menuseparator
+Math\SpecialChar \menuseparator
+Cases
+\begin_inset space ~
+\end_inset
-\bar under
-C
-\bar default
-ases\InsetSpace ~
-environment
+Environment
\family default
- a try?
+ a try.
\end_layout
\end_inset
\end_layout
\begin_layout Standard
-Mathed can do plenty more.
- By now, you're familiar with the basics, so we'll just refer to the
+LyX's math editor can do plenty more.
+ By now, you're familiar with the basics, so we refer to the
\emph on
User's Guide
\emph default
Write macros.
These are very powerful, because you just define them once at the top of
the document, and then you can use them throughout the document.
- If you change the macro definition, the references to the macro will be
- changed throughout the document.
- Macros can even take arguments.
\end_layout
\begin_layout Itemize
-Do lots of other things we didn't have time to mention in this
-\emph on
-Tutorial
-\emph default
-.
+Do lots of other things that can't be mentioned in this Tutorial.
\end_layout
\begin_layout Chapter
\emph default
and the
\emph on
-Embedded\InsetSpace ~
+Embedded
+\begin_inset space ~
+\end_inset
+
Objects
\emph default
manual for more information.
\emph default
to get a
\family sans
-Table\InsetSpace ~
+Table
+\begin_inset space ~
+\end_inset
+
Settings
\family default
dialog box which allows extensive table editing.
\begin_layout Itemize
LyX can read LaTeX documents.
- See section\InsetSpace ~
+ See section
+\begin_inset space ~
+\end_inset
+
-\begin_inset LatexCommand ref
+\begin_inset CommandInset ref
+LatexCommand ref
reference "sec:tex2lyx"
\end_inset
\begin_layout Section
LyX for LaTeX Users
-\begin_inset LatexCommand label
+\begin_inset CommandInset label
+LatexCommand label
name "sec:latexusers"
\end_inset
information here.
The the
\emph on
-Extended\InsetSpace ~
+Extended
+\begin_inset space ~
+\end_inset
+
Features
\emph default
and the
\emph on
-Embedded\InsetSpace ~
+Embedded
+\begin_inset space ~
+\end_inset
+
Objects
\emph default
manual have a great deal of information on differences between LyX and
You can use TeX commands in LyX by choosing
\family sans
Insert\SpecialChar \menuseparator
-TeX\InsetSpace ~
+TeX
+\begin_inset space ~
+\end_inset
+
Code
\family default
(toolbar button
This will work for almost all, non-complicated math macros.
This may be faster than using the
\family sans
-Math\InsetSpace ~
+Math
+\begin_inset space ~
+\end_inset
+
Toolbar
\family default
, and will be especially convenient for experienced LaTeX users.
\backslash
usepackage{foo}
\family default
- in the preamble (see section\InsetSpace ~
+ in the preamble (see section
+\begin_inset space ~
+\end_inset
-\begin_inset LatexCommand ref
+
+\begin_inset CommandInset ref
+LatexCommand ref
reference "sec:preamble"
\end_inset
tex2lyx
\family default
-\begin_inset LatexCommand label
+\begin_inset CommandInset label
+LatexCommand label
name "sec:tex2lyx"
\end_inset
\family sans
File\SpecialChar \menuseparator
Import\SpecialChar \menuseparator
-LaTeX\InsetSpace ~
+LaTeX
+\begin_inset space ~
+\end_inset
+
(plain)
\family default
menu in LyX.
\bar under
x
\bar default
-tra\InsetSpace ~
+tra
+\begin_inset space ~
+\end_inset
+
Options
\family default
area.
\begin_layout Subsubsection
Other Preamble Matter
-\begin_inset LatexCommand label
+\begin_inset CommandInset label
+LatexCommand label
name "sec:preamble"
\end_inset
\family sans
Document\SpecialChar \menuseparator
Settings\SpecialChar \menuseparator
-LaTeX\InsetSpace ~
+LaTeX
+\begin_inset space ~
+\end_inset
+
Preamble
\family default
and type in the dialog window (or from the document settings dialog, depending
I
\bar default
nsert\SpecialChar \menuseparator
-List\InsetSpace ~
-/\InsetSpace ~
+List
+\begin_inset space ~
+\end_inset
+
+/
+\begin_inset space ~
+\end_inset
+
T
\bar under
O
\bar under
B
\bar default
-ibTeX\InsetSpace ~
+ibTeX
+\begin_inset space ~
+\end_inset
+
Bibliography
\family default
to include a
Insert\SpecialChar \menuseparator
Citation
\family default
- (see section\InsetSpace ~
+ (see section
+\begin_inset space ~
+\end_inset
+
-\begin_inset LatexCommand ref
+\begin_inset CommandInset ref
+LatexCommand ref
reference "sec:bibliographies"
\end_inset
or LaTeX can't understand.
When this happens, LyX will open a
\family sans
-LaTeX\InsetSpace ~
+LaTeX
+\begin_inset space ~
+\end_inset
+
Errors
\family default
dialog.