Tutorial.lyx: fixes of issues spotted by John Hudson and revision of the document

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31689 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Uwe Stöhr 2009-10-21 03:08:18 +00:00
parent 456449bd56
commit 3856be62b9

View File

@ -1,4 +1,4 @@
#LyX 1.6.4 created this file. For more info see http://www.lyx.org/
#LyX 1.6.5svn created this file. For more info see http://www.lyx.org/
\lyxformat 345
\begin_document
\begin_header
@ -826,13 +826,9 @@ exactly
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 will be distracted by document formatting
@ -1346,11 +1342,7 @@ The
\family sans
List
\family default
, or
\family sans
Labelling
\family default
, environment is a variation on the
environment is a variation on the
\family sans
Description
\family default
@ -1436,7 +1428,7 @@ Ctrl+Return
\family sans
Standard
\family default
environment (or just use the keybinding,
environment (or just use the key binding,
\family sans
Alt+P
\begin_inset space ~
@ -1749,7 +1741,7 @@ Environment
\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
@ -2287,7 +2279,7 @@ Reference
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, `sec:About-This-Document'.
First, select the drop-down menu labelled Format and select '<reference>
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
@ -2322,7 +2314,11 @@ Ctrl+V
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 n is the page number).
'on the previous page' or `on page n' (whereas
\emph on
n
\emph default
is the page number).
\end_layout
\begin_layout Standard
@ -2497,7 +2493,7 @@ LyX is a typesetting word processor.
\end_layout
\begin_layout Standard
Now click on the button labelled
Now click on the button labeled
\begin_inset Quotes eld
\end_inset
@ -3014,9 +3010,9 @@ Esc
\end_layout
\begin_layout Standard
Run LaTeX and look at the output.
Notice that the expression was typeset nicely, with spaces between the
letters and the equals sign, and a superscript
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
@ -3039,7 +3035,8 @@ This math editor is another example of the WYSIWYM philosophy.
sqrt
\family default
; this can be frustrating, because you cannot see what an expression looks
like until you LaTeX the file, and may have to spend time to find e.
like until you run the file under LaTeX and you may have to spend time
finding e.
\begin_inset space \thinspace{}
\end_inset
@ -3114,7 +3111,7 @@ Edit\SpecialChar \menuseparator
Undo
\family default
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
One thing to be careful of: if you are left or right outside a formula
and you press
\family sans
Delete
@ -3123,7 +3120,7 @@ Delete
\family sans
Backspace
\family default
, respectively, you delete the whole formula.
respectively, you delete the whole formula.
Luckily, you can just use
\family sans
Undo
@ -3186,7 +3183,7 @@ Up
Down
\family default
will move the cursor back to the regular level.
When you hit
If you hit
\family sans
Space
\family default
@ -3245,16 +3242,16 @@ Esc
\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}}$
@ -3277,7 +3274,7 @@ example_raw.lyx
\end_layout
\begin_layout Section
The Math Toolbar
The Math toolbar
\end_layout
\begin_layout Standard
@ -3287,7 +3284,7 @@ Math
\begin_inset space ~
\end_inset
Toolbar
toolbar
\family default
is a convenient way to enter symbols or to perform complicated formula
operations.
@ -3308,16 +3305,24 @@ Math
\begin_inset space ~
\end_inset
Toolbars
toolbar
\family default
, just to let you know what is out there; you can learn keyboard shortcuts
later, from other manuals.
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
is shown when the cursor is in a formula and can also be turned on manually
in the menu
@ -3391,29 +3396,13 @@ Math
\begin_inset space ~
\end_inset
Toolbar
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 not 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
@ -3460,8 +3449,8 @@ Accenting a character (
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
@ -3509,8 +3498,8 @@ Delimiter
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.
So better use in this case one of the three delimiter buttons that insert
directly e.
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
@ -3619,7 +3608,7 @@ example_raw.lyx
\end_layout
\begin_layout Subsection
TeX mode: Limits, log, sin and others
Functions: lim, log, sin and others
\end_layout
\begin_layout Standard
@ -3758,7 +3747,7 @@ Backspace
\end_layout
\begin_layout Standard
The function list include other trigonometric functions and their inverses,
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
@ -3936,7 +3925,7 @@ User's Guide
\end_layout
\begin_layout Standard
Click on the display button
While being in a formula, click on the display button
\begin_inset Graphics
filename ../images/math-display.png
scale 75
@ -3952,11 +3941,9 @@ Math
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
is centered within that line.
Now type an expression and run LaTeX to see how it looks.
.
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.
@ -3980,7 +3967,7 @@ The default font is larger for a few symbols, like
\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
@ -4006,7 +3993,7 @@ Return
after
\emph default
the formula to start a new paragraph.
That text will therefore eventually be indented, depending on your document
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
@ -4028,7 +4015,7 @@ example_raw.lyx
Exercise
\series default
: Using various tools you have learned in this section, you should be able
to write an equation like
to write an equation like:
\begin_inset Foot
status collapsed
@ -4048,7 +4035,7 @@ Environment
\end_inset
:
\begin_inset Formula \[
f(x)=\left\{ \begin{array}{cc}
\log_{8}x & x>0\\
@ -4065,8 +4052,8 @@ More Math Stuff
\end_layout
\begin_layout Standard
LyX's math editor can do plenty more.
By now, you are familiar with the basics, so we 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
@ -4074,11 +4061,11 @@ User's Guide
\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
@ -4105,7 +4092,7 @@ Write macros.
\end_layout
\begin_layout Itemize
Do lots of other things that cannot be mentioned in this Tutorial.
Do lots of other things that we have no space for in this Tutorial.
\end_layout
\begin_layout Chapter
@ -4258,7 +4245,7 @@ reference "sec:tex2lyx"
\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
@ -4409,17 +4396,27 @@ Toolbar
\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 does not 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
@ -4503,12 +4500,12 @@ tex2lyx
tex2lyx
\family default
will translate most legal LaTeX, but not everything.
It will leave things it does not understand in TeX mode, so after translating
It will leave things it does not understand in TeX mode; so, after translating
a file with
\family typewriter
tex2lyx
\family default
, you can look for red text and hand-edit it to look right.
, you can look for the red text and manually edit it to get it right.
\end_layout
\begin_layout Standard
@ -4517,9 +4514,8 @@ tex2lyx
tex2lyx
\family default
has its own manpage.
Read it to find out about which LaTeX commands and environments are not
supported, bugs (and how to get around them), and how to use the various
options.
Read it to find out which LaTeX commands and environments are not supported,
bugs (and how to get around them), and how to use the various options.
\end_layout
\begin_layout Subsection
@ -4563,31 +4559,16 @@ The
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
Class
\begin_inset space ~
\end_inset
Options
options
\family default
area.
\end_layout
@ -4618,7 +4599,7 @@ 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
@ -4632,11 +4613,11 @@ al references to be used in multiple documents.
\family sans
Insert\SpecialChar \menuseparator
List
\begin_inset space ~
\begin_inset space \thinspace{}
\end_inset
/
\begin_inset space ~
\begin_inset space \thinspace{}
\end_inset
TOC\SpecialChar \menuseparator
@ -4663,7 +4644,7 @@ Style
\end_layout
\begin_layout Standard
After you have done this, you can use citations from any bibliographies
After you have done this, you can use citations from any bibliographies
you are including with
\family sans
Insert\SpecialChar \menuseparator
@ -4698,8 +4679,8 @@ Errors!
\end_layout
\begin_layout Standard
Sometimes when you LaTeX a document, there will be errors, things that LyX
or LaTeX cannot 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