-#LyX 1.5.3 created this file. For more info see http://www.lyx.org/
-\lyxformat 276
+#LyX 1.6.2svn created this file. For more info see http://www.lyx.org/
+\lyxformat 345
\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
- % 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
+\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 1
+\pdf_breaklinks false
+\pdf_pdfborder false
+\pdf_colorlinks true
+\pdf_backref 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
-name "sec:Your-first-LyX"
-
-\end_inset
-
-
\end_layout
\begin_layout Standard
\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 Quotes erd
\end_inset
- hints about how to fix things
+ hints about how to fix things.
\begin_inset Foot
status collapsed
-\begin_layout Standard
+\begin_layout Plain Layout
The hints are located in yellow
\begin_inset Quotes eld
\end_inset
\end_inset
-.
If you want to cheat, or check what you've done, there's also a file called
\family typewriter
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
(toolbar button
) 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
\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
-\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_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.
\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
-name "sec:whitespace"
-
-\end_inset
-
-
\end_layout
\begin_layout Standard
\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
\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.
\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
\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
\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
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
\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.
\emph default
section of the
\emph on
-Extended Features
+Additional Features
\emph default
manual for many more details.
\end_layout
\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
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
+ 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
+ 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_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
\begin_layout Section
Labels and Cross-References
-\begin_inset LatexCommand label
-name "sec:labels"
-
-\end_inset
-
-
\end_layout
\begin_layout Standard
\begin_inset Foot
status collapsed
-\begin_layout Standard
+\begin_layout Plain Layout
Floats are explained in the
\emph on
User's Guide
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\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
-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\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
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
\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
\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.
\end_layout
-\begin_layout Subsection*
+\begin_layout Subsection
More fun with labels
\end_layout
\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
+ Update the DVI view, and — voilà! — the section cross reference changed
to
\begin_inset Quotes eld
\end_inset
\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
\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
\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
.
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 ~
+Math
+\begin_inset space ~
+\end_inset
+
Panel
\family default
will allow you to write professional-looking math quickly and easily.
\family sans
Insert\SpecialChar \menuseparator
Math\SpecialChar \menuseparator
-Inline\InsetSpace ~
+Inline
+\begin_inset space ~
+\end_inset
+
Formula
\family default
.
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 e.\InsetSpace \thinspace{}
-g.\InsetSpace ~
-missing
- brackets.
+ like until you LaTeX the file, and may have to spend time to find e.
+\begin_inset space \thinspace{}
+\end_inset
+
+g.
+\begin_inset space \space{}
+\end_inset
+
+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.
\begin_layout Standard
An exponent can be entered from the
\family sans
-Math\InsetSpace ~
+Math
+\begin_inset space ~
+\end_inset
+
Toolbar
\family default
(see below), but it's actually simpler just to type the caret key,
\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
\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 complicated formula
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
\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
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.
So better use in this case one of the three delimiter buttons that insert
- directly e.\InsetSpace \thinspace{}
-g.\InsetSpace ~
-a (\InsetSpace \thinspace{}
+ directly e.
+\begin_inset space \thinspace{}
+\end_inset
+
+g.
+\begin_inset space \space{}
+\end_inset
+
+a (
+\begin_inset space \thinspace{}
+\end_inset
+
) pair.
\end_layout
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
.
in the
\family sans
-Math\InsetSpace ~
+Math
+\begin_inset space ~
+\end_inset
+
Toolbar
\family default
.
\begin_layout Standard
Click on the
\family sans
-Math\InsetSpace ~
+Math
+\begin_inset space ~
+\end_inset
+
Toolbar
\family default
button
\begin_layout Subsection
Matrices
-\begin_inset LatexCommand label
-name "sec:matrices"
-
-\end_inset
-
-
\end_layout
\begin_layout Standard
in the
\family sans
-Math\InsetSpace ~
+Math
+\begin_inset space ~
+\end_inset
+
Toolbar
\family default
.
\family sans
Edit\SpecialChar \menuseparator
Math\SpecialChar \menuseparator
-Rows\InsetSpace \thinspace{}
-&\InsetSpace \thinspace{}
+Rows
+\begin_inset space \thinspace{}
+\end_inset
+
+&
+\begin_inset space \thinspace{}
+\end_inset
+
Columns
\family default
or the math toolbar buttons
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
\begin_inset Foot
status collapsed
-\begin_layout Standard
+\begin_layout Plain Layout
After you've done it the hard way, give
\family sans
Insert\SpecialChar \menuseparator
Math\SpecialChar \menuseparator
-Cases\InsetSpace ~
+Cases
+\begin_inset space ~
+\end_inset
+
Environment
\family default
a try.
\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
\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
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\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
-), 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
-\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
al references to be used in multiple documents.
Select
\family sans
-\bar under
-I
-\bar default
-nsert\SpecialChar \menuseparator
-List\InsetSpace ~
-/\InsetSpace ~
-T
-\bar under
-O
-\bar default
-C\SpecialChar \menuseparator
+Insert\SpecialChar \menuseparator
+List
+\begin_inset space ~
+\end_inset
+
+/
+\begin_inset space ~
+\end_inset
+
+TOC\SpecialChar \menuseparator
+BibTeX
+\begin_inset space ~
+\end_inset
-\bar under
-B
-\bar default
-ibTeX\InsetSpace ~
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.