]> git.lyx.org Git - lyx.git/blobdiff - lib/doc/Tutorial.lyx
German UserGuide: latest patches by Hartmut
[lyx.git] / lib / doc / Tutorial.lyx
index 2d866daf58833f10b528048ac5d60599a0cf255a..1419edad3bf2b58f99ecc8ce4b7dc4ad252e7c51 100644 (file)
@@ -1,17 +1,25 @@
-#LyX 1.4.0cvs created this file. For more info see http://www.lyx.org/
-\lyxformat 245
+#LyX 1.5.0rc1 created this file. For more info see http://www.lyx.org/
+\lyxformat 271
 \begin_document
 \begin_header
 \textclass book
 \language english
 \inputencoding latin1
-\fontscheme default
+\font_roman default
+\font_sans default
+\font_typewriter default
+\font_default_family default
+\font_sc false
+\font_osf false
+\font_sf_scale 100
+\font_tt_scale 100
 \graphics none
 \paperfontsize default
 \spacing single
 \papersize default
 \use_geometry false
 \use_amsmath 0
+\use_esint 0
 \cite_engine basic
 \use_bibtopic false
 \paperorientation portrait
@@ -24,7 +32,8 @@
 \papersides 2
 \paperpagestyle headings
 \tracking_changes false
-\output_changes true
+\output_changes false
+\author "usti" 
 \end_header
 
 \begin_body
@@ -45,7 +54,11 @@ Amir Karger
 \noun default
 .
  If you have comments or error corrections, please send them to the LyX
- Documentation mailing list, <lyx-docs@lists.lyx.org>.
+ Documentation mailing list, 
+\family typewriter
+lyx-docs@lists.lyx.org
+\family default
+.
 \end_layout
 
 \end_inset
@@ -54,7 +67,7 @@ Amir Karger
 \end_layout
 
 \begin_layout Standard
-\begin_inset LatexCommand \tableofcontents{}
+\begin_inset LatexCommand tableofcontents
 
 \end_inset
 
@@ -153,7 +166,7 @@ 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.
- For convenience, you might want to print out the PostScript® version of
+ For convenience, you might want to print out the PostScript® version of
  this document.
 \end_layout
 
@@ -188,7 +201,8 @@ Tutorial
 \emph default
 , you should definitely check out Section\InsetSpace ~
 
-\begin_inset LatexCommand \ref{sec:latexusers}
+\begin_inset LatexCommand ref
+reference "sec:latexusers"
 
 \end_inset
 
@@ -271,11 +285,12 @@ Getting Started with LyX
 \end_layout
 
 \begin_layout Section
-Your First LyX Document 
+Your First LyX Document
 \end_layout
 
 \begin_layout Standard
-\begin_inset LatexCommand \label{sec:first-doc-ex}
+\begin_inset LatexCommand label
+name "sec:first-doc-ex"
 
 \end_inset
 
@@ -284,9 +299,9 @@ Your First LyX Document
  Before you do, though, there are a few things we need to mention, which
  will hopefully make the 
 \emph on
-Tutorial 
+Tutorial
 \emph default
-more instructive, useful, and fun.
+ more instructive, useful, and fun.
  
 \end_layout
 
@@ -294,11 +309,12 @@ more instructive, useful, and fun.
 Because there's lots of information that we won't be giving you, the 
 \emph on
 first
-\series medium
 \emph default
- thing that you need to do is find the 
+\series medium
+thing that you need to do is find the
 \series default
-other 
+ other 
 \series medium
 help files.
  Luckily, this is very simple.
@@ -338,14 +354,14 @@ They can also serve as good examples of how to use the many features of
  
 \family sans
 \bar under
-D
+V
 \bar default
-ocuments
+iew
 \family default
- menu to switch between them.
- The
+ menu or the document tabs to switch between them.
+ The 
 \emph on
- Tutorial
+Tutorial
 \emph default
  will not cover in detail subjects which are described in the other LyX
  manuals.
@@ -377,7 +393,7 @@ dvips
 \family typewriter
 dvi
 \family default
- documents to PostScript® documents, and a working printer.
+ documents to PostScript® documents, and a working printer.
  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.
@@ -710,10 +726,10 @@ E
 dit\SpecialChar \menuseparator
 Cut
 \family default
-,
+, 
 \family sans
 \bar under
- E
+E
 \bar default
 dit\SpecialChar \menuseparator
 Copy
@@ -748,9 +764,9 @@ F
 \bar default
 ind\InsetSpace ~
 &\InsetSpace ~
-Replace 
+Replace
 \family default
-for a search.
+ for a search.
  In the dialog, search with the 
 \family sans
 \bar under
@@ -870,7 +886,8 @@ WYSIWYM: Whitespace in LyX
 \end_layout
 
 \begin_layout Standard
-\begin_inset LatexCommand \label{sec:whitespace}
+\begin_inset LatexCommand label
+name "sec:whitespace"
 
 \end_inset
 
@@ -926,9 +943,9 @@ Mean
 \family sans
 Return
 \family default
- grammatically separates paragraphs, and a
+ grammatically separates paragraphs, and a 
 \family sans
- Space
+Space
 \family default
  grammatically separates words, so there is no reason to have several of
  them in a row; a 
@@ -961,9 +978,9 @@ exactly
  what you mean.
  The 
 \emph on
-User's Guide 
+User's Guide
 \emph default
-has information about all that.
+ has information about all that.
  It includes 
 \family sans
 HFill
@@ -1167,9 +1184,9 @@ Return
 \family sans
 Section
 \family default
- from the
+ from the 
 \family sans
- Environment
+Environment
 \family default
  menu again.
  LyX writes a 
@@ -1207,9 +1224,9 @@ Return
 \family sans
 Section
 \family default
- from the
+ from the 
 \family sans
- Environment
+Environment
 \family default
  menu again.
  Again, LyX writes 
@@ -1280,9 +1297,9 @@ Click on the second line and select
 \family sans
 Subsection
 \family default
- from the
+ from the 
 \family sans
- Environment
+Environment
 \family default
  menu.
  LyX numbers the subsection 
@@ -1364,7 +1381,8 @@ Section
 s, but you're only allowed to use them in certain types (text classes) of
  LyX documents (see Section\InsetSpace ~
 
-\begin_inset LatexCommand \ref{sec:textclasses}
+\begin_inset LatexCommand ref
+reference "sec:textclasses"
 
 \end_inset
 
@@ -1375,9 +1393,9 @@ s, but you're only allowed to use them in certain types (text classes) of
 \begin_layout Standard
 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
+ If you change one of your section headings to the 
 \family sans
- Section*
+Section*
 \family default
  environment (you may have to scroll down in the 
 \family sans
@@ -1463,9 +1481,9 @@ Itemize
 \end_layout
 
 \begin_layout Itemize
-An outline would use the
+An outline would use the 
 \family sans
- Enumerate
+Enumerate
 \family default
  environment's numbered lists (and lettered sublists).
  
@@ -1474,9 +1492,9 @@ An outline would use the
 \begin_layout Itemize
 A document describing several software packages could use the 
 \family sans
-Description 
+Description
 \family default
-environment, where each item in the list begins with a bold-faced word.
+ environment, where each item in the list begins with a bold-faced word.
  
 \end_layout
 
@@ -1590,9 +1608,9 @@ status collapsed
 LyX won't let you select the first bullet unless you also select the paragraph
  
 \emph on
-before 
+before
 \emph default
-the list, which you probably don't want to do.
+ 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.
 \end_layout
@@ -1765,6 +1783,7 @@ status inlined
 
 \begin_layout Standard
 
+
 \backslash
 linebreak
 \end_layout
@@ -1800,7 +1819,8 @@ Text classes
 \end_layout
 
 \begin_layout Standard
-\begin_inset LatexCommand \label{sec:textclasses}
+\begin_inset LatexCommand label
+name "sec:textclasses"
 
 \end_inset
 
@@ -1822,9 +1842,10 @@ LaTeX users: this is equivalent to the LaTeX document class
 
 \end_inset
 
+
 \emph default
-takes care of these large scale differences between different sorts of documents.
+ takes care of these large scale differences between different sorts of
+ documents.
  This 
 \emph on
 Tutorial
@@ -1907,9 +1928,9 @@ style files
  American Mathematics Society journals using the 
 \family sans
 Article\InsetSpace ~
-(AMS) 
+(AMS)
 \family default
-text class.
+ text class.
 \end_layout
 
 \begin_layout Standard
@@ -2090,11 +2111,7 @@ One of the most popular text classes is
 Letter
 \family default
 \SpecialChar \@.
- One way to write a letter would be to open a new
-\family sans
-\family default
-file, and choose 
+ One way to write a letter would be to open a new file, and choose 
 \family sans
 Letter
 \family default
@@ -2156,14 +2173,14 @@ Environment
  menu, you'll see several environments, like the 
 \family sans
 My\InsetSpace ~
-Address 
+Address
 \family default
-environment, which don't even exist in most other text classes.
+ environment, which don't even exist in most other text classes.
  Others, like 
 \family sans
-Quote 
+Quote
 \family default
-and 
+ and 
 \family sans
 Description
 \family default
@@ -2213,7 +2230,7 @@ exercise
 \begin_inset Quotes erd
 \end_inset
 
- here; just write a letter to someone
+ here; just write a letter to someone!
 \begin_inset Foot
 status collapsed
 
@@ -2237,7 +2254,7 @@ Environment
 
 \end_inset
 
-!
+
 \end_layout
 
 \begin_layout Standard
@@ -2264,13 +2281,13 @@ LyX (like LaTeX) considers the title --- which may contain the actual title,
 \begin_layout Standard
 Go back to your 
 \family typewriter
-newfile.lyx 
+newfile.lyx
 \family default
-document and make sure it's using the 
+ document and make sure it's using the 
 \family sans
-Article 
+Article
 \family default
-text class.
+ text class.
 \begin_inset Foot
 status collapsed
 
@@ -2291,9 +2308,9 @@ Title
  environment.
  On the next line, type your name and change it to the 
 \family sans
-Author 
+Author
 \family default
-environment.
+ environment.
  On the next line, write the date in the 
 \family sans
 Date
@@ -2304,7 +2321,9 @@ Date
 Abstract
 \family default
  environment.
- Now see how it looks when printed.
+ 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.
 \end_layout
 
 \begin_layout Standard
@@ -2322,7 +2341,8 @@ Labels and Cross-References
 \end_layout
 
 \begin_layout Standard
-\begin_inset LatexCommand \label{sec:labels}
+\begin_inset LatexCommand label
+name "sec:labels"
 
 \end_inset
 
@@ -2352,10 +2372,10 @@ About This Document
 \end_inset
 
 .
- Click at the end of the section title line, and select
+ Click at the end of the section title line, and select 
 \family sans
 \bar under
- I
+I
 \bar default
 nsert\SpecialChar \menuseparator
 
@@ -2420,11 +2440,7 @@ section
 \begin_inset Quotes erd
 \end_inset
 
-
-\family typewriter
-\family default
---- choose 
+ --- choose 
 \family sans
 \bar under
 I
@@ -2493,7 +2509,6 @@ 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 
 \family sans
-Insert\InsetSpace ~
 Reference
 \family default
  dialog).
@@ -2537,8 +2552,8 @@ Page\InsetSpace ~
 \end_layout
 
 \begin_layout Standard
-Conveniently, a cross-reference acts a hyperlink when you're editing a document
- in LyX; clicking on it will pop up the 
+Conveniently, a cross-reference acts as a hyperlink when you're editing
a document in LyX; clicking on it will pop up the 
 \family sans
 Reference
 \family default
@@ -2546,7 +2561,7 @@ Reference
 \family sans
 Go\InsetSpace ~
 to\InsetSpace ~
-reference
+Label
 \family default
  will move the cursor to the referenced label.
 \end_layout
@@ -2560,7 +2575,7 @@ We told you that LyX worries about numbering cross-references; now you can
  test that.
  Add a new section before Section\InsetSpace ~
 2.
- Now rerun LaTeX, and --- voilà! --- the section cross reference changed
+ Now rerun LaTeX, and --- voilà! --- the section cross reference changed
  to 
 \begin_inset Quotes eld
 \end_inset
@@ -2593,10 +2608,9 @@ If you want some more practice with labels, then try putting a new label
  If you'll be inserting cross-references often (if, for example, you're
  writing a journal article), it may be convenient to leave the 
 \family sans
-Insert\InsetSpace ~
 Reference
 \family default
window open.
dialog open.
 \end_layout
 
 \begin_layout Standard
@@ -2623,7 +2637,8 @@ By the way, copying a chapter title may cause an error, because chapters
  If this happens, just delete the chapter title.
  If you want to know why this happens, see Section\InsetSpace ~
 
-\begin_inset LatexCommand \ref{sec:textclasses}
+\begin_inset LatexCommand ref
+reference "sec:textclasses"
 
 \end_inset
 
@@ -2777,12 +2792,16 @@ Paste
 Insert\InsetSpace ~
 Footnote
 \family default
- button; change a footnote to regular text by clicking the 
+ button; change a footnote to regular text by hitting the 
 \family sans
-Insert\InsetSpace ~
-Footnote
+Backspace
 \family default
- button when the cursor is in a footnote.
+ key when the cursor is in the first position of a footnote, or by hitting
+ the 
+\family sans
+Delete
+\family default
+ key when the cursor is in the very last position of the footnote, respectively.
 \end_layout
 
 \begin_layout Standard
@@ -2859,7 +2878,8 @@ Bibliographies
 \end_layout
 
 \begin_layout Standard
-\begin_inset LatexCommand \label{sec:bibliographies}
+\begin_inset LatexCommand label
+name "sec:bibliographies"
 
 \end_inset
 
@@ -2878,9 +2898,9 @@ Bibliography
 \family default
  environment.
  Now, each paragraph you type will be a reference.
- Type
+ Type 
 \family typewriter
- The Lyx Tutorial, by the LyX Documentation Team
+The Lyx Tutorial, by the LyX Documentation Team
 \family default
  as your first reference.
  Note that LyX automatically puts a number in a box before each reference.
@@ -2923,10 +2943,9 @@ nsert\SpecialChar \menuseparator
 \bar under
 C
 \bar default
-itation\InsetSpace ~
-Reference\SpecialChar \@.
-
+itation
 \family default
+.
  A 
 \family sans
 Citation
@@ -2953,12 +2972,11 @@ lyxtutorial
 \begin_layout Standard
 How are the other fields used? The 
 \family sans
-Text\InsetSpace ~
-aft
 \bar under
-e
+T
 \bar default
-r
+ext\InsetSpace ~
+after
 \family default
  field in the 
 \family sans
@@ -2980,12 +2998,13 @@ Citation
 \bar under
 L
 \bar default
-abel 
+abel
 \family default
-field in the 
+ field in the 
 \family sans
 Bibliography\InsetSpace ~
-item
+Entry\InsetSpace ~
+Settings
 \family default
  dialog.
  As usual, you can see the 
@@ -2998,9 +3017,9 @@ User's Guide
 \begin_layout Standard
 
 \series bold
-Exercise: 
+Exercise:
 \series default
-Fix the bibliography and citation in 
+ Fix the bibliography and citation in 
 \family typewriter
 example_raw.lyx
 \end_layout
@@ -3973,7 +3992,8 @@ Matrices
 \end_layout
 
 \begin_layout Standard
-\begin_inset LatexCommand \label{sec:matrices}
+\begin_inset LatexCommand label
+name "sec:matrices"
 
 \end_inset
 
@@ -4104,7 +4124,8 @@ User's Guide
 \emph default
 ), and multi-line equations (see Sec.
  
-\begin_inset LatexCommand \ref{sec:multiline}
+\begin_inset LatexCommand ref
+reference "sec:multiline"
 
 \end_inset
 
@@ -4336,7 +4357,7 @@ Settings
 
 \begin_layout Itemize
 LyX also supports including pictures in a number of formats (including JPEG
- and other bitmap formats, PostScript® and raw LaTeX) within documents.
+ and other bitmap formats, PostScript® and raw LaTeX) within documents.
  (You guessed it: 
 \family sans
 \bar under
@@ -4349,7 +4370,7 @@ G
 \bar default
 raphics
 \family default
-\SpecialChar \@.
+.
  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.
@@ -4447,7 +4468,8 @@ ustomization\SpecialChar \@.
 LyX can read in LaTeX documents.
  See Section\InsetSpace ~
 
-\begin_inset LatexCommand \ref{sec:relyx}
+\begin_inset LatexCommand ref
+reference "sec:tex2lyx"
 
 \end_inset
 
@@ -4476,7 +4498,8 @@ LyX for LaTeX Users
 \end_layout
 
 \begin_layout Standard
-\begin_inset LatexCommand \label{sec:latexusers}
+\begin_inset LatexCommand label
+name "sec:latexusers"
 
 \end_inset
 
@@ -4492,9 +4515,10 @@ learn
  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.
- Currently, there may be some annoyance in converting old LaTeX documents
- and in a couple other areas, but later releases of LyX will get rid of
- these problems.
+ 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.
 \end_layout
 
 \begin_layout Standard
@@ -4533,8 +4557,10 @@ nsert\SpecialChar \menuseparator
 Te
 \bar under
 X
-\family default
 \bar default
+\InsetSpace ~
+Code
+\family default
 .
  This creates a text box, and everything within it is passed straight to
  LaTeX.
@@ -4622,7 +4648,8 @@ usepackage{foo}
 \family default
  in the preamble (see Section\InsetSpace ~
 
-\begin_inset LatexCommand \ref{sec:preamble}
+\begin_inset LatexCommand ref
+reference "sec:preamble"
 
 \end_inset
 
@@ -4631,13 +4658,14 @@ usepackage{foo}
 \end_layout
 
 \begin_layout Subsection
-Importing LaTeX Documents--- 
+Importing LaTeX Documents --- 
 \family typewriter
-reLyX
+tex2lyx
 \end_layout
 
 \begin_layout Standard
-\begin_inset LatexCommand \label{sec:relyx}
+\begin_inset LatexCommand label
+name "sec:tex2lyx"
 
 \end_inset
 
 aTeX
 \family default
  command in LyX.
- This will call a Perl script called 
+ This will call 
 \family typewriter
-reLyX
+tex2lyx
 \family default
----which will create a file 
+ which will create a file 
 \family typewriter
 foo.lyx
 \family default
@@ -4671,51 +4699,24 @@ foo.lyx
 \family typewriter
 foo.tex
 \family default
----and then open that file.
+ --- and then open that file.
  If the translation doesn't work, you can try calling 
 \family typewriter
-reLyX
+tex2lyx
 \family default
- from the command line
-\begin_inset Foot
-status collapsed
-
-\begin_layout Standard
-When LyX is installed, a separate executable called 
-\family typewriter
-reLyX
-\family default
- will be placed in the same folder as the 
-\family typewriter
-lyx
-\family default
- executable (e.g., 
-\family typewriter
-/usr/local/bin/reLyX
-\family default
-).
-
-\family typewriter
- reLyX
-\family default
- requires Perl (version 5.002 as of this writing).
-\end_layout
-
-\end_inset
-
-, possibly using fancier options.
+ from the command line, possibly using fancier options.
 \end_layout
 
 \begin_layout Standard
 
 \family typewriter
-reLyX
+tex2lyx
 \family default
  will translate most legal LaTeX, but not everything.
  It will leave things it doesn't understand in TeX mode, so after translating
  a file with 
 \family typewriter
-reLyX
+tex2lyx
 \family default
 , you can look for red text and hand-edit it to look right.
 \end_layout
@@ -4723,7 +4724,7 @@ reLyX
 \begin_layout Standard
 
 \family typewriter
-reLyX
+tex2lyx
 \family default
  has its own manpage.
  Read it to find out about which LaTeX commands and environments aren't
@@ -4823,7 +4824,8 @@ Other Preamble Matter
 \end_layout
 
 \begin_layout Standard
-\begin_inset LatexCommand \label{sec:preamble}
+\begin_inset LatexCommand label
+name "sec:preamble"
 
 \end_inset
 
@@ -4876,9 +4878,9 @@ C\SpecialChar \menuseparator
 B
 \bar default
 ibTeX\InsetSpace ~
-Reference 
+Reference
 \family default
-to include a 
+ to include a 
 \family typewriter
 bib
 \family default
@@ -4895,9 +4897,9 @@ References
 
  button, and you will get a 
 \family sans
-BibTeX 
+BibTeX
 \family default
-dialog.
+ dialog.
  In the 
 \family sans
 Database
@@ -4922,9 +4924,9 @@ Like in regular LaTeX, multiple bibliographies should be separated by commas,
 .
  Similarly, in the 
 \family sans
-Style 
+Style
 \family default
-field, type what you would type inside the braces of a 
+ field, type what you would type inside the braces of a 
 \family typewriter
 
 \backslash
@@ -4945,12 +4947,12 @@ nsert\SpecialChar \menuseparator
 \bar under
 C
 \bar default
-itation\InsetSpace ~
-Reference
+itation
 \family default
  (see Section\InsetSpace ~
 
-\begin_inset LatexCommand \ref{sec:bibliographies}
+\begin_inset LatexCommand ref
+reference "sec:bibliographies"
 
 \end_inset
 
@@ -4974,18 +4976,15 @@ Errors!
 \begin_layout Standard
 Sometimes when you LaTeX a document, there will be errors, things that LyX
  or LaTeX can't understand.
- When this happens, LyX will create an error box (a box with the word 
-\begin_inset Quotes eld
-\end_inset
-
-error
-\begin_inset Quotes erd
-\end_inset
-
- in it).
- Clicking on this box will pop up a window showing what the error was.
- LyX will just include the error message that LaTeX gave.
- Note that the placement of these errors in often not accurate.
+ 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.
 \end_layout
 
 \end_body