-#LyX 1.5.3svn created this file. For more info see http://www.lyx.org/
-\lyxformat 276
+#LyX 2.0.0svn created this file. For more info see http://www.lyx.org/
+\lyxformat 376
\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
+\begin_modules
+logicalmkup
+\end_modules
+\maintain_unincluded_children false
\language english
\inputencoding auto
+\fontencoding global
\font_roman default
\font_sans default
\font_typewriter default
\font_default_family default
+\use_xetex false
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100
+
\graphics default
+\default_output_format default
+\bibtex_command default
+\index_command 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
\use_esint 0
+\use_mhchem 1
\cite_engine basic
\use_bibtopic false
+\use_indices false
\paperorientation portrait
+\suppress_date false
+\index Index
+\shortcut idx
+\color #008000
+\end_index
\secnumdepth 3
\tocdepth 2
\paragraph_separation indent
-\defskip medskip
+\paragraph_indentation default
\quotes_language english
\papercolumns 1
\papersides 2
\paperpagestyle headings
-\tracking_changes false
+\tracking_changes true
\output_changes false
-\author ""
-\author ""
+\html_use_mathml true
+\html_be_strict true
+\author 2 "Richard Heck"
\end_header
\begin_body
\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
\end_layout
\begin_layout Standard
-This file is designed for all of you who have never heard of LaTeX, or don't
- know it very well.
- Now, don't panic - you won't need to learn LaTeX to use LyX.
+This file is designed for all of you who have never heard of LaTeX, or do
+ not know it very well.
+ Now, do not panic - you will not need to learn LaTeX to use LyX.
That is, after all, the whole point of LyX: to provide an almost-WYSIWYG
interface to LaTeX.
There are some things you will need to learn, however, in order to use
\begin_inset Quotes erd
\end_inset
- or tried to put 3 blank lines between paragraphs.
- You found out you couldn't and in fact, you'll find out that most of the
- little tricks you're accustomed to use in other word processors won't work
- in LyX.
- That's because most word processors you've used before allow you to manually
- enter all spacings, font changes, and so on.
+ or tried to put three blank lines between paragraphs.
+ You found out you could not and in fact, you will find out that most of
+ the little tricks you are accustomed to use in other word processors will
+ not work in LyX.
+ That is because most word processors you have used before allow you to
+ manually enter all spacings, font changes, and so on.
So you end up not only writing a document but typesetting it, too.
LyX does the typesetting for you, in a consistent fashion, letting you
focus on the important things, like the content of your writing.
\emph default
and what it
\emph on
-isn't
+is not
\end_layout
\begin_layout Standard
\begin_layout Standard
This tutorial consists of examples and exercises.
To get the most out of this document, you should read through the document,
- typing all the little things we're telling you to type and trying out all
- of the exercises to see if you get them right.
+ typing all the little things we are telling you to type and trying out
+ all of the exercises to see if you get them right.
For convenience, you might want to print out the PDF version of this document.
\end_layout
\begin_layout Standard
-If you are familiar with LaTeX, you'll probably be able to read the
+If you are familiar with LaTeX, you will probably be able to read the
\emph on
Tutorial
\emph default
somewhat faster, since many LyX ideas are just LaTeX ideas in disguise.
- However, LyX have features you'll want to learn about.
- Even if you don't feel like reading the rest of the
+ However, LyX has features you will want to learn about.
+ Even if you do not feel like reading the rest of the
\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
\begin_layout Subsection
What you
\emph on
-won't
+will not
\emph default
find
\end_layout
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.
\end_deeper
\begin_layout Standard
-It's time to move onwards, time for your first document \SpecialChar \ldots{}
+It is time to move onwards, time for your first document \SpecialChar \ldots{}
\end_layout
\begin_layout Section
Your first LyX document
-\begin_inset LatexCommand label
-name "sec:Your-first-LyX"
-
-\end_inset
-
-
\end_layout
\begin_layout Standard
OK\SpecialChar \@.
- You're ready to start writing.
+ You are ready to start writing.
Before you do, there are a few things we need to mention, which will hopefully
make the Tutorial more instructive and useful.
\end_layout
\begin_layout Standard
-Because there are informations we can't give you in the Tutorial, the
+Because there is information we cannot give you in the Tutorial, the
\emph on
first
\emph default
\emph on
Tutorial
\emph default
- as well (if you're not reading it within LyX already).
- This way, you can read them while you're writing your own file.
+ as well (if you are not reading it within LyX already).
+ This way, you can read them while you are writing your own file.
\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
\end_inset
- Note that once you've got more than one document open, you can use the
+ Note that once you have got more than one document open, you can use the
\family sans
View
\end_layout
\begin_layout Standard
-In this Tutorial, we're going to assume that you have a fully working version
+In this Tutorial, we are going to assume that you have a fully working version
of LyX, as well as a LaTeX-distribution, a DVI-, and a PDF-viewer.
- This should be the case on all major Linux- and BSD-distribution, as well
- as on Windows, where this is setup by the LyX installer.
+ This should be the case on all major Linux- and BSD-distributions, as well
+ as on Windows, where this is setup by the LyX installers.
\end_layout
\begin_layout Standard
-Finally, we've written a file to let you practice your LyX skills on, it's
- called
+Finally, we have written a file called
\family typewriter
example_raw.lyx
\family default
-.
- Imagine that it was typed by someone who didn't know about any of LyX's
+ to let you practice your LyX skills.
+ Imagine that it was typed by someone who did not know about any of LyX's
great features.
- As you learn new LyX functions, we'll suggest that you fix those parts
+ As you learn new LyX functions, we will suggest that you fix those parts
of
\family typewriter
example_raw.lyx
\family default
.
- It also contains
-\begin_inset Quotes eld
-\end_inset
-
-subtle
-\begin_inset Quotes erd
-\end_inset
-
- hints about how to fix things
+ It also contains `subtle' 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
-
+ If you want to cheat, or check what you have done, there is also a file
+ called
\family typewriter
example_lyxified.lyx
\family default
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.
\family default
directory contains lots of other examples files.
They will show you how to do various fancy things with LyX.
- After you read the Tutorial, or when you're confused about how to do something
- fancy in LyX, take a look at these files.
+ After you have read the Tutorial, or when you are confused about how to
+ do something fancy in LyX, take a look at these files.
\end_layout
\begin_layout Subsection
Save your document with
\family sans
File\SpecialChar \menuseparator
-Save\InsetSpace ~
+Save
+\begin_inset space ~
+\end_inset
+
As\SpecialChar \@.
\end_layout
\end_inset
.
- LyX will open a DVI-viewer program displaying your document looking like
- when printed.
+ LyX will open a DVI-viewer program displaying your document as it will
+ look when printed.
\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
\end_layout
\begin_layout Standard
-Congratulations! You've written your first LyX document.
- All of the rest is just details, which is covered in the other manuals.
+Congratulations! You have written your first LyX document.
+ All of the rest is just details, which are covered in the other manuals.
\end_layout
\begin_layout Subsection
\end_layout
\begin_layout Standard
-LyX can of course do most of the things you're used to do with a word processor.
+LyX can of course do most of the things you are used to do with a word processor.
It will word-wrap and indent paragraphs automatically.
- Here's a quick description of how to do some simple actions.
+ Here is a quick description of how to do some simple actions.
\end_layout
\begin_layout Description
Undo LyX has multiple levels of undo, which means you can undo everything
- you've done since your current editing session started, by selecting
+ you have done since your current editing session started, by selecting
+
\family sans
Edit\SpecialChar \menuseparator
Undo
\begin_deeper
\begin_layout Standard
Currently, undo is limited to 100 steps.
- Undo also doesn't work for
-\emph on
-everything
-\emph default
-; for instance, not for changes to the document layout what is really a
- LyX bug.
\end_layout
\end_deeper
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
\family sans
Replace
\family default
- button to replace a word you've found
+ button to replace a word you have found.
\begin_inset Foot
status collapsed
-\begin_layout Standard
-Close the window when you're done or leave it open if you find it more convenien
-t.
+\begin_layout Plain Layout
+Close the window when you are done or leave it open if you find it more
+ convenient.
Most dialog boxes in LyX can operate like this.
- Just be sure you have the right window focus when you're trying to type
+ Just be sure you have the right window focus when you are trying to type
in the main LyX window or a LyX dialog.
\end_layout
\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
\series bold
bold face
\series default
-, or in
+, in
\noun on
Noun Style
\noun default
- (usually small caps, used for people's names) from the toggle buttons in
- the
+ (usually small caps, used for people's names), or use your own formatting
+ by using the
\family sans
Edit\SpecialChar \menuseparator
-Text\InsetSpace ~
+Text
+\begin_inset space ~
+\end_inset
+
Style
\family default
dialog (toolbar button
\end_layout
\begin_layout Standard
-Of course, you haven't yet written enough to make most of these functions
+Of course, you have not yet written enough to make most of these functions
useful.
As you write more, though, try undoing, pasting, etc.
\end_layout
\begin_layout Subsection
WYSIWYM: Whitespace in LyX
-\begin_inset LatexCommand label
-name "sec:whitespace"
-
-\end_inset
-
-
\end_layout
\begin_layout Standard
\family sans
Return
\family default
-, you'll only get one blank line.
+, you will only get one blank line.
As many times as you hit
\family sans
Space
\family default
-, you'll only get one space.
- On a blank line, LyX won't let you type even one space.
+, you will only get one space.
+ On a blank line, LyX will not let you type even one space.
The
\family sans
Tab
\family default
- key won't move you forward one tab stop; in fact there
+ key will not move you forward one tab stop; in fact there
\emph on
are
\emph default
- no tab stops! There's no ruler at the top of the page to let you set tabs
+ no tab stops! There is no ruler at the top of the page to let you set tabs
or margins, either.
\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
Tab
\family default
has no grammatical function at all, so LyX does not support it.
- Using LyX, you'll spend more of your time worrying about the
+ Using LyX, you will spend more of your time worrying about the
\emph on
content
\emph default
User's Guide
\emph default
has information about all that.
- It includes
-\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,
- and paragraph alignments by hand.
+ It includes horizontal fills 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.
- With standard word processors, you'll be distracted by document formatting
+ With standard word processors, you will be distracted by document formatting
throughout the writing process.
\end_layout
\end_inset
.
- It indicates which environment you're currently writing in.
+ It indicates in which environment you are currently writing.
While you were writing your first document, it said
\begin_inset Quotes eld
\end_inset
\begin_inset Foot
status collapsed
-\begin_layout Standard
-You don't have to
+\begin_layout Plain Layout
+You do not have to
\emph on
select
\emph default
\family typewriter
-More\InsetSpace ~
+More
+\begin_inset space ~
+\end_inset
+
Stuff
\family default
\begin_inset Quotes erd
\end_inset
-, and you'll see that LyX again sets it as a section title.
+, and you will see that LyX again sets it as a section title.
\end_layout
\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 was 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
Subparagraph
\family default
.
- We'll let you play with these on your own.
+ We will let you play with these on your own.
You may notice that paragraph and subparagraph headings are not numbered
by default, and that subparagraphs are indented; see the
\emph on
\family sans
Section
\family default
-s, but you're only allowed to use them in certain types (text classes) of
- LyX documents (see Section\InsetSpace ~
+s, but you are only allowed to use them in certain types (text classes)
+ of 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
Environment
\family default
box to find it), LyX will use the same font size for the heading as it
- uses for a regular section, but it won't number that section.
+ uses for a regular section, but it will not number that section.
There are corresponding
\begin_inset Quotes eld
\end_inset
\family default
.
Try changing some of your sections or subsections to the starred environments,
- and note how the other sections' numbers are updated.
+ and note how the other section numbers are updated.
\end_layout
\begin_layout Standard
\family sans
List
\family default
- environment --- not found in LaTeX --- is a slightly different form of
- the
+ environment is a variation on the
\family sans
Description
\family default
\end_layout
\begin_layout Standard
-Let's write a list of reasons why LyX is better than other word processors.
+Let us write a list of reasons why LyX is better than other word processors.
Somewhere in your document, type:
\end_layout
Return
\family default
.
- Instead, LyX assumes you're going on to the next item in the list.
+ Instead, LyX assumes you are going on to the next item in the list.
The above will therefore result in a three-item list.
If you want more than one paragraph within one list
\emph on
\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 sans
-C-Return
+Ctrl+Return
\family default
.
In order to get out of the list, you need to reselect the
\family sans
Standard
\family default
- environment (or just use the keybinding,
+ environment (or just use the key binding,
\family sans
-M-p\InsetSpace ~
-s
+Alt+P
+\begin_inset space ~
+\end_inset
+
+S
\family default
).
\end_layout
\begin_layout Standard
-You've got a beautiful itemized list.
+You have got a beautiful itemized list.
You might want to run LaTeX to see how the list looks when printed out.
But what if you wanted to number the reasons? Well, just select the whole
list
\begin_inset Foot
status collapsed
-\begin_layout Standard
-LyX won't let you select the first bullet unless you also select the paragraph
-
+\begin_layout Plain Layout
+LyX will not let you select the first bullet unless you also select the
+ paragraph
\emph on
before
\emph default
- the list, which you probably don't want to do.
- Similarly, you can't select the actual number in a numbered section title.
+ the list, which you probably do not want to do.
+ Similarly, you cannot select the actual number in a numbered section title.
This is on purpose because the bullet or number depends on the document
settings or text position, respectively.
\end_layout
\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 ~
-Blank
+Protected
+\begin_inset space ~
+\end_inset
+
+Space
\family default
s.
\end_layout
\begin_inset Foot
status collapsed
-\begin_layout Standard
+\begin_layout Plain Layout
used in this Tutorial for the long typing examples
\end_layout
\family typewriter
typewriter
\family default
- font; this environment is the only place in LyX where you're allowed to
+ font; this environment is the only place in LyX where you are allowed to
use multiple spaces to allow code indenting.
You can even write poetry using the
\family sans
\family default
to separate stanzas, and
\family sans
-C-Return
+Ctrl+Return
\family default
to separate lines within a stanza.
See the
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
\family default
document class.
Document classes are another major part of the WYSIWYM philosophy; they
- tell LyX how to typeset the document, so you don't need to know how.
+ tell LyX how to typeset the document, so you do not need to know how.
\end_layout
\begin_layout Standard
\begin_inset Foot
status collapsed
-\begin_layout Standard
-That's usually the default document class
+\begin_layout Plain Layout
+That is usually the default document class
\end_layout
\end_inset
\family sans
Environment
\family default
- box, you'll see that most of the allowed environments are the same.
+ box, you will see that most of the allowed environments are the same.
However, you can now use the
\family sans
Chapter
\begin_layout Standard
Font sizes, one- or two-column printing, and page headings are just some
- of the ways journals' typesettings differ from one another.
+ of the ways journals typesettings differ from one another.
As the Computer Age continues to mature, journals have begun accepting
electronic submissions, creating LaTeX
\begin_inset Quotes eld
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
\align center
\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">
+<features tabularvalignment="middle">
+<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
While this is the most obvious way to write a letter, it seems like extra
work.
Every time you write a business letter, you want to have your address,
- the address you're sending to, a body, a signature, etc.
+ the address to which you are sending it, a body, a signature, etc.
LyX therefore has a
\emph on
template
\emph default
for letters, which contains a sample letter; once you have a template,
- you can just replace a couple parts of the letter with your text each time
- you write a letter.
+ you can just replace a couple of parts of the letter with your text each
+ time you write a letter.
\end_layout
\begin_layout Standard
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 sans
Environment
\family default
- box, you'll see several environments, like the
+ box, you will 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.
+ environment, which do not even exist in most other document classes.
Others, like
\family sans
Quote
, are familiar.
You can play around for a while to figure out how the various environments
work.
- You'll notice for example that the
+ You will notice for example that the
\family sans
Signature
\family default
\end_inset
in red before the actual text of the signature.
- This word doesn't show up in the actual letter, as you'll see if you view/expor
-t the file.
- It's just there to let you know where the signature goes.
- Also, note that it doesn't matter where in the file the
+ This word does not show up in the actual letter, as you will see if you
+ view/export the file.
+ It is just there to let you know where the signature goes.
+ Also, note that it does not matter where in the file the
\family sans
Signature
\family default
as a new template.
From now on, any time you want to write a letter, you can use the new template
to save time.
- We don't have to suggest an actual
+ We do not have to suggest an actual
\begin_inset Quotes eld
\end_inset
\begin_inset Foot
status collapsed
-\begin_layout Standard
-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
+\begin_layout Plain Layout
+One warning, if you are 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
+ 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
document classes.
Finally, they may be useful for a person who is configuring LyX for a bunch
of less computer-aware users.
- When they're first learning LyX, it will be much less intimidating if they
- have a letter template customized for their company, for example.
+ When they are first learning LyX, it will be much less intimidating if
+ they have a letter template customized for their company, for example.
\end_layout
\begin_layout Section
\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 Standard
-Go back to your LyX document and make sure it's using the
+Go back to your LyX document and make sure it is using the
\family sans
Article
\family default
\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 does not allow titles.
\end_layout
\end_inset
Abstract
\family default
environment.
- Notice how the title is presented when it's printed out.
- If you changed the document format to Book, you'll get a separate title
+ Notice how the title is presented when it is printed out.
+ If you change the document format to Book, you will get a separate title
page, like the first page of this tutorial.
\end_layout
\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
appears on.
As with section numbering, LyX also takes care about cross-reference numbering
for you.
- Automatic labels and cross-references are one of the best advantages of
- LyX (and LaTeX) over conventional word processors.
+ Automatic labels and cross-references are among the most significant advantages
+ of 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
-By the way, you could have put the label right anywhere within the section
- as well; section references will refer to the last section or subsection
- whose heading comes before the label.
- However, putting it on the same line as the section title (or, perhaps,
- on the first line of the section's text) ensures that page references will
- reference the beginning of the section.
-\end_layout
-
-\begin_layout Standard
-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.
+So far you have not done anything — the DVI output will look exactly the
+ same, since labels do not 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.
+ We will 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 .
-\end_layout
-
-\begin_layout Standard
-Now --- with the cursor after the word
-\begin_inset Quotes eld
+\begin_inset Newline newline
\end_inset
-section
-\begin_inset Quotes erd
-\end_inset
+section, which can be found on page.
+\end_layout
- --- choose
+\begin_layout Standard
+Now — with the cursor after the word `Section' — choose
\family sans
Insert\SpecialChar \menuseparator
-Cross\InsetSpace ~
+Cross
+\begin_inset space ~
+\end_inset
+
Reference
\family default
or the toolbar button
\end_inset
.
- The
-\family sans
-Cross-reference
-\family default
- dialog pops up.
+ The Cross-reference dialog pops up.
It shows a list of the possible labels you can reference.
- At the moment, there should be only one,
-\begin_inset Quotes eld
-\end_inset
-
-sec:About-This-Document
-\begin_inset Quotes erd
-\end_inset
-
-.
- Select it (it may be selected by default), and click
+ At the moment, there should be only one, `sec:About-This-Document'.
+ First, select the drop-down menu labeled Format and select '<reference>
+ on page <page>.' Then select `sec:About-This-Document' (it may be selected
+ by default), and a reference marker will appear containing `Ref+Text: sec:About
+-This-Document' (To be really correct, you should put a
\family sans
-Apply
-\family default
-.
- Now put the cursor after the word
-\begin_inset Quotes eld
-\end_inset
-
-page
-\begin_inset Quotes erd
+Protected
+\begin_inset space ~
\end_inset
-, and change the reference format to use the page number then click
+Space
+\family default
+ in between the word `Section' and the reference).
+ Alternatively to that method, you can right-click on a label and use in
+ the appearing context menu
\family sans
-Apply
+Copy as Reference
\family default
.
- (To be really correct, you should put a
+ 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
-Protected\InsetSpace ~
-Blank
+Edit\SpecialChar \menuseparator
+Paste
\family default
- in between the word
-\begin_inset Quotes eld
-\end_inset
-
-Section
-\begin_inset Quotes erd
-\end_inset
-
- and the reference.
- Same for the page reference.)
-\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
- the page or section number (depending on what you selected in the
+ (shortcut
\family sans
-Cross-reference
+Ctrl+V
\family default
- dialog).
- View your document as DVI, and you'll see that on the last page we refer
- to
-\begin_inset Quotes eld
-\end_inset
-
-Section\InsetSpace ~
-2
-\begin_inset Quotes erd
-\end_inset
-
- and
-\begin_inset Quotes eld
-\end_inset
-
-Page\InsetSpace ~
-1
-\begin_inset Quotes erd
-\end_inset
-
- (or whatever page Section\InsetSpace ~
-2's title is on).
+).
+ In the printed document, this reference marker will be replaced with the
+ section number and then the page number.
+ View your document as DVI, and you will see that LaTeX has been even cleverer
+ than that.
+ It refers to `Section 2' and depending how much text you have between the
+ start of Section 2 and this cross-reference you may see `on this page,'
+ 'on the previous page' or `on page n' (whereas
+\emph on
+n
+\emph default
+ is the page number).
\end_layout
\begin_layout Standard
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.
\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.
+ The page reference will not change unless you add a whole page of text
+ before the label, of course.
\end_layout
If you want some more practice with labels, then try putting a new label
where your first cross-reference was, and refer to that label from elsewhere
in the document.
- If you'll be inserting cross-references often, it may be convenient to
+ If you will be inserting cross-references often, it may be convenient to
leave the
\family sans
Cross-reference
\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 ~
+ are not 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_layout
\begin_layout Standard
-Now click on the button labelled
+Now click on the button labeled
\begin_inset Quotes eld
\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
button.
\end_layout
-\begin_layout Standard
-You may wonder why the footnote button is a word instead of a number.
- The answer is that LyX takes care about the footnote numbering for you
- in the printed text.
- You can see this yourself by looking at the DVI file (or printout).
- If you add other footnotes, LyX will renumber the footnotes.
- Since LyX (well, LaTeX, actually) takes care of the footnote numbering,
- there's really no need to put the numbers in the LyX file.
-\end_layout
-
\begin_layout Standard
A footnote can be cut and pasted like normal text.
Go ahead; try it! All you need to do is select the footnote button
\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
+ You might accidentally open the footnote if you are trying to select the
marker itself with the mouse.
\end_layout
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_inset Quotes erd
\end_inset
- (right now, that's the only item in the bibliography), then use the
+ (right now, that is the only item in the bibliography), then use the
\family sans
Add
\family default
button in the center to insert it.
(You can have multiple citations in the same place by transferring a number
- of keys this way.) Now view your file as DVI, and you'll see that the citation
- appears in brackets in the text, referring to the bibliography at the end
- of the document.
+ of keys this way.) Now view your file as DVI, and you will see that the
+ citation appears in brackets in the text, referring to the bibliography
+ at the end of the document.
\end_layout
\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
.
\end_layout
\begin_layout Standard
-The table of contents is not printed in the on-screen version of the document
- to keep the overview in your file.
+The table of contents is not printed in the on-screen version of the document.
But you can display the table of contents in a separate window by clicking
on the table of contents button, or by using
\family sans
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
+ This menu will work even if you do not have a table of contents inset in
your document.
- This is a very useful tool where you can move around your document parts.
+ This is a very useful tool for moving around your document parts.
Clicking on a (sub)section title in the
\family sans
Outline
Many of these scientists are frustrated, however, because writing equations
in LaTeX is more like programming than writing.
Happily, LyX has WYSIWYM support for equations.
- If you are used to LaTeX, you'll find that all of the usual LaTeX math
+ If you are used to LaTeX, you will find that all of the usual LaTeX math
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
+ If, on the other hand, you have 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 LyX-Code
-I like what Einstein said, E=mc^2, because it's so simple.
+I like what Einstein said, E=mc^2, because it is so simple.
\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 does not look very good in LyX and in the output; there
+ is no space between the letters and the equals sign, and you would like
+ to write an actual superscript for the
\begin_inset Quotes eld
\end_inset
\end_inset
.
- That bad typesetting happened because we didn't tell LyX that we were writing
- a mathematical expression, so it typeset the equation like regular old
- text.
+ That bad typesetting happened because we did not tell LyX that we were
+ writing a mathematical expression, so it typeset the equation like regular
+ old text.
\end_layout
\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.
- Notice that the expression was typeset nicely, with spaces between the
- letters and the equals sign, and a superscript
+Looking at the output you will notice that the expression was typeset nicely,
+ with spaces between the letters and the equals sign, and a superscript
+
\begin_inset Quotes eld
\end_inset
\backslash
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
+; this can be frustrating, because you cannot see what an expression looks
+ like until you run the file under LaTeX and you may have to spend time
+ finding e.
+\begin_inset space \thinspace{}
\end_inset
-bugs
-\begin_inset Quotes erd
+g.
+\begin_inset space \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 does not 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
\end_layout
\begin_layout Standard
-Now let's change
+Now let us change
\begin_inset Formula $E=mc^{2}$
\end_inset
.
Use the arrow keys to move the cursor into the expression.
Note that when you enter the expression, the purple markers appear to let
- you know you're editing math.
+ you know you are editing math.
Now you can use
\family sans
Left
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
+ If 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,
+ (see below), but it is actually simpler just to type the caret key,
\begin_inset Quotes eld
\end_inset
\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
-Writing a subscript (index) is just as easy --- start one by typing the
- underscore key,
+Writing a subscript (index) is just easy; start one by typing the underscore
+ key
\begin_inset Quotes eld
\end_inset
_
-\begin_inset Quotes eld
+\begin_inset Quotes erd
\end_inset
-.
+ .
You can subscript and superscript both subscripts and superscripts like
this:
\begin_inset Formula $A_{a_{0}+b^{2}}+C^{a_{0}+b^{2}}$
\end_layout
\begin_layout Section
-The Math Toolbar
+The Math toolbar
\end_layout
\begin_layout Standard
The
\family sans
-Math\InsetSpace ~
-Toolbar
+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
Math
\family default
menus.
- However, we're going to concentrate on using the
+ However, we are going to concentrate on using the
\family sans
-Math\InsetSpace ~
-Toolbars
+Math
+\begin_inset space ~
+\end_inset
+
+toolbar
\family default
-, just to let you know what's out there; you can learn keyboard shortcuts
- later, from other manuals.
+, just to let you know what is out there; you can learn keyboard shortcuts
+ and commands later from the
+\emph on
+Math
+\emph default
+ manual.
\end_layout
\begin_layout Standard
The
\family sans
-math toolbar
+Math
+\begin_inset space ~
+\end_inset
+
+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 ~
-Toolbar
+Math
+\begin_inset space ~
+\end_inset
+
+toolbar
\family default
- which allow you to choose from a large array of symbols used in math: various
- arrows, relations, operators, and sums and integrals.
+ allows you to choose from a large array of symbols used in math: operators,
+ arrows, relationships, delimiters, special characters, sums and integrals.
Note that subscripting and superscripting allow you to put lower and upper
limits on sums and integrals.
-\end_layout
-
-\begin_layout Standard
-\begin_inset Quotes eld
-\end_inset
-
-Nothing you can do that can't be done\SpecialChar \ldots{}
- All you need is
-\begin_inset Formula $\heartsuit$
-\end_inset
-
-.
-\begin_inset Quotes erd
-\end_inset
-
-
\end_layout
\begin_layout Subsection
\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
you want.
- LyX will automatically resize the square root to fit what's inside.
+ LyX will automatically resize the square root to fit what is inside.
\end_layout
\begin_layout Standard
\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.
There are two sets of decorations: those that resize with the text you
- type, and those that have fixed size, and are most appropriate for a single
- letter.
+ type, and those that have a fixed size, and are most appropriate for a
+ single letter.
\end_layout
\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
+ It is a pair of parentheses by default, but you can choose a pair of braces,
+ a brace and a parenthesis, or choose the empty square to have something
like
\begin_inset Quotes eld
\end_inset
\begin_inset Quotes erd
\end_inset
- (the empty delimiter is displayed as a broken line in LyX, but won't show
- up in the output).
+ (the empty delimiter is displayed as a broken line in LyX, but will not
+ show up in the output).
\end_layout
\begin_layout Standard
-If you're lazy, you can type actual parentheses in math mode, rather than
+If you are lazy, you can type actual parentheses in math mode, rather than
using the
\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 it is better in this case to use one of the three delimiter buttons
+ that insert 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
\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_inset
).
- Once you've learned about matrices, this is how you'll put parentheses
+ Once you have learned about matrices, this is how you will put parentheses
or brackets around them.
\end_layout
\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.
\end_inset
.
- You've made a fraction! Of course you can type anything within each of
+ You have made a fraction! Of course you can type anything within each of
the two boxes: variables with exponents, square roots, other fractions,
whatever.
\end_layout
\begin_layout Subsection
-TeX mode: Limits, log, sin and others
+Functions: lim, log, sin and others
\end_layout
\begin_layout Standard
\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
\end_inset
typeset in Roman.
- In addition, LyX won't put a space between the word
+ In addition, LyX will not put a space between the word
\begin_inset Quotes eld
\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 includes 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
-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
+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
+While being in a formula, 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
- box.
- 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.
+.
+ This centers the formula and adds a blank line before and after it.
+ Now type in an expression and compile your file to see how it looks.
+ The display button is actually a toggle; use it now to change a couple
+ of your expressions to display mode and back.
\end_layout
\begin_layout Itemize
Subscripts and superscripts for limits and sums (but not integrals) are
- written under rather than next to the symbols
+ written under and over rather than next to the symbols
\end_layout
\begin_layout Itemize
\end_layout
\begin_layout Standard
-One final note about the way displayed formulae 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
+One final note about the way displayed formulas are typeset: Be careful
+ about whether you are putting your equation into a new paragraph or not.
+ If your formula is in the middle of a sentence or paragraph, then do not
press
\family sans
Return
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 be indented or follow a blank line, depending on your document
+ paragraph settings, which is probably not what you want.
\end_layout
\begin_layout Standard
\family typewriter
example_raw.lyx
\family default
- into display mode, and see how they're typeset differently.
+ into display mode, and see how they are typeset differently.
\end_layout
\begin_layout Standard
\series bold
Exercise
\series default
-: Using various tools you've learned in this section, you should be able
- to write an equation like
+: Using various tools you have learned in this section, you should be able
+ to write an equation like:
\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 have 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
-:
+
\begin_inset Formula \[
f(x)=\left\{ \begin{array}{cc}
\log_{8}x & x>0\\
0 & x=0\\
-\sum_{i=1}^{5}\alpha_{i}+\sqrt{-\frac{1}{x}} & x<0\end{array}\right.\]
+\sum_{i=1}^{5}\alpha_{i}+\sqrt{-\frac{1}{x}} & x<0
+\end{array}\right.\]
\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 a lot more.
+ Now you are familiar with the basics, you can refer to the
\emph on
User's Guide
\emph default
\end_layout
\begin_layout Itemize
-Labeling and numbering expressions
+Label and number expressions
\end_layout
\begin_layout Itemize
-Multi-line equations
+Create multi-line equations
\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
Fine-tune font sizes and spacing within an expression.
- (Don't worry about this until your final draft!)
+ (Do not worry about this until your final draft!)
\end_layout
\begin_layout Itemize
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 we have no space for in this Tutorial.
\end_layout
\begin_layout Chapter
\end_layout
\begin_layout Standard
-We haven't gone through all the possible commands in LyX, and we aren't
+We have not gone through all the possible commands in LyX, and we are not
planning on it.
As usual, see the
\emph on
\emph default
and the
\emph on
-Embedded\InsetSpace ~
+Embedded
+\begin_inset space ~
+\end_inset
+
Objects
\emph default
manual for more information.
- We'll just mention a couple more major things LyX can do:
+ We will just mention a couple more major things LyX can do:
\end_layout
\begin_layout Itemize
\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.
\family default
by pressing
\family sans
-M-F
+Alt+F
\family default
followed by
\family sans
O
\family default
- or by using the binding which is shown next to it in the menu (C-O by default).
+ or by using the binding which is shown next to it in the menu (Ctrl+O by
+ default).
Keybindings are also configurable.
For information on this, check out
\family sans
\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
\end_layout
\begin_layout Itemize
-Spellchecking, thesaurus, and word count facilities are available.
+Spell-checking, thesaurus, and word count facilities are available.
\end_layout
\begin_layout Itemize
\begin_layout Section
LyX for LaTeX Users
-\begin_inset LatexCommand label
+\begin_inset CommandInset label
+LatexCommand label
name "sec:latexusers"
\end_inset
\end_layout
\begin_layout Standard
-If you don't know anything about LaTeX, you don't have to read this section.
+If you do not know anything about LaTeX, you do not have to read this section.
Actually, you might want to
\emph on
learn
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 ~
-Features
+Additional Features
\emph default
and the
\emph on
-Embedded\InsetSpace ~
-Objects
+Embedded Objects
\emph default
manual have a great deal of information on differences between LyX and
LaTeX, and how to do various LaTeX tricks in LyX.
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
\family default
or some other non-alphabetic character, like a number, underscore, caret,
or parenthesis.
- Once you exit TeX mode, if LyX knows the TeX command you've typed in, it
- will convert it to WYSIWYM\SpecialChar \@.
+ Once you exit TeX mode, if LyX knows the TeX command you have typed in,
+ it will convert it to WYSIWYM\SpecialChar \@.
So if you type
\begin_inset Quotes eld
\end_inset
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.
\end_layout
\begin_layout Standard
-As a special case, if you type a brace in TeX mode, then the beginning
+As a special case, if you type
+\begin_inset Quotes eld
+\end_inset
+
+
+\family typewriter
+
+\backslash
+{
+\family default
+
+\begin_inset Quotes erd
+\end_inset
+
+ in a formula, the beginning
\emph on
and
\emph default
- ending braces will be inserted in red, then take you
-\emph on
-out
-\emph default
- of TeX mode and place the cursor between the braces.
- This makes it more convenient to type commands that LyX doesn't know which
- take an argument.
+ ending braces will be inserted in red while the cursor is placed between
+ the braces.
+ This makes it more convenient to type those commands which take an argument.
\end_layout
\begin_layout Standard
-LyX can't do absolutely everything that LaTeX can do.
- Some fancy functions are not supported at all, while some work but aren't
- WYSIWYM.
+LyX cannot do absolutely everything that LaTeX can do.
+ Some fancy functions are not supported at all, while some work but are
+ not WYSIWYM.
TeX mode allows users to get the full flexibility of LaTeX, while having
all the convenient features of LyX, like WYSIWYM math, tables, and editing.
LyX could never support every LaTeX package.
\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
+), you can use any package you want---although you will not have WYSIWYM
support for that package's features.
\end_layout
\begin_layout Subsection
-Importing LaTeX Documents ---
+Importing LaTeX Documents
+\change_deleted 2 1263335457
+ —
+\change_inserted 2 1263335459
+---
+\change_unchanged
+
\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.
This will call the program
-\family typewriter
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
tex2lyx
-\family default
+\end_layout
+
+\end_inset
+
which will create a file
-\family typewriter
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
foo.lyx
-\family default
+\end_layout
+
+\end_inset
+
from the file
-\family typewriter
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
foo.tex
-\family default
- and then open that file.
- If the translation doesn't work, you can try calling
-\family typewriter
+\end_layout
+
+\end_inset
+
+
+\change_inserted 2 1263337184
+; LyX will
+\change_deleted 2 1263337185
+ and
+\change_unchanged
+then open that file.
+ If the translation does not work, you can try calling
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
tex2lyx
-\family default
+\end_layout
+
+\end_inset
+
from the command line, possibly using fancier options.
\end_layout
\begin_layout Standard
-\family typewriter
+\change_inserted 2 1263337199
+Even when the translation does work,
+\change_unchanged
+
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
tex2lyx
-\family default
- will translate most legal LaTeX, but not everything.
- It will leave things it doesn't understand in TeX mode, so after translating
+\end_layout
+
+\end_inset
+
+
+\change_inserted 2 1263337202
+may not
+\change_deleted 2 1263337203
+will
+\change_unchanged
+translate
+\change_deleted 2 1263337205
+most legal LaTeX, but not
+\change_unchanged
+everything
+\change_inserted 2 1263337217
+, though it does handle most legal LaTeX
+\change_unchanged
+.
+ It will leave things it does not understand in TeX mode; so, after translating
a file with
-\family typewriter
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
tex2lyx
-\family default
-, you can look for red text and hand-edit it to look right.
+\end_layout
+
+\end_inset
+
+, you can look for the red text and manually edit it to get it right.
\end_layout
\begin_layout Standard
+\begin_inset Flex CharStyle:Code
+status collapsed
-\family typewriter
+\begin_layout Plain Layout
tex2lyx
-\family default
- has its own manpage.
- Read it to find out about which LaTeX commands and environments aren't
- supported, bugs (and how to get around them), and how to use the various
- options.
+\end_layout
+
+\end_inset
+
+ has its own
+\change_inserted 2 1263337255
+documentation
+\change_deleted 2 1263337260
+manpage.
+\change_inserted 2 1263337293
+, which *nix users can access via
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+
+\change_inserted 2 1263337285
+man tex2lyx
+\change_unchanged
+
+\end_layout
+
+\end_inset
+
+.
+ The manpage describes
+\change_deleted 2 1263337296
+ Read it to find out
+\change_unchanged
+which LaTeX commands and environments are not supported,
+\change_inserted 2 1263335470
+what bugs you might run into
+\change_deleted 2 1263335471
+bugs
+\change_unchanged
+(and how to get around them), and how to use the various options.
+\change_inserted 2 1263335473
+
+\end_layout
+
+\begin_layout Standard
+
+\change_inserted 2 1263337717
+It is extremely important to understand that
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+
+\change_inserted 2 1263335502
+tex2lyx
+\change_unchanged
+
+\end_layout
+
+\end_inset
+
+ can only translate files whose document class is
+\begin_inset Quotes eld
+\end_inset
+
+known
+\begin_inset Quotes erd
+\end_inset
+
+ to LyX, that is, for which there is a corresponding LyX `layout file'.
+ If there is no layout file, then you will get an error saying that the
+ conversion could not be performed.
+ The reason for this is that, in a sense, LyX doesn't know anything about
+ LaTeX: very little of the information LyX has about LaTeX is contained
+ in the program itself.
+ That information is instead contained in layout files.
+ You can think of the layout file for a document class as a translation
+ manual between LyX constructs---paragraphs with their corresponding styles,
+ etc---and the corresponding LaTeX commands and environments.
+ So, unless you have a layout for
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+
+\change_inserted 2 1263336322
+foo.tex
+\change_unchanged
+
+\end_layout
+
+\end_inset
+
+'s document class,
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+
+\change_inserted 2 1263336331
+tex2lyx
+\change_unchanged
+
+\end_layout
+
+\end_inset
+
+ simply will not now how to translate the LaTeX that it finds there into
+ things LyX understands.
+\end_layout
+
+\begin_layout Standard
+
+\change_inserted 2 1263337784
+When you installed LyX, you also installed layout files for almost 100 different
+ document types (though some of these are DocBook, rather than LaTeX).
+ Still, there are many, many more document classes than that, and new ones
+ are probably invented every day.
+ There is no way that LyX itself can include layout files for every document
+ class you might want to use.
+\end_layout
+
+\begin_layout Standard
+
+\change_inserted 2 1263337857
+So what can you do if LyX does not include a layout file for your fancy
+ new document class? Create your own.
+ If your new document class is based upon, or very similar to, one for which
+ there already is a layout file, which is true in many cases, then creating
+ a new layout file may be as easy as copying a file and changing a few lines.
+ In the other cases, you may have more work to do.
+ But while you will have to learn a bit, it is not really that difficult,
+ and many of the people who contribute to the users' mailing list have a
+ great deal of experience they are willing to share.
+\change_unchanged
+
+\end_layout
+
+\begin_layout Standard
+
+\change_inserted 2 1263337162
+The format of LyX's layout files and the process of creating new ones are
+ discussed in detail in Chapter 5 of the
+\emph on
+Customization
+\emph default
+ manual.
+\change_unchanged
+
\end_layout
\begin_layout Subsection
\begin_layout Standard
You might wish to convert a LyX Document to a LaTeX file.
- For example, a co-worker or co-author who doesn't have LyX might want to
- read it.
+ For example, a co-worker or co-author who does not have LyX might want
+ to read it.
Select
\family sans
File\SpecialChar \menuseparator
Document\SpecialChar \menuseparator
Settings
\family default
- dialog takes care of many of the options that you would input in a
-\family typewriter
-
-\backslash
-documentclass
-\family default
- command.
- Change the class, default font size and paper size here.
- Put any extra options to the
-\family typewriter
-
-\backslash
-documentclass
-\family default
- command in the
+ dialog takes care of the document-wide options.
+ You can change there the document class, default font size and paper size.
+ Document class options but also options for LaTeX packages can be entered
+ there in the
\family sans
-E
-\bar under
-x
-\bar default
-tra\InsetSpace ~
-Options
+Class
+\begin_inset space ~
+\end_inset
+
+options
\family default
area.
\end_layout
\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
on the frontend).
- Anything you type will (like with TeX mode) be sent directly to LaTeX.
+ Anything you type will (as with TeX mode) be sent directly to LaTeX.
\end_layout
\begin_layout Subsection
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 \thinspace{}
+\end_inset
+
+/
+\begin_inset space \thinspace{}
+\end_inset
+
+TOC\SpecialChar \menuseparator
+BibTeX
+\begin_inset space ~
+\end_inset
-\bar under
-B
-\bar default
-ibTeX\InsetSpace ~
Bibliography
\family default
to include a
\end_layout
\begin_layout Standard
-After you've done this, you can use citations from any bibliographies you're
- including with
+After you have done this, you can use citations from any bibliographies
+ you are including with
\family sans
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
\end_layout
\begin_layout Standard
-Sometimes when you LaTeX a document, there will be errors, things that LyX
- or LaTeX can't understand.
+Sometimes when you try to view a document, there will be errors, things
+ that LyX or LaTeX cannot understand.
When this happens, LyX will open a
\family sans
-LaTeX\InsetSpace ~
+LaTeX
+\begin_inset space ~
+\end_inset
+
Errors
\family default
dialog.