2006-09-25 14:55:44 +00:00
|
|
|
|
#LyX 1.4.3svn created this file. For more info see http://www.lyx.org/
|
|
|
|
|
\lyxformat 245
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\begin_document
|
|
|
|
|
\begin_header
|
2004-06-02 13:40:06 +00:00
|
|
|
|
\textclass book
|
|
|
|
|
\language english
|
|
|
|
|
\inputencoding latin1
|
2006-09-25 14:55:44 +00:00
|
|
|
|
\fontscheme default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
\graphics none
|
|
|
|
|
\paperfontsize default
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\spacing single
|
|
|
|
|
\papersize default
|
|
|
|
|
\use_geometry false
|
2004-06-02 13:40:06 +00:00
|
|
|
|
\use_amsmath 0
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\cite_engine basic
|
|
|
|
|
\use_bibtopic false
|
2004-06-02 13:40:06 +00:00
|
|
|
|
\paperorientation portrait
|
|
|
|
|
\secnumdepth 3
|
|
|
|
|
\tocdepth 2
|
|
|
|
|
\paragraph_separation indent
|
|
|
|
|
\defskip medskip
|
|
|
|
|
\quotes_language english
|
|
|
|
|
\papercolumns 1
|
|
|
|
|
\papersides 2
|
|
|
|
|
\paperpagestyle headings
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\tracking_changes false
|
|
|
|
|
\output_changes true
|
|
|
|
|
\end_header
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\begin_body
|
|
|
|
|
|
|
|
|
|
\begin_layout Title
|
2004-06-02 13:40:06 +00:00
|
|
|
|
The LyX Tutorial
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Author
|
2004-06-02 13:40:06 +00:00
|
|
|
|
by the LyX Team
|
|
|
|
|
\begin_inset Foot
|
2005-07-18 09:42:29 +00:00
|
|
|
|
status collapsed
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Principal maintainer of this file is
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\noun on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Amir Karger
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\noun default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
.
|
|
|
|
|
If you have comments or error corrections, please send them to the LyX
|
2006-01-16 10:40:30 +00:00
|
|
|
|
Documentation mailing list,
|
|
|
|
|
\family typewriter
|
|
|
|
|
lyx-docs@lists.lyx.org
|
|
|
|
|
\family default
|
|
|
|
|
.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
\begin_inset LatexCommand \tableofcontents{}
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
|
|
|
|
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\begin_layout Chapter
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Introduction
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Section
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Welcome to LyX!
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
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.
|
|
|
|
|
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
|
|
|
|
|
LyX effectively.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Some of you probably found your way to this document because you tried to
|
|
|
|
|
put two spaces after a
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
.
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
or tried to put 3 blank lines between paragraphs.
|
|
|
|
|
After much frustration, you found you couldn't.
|
|
|
|
|
In fact, you'll find that most of the little tricks you're accustomed to
|
|
|
|
|
using in other word processors just 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.
|
|
|
|
|
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.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
So, bear with us and read on.
|
|
|
|
|
Reading this tutorial is definitely worth the time.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Section
|
2004-06-02 13:40:06 +00:00
|
|
|
|
What the Tutorial
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
is
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
and What it
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
isn't
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Before we get started with this section, we want to make a quick note of
|
|
|
|
|
something.
|
|
|
|
|
The
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Tutorial
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
uses the notation outlined in the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Introduction
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
\SpecialChar \@.
|
|
|
|
|
If you came to this manual first, go read the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Introduction
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
\SpecialChar \@.
|
|
|
|
|
Yes, we mean now.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Now that you know which fonts mean what, we want to talk a bit about what
|
|
|
|
|
this
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Tutorial
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
is for.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Subsection
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Getting the Most out of the Tutorial
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
This tutorial consists of examples and exercises.
|
|
|
|
|
To get the most out of this document, you should read through the document,
|
|
|
|
|
typing all the silly little things we're telling you to type and trying
|
|
|
|
|
out all of the exercises to see if you get them right.
|
2006-09-25 14:55:44 +00:00
|
|
|
|
For convenience, you might want to print out the PostScript<70> version of
|
2004-06-02 13:40:06 +00:00
|
|
|
|
this document.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
If you are familiar with LaTeX, you'll probably be able to read the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Tutorial
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
somewhat faster, since many LyX ideas are just LaTeX ideas in disguise.
|
|
|
|
|
However, LyX does have idiosyncrasies
|
|
|
|
|
\begin_inset Foot
|
2005-07-18 09:42:29 +00:00
|
|
|
|
status collapsed
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
or, more optimistically,
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
features
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
|
|
|
|
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
you'll want to learn about.
|
|
|
|
|
Even if you don't feel like reading the rest of the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Tutorial
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
|
|
|
|
, you should definitely check out Section\InsetSpace ~
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
\begin_inset LatexCommand \ref{sec:latexusers}
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
, which is specifically written for experienced LaTeX users.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Subsection
|
2004-06-02 13:40:06 +00:00
|
|
|
|
What You
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Won't
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Find:
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Itemize
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Detailed explanations of all of LyX's features.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_deeper
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
What, you want the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
User's Guide
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
twice?
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Seriously, though, we're here to get you up and running so that all you
|
|
|
|
|
need is the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
User's Guide
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
.
|
|
|
|
|
If we tried to duplicate all of the information about all of LyX's features
|
|
|
|
|
in here, the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Tutorial
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
would be redundant, too long, and forever out of date.
|
|
|
|
|
All we do here is introduce things; imagine there is a
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
see the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
User's Guide
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
at the end of every section.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
2006-01-02 01:51:18 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_deeper
|
|
|
|
|
\begin_layout Itemize
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Detailed explanations of LaTeX.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_deeper
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Unnecessary.
|
|
|
|
|
If you're really curious about learning some of the neat tricks you can
|
|
|
|
|
do with LaTeX, you can always go get a LaTeX book.
|
|
|
|
|
There are several good ones on the market.
|
|
|
|
|
No need to reinvent the wheel, after all\SpecialChar \ldots{}
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
2006-01-02 01:51:18 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_deeper
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
So, brave soul, it's time to move onwards.
|
|
|
|
|
Time for your first document \SpecialChar \ldots{}
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Chapter
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Getting Started with LyX
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Section
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Your First LyX Document
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
\begin_inset LatexCommand \label{sec:first-doc-ex}
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
OK\SpecialChar \@.
|
|
|
|
|
You're ready to start writing.
|
|
|
|
|
Before you do, though, there are a few things we need to mention, which
|
|
|
|
|
will hopefully make the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Tutorial
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
more instructive, useful, and fun.
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Because there's lots of information that we won't be giving you, the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
first
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\series medium
|
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
thing that you need to do is find the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\series default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
other
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\series medium
|
2004-06-02 13:40:06 +00:00
|
|
|
|
help files.
|
|
|
|
|
Luckily, this is very simple.
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\series default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Start up LyX.
|
|
|
|
|
Choose the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
User's Guide
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
from the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
H
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
elp
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
menu.
|
|
|
|
|
You may want to load the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Tutorial
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
as well (if you're not reading it on screen already).
|
|
|
|
|
This way, you can read them while you're writing your own file
|
|
|
|
|
\begin_inset Foot
|
2005-07-18 09:42:29 +00:00
|
|
|
|
status collapsed
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
They can also serve as good examples of how to use the many features of
|
|
|
|
|
LyX.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
.
|
|
|
|
|
Note that once you've got more than one document open, you can use the
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
D
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
ocuments
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
menu to switch between them.
|
|
|
|
|
The
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Tutorial
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
will not cover in detail subjects which are described in the other LyX
|
|
|
|
|
manuals.
|
|
|
|
|
This may make life a bit harder for you at the beginning, but it will keep
|
|
|
|
|
the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Tutorial
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
short.
|
|
|
|
|
It will also get you in the habit of using the other manuals, which ---
|
|
|
|
|
in the long run --- will save you a lot of time.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
In this
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Tutorial
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
, we're going to assume that you have a fully working version of LyX, as
|
|
|
|
|
well as LaTeX,
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2004-06-02 13:40:06 +00:00
|
|
|
|
xdvi
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
or some other dvi viewer,
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2004-06-02 13:40:06 +00:00
|
|
|
|
dvips
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
or some other way of converting
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2004-06-02 13:40:06 +00:00
|
|
|
|
dvi
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2006-09-25 14:55:44 +00:00
|
|
|
|
documents to PostScript<70> documents, and a working printer.
|
2004-06-02 13:40:06 +00:00
|
|
|
|
This is a lot to assume.
|
|
|
|
|
If any of this is not true, you (or a friendly system administrator) will
|
|
|
|
|
need to set up your system.
|
|
|
|
|
You can find information on setup in other manuals.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Finally, we've written a file to let you practice your LyX skills on.
|
|
|
|
|
It's called
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2004-06-02 13:40:06 +00:00
|
|
|
|
example_raw.lyx
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
.
|
|
|
|
|
Imagine that it was typed by someone who didn't know about any of LyX's
|
|
|
|
|
great features.
|
|
|
|
|
As you learn new LyX functions, we'll suggest that you fix those parts
|
|
|
|
|
of
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2004-06-02 13:40:06 +00:00
|
|
|
|
example_raw.lyx
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
.
|
|
|
|
|
It also contains
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
subtle
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
hints about how to fix things
|
|
|
|
|
\begin_inset Foot
|
2005-07-18 09:42:29 +00:00
|
|
|
|
status collapsed
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
The hints are located in yellow
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
Notes
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
.
|
|
|
|
|
Access the text in a note by clicking on it.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
.
|
|
|
|
|
If you want to cheat (or check what you've done), there's also a file called
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2004-06-02 13:40:06 +00:00
|
|
|
|
example_lyxified.lyx
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
which contains the same text as written and typeset by a LyX master.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
The example files can be found in the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2004-06-02 13:40:06 +00:00
|
|
|
|
examples/
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
directory, which you can get to by selecting
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
F
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
ile\SpecialChar \menuseparator
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
O
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
pen
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
and then clicking on the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
E
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
xamples
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
button.
|
|
|
|
|
Open the raw document, and use
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
F
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
ile\SpecialChar \menuseparator
|
|
|
|
|
Save
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar under
|
|
|
|
|
\InsetSpace ~
|
2004-06-02 13:40:06 +00:00
|
|
|
|
A
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
s
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
to save a copy in your own directory for you to work on.
|
|
|
|
|
As you fix parts of the raw document, check to see how those changes affect
|
|
|
|
|
the dvi output.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
By the way, the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2004-06-02 13:40:06 +00:00
|
|
|
|
examples/
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
directory contains lots of other examples files.
|
|
|
|
|
They will show you how to do various fancy things with LyX.
|
|
|
|
|
They are especially useful to display things that (due to length or other
|
|
|
|
|
reasons) won't fit in the documentation.
|
|
|
|
|
After you read the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Tutorial
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
, or when you're confused about how to do something fancy in LyX, take a
|
|
|
|
|
look at these files.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Subsection
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Typing, Viewing, and Printing
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Itemize
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Open a new file with
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
F
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
ile\SpecialChar \menuseparator
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
N
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
ew
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Itemize
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Type a sentence like:
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2004-06-02 13:40:06 +00:00
|
|
|
|
This is my first LyX document!
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Itemize
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Save your document with
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
F
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
ile\SpecialChar \menuseparator
|
2005-07-18 09:42:29 +00:00
|
|
|
|
Save\InsetSpace ~
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
A
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
s\SpecialChar \@.
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Itemize
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Run LaTeX to create a
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2004-06-02 13:40:06 +00:00
|
|
|
|
dvi
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
file, with
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
V
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
iew\SpecialChar \menuseparator
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
D
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
VI
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
\SpecialChar \@.
|
|
|
|
|
You may see things being printed in the window you ran the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2004-06-02 13:40:06 +00:00
|
|
|
|
lyx
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
command from.
|
|
|
|
|
These are messages from LaTeX, which you can ignore for now.
|
|
|
|
|
LyX will run
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2004-06-02 13:40:06 +00:00
|
|
|
|
xdvi
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
(or some other
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2004-06-02 13:40:06 +00:00
|
|
|
|
dvi
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
viewer), which will pop up a new window displaying what your document will
|
|
|
|
|
look like when printed.
|
|
|
|
|
\begin_inset Foot
|
2005-07-18 09:42:29 +00:00
|
|
|
|
status collapsed
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
You can save time by leaving
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2004-06-02 13:40:06 +00:00
|
|
|
|
xdvi
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
running in the background.
|
|
|
|
|
Then, you can use
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
V
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
iew\SpecialChar \menuseparator
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
U
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
pdate\SpecialChar \menuseparator
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
D
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
VI
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
and just click on the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2004-06-02 13:40:06 +00:00
|
|
|
|
xdvi
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
window (or unminimize it) after LaTeX finishes running.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\begin_layout Itemize
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Print by using
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
F
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
ile\SpecialChar \menuseparator
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
P
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
rint
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
and hitting
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
OK\SpecialChar \@.
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Congratulations! You've written and printed your first LyX document.
|
|
|
|
|
All of the rest is just details, which is covered in the rest of the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Tutorial
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
, the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
User's Guide
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
, and the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Extended
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Features
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Subsection
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Simple Operations
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
LyX can of course do most of the things you're used to doing with a word
|
|
|
|
|
processor.
|
|
|
|
|
It will word-wrap and indent paragraphs automatically.
|
|
|
|
|
Here's a quick description of how to do some simple actions.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Description
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Undo LyX has multiple levels of undo, which means you can undo everything
|
|
|
|
|
you've done since your current editing session started, by selecting
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
E
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
dit\SpecialChar \menuseparator
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
U
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
ndo
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
over and over again.
|
|
|
|
|
If you undo too much, just select
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
E
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
dit\SpecialChar \menuseparator
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
R
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
edo
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
to get it back.
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_deeper
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Currently, undo is limited to 100 steps.
|
|
|
|
|
Undo also doesn't work for
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
everything
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
; for instance, changes to the document layout.
|
|
|
|
|
Each of these is really a LyX bug.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
2006-01-02 01:51:18 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_deeper
|
|
|
|
|
\begin_layout Description
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Cut/Paste/Copy Use
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
E
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
dit\SpecialChar \menuseparator
|
|
|
|
|
Cut
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
,
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
E
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
dit\SpecialChar \menuseparator
|
|
|
|
|
Copy
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
, and
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
E
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
dit\SpecialChar \menuseparator
|
|
|
|
|
Paste
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
to cut, copy, and paste.
|
|
|
|
|
Or automatically paste selected text (including selections from other programs)
|
|
|
|
|
with the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
middle mouse button
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Description
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Find/Replace Use
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
E
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
dit\SpecialChar \menuseparator
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
F
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
|
|
|
|
ind\InsetSpace ~
|
|
|
|
|
&\InsetSpace ~
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Replace
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
for a search.
|
|
|
|
|
In the dialog, search with the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
F
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
ind
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
button, and use the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
R
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
eplace
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
button to replace a word you've found
|
|
|
|
|
\begin_inset Foot
|
2005-07-18 09:42:29 +00:00
|
|
|
|
status collapsed
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Close the window when you're done.
|
|
|
|
|
Or leave it open if you find it more convenient.
|
|
|
|
|
Most dialog boxes in LyX --- including the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
Find\InsetSpace ~
|
|
|
|
|
&\InsetSpace ~
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Replace
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
,
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
Table\InsetSpace ~
|
|
|
|
|
of\InsetSpace ~
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Contents
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
, and
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Layout
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
dialogs, as well as the various math dialogs can operate like this.
|
|
|
|
|
A few dialogs, like
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
F
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
ile\SpecialChar \menuseparator
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
O
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
pen
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
, won't let you type anything in the main LyX window until you actually
|
|
|
|
|
close the dialog.
|
|
|
|
|
Just be sure you have the right window focus when you're trying to type
|
|
|
|
|
in the main LyX window or give a command in some other LyX dialog.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
.
|
|
|
|
|
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.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Description
|
|
|
|
|
Character\InsetSpace ~
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Formatting You can
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
emphasize
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
text (which will generally put characters in italics), put it in
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\series bold
|
2004-06-02 13:40:06 +00:00
|
|
|
|
bold face
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\series default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
, or in
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\noun on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Noun Style
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\noun default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
(usually small caps, used for people's names) from the toggle buttons in
|
|
|
|
|
the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
E
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
dit\SpecialChar \menuseparator
|
2005-07-18 09:42:29 +00:00
|
|
|
|
Text\InsetSpace ~
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
S
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
tyle
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
dialog.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Description
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Toolbar There are buttons on the toolbar (just below the menus) which allow
|
|
|
|
|
you to do some of the more popular functions, such as
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Paste
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
and
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Print
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Of course, you haven't yet written enough to make most of these functions
|
|
|
|
|
useful.
|
|
|
|
|
As you write more, though, try undoing, pasting, etc.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Subsection
|
2004-06-02 13:40:06 +00:00
|
|
|
|
WYSIWYM: Whitespace in LyX
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
\begin_inset LatexCommand \label{sec:whitespace}
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
One of the hardest things for new users to get used to is the way that LyX
|
|
|
|
|
handles whitespace.
|
|
|
|
|
As many times as you hit
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Return
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
, you'll only get one blank line.
|
|
|
|
|
As many times as you hit
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Space
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
, you'll only get one space.
|
|
|
|
|
On a blank line, LyX won't let you type even one space.
|
|
|
|
|
The
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Tab
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
key won't move you forward one tab stop; in fact there
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
are
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
no tab stops! There's no ruler at the top of the page to let you set tabs
|
|
|
|
|
or margins, either.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Many commercial word processors are based on the WYSIWYG principle:
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
What You See Is What You Get.
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
LyX, on the other hand, is based on the principle that
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
What You See Is What You
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Mean
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
.
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
You type what you mean, and LyX will take care of typesetting it for you,
|
|
|
|
|
so that the output looks nice.
|
|
|
|
|
A
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Return
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
grammatically separates paragraphs, and a
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Space
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
grammatically separates words, so there is no reason to have several of
|
|
|
|
|
them in a row; a
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Tab
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
has no grammatical function at all, so LyX does not support it.
|
|
|
|
|
Using LyX, you'll spend more of your time worrying about the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
content
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
of your document, and less time worrying about the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
format.
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
See the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Introduction
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
for more information on the WYSIWYM concept.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
LyX does have (many) ways to fine-tune the formatting of your document.
|
|
|
|
|
After all, LyX might not typeset
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
exactly
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
what you mean.
|
|
|
|
|
The
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
User's Guide
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
has information about all that.
|
|
|
|
|
It includes
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
HFill
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
s and vertical space --- which are more powerful and versatile than multiple
|
|
|
|
|
spaces or blank lines --- and ways to change font sizes, character styles,
|
|
|
|
|
and paragraph alignments by hand.
|
|
|
|
|
The idea, though, is that you can write your whole document, focusing on
|
|
|
|
|
content, and just worry about that fine-tuning at the end.
|
|
|
|
|
With standard word processors, you'll be distracted by document formatting
|
|
|
|
|
throughout the writing process.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Section
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Environments
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Different parts of a document have different purposes; we call these parts
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
environments
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
.
|
|
|
|
|
Most of a document is made up of regular text.
|
|
|
|
|
Section (chapter, subsection, etc.) titles let the reader know that a new
|
|
|
|
|
topic or subtopic will be discussed.
|
|
|
|
|
Certain types of documents have special environments.
|
|
|
|
|
A journal article will have an abstract, and a title.
|
|
|
|
|
A letter will have neither of these, but will probably have an environment
|
|
|
|
|
that gives the writer's address.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Environments are a major part of the
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
What You See Is What You Mean
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
philosophy of LyX.
|
|
|
|
|
A given environment may require a certain font style, font size, indenting,
|
|
|
|
|
line spacing, and more.
|
|
|
|
|
This problem is aggravated, because the exact formatting for a given environmen
|
|
|
|
|
t may change: one journal may use boldface, 18 point, centered type for
|
|
|
|
|
section titles while another uses italicized, 15 point, left justified
|
|
|
|
|
type; different languages may have different standards for indenting; and
|
|
|
|
|
bibliography formats can vary widely.
|
|
|
|
|
LyX lets you avoid learning all the different formatting styles.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
The
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Environment
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
box is located on the left end of the toolbar (just under the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
F
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
ile
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
menu).
|
|
|
|
|
It indicates which environment you're currently writing in.
|
|
|
|
|
While you were writing your first document, it said
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
Standard,
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
which is the default environment for text.
|
|
|
|
|
Now you will put a number of environments in your new document so that
|
|
|
|
|
you can see how they work.
|
|
|
|
|
You'll do so with the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Environment
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
menu, which you open by clicking on the
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
down arrow
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
icon just to the right of the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Environment
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
box.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Subsection
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Sections and Subsections
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Type the word
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Introduction
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
on the first line of your LyX file, and select
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Section
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
from the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Environment
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
menu
|
|
|
|
|
\begin_inset Foot
|
2005-07-18 09:42:29 +00:00
|
|
|
|
status collapsed
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
You don't have to
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
select
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
the line.
|
|
|
|
|
If nothing is selected, LyX changes the paragraph you are currently in
|
|
|
|
|
to the selected environment.
|
|
|
|
|
Alternatively, you can change several paragraphs to a different environment
|
|
|
|
|
by selecting them before picking an environment.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
.
|
|
|
|
|
Be sure to use
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Section
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
and
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
not
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Section*
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
, which will be covered below.
|
|
|
|
|
LyX numbers the section
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
1
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
and typesets the section heading (title) in a larger font.
|
|
|
|
|
Now hit
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Return
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
\SpecialChar \@.
|
|
|
|
|
Note that the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Environment
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
box changes from
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
Section
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
back to
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
Standard
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
.
|
|
|
|
|
Section headings, like most environments, are assumed to end when you type
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Return
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
\SpecialChar \@.
|
|
|
|
|
Type the document introduction:
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout LyX-Code
|
2004-06-02 13:40:06 +00:00
|
|
|
|
This is an introduction to my first LyX document.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Hit
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Return
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
again, and select
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Section
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
from the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Environment
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
menu again.
|
|
|
|
|
LyX writes a
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
2
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
and waits for you to type a title.
|
|
|
|
|
Type
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2004-06-02 13:40:06 +00:00
|
|
|
|
More Stuff
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
, and you'll see that LyX again sets it as a section title.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
It gets better.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
Go to the end of Section\InsetSpace ~
|
2004-06-02 13:40:06 +00:00
|
|
|
|
1 again (after
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
my first LyX document
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
) and hit
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Return
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
again, and select
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Section
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
from the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Environment
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
menu again.
|
|
|
|
|
Again, LyX writes
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
2
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
and waits for you to type a title.
|
|
|
|
|
Type
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2004-06-02 13:40:06 +00:00
|
|
|
|
About This Document
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
Section\InsetSpace ~
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
More Stuff
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
, which used to be Section\InsetSpace ~
|
|
|
|
|
2, has been automatically renumbered to Section\InsetSpace ~
|
2004-06-02 13:40:06 +00:00
|
|
|
|
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.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Hit
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Return
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
to get back to the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Standard
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
environment, and type the following five lines:
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout LyX-Code
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Sections and subsections are described below.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout LyX-Code
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Section Description
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout LyX-Code
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Sections are bigger than subsections.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout LyX-Code
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Subsection description
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout LyX-Code
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Subsections are smaller than sections.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Click on the second line and select
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Subsection
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
from the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Environment
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
menu.
|
|
|
|
|
LyX numbers the subsection
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
2.1
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
, and typesets it in a font which is bigger than regular text but smaller
|
|
|
|
|
than the section title.
|
|
|
|
|
Change the fourth line
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Subsection
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
environment as well.
|
|
|
|
|
As you probably expected, LyX automatically numbered the section
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
2.2
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
If you put yet another section before Section\InsetSpace ~
|
|
|
|
|
2, Section\InsetSpace ~
|
2004-06-02 13:40:06 +00:00
|
|
|
|
2 will be renumbered
|
|
|
|
|
as Section 3, and the subsections will be renumbered to
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
3.1
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
and
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
3.2
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
.
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Further levels of sectioning include
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Subsubsection
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
,
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Paragraph
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
, and
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Subparagraph
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
.
|
|
|
|
|
We'll 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
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
User's Guide
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
to change this.
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Chapter
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
headings are actually the highest level of sectioning, above
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Section
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
s, but you're only allowed to use them in certain types (text classes) of
|
2005-07-18 09:42:29 +00:00
|
|
|
|
LyX documents (see Section\InsetSpace ~
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
\begin_inset LatexCommand \ref{sec:textclasses}
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
).
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Finally, you may want to have sections or subsections that are not numbered.
|
|
|
|
|
There are environments for this as well.
|
|
|
|
|
If you change one of your section headings to the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Section*
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
environment (you may have to scroll down in the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Environment
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
menu 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.
|
|
|
|
|
There are corresponding
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
starred
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
heading environments for
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Subsection
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
and
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Subsubsection
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
.
|
|
|
|
|
Try changing some of your sections or subsections to the starred environments,
|
|
|
|
|
and note how the other sections' numbers are updated.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\series bold
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Exercise
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\series default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
: Fix the section and subsection headings in
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2004-06-02 13:40:06 +00:00
|
|
|
|
example_raw.lyx
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
.
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Subsection
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Lists and sublists
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
LyX has several different environments for typesetting lists.
|
|
|
|
|
The various list environments free you from hitting
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Tab
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
a million times when writing an outline, or from renumbering a whole list
|
|
|
|
|
when you want to add a point in the middle of the list, and lets you concentrat
|
|
|
|
|
e on the list content.
|
|
|
|
|
\begin_inset Foot
|
2005-07-18 09:42:29 +00:00
|
|
|
|
status collapsed
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Yes, we're overemphasizing this point throughout the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Tutorial
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
.
|
|
|
|
|
But it
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
is
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
the main philosophy of LyX, so please forgive us.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
Different types of documents logically require different list environments:
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Itemize
|
2004-06-02 13:40:06 +00:00
|
|
|
|
A slide presentation might use the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Itemize
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
environment's bulleted lists to describe different points.
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Itemize
|
2004-06-02 13:40:06 +00:00
|
|
|
|
An outline would use the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Enumerate
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
environment's numbered lists (and lettered sublists).
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Itemize
|
2004-06-02 13:40:06 +00:00
|
|
|
|
A document describing several software packages could use the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Description
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
environment, where each item in the list begins with a bold-faced word.
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Itemize
|
2004-06-02 13:40:06 +00:00
|
|
|
|
The
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
List
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
environment --- not found in LaTeX --- is a slightly different form of
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Description
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Let's write a list of reasons why LyX is better than other word processors.
|
|
|
|
|
Somewhere in your document, type:
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Lyx is better than other word processors because:
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
and hit
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Return
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
.
|
|
|
|
|
Now select
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Itemize
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
from the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Environment
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
menu.
|
|
|
|
|
LyX writes a
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
bullet
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
(actually, an asterisk, which will be converted to a round circle on output)
|
|
|
|
|
on the line.
|
|
|
|
|
Type in your reasons:
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout LyX-Code
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Typesetting is done for you.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout LyX-Code
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Math is WYSIWYG
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout LyX-Code
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Lists are very easy to create!
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
List environments, unlike headings, do not end when you type
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Return
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
.
|
|
|
|
|
Instead, LyX assumes you're 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
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
item
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
, one way is to use the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
Protected\InsetSpace ~
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Break
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
, which you get by typing
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
C-Return
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
.
|
|
|
|
|
In order to get out of the list, you need to reselect the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Standard
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
environment (or just use the keybinding,
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
M-p\InsetSpace ~
|
2004-06-02 13:40:06 +00:00
|
|
|
|
s
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
).
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
You've 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
|
2005-07-18 09:42:29 +00:00
|
|
|
|
status collapsed
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
LyX won't let you select the first bullet unless you also select the paragraph
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
before
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
the list, which you probably don't want to do.
|
|
|
|
|
Similarly, you can't select the actual number in a numbered section title.
|
|
|
|
|
Don't worry about it.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
and choose
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Enumerate
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
from the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Environment
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
menu.
|
|
|
|
|
Pow! As we mentioned, if you add or delete a list item, LyX will fix the
|
|
|
|
|
numbering.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
While the list is still selected, you can change to the other two list environme
|
|
|
|
|
nts,
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Description
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
and
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
List
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
, in order to see what they look like.
|
|
|
|
|
For those two environments, each list item is made up of a term, which
|
|
|
|
|
is the item's first word, followed by a definition, which is the rest of
|
|
|
|
|
the paragraph (until you hit
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Return
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
.) The term is either typeset in boldface (
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Description
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
) or separated by a
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
Tab
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\begin_inset Foot
|
2005-07-18 09:42:29 +00:00
|
|
|
|
status collapsed
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
But a typesetter's tab, which will change to fit the size of the largest
|
|
|
|
|
term, not a pathetic, rigid, unchangeable typewriter
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Tab
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
(
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
List
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
) from the rest of the paragraph.
|
|
|
|
|
If you want to have more than one word in the definition, then separate
|
|
|
|
|
the words with
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
Protected\InsetSpace ~
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Blank
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
s.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\series bold
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Exercise
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\series default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
: Typeset the list in
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2004-06-02 13:40:06 +00:00
|
|
|
|
example_raw.lyx
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
You can nest lists within each other in all sorts of interesting ways.
|
|
|
|
|
An obvious example would be writing outlines.
|
|
|
|
|
Numbered and bulleted lists will have different numbering and bulleting
|
|
|
|
|
schemes for sublists.
|
|
|
|
|
See the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
User's Guide
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
for details on the different sorts of lists, as well as examples which
|
|
|
|
|
use
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
a lot
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
of nesting.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Subsection
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Other Environments: Verses, Quotations, and More
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
There are two environments for setting quotations apart from surrounding
|
|
|
|
|
text:
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Quote
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
for short quotes and
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Quotation
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
for longer ones.
|
|
|
|
|
Computer code (the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
LyX-Code
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
environment, also used in the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Tutorial
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
for the long typing examples) is written in a
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2004-06-02 13:40:06 +00:00
|
|
|
|
typewriter
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
font; this environment is the only place in LyX where you're allowed to
|
|
|
|
|
use multiple spaces to allow code indenting.
|
|
|
|
|
You can even write poetry using the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Verse
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
style, using
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Return
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
to separate stanzas, and
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
C-Return
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
to separate lines within a stanza.
|
|
|
|
|
See the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
User's Guide
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
for more complete descriptions of all of the available LyX environments.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\series bold
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Exercise
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\series default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
: Correctly typeset the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Quote, LyX-Code,
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
and
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Verse
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
in
|
|
|
|
|
\begin_inset ERT
|
2005-07-18 09:42:29 +00:00
|
|
|
|
status inlined
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2006-03-13 14:43:31 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\backslash
|
2004-06-02 13:40:06 +00:00
|
|
|
|
linebreak
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2004-06-02 13:40:06 +00:00
|
|
|
|
example_raw.lyx
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Chapter
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Writing Documents
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
The previous chapter hopefully allowed you to get used to writing in LyX.
|
|
|
|
|
It introduced you to the basic editing operations in LyX, as well as the
|
|
|
|
|
powerful method of writing with environments.
|
|
|
|
|
Most people who use LyX, though, will want to write documents: papers,
|
|
|
|
|
articles, books, manuals, or letters.
|
|
|
|
|
This chapter is meant to take you from simply writing text with LyX to
|
|
|
|
|
writing a complete document.
|
|
|
|
|
It will introduce you to text classes, which allow you to write different
|
|
|
|
|
sorts of documents.
|
|
|
|
|
It will then describe many of the additions that turn text into a document,
|
|
|
|
|
such as titles, footnotes, cross references, bibliographies, and tables
|
|
|
|
|
of contents.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Section
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Text classes
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
\begin_inset LatexCommand \label{sec:textclasses}
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
Different sorts of documents should be typeset differently.
|
|
|
|
|
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.
|
|
|
|
|
The LyX
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
text class
|
|
|
|
|
\begin_inset Foot
|
2005-07-18 09:42:29 +00:00
|
|
|
|
status collapsed
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
LaTeX users: this is equivalent to the LaTeX document class
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
takes care of these large scale differences between different sorts of documents.
|
|
|
|
|
This
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Tutorial
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
, for example, was written in the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Book
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
text class.
|
|
|
|
|
Text 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.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Your document is probably being written in the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Article
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
text class
|
|
|
|
|
\begin_inset Foot
|
2005-07-18 09:42:29 +00:00
|
|
|
|
status collapsed
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
That's usually the default text class
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
.
|
|
|
|
|
Try changing to other text classes (using the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
D
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
ocument\SpecialChar \menuseparator
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
S
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
ettings
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
dialog) to see how they are typeset differently.
|
|
|
|
|
If you change your document to the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Book
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
text class and look at the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Environment
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
menu, you'll see that most of the allowed environments are the same.
|
|
|
|
|
However, you can now use the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Chapter
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
environment.
|
|
|
|
|
If you're ever unsure about which environments you can use in a given text
|
|
|
|
|
class, just consult the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Environment
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
menu.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Font sizes, one- or two-column printing, and page headings are just some
|
|
|
|
|
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
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
style files
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
so that authors can submit correctly typeset articles.
|
|
|
|
|
LyX is set up to support this as well.
|
|
|
|
|
For example, LyX supports typesetting (and extra environments) for the
|
|
|
|
|
American Mathematics Society journals using the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
Article\InsetSpace ~
|
2004-06-02 13:40:06 +00:00
|
|
|
|
(AMS)
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
text class.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Here's a very quick reference to some of the text classes.
|
|
|
|
|
See the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Special Document Classes
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
section of the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Extended Features
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
manual for many more details.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
|
|
|
|
\align center
|
2006-01-02 01:51:18 +00:00
|
|
|
|
\begin_inset Tabular
|
2004-06-02 13:40:06 +00:00
|
|
|
|
<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">
|
|
|
|
|
\begin_inset Text
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Name
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
</cell>
|
|
|
|
|
<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
|
|
|
|
|
\begin_inset Text
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Notes
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
</cell>
|
|
|
|
|
</row>
|
|
|
|
|
<row topline="true">
|
|
|
|
|
<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
|
|
|
|
|
\begin_inset Text
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
article
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
</cell>
|
|
|
|
|
<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
|
|
|
|
|
\begin_inset Text
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
one-sided, no chapters
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
</cell>
|
|
|
|
|
</row>
|
|
|
|
|
<row topline="true">
|
|
|
|
|
<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
|
|
|
|
|
\begin_inset Text
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
article (AMS)
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
</cell>
|
|
|
|
|
<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
|
|
|
|
|
\begin_inset Text
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
layout & environments for American Math Society
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
</cell>
|
|
|
|
|
</row>
|
|
|
|
|
<row topline="true">
|
|
|
|
|
<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
|
|
|
|
|
\begin_inset Text
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
report
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
</cell>
|
|
|
|
|
<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
|
|
|
|
|
\begin_inset Text
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
longer than article, two-sided
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
</cell>
|
|
|
|
|
</row>
|
|
|
|
|
<row topline="true" bottomline="true">
|
|
|
|
|
<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
|
|
|
|
|
\begin_inset Text
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
book
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
</cell>
|
|
|
|
|
<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
|
|
|
|
|
\begin_inset Text
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
report + front and back matter
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
</cell>
|
|
|
|
|
</row>
|
|
|
|
|
<row bottomline="true">
|
|
|
|
|
<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
|
|
|
|
|
\begin_inset Text
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
slides
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
</cell>
|
|
|
|
|
<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
|
|
|
|
|
\begin_inset Text
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
transparencies (also including FoilTeX)
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
</cell>
|
|
|
|
|
</row>
|
|
|
|
|
<row bottomline="true">
|
|
|
|
|
<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
|
|
|
|
|
\begin_inset Text
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
letter
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
</cell>
|
|
|
|
|
<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
|
|
|
|
|
\begin_inset Text
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
lots of extra environments for address, signature\SpecialChar \ldots{}
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
</cell>
|
|
|
|
|
</row>
|
|
|
|
|
</lyxtabular>
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Section
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Templates: Writing a Letter
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
One of the most popular text classes is
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Letter
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
\SpecialChar \@.
|
|
|
|
|
One way to write a letter would be to open a new
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
file, and choose
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Letter
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
class in the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
D
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
ocument\SpecialChar \menuseparator
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
S
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
ettings
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
dialog.
|
|
|
|
|
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.
|
|
|
|
|
LyX therefore has a
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
template
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
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.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Open a new file with
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
F
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
ile\SpecialChar \menuseparator
|
2005-07-18 09:42:29 +00:00
|
|
|
|
New\InsetSpace ~
|
|
|
|
|
from\InsetSpace ~
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
T
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
emplate
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
.
|
|
|
|
|
Select
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2004-06-02 13:40:06 +00:00
|
|
|
|
letter.lyx
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
as the template.
|
|
|
|
|
Save and print the file to see how the various environments are typeset.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
When you look at the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Environment
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
menu, you'll see several environments, like the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
My\InsetSpace ~
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Address
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
environment, which don't even exist in most other text classes.
|
|
|
|
|
Others, like
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Quote
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
and
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Description
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
, are familiar.
|
|
|
|
|
You can play around for a while to figure out how the various environments
|
|
|
|
|
work.
|
|
|
|
|
You'll notice for example that the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Signature
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
environment has the word
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
Signature:
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
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 try
|
|
|
|
|
printing 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
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Signature
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
line is placed.
|
|
|
|
|
Remember, LyX is WYSIWYM; you can put the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Signature
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
environment anywhere you want, but LyX knows that in the printout, the
|
|
|
|
|
signature should be at the end.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
A template is just a regular LyX file.
|
|
|
|
|
This means you can fill in your address and signature and save the file
|
|
|
|
|
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 probably don't have to suggest an actual
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
exercise
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2006-01-16 10:40:30 +00:00
|
|
|
|
here; just write a letter to someone!
|
2004-06-02 13:40:06 +00:00
|
|
|
|
\begin_inset Foot
|
2005-07-18 09:42:29 +00:00
|
|
|
|
status collapsed
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
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
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
My\InsetSpace ~
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Address
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
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
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Environment
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
menu to get it back.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2006-01-16 10:40:30 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Templates can be a huge time-saver, and we urge you to use them whenever
|
|
|
|
|
possible.
|
|
|
|
|
In addition, they can help a person learn how to use some of the fancier
|
|
|
|
|
text 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.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Section
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Document Titles
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
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.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Go back to your
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2004-06-02 13:40:06 +00:00
|
|
|
|
newfile.lyx
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
document and make sure it's using the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Article
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
text class.
|
|
|
|
|
\begin_inset Foot
|
2005-07-18 09:42:29 +00:00
|
|
|
|
status collapsed
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
You should not be using the letter any more, since the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Letter
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
textclass doesn't allow titles.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
Type a title on the first line, and change the line to the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Title
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
environment.
|
|
|
|
|
On the next line, type your name and change it to the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Author
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
environment.
|
|
|
|
|
On the next line, write the date in the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Date
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
environment.
|
|
|
|
|
Type a paragraph or two summarizing your document using the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Abstract
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
environment.
|
2006-03-13 14:43:31 +00:00
|
|
|
|
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
|
|
|
|
|
page, like the first page of this tutorial.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\series bold
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Exercise
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\series default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
: Fix the title, date, and author in
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2004-06-02 13:40:06 +00:00
|
|
|
|
example_raw.lyx
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Section
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Labels and Cross-References
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
\begin_inset LatexCommand \label{sec:labels}
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
You can label a section (or subsubsection, or, more rarely, just a random
|
|
|
|
|
piece of text) in your document.
|
|
|
|
|
Once you do so, you can refer to this section in other parts of the document,
|
|
|
|
|
using cross-references.
|
|
|
|
|
You can refer either to the section's number, or to the page that the section
|
|
|
|
|
appears on.
|
|
|
|
|
As with sections and footnotes, LyX worries about the cross-references
|
|
|
|
|
for you.
|
|
|
|
|
Automatic labels and cross-references are one of the best advantages of
|
|
|
|
|
LyX (and LaTeX) over conventional word processors.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Subsection*
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Your first label
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Let's mark our second section, whose title is
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
About This Document
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
.
|
|
|
|
|
Click at the end of the section title line, and select
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
I
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
nsert\SpecialChar \menuseparator
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
L
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
abel
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
.
|
|
|
|
|
A dialog asks you for a label name, and gives you a suggestion.
|
|
|
|
|
When you click on
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
OK
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
, the label name will be placed in a box next to the section title.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
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.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
So far you haven't done anything --- the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2004-06-02 13:40:06 +00:00
|
|
|
|
dvi
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
file will look exactly the same, since labels don't show up in the printed
|
|
|
|
|
document.
|
|
|
|
|
However, now that you've added a label, you can refer to that label with
|
|
|
|
|
cross-references.
|
|
|
|
|
We'll do that next.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Subsection*
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Your first cross-references
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\begin_layout Standard
|
|
|
|
|
Place the cursor somewhere in Section\InsetSpace ~
|
2004-06-02 13:40:06 +00:00
|
|
|
|
2 of your document.
|
|
|
|
|
Type
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout LyX-Code
|
2004-06-02 13:40:06 +00:00
|
|
|
|
If you want to know more about this document, then see
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\newline
|
2006-01-02 01:51:18 +00:00
|
|
|
|
Section , which can
|
|
|
|
|
be found on page .
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Now --- with the cursor after the word
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
section
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
--- choose
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
I
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
nsert\SpecialChar \menuseparator
|
2005-07-18 09:42:29 +00:00
|
|
|
|
Cross\InsetSpace ~
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
R
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
eference
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
.
|
|
|
|
|
The
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Reference
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
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
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
sec:aboutdocument
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
.
|
|
|
|
|
Select it (it may be selected by default), and click
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Apply
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
.
|
|
|
|
|
Now put the cursor after the word
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
page
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
, and change the reference type to use the page number then click
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Apply
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
.
|
|
|
|
|
(To be really correct, you should put a
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
Protected\InsetSpace ~
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Blank
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
in between the word
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
Section
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
and the reference.
|
|
|
|
|
Same for the page reference.)
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
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
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Reference
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
dialog).
|
|
|
|
|
Use
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
V
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
iew\SpecialChar \menuseparator
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
U
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
pdate\SpecialChar \menuseparator
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
D
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
VI
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
, and you'll see that on the last page we refer to
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
Section\InsetSpace ~
|
2004-06-02 13:40:06 +00:00
|
|
|
|
2
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
and
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
Page\InsetSpace ~
|
2004-06-02 13:40:06 +00:00
|
|
|
|
1
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
(or whatever page Section\InsetSpace ~
|
2004-06-02 13:40:06 +00:00
|
|
|
|
2's title is on).
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Conveniently, a cross-reference acts a hyperlink when you're editing a document
|
|
|
|
|
in LyX; clicking on it will pop up the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Reference
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
dialog, clicking
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
Go\InsetSpace ~
|
|
|
|
|
to\InsetSpace ~
|
2006-01-16 10:40:30 +00:00
|
|
|
|
Label
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
will move the cursor to the referenced label.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Subsection*
|
2004-06-02 13:40:06 +00:00
|
|
|
|
More fun with labels
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
We told you that LyX worries about numbering cross-references; now you can
|
|
|
|
|
test that.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
Add a new section before Section\InsetSpace ~
|
2004-06-02 13:40:06 +00:00
|
|
|
|
2.
|
2006-09-25 14:55:44 +00:00
|
|
|
|
Now rerun LaTeX, and --- voil<69>! --- the section cross reference changed
|
2004-06-02 13:40:06 +00:00
|
|
|
|
to
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
3
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
! Change
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
About this Document
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
to a subsection, and the cross-reference will reference Subsection\InsetSpace ~
|
2004-06-02 13:40:06 +00:00
|
|
|
|
2.1 instead
|
2005-07-18 09:42:29 +00:00
|
|
|
|
of Section\InsetSpace ~
|
2004-06-02 13:40:06 +00:00
|
|
|
|
3.
|
|
|
|
|
The page reference won't change unless you add a whole page of text before
|
|
|
|
|
the label, of course.
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
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 (if, for example, you're
|
|
|
|
|
writing a journal article), it may be convenient to leave the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Reference
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2006-01-16 10:40:30 +00:00
|
|
|
|
dialog open.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
If you want to make sure that the cross-referencing gets the pages right
|
|
|
|
|
even for larger documents,
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Copy
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
a couple pages of text from the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
User's Guide
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
to the clipboard, and
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Paste
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
the stolen text into your document
|
|
|
|
|
\begin_inset Foot
|
2005-07-18 09:42:29 +00:00
|
|
|
|
status collapsed
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
By the way, copying a chapter title may cause an error, because chapters
|
|
|
|
|
aren't allowed in the article class.
|
|
|
|
|
If this happens, just delete the chapter title.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
If you want to know why this happens, see Section\InsetSpace ~
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
\begin_inset LatexCommand \ref{sec:textclasses}
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
.
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\series bold
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Exercise
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\series default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
: Fix the references in
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2004-06-02 13:40:06 +00:00
|
|
|
|
example_raw.lyx
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Section
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Footnotes and Margin Notes
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Footnotes can be added using the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
Insert\InsetSpace ~
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Footnote
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
button in the toolbar
|
|
|
|
|
\begin_inset Foot
|
2005-07-18 09:42:29 +00:00
|
|
|
|
status collapsed
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
The button shows an arrow pointing to red text, which is just below some
|
|
|
|
|
black text.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
or
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
I
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
nsert\SpecialChar \menuseparator
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
F
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
ootnote
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
\SpecialChar \@.
|
|
|
|
|
Click at the end of the word
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
LyX
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
somewhere in your document and hit the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
Insert\InsetSpace ~
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Footnote
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
button.
|
|
|
|
|
A footnote box appears where you can enter the text of the footnote.
|
|
|
|
|
LyX should place the cursor at the beginning of the footnote box.
|
|
|
|
|
Type
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout LyX-Code
|
2004-06-02 13:40:06 +00:00
|
|
|
|
LyX is a typesetting word processor.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Now click on the button labelled
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
foot.
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
The footnote box disappears, leaving the button showing where the footnote
|
|
|
|
|
marker will be in the printed text; this is called
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
folding
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
the footnote.
|
|
|
|
|
You can unfold the footnote at any time --- and re-edit its text, if you
|
|
|
|
|
want --- by clicking again on the
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
foot
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
button.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
You may wonder why the footnote button is a word instead of a number.
|
|
|
|
|
The answer is that LyX worries about the footnote numbering for you in
|
|
|
|
|
the printed text.
|
|
|
|
|
You can see this yourself by looking at the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2004-06-02 13:40:06 +00:00
|
|
|
|
dvi
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
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.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
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
|
2005-07-18 09:42:29 +00:00
|
|
|
|
status collapsed
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
It may be easier to select it using the keyboard.
|
|
|
|
|
You might accidentally open the footnote if you're trying to select the
|
|
|
|
|
marker itself with the mouse.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
and
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Cut
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
and
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Paste
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
it.
|
|
|
|
|
In addition, you can change regular text to a footnote, by selecting it
|
|
|
|
|
and hitting the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
Insert\InsetSpace ~
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Footnote
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2006-09-25 15:06:04 +00:00
|
|
|
|
button; change a footnote to regular text by hitting the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2006-09-25 15:06:04 +00:00
|
|
|
|
Backspace
|
|
|
|
|
\family default
|
|
|
|
|
key when the cursor is in the first position of a footnote, or by hitting
|
|
|
|
|
the
|
|
|
|
|
\family sans
|
|
|
|
|
Delete
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2006-09-25 15:06:04 +00:00
|
|
|
|
key when the cursor is in the very last position of the footnote, respectively.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Margin notes can be added using the toolbar button (the button shows an
|
|
|
|
|
arrow pointing to red text next to (i.e., in the margin of) black text, and
|
|
|
|
|
should be next to the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
Insert\InsetSpace ~
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Footnote
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
button in the toolbar.) or
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
I
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
nsert\SpecialChar \menuseparator
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
M
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
|
|
|
|
arginal\InsetSpace ~
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Note
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
\SpecialChar \@.
|
|
|
|
|
Margin notes are like footnotes, except that:
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Itemize
|
2004-06-02 13:40:06 +00:00
|
|
|
|
the on-screen boxes say
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
margin
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
instead of
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
foot
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Itemize
|
2004-06-02 13:40:06 +00:00
|
|
|
|
the notes will be placed in the margin, instead of below the text
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Itemize
|
2004-06-02 13:40:06 +00:00
|
|
|
|
margin notes are not numbered
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Change your LyX footnote back to text, then select and change it to a margin
|
|
|
|
|
note.
|
|
|
|
|
Run LaTeX again to see what the margin note looks like.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\series bold
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Exercise
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\series default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
: Fix the footnote in
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2004-06-02 13:40:06 +00:00
|
|
|
|
example_raw.lyx
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Section
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Bibliographies
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
\begin_inset LatexCommand \label{sec:bibliographies}
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
Bibliographies (at least in the exact sciences) are similar to cross references.
|
|
|
|
|
The bibliography contains a list of references at the end of the document,
|
|
|
|
|
and they can be referenced from within the document.
|
|
|
|
|
Like section titles, LyX and LaTeX make your job easier by automatically
|
|
|
|
|
numbering the bibliography items and changing citations when the items'
|
|
|
|
|
numbers change.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Go to the end of the document and switch to the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Bibliography
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
environment.
|
|
|
|
|
Now, each paragraph you type will be a reference.
|
|
|
|
|
Type
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2004-06-02 13:40:06 +00:00
|
|
|
|
The Lyx Tutorial, by the LyX Documentation Team
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
as your first reference.
|
|
|
|
|
Note that LyX automatically puts a number in a box before each reference.
|
|
|
|
|
Click on the boxed reference number, and a
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
Bibliography\InsetSpace ~
|
2004-06-02 13:40:06 +00:00
|
|
|
|
item
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
dialog box appears.
|
|
|
|
|
You use the first field, the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Key
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
, to refer to this reference within the LyX document.
|
|
|
|
|
By default, it is a number.
|
|
|
|
|
Change the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Key
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
field to
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
lyxtutorial
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
to make it easy to remember.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Now pick somewhere in your document that you would like to insert a reference.
|
|
|
|
|
Do so with
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
I
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
nsert\SpecialChar \menuseparator
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
C
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2006-01-16 10:40:30 +00:00
|
|
|
|
itation
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2006-01-16 10:40:30 +00:00
|
|
|
|
.
|
2004-06-02 13:40:06 +00:00
|
|
|
|
A
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Citation
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
dialog appears.
|
|
|
|
|
The right panel in this dialog lists all the bibliography entries, and
|
|
|
|
|
this field allows you to choose which bibliography item you want to cite.
|
|
|
|
|
Select
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
lyxtutorial
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
(right now, that's the only item in the bibliography), then use the left
|
|
|
|
|
arrow in the center to insert it.
|
|
|
|
|
(You can have multiple citations in the same place by transferring a number
|
|
|
|
|
of keys this way.) Now run LaTeX, and you'll see that the citation appears
|
|
|
|
|
in brackets in the text, referring to the bibliography at the end of the
|
|
|
|
|
document.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
How are the other fields used? The
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
\bar under
|
2006-01-16 10:40:30 +00:00
|
|
|
|
T
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2006-01-16 10:40:30 +00:00
|
|
|
|
ext\InsetSpace ~
|
|
|
|
|
after
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
field in the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Citation
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
dialog will put a remark (such as a reference to a page or chapter within
|
|
|
|
|
the referenced book or article) in the brackets after the reference.
|
|
|
|
|
If you want the references to have labels instead of numbers in the printed
|
|
|
|
|
output (for example, some journals would use
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
[Smi95]
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
to refer to a paper written by Smith in 1995), use the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
L
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
abel
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
field in the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
Bibliography\InsetSpace ~
|
2006-01-16 10:40:30 +00:00
|
|
|
|
Entry\InsetSpace ~
|
|
|
|
|
Settings
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
dialog.
|
|
|
|
|
As usual, you can see the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
User's Guide
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
for details.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\series bold
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Exercise:
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\series default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Fix the bibliography and citation in
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2004-06-02 13:40:06 +00:00
|
|
|
|
example_raw.lyx
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Section
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Table of Contents
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
You may want to put a table of contents at the beginning of your document.
|
|
|
|
|
LyX makes this very easy to do.
|
|
|
|
|
Just hit
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Return
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
after your document title and before your first section title and choose
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
I
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
nsert\SpecialChar \menuseparator
|
2005-07-18 09:42:29 +00:00
|
|
|
|
List\InsetSpace ~
|
|
|
|
|
/\InsetSpace ~
|
2004-06-02 13:40:06 +00:00
|
|
|
|
T
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
O
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
C\SpecialChar \menuseparator
|
2005-07-18 09:42:29 +00:00
|
|
|
|
Table\InsetSpace ~
|
|
|
|
|
of\InsetSpace ~
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
C
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
ontents
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
.
|
|
|
|
|
The words
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
Table of Contents
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
will appear in a button on the first line of the document.
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
This may not appear to be very useful.
|
|
|
|
|
However, if you look at your
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2004-06-02 13:40:06 +00:00
|
|
|
|
dvi
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
file, you will see that a table of contents has been generated, listing
|
|
|
|
|
the various sections and subsections in your document.
|
|
|
|
|
As usual, if you reorder sections or create new ones, you will see those
|
|
|
|
|
changes in the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2004-06-02 13:40:06 +00:00
|
|
|
|
dvi
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
file when you update it.
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
The table of contents is not printed in the on-screen version of the document,
|
|
|
|
|
because you can't edit it anyway.
|
|
|
|
|
However, you can display the table of contents in a separate window by
|
|
|
|
|
clicking on the table of contents button, or by using
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
D
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
ocument\SpecialChar \menuseparator
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
T
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
|
|
|
|
able\InsetSpace ~
|
|
|
|
|
of\InsetSpace ~
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Contents
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
.
|
|
|
|
|
The menu command will work even if you don't have a table of contents inset
|
|
|
|
|
in your document.
|
|
|
|
|
This is a very useful tool.
|
|
|
|
|
You can use the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
Table\InsetSpace ~
|
|
|
|
|
of\InsetSpace ~
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Contents
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
window to move around your document.
|
|
|
|
|
Clicking on a (sub)section title in the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
Table\InsetSpace ~
|
|
|
|
|
of\InsetSpace ~
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Contents
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
window will highlight that line and move the cursor (in the LyX editing
|
|
|
|
|
window) to that place in the document.
|
|
|
|
|
You can also use the arrow keys to move up and down in the table of contents.
|
|
|
|
|
You may therefore find it convenient to leave this window open throughout
|
|
|
|
|
editing sessions.
|
|
|
|
|
You can get similar functionality from the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
N
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
avigate
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
menu, though, where the table of contents appears automatically.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
To get rid of the Table of Contents, you can delete the table of contents
|
|
|
|
|
button just like any other text.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\series bold
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Exercise
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\series default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
: Fix the table of contents in
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2004-06-02 13:40:06 +00:00
|
|
|
|
example_raw.lyx
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Chapter
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Using Math
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
LaTeX is used by many scientists because it outputs great looking equations,
|
|
|
|
|
avoiding the control characters used by word processors and their equation
|
|
|
|
|
editors.
|
|
|
|
|
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
|
|
|
|
|
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
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
Math\InsetSpace ~
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Panel
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
will allow you to write professional-looking math quickly and easily
|
|
|
|
|
\begin_inset Foot
|
2005-07-18 09:42:29 +00:00
|
|
|
|
status collapsed
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
LyX can't check if the math you're writing is actually
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
correct
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
.
|
|
|
|
|
Sorry.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Section
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Math Mode
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Somewhere in your LyX document, type:
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout LyX-Code
|
2004-06-02 13:40:06 +00:00
|
|
|
|
I like what Einstein said, E=mc^2, because it's so simple.
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Now, that equation doesn't look very good, even in the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2004-06-02 13:40:06 +00:00
|
|
|
|
dvi
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
file; there's no space between the letters and the equals sign, and you'd
|
|
|
|
|
like to write an actual superscript for the
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
2
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
.
|
|
|
|
|
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.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
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}$
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
written on it in blue.
|
|
|
|
|
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
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2004-06-02 13:40:06 +00:00
|
|
|
|
E=mc^2
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
again.
|
|
|
|
|
The expression is typed in blue, and the blue square disappears as soon
|
|
|
|
|
as the formula is not empty.
|
|
|
|
|
Now type
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Esc
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
to leave the equation The purple markers disappear, leaving the cursor
|
|
|
|
|
to the right of the expression, and now if you type something, it will
|
|
|
|
|
be regular text.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Run LaTeX and look at the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2004-06-02 13:40:06 +00:00
|
|
|
|
dvi
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
file.
|
|
|
|
|
Notice that the expression was typeset nicely, with spaces between the
|
|
|
|
|
letters and the equals sign, and a superscript
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
2
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
.
|
|
|
|
|
Letters in math mode are assumed to be variables, and come out in italics.
|
|
|
|
|
Numbers are just numbers.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
This math editor is another example of the WYSIWYM philosophy.
|
|
|
|
|
In LaTeX, you write a mathematical expression using text and commands like
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\backslash
|
2004-06-02 13:40:06 +00:00
|
|
|
|
sqrt
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
; 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
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
bugs
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
.
|
|
|
|
|
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.
|
|
|
|
|
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
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
content
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
of your mathematical expressions, not their format.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Section
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Navigating an Equation
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Now let's change
|
|
|
|
|
\begin_inset Formula $E=mc^{2}$
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
to
|
|
|
|
|
\begin_inset Formula $E=1+mc^{2}$
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
.
|
|
|
|
|
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.
|
|
|
|
|
Now you can use
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Left
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
and
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Right
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
to move the cursor past the equals sign, and just type
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
1+
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
.
|
|
|
|
|
Again, you can use the arrow keys or
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Esc
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
to leave the formula\SpecialChar \@.
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Other than the special keys described below, typing in math mode is like
|
|
|
|
|
editing regular text.
|
|
|
|
|
Use
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Delete
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
(or
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Backspace
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
) to delete things.
|
|
|
|
|
Select text either with the arrow keys or with the mouse.
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
E
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
dit\SpecialChar \menuseparator
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
U
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
ndo
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
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
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Delete
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
(or
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Backspace
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
), it will delete the whole expression.
|
|
|
|
|
Luckily, you can just use
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Undo
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
to get it back.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
What if you want to change
|
|
|
|
|
\begin_inset Formula $E=mc^{2}$
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
to
|
|
|
|
|
\begin_inset Formula $E=mc^{2.5}+1$
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
? Again, you can use the mouse to click in the right place.
|
|
|
|
|
However, you can also use the arrow keys.
|
|
|
|
|
If the cursor is just after the
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
c
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
but before the
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
2
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
, then typing
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Up
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
will move the cursor to the level of the superscript, just before the
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
2
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
.
|
|
|
|
|
Add the
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
.5
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
.
|
|
|
|
|
Now, hitting
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Down
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
will move the cursor back to the regular level.
|
|
|
|
|
In fact, if you hit
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Down
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
from anywhere within the superscript, the cursor will be placed just
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
after
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
the superscript (so that you can then type the
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
+1
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
).
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Section
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Exponents and Indices
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
An exponent can be entered from the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
Math\InsetSpace ~
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Panel
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
(see below), but it's actually simpler just to type the caret key,
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
^
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
.
|
|
|
|
|
LyX will place another blue rectangle in the superscript, so that whatever
|
|
|
|
|
you write next will be superscripted, and in a smaller font size.
|
|
|
|
|
Everything you type until you hit a
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Space
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
(or
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Esc
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
to exit Mathed entirely) will be in the superscript.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Writing a subscript (index) is just as easy --- start one by typing the
|
|
|
|
|
underscore key,
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
_
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
.
|
|
|
|
|
You can subscript and superscript both subscripts and superscripts like
|
|
|
|
|
this:
|
|
|
|
|
\begin_inset Formula $A_{a_{0}+b^{2}}+C^{a_{0}+b^{2}}$
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
.
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\series bold
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Exercise
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\series default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
: Put equation 1 of
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2004-06-02 13:40:06 +00:00
|
|
|
|
example_raw.lyx
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
into math mode.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Section
|
2004-06-02 13:40:06 +00:00
|
|
|
|
The
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Math Panel
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
The
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
Math\InsetSpace ~
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Panel
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
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
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
E
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
dit\SpecialChar \menuseparator
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
M
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
ath
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
or
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
I
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
nsert
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
\SpecialChar \menuseparator
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Mat
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
h
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
menus.
|
|
|
|
|
However, we're going to concentrate on using the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
Math\InsetSpace ~
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Panel
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
, just to let you know what's out there; you can learn keyboard shortcuts
|
|
|
|
|
later, from other manuals.
|
|
|
|
|
So open it using
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
I
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
nsert
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
\SpecialChar \menuseparator
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Mat
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
h
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
\SpecialChar \menuseparator
|
2005-07-18 09:42:29 +00:00
|
|
|
|
Math\InsetSpace ~
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Pane
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
l
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
now and leave it open while reading this section.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Right-clicking on a formula will open the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Math Panel
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
for you.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Subsection
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Greek and symbols
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
The
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
Math\InsetSpace ~
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Panel
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
which allow you to choose from a large array of symbols used in math: various
|
|
|
|
|
arrows, relations, operators, and sums and integrals.
|
|
|
|
|
Note that subscripting and superscripting allow you to put lower and upper
|
|
|
|
|
limits on sums and integrals.
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
Nothing you can do that can't be done\SpecialChar \ldots{}
|
|
|
|
|
All you need is
|
|
|
|
|
\begin_inset Formula $\heartsuit$
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
.
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Subsection
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Square roots, accents, and delimiters
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
To type a square root, just click on the button with a square root sign
|
|
|
|
|
on it.
|
|
|
|
|
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.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Accenting a character (
|
|
|
|
|
\begin_inset Formula $\overrightarrow{v}$
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
) or group of characters (
|
|
|
|
|
\begin_inset Formula $\overrightarrow{a+b}$
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
) is done the same way.
|
|
|
|
|
The
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Decoration
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
types are available from the panel.
|
|
|
|
|
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.
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Delimiters such as parentheses, brackets, and braces work similarly, but
|
|
|
|
|
are a bit more complicated.
|
|
|
|
|
Hit the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Delimiter
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
button, which features a blue square surrounded by brackets, to pop up
|
|
|
|
|
the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Delimiter
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
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
|
|
|
|
|
like
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\begin_inset Formula $a=\left\langle 7\right.$
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
(the empty delimiter is displayed as a broken line in LyX, but won't show
|
|
|
|
|
up in the output).
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
If you're lazy, you can type actual parentheses in math mode, rather than
|
|
|
|
|
using the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Delimiter
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
window.
|
|
|
|
|
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
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Delimiter
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
window will guarantee that the delimiters are sized based on what's inside
|
|
|
|
|
them.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
You can also put delimiters or a square root sign or a decoration on already
|
|
|
|
|
existing text.
|
|
|
|
|
Select the portion of the formula that you want to adjust, and then click
|
|
|
|
|
on the button you want from the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
Math\InsetSpace ~
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Panel
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
.
|
|
|
|
|
Try using this to change Newton's second law from scalar to vector form
|
|
|
|
|
(
|
|
|
|
|
\begin_inset Formula $f=ma$
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
to
|
|
|
|
|
\begin_inset Formula $\overrightarrow{f}=m\overrightarrow{a}$
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
).
|
|
|
|
|
Once you've learned about matrices, this is how you'll put parentheses
|
|
|
|
|
or brackets around them.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Subsection
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Fractions
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Fractions are very simple in Mathed.
|
|
|
|
|
Just click on the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Fraction
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
button in the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
Math\InsetSpace ~
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Panel
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
, 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.
|
|
|
|
|
Click on the top square and type
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
1
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
.
|
|
|
|
|
Now hit
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Down
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
and type
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
2
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
.
|
|
|
|
|
You've made a fraction! Of course you can type anything within each of
|
|
|
|
|
the two boxes: variables with exponents, square roots, other fractions,
|
|
|
|
|
whatever.
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\series bold
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Exercise
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\series default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
: Put equation 2 of
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2004-06-02 13:40:06 +00:00
|
|
|
|
example_raw.lyx
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
into math mode.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Subsection
|
2004-06-02 13:40:06 +00:00
|
|
|
|
TeX mode: Limits, log, sin and others
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Because letters in math mode are considered to be variables, if you type
|
|
|
|
|
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
sin
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
in math mode, LyX thinks you're typing the product of the three variables
|
|
|
|
|
|
|
|
|
|
\begin_inset Formula $s$
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
,
|
|
|
|
|
\begin_inset Formula $i$
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
, and
|
|
|
|
|
\begin_inset Formula $n$
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
.
|
|
|
|
|
The three letters will be typeset in italics, when what you really wanted
|
|
|
|
|
was the word
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
sin
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
typeset in Roman.
|
|
|
|
|
In addition, LyX won't put a space between the word
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
sin
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
and the
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
x
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
(typing
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Space
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
will just exit math mode).
|
|
|
|
|
So how do you get
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\begin_inset Formula $\sin x$
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
instead of
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\begin_inset Formula $sinx$
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
?
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Click on
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
sin
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
in the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Functions
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
list in the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
Math\InsetSpace ~
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Panel
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
.
|
|
|
|
|
The word
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
sin
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
is written in black, in upright roman type.
|
|
|
|
|
The whole word is treated as one symbol, so if you type
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Backspace
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
, it will delete the whole word.
|
|
|
|
|
Now type
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
x
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
, which will be written in blue italics, like you expect in Mathed.
|
|
|
|
|
In the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2004-06-02 13:40:06 +00:00
|
|
|
|
dvi
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
file, the expression will be correctly typeset.
|
|
|
|
|
Try it.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Other commands you need to type in TeX mode using the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Functions
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
box include other trigonometric functions and their inverses, hyperbolic
|
|
|
|
|
functions, logarithms, limits, and quite a few others.
|
|
|
|
|
These functions can take subscripts and superscripts, important for typing
|
|
|
|
|
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\begin_inset Formula $\cos^{2}\theta$
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
or
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\begin_inset Formula $\lim_{n\rightarrow\infty}$
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\series bold
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Exercise
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\series default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
: Put equation 3 of
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2004-06-02 13:40:06 +00:00
|
|
|
|
example_raw.lyx
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
into math mode.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Subsection
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Matrices
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
\begin_inset LatexCommand \label{sec:matrices}
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
Click on the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Matrix
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
button in the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
Math\InsetSpace ~
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Panel
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
.
|
|
|
|
|
The dialog has two sliding bars which allow you to choose how many rows
|
|
|
|
|
and columns you want in your matrix.
|
|
|
|
|
Choose 2 rows and 3 columns and hit
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Apply
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
or
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
OK
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
.
|
|
|
|
|
LyX prints 6 insertion points in a
|
|
|
|
|
\begin_inset Formula $2\times3$
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
matrix.
|
|
|
|
|
As usual, you can put any sort of Mathed expression (a square root, another
|
|
|
|
|
matrix, etc.) in each insertion point.
|
|
|
|
|
You can also leave some of the insertion points empty if you want.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Tab
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
can be used to move horizontally between the columns of a matrix.
|
|
|
|
|
Alternatively, you can use the arrow keys to move around - hitting
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Right
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
at the end of one box will move to the next box,
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Down
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
will move to the next row, etc.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
If you suddenly need more rows or columns, use
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
E
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
dit\SpecialChar \menuseparator
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
M
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
ath\SpecialChar \menuseparator
|
2005-07-18 09:42:29 +00:00
|
|
|
|
Add\InsetSpace ~
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
R
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
ow
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
and
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
Add\InsetSpace ~
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
C
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
olumn
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
.
|
|
|
|
|
They add a row or column just after the current position.
|
|
|
|
|
Overdid it? Use
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
D
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
|
|
|
|
elete\InsetSpace ~
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Row
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
and
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
D
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
e
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
|
|
|
|
lete\InsetSpace ~
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Column
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
from the same menu.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
See the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
User's Guide
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
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.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Subsection
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Display mode
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
All of the expressions we have written so far have been on the same line
|
|
|
|
|
as the text that came before and after them, otherwise known as inline
|
|
|
|
|
expressions.
|
|
|
|
|
This is fine for short, simple expressions, but if you want to write larger
|
|
|
|
|
ones, or if you want your expressions to stand out from the text, you need
|
|
|
|
|
to write them in display mode.
|
|
|
|
|
In addition, only displayed expressions can be labeled and numbered (see
|
|
|
|
|
the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
User's Guide
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
), and multi-line equations (see Sec.
|
|
|
|
|
|
|
|
|
|
\begin_inset LatexCommand \ref{sec:multiline}
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
) must be in display mode.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Click on the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Display
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
button in the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
Math\InsetSpace ~
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Panel
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
, 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
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Display
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
button is actually a toggle; use it now to change a couple of your expressions
|
|
|
|
|
to display mode and back.
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Display mode has a couple differences from inline mode:
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Itemize
|
2004-06-02 13:40:06 +00:00
|
|
|
|
The default font is larger for a few symbols, like
|
|
|
|
|
\begin_inset Formula $\sum$
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
and
|
|
|
|
|
\begin_inset Formula $\int$
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
|
|
|
|
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\begin_layout Itemize
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Subscripts and superscripts for limits and sums (but not integrals) are
|
|
|
|
|
written under rather than next to the symbols
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Itemize
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Text is centered
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Other than these differences, though, displayed expressions and inline expressio
|
|
|
|
|
ns are very similar.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
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
|
|
|
|
|
press
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Return
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
.
|
|
|
|
|
Doing so will cause the text
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
after
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
the formula to start a new paragraph.
|
|
|
|
|
That text will therefore be indented, which is probably not what you want.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\series bold
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Exercise
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\series default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
: Put the various equations in
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2004-06-02 13:40:06 +00:00
|
|
|
|
example_raw.lyx
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
into display mode, and see how they're typeset differently.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\series bold
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Exercise
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\series default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
: Using various tools you've learned in this section, you should be able
|
|
|
|
|
to write an equation like
|
|
|
|
|
\begin_inset Foot
|
2005-07-18 09:42:29 +00:00
|
|
|
|
status collapsed
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
After you've done it the hard way, why don't you give
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
I
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
nsert\SpecialChar \menuseparator
|
|
|
|
|
Mat
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
h
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
\SpecialChar \menuseparator
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
C
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
|
|
|
|
ases\InsetSpace ~
|
2004-06-02 13:40:06 +00:00
|
|
|
|
environment
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
a try?
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
:
|
|
|
|
|
\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.\]
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
|
|
|
|
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\begin_layout Section
|
2004-06-02 13:40:06 +00:00
|
|
|
|
More Math Stuff
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Mathed can do plenty more.
|
|
|
|
|
By now, you're familiar with the basics, so we'll just refer to the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
User's Guide
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
for tips on how to:
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Itemize
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Labeling and numbering expressions
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Itemize
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Multi-line equations
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Itemize
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Change typefaces, e.g., to write bold-face text in an expression.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Itemize
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Fine-tune font sizes and spacing within an expression.
|
|
|
|
|
(Don't worry about this until your final draft!)
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Itemize
|
2004-06-02 13:40:06 +00:00
|
|
|
|
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.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Itemize
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Do lots of other things we didn't have time to mention in this
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Tutorial
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Chapter
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Miscellaneous
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Section
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Other Major LyX Features
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
We haven't gone through all the possible commands in LyX, and we aren't
|
|
|
|
|
planning on it.
|
|
|
|
|
As usual, see the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
User's Guide
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
for more information.
|
|
|
|
|
We'll just mention a couple more major things LyX can do\SpecialChar \ldots{}
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Itemize
|
2004-06-02 13:40:06 +00:00
|
|
|
|
LyX has WYSIWYM support for tables.
|
|
|
|
|
Use the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
I
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
nsert\SpecialChar \menuseparator
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
T
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
able
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
to get a table.
|
|
|
|
|
Click on the table with the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
right button
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
to get a
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
Table\InsetSpace ~
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Settings
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
dialog box which allows extensive table editing.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Itemize
|
2004-06-02 13:40:06 +00:00
|
|
|
|
LyX also supports including pictures in a number of formats (including JPEG
|
2006-09-25 14:55:44 +00:00
|
|
|
|
and other bitmap formats, PostScript<70> and raw LaTeX) within documents.
|
2004-06-02 13:40:06 +00:00
|
|
|
|
(You guessed it:
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
I
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
nsert\SpecialChar \menuseparator
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
G
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
raphics
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2006-01-16 10:40:30 +00:00
|
|
|
|
.
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Then click on the figure to choose the file to include, rotate or scale
|
|
|
|
|
it, etc.) Tables and figures can have captions, and LyX will automatically
|
|
|
|
|
generate lists of figures and/or tables.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Itemize
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Version control is supported, using RCS (
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2004-06-02 13:40:06 +00:00
|
|
|
|
man rcsintro
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
for more info).
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Itemize
|
2004-06-02 13:40:06 +00:00
|
|
|
|
LyX is heavily configurable.
|
|
|
|
|
Everything from how the LyX window looks to how the output comes out can
|
|
|
|
|
be configured in a number of ways.
|
|
|
|
|
Much configuration is done through
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
T
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
ools\SpecialChar \menuseparator
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
P
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
references
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
.
|
|
|
|
|
For more information on this, check out
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
H
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
elp\SpecialChar \menuseparator
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
C
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
ustomization\SpecialChar \@.
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Itemize
|
2004-06-02 13:40:06 +00:00
|
|
|
|
LyX is being developed by a team of programmers on five continents.
|
|
|
|
|
Therefore, LyX has better support for non-English languages (such as Dutch,
|
|
|
|
|
German, French, Greek, Czech, Turkish, \SpecialChar \ldots{}
|
|
|
|
|
) than many word processors.
|
|
|
|
|
Even some right-to-left languages like Hebrew or Arabic are supported.
|
|
|
|
|
You can write documents in other languages, but you can also configure
|
|
|
|
|
LyX to show its menus and error messages in other languages.
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Itemize
|
2004-06-02 13:40:06 +00:00
|
|
|
|
The LyX menus feature keybindings.
|
|
|
|
|
This means that you can do
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
F
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
ile\SpecialChar \menuseparator
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
O
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
pen
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
by typing
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
M-F
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
followed by
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
O
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
or by using the binding which is shown next to it in the menu (C-O by default).
|
|
|
|
|
Keybindings are also configurable.
|
|
|
|
|
For information on this, check out
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
H
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
elp\SpecialChar \menuseparator
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
C
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
ustomization\SpecialChar \@.
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Itemize
|
2004-06-02 13:40:06 +00:00
|
|
|
|
LyX can read in LaTeX documents.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
See Section\InsetSpace ~
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2006-08-12 11:26:09 +00:00
|
|
|
|
\begin_inset LatexCommand \ref{sec:tex2lyx}
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Itemize
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Spellchecking and thesaurus facilities are available.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Itemize
|
2004-06-02 13:40:06 +00:00
|
|
|
|
The text box near the bottom of the LyX window is called the minibuffer
|
|
|
|
|
(after a similar feature in
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2004-06-02 13:40:06 +00:00
|
|
|
|
emacs
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
).
|
|
|
|
|
This gives you access to all sorts of interesting functionality, including
|
|
|
|
|
functionality which could break your document.
|
|
|
|
|
In other words, don't type in the minibuffer unless you know what you're
|
|
|
|
|
doing.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Section
|
2004-06-02 13:40:06 +00:00
|
|
|
|
LyX for LaTeX Users
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
\begin_inset LatexCommand \label{sec:latexusers}
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
If you don't know anything about LaTeX, you don't have to read this section.
|
|
|
|
|
Actually, you might want to
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
learn
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
about LaTeX, and then read this chapter.
|
|
|
|
|
However, many people who begin to use LyX will be familiar with LaTeX.
|
|
|
|
|
If you are such a person, you may be wondering if LyX can really do everything
|
|
|
|
|
LaTeX can do.
|
|
|
|
|
The short answer is that LyX can do pretty much everything LaTeX can do
|
|
|
|
|
in one form or another, and it definitely simplifies most parts of writing
|
|
|
|
|
a LaTeX document.
|
2006-01-16 10:40:30 +00:00
|
|
|
|
The tool that is used to convert a LaTeX document to LyX was rewritten
|
|
|
|
|
completely for LyX\InsetSpace ~
|
|
|
|
|
1.4.
|
|
|
|
|
It should now be able to handle most LaTeX gracefully.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Because this is just a tutorial, we are only going to mention things that
|
|
|
|
|
new LyX users will most likely be interested in.
|
|
|
|
|
In the interests of keeping the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Tutorial
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
short, we will give only minimal information here.
|
|
|
|
|
The
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Extended Features
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
manual, specifically the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Secrets of the LaTeX Masters
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
chapter, has a great deal of information on differences between LyX and
|
|
|
|
|
LaTeX, and how to do various LaTeX tricks in LyX.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Subsection
|
2004-06-02 13:40:06 +00:00
|
|
|
|
TeX Mode
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Anything that you enter in TeX mode will be passed straight to LaTeX, and
|
|
|
|
|
will be displayed in red on the screen.
|
|
|
|
|
You can use TeX commands in LyX by choosing
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
I
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
nsert\SpecialChar \menuseparator
|
|
|
|
|
Te
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
X
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2006-01-16 10:40:30 +00:00
|
|
|
|
\InsetSpace ~
|
|
|
|
|
Code
|
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
.
|
|
|
|
|
This creates a text box, and everything within it is passed straight to
|
|
|
|
|
LaTeX.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
In a math formula, TeX mode is handled a bit differently.
|
|
|
|
|
Enter TeX mode by typing a backslash.
|
|
|
|
|
The backslash is not written out, but anything you type afterwards will
|
|
|
|
|
be in red.
|
|
|
|
|
You exit TeX mode by typing
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Space
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
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 \@.
|
|
|
|
|
So if, in a formula, you type
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\backslash
|
2004-06-02 13:40:06 +00:00
|
|
|
|
gamma
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
, then when you type
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Space
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
, LyX will change the red
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
gamma
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
to a blue
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\begin_inset Formula $\gamma$
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
.
|
|
|
|
|
This will work for almost all, non-complicated math macros.
|
|
|
|
|
This may be faster than using the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
Math\InsetSpace ~
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Panel
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
, and will be especially convenient for experienced LaTeX users.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
As a special case, if you type a brace in TeX mode, then the beginning
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
and
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
ending braces will be inserted in red, then take you
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph on
|
2004-06-02 13:40:06 +00:00
|
|
|
|
out
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\emph default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
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.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
LyX can't do absolutely everything that LaTeX can do (yet?).
|
|
|
|
|
Some fancy functions are not supported at all, while some work but aren't
|
|
|
|
|
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.
|
|
|
|
|
However, by typing
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\backslash
|
2004-06-02 13:40:06 +00:00
|
|
|
|
usepackage{foo}
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
|
|
|
|
in the preamble (see Section\InsetSpace ~
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
\begin_inset LatexCommand \ref{sec:preamble}
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
), you can use any package you want --- although you won't have WYSIWYM
|
|
|
|
|
support for that package's features.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Subsection
|
2006-01-16 10:40:30 +00:00
|
|
|
|
Importing LaTeX Documents ---
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2006-01-16 10:40:30 +00:00
|
|
|
|
tex2lyx
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2006-08-12 11:26:09 +00:00
|
|
|
|
\begin_inset LatexCommand \label{sec:tex2lyx}
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
You can import a LaTeX file into LyX by using the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
F
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
ile\SpecialChar \menuseparator
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
I
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
mport\SpecialChar \menuseparator
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
L
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
aTeX
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
command in LyX.
|
2006-01-16 10:40:30 +00:00
|
|
|
|
This will call
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2006-01-16 10:40:30 +00:00
|
|
|
|
tex2lyx
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2006-01-16 10:40:30 +00:00
|
|
|
|
which will create a file
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2004-06-02 13:40:06 +00:00
|
|
|
|
foo.lyx
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
from the file
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2004-06-02 13:40:06 +00:00
|
|
|
|
foo.tex
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2006-01-16 10:40:30 +00:00
|
|
|
|
--- and then open that file.
|
2004-06-02 13:40:06 +00:00
|
|
|
|
If the translation doesn't work, you can try calling
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2006-01-16 10:40:30 +00:00
|
|
|
|
tex2lyx
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2006-01-16 10:40:30 +00:00
|
|
|
|
from the command line, possibly using fancier options.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2006-01-16 10:40:30 +00:00
|
|
|
|
tex2lyx
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
will translate most legal LaTeX, but not everything.
|
|
|
|
|
It will leave things it doesn't understand in TeX mode, so after translating
|
|
|
|
|
a file with
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2006-01-16 10:40:30 +00:00
|
|
|
|
tex2lyx
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
, you can look for red text and hand-edit it to look right.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2006-01-16 10:40:30 +00:00
|
|
|
|
tex2lyx
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
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.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Subsection
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Converting LyX Documents to LaTeX
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
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.
|
|
|
|
|
This is very easy to do with LyX.
|
|
|
|
|
Select
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
F
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
ile\SpecialChar \menuseparator
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
E
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
xport\SpecialChar \menuseparator
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
L
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
aTeX
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
.
|
|
|
|
|
This will create a file
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2004-06-02 13:40:06 +00:00
|
|
|
|
whatever.tex
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
from the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2004-06-02 13:40:06 +00:00
|
|
|
|
whatever.lyx
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
file you are editing.
|
|
|
|
|
LyX always creates temporary LaTeX files when viewing or printing files,
|
|
|
|
|
so it is very good at generating LaTeX.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Subsection
|
2004-06-02 13:40:06 +00:00
|
|
|
|
LaTeX Preamble
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Subsubsection
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Document Class
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
The
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
D
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
ocument\SpecialChar \menuseparator
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
S
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
ettings
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
dialog takes care of many of the options that you would input in a
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\backslash
|
2004-06-02 13:40:06 +00:00
|
|
|
|
documentclass
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
command.
|
|
|
|
|
Change the class, default font size and paper size here.
|
|
|
|
|
Put any extra options to the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\backslash
|
2004-06-02 13:40:06 +00:00
|
|
|
|
documentclass
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
command in the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
E
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
x
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
|
|
|
|
tra\InsetSpace ~
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Options
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
area.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Subsubsection
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Other Preamble Matter
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
\begin_inset LatexCommand \label{sec:preamble}
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
If you have special commands to put in the preamble of a LaTeX file, you
|
|
|
|
|
can use them in a LyX document as well.
|
|
|
|
|
Select
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
D
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
ocument\SpecialChar \menuseparator
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
L
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
|
|
|
|
aTeX\InsetSpace ~
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
P
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
reamble
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
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.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Subsection
|
2004-06-02 13:40:06 +00:00
|
|
|
|
BibTeX
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
LyX has support for BibTeX, which allows you to build databases of bibliographic
|
|
|
|
|
al references to be used in multiple documents.
|
|
|
|
|
Select
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
I
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
nsert\SpecialChar \menuseparator
|
2005-07-18 09:42:29 +00:00
|
|
|
|
List\InsetSpace ~
|
|
|
|
|
/\InsetSpace ~
|
2004-06-02 13:40:06 +00:00
|
|
|
|
T
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
O
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
C\SpecialChar \menuseparator
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
B
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
|
|
|
|
ibTeX\InsetSpace ~
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Reference
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
to include a
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2004-06-02 13:40:06 +00:00
|
|
|
|
bib
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
file.
|
|
|
|
|
Click on the resulting
|
|
|
|
|
\begin_inset Quotes eld
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
BibTeX\InsetSpace ~
|
|
|
|
|
Generated\InsetSpace ~
|
2004-06-02 13:40:06 +00:00
|
|
|
|
References
|
|
|
|
|
\begin_inset Quotes erd
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
button, and you will get a
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
BibTeX
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
dialog.
|
|
|
|
|
In the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Database
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
field, type what you would type inside the braces of a
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\backslash
|
2004-06-02 13:40:06 +00:00
|
|
|
|
bibliography{}
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
command
|
|
|
|
|
\begin_inset Foot
|
2005-07-18 09:42:29 +00:00
|
|
|
|
status collapsed
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Like in regular LaTeX, multiple bibliographies should be separated by commas,
|
|
|
|
|
with no whitespace.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
.
|
|
|
|
|
Similarly, in the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Style
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
field, type what you would type inside the braces of a
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\backslash
|
2004-06-02 13:40:06 +00:00
|
|
|
|
bibliographystyle{}
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
command.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
After you've done this, you can use citations from any bibliographies you're
|
|
|
|
|
including with
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
I
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
nsert\SpecialChar \menuseparator
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar under
|
2004-06-02 13:40:06 +00:00
|
|
|
|
C
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\bar default
|
2006-01-16 10:40:30 +00:00
|
|
|
|
itation
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
|
|
|
|
(see Section\InsetSpace ~
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
\begin_inset LatexCommand \ref{sec:bibliographies}
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2004-06-02 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
).
|
|
|
|
|
LyX will take care of running BibTeX.
|
|
|
|
|
The box in the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Citation
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
dialog will show a list of all the references in your
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2004-06-02 13:40:06 +00:00
|
|
|
|
bib
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2004-06-02 13:40:06 +00:00
|
|
|
|
file.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Section
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Errors!
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2004-06-02 13:40:06 +00:00
|
|
|
|
Sometimes when you LaTeX a document, there will be errors, things that LyX
|
|
|
|
|
or LaTeX can't understand.
|
2006-01-16 10:40:30 +00:00
|
|
|
|
When this happens, LyX will open a
|
|
|
|
|
\family sans
|
|
|
|
|
LaTeX\InsetSpace ~
|
|
|
|
|
Errors
|
|
|
|
|
\family default
|
|
|
|
|
dialog.
|
|
|
|
|
Clicking on individual errors in this dialog will take you to the place
|
|
|
|
|
in the LyX document where the error occurs and also display the detailed
|
|
|
|
|
LaTeX error message.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\end_body
|
|
|
|
|
\end_document
|