-#LyX 2.0.0svn created this file. For more info see http://www.lyx.org/
-\lyxformat 376
+#LyX 2.0 created this file. For more info see http://www.lyx.org/
+\lyxformat 413
\begin_document
\begin_header
\textclass book
\pdfbookmark[1]{\contentsname}{}
\myTOC
\mainmatter }
-
-% redefine the \LyX macro for PDF bookmarks
-\def\LyX{\texorpdfstring{%
- L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
- {LyX}}
\end_preamble
\use_default_options false
\begin_modules
\end_modules
\maintain_unincluded_children false
\language english
+\language_package default
\inputencoding auto
\fontencoding global
\font_roman default
\font_sans default
\font_typewriter default
\font_default_family default
-\use_xetex false
+\use_non_tex_fonts false
\font_sc false
\font_osf false
\font_sf_scale 100
\graphics default
\default_output_format default
+\output_sync 0
\bibtex_command default
\index_command default
\paperfontsize 12
\pdf_colorlinks true
\pdf_backref false
\pdf_pdfusetitle false
-\pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true,pdfstartview=XYZ, plainpages=false, pdfpagelabels"
+\pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
\papersize default
\use_geometry false
\use_amsmath 0
\use_esint 0
\use_mhchem 1
+\use_mathdots 1
\cite_engine basic
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
+\use_refstyle 0
\index Index
\shortcut idx
\color #008000
\papercolumns 1
\papersides 2
\paperpagestyle headings
-\tracking_changes true
+\tracking_changes false
\output_changes false
-\html_use_mathml true
-\html_be_strict true
-\author 2 "Richard Heck"
+\html_math_output 0
+\html_css_as_file 0
+\html_be_strict false
\end_header
\begin_body
\begin_layout Standard
This tutorial consists of examples and exercises.
- To get the most out of this document, you should read through the document,
- typing all the little things we are telling you to type and trying out
- all of the exercises to see if you get them right.
+ To get the most out of this document, you should read through it, typing
+ all the little things we are telling you to type and trying out all of
+ the exercises to see if you get them right.
For convenience, you might want to print out the PDF version of this document.
\end_layout
\begin_layout Standard
In this Tutorial, we are going to assume that you have a fully working version
- of LyX, as well as a LaTeX-distribution, a DVI-, and a PDF-viewer.
+ of LyX, as well as a LaTeX-distribution and a PDF-viewer.
This should be the case on all major Linux- and BSD-distributions, as well
as on Windows, where this is setup by the LyX installers.
\end_layout
\end_layout
\begin_layout Itemize
-Run LaTeX to create a DVI file, with
+Create a PDF file, with
\family sans
View\SpecialChar \menuseparator
-DVI
+View
\family default
or the toolbar button
-\begin_inset Graphics
- filename ../images/buffer-view_dvi.png
- scale 75
-
+\begin_inset Info
+type "icon"
+arg "buffer-view"
\end_inset
.
- LyX will open a DVI-viewer program displaying your document as it will
+ LyX will open a PDF-viewer program displaying your document as it will
look when printed.
\begin_inset Foot
status collapsed
\begin_layout Plain Layout
-You can save time by leaving the DVI-viewer running in the background.
+You can save time by leaving the PDF-viewer running in the background.
Then, you can use
\family sans
View\SpecialChar \menuseparator
-Update\SpecialChar \menuseparator
-DVI
+Update
\family default
or the toolbar button
-\begin_inset Graphics
- filename ../images/buffer-update_dvi.png
- scale 75
-
+\begin_inset Info
+type "icon"
+arg "buffer-update"
\end_inset
- and just click on the DVI-viewer window (or unminimize it) after LaTeX
- finishes running.
+ and just click on the PDF-viewer window (or unminimize it) afterwards.
\end_layout
\end_inset
\end_layout
\begin_layout Standard
-LyX can of course do most of the things you are used to do with a word processor.
+LyX can of course do most of the things you are used to doing with a word
+ processor.
It will word-wrap and indent paragraphs automatically.
Here is a quick description of how to do some simple actions.
\end_layout
\begin_layout Description
Undo LyX has multiple levels of undo, which means you can undo everything
- you have done since your current editing session started, by selecting
+ you have done since your current editing session started, by selecting
\family sans
Edit\SpecialChar \menuseparator
Undo
\family default
(toolbar button
-\begin_inset Graphics
- filename ../images/undo.png
- scale 75
-
+\begin_inset Info
+type "icon"
+arg "undo"
\end_inset
) over and over again.
Redo
\family default
(toolbar button
-\begin_inset Graphics
- filename ../images/redo.png
- scale 75
-
+\begin_inset Info
+type "icon"
+arg "redo"
\end_inset
) to get it back.
-
\end_layout
\begin_deeper
Cut
\family default
(toolbar button
-\begin_inset Graphics
- filename ../images/cut.png
- scale 75
-
+\begin_inset Info
+type "icon"
+arg "cut"
\end_inset
),
Copy
\family default
(toolbar button
-\begin_inset Graphics
- filename ../images/copy.png
- scale 75
-
+\begin_inset Info
+type "icon"
+arg "copy"
\end_inset
), and
Paste
\family default
(toolbar button
+\begin_inset Info
+type "icon"
+arg "paste"
+\end_inset
+
+
\begin_inset Graphics
filename ../images/paste.png
scale 75
Replace
\family default
(toolbar button
-\begin_inset Graphics
- filename ../images/dialog-show_findreplace.png
- scale 75
-
+\begin_inset Info
+type "icon"
+arg "dialog-show findreplace"
\end_inset
) to search.
\family sans
Replace
\family default
- button to replace a word you have found.
+ button to replace a word you have found.
\begin_inset Foot
status collapsed
Close the window when you are done or leave it open if you find it more
convenient.
Most dialog boxes in LyX can operate like this.
- Just be sure you have the right window focus when you are trying to type
- in the main LyX window or a LyX dialog.
+ Just be sure you have the right window in focus when you are trying to
+ type in the main LyX window or a LyX dialog.
\end_layout
\end_inset
Style
\family default
dialog (toolbar button
-\begin_inset Graphics
- filename ../images/dialog-show_character.png
- scale 75
-
+\begin_inset Info
+type "icon"
+arg "dialog-show character"
\end_inset
).
, and typesets it in a font which is bigger than regular text but smaller
than the section title.
- Change the fourth line
+ Change the fourth line to the
\family sans
Subsection
\family default
\end_inset
.
-
\end_layout
\begin_layout Standard
Itemize
\family default
environment's bulleted lists to describe different points.
-
\end_layout
\begin_layout Itemize
Enumerate
\family default
environment's numbered lists (and lettered sublists).
-
\end_layout
\begin_layout Itemize
Description
\family default
environment, where each item in the list begins with a bold-faced word.
-
\end_layout
\begin_layout Itemize
\family sans
List
\family default
- environment is a variation on the
+ (also named
+\family sans
+Labeling
+\family default
+) environment is a variation on the
\family sans
Description
\family default
\begin_layout Standard
\family typewriter
-LyX is better than other word processors because:
+LyX is better than other word processors because:
\end_layout
\begin_layout Standard
\family sans
Environment
\family default
- box.
+ box (
+\begin_inset Info
+type "icon"
+arg "layout Itemize"
+\end_inset
+
+).
LyX writes a
\begin_inset Quotes eld
\end_inset
\end_inset
on the line.
- Type in your reasons:
+ Type in your reasons:
\end_layout
\begin_layout LyX-Code
\family sans
Standard
\family default
- environment (or just use the key binding,
-\family sans
-Alt+P
-\begin_inset space ~
+ environment (or just use the key binding
+\begin_inset Info
+type "shortcut"
+arg "layout Standard"
\end_inset
-S
-\family default
).
\end_layout
\family sans
Environment
\family default
- box.
+ box (
+\begin_inset Info
+type "icon"
+arg "layout Enumerate"
+\end_inset
+
+).
Pow! As we mentioned, if you add or delete a list item, LyX will fix the
numbering.
\end_layout
and
\family sans
List
+\begin_inset space \thinspace{}
+\end_inset
+
+
+\family default
+/
+\begin_inset space \thinspace{}
+\end_inset
+
+
+\family sans
+Labeling
\family default
-, in order to see what they look like.
+ (
+\begin_inset Info
+type "icon"
+arg "layout Description"
+\end_inset
+
+ and
+\begin_inset Info
+type "icon"
+arg "layout List"
+\end_inset
+
+), 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
\family sans
Return
\family default
-.) The term is either typeset in boldface (
+).
+ The term is either typeset in boldface (
\family sans
Description
\family default
\begin_layout Standard
Font sizes, one- or two-column printing, and page headings are just some
- of the ways journals typesettings differ from one another.
+ of the ways journals' typesettings differ from one another.
As the Computer Age continues to mature, journals have begun accepting
electronic submissions, creating LaTeX
\begin_inset Quotes eld
Address
\family default
- environment, which do not even exist in most other document classes.
+ environment, that do not exist in most other document classes.
Others, like
\family sans
-Quote
-\family default
- and
-\family sans
Description
\family default
, are familiar.
\end_inset
Signature:
-\begin_inset Quotes eld
+\begin_inset Quotes erd
\end_inset
in red before the actual text of the signature.
document classes.
Finally, they may be useful for a person who is configuring LyX for a bunch
of less computer-aware users.
- When they are first learning LyX, it will be much less intimidating if
- they have a letter template customized for their company, for example.
+ When they are first learning LyX, it will be less intimidating if they
+ have a letter template customized for their company, for example.
\end_layout
\begin_layout Section
using cross-references.
You can refer either to the section's number, or to the page that the section
appears on.
- As with section numbering, LyX also takes care about cross-reference numbering
+ As with section numbering, LyX also takes care of cross-reference numbering
for you.
- Automatic labels and cross-references are among the most significant advantages
- of LyX (and LaTeX) over conventional word processors.
-
+ Automatic management of labels and cross-references is among the most significa
+nt advantages of LyX (and LaTeX) over conventional word processors.
\end_layout
\begin_layout Subsection
Label
\family default
or the toolbar button
-\begin_inset Graphics
- filename ../images/label-insert.png
- scale 75
- scaleBeforeRotation
-
+\begin_inset Info
+type "icon"
+arg "label-insert"
\end_inset
.
\end_layout
\begin_layout Standard
-Place the cursor somewhere in section
+Place the cursor somewhere in Section
\begin_inset space ~
\end_inset
\begin_inset Newline newline
\end_inset
-section, which can be found on page.
+Section, which can be found on page.
\end_layout
\begin_layout Standard
-Now — with the cursor after the word `Section' — choose
+Now — with the cursor after the word
+\begin_inset Quotes eld
+\end_inset
+
+Section
+\begin_inset Quotes erd
+\end_inset
+
+ — choose
\family sans
Insert\SpecialChar \menuseparator
Cross
Reference
\family default
or the toolbar button
-\begin_inset Graphics
- filename ../images/dialog-show-new-inset_ref.png
- scale 75
- scaleBeforeRotation
-
+\begin_inset Info
+type "icon"
+arg "dialog-show-new-inset ref"
\end_inset
.
The Cross-reference dialog pops up.
It shows a list of the possible labels you can reference.
- At the moment, there should be only one, `sec:About-This-Document'.
- First, select the drop-down menu labeled Format and select '<reference>
- on page <page>.' Then select `sec:About-This-Document' (it may be selected
- by default), and a reference marker will appear containing `Ref+Text: sec:About
--This-Document' (To be really correct, you should put a
+ At the moment, there should be only one,
+\begin_inset Quotes eld
+\end_inset
+
+sec:About-This-Document
+\begin_inset Quotes erd
+\end_inset
+
+.
+ First, select the drop-down menu labeled
+\begin_inset Quotes eld
+\end_inset
+
+Format
+\begin_inset Quotes erd
+\end_inset
+
+ and select
+\begin_inset Quotes eld
+\end_inset
+
+<reference> on page <page>
+\begin_inset Quotes erd
+\end_inset
+
+.
+ Then select
+\begin_inset Quotes eld
+\end_inset
+
+sec:About-This-Document
+\begin_inset Quotes erd
+\end_inset
+
+ (it may be selected by default), and a reference marker will appear containing
+
+\begin_inset Quotes eld
+\end_inset
+
+Ref+Text: sec:About-This-Document
+\begin_inset Quotes erd
+\end_inset
+
+ (To be really correct, you should put a
\family sans
Protected
\begin_inset space ~
Space
\family default
- in between the word `Section' and the reference).
- Alternatively to that method, you can right-click on a label and use in
- the appearing context menu
+ in between the word
+\begin_inset Quotes eld
+\end_inset
+
+Section
+\begin_inset Quotes erd
+\end_inset
+
+ and the reference).
+ An alternative way to reference a label is to right-click the label and
+ select
\family sans
Copy as Reference
\family default
-.
+ in the appearing context menu.
The cross-reference to this label is now in the clipboard and can be copied
to the actual cursor position via the menu
\family sans
Paste
\family default
(shortcut
-\family sans
-Ctrl+V
-\family default
+\begin_inset Info
+type "shortcut"
+arg "paste"
+\end_inset
+
).
In the printed document, this reference marker will be replaced with the
section number and then the page number.
View your document as DVI, and you will see that LaTeX has been even cleverer
than that.
- It refers to `Section 2' and depending how much text you have between the
- start of Section 2 and this cross-reference you may see `on this page,'
- 'on the previous page' or `on page n' (whereas
+ It refers to
+\begin_inset Quotes eld
+\end_inset
+
+Section 2
+\begin_inset Quotes erd
+\end_inset
+
+ and depending how much text you have between the start of Section
+\begin_inset space ~
+\end_inset
+
+2 and this cross-reference you may see
+\begin_inset Quotes eld
+\end_inset
+
+on this page
+\begin_inset Quotes erd
+\end_inset
+
+,
+\begin_inset Quotes eld
+\end_inset
+
+on the previous page
+\begin_inset Quotes erd
+\end_inset
+
+ or
+\begin_inset Quotes eld
+\end_inset
+
+on page n
+\begin_inset Quotes erd
+\end_inset
+
+ (whereas
\emph on
n
\emph default
\end_layout
\begin_layout Standard
-We told you that LyX takes care about numbering cross-references; now you
- can test that.
+We told you that LyX takes care of numbering cross-references; now you can
+ test this claim.
Add a new section before Section
\begin_inset space ~
\end_inset
2.
- Update the DVI view, and — voilà! — the section cross reference changed
+ Update the DVI view, and — voilà! — the section cross-reference changed
to
\begin_inset Quotes eld
\end_inset
\end_layout
\begin_layout Standard
-If you want to make sure that the cross-referencing gets the pages right
- even for larger documents,
+If you want to confirm that the cross-referencing gets the pages right even
+ for larger documents,
\family sans
Copy
\family default
\family sans
Paste
\family default
- the stolen text into your document.
+ it into your document.
\begin_inset Foot
status collapsed
\begin_layout Plain Layout
By the way, copying a chapter title may cause an error, because chapters
- are not allowed in the article class, see section
+ are not allowed in the article class, see Section
\begin_inset space ~
\end_inset
\begin_layout Standard
Footnotes can be added using the toolbar button
-\begin_inset Graphics
- filename ../images/footnote-insert.png
- scale 75
- scaleBeforeRotation
-
+\begin_inset Info
+type "icon"
+arg "footnote-insert"
\end_inset
or the menu
\begin_inset Quotes erd
\end_inset
- somewhere in your document and click the
-\begin_inset Graphics
- filename ../images/footnote-insert.png
- scale 75
- scaleBeforeRotation
-
-\end_inset
-
- button.
+ somewhere in your document and insert a footnote.
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
it.
In addition, you can change regular text to a footnote, by selecting it
and hitting the
-\begin_inset Graphics
- filename ../images/footnote-insert.png
- scale 75
- scaleBeforeRotation
-
+\begin_inset Info
+type "icon"
+arg "footnote-insert"
\end_inset
button; change a footnote to regular text by hitting the
\family sans
Delete
\family default
- key when the cursor is in the very last position of the footnote, respectively.
+ key when the cursor is in the very last position of the footnote.
\end_layout
\begin_layout Standard
Note
\family default
or the toolbar button
-\begin_inset Graphics
- filename ../images/marginalnote-insert.png
- scale 75
- scaleBeforeRotation
-
+\begin_inset Info
+type "icon"
+arg "marginalnote-insert"
\end_inset
\SpecialChar \@.
\end_layout
\begin_layout Standard
-Bibliographies (at least in the exact sciences) are similar to cross references.
+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
Label
\family default
is set (default), you will see the number of the bibliography in the output.
- Change now the
+ Now change the
\family sans
Key
\family default
Citation
\family default
or the toolbar button
-\begin_inset Graphics
- filename ../images/dialog-show-new-inset_citation.png
- scale 75
- scaleBeforeRotation
-
+\begin_inset Info
+type "icon"
+arg "dialog-show-new-inset citation"
\end_inset
.
\begin_layout Standard
You may want to put a table of contents at the beginning of your document.
- LyX makes this very easy to do.
+ LyX makes this easy to do.
Just hit
\family sans
Return
Outline
\family default
or the toolbar button
-\begin_inset Graphics
- filename ../images/dialog-toggle_toc.png
- scale 75
- scaleBeforeRotation
-
+\begin_inset Info
+type "icon"
+arg "dialog-toggle toc"
\end_inset
.
This menu will work even if you do not have a table of contents inset in
your document.
- This is a very useful tool for moving around your document parts.
+ This is a very useful tool for rearranging your document parts.
Clicking on a (sub)section title in the
\family sans
Outline
\begin_layout Standard
Instead, we create a formula that will get typeset properly.
In order to create a formula, just click the toolbar button
-\begin_inset Graphics
- filename ../images/math-mode.png
- scale 75
- scaleBeforeRotation
-
+\begin_inset Info
+type "icon"
+arg "math-mode"
\end_inset
or use the menu
\family default
.
LyX will insert a little blue square, which is an empty math formula.
- Now just type
+ Now type
\family typewriter
E=mc^2
\family default
\end_layout
\begin_layout Standard
-Writing a subscript (index) is just easy; start one by typing the underscore
+Writing a subscript (index) is just as easy; start one by typing the underscore
key
\begin_inset Quotes eld
\end_inset
toolbar
\family default
- is a convenient way to enter symbols or to perform complicated formula
+ is a convenient way to enter symbols and/or to perform complicated formula
operations.
Many of these operations can be accomplished from the keyboard or the
\family sans
\begin_inset Quotes erd
\end_inset
- the toolbar will be shown permanently at the bottom; this state is visualized
+ (
+\begin_inset Info
+type "icon"
+arg "toolbar-toggle math"
+\end_inset
+
+) the toolbar will be shown permanently at the bottom; this state is visualized
in the
\family sans
Toolbars
arrows, relationships, delimiters, special characters, sums and integrals.
Note that subscripting and superscripting allow you to put lower and upper
limits on sums and integrals.
-
\end_layout
\begin_layout Subsection
\begin_layout Standard
To type a square root, just click on the button
-\begin_inset Graphics
- filename ../images/math/sqrt.png
- scale 75
- scaleBeforeRotation
-
+\begin_inset Info
+type "icon"
+arg "math-insert \\sqrt"
\end_inset
.
\begin_layout Standard
Accenting a character (
-\begin_inset Formula $\overrightarrow{v}$
+\begin_inset Formula $\overrightarrow{a}$
\end_inset
) or group of characters (
\begin_inset Formula $\overrightarrow{a+b}$
\end_inset
-) is done the same way.
- Decorations are available from the toolbar via the button
-\begin_inset Graphics
- filename ../images/math/hat.png
- scale 75
- scaleBeforeRotation
+) is done similarly, and is an example of inserting a
+\begin_inset Quotes eld
+\end_inset
+frame decoration
+\begin_inset Quotes erd
+\end_inset
+
+.
+ Decorations are available from the toolbar via the button
+\begin_inset Info
+type "icon"
+arg "math-insert \\hat"
\end_inset
.
Delimiters such as parentheses, brackets, and braces work similarly, but
are a bit more complicated.
Hit the delimiter button
-\begin_inset Graphics
- filename ../images/dialog-show_mathdelimiter.png
- scale 75
- scaleBeforeRotation
-
+\begin_inset Info
+type "icon"
+arg "dialog-show mathdelimiter"
\end_inset
to pop up the
\begin_layout Standard
To create a fraction, click on the fraction button
-\begin_inset Graphics
- filename ../images/math/frac.png
- lyxscale 75
- scale 60
- scaleBeforeRotation
+\begin_inset Info
+type "icon"
+arg "math-insert \\frac"
+\end_inset
+ or
+\begin_inset Info
+type "icon"
+arg "math-insert \\frac-square"
\end_inset
in the
Toolbar
\family default
button
-\begin_inset Graphics
- filename ../images/math/functions.png
- scale 75
- scaleBeforeRotation
-
+\begin_inset Info
+type "icon"
+arg "math-insert \\functions"
\end_inset
and then on
\begin_layout Standard
Click on the matrix button
-\begin_inset Graphics
- filename ../images/dialog-show_mathmatrix.png
- scale 75
- scaleBeforeRotation
-
+\begin_inset Info
+type "icon"
+arg "dialog-show mathmatrix"
\end_inset
in the
Columns
\family default
or the math toolbar buttons
-\begin_inset Graphics
- filename ../images/tabular-feature_append-row.png
- scale 75
- scaleBeforeRotation
-
+\begin_inset Info
+type "icon"
+arg "inset-modify tabular append-row"
\end_inset
,
-\begin_inset Graphics
- filename ../images/tabular-feature_delete-row.png
- scale 75
- scaleBeforeRotation
-
+\begin_inset Info
+type "icon"
+arg "inset-modify tabular delete-row"
\end_inset
,
-\begin_inset Graphics
- filename ../images/tabular-feature_append-column.png
- scale 75
- scaleBeforeRotation
-
+\begin_inset Info
+type "icon"
+arg "inset-modify tabular append-column"
\end_inset
,
-\begin_inset Graphics
- filename ../images/tabular-feature_delete-column.png
- scale 75
- scaleBeforeRotation
-
+\begin_inset Info
+type "icon"
+arg "inset-modify tabular delete-column"
\end_inset
.
\begin_layout Standard
While being in a formula, click on the display button
-\begin_inset Graphics
- filename ../images/math-display.png
- scale 75
- scaleBeforeRotation
-
+\begin_inset Info
+type "icon"
+arg "math-display"
\end_inset
in the
\end_inset
-\begin_inset Formula \[
+\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.\]
+\end{array}\right.
+\]
\end_inset
\end_layout
\begin_layout Standard
-LyX's math editor can do a lot more.
- Now you are familiar with the basics, you can refer to the
+Now you are familiar with the basics.
+ LyX's math editor can do a lot more.
+ You can refer to the
\emph on
-User's Guide
+Math
\emph default
- for tips on how to:
+ manual for tips on how to:
\end_layout
\begin_layout Itemize
-Label and number expressions
+Label and number expressions.
\end_layout
\begin_layout Itemize
-Create multi-line equations
+Create multi-line equations.
\end_layout
\begin_layout Itemize
\end_layout
\begin_layout Itemize
-Do lots of other things that we have no space for in this Tutorial.
+Almost all you can do with math.
\end_layout
\begin_layout Chapter
Table
\family default
(toolbar button
-\begin_inset Graphics
- filename ../images/tabular-insert.png
- scale 75
- scaleBeforeRotation
-
+\begin_inset Info
+type "icon"
+arg "tabular-insert"
\end_inset
) to get a table.
Settings
\family default
dialog box which allows extensive table editing.
+ By pressing
+\begin_inset Info
+type "icon"
+arg "toolbar-toggle table"
+\end_inset
+
+ the table toolbar will appear permanently.
\end_layout
\begin_layout Itemize
Graphics
\family default
(toolbar button
-\begin_inset Graphics
- filename ../images/dialog-show-new-inset_graphics.png
- scale 75
- scaleBeforeRotation
-
+\begin_inset Info
+type "icon"
+arg "dialog-show-new-inset graphics"
\end_inset
).
\family sans
O
\family default
- or by using the binding which is shown next to it in the menu (Ctrl+O by
- default).
+ or by using the binding which is shown next to it in the menu (
+\begin_inset Info
+type "shortcut"
+arg "file-open"
+\end_inset
+
+ by default).
Keybindings are also configurable.
For information on this, check out
\family sans
information here.
The
\emph on
-Additional Features
+Additional
+\begin_inset space ~
+\end_inset
+
+Features
\emph default
and the
\emph on
-Embedded Objects
+Embedded
+\begin_inset space ~
+\end_inset
+
+Objects
\emph default
manual have a great deal of information on differences between LyX and
LaTeX, and how to do various LaTeX tricks in LyX.
Code
\family default
(toolbar button
-\begin_inset Graphics
- filename ../images/ert-insert.png
- scale 75
- scaleBeforeRotation
-
+\begin_inset Info
+type "icon"
+arg "ert-insert"
\end_inset
).
\begin_layout Standard
In a math formula, TeX mode is handled a bit differently.
- TeX mode is there entered by typing a backslash.
+ TeX mode is entered there 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
\family default
or some other non-alphabetic character, like a number, underscore, caret,
or parenthesis.
- Once you exit TeX mode, if LyX knows the TeX command you have typed in,
+ Once you exit TeX mode, if LyX knows the TeX command you have typed in,
it will convert it to WYSIWYM\SpecialChar \@.
So if you type
\begin_inset Quotes eld
\emph default
ending braces will be inserted in red while the cursor is placed between
the braces.
- This makes it more convenient to type those commands which take an argument.
+ This makes it more convenient to type those commands that take an argument.
\end_layout
\begin_layout Standard
\backslash
usepackage{foo}
\family default
- in the preamble (see section
+ in the preamble (see Section
\begin_inset space ~
\end_inset
\end_inset
-), you can use any package you want---although you will not have WYSIWYM
+), you can use any package you want — although you will not have WYSIWYM
support for that package's features.
\end_layout
\begin_layout Subsection
-Importing LaTeX Documents
-\change_deleted 2 1263335457
- —
-\change_inserted 2 1263335459
----
-\change_unchanged
-
+Importing LaTeX Documents —
\family typewriter
tex2lyx
\family default
\family default
menu in LyX.
This will call the program
-\begin_inset Flex CharStyle:Code
-status collapsed
-
-\begin_layout Plain Layout
+\family typewriter
tex2lyx
-\end_layout
-
-\end_inset
-
- which will create a file
-\begin_inset Flex CharStyle:Code
-status collapsed
-
-\begin_layout Plain Layout
-foo.lyx
-\end_layout
-
-\end_inset
-
- from the file
-\begin_inset Flex CharStyle:Code
-status collapsed
-
-\begin_layout Plain Layout
-foo.tex
-\end_layout
-
-\end_inset
-
-
-\change_inserted 2 1263337184
-; LyX will
-\change_deleted 2 1263337185
- and
-\change_unchanged
-then open that file.
+\family default
+ which will create a file foo.lyx from the file foo.tex.
+ LyX will then open that file.
If the translation does not work, you can try calling
-\begin_inset Flex CharStyle:Code
-status collapsed
-
-\begin_layout Plain Layout
+\family typewriter
tex2lyx
-\end_layout
-
-\end_inset
-
+\family default
from the command line, possibly using fancier options.
\end_layout
\begin_layout Standard
-
-\change_inserted 2 1263337199
Even when the translation does work,
-\change_unchanged
-
-\begin_inset Flex CharStyle:Code
-status collapsed
-
-\begin_layout Plain Layout
+\family typewriter
tex2lyx
-\end_layout
-
-\end_inset
-
-
-\change_inserted 2 1263337202
-may not
-\change_deleted 2 1263337203
-will
-\change_unchanged
-translate
-\change_deleted 2 1263337205
-most legal LaTeX, but not
-\change_unchanged
-everything
-\change_inserted 2 1263337217
-, though it does handle most legal LaTeX
-\change_unchanged
-.
+\family default
+ may not translate everything, though it does handle most legal LaTeX.
It will leave things it does not understand in TeX mode; so, after translating
a file with
-\begin_inset Flex CharStyle:Code
-status collapsed
-
-\begin_layout Plain Layout
+\family typewriter
tex2lyx
-\end_layout
-
-\end_inset
-
+\family default
, you can look for the red text and manually edit it to get it right.
\end_layout
\begin_layout Standard
-\begin_inset Flex CharStyle:Code
-status collapsed
-\begin_layout Plain Layout
+\family typewriter
tex2lyx
-\end_layout
-
-\end_inset
-
- has its own
-\change_inserted 2 1263337255
-documentation
-\change_deleted 2 1263337260
-manpage.
-\change_inserted 2 1263337293
-, which *nix users can access via
-\begin_inset Flex CharStyle:Code
-status collapsed
-
-\begin_layout Plain Layout
-
-\change_inserted 2 1263337285
-man tex2lyx
-\change_unchanged
-
-\end_layout
-
+\family default
+ has its own documentation (manpage), which Unix/Linux users can access
+ via the console command
+\family typewriter
+man
+\begin_inset space ~
\end_inset
+tex2lyx
+\family default
.
- The manpage describes
-\change_deleted 2 1263337296
- Read it to find out
-\change_unchanged
-which LaTeX commands and environments are not supported,
-\change_inserted 2 1263335470
-what bugs you might run into
-\change_deleted 2 1263335471
-bugs
-\change_unchanged
-(and how to get around them), and how to use the various options.
-\change_inserted 2 1263335473
-
+ The manpage describes which LaTeX commands and environments are not supported,
+ what bugs you might run into (and how to get around them), and how to use
+ the various options.
\end_layout
\begin_layout Standard
-
-\change_inserted 2 1263337717
-It is extremely important to understand that
-\begin_inset Flex CharStyle:Code
-status collapsed
-
-\begin_layout Plain Layout
-
-\change_inserted 2 1263335502
+It is important to understand that
+\family typewriter
tex2lyx
-\change_unchanged
-
-\end_layout
-
-\end_inset
-
+\family default
can only translate files whose document class is
\begin_inset Quotes eld
\end_inset
\begin_inset Quotes erd
\end_inset
- to LyX, that is, for which there is a corresponding LyX `layout file'.
+ to LyX, that is, for which there is a corresponding LyX
+\family sans
+layout file
+\family default
+.
If there is no layout file, then you will get an error saying that the
conversion could not be performed.
- The reason for this is that, in a sense, LyX doesn't know anything about
- LaTeX: very little of the information LyX has about LaTeX is contained
- in the program itself.
- That information is instead contained in layout files.
- You can think of the layout file for a document class as a translation
- manual between LyX constructs---paragraphs with their corresponding styles,
- etc---and the corresponding LaTeX commands and environments.
- So, unless you have a layout for
-\begin_inset Flex CharStyle:Code
-status collapsed
-
-\begin_layout Plain Layout
-
-\change_inserted 2 1263336322
-foo.tex
-\change_unchanged
-
-\end_layout
-
-\end_inset
-
-'s document class,
-\begin_inset Flex CharStyle:Code
-status collapsed
-
-\begin_layout Plain Layout
-
-\change_inserted 2 1263336331
+ So, unless you have a layout for the document class of your LaTeX file,
+
+\family typewriter
tex2lyx
-\change_unchanged
-
-\end_layout
-
-\end_inset
-
- simply will not now how to translate the LaTeX that it finds there into
+\family default
+ simply will not know how to translate the LaTeX that it finds there into
things LyX understands.
-\end_layout
-
-\begin_layout Standard
-
-\change_inserted 2 1263337784
-When you installed LyX, you also installed layout files for almost 100 different
- document types (though some of these are DocBook, rather than LaTeX).
- Still, there are many, many more document classes than that, and new ones
- are probably invented every day.
- There is no way that LyX itself can include layout files for every document
- class you might want to use.
-\end_layout
-
-\begin_layout Standard
-
-\change_inserted 2 1263337857
-So what can you do if LyX does not include a layout file for your fancy
- new document class? Create your own.
- If your new document class is based upon, or very similar to, one for which
- there already is a layout file, which is true in many cases, then creating
- a new layout file may be as easy as copying a file and changing a few lines.
- In the other cases, you may have more work to do.
- But while you will have to learn a bit, it is not really that difficult,
- and many of the people who contribute to the users' mailing list have a
- great deal of experience they are willing to share.
-\change_unchanged
-
-\end_layout
-
-\begin_layout Standard
-
-\change_inserted 2 1263337162
-The format of LyX's layout files and the process of creating new ones are
- discussed in detail in Chapter 5 of the
+ More about layout files and how they are created is explained in detail
+ in Chapter 5 of the
\emph on
Customization
\emph default
manual.
-\change_unchanged
-
\end_layout
\begin_layout Subsection
whatever.lyx
\family default
file you are editing.
- LyX always creates temporary LaTeX files when viewing or printing files.
\end_layout
\begin_layout Subsection
Document\SpecialChar \menuseparator
Settings
\family default
- dialog takes care of the document-wide options.
- You can change there the document class, default font size and paper size.
- Document class options but also options for LaTeX packages can be entered
+ dialog takes care of the document-wide options, such as changing the document
+ class, default font size and paper size.
+ Document class options and also options for LaTeX packages can be entered
there in the
\family sans
Class
\begin_layout Standard
After you have done this, you can use citations from any bibliographies
- you are including with
+ you have included with
\family sans
Insert\SpecialChar \menuseparator
Citation
\family default
- (see section
+ (see Section
\begin_inset space ~
\end_inset
\end_inset
).
- LyX will take care of running BibTeX.
The box in the
\family sans
Citation