]> git.lyx.org Git - lyx.git/blob - lib/doc/Tutorial.lyx
de and it UserGuide.lyx: update the character table according to our Unicode features.
[lyx.git] / lib / doc / Tutorial.lyx
1 #LyX 1.5.0rc1 created this file. For more info see http://www.lyx.org/
2 \lyxformat 271
3 \begin_document
4 \begin_header
5 \textclass book
6 \language english
7 \inputencoding latin1
8 \font_roman default
9 \font_sans default
10 \font_typewriter default
11 \font_default_family default
12 \font_sc false
13 \font_osf false
14 \font_sf_scale 100
15 \font_tt_scale 100
16 \graphics none
17 \paperfontsize default
18 \spacing single
19 \papersize default
20 \use_geometry false
21 \use_amsmath 0
22 \use_esint 0
23 \cite_engine basic
24 \use_bibtopic false
25 \paperorientation portrait
26 \secnumdepth 3
27 \tocdepth 2
28 \paragraph_separation indent
29 \defskip medskip
30 \quotes_language english
31 \papercolumns 1
32 \papersides 2
33 \paperpagestyle headings
34 \tracking_changes false
35 \output_changes false
36 \author "usti" 
37 \end_header
38
39 \begin_body
40
41 \begin_layout Title
42 The LyX Tutorial
43 \end_layout
44
45 \begin_layout Author
46 by the LyX Team
47 \begin_inset Foot
48 status collapsed
49
50 \begin_layout Standard
51 Principal maintainer of this file is 
52 \noun on
53 Amir Karger
54 \noun default
55 .
56  If you have comments or error corrections, please send them to the LyX
57  Documentation mailing list, 
58 \family typewriter
59 lyx-docs@lists.lyx.org
60 \family default
61 .
62 \end_layout
63
64 \end_inset
65
66
67 \end_layout
68
69 \begin_layout Standard
70 \begin_inset LatexCommand tableofcontents
71
72 \end_inset
73
74
75 \end_layout
76
77 \begin_layout Chapter
78 Introduction
79 \end_layout
80
81 \begin_layout Section
82 Welcome to LyX!
83 \end_layout
84
85 \begin_layout Standard
86 This file is designed for all of you who have never heard of LaTeX, or don't
87  know it very well.
88  Now, don't panic - you won't need to learn LaTeX to use LyX.
89  That is, after all, the whole point of LyX: to provide an almost-WYSIWYG
90  interface to LaTeX.
91  There are some things you will need to learn, however, in order to use
92  LyX effectively.
93 \end_layout
94
95 \begin_layout Standard
96 Some of you probably found your way to this document because you tried to
97  put two spaces after a 
98 \begin_inset Quotes eld
99 \end_inset
100
101 .
102 \begin_inset Quotes erd
103 \end_inset
104
105  or tried to put 3 blank lines between paragraphs.
106  After much frustration, you found you couldn't.
107  In fact, you'll find that most of the little tricks you're accustomed to
108  using in other word processors just won't work in LyX.
109  That's because most word processors you've used before allow you to manually
110  enter all spacings, font changes, and so on.
111  So you end up not only writing a document but typesetting it, too.
112  LyX does the typesetting for you, in a consistent fashion, letting you
113  focus on the important things, like the content of your writing.
114 \end_layout
115
116 \begin_layout Standard
117 So, bear with us and read on.
118  Reading this tutorial is definitely worth the time.
119 \end_layout
120
121 \begin_layout Section
122 What the Tutorial 
123 \emph on
124 is
125 \emph default
126  and What it 
127 \emph on
128 isn't
129 \end_layout
130
131 \begin_layout Standard
132 Before we get started with this section, we want to make a quick note of
133  something.
134  The 
135 \emph on
136 Tutorial
137 \emph default
138  uses the notation outlined in the 
139 \emph on
140 Introduction
141 \emph default
142 \SpecialChar \@.
143  If you came to this manual first, go read the 
144 \emph on
145 Introduction
146 \emph default
147 \SpecialChar \@.
148  Yes, we mean now.
149 \end_layout
150
151 \begin_layout Standard
152 Now that you know which fonts mean what, we want to talk a bit about what
153  this 
154 \emph on
155 Tutorial
156 \emph default
157  is for.
158 \end_layout
159
160 \begin_layout Subsection
161 Getting the Most out of the Tutorial
162 \end_layout
163
164 \begin_layout Standard
165 This tutorial consists of examples and exercises.
166  To get the most out of this document, you should read through the document,
167  typing all the silly little things we're telling you to type and trying
168  out all of the exercises to see if you get them right.
169  For convenience, you might want to print out the PostScript® version of
170  this document.
171 \end_layout
172
173 \begin_layout Standard
174 If you are familiar with LaTeX, you'll probably be able to read the 
175 \emph on
176 Tutorial
177 \emph default
178  somewhat faster, since many LyX ideas are just LaTeX ideas in disguise.
179  However, LyX does have idiosyncrasies
180 \begin_inset Foot
181 status collapsed
182
183 \begin_layout Standard
184 or, more optimistically, 
185 \begin_inset Quotes eld
186 \end_inset
187
188 features
189 \begin_inset Quotes erd
190 \end_inset
191
192
193 \end_layout
194
195 \end_inset
196
197  you'll want to learn about.
198  Even if you don't feel like reading the rest of the 
199 \emph on
200 Tutorial
201 \emph default
202 , you should definitely check out Section\InsetSpace ~
203
204 \begin_inset LatexCommand ref
205 reference "sec:latexusers"
206
207 \end_inset
208
209 , which is specifically written for experienced LaTeX users.
210 \end_layout
211
212 \begin_layout Subsection
213 What You 
214 \emph on
215 Won't
216 \emph default
217  Find:
218 \end_layout
219
220 \begin_layout Itemize
221 Detailed explanations of all of LyX's features.
222 \end_layout
223
224 \begin_deeper
225 \begin_layout Standard
226 What, you want the 
227 \emph on
228 User's Guide
229 \emph default
230  twice?
231 \end_layout
232
233 \begin_layout Standard
234 Seriously, though, we're here to get you up and running so that all you
235  need is the 
236 \emph on
237 User's Guide
238 \emph default
239 .
240  If we tried to duplicate all of the information about all of LyX's features
241  in here, the 
242 \emph on
243 Tutorial
244 \emph default
245  would be redundant, too long, and forever out of date.
246  All we do here is introduce things; imagine there is a 
247 \begin_inset Quotes eld
248 \end_inset
249
250 see the 
251 \emph on
252 User's Guide
253 \emph default
254
255 \begin_inset Quotes erd
256 \end_inset
257
258  at the end of every section.
259 \end_layout
260
261 \end_deeper
262 \begin_layout Itemize
263 Detailed explanations of LaTeX.
264 \end_layout
265
266 \begin_deeper
267 \begin_layout Standard
268 Unnecessary.
269  If you're really curious about learning some of the neat tricks you can
270  do with LaTeX, you can always go get a LaTeX book.
271  There are several good ones on the market.
272  No need to reinvent the wheel, after all\SpecialChar \ldots{}
273
274 \end_layout
275
276 \end_deeper
277 \begin_layout Standard
278 So, brave soul, it's time to move onwards.
279  Time for your first document \SpecialChar \ldots{}
280
281 \end_layout
282
283 \begin_layout Chapter
284 Getting Started with LyX
285 \end_layout
286
287 \begin_layout Section
288 Your First LyX Document
289 \end_layout
290
291 \begin_layout Standard
292 \begin_inset LatexCommand label
293 name "sec:first-doc-ex"
294
295 \end_inset
296
297  OK\SpecialChar \@.
298  You're ready to start writing.
299  Before you do, though, there are a few things we need to mention, which
300  will hopefully make the 
301 \emph on
302 Tutorial
303 \emph default
304  more instructive, useful, and fun.
305  
306 \end_layout
307
308 \begin_layout Standard
309 Because there's lots of information that we won't be giving you, the 
310 \emph on
311 first
312 \emph default
313  
314 \series medium
315 thing that you need to do is find the
316 \series default
317  other 
318 \series medium
319 help files.
320  Luckily, this is very simple.
321
322 \series default
323  Start up LyX.
324  Choose the 
325 \emph on
326 User's Guide
327 \emph default
328  from the 
329 \family sans
330 \bar under
331 H
332 \bar default
333 elp
334 \family default
335  menu.
336  You may want to load the 
337 \emph on
338 Tutorial
339 \emph default
340  as well (if you're not reading it on screen already).
341  This way, you can read them while you're writing your own file
342 \begin_inset Foot
343 status collapsed
344
345 \begin_layout Standard
346 They can also serve as good examples of how to use the many features of
347  LyX.
348 \end_layout
349
350 \end_inset
351
352 .
353  Note that once you've got more than one document open, you can use the
354  
355 \family sans
356 \bar under
357 V
358 \bar default
359 iew
360 \family default
361  menu or the document tabs to switch between them.
362  The 
363 \emph on
364 Tutorial
365 \emph default
366  will not cover in detail subjects which are described in the other LyX
367  manuals.
368  This may make life a bit harder for you at the beginning, but it will keep
369  the 
370 \emph on
371 Tutorial
372 \emph default
373  short.
374  It will also get you in the habit of using the other manuals, which ---
375  in the long run --- will save you a lot of time.
376 \end_layout
377
378 \begin_layout Standard
379 In this 
380 \emph on
381 Tutorial
382 \emph default
383 , we're going to assume that you have a fully working version of LyX, as
384  well as LaTeX, 
385 \family typewriter
386 xdvi
387 \family default
388  or some other dvi viewer, 
389 \family typewriter
390 dvips
391 \family default
392  or some other way of converting 
393 \family typewriter
394 dvi
395 \family default
396  documents to PostScript® documents, and a working printer.
397  This is a lot to assume.
398  If any of this is not true, you (or a friendly system administrator) will
399  need to set up your system.
400  You can find information on setup in other manuals.
401 \end_layout
402
403 \begin_layout Standard
404 Finally, we've written a file to let you practice your LyX skills on.
405  It's called 
406 \family typewriter
407 example_raw.lyx
408 \family default
409 .
410  Imagine that it was typed by someone who didn't know about any of LyX's
411  great features.
412  As you learn new LyX functions, we'll suggest that you fix those parts
413  of 
414 \family typewriter
415 example_raw.lyx
416 \family default
417 .
418  It also contains 
419 \begin_inset Quotes eld
420 \end_inset
421
422 subtle
423 \begin_inset Quotes erd
424 \end_inset
425
426  hints about how to fix things
427 \begin_inset Foot
428 status collapsed
429
430 \begin_layout Standard
431 The hints are located in yellow 
432 \begin_inset Quotes eld
433 \end_inset
434
435 Notes
436 \begin_inset Quotes erd
437 \end_inset
438
439 .
440  Access the text in a note by clicking on it.
441 \end_layout
442
443 \end_inset
444
445 .
446  If you want to cheat (or check what you've done), there's also a file called
447  
448 \family typewriter
449 example_lyxified.lyx
450 \family default
451  which contains the same text as written and typeset by a LyX master.
452 \end_layout
453
454 \begin_layout Standard
455 The example files can be found in the 
456 \family typewriter
457 examples/
458 \family default
459  directory, which you can get to by selecting 
460 \family sans
461 \bar under
462 F
463 \bar default
464 ile\SpecialChar \menuseparator
465
466 \bar under
467 O
468 \bar default
469 pen
470 \family default
471  and then clicking on the 
472 \family sans
473 \bar under
474 E
475 \bar default
476 xamples
477 \family default
478  button.
479  Open the raw document, and use 
480 \family sans
481 \bar under
482 F
483 \bar default
484 ile\SpecialChar \menuseparator
485 Save
486 \bar under
487 \InsetSpace ~
488 A
489 \bar default
490 s
491 \family default
492  to save a copy in your own directory for you to work on.
493  As you fix parts of the raw document, check to see how those changes affect
494  the dvi output.
495 \end_layout
496
497 \begin_layout Standard
498 By the way, the 
499 \family typewriter
500 examples/
501 \family default
502  directory contains lots of other examples files.
503  They will show you how to do various fancy things with LyX.
504  They are especially useful to display things that (due to length or other
505  reasons) won't fit in the documentation.
506  After you read the 
507 \emph on
508 Tutorial
509 \emph default
510 , or when you're confused about how to do something fancy in LyX, take a
511  look at these files.
512 \end_layout
513
514 \begin_layout Subsection
515 Typing, Viewing, and Printing
516 \end_layout
517
518 \begin_layout Itemize
519 Open a new file with 
520 \family sans
521 \bar under
522 F
523 \bar default
524 ile\SpecialChar \menuseparator
525
526 \bar under
527 N
528 \bar default
529 ew
530 \end_layout
531
532 \begin_layout Itemize
533 Type a sentence like: 
534 \family typewriter
535 This is my first LyX document!
536 \end_layout
537
538 \begin_layout Itemize
539 Save your document with 
540 \family sans
541 \bar under
542 F
543 \bar default
544 ile\SpecialChar \menuseparator
545 Save\InsetSpace ~
546
547 \bar under
548 A
549 \bar default
550 s\SpecialChar \@.
551
552 \end_layout
553
554 \begin_layout Itemize
555 Run LaTeX to create a 
556 \family typewriter
557 dvi
558 \family default
559  file, with 
560 \family sans
561 \bar under
562 V
563 \bar default
564 iew\SpecialChar \menuseparator
565
566 \bar under
567 D
568 \bar default
569 VI
570 \family default
571 \SpecialChar \@.
572  You may see things being printed in the window you ran the 
573 \family typewriter
574 lyx
575 \family default
576  command from.
577  These are messages from LaTeX, which you can ignore for now.
578  LyX will run 
579 \family typewriter
580 xdvi
581 \family default
582  (or some other 
583 \family typewriter
584 dvi
585 \family default
586  viewer), which will pop up a new window displaying what your document will
587  look like when printed.
588 \begin_inset Foot
589 status collapsed
590
591 \begin_layout Standard
592 You can save time by leaving 
593 \family typewriter
594 xdvi
595 \family default
596  running in the background.
597  Then, you can use 
598 \family sans
599 \bar under
600 V
601 \bar default
602 iew\SpecialChar \menuseparator
603
604 \bar under
605 U
606 \bar default
607 pdate\SpecialChar \menuseparator
608
609 \bar under
610 D
611 \bar default
612 VI
613 \family default
614  and just click on the 
615 \family typewriter
616 xdvi
617 \family default
618  window (or unminimize it) after LaTeX finishes running.
619 \end_layout
620
621 \end_inset
622
623
624 \end_layout
625
626 \begin_layout Itemize
627 Print by using 
628 \family sans
629 \bar under
630 F
631 \bar default
632 ile\SpecialChar \menuseparator
633
634 \bar under
635 P
636 \bar default
637 rint
638 \family default
639  and hitting 
640 \family sans
641 OK\SpecialChar \@.
642
643 \end_layout
644
645 \begin_layout Standard
646 Congratulations! You've written and printed your first LyX document.
647  All of the rest is just details, which is covered in the rest of the 
648 \emph on
649 Tutorial
650 \emph default
651 , the 
652 \emph on
653 User's Guide
654 \emph default
655 , and the 
656 \emph on
657 Extended
658 \emph default
659  
660 \emph on
661 Features
662 \emph default
663 .
664 \end_layout
665
666 \begin_layout Subsection
667 Simple Operations
668 \end_layout
669
670 \begin_layout Standard
671 LyX can of course do most of the things you're used to doing with a word
672  processor.
673  It will word-wrap and indent paragraphs automatically.
674  Here's a quick description of how to do some simple actions.
675 \end_layout
676
677 \begin_layout Description
678 Undo LyX has multiple levels of undo, which means you can undo everything
679  you've done since your current editing session started, by selecting 
680 \family sans
681 \bar under
682 E
683 \bar default
684 dit\SpecialChar \menuseparator
685
686 \bar under
687 U
688 \bar default
689 ndo
690 \family default
691  over and over again.
692  If you undo too much, just select 
693 \family sans
694 \bar under
695 E
696 \bar default
697 dit\SpecialChar \menuseparator
698
699 \bar under
700 R
701 \bar default
702 edo
703 \family default
704  to get it back.
705  
706 \end_layout
707
708 \begin_deeper
709 \begin_layout Standard
710 Currently, undo is limited to 100 steps.
711  Undo also doesn't work for 
712 \emph on
713 everything
714 \emph default
715 ; for instance, changes to the document layout.
716  Each of these is really a LyX bug.
717 \end_layout
718
719 \end_deeper
720 \begin_layout Description
721 Cut/Paste/Copy Use 
722 \family sans
723 \bar under
724 E
725 \bar default
726 dit\SpecialChar \menuseparator
727 Cut
728 \family default
729
730 \family sans
731 \bar under
732 E
733 \bar default
734 dit\SpecialChar \menuseparator
735 Copy
736 \family default
737 , and 
738 \family sans
739 \bar under
740 E
741 \bar default
742 dit\SpecialChar \menuseparator
743 Paste
744 \family default
745  to cut, copy, and paste.
746  Or automatically paste selected text (including selections from other programs)
747  with the 
748 \emph on
749 middle mouse button
750 \emph default
751 .
752 \end_layout
753
754 \begin_layout Description
755 Find/Replace Use 
756 \family sans
757 \bar under
758 E
759 \bar default
760 dit\SpecialChar \menuseparator
761
762 \bar under
763 F
764 \bar default
765 ind\InsetSpace ~
766 &\InsetSpace ~
767 Replace
768 \family default
769  for a search.
770  In the dialog, search with the 
771 \family sans
772 \bar under
773 F
774 \bar default
775 ind
776 \family default
777  button, and use the 
778 \family sans
779 \bar under
780 R
781 \bar default
782 eplace
783 \family default
784  button to replace a word you've found
785 \begin_inset Foot
786 status collapsed
787
788 \begin_layout Standard
789 Close the window when you're done.
790  Or leave it open if you find it more convenient.
791  Most dialog boxes in LyX --- including the 
792 \family sans
793 Find\InsetSpace ~
794 &\InsetSpace ~
795 Replace
796 \family default
797
798 \family sans
799 Table\InsetSpace ~
800 of\InsetSpace ~
801 Contents
802 \family default
803 , and 
804 \family sans
805 Layout
806 \family default
807  dialogs, as well as the various math dialogs can operate like this.
808  A few dialogs, like 
809 \family sans
810 \bar under
811 F
812 \bar default
813 ile\SpecialChar \menuseparator
814
815 \bar under
816 O
817 \bar default
818 pen
819 \family default
820 , won't let you type anything in the main LyX window until you actually
821  close the dialog.
822  Just be sure you have the right window focus when you're trying to type
823  in the main LyX window or give a command in some other LyX dialog.
824 \end_layout
825
826 \end_inset
827
828 .
829  If you like, you can specify whether to make the search case-sensitive,
830  or to search for only complete words; you can also search backwards through
831  the document.
832 \end_layout
833
834 \begin_layout Description
835 Character\InsetSpace ~
836 Formatting You can 
837 \emph on
838 emphasize
839 \emph default
840  text (which will generally put characters in italics), put it in 
841 \series bold
842 bold face
843 \series default
844 , or in 
845 \noun on
846 Noun Style
847 \noun default
848  (usually small caps, used for people's names) from the toggle buttons in
849  the 
850 \family sans
851 \bar under
852 E
853 \bar default
854 dit\SpecialChar \menuseparator
855 Text\InsetSpace ~
856
857 \bar under
858 S
859 \bar default
860 tyle
861 \family default
862  dialog.
863 \end_layout
864
865 \begin_layout Description
866 Toolbar There are buttons on the toolbar (just below the menus) which allow
867  you to do some of the more popular functions, such as 
868 \family sans
869 Paste
870 \family default
871  and 
872 \family sans
873 Print
874 \family default
875 .
876 \end_layout
877
878 \begin_layout Standard
879 Of course, you haven't yet written enough to make most of these functions
880  useful.
881  As you write more, though, try undoing, pasting, etc.
882 \end_layout
883
884 \begin_layout Subsection
885 WYSIWYM: Whitespace in LyX
886 \end_layout
887
888 \begin_layout Standard
889 \begin_inset LatexCommand label
890 name "sec:whitespace"
891
892 \end_inset
893
894 One of the hardest things for new users to get used to is the way that LyX
895  handles whitespace.
896  As many times as you hit 
897 \family sans
898 Return
899 \family default
900 , you'll only get one blank line.
901  As many times as you hit 
902 \family sans
903 Space
904 \family default
905 , you'll only get one space.
906  On a blank line, LyX won't let you type even one space.
907  The 
908 \family sans
909 Tab
910 \family default
911  key won't move you forward one tab stop; in fact there 
912 \emph on
913 are
914 \emph default
915  no tab stops! There's no ruler at the top of the page to let you set tabs
916  or margins, either.
917 \end_layout
918
919 \begin_layout Standard
920 Many commercial word processors are based on the WYSIWYG principle: 
921 \begin_inset Quotes eld
922 \end_inset
923
924 What You See Is What You Get.
925 \begin_inset Quotes erd
926 \end_inset
927
928  LyX, on the other hand, is based on the principle that 
929 \begin_inset Quotes eld
930 \end_inset
931
932 What You See Is What You 
933 \emph on
934 Mean
935 \emph default
936 .
937 \begin_inset Quotes erd
938 \end_inset
939
940  You type what you mean, and LyX will take care of typesetting it for you,
941  so that the output looks nice.
942  A 
943 \family sans
944 Return
945 \family default
946  grammatically separates paragraphs, and a 
947 \family sans
948 Space
949 \family default
950  grammatically separates words, so there is no reason to have several of
951  them in a row; a 
952 \family sans
953 Tab
954 \family default
955  has no grammatical function at all, so LyX does not support it.
956  Using LyX, you'll spend more of your time worrying about the 
957 \emph on
958 content
959 \emph default
960  of your document, and less time worrying about the 
961 \emph on
962 format.
963
964 \emph default
965  See the 
966 \emph on
967 Introduction
968 \emph default
969  for more information on the WYSIWYM concept.
970 \end_layout
971
972 \begin_layout Standard
973 LyX does have (many) ways to fine-tune the formatting of your document.
974  After all, LyX might not typeset 
975 \emph on
976 exactly
977 \emph default
978  what you mean.
979  The 
980 \emph on
981 User's Guide
982 \emph default
983  has information about all that.
984  It includes 
985 \family sans
986 HFill
987 \family default
988 s and vertical space --- which are more powerful and versatile than multiple
989  spaces or blank lines --- and ways to change font sizes, character styles,
990  and paragraph alignments by hand.
991  The idea, though, is that you can write your whole document, focusing on
992  content, and just worry about that fine-tuning at the end.
993  With standard word processors, you'll be distracted by document formatting
994  throughout the writing process.
995 \end_layout
996
997 \begin_layout Section
998 Environments
999 \end_layout
1000
1001 \begin_layout Standard
1002 Different parts of a document have different purposes; we call these parts
1003  
1004 \emph on
1005 environments
1006 \emph default
1007 .
1008  Most of a document is made up of regular text.
1009  Section (chapter, subsection, etc.) titles let the reader know that a new
1010  topic or subtopic will be discussed.
1011  Certain types of documents have special environments.
1012  A journal article will have an abstract, and a title.
1013  A letter will have neither of these, but will probably have an environment
1014  that gives the writer's address.
1015 \end_layout
1016
1017 \begin_layout Standard
1018 Environments are a major part of the 
1019 \begin_inset Quotes eld
1020 \end_inset
1021
1022 What You See Is What You Mean
1023 \begin_inset Quotes erd
1024 \end_inset
1025
1026  philosophy of LyX.
1027  A given environment may require a certain font style, font size, indenting,
1028  line spacing, and more.
1029  This problem is aggravated, because the exact formatting for a given environmen
1030 t may change: one journal may use boldface, 18 point, centered type for
1031  section titles while another uses italicized, 15 point, left justified
1032  type; different languages may have different standards for indenting; and
1033  bibliography formats can vary widely.
1034  LyX lets you avoid learning all the different formatting styles.
1035 \end_layout
1036
1037 \begin_layout Standard
1038 The 
1039 \family sans
1040 Environment
1041 \family default
1042  box is located on the left end of the toolbar (just under the 
1043 \family sans
1044 \bar under
1045 F
1046 \bar default
1047 ile
1048 \family default
1049  menu).
1050  It indicates which environment you're currently writing in.
1051  While you were writing your first document, it said 
1052 \begin_inset Quotes eld
1053 \end_inset
1054
1055 Standard,
1056 \begin_inset Quotes erd
1057 \end_inset
1058
1059  which is the default environment for text.
1060  Now you will put a number of environments in your new document so that
1061  you can see how they work.
1062  You'll do so with the 
1063 \family sans
1064 Environment
1065 \family default
1066  menu, which you open by clicking on the 
1067 \begin_inset Quotes eld
1068 \end_inset
1069
1070 down arrow
1071 \begin_inset Quotes erd
1072 \end_inset
1073
1074  icon just to the right of the 
1075 \family sans
1076 Environment
1077 \family default
1078  box.
1079 \end_layout
1080
1081 \begin_layout Subsection
1082 Sections and Subsections
1083 \end_layout
1084
1085 \begin_layout Standard
1086 Type the word 
1087 \family typewriter
1088 Introduction
1089 \family default
1090  on the first line of your LyX file, and select 
1091 \family sans
1092 Section
1093 \family default
1094  from the 
1095 \family sans
1096 Environment
1097 \family default
1098  menu
1099 \begin_inset Foot
1100 status collapsed
1101
1102 \begin_layout Standard
1103 You don't have to 
1104 \emph on
1105 select
1106 \emph default
1107  the line.
1108  If nothing is selected, LyX changes the paragraph you are currently in
1109  to the selected environment.
1110  Alternatively, you can change several paragraphs to a different environment
1111  by selecting them before picking an environment.
1112 \end_layout
1113
1114 \end_inset
1115
1116 .
1117  Be sure to use 
1118 \family sans
1119 Section
1120 \family default
1121  and 
1122 \emph on
1123 not
1124 \emph default
1125  
1126 \family sans
1127 Section*
1128 \family default
1129 , which will be covered below.
1130  LyX numbers the section 
1131 \begin_inset Quotes eld
1132 \end_inset
1133
1134 1
1135 \begin_inset Quotes erd
1136 \end_inset
1137
1138  and typesets the section heading (title) in a larger font.
1139  Now hit 
1140 \family sans
1141 Return
1142 \family default
1143 \SpecialChar \@.
1144  Note that the 
1145 \family sans
1146 Environment
1147 \family default
1148  box changes from 
1149 \begin_inset Quotes eld
1150 \end_inset
1151
1152 Section
1153 \begin_inset Quotes erd
1154 \end_inset
1155
1156  back to 
1157 \begin_inset Quotes eld
1158 \end_inset
1159
1160 Standard
1161 \begin_inset Quotes erd
1162 \end_inset
1163
1164 .
1165  Section headings, like most environments, are assumed to end when you type
1166  
1167 \family sans
1168 Return
1169 \family default
1170 \SpecialChar \@.
1171  Type the document introduction: 
1172 \end_layout
1173
1174 \begin_layout LyX-Code
1175 This is an introduction to my first LyX document.
1176 \end_layout
1177
1178 \begin_layout Standard
1179 Hit 
1180 \family sans
1181 Return
1182 \family default
1183  again, and select 
1184 \family sans
1185 Section
1186 \family default
1187  from the 
1188 \family sans
1189 Environment
1190 \family default
1191  menu again.
1192  LyX writes a 
1193 \begin_inset Quotes eld
1194 \end_inset
1195
1196 2
1197 \begin_inset Quotes erd
1198 \end_inset
1199
1200  and waits for you to type a title.
1201  Type 
1202 \family typewriter
1203 More Stuff
1204 \family default
1205 , and you'll see that LyX again sets it as a section title.
1206 \end_layout
1207
1208 \begin_layout Standard
1209 It gets better.
1210  Go to the end of Section\InsetSpace ~
1211 1 again (after 
1212 \begin_inset Quotes eld
1213 \end_inset
1214
1215 my first LyX document
1216 \begin_inset Quotes erd
1217 \end_inset
1218
1219 ) and hit 
1220 \family sans
1221 Return
1222 \family default
1223  again, and select 
1224 \family sans
1225 Section
1226 \family default
1227  from the 
1228 \family sans
1229 Environment
1230 \family default
1231  menu again.
1232  Again, LyX writes 
1233 \begin_inset Quotes eld
1234 \end_inset
1235
1236 2
1237 \begin_inset Quotes erd
1238 \end_inset
1239
1240  and waits for you to type a title.
1241  Type 
1242 \family typewriter
1243 About This Document
1244 \family default
1245 .
1246  Section\InsetSpace ~
1247
1248 \begin_inset Quotes eld
1249 \end_inset
1250
1251 More Stuff
1252 \begin_inset Quotes erd
1253 \end_inset
1254
1255 , which used to be Section\InsetSpace ~
1256 2, has been automatically renumbered to Section\InsetSpace ~
1257 3!
1258  In true WYSIWYM fashion, you just need to identify the text that makes
1259  up the section titles, and LyX takes care of numbering the sections and
1260  typesetting them.
1261 \end_layout
1262
1263 \begin_layout Standard
1264 Hit 
1265 \family sans
1266 Return
1267 \family default
1268  to get back to the 
1269 \family sans
1270 Standard
1271 \family default
1272  environment, and type the following five lines:
1273 \end_layout
1274
1275 \begin_layout LyX-Code
1276 Sections and subsections are described below.
1277 \end_layout
1278
1279 \begin_layout LyX-Code
1280 Section Description
1281 \end_layout
1282
1283 \begin_layout LyX-Code
1284 Sections are bigger than subsections.
1285 \end_layout
1286
1287 \begin_layout LyX-Code
1288 Subsection description
1289 \end_layout
1290
1291 \begin_layout LyX-Code
1292 Subsections are smaller than sections.
1293 \end_layout
1294
1295 \begin_layout Standard
1296 Click on the second line and select 
1297 \family sans
1298 Subsection
1299 \family default
1300  from the 
1301 \family sans
1302 Environment
1303 \family default
1304  menu.
1305  LyX numbers the subsection 
1306 \begin_inset Quotes eld
1307 \end_inset
1308
1309 2.1
1310 \begin_inset Quotes erd
1311 \end_inset
1312
1313 , and typesets it in a font which is bigger than regular text but smaller
1314  than the section title.
1315  Change the fourth line 
1316 \family sans
1317 Subsection
1318 \family default
1319  environment as well.
1320  As you probably expected, LyX automatically numbered the section 
1321 \begin_inset Quotes eld
1322 \end_inset
1323
1324 2.2
1325 \begin_inset Quotes erd
1326 \end_inset
1327
1328 .
1329  If you put yet another section before Section\InsetSpace ~
1330 2, Section\InsetSpace ~
1331 2 will be renumbered
1332  as Section 3, and the subsections will be renumbered to 
1333 \begin_inset Quotes eld
1334 \end_inset
1335
1336 3.1
1337 \begin_inset Quotes erd
1338 \end_inset
1339
1340  and 
1341 \begin_inset Quotes eld
1342 \end_inset
1343
1344 3.2
1345 \begin_inset Quotes erd
1346 \end_inset
1347
1348 .
1349  
1350 \end_layout
1351
1352 \begin_layout Standard
1353 Further levels of sectioning include 
1354 \family sans
1355 Subsubsection
1356 \family default
1357
1358 \family sans
1359 Paragraph
1360 \family default
1361 , and 
1362 \family sans
1363 Subparagraph
1364 \family default
1365 .
1366  We'll let you play with these on your own.
1367  You may notice that paragraph and subparagraph headings are not numbered
1368  by default, and that subparagraphs are indented; see the 
1369 \emph on
1370 User's Guide
1371 \emph default
1372  to change this.
1373  
1374 \family sans
1375 Chapter
1376 \family default
1377  headings are actually the highest level of sectioning, above 
1378 \family sans
1379 Section
1380 \family default
1381 s, but you're only allowed to use them in certain types (text classes) of
1382  LyX documents (see Section\InsetSpace ~
1383
1384 \begin_inset LatexCommand ref
1385 reference "sec:textclasses"
1386
1387 \end_inset
1388
1389 ).
1390  
1391 \end_layout
1392
1393 \begin_layout Standard
1394 Finally, you may want to have sections or subsections that are not numbered.
1395  There are environments for this as well.
1396  If you change one of your section headings to the 
1397 \family sans
1398 Section*
1399 \family default
1400  environment (you may have to scroll down in the 
1401 \family sans
1402 Environment
1403 \family default
1404  menu to find it), LyX will use the same font size for the heading as it
1405  uses for a regular section, but it won't number that section.
1406  There are corresponding 
1407 \begin_inset Quotes eld
1408 \end_inset
1409
1410 starred
1411 \begin_inset Quotes erd
1412 \end_inset
1413
1414  heading environments for 
1415 \family sans
1416 Subsection
1417 \family default
1418  and 
1419 \family sans
1420 Subsubsection
1421 \family default
1422 .
1423  Try changing some of your sections or subsections to the starred environments,
1424  and note how the other sections' numbers are updated.
1425 \end_layout
1426
1427 \begin_layout Standard
1428
1429 \series bold
1430 Exercise
1431 \series default
1432 : Fix the section and subsection headings in 
1433 \family typewriter
1434 example_raw.lyx
1435 \family default
1436 .
1437  
1438 \end_layout
1439
1440 \begin_layout Subsection
1441 Lists and sublists
1442 \end_layout
1443
1444 \begin_layout Standard
1445 LyX has several different environments for typesetting lists.
1446  The various list environments free you from hitting 
1447 \family sans
1448 Tab
1449 \family default
1450  a million times when writing an outline, or from renumbering a whole list
1451  when you want to add a point in the middle of the list, and lets you concentrat
1452 e on the list content.
1453 \begin_inset Foot
1454 status collapsed
1455
1456 \begin_layout Standard
1457 Yes, we're overemphasizing this point throughout the 
1458 \emph on
1459 Tutorial
1460 \emph default
1461 .
1462  But it 
1463 \emph on
1464 is
1465 \emph default
1466  the main philosophy of LyX, so please forgive us.
1467 \end_layout
1468
1469 \end_inset
1470
1471  Different types of documents logically require different list environments:
1472 \end_layout
1473
1474 \begin_layout Itemize
1475 A slide presentation might use the 
1476 \family sans
1477 Itemize
1478 \family default
1479  environment's bulleted lists to describe different points.
1480  
1481 \end_layout
1482
1483 \begin_layout Itemize
1484 An outline would use the 
1485 \family sans
1486 Enumerate
1487 \family default
1488  environment's numbered lists (and lettered sublists).
1489  
1490 \end_layout
1491
1492 \begin_layout Itemize
1493 A document describing several software packages could use the 
1494 \family sans
1495 Description
1496 \family default
1497  environment, where each item in the list begins with a bold-faced word.
1498  
1499 \end_layout
1500
1501 \begin_layout Itemize
1502 The 
1503 \family sans
1504 List
1505 \family default
1506  environment --- not found in LaTeX --- is a slightly different form of
1507  
1508 \family sans
1509 Description
1510 \family default
1511 .
1512 \end_layout
1513
1514 \begin_layout Standard
1515 Let's write a list of reasons why LyX is better than other word processors.
1516  Somewhere in your document, type:
1517 \end_layout
1518
1519 \begin_layout Standard
1520
1521 \family typewriter
1522 Lyx is better than other word processors because: 
1523 \end_layout
1524
1525 \begin_layout Standard
1526 and hit 
1527 \family sans
1528 Return
1529 \family default
1530 .
1531  Now select 
1532 \family sans
1533 Itemize
1534 \family default
1535  from the 
1536 \family sans
1537 Environment
1538 \family default
1539  menu.
1540  LyX writes a 
1541 \begin_inset Quotes eld
1542 \end_inset
1543
1544 bullet
1545 \begin_inset Quotes erd
1546 \end_inset
1547
1548  (actually, an asterisk, which will be converted to a round circle on output)
1549  on the line.
1550  Type in your reasons: 
1551 \end_layout
1552
1553 \begin_layout LyX-Code
1554 Typesetting is done for you.
1555 \end_layout
1556
1557 \begin_layout LyX-Code
1558 Math is WYSIWYG
1559 \end_layout
1560
1561 \begin_layout LyX-Code
1562 Lists are very easy to create!
1563 \end_layout
1564
1565 \begin_layout Standard
1566 List environments, unlike headings, do not end when you type 
1567 \family sans
1568 Return
1569 \family default
1570 .
1571  Instead, LyX assumes you're going on to the next item in the list.
1572  The above will therefore result in a three-item list.
1573  If you want more than one paragraph within one list 
1574 \emph on
1575 item
1576 \emph default
1577 , one way is to use the 
1578 \family sans
1579 Protected\InsetSpace ~
1580 Break
1581 \family default
1582 , which you get by typing 
1583 \family sans
1584 C-Return
1585 \family default
1586 .
1587  In order to get out of the list, you need to reselect the 
1588 \family sans
1589 Standard
1590 \family default
1591  environment (or just use the keybinding, 
1592 \family sans
1593 M-p\InsetSpace ~
1594 s
1595 \family default
1596 ).
1597 \end_layout
1598
1599 \begin_layout Standard
1600 You've got a beautiful itemized list.
1601  You might want to run LaTeX to see how the list looks when printed out.
1602  But what if you wanted to number the reasons? Well, just select the whole
1603  list
1604 \begin_inset Foot
1605 status collapsed
1606
1607 \begin_layout Standard
1608 LyX won't let you select the first bullet unless you also select the paragraph
1609  
1610 \emph on
1611 before
1612 \emph default
1613  the list, which you probably don't want to do.
1614  Similarly, you can't select the actual number in a numbered section title.
1615  Don't worry about it.
1616 \end_layout
1617
1618 \end_inset
1619
1620  and choose 
1621 \family sans
1622 Enumerate
1623 \family default
1624  from the 
1625 \family sans
1626 Environment
1627 \family default
1628  menu.
1629  Pow! As we mentioned, if you add or delete a list item, LyX will fix the
1630  numbering.
1631 \end_layout
1632
1633 \begin_layout Standard
1634 While the list is still selected, you can change to the other two list environme
1635 nts, 
1636 \family sans
1637 Description
1638 \family default
1639  and 
1640 \family sans
1641 List
1642 \family default
1643 , in order to see what they look like.
1644  For those two environments, each list item is made up of a term, which
1645  is the item's first word, followed by a definition, which is the rest of
1646  the paragraph (until you hit 
1647 \family sans
1648 Return
1649 \family default
1650 .) The term is either typeset in boldface (
1651 \family sans
1652 Description
1653 \family default
1654 ) or separated by a 
1655 \begin_inset Quotes eld
1656 \end_inset
1657
1658 Tab
1659 \begin_inset Quotes erd
1660 \end_inset
1661
1662
1663 \begin_inset Foot
1664 status collapsed
1665
1666 \begin_layout Standard
1667 But a typesetter's tab, which will change to fit the size of the largest
1668  term, not a pathetic, rigid, unchangeable typewriter 
1669 \family sans
1670 Tab
1671 \family default
1672 .
1673 \end_layout
1674
1675 \end_inset
1676
1677  (
1678 \family sans
1679 List
1680 \family default
1681 ) from the rest of the paragraph.
1682  If you want to have more than one word in the definition, then separate
1683  the words with 
1684 \family sans
1685 Protected\InsetSpace ~
1686 Blank
1687 \family default
1688 s.
1689 \end_layout
1690
1691 \begin_layout Standard
1692
1693 \series bold
1694 Exercise
1695 \series default
1696 : Typeset the list in 
1697 \family typewriter
1698 example_raw.lyx
1699 \end_layout
1700
1701 \begin_layout Standard
1702 You can nest lists within each other in all sorts of interesting ways.
1703  An obvious example would be writing outlines.
1704  Numbered and bulleted lists will have different numbering and bulleting
1705  schemes for sublists.
1706  See the 
1707 \emph on
1708 User's Guide
1709 \emph default
1710  for details on the different sorts of lists, as well as examples which
1711  use 
1712 \emph on
1713 a lot
1714 \emph default
1715  of nesting.
1716 \end_layout
1717
1718 \begin_layout Subsection
1719 Other Environments: Verses, Quotations, and More
1720 \end_layout
1721
1722 \begin_layout Standard
1723 There are two environments for setting quotations apart from surrounding
1724  text: 
1725 \family sans
1726 Quote
1727 \family default
1728  for short quotes and 
1729 \family sans
1730 Quotation
1731 \family default
1732  for longer ones.
1733  Computer code (the 
1734 \family sans
1735 LyX-Code
1736 \family default
1737  environment, also used in the 
1738 \emph on
1739 Tutorial
1740 \emph default
1741  for the long typing examples) is written in a 
1742 \family typewriter
1743 typewriter
1744 \family default
1745  font; this environment is the only place in LyX where you're allowed to
1746  use multiple spaces to allow code indenting.
1747  You can even write poetry using the 
1748 \family sans
1749 Verse
1750 \family default
1751  style, using 
1752 \family sans
1753 Return
1754 \family default
1755  to separate stanzas, and 
1756 \family sans
1757 C-Return
1758 \family default
1759  to separate lines within a stanza.
1760  See the 
1761 \emph on
1762 User's Guide
1763 \emph default
1764  for more complete descriptions of all of the available LyX environments.
1765 \end_layout
1766
1767 \begin_layout Standard
1768
1769 \series bold
1770 Exercise
1771 \series default
1772 : Correctly typeset the 
1773 \family sans
1774 Quote, LyX-Code,
1775 \family default
1776  and 
1777 \family sans
1778 Verse
1779 \family default
1780  in
1781 \begin_inset ERT
1782 status inlined
1783
1784 \begin_layout Standard
1785
1786
1787 \backslash
1788 linebreak
1789 \end_layout
1790
1791 \end_inset
1792
1793  
1794 \family typewriter
1795 example_raw.lyx
1796 \end_layout
1797
1798 \begin_layout Chapter
1799 Writing Documents
1800 \end_layout
1801
1802 \begin_layout Standard
1803 The previous chapter hopefully allowed you to get used to writing in LyX.
1804  It introduced you to the basic editing operations in LyX, as well as the
1805  powerful method of writing with environments.
1806  Most people who use LyX, though, will want to write documents: papers,
1807  articles, books, manuals, or letters.
1808  This chapter is meant to take you from simply writing text with LyX to
1809  writing a complete document.
1810  It will introduce you to text classes, which allow you to write different
1811  sorts of documents.
1812  It will then describe many of the additions that turn text into a document,
1813  such as titles, footnotes, cross references, bibliographies, and tables
1814  of contents.
1815 \end_layout
1816
1817 \begin_layout Section
1818 Text classes
1819 \end_layout
1820
1821 \begin_layout Standard
1822 \begin_inset LatexCommand label
1823 name "sec:textclasses"
1824
1825 \end_inset
1826
1827 Different sorts of documents should be typeset differently.
1828  For example, books are generally printed double-sided, while articles are
1829  single-sided.
1830  In addition, many documents contain special environments: letters contain
1831  some environments --- such as the sender's address and the signature ---
1832  which do not make sense in a book or article.
1833  The LyX 
1834 \emph on
1835 text class
1836 \begin_inset Foot
1837 status collapsed
1838
1839 \begin_layout Standard
1840 LaTeX users: this is equivalent to the LaTeX document class
1841 \end_layout
1842
1843 \end_inset
1844
1845
1846 \emph default
1847  takes care of these large scale differences between different sorts of
1848  documents.
1849  This 
1850 \emph on
1851 Tutorial
1852 \emph default
1853 , for example, was written in the 
1854 \family sans
1855 Book
1856 \family default
1857  text class.
1858  Text classes are another major part of the WYSIWYM philosophy; they tell
1859  LyX how to typeset the document, so you don't need to know how.
1860 \end_layout
1861
1862 \begin_layout Standard
1863 Your document is probably being written in the 
1864 \family sans
1865 Article
1866 \family default
1867  text class
1868 \begin_inset Foot
1869 status collapsed
1870
1871 \begin_layout Standard
1872 That's usually the default text class
1873 \end_layout
1874
1875 \end_inset
1876
1877 .
1878  Try changing to other text classes (using the 
1879 \family sans
1880 \bar under
1881 D
1882 \bar default
1883 ocument\SpecialChar \menuseparator
1884
1885 \bar under
1886 S
1887 \bar default
1888 ettings
1889 \family default
1890  dialog) to see how they are typeset differently.
1891  If you change your document to the 
1892 \family sans
1893 Book
1894 \family default
1895  text class and look at the 
1896 \family sans
1897 Environment
1898 \family default
1899  menu, you'll see that most of the allowed environments are the same.
1900  However, you can now use the 
1901 \family sans
1902 Chapter
1903 \family default
1904  environment.
1905  If you're ever unsure about which environments you can use in a given text
1906  class, just consult the 
1907 \family sans
1908 Environment
1909 \family default
1910  menu.
1911 \end_layout
1912
1913 \begin_layout Standard
1914 Font sizes, one- or two-column printing, and page headings are just some
1915  of the ways journals' typesettings differ from one another.
1916  As the Computer Age continues to mature, journals have begun accepting
1917  electronic submissions, creating LaTeX 
1918 \begin_inset Quotes eld
1919 \end_inset
1920
1921 style files
1922 \begin_inset Quotes erd
1923 \end_inset
1924
1925  so that authors can submit correctly typeset articles.
1926  LyX is set up to support this as well.
1927  For example, LyX supports typesetting (and extra environments) for the
1928  American Mathematics Society journals using the 
1929 \family sans
1930 Article\InsetSpace ~
1931 (AMS)
1932 \family default
1933  text class.
1934 \end_layout
1935
1936 \begin_layout Standard
1937 Here's a very quick reference to some of the text classes.
1938  See the 
1939 \emph on
1940 Special Document Classes
1941 \emph default
1942  section of the 
1943 \emph on
1944 Extended Features
1945 \emph default
1946  manual for many more details.
1947 \end_layout
1948
1949 \begin_layout Standard
1950 \align center
1951 \begin_inset Tabular
1952 <lyxtabular version="3" rows="7" columns="2">
1953 <features>
1954 <column alignment="center" valignment="top" leftline="true" width="0pt">
1955 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
1956 <row topline="true" bottomline="true">
1957 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1958 \begin_inset Text
1959
1960 \begin_layout Standard
1961 Name
1962 \end_layout
1963
1964 \end_inset
1965 </cell>
1966 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1967 \begin_inset Text
1968
1969 \begin_layout Standard
1970 Notes
1971 \end_layout
1972
1973 \end_inset
1974 </cell>
1975 </row>
1976 <row topline="true">
1977 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1978 \begin_inset Text
1979
1980 \begin_layout Standard
1981 article
1982 \end_layout
1983
1984 \end_inset
1985 </cell>
1986 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1987 \begin_inset Text
1988
1989 \begin_layout Standard
1990 one-sided, no chapters
1991 \end_layout
1992
1993 \end_inset
1994 </cell>
1995 </row>
1996 <row topline="true">
1997 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1998 \begin_inset Text
1999
2000 \begin_layout Standard
2001 article (AMS)
2002 \end_layout
2003
2004 \end_inset
2005 </cell>
2006 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2007 \begin_inset Text
2008
2009 \begin_layout Standard
2010 layout & environments for American Math Society
2011 \end_layout
2012
2013 \end_inset
2014 </cell>
2015 </row>
2016 <row topline="true">
2017 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2018 \begin_inset Text
2019
2020 \begin_layout Standard
2021 report
2022 \end_layout
2023
2024 \end_inset
2025 </cell>
2026 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2027 \begin_inset Text
2028
2029 \begin_layout Standard
2030 longer than article, two-sided
2031 \end_layout
2032
2033 \end_inset
2034 </cell>
2035 </row>
2036 <row topline="true" bottomline="true">
2037 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2038 \begin_inset Text
2039
2040 \begin_layout Standard
2041 book
2042 \end_layout
2043
2044 \end_inset
2045 </cell>
2046 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2047 \begin_inset Text
2048
2049 \begin_layout Standard
2050 report + front and back matter
2051 \end_layout
2052
2053 \end_inset
2054 </cell>
2055 </row>
2056 <row bottomline="true">
2057 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2058 \begin_inset Text
2059
2060 \begin_layout Standard
2061 slides
2062 \end_layout
2063
2064 \end_inset
2065 </cell>
2066 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2067 \begin_inset Text
2068
2069 \begin_layout Standard
2070 transparencies (also including FoilTeX)
2071 \end_layout
2072
2073 \end_inset
2074 </cell>
2075 </row>
2076 <row bottomline="true">
2077 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2078 \begin_inset Text
2079
2080 \begin_layout Standard
2081 letter
2082 \end_layout
2083
2084 \end_inset
2085 </cell>
2086 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2087 \begin_inset Text
2088
2089 \begin_layout Standard
2090 lots of extra environments for address, signature\SpecialChar \ldots{}
2091
2092 \end_layout
2093
2094 \end_inset
2095 </cell>
2096 </row>
2097 </lyxtabular>
2098
2099 \end_inset
2100
2101
2102 \end_layout
2103
2104 \begin_layout Section
2105 Templates: Writing a Letter
2106 \end_layout
2107
2108 \begin_layout Standard
2109 One of the most popular text classes is 
2110 \family sans
2111 Letter
2112 \family default
2113 \SpecialChar \@.
2114  One way to write a letter would be to open a new file, and choose 
2115 \family sans
2116 Letter
2117 \family default
2118  class in the 
2119 \family sans
2120 \bar under
2121 D
2122 \bar default
2123 ocument\SpecialChar \menuseparator
2124
2125 \bar under
2126 S
2127 \bar default
2128 ettings
2129 \family default
2130  dialog.
2131  While this is the most obvious way to write a letter, it seems like extra
2132  work.
2133  Every time you write a business letter, you want to have your address,
2134  the address you're sending to, a body, a signature, etc.
2135  LyX therefore has a 
2136 \emph on
2137 template
2138 \emph default
2139  for letters, which contains a sample letter; once you have a template,
2140  you can just replace a couple parts of the letter with your text each time
2141  you write a letter.
2142 \end_layout
2143
2144 \begin_layout Standard
2145 Open a new file with 
2146 \family sans
2147 \bar under
2148 F
2149 \bar default
2150 ile\SpecialChar \menuseparator
2151 New\InsetSpace ~
2152 from\InsetSpace ~
2153
2154 \bar under
2155 T
2156 \bar default
2157 emplate
2158 \family default
2159 .
2160  Select 
2161 \family typewriter
2162 letter.lyx
2163 \family default
2164  as the template.
2165  Save and print the file to see how the various environments are typeset.
2166 \end_layout
2167
2168 \begin_layout Standard
2169 When you look at the 
2170 \family sans
2171 Environment
2172 \family default
2173  menu, you'll see several environments, like the 
2174 \family sans
2175 My\InsetSpace ~
2176 Address
2177 \family default
2178  environment, which don't even exist in most other text classes.
2179  Others, like 
2180 \family sans
2181 Quote
2182 \family default
2183  and 
2184 \family sans
2185 Description
2186 \family default
2187 , are familiar.
2188  You can play around for a while to figure out how the various environments
2189  work.
2190  You'll notice for example that the 
2191 \family sans
2192 Signature
2193 \family default
2194  environment has the word 
2195 \begin_inset Quotes eld
2196 \end_inset
2197
2198 Signature:
2199 \begin_inset Quotes eld
2200 \end_inset
2201
2202  in red before the actual text of the signature.
2203  This word doesn't show up in the actual letter, as you'll see if you try
2204  printing the file.
2205  It's just there to let you know where the signature goes.
2206  Also, note that it doesn't matter where in the file the 
2207 \family sans
2208 Signature
2209 \family default
2210  line is placed.
2211  Remember, LyX is WYSIWYM; you can put the 
2212 \family sans
2213 Signature
2214 \family default
2215  environment anywhere you want, but LyX knows that in the printout, the
2216  signature should be at the end.
2217 \end_layout
2218
2219 \begin_layout Standard
2220 A template is just a regular LyX file.
2221  This means you can fill in your address and signature and save the file
2222  as a new template.
2223  From now on, any time you want to write a letter, you can use the new template
2224  to save time.
2225  We probably don't have to suggest an actual 
2226 \begin_inset Quotes eld
2227 \end_inset
2228
2229 exercise
2230 \begin_inset Quotes erd
2231 \end_inset
2232
2233  here; just write a letter to someone!
2234 \begin_inset Foot
2235 status collapsed
2236
2237 \begin_layout Standard
2238 One warning, if you're writing from a template.
2239  If you erase all of the text in an environment --- for example, if you
2240  erase the whole 
2241 \family sans
2242 My\InsetSpace ~
2243 Address
2244 \family default
2245  field so that you can replace it with your own --- and then you move the
2246  cursor without writing any text, the environment may disappear.
2247  This is because most environments cannot exist without any text in them.
2248  Just reselect the environment from the 
2249 \family sans
2250 Environment
2251 \family default
2252  menu to get it back.
2253 \end_layout
2254
2255 \end_inset
2256
2257
2258 \end_layout
2259
2260 \begin_layout Standard
2261 Templates can be a huge time-saver, and we urge you to use them whenever
2262  possible.
2263  In addition, they can help a person learn how to use some of the fancier
2264  text classes.
2265  Finally, they may be useful for a person who is configuring LyX for a bunch
2266  of less computer-aware users.
2267  When they're first learning LyX, it will be much less intimidating if they
2268  have a letter template customized for their company, for example.
2269 \end_layout
2270
2271 \begin_layout Section
2272 Document Titles
2273 \end_layout
2274
2275 \begin_layout Standard
2276 LyX (like LaTeX) considers the title --- which may contain the actual title,
2277  the author, the date, and even an abstract of a paper --- to be a separate
2278  part of the document.
2279 \end_layout
2280
2281 \begin_layout Standard
2282 Go back to your 
2283 \family typewriter
2284 newfile.lyx
2285 \family default
2286  document and make sure it's using the 
2287 \family sans
2288 Article
2289 \family default
2290  text class.
2291 \begin_inset Foot
2292 status collapsed
2293
2294 \begin_layout Standard
2295 You should not be using the letter any more, since the 
2296 \family sans
2297 Letter
2298 \family default
2299  textclass doesn't allow titles.
2300 \end_layout
2301
2302 \end_inset
2303
2304  Type a title on the first line, and change the line to the 
2305 \family sans
2306 Title
2307 \family default
2308  environment.
2309  On the next line, type your name and change it to the 
2310 \family sans
2311 Author
2312 \family default
2313  environment.
2314  On the next line, write the date in the 
2315 \family sans
2316 Date
2317 \family default
2318  environment.
2319  Type a paragraph or two summarizing your document using the 
2320 \family sans
2321 Abstract
2322 \family default
2323  environment.
2324  Notice how the title is presented when it's printed out.
2325  If you changed the document format to Book, you'll get a separate title
2326  page, like the first page of this tutorial.
2327 \end_layout
2328
2329 \begin_layout Standard
2330
2331 \series bold
2332 Exercise
2333 \series default
2334 : Fix the title, date, and author in 
2335 \family typewriter
2336 example_raw.lyx
2337 \end_layout
2338
2339 \begin_layout Section
2340 Labels and Cross-References
2341 \end_layout
2342
2343 \begin_layout Standard
2344 \begin_inset LatexCommand label
2345 name "sec:labels"
2346
2347 \end_inset
2348
2349 You can label a section (or subsubsection, or, more rarely, just a random
2350  piece of text) in your document.
2351  Once you do so, you can refer to this section in other parts of the document,
2352  using cross-references.
2353  You can refer either to the section's number, or to the page that the section
2354  appears on.
2355  As with sections and footnotes, LyX worries about the cross-references
2356  for you.
2357  Automatic labels and cross-references are one of the best advantages of
2358  LyX (and LaTeX) over conventional word processors.
2359 \end_layout
2360
2361 \begin_layout Subsection*
2362 Your first label
2363 \end_layout
2364
2365 \begin_layout Standard
2366 Let's mark our second section, whose title is 
2367 \begin_inset Quotes eld
2368 \end_inset
2369
2370 About This Document
2371 \begin_inset Quotes erd
2372 \end_inset
2373
2374 .
2375  Click at the end of the section title line, and select 
2376 \family sans
2377 \bar under
2378 I
2379 \bar default
2380 nsert\SpecialChar \menuseparator
2381
2382 \bar under
2383 L
2384 \bar default
2385 abel
2386 \family default
2387 .
2388  A dialog asks you for a label name, and gives you a suggestion.
2389  When you click on 
2390 \family sans
2391 OK
2392 \family default
2393 , the label name will be placed in a box next to the section title.
2394 \end_layout
2395
2396 \begin_layout Standard
2397 By the way, you could have put the label right anywhere within the section
2398  as well; section references will refer to the last section or subsection
2399  whose heading comes before the label.
2400  However, putting it on the same line as the section title (or, perhaps,
2401  on the first line of the section's text) ensures that page references will
2402  reference the beginning of the section.
2403 \end_layout
2404
2405 \begin_layout Standard
2406 So far you haven't done anything --- the 
2407 \family typewriter
2408 dvi
2409 \family default
2410  file will look exactly the same, since labels don't show up in the printed
2411  document.
2412  However, now that you've added a label, you can refer to that label with
2413  cross-references.
2414  We'll do that next.
2415 \end_layout
2416
2417 \begin_layout Subsection*
2418 Your first cross-references
2419 \end_layout
2420
2421 \begin_layout Standard
2422 Place the cursor somewhere in Section\InsetSpace ~
2423 2 of your document.
2424  Type 
2425 \end_layout
2426
2427 \begin_layout LyX-Code
2428 If you want to know more about this document, then see 
2429 \newline
2430 Section , which can
2431  be found on page .
2432 \end_layout
2433
2434 \begin_layout Standard
2435 Now --- with the cursor after the word 
2436 \begin_inset Quotes eld
2437 \end_inset
2438
2439 section
2440 \begin_inset Quotes erd
2441 \end_inset
2442
2443  --- choose 
2444 \family sans
2445 \bar under
2446 I
2447 \bar default
2448 nsert\SpecialChar \menuseparator
2449 Cross\InsetSpace ~
2450
2451 \bar under
2452 R
2453 \bar default
2454 eference
2455 \family default
2456 .
2457  The 
2458 \family sans
2459 Reference
2460 \family default
2461  dialog pops up.
2462  It shows a list of the possible labels you can reference.
2463  At the moment, there should be only one, 
2464 \begin_inset Quotes eld
2465 \end_inset
2466
2467 sec:aboutdocument
2468 \begin_inset Quotes erd
2469 \end_inset
2470
2471 .
2472  Select it (it may be selected by default), and click 
2473 \family sans
2474 Apply
2475 \family default
2476 .
2477  Now put the cursor after the word 
2478 \begin_inset Quotes eld
2479 \end_inset
2480
2481 page
2482 \begin_inset Quotes erd
2483 \end_inset
2484
2485 , and change the reference type to use the page number then click 
2486 \family sans
2487 Apply
2488 \family default
2489 .
2490  (To be really correct, you should put a 
2491 \family sans
2492 Protected\InsetSpace ~
2493 Blank
2494 \family default
2495  in between the word 
2496 \begin_inset Quotes eld
2497 \end_inset
2498
2499 Section
2500 \begin_inset Quotes erd
2501 \end_inset
2502
2503  and the reference.
2504  Same for the page reference.)
2505 \end_layout
2506
2507 \begin_layout Standard
2508 LyX puts the references in a box right where the cursor was.
2509  In the printed document, this reference marker will be replaced with either
2510  the page or section number (depending on what you selected in the 
2511 \family sans
2512 Reference
2513 \family default
2514  dialog).
2515  Use 
2516 \family sans
2517 \bar under
2518 V
2519 \bar default
2520 iew\SpecialChar \menuseparator
2521
2522 \bar under
2523 U
2524 \bar default
2525 pdate\SpecialChar \menuseparator
2526
2527 \bar under
2528 D
2529 \bar default
2530 VI
2531 \family default
2532 , and you'll see that on the last page we refer to 
2533 \begin_inset Quotes eld
2534 \end_inset
2535
2536 Section\InsetSpace ~
2537 2
2538 \begin_inset Quotes erd
2539 \end_inset
2540
2541  and 
2542 \begin_inset Quotes eld
2543 \end_inset
2544
2545 Page\InsetSpace ~
2546 1
2547 \begin_inset Quotes erd
2548 \end_inset
2549
2550  (or whatever page Section\InsetSpace ~
2551 2's title is on).
2552 \end_layout
2553
2554 \begin_layout Standard
2555 Conveniently, a cross-reference acts as a hyperlink when you're editing
2556  a document in LyX; clicking on it will pop up the 
2557 \family sans
2558 Reference
2559 \family default
2560  dialog, clicking 
2561 \family sans
2562 Go\InsetSpace ~
2563 to\InsetSpace ~
2564 Label
2565 \family default
2566  will move the cursor to the referenced label.
2567 \end_layout
2568
2569 \begin_layout Subsection*
2570 More fun with labels
2571 \end_layout
2572
2573 \begin_layout Standard
2574 We told you that LyX worries about numbering cross-references; now you can
2575  test that.
2576  Add a new section before Section\InsetSpace ~
2577 2.
2578  Now rerun LaTeX, and --- voilà! --- the section cross reference changed
2579  to 
2580 \begin_inset Quotes eld
2581 \end_inset
2582
2583 3
2584 \begin_inset Quotes erd
2585 \end_inset
2586
2587 ! Change 
2588 \begin_inset Quotes eld
2589 \end_inset
2590
2591 About this Document
2592 \begin_inset Quotes erd
2593 \end_inset
2594
2595  to a subsection, and the cross-reference will reference Subsection\InsetSpace ~
2596 2.1 instead
2597  of Section\InsetSpace ~
2598 3.
2599  The page reference won't change unless you add a whole page of text before
2600  the label, of course.
2601  
2602 \end_layout
2603
2604 \begin_layout Standard
2605 If you want some more practice with labels, then try putting a new label
2606  where your first cross-reference was, and refer to that label from elsewhere
2607  in the document.
2608  If you'll be inserting cross-references often (if, for example, you're
2609  writing a journal article), it may be convenient to leave the 
2610 \family sans
2611 Reference
2612 \family default
2613  dialog open.
2614 \end_layout
2615
2616 \begin_layout Standard
2617 If you want to make sure that the cross-referencing gets the pages right
2618  even for larger documents, 
2619 \family sans
2620 Copy
2621 \family default
2622  a couple pages of text from the 
2623 \emph on
2624 User's Guide
2625 \emph default
2626  to the clipboard, and 
2627 \family sans
2628 Paste
2629 \family default
2630  the stolen text into your document
2631 \begin_inset Foot
2632 status collapsed
2633
2634 \begin_layout Standard
2635 By the way, copying a chapter title may cause an error, because chapters
2636  aren't allowed in the article class.
2637  If this happens, just delete the chapter title.
2638  If you want to know why this happens, see Section\InsetSpace ~
2639
2640 \begin_inset LatexCommand ref
2641 reference "sec:textclasses"
2642
2643 \end_inset
2644
2645 .
2646  
2647 \end_layout
2648
2649 \end_inset
2650
2651 .
2652 \end_layout
2653
2654 \begin_layout Standard
2655
2656 \series bold
2657 Exercise
2658 \series default
2659 : Fix the references in 
2660 \family typewriter
2661 example_raw.lyx
2662 \end_layout
2663
2664 \begin_layout Section
2665 Footnotes and Margin Notes
2666 \end_layout
2667
2668 \begin_layout Standard
2669 Footnotes can be added using the 
2670 \family sans
2671 Insert\InsetSpace ~
2672 Footnote
2673 \family default
2674  button in the toolbar
2675 \begin_inset Foot
2676 status collapsed
2677
2678 \begin_layout Standard
2679 The button shows an arrow pointing to red text, which is just below some
2680  black text.
2681 \end_layout
2682
2683 \end_inset
2684
2685  or 
2686 \family sans
2687 \bar under
2688 I
2689 \bar default
2690 nsert\SpecialChar \menuseparator
2691
2692 \bar under
2693 F
2694 \bar default
2695 ootnote
2696 \family default
2697 \SpecialChar \@.
2698  Click at the end of the word 
2699 \begin_inset Quotes eld
2700 \end_inset
2701
2702 LyX
2703 \begin_inset Quotes erd
2704 \end_inset
2705
2706  somewhere in your document and hit the 
2707 \family sans
2708 Insert\InsetSpace ~
2709 Footnote
2710 \family default
2711  button.
2712  A footnote box appears where you can enter the text of the footnote.
2713  LyX should place the cursor at the beginning of the footnote box.
2714  Type
2715 \end_layout
2716
2717 \begin_layout LyX-Code
2718 LyX is a typesetting word processor.
2719 \end_layout
2720
2721 \begin_layout Standard
2722 Now click on the button labelled 
2723 \begin_inset Quotes eld
2724 \end_inset
2725
2726 foot.
2727 \begin_inset Quotes erd
2728 \end_inset
2729
2730  The footnote box disappears, leaving the button showing where the footnote
2731  marker will be in the printed text; this is called 
2732 \begin_inset Quotes eld
2733 \end_inset
2734
2735 folding
2736 \begin_inset Quotes erd
2737 \end_inset
2738
2739  the footnote.
2740  You can unfold the footnote at any time --- and re-edit its text, if you
2741  want --- by clicking again on the 
2742 \begin_inset Quotes eld
2743 \end_inset
2744
2745 foot
2746 \begin_inset Quotes erd
2747 \end_inset
2748
2749  button.
2750 \end_layout
2751
2752 \begin_layout Standard
2753 You may wonder why the footnote button is a word instead of a number.
2754  The answer is that LyX worries about the footnote numbering for you in
2755  the printed text.
2756  You can see this yourself by looking at the 
2757 \family typewriter
2758 dvi
2759 \family default
2760  file (or printout).
2761  If you add other footnotes, LyX will renumber the footnotes.
2762  Since LyX (well, LaTeX, actually) takes care of the footnote numbering,
2763  there's really no need to put the numbers in the LyX file.
2764 \end_layout
2765
2766 \begin_layout Standard
2767 A footnote can be cut and pasted like normal text.
2768  Go ahead; try it! All you need to do is select the footnote button
2769 \begin_inset Foot
2770 status collapsed
2771
2772 \begin_layout Standard
2773 It may be easier to select it using the keyboard.
2774  You might accidentally open the footnote if you're trying to select the
2775  marker itself with the mouse.
2776 \end_layout
2777
2778 \end_inset
2779
2780  and 
2781 \family sans
2782 Cut
2783 \family default
2784  and 
2785 \family sans
2786 Paste
2787 \family default
2788  it.
2789  In addition, you can change regular text to a footnote, by selecting it
2790  and hitting the 
2791 \family sans
2792 Insert\InsetSpace ~
2793 Footnote
2794 \family default
2795  button; change a footnote to regular text by hitting the 
2796 \family sans
2797 Backspace
2798 \family default
2799  key when the cursor is in the first position of a footnote, or by hitting
2800  the 
2801 \family sans
2802 Delete
2803 \family default
2804  key when the cursor is in the very last position of the footnote, respectively.
2805 \end_layout
2806
2807 \begin_layout Standard
2808 Margin notes can be added using the toolbar button (the button shows an
2809  arrow pointing to red text next to (i.e., in the margin of) black text, and
2810  should be next to the 
2811 \family sans
2812 Insert\InsetSpace ~
2813 Footnote
2814 \family default
2815  button in the toolbar.) or 
2816 \family sans
2817 \bar under
2818 I
2819 \bar default
2820 nsert\SpecialChar \menuseparator
2821
2822 \bar under
2823 M
2824 \bar default
2825 arginal\InsetSpace ~
2826 Note
2827 \family default
2828 \SpecialChar \@.
2829  Margin notes are like footnotes, except that: 
2830 \end_layout
2831
2832 \begin_layout Itemize
2833 the on-screen boxes say 
2834 \begin_inset Quotes eld
2835 \end_inset
2836
2837 margin
2838 \begin_inset Quotes erd
2839 \end_inset
2840
2841  instead of 
2842 \begin_inset Quotes eld
2843 \end_inset
2844
2845 foot
2846 \begin_inset Quotes erd
2847 \end_inset
2848
2849
2850 \end_layout
2851
2852 \begin_layout Itemize
2853 the notes will be placed in the margin, instead of below the text 
2854 \end_layout
2855
2856 \begin_layout Itemize
2857 margin notes are not numbered
2858 \end_layout
2859
2860 \begin_layout Standard
2861 Change your LyX footnote back to text, then select and change it to a margin
2862  note.
2863  Run LaTeX again to see what the margin note looks like.
2864 \end_layout
2865
2866 \begin_layout Standard
2867
2868 \series bold
2869 Exercise
2870 \series default
2871 : Fix the footnote in 
2872 \family typewriter
2873 example_raw.lyx
2874 \end_layout
2875
2876 \begin_layout Section
2877 Bibliographies
2878 \end_layout
2879
2880 \begin_layout Standard
2881 \begin_inset LatexCommand label
2882 name "sec:bibliographies"
2883
2884 \end_inset
2885
2886 Bibliographies (at least in the exact sciences) are similar to cross references.
2887  The bibliography contains a list of references at the end of the document,
2888  and they can be referenced from within the document.
2889  Like section titles, LyX and LaTeX make your job easier by automatically
2890  numbering the bibliography items and changing citations when the items'
2891  numbers change.
2892 \end_layout
2893
2894 \begin_layout Standard
2895 Go to the end of the document and switch to the 
2896 \family sans
2897 Bibliography
2898 \family default
2899  environment.
2900  Now, each paragraph you type will be a reference.
2901  Type 
2902 \family typewriter
2903 The Lyx Tutorial, by the LyX Documentation Team
2904 \family default
2905  as your first reference.
2906  Note that LyX automatically puts a number in a box before each reference.
2907  Click on the boxed reference number, and a 
2908 \family sans
2909 Bibliography\InsetSpace ~
2910 item
2911 \family default
2912  dialog box appears.
2913  You use the first field, the 
2914 \family sans
2915 Key
2916 \family default
2917 , to refer to this reference within the LyX document.
2918  By default, it is a number.
2919  Change the 
2920 \family sans
2921 Key
2922 \family default
2923  field to 
2924 \begin_inset Quotes eld
2925 \end_inset
2926
2927 lyxtutorial
2928 \begin_inset Quotes erd
2929 \end_inset
2930
2931  to make it easy to remember.
2932 \end_layout
2933
2934 \begin_layout Standard
2935 Now pick somewhere in your document that you would like to insert a reference.
2936  Do so with 
2937 \family sans
2938 \bar under
2939 I
2940 \bar default
2941 nsert\SpecialChar \menuseparator
2942
2943 \bar under
2944 C
2945 \bar default
2946 itation
2947 \family default
2948 .
2949  A 
2950 \family sans
2951 Citation
2952 \family default
2953  dialog appears.
2954  The right panel in this dialog lists all the bibliography entries, and
2955  this field allows you to choose which bibliography item you want to cite.
2956  Select 
2957 \begin_inset Quotes eld
2958 \end_inset
2959
2960 lyxtutorial
2961 \begin_inset Quotes erd
2962 \end_inset
2963
2964  (right now, that's the only item in the bibliography), then use the left
2965  arrow in the center to insert it.
2966  (You can have multiple citations in the same place by transferring a number
2967  of keys this way.) Now run LaTeX, and you'll see that the citation appears
2968  in brackets in the text, referring to the bibliography at the end of the
2969  document.
2970 \end_layout
2971
2972 \begin_layout Standard
2973 How are the other fields used? The 
2974 \family sans
2975 \bar under
2976 T
2977 \bar default
2978 ext\InsetSpace ~
2979 after
2980 \family default
2981  field in the 
2982 \family sans
2983 Citation
2984 \family default
2985  dialog will put a remark (such as a reference to a page or chapter within
2986  the referenced book or article) in the brackets after the reference.
2987  If you want the references to have labels instead of numbers in the printed
2988  output (for example, some journals would use 
2989 \begin_inset Quotes eld
2990 \end_inset
2991
2992 [Smi95]
2993 \begin_inset Quotes erd
2994 \end_inset
2995
2996  to refer to a paper written by Smith in 1995), use the 
2997 \family sans
2998 \bar under
2999 L
3000 \bar default
3001 abel
3002 \family default
3003  field in the 
3004 \family sans
3005 Bibliography\InsetSpace ~
3006 Entry\InsetSpace ~
3007 Settings
3008 \family default
3009  dialog.
3010  As usual, you can see the 
3011 \emph on
3012 User's Guide
3013 \emph default
3014  for details.
3015 \end_layout
3016
3017 \begin_layout Standard
3018
3019 \series bold
3020 Exercise:
3021 \series default
3022  Fix the bibliography and citation in 
3023 \family typewriter
3024 example_raw.lyx
3025 \end_layout
3026
3027 \begin_layout Section
3028 Table of Contents
3029 \end_layout
3030
3031 \begin_layout Standard
3032 You may want to put a table of contents at the beginning of your document.
3033  LyX makes this very easy to do.
3034  Just hit 
3035 \family sans
3036 Return
3037 \family default
3038  after your document title and before your first section title and choose
3039  
3040 \family sans
3041 \bar under
3042 I
3043 \bar default
3044 nsert\SpecialChar \menuseparator
3045 List\InsetSpace ~
3046 /\InsetSpace ~
3047 T
3048 \bar under
3049 O
3050 \bar default
3051 C\SpecialChar \menuseparator
3052 Table\InsetSpace ~
3053 of\InsetSpace ~
3054
3055 \bar under
3056 C
3057 \bar default
3058 ontents
3059 \family default
3060 .
3061  The words 
3062 \begin_inset Quotes eld
3063 \end_inset
3064
3065 Table of Contents
3066 \begin_inset Quotes erd
3067 \end_inset
3068
3069  will appear in a button on the first line of the document.
3070  
3071 \end_layout
3072
3073 \begin_layout Standard
3074 This may not appear to be very useful.
3075  However, if you look at your 
3076 \family typewriter
3077 dvi
3078 \family default
3079  file, you will see that a table of contents has been generated, listing
3080  the various sections and subsections in your document.
3081  As usual, if you reorder sections or create new ones, you will see those
3082  changes in the 
3083 \family typewriter
3084 dvi
3085 \family default
3086  file when you update it.
3087  
3088 \end_layout
3089
3090 \begin_layout Standard
3091 The table of contents is not printed in the on-screen version of the document,
3092  because you can't edit it anyway.
3093  However, you can display the table of contents in a separate window by
3094  clicking on the table of contents button, or by using 
3095 \family sans
3096 \bar under
3097 D
3098 \bar default
3099 ocument\SpecialChar \menuseparator
3100
3101 \bar under
3102 T
3103 \bar default
3104 able\InsetSpace ~
3105 of\InsetSpace ~
3106 Contents
3107 \family default
3108 .
3109  The menu command will work even if you don't have a table of contents inset
3110  in your document.
3111  This is a very useful tool.
3112  You can use the 
3113 \family sans
3114 Table\InsetSpace ~
3115 of\InsetSpace ~
3116 Contents
3117 \family default
3118  window to move around your document.
3119  Clicking on a (sub)section title in the 
3120 \family sans
3121 Table\InsetSpace ~
3122 of\InsetSpace ~
3123 Contents
3124 \family default
3125  window will highlight that line and move the cursor (in the LyX editing
3126  window) to that place in the document.
3127  You can also use the arrow keys to move up and down in the table of contents.
3128  You may therefore find it convenient to leave this window open throughout
3129  editing sessions.
3130  You can get similar functionality from the 
3131 \family sans
3132 \bar under
3133 N
3134 \bar default
3135 avigate
3136 \family default
3137  menu, though, where the table of contents appears automatically.
3138 \end_layout
3139
3140 \begin_layout Standard
3141 To get rid of the Table of Contents, you can delete the table of contents
3142  button just like any other text.
3143 \end_layout
3144
3145 \begin_layout Standard
3146
3147 \series bold
3148 Exercise
3149 \series default
3150 : Fix the table of contents in 
3151 \family typewriter
3152 example_raw.lyx
3153 \end_layout
3154
3155 \begin_layout Chapter
3156 Using Math
3157 \end_layout
3158
3159 \begin_layout Standard
3160 LaTeX is used by many scientists because it outputs great looking equations,
3161  avoiding the control characters used by word processors and their equation
3162  editors.
3163  Many of these scientists are frustrated, however, because writing equations
3164  in LaTeX is more like programming than writing.
3165  Happily, LyX has WYSIWYM support for equations.
3166  If you are used to LaTeX, you'll find that all of the usual LaTeX math
3167  commands can be typed in normally, but they will show up in a WYSIWYM fashion.
3168  If, on the other hand, you've never written in LaTeX, then the 
3169 \family sans
3170 Math\InsetSpace ~
3171 Panel
3172 \family default
3173  will allow you to write professional-looking math quickly and easily
3174 \begin_inset Foot
3175 status collapsed
3176
3177 \begin_layout Standard
3178 LyX can't check if the math you're writing is actually 
3179 \emph on
3180 correct
3181 \emph default
3182 .
3183  Sorry.
3184 \end_layout
3185
3186 \end_inset
3187
3188 .
3189 \end_layout
3190
3191 \begin_layout Section
3192 Math Mode
3193 \end_layout
3194
3195 \begin_layout Standard
3196 Somewhere in your LyX document, type: 
3197 \end_layout
3198
3199 \begin_layout LyX-Code
3200 I like what Einstein said, E=mc^2, because it's so simple.
3201  
3202 \end_layout
3203
3204 \begin_layout Standard
3205 Now, that equation doesn't look very good, even in the 
3206 \family typewriter
3207 dvi
3208 \family default
3209  file; there's no space between the letters and the equals sign, and you'd
3210  like to write an actual superscript for the 
3211 \begin_inset Quotes eld
3212 \end_inset
3213
3214 2
3215 \begin_inset Quotes erd
3216 \end_inset
3217
3218 .
3219  That bad typesetting happened because we didn't tell LyX that we were writing
3220  a mathematical expression, so it typeset the equation like regular old
3221  text.
3222 \end_layout
3223
3224 \begin_layout Standard
3225 Instead, we create a formula that will get typeset properly.
3226  In order to create a formula, just click the toolbar button with 
3227 \begin_inset Formula $\frac{a+b}{c}$
3228 \end_inset
3229
3230  written on it in blue.
3231  LyX will insert a little blue square, which is an empty math formula.
3232  LyX has placed the cursor in the blue square, so just type 
3233 \family typewriter
3234 E=mc^2
3235 \family default
3236  again.
3237  The expression is typed in blue, and the blue square disappears as soon
3238  as the formula is not empty.
3239  Now type 
3240 \family sans
3241 Esc
3242 \family default
3243  to leave the equation The purple markers disappear, leaving the cursor
3244  to the right of the expression, and now if you type something, it will
3245  be regular text.
3246 \end_layout
3247
3248 \begin_layout Standard
3249 Run LaTeX and look at the 
3250 \family typewriter
3251 dvi
3252 \family default
3253  file.
3254  Notice that the expression was typeset nicely, with spaces between the
3255  letters and the equals sign, and a superscript 
3256 \begin_inset Quotes eld
3257 \end_inset
3258
3259 2
3260 \begin_inset Quotes erd
3261 \end_inset
3262
3263 .
3264  Letters in math mode are assumed to be variables, and come out in italics.
3265  Numbers are just numbers.
3266 \end_layout
3267
3268 \begin_layout Standard
3269 This math editor is another example of the WYSIWYM philosophy.
3270  In LaTeX, you write a mathematical expression using text and commands like
3271  
3272 \family typewriter
3273
3274 \backslash
3275 sqrt
3276 \family default
3277 ; this can be frustrating, because you can't see what an expression looks
3278  like until you LaTeX the file, and may have to spend time to find missing
3279  brackets or other 
3280 \begin_inset Quotes eld
3281 \end_inset
3282
3283 bugs
3284 \begin_inset Quotes erd
3285 \end_inset
3286
3287 .
3288  On the other hand, LyX doesn't attempt to get the expression to look perfect
3289  (WYSIWYG), but it gives you an extremely good idea of what the expression
3290  will look like.
3291  LaTeX then takes care of the professional typesetting.
3292  99% of the time, you won't have to make any changes to the font sizes or
3293  spacing that LaTeX outputs.
3294  This way (sorry to be so repetitive) you can focus on the 
3295 \emph on
3296 content
3297 \emph default
3298  of your mathematical expressions, not their format.
3299 \end_layout
3300
3301 \begin_layout Section
3302 Navigating an Equation
3303 \end_layout
3304
3305 \begin_layout Standard
3306 Now let's change 
3307 \begin_inset Formula $E=mc^{2}$
3308 \end_inset
3309
3310  to 
3311 \begin_inset Formula $E=1+mc^{2}$
3312 \end_inset
3313
3314 .
3315  Use the arrow keys to move the cursor into the expression.
3316  Note that when you enter the expression, the purple markers appear to let
3317  you know you're editing math.
3318  Now you can use 
3319 \family sans
3320 Left
3321 \family default
3322  and 
3323 \family sans
3324 Right
3325 \family default
3326  to move the cursor past the equals sign, and just type 
3327 \begin_inset Quotes eld
3328 \end_inset
3329
3330 1+
3331 \begin_inset Quotes erd
3332 \end_inset
3333
3334 .
3335  Again, you can use the arrow keys or 
3336 \family sans
3337 Esc
3338 \family default
3339  to leave the formula\SpecialChar \@.
3340
3341 \end_layout
3342
3343 \begin_layout Standard
3344 Other than the special keys described below, typing in math mode is like
3345  editing regular text.
3346  Use 
3347 \family sans
3348 Delete
3349 \family default
3350  (or 
3351 \family sans
3352 Backspace
3353 \family default
3354 ) to delete things.
3355  Select text either with the arrow keys or with the mouse.
3356  
3357 \family sans
3358 \bar under
3359 E
3360 \bar default
3361 dit\SpecialChar \menuseparator
3362
3363 \bar under
3364 U
3365 \bar default
3366 ndo
3367 \family default
3368  works in math mode, as does cutting and pasting.
3369  One thing to be careful of: if you're right outside a formula and you type
3370  
3371 \family sans
3372 Delete
3373 \family default
3374  (or 
3375 \family sans
3376 Backspace
3377 \family default
3378 ), it will delete the whole expression.
3379  Luckily, you can just use 
3380 \family sans
3381 Undo
3382 \family default
3383  to get it back.
3384 \end_layout
3385
3386 \begin_layout Standard
3387 What if you want to change 
3388 \begin_inset Formula $E=mc^{2}$
3389 \end_inset
3390
3391  to 
3392 \begin_inset Formula $E=mc^{2.5}+1$
3393 \end_inset
3394
3395 ? Again, you can use the mouse to click in the right place.
3396  However, you can also use the arrow keys.
3397  If the cursor is just after the 
3398 \begin_inset Quotes eld
3399 \end_inset
3400
3401 c
3402 \begin_inset Quotes erd
3403 \end_inset
3404
3405  but before the 
3406 \begin_inset Quotes eld
3407 \end_inset
3408
3409 2
3410 \begin_inset Quotes erd
3411 \end_inset
3412
3413 , then typing 
3414 \family sans
3415 Up
3416 \family default
3417  will move the cursor to the level of the superscript, just before the 
3418 \begin_inset Quotes eld
3419 \end_inset
3420
3421 2
3422 \begin_inset Quotes erd
3423 \end_inset
3424
3425 .
3426  Add the 
3427 \begin_inset Quotes eld
3428 \end_inset
3429
3430 .5
3431 \begin_inset Quotes erd
3432 \end_inset
3433
3434 .
3435  Now, hitting 
3436 \family sans
3437 Down
3438 \family default
3439  will move the cursor back to the regular level.
3440  In fact, if you hit 
3441 \family sans
3442 Down
3443 \family default
3444  from anywhere within the superscript, the cursor will be placed just 
3445 \emph on
3446 after
3447 \emph default
3448  the superscript (so that you can then type the 
3449 \begin_inset Quotes eld
3450 \end_inset
3451
3452 +1
3453 \begin_inset Quotes erd
3454 \end_inset
3455
3456 ).
3457 \end_layout
3458
3459 \begin_layout Section
3460 Exponents and Indices
3461 \end_layout
3462
3463 \begin_layout Standard
3464 An exponent can be entered from the 
3465 \family sans
3466 Math\InsetSpace ~
3467 Panel
3468 \family default
3469  (see below), but it's actually simpler just to type the caret key, 
3470 \begin_inset Quotes eld
3471 \end_inset
3472
3473 ^
3474 \begin_inset Quotes erd
3475 \end_inset
3476
3477 .
3478  LyX will place another blue rectangle in the superscript, so that whatever
3479  you write next will be superscripted, and in a smaller font size.
3480  Everything you type until you hit a 
3481 \family sans
3482 Space
3483 \family default
3484  (or 
3485 \family sans
3486 Esc
3487 \family default
3488  to exit Mathed entirely) will be in the superscript.
3489 \end_layout
3490
3491 \begin_layout Standard
3492 Writing a subscript (index) is just as easy --- start one by typing the
3493  underscore key, 
3494 \begin_inset Quotes eld
3495 \end_inset
3496
3497 _
3498 \begin_inset Quotes eld
3499 \end_inset
3500
3501 .
3502  You can subscript and superscript both subscripts and superscripts like
3503  this: 
3504 \begin_inset Formula $A_{a_{0}+b^{2}}+C^{a_{0}+b^{2}}$
3505 \end_inset
3506
3507 .
3508  
3509 \end_layout
3510
3511 \begin_layout Standard
3512
3513 \series bold
3514 Exercise
3515 \series default
3516 : Put equation 1 of 
3517 \family typewriter
3518 example_raw.lyx
3519 \family default
3520  into math mode.
3521 \end_layout
3522
3523 \begin_layout Section
3524 The 
3525 \family sans
3526 Math Panel
3527 \end_layout
3528
3529 \begin_layout Standard
3530 The 
3531 \family sans
3532 Math\InsetSpace ~
3533 Panel
3534 \family default
3535  is a convenient way to enter symbols or to perform many complicated Mathed
3536  functions.
3537  Many of these functions can be accomplished from the keyboard or the 
3538 \family sans
3539 \bar under
3540 E
3541 \bar default
3542 dit\SpecialChar \menuseparator
3543
3544 \bar under
3545 M
3546 \bar default
3547 ath
3548 \family default
3549  or 
3550 \family sans
3551 \bar under
3552 I
3553 \bar default
3554 nsert
3555 \bar under
3556 \SpecialChar \menuseparator
3557
3558 \bar default
3559 Mat
3560 \bar under
3561 h
3562 \family default
3563 \bar default
3564  menus.
3565  However, we're going to concentrate on using the 
3566 \family sans
3567 Math\InsetSpace ~
3568 Panel
3569 \family default
3570 , just to let you know what's out there; you can learn keyboard shortcuts
3571  later, from other manuals.
3572  So open it using 
3573 \family sans
3574 \bar under
3575 I
3576 \bar default
3577 nsert
3578 \bar under
3579 \SpecialChar \menuseparator
3580
3581 \bar default
3582 Mat
3583 \bar under
3584 h
3585 \bar default
3586 \SpecialChar \menuseparator
3587 Math\InsetSpace ~
3588 Pane
3589 \bar under
3590 l
3591 \family default
3592 \bar default
3593  now and leave it open while reading this section.
3594 \end_layout
3595
3596 \begin_layout Standard
3597 Right-clicking on a formula will open the 
3598 \family sans
3599 Math Panel
3600 \family default
3601  for you.
3602 \end_layout
3603
3604 \begin_layout Subsection
3605 Greek and symbols
3606 \end_layout
3607
3608 \begin_layout Standard
3609 The 
3610 \family sans
3611 Math\InsetSpace ~
3612 Panel
3613 \family default
3614  which allow you to choose from a large array of symbols used in math: various
3615  arrows, relations, operators, and sums and integrals.
3616  Note that subscripting and superscripting allow you to put lower and upper
3617  limits on sums and integrals.
3618  
3619 \end_layout
3620
3621 \begin_layout Standard
3622 \begin_inset Quotes eld
3623 \end_inset
3624
3625 Nothing you can do that can't be done\SpecialChar \ldots{}
3626  All you need is 
3627 \begin_inset Formula $\heartsuit$
3628 \end_inset
3629
3630 .
3631 \begin_inset Quotes erd
3632 \end_inset
3633
3634  
3635 \end_layout
3636
3637 \begin_layout Subsection
3638 Square roots, accents, and delimiters
3639 \end_layout
3640
3641 \begin_layout Standard
3642 To type a square root, just click on the button with a square root sign
3643  on it.
3644  The square root appears, and the cursor is in a new insertion point inside
3645  the square root.
3646  You can type variables, numbers, other square roots, fractions, whatever
3647  you want.
3648  LyX will automatically resize the square root to fit what's inside.
3649 \end_layout
3650
3651 \begin_layout Standard
3652 Accenting a character (
3653 \begin_inset Formula $\overrightarrow{v}$
3654 \end_inset
3655
3656 ) or group of characters (
3657 \begin_inset Formula $\overrightarrow{a+b}$
3658 \end_inset
3659
3660 ) is done the same way.
3661  The 
3662 \family sans
3663 Decoration
3664 \family default
3665  types are available from the panel.
3666  Click on a decoration, and LyX will insert that decoration with an insertion
3667  point under (or over) it.
3668  Just type what you want in the insertion point.
3669  There are two sets of decorations: those that resize with the text you
3670  type, and those that have fixed size, and are most appropriate for a single
3671  letter.
3672  
3673 \end_layout
3674
3675 \begin_layout Standard
3676 Delimiters such as parentheses, brackets, and braces work similarly, but
3677  are a bit more complicated.
3678  Hit the 
3679 \family sans
3680 Delimiter
3681 \family default
3682  button, which features a blue square surrounded by brackets, to pop up
3683  the 
3684 \family sans
3685 Delimiter
3686 \family default
3687  dialog.
3688  Your current selection of delimiters is displayed in a box.
3689  It's a pair of parentheses by default, but you can choose a pair of braces,
3690  a brace and a parenthesis, or even choose the empty square to have something
3691  like 
3692 \begin_inset Quotes eld
3693 \end_inset
3694
3695
3696 \begin_inset Formula $a=\left\langle 7\right.$
3697 \end_inset
3698
3699
3700 \begin_inset Quotes erd
3701 \end_inset
3702
3703  (the empty delimiter is displayed as a broken line in LyX, but won't show
3704  up in the output).
3705 \end_layout
3706
3707 \begin_layout Standard
3708 If you're lazy, you can type actual parentheses in math mode, rather than
3709  using the 
3710 \family sans
3711 Delimiter
3712 \family default
3713  window.
3714  However, those parentheses will be the same size as regular text, which
3715  will look bad if you have a big fraction or matrix inside the parentheses.
3716  Using the 
3717 \family sans
3718 Delimiter
3719 \family default
3720  window will guarantee that the delimiters are sized based on what's inside
3721  them.
3722 \end_layout
3723
3724 \begin_layout Standard
3725 You can also put delimiters or a square root sign or a decoration on already
3726  existing text.
3727  Select the portion of the formula that you want to adjust, and then click
3728  on the button you want from the 
3729 \family sans
3730 Math\InsetSpace ~
3731 Panel
3732 \family default
3733 .
3734  Try using this to change Newton's second law from scalar to vector form
3735  (
3736 \begin_inset Formula $f=ma$
3737 \end_inset
3738
3739  to 
3740 \begin_inset Formula $\overrightarrow{f}=m\overrightarrow{a}$
3741 \end_inset
3742
3743 ).
3744  Once you've learned about matrices, this is how you'll put parentheses
3745  or brackets around them.
3746 \end_layout
3747
3748 \begin_layout Subsection
3749 Fractions
3750 \end_layout
3751
3752 \begin_layout Standard
3753 Fractions are very simple in Mathed.
3754  Just click on the 
3755 \family sans
3756 Fraction
3757 \family default
3758  button in the 
3759 \family sans
3760 Math\InsetSpace ~
3761 Panel
3762 \family default
3763 , which shows a fraction with blue squares in the numerator and the denominator.
3764  LyX writes two insertion points in a fraction.
3765  As you would expect, you can use arrow keys or the mouse to move around
3766  a fraction.
3767  Click on the top square and type 
3768 \begin_inset Quotes eld
3769 \end_inset
3770
3771 1
3772 \begin_inset Quotes erd
3773 \end_inset
3774
3775 .
3776  Now hit 
3777 \family sans
3778 Down
3779 \family default
3780  and type 
3781 \begin_inset Quotes eld
3782 \end_inset
3783
3784 2
3785 \begin_inset Quotes erd
3786 \end_inset
3787
3788 .
3789  You've made a fraction! Of course you can type anything within each of
3790  the two boxes: variables with exponents, square roots, other fractions,
3791  whatever.
3792  
3793 \end_layout
3794
3795 \begin_layout Standard
3796
3797 \series bold
3798 Exercise
3799 \series default
3800 : Put equation 2 of 
3801 \family typewriter
3802 example_raw.lyx
3803 \family default
3804  into math mode.
3805 \end_layout
3806
3807 \begin_layout Subsection
3808 TeX mode: Limits, log, sin and others
3809 \end_layout
3810
3811 \begin_layout Standard
3812 Because letters in math mode are considered to be variables, if you type
3813  
3814 \begin_inset Quotes eld
3815 \end_inset
3816
3817 sin
3818 \begin_inset Quotes erd
3819 \end_inset
3820
3821  in math mode, LyX thinks you're typing the product of the three variables
3822  
3823 \begin_inset Formula $s$
3824 \end_inset
3825
3826
3827 \begin_inset Formula $i$
3828 \end_inset
3829
3830 , and 
3831 \begin_inset Formula $n$
3832 \end_inset
3833
3834 .
3835  The three letters will be typeset in italics, when what you really wanted
3836  was the word 
3837 \begin_inset Quotes eld
3838 \end_inset
3839
3840 sin
3841 \begin_inset Quotes erd
3842 \end_inset
3843
3844  typeset in Roman.
3845  In addition, LyX won't put a space between the word 
3846 \begin_inset Quotes eld
3847 \end_inset
3848
3849 sin
3850 \begin_inset Quotes erd
3851 \end_inset
3852
3853  and the 
3854 \begin_inset Quotes eld
3855 \end_inset
3856
3857 x
3858 \begin_inset Quotes erd
3859 \end_inset
3860
3861  (typing 
3862 \family sans
3863 Space
3864 \family default
3865  will just exit math mode).
3866  So how do you get 
3867 \begin_inset Quotes eld
3868 \end_inset
3869
3870
3871 \begin_inset Formula $\sin x$
3872 \end_inset
3873
3874
3875 \begin_inset Quotes erd
3876 \end_inset
3877
3878  instead of 
3879 \begin_inset Quotes eld
3880 \end_inset
3881
3882
3883 \begin_inset Formula $sinx$
3884 \end_inset
3885
3886
3887 \begin_inset Quotes erd
3888 \end_inset
3889
3890 ?
3891 \end_layout
3892
3893 \begin_layout Standard
3894 Click on 
3895 \begin_inset Quotes eld
3896 \end_inset
3897
3898 sin
3899 \begin_inset Quotes erd
3900 \end_inset
3901
3902  in the 
3903 \family sans
3904 Functions
3905 \family default
3906  list in the 
3907 \family sans
3908 Math\InsetSpace ~
3909 Panel
3910 \family default
3911 .
3912  The word 
3913 \begin_inset Quotes eld
3914 \end_inset
3915
3916 sin
3917 \begin_inset Quotes erd
3918 \end_inset
3919
3920  is written in black, in upright roman type.
3921  The whole word is treated as one symbol, so if you type 
3922 \family sans
3923 Backspace
3924 \family default
3925 , it will delete the whole word.
3926  Now type 
3927 \begin_inset Quotes eld
3928 \end_inset
3929
3930 x
3931 \begin_inset Quotes erd
3932 \end_inset
3933
3934 , which will be written in blue italics, like you expect in Mathed.
3935  In the 
3936 \family typewriter
3937 dvi
3938 \family default
3939  file, the expression will be correctly typeset.
3940  Try it.
3941 \end_layout
3942
3943 \begin_layout Standard
3944 Other commands you need to type in TeX mode using the 
3945 \family sans
3946 Functions
3947 \family default
3948  box include other trigonometric functions and their inverses, hyperbolic
3949  functions, logarithms, limits, and quite a few others.
3950  These functions can take subscripts and superscripts, important for typing
3951  
3952 \begin_inset Quotes eld
3953 \end_inset
3954
3955
3956 \begin_inset Formula $\cos^{2}\theta$
3957 \end_inset
3958
3959
3960 \begin_inset Quotes erd
3961 \end_inset
3962
3963  or 
3964 \begin_inset Quotes eld
3965 \end_inset
3966
3967
3968 \begin_inset Formula $\lim_{n\rightarrow\infty}$
3969 \end_inset
3970
3971
3972 \begin_inset Quotes erd
3973 \end_inset
3974
3975 .
3976 \end_layout
3977
3978 \begin_layout Standard
3979
3980 \series bold
3981 Exercise
3982 \series default
3983 : Put equation 3 of 
3984 \family typewriter
3985 example_raw.lyx
3986 \family default
3987  into math mode.
3988 \end_layout
3989
3990 \begin_layout Subsection
3991 Matrices
3992 \end_layout
3993
3994 \begin_layout Standard
3995 \begin_inset LatexCommand label
3996 name "sec:matrices"
3997
3998 \end_inset
3999
4000 Click on the 
4001 \family sans
4002 Matrix
4003 \family default
4004  button in the 
4005 \family sans
4006 Math\InsetSpace ~
4007 Panel
4008 \family default
4009 .
4010  The dialog has two sliding bars which allow you to choose how many rows
4011  and columns you want in your matrix.
4012  Choose 2 rows and 3 columns and hit 
4013 \family sans
4014 Apply
4015 \family default
4016  or 
4017 \family sans
4018 OK
4019 \family default
4020 .
4021  LyX prints 6 insertion points in a 
4022 \begin_inset Formula $2\times3$
4023 \end_inset
4024
4025  matrix.
4026  As usual, you can put any sort of Mathed expression (a square root, another
4027  matrix, etc.) in each insertion point.
4028  You can also leave some of the insertion points empty if you want.
4029 \end_layout
4030
4031 \begin_layout Standard
4032
4033 \family sans
4034 Tab
4035 \family default
4036  can be used to move horizontally between the columns of a matrix.
4037  Alternatively, you can use the arrow keys to move around - hitting 
4038 \family sans
4039 Right
4040 \family default
4041  at the end of one box will move to the next box, 
4042 \family sans
4043 Down
4044 \family default
4045  will move to the next row, etc.
4046 \end_layout
4047
4048 \begin_layout Standard
4049 If you suddenly need more rows or columns, use 
4050 \family sans
4051 \bar under
4052 E
4053 \bar default
4054 dit\SpecialChar \menuseparator
4055
4056 \bar under
4057 M
4058 \bar default
4059 ath\SpecialChar \menuseparator
4060 Add\InsetSpace ~
4061
4062 \bar under
4063 R
4064 \bar default
4065 ow
4066 \family default
4067  and 
4068 \family sans
4069 Add\InsetSpace ~
4070
4071 \bar under
4072 C
4073 \bar default
4074 olumn
4075 \family default
4076 .
4077  They add a row or column just after the current position.
4078  Overdid it? Use 
4079 \family sans
4080 \bar under
4081 D
4082 \bar default
4083 elete\InsetSpace ~
4084 Row
4085 \family default
4086  and 
4087 \family sans
4088 D
4089 \bar under
4090 e
4091 \bar default
4092 lete\InsetSpace ~
4093 Column
4094 \family default
4095  from the same menu.
4096 \end_layout
4097
4098 \begin_layout Standard
4099 See the 
4100 \emph on
4101 User's Guide
4102 \emph default
4103  for information on how to change the horizontal alignment of each column,
4104  and how to change the vertical position of the whole matrix.
4105  Note that if you want to write a table containing text, you should use
4106  LyX' wonderful table support, rather than trying to write text in a matrix.
4107 \end_layout
4108
4109 \begin_layout Subsection
4110 Display mode
4111 \end_layout
4112
4113 \begin_layout Standard
4114 All of the expressions we have written so far have been on the same line
4115  as the text that came before and after them, otherwise known as inline
4116  expressions.
4117  This is fine for short, simple expressions, but if you want to write larger
4118  ones, or if you want your expressions to stand out from the text, you need
4119  to write them in display mode.
4120  In addition, only displayed expressions can be labeled and numbered (see
4121  the 
4122 \emph on
4123 User's Guide
4124 \emph default
4125 ), and multi-line equations (see Sec.
4126  
4127 \begin_inset LatexCommand ref
4128 reference "sec:multiline"
4129
4130 \end_inset
4131
4132 ) must be in display mode.
4133 \end_layout
4134
4135 \begin_layout Standard
4136 Click on the 
4137 \family sans
4138 Display
4139 \family default
4140  button in the 
4141 \family sans
4142 Math\InsetSpace ~
4143 Panel
4144 \family default
4145 , which represents a couple lines of text before and after a centered blue
4146  box.
4147  LyX inserts a formula, but the insertion point is on a new line, and it's
4148  centered within that line.
4149  Now type an expression and run LaTeX to see how it looks.
4150  The 
4151 \family sans
4152 Display
4153 \family default
4154  button is actually a toggle; use it now to change a couple of your expressions
4155  to display mode and back.
4156  
4157 \end_layout
4158
4159 \begin_layout Standard
4160 Display mode has a couple differences from inline mode:
4161 \end_layout
4162
4163 \begin_layout Itemize
4164 The default font is larger for a few symbols, like 
4165 \begin_inset Formula $\sum$
4166 \end_inset
4167
4168  and 
4169 \begin_inset Formula $\int$
4170 \end_inset
4171
4172
4173 \end_layout
4174
4175 \begin_layout Itemize
4176 Subscripts and superscripts for limits and sums (but not integrals) are
4177  written under rather than next to the symbols
4178 \end_layout
4179
4180 \begin_layout Itemize
4181 Text is centered
4182 \end_layout
4183
4184 \begin_layout Standard
4185 Other than these differences, though, displayed expressions and inline expressio
4186 ns are very similar.
4187 \end_layout
4188
4189 \begin_layout Standard
4190 One final note about the way displayed formulae are typeset: be careful
4191  about whether you're putting your equation into a new paragraph or not.
4192  If your formula is in the middle of a sentence or paragraph, then don't
4193  press 
4194 \family sans
4195 Return
4196 \family default
4197 .
4198  Doing so will cause the text 
4199 \emph on
4200 after
4201 \emph default
4202  the formula to start a new paragraph.
4203  That text will therefore be indented, which is probably not what you want.
4204 \end_layout
4205
4206 \begin_layout Standard
4207
4208 \series bold
4209 Exercise
4210 \series default
4211 : Put the various equations in 
4212 \family typewriter
4213 example_raw.lyx
4214 \family default
4215  into display mode, and see how they're typeset differently.
4216 \end_layout
4217
4218 \begin_layout Standard
4219
4220 \series bold
4221 Exercise
4222 \series default
4223 : Using various tools you've learned in this section, you should be able
4224  to write an equation like
4225 \begin_inset Foot
4226 status collapsed
4227
4228 \begin_layout Standard
4229 After you've done it the hard way, why don't you give 
4230 \family sans
4231 \bar under
4232 I
4233 \bar default
4234 nsert\SpecialChar \menuseparator
4235 Mat
4236 \bar under
4237 h
4238 \bar default
4239 \SpecialChar \menuseparator
4240
4241 \bar under
4242 C
4243 \bar default
4244 ases\InsetSpace ~
4245 environment
4246 \family default
4247  a try?
4248 \end_layout
4249
4250 \end_inset
4251
4252
4253 \begin_inset Formula \[
4254 f(x)=\left\{ \begin{array}{cc}
4255 \log_{8}x & x>0\\
4256 0 & x=0\\
4257 \sum_{i=1}^{5}\alpha_{i}+\sqrt{-\frac{1}{x}} & x<0\end{array}\right.\]
4258
4259 \end_inset
4260
4261
4262 \end_layout
4263
4264 \begin_layout Section
4265 More Math Stuff
4266 \end_layout
4267
4268 \begin_layout Standard
4269 Mathed can do plenty more.
4270  By now, you're familiar with the basics, so we'll just refer to the 
4271 \emph on
4272 User's Guide
4273 \emph default
4274  for tips on how to:
4275 \end_layout
4276
4277 \begin_layout Itemize
4278 Labeling and numbering expressions
4279 \end_layout
4280
4281 \begin_layout Itemize
4282 Multi-line equations
4283 \end_layout
4284
4285 \begin_layout Itemize
4286 Change typefaces, e.g., to write bold-face text in an expression.
4287 \end_layout
4288
4289 \begin_layout Itemize
4290 Fine-tune font sizes and spacing within an expression.
4291  (Don't worry about this until your final draft!)
4292 \end_layout
4293
4294 \begin_layout Itemize
4295 Write macros.
4296  These are very powerful, because you just define them once at the top of
4297  the document, and then you can use them throughout the document.
4298  If you change the macro definition, the references to the macro will be
4299  changed throughout the document.
4300  Macros can even take arguments.
4301 \end_layout
4302
4303 \begin_layout Itemize
4304 Do lots of other things we didn't have time to mention in this 
4305 \emph on
4306 Tutorial
4307 \emph default
4308 .
4309 \end_layout
4310
4311 \begin_layout Chapter
4312 Miscellaneous
4313 \end_layout
4314
4315 \begin_layout Section
4316 Other Major LyX Features
4317 \end_layout
4318
4319 \begin_layout Standard
4320 We haven't gone through all the possible commands in LyX, and we aren't
4321  planning on it.
4322  As usual, see the 
4323 \emph on
4324 User's Guide
4325 \emph default
4326  for more information.
4327  We'll just mention a couple more major things LyX can do\SpecialChar \ldots{}
4328
4329 \end_layout
4330
4331 \begin_layout Itemize
4332 LyX has WYSIWYM support for tables.
4333  Use the 
4334 \family sans
4335 \bar under
4336 I
4337 \bar default
4338 nsert\SpecialChar \menuseparator
4339
4340 \bar under
4341 T
4342 \bar default
4343 able
4344 \family default
4345  to get a table.
4346  Click on the table with the 
4347 \emph on
4348 right button
4349 \emph default
4350  to get a 
4351 \family sans
4352 Table\InsetSpace ~
4353 Settings
4354 \family default
4355  dialog box which allows extensive table editing.
4356 \end_layout
4357
4358 \begin_layout Itemize
4359 LyX also supports including pictures in a number of formats (including JPEG
4360  and other bitmap formats, PostScript® and raw LaTeX) within documents.
4361  (You guessed it: 
4362 \family sans
4363 \bar under
4364 I
4365 \bar default
4366 nsert\SpecialChar \menuseparator
4367
4368 \bar under
4369 G
4370 \bar default
4371 raphics
4372 \family default
4373 .
4374  Then click on the figure to choose the file to include, rotate or scale
4375  it, etc.) Tables and figures can have captions, and LyX will automatically
4376  generate lists of figures and/or tables.
4377 \end_layout
4378
4379 \begin_layout Itemize
4380 Version control is supported, using RCS (
4381 \family typewriter
4382 man rcsintro
4383 \family default
4384  for more info).
4385 \end_layout
4386
4387 \begin_layout Itemize
4388 LyX is heavily configurable.
4389  Everything from how the LyX window looks to how the output comes out can
4390  be configured in a number of ways.
4391  Much configuration is done through 
4392 \family sans
4393 \bar under
4394 T
4395 \bar default
4396 ools\SpecialChar \menuseparator
4397
4398 \bar under
4399 P
4400 \bar default
4401 references
4402 \family default
4403 .
4404  For more information on this, check out 
4405 \family sans
4406 \bar under
4407 H
4408 \bar default
4409 elp\SpecialChar \menuseparator
4410
4411 \bar under
4412 C
4413 \bar default
4414 ustomization\SpecialChar \@.
4415
4416 \end_layout
4417
4418 \begin_layout Itemize
4419 LyX is being developed by a team of programmers on five continents.
4420  Therefore, LyX has better support for non-English languages (such as Dutch,
4421  German, French, Greek, Czech, Turkish, \SpecialChar \ldots{}
4422 ) than many word processors.
4423  Even some right-to-left languages like Hebrew or Arabic are supported.
4424  You can write documents in other languages, but you can also configure
4425  LyX to show its menus and error messages in other languages.
4426  
4427 \end_layout
4428
4429 \begin_layout Itemize
4430 The LyX menus feature keybindings.
4431  This means that you can do 
4432 \family sans
4433 \bar under
4434 F
4435 \bar default
4436 ile\SpecialChar \menuseparator
4437
4438 \bar under
4439 O
4440 \bar default
4441 pen
4442 \family default
4443  by typing 
4444 \family sans
4445 M-F
4446 \family default
4447  followed by 
4448 \family sans
4449 O
4450 \family default
4451  or by using the binding which is shown next to it in the menu (C-O by default).
4452  Keybindings are also configurable.
4453  For information on this, check out 
4454 \family sans
4455 \bar under
4456 H
4457 \bar default
4458 elp\SpecialChar \menuseparator
4459
4460 \bar under
4461 C
4462 \bar default
4463 ustomization\SpecialChar \@.
4464
4465 \end_layout
4466
4467 \begin_layout Itemize
4468 LyX can read in LaTeX documents.
4469  See Section\InsetSpace ~
4470
4471 \begin_inset LatexCommand ref
4472 reference "sec:tex2lyx"
4473
4474 \end_inset
4475
4476 .
4477 \end_layout
4478
4479 \begin_layout Itemize
4480 Spellchecking and thesaurus facilities are available.
4481 \end_layout
4482
4483 \begin_layout Itemize
4484 The text box near the bottom of the LyX window is called the minibuffer
4485  (after a similar feature in 
4486 \family typewriter
4487 emacs
4488 \family default
4489 ).
4490  This gives you access to all sorts of interesting functionality, including
4491  functionality which could break your document.
4492  In other words, don't type in the minibuffer unless you know what you're
4493  doing.
4494 \end_layout
4495
4496 \begin_layout Section
4497 LyX for LaTeX Users
4498 \end_layout
4499
4500 \begin_layout Standard
4501 \begin_inset LatexCommand label
4502 name "sec:latexusers"
4503
4504 \end_inset
4505
4506 If you don't know anything about LaTeX, you don't have to read this section.
4507  Actually, you might want to 
4508 \emph on
4509 learn
4510 \emph default
4511  about LaTeX, and then read this chapter.
4512  However, many people who begin to use LyX will be familiar with LaTeX.
4513  If you are such a person, you may be wondering if LyX can really do everything
4514  LaTeX can do.
4515  The short answer is that LyX can do pretty much everything LaTeX can do
4516  in one form or another, and it definitely simplifies most parts of writing
4517  a LaTeX document.
4518  The tool that is used to convert a LaTeX document to LyX was rewritten
4519  completely for LyX\InsetSpace ~
4520 1.4.
4521  It should now be able to handle most LaTeX gracefully.
4522 \end_layout
4523
4524 \begin_layout Standard
4525 Because this is just a tutorial, we are only going to mention things that
4526  new LyX users will most likely be interested in.
4527  In the interests of keeping the 
4528 \emph on
4529 Tutorial
4530 \emph default
4531  short, we will give only minimal information here.
4532  The 
4533 \emph on
4534 Extended Features
4535 \emph default
4536  manual, specifically the 
4537 \emph on
4538 Secrets of the LaTeX Masters
4539 \emph default
4540  chapter, has a great deal of information on differences between LyX and
4541  LaTeX, and how to do various LaTeX tricks in LyX.
4542 \end_layout
4543
4544 \begin_layout Subsection
4545 TeX Mode 
4546 \end_layout
4547
4548 \begin_layout Standard
4549 Anything that you enter in TeX mode will be passed straight to LaTeX, and
4550  will be displayed in red on the screen.
4551  You can use TeX commands in LyX by choosing 
4552 \family sans
4553 \bar under
4554 I
4555 \bar default
4556 nsert\SpecialChar \menuseparator
4557 Te
4558 \bar under
4559 X
4560 \bar default
4561 \InsetSpace ~
4562 Code
4563 \family default
4564 .
4565  This creates a text box, and everything within it is passed straight to
4566  LaTeX.
4567 \end_layout
4568
4569 \begin_layout Standard
4570 In a math formula, TeX mode is handled a bit differently.
4571  Enter TeX mode by typing a backslash.
4572  The backslash is not written out, but anything you type afterwards will
4573  be in red.
4574  You exit TeX mode by typing 
4575 \family sans
4576 Space
4577 \family default
4578  or some other non-alphabetic character, like a number, underscore, caret,
4579  or parenthesis.
4580  Once you exit TeX mode, if LyX knows the TeX command you've typed in, it
4581  will convert it to WYSIWYM\SpecialChar \@.
4582  So if, in a formula, you type 
4583 \family typewriter
4584
4585 \backslash
4586 gamma
4587 \family default
4588 , then when you type 
4589 \family sans
4590 Space
4591 \family default
4592 , LyX will change the red 
4593 \begin_inset Quotes eld
4594 \end_inset
4595
4596 gamma
4597 \begin_inset Quotes erd
4598 \end_inset
4599
4600  to a blue 
4601 \begin_inset Quotes eld
4602 \end_inset
4603
4604
4605 \begin_inset Formula $\gamma$
4606 \end_inset
4607
4608
4609 \begin_inset Quotes erd
4610 \end_inset
4611
4612 .
4613  This will work for almost all, non-complicated math macros.
4614  This may be faster than using the 
4615 \family sans
4616 Math\InsetSpace ~
4617 Panel
4618 \family default
4619 , and will be especially convenient for experienced LaTeX users.
4620 \end_layout
4621
4622 \begin_layout Standard
4623 As a special case, if you type a brace in TeX mode, then the beginning 
4624 \emph on
4625 and
4626 \emph default
4627  ending braces will be inserted in red, then take you 
4628 \emph on
4629 out
4630 \emph default
4631  of TeX mode and place the cursor between the braces.
4632  This makes it more convenient to type commands that LyX doesn't know which
4633  take an argument.
4634 \end_layout
4635
4636 \begin_layout Standard
4637 LyX can't do absolutely everything that LaTeX can do (yet?).
4638  Some fancy functions are not supported at all, while some work but aren't
4639  WYSIWYM.
4640  TeX mode allows users to get the full flexibility of LaTeX, while having
4641  all the convenient features of LyX, like WYSIWYM math, tables, and editing.
4642  LyX could never support every LaTeX package.
4643  However, by typing 
4644 \family typewriter
4645
4646 \backslash
4647 usepackage{foo}
4648 \family default
4649  in the preamble (see Section\InsetSpace ~
4650
4651 \begin_inset LatexCommand ref
4652 reference "sec:preamble"
4653
4654 \end_inset
4655
4656 ), you can use any package you want --- although you won't have WYSIWYM
4657  support for that package's features.
4658 \end_layout
4659
4660 \begin_layout Subsection
4661 Importing LaTeX Documents --- 
4662 \family typewriter
4663 tex2lyx
4664 \end_layout
4665
4666 \begin_layout Standard
4667 \begin_inset LatexCommand label
4668 name "sec:tex2lyx"
4669
4670 \end_inset
4671
4672 You can import a LaTeX file into LyX by using the 
4673 \family sans
4674 \bar under
4675 F
4676 \bar default
4677 ile\SpecialChar \menuseparator
4678
4679 \bar under
4680 I
4681 \bar default
4682 mport\SpecialChar \menuseparator
4683
4684 \bar under
4685 L
4686 \bar default
4687 aTeX
4688 \family default
4689  command in LyX.
4690  This will call 
4691 \family typewriter
4692 tex2lyx
4693 \family default
4694  which will create a file 
4695 \family typewriter
4696 foo.lyx
4697 \family default
4698  from the file 
4699 \family typewriter
4700 foo.tex
4701 \family default
4702  --- and then open that file.
4703  If the translation doesn't work, you can try calling 
4704 \family typewriter
4705 tex2lyx
4706 \family default
4707  from the command line, possibly using fancier options.
4708 \end_layout
4709
4710 \begin_layout Standard
4711
4712 \family typewriter
4713 tex2lyx
4714 \family default
4715  will translate most legal LaTeX, but not everything.
4716  It will leave things it doesn't understand in TeX mode, so after translating
4717  a file with 
4718 \family typewriter
4719 tex2lyx
4720 \family default
4721 , you can look for red text and hand-edit it to look right.
4722 \end_layout
4723
4724 \begin_layout Standard
4725
4726 \family typewriter
4727 tex2lyx
4728 \family default
4729  has its own manpage.
4730  Read it to find out about which LaTeX commands and environments aren't
4731  supported, bugs (and how to get around them), and how to use the various
4732  options.
4733 \end_layout
4734
4735 \begin_layout Subsection
4736 Converting LyX Documents to LaTeX
4737 \end_layout
4738
4739 \begin_layout Standard
4740 You might wish to convert a LyX Document to a LaTeX file.
4741  For example, a co-worker or co-author who doesn't have LyX might want to
4742  read it.
4743  This is very easy to do with LyX.
4744  Select 
4745 \family sans
4746 \bar under
4747 F
4748 \bar default
4749 ile\SpecialChar \menuseparator
4750
4751 \bar under
4752 E
4753 \bar default
4754 xport\SpecialChar \menuseparator
4755
4756 \bar under
4757 L
4758 \bar default
4759 aTeX
4760 \family default
4761 .
4762  This will create a file 
4763 \family typewriter
4764 whatever.tex
4765 \family default
4766  from the 
4767 \family typewriter
4768 whatever.lyx
4769 \family default
4770  file you are editing.
4771  LyX always creates temporary LaTeX files when viewing or printing files,
4772  so it is very good at generating LaTeX.
4773 \end_layout
4774
4775 \begin_layout Subsection
4776 LaTeX Preamble
4777 \end_layout
4778
4779 \begin_layout Subsubsection
4780 Document Class
4781 \end_layout
4782
4783 \begin_layout Standard
4784 The 
4785 \family sans
4786 \bar under
4787 D
4788 \bar default
4789 ocument\SpecialChar \menuseparator
4790
4791 \bar under
4792 S
4793 \bar default
4794 ettings
4795 \family default
4796  dialog takes care of many of the options that you would input in a 
4797 \family typewriter
4798
4799 \backslash
4800 documentclass
4801 \family default
4802  command.
4803  Change the class, default font size and paper size here.
4804  Put any extra options to the 
4805 \family typewriter
4806
4807 \backslash
4808 documentclass
4809 \family default
4810  command in the 
4811 \family sans
4812 E
4813 \bar under
4814 x
4815 \bar default
4816 tra\InsetSpace ~
4817 Options
4818 \family default
4819  area.
4820 \end_layout
4821
4822 \begin_layout Subsubsection
4823 Other Preamble Matter
4824 \end_layout
4825
4826 \begin_layout Standard
4827 \begin_inset LatexCommand label
4828 name "sec:preamble"
4829
4830 \end_inset
4831
4832 If you have special commands to put in the preamble of a LaTeX file, you
4833  can use them in a LyX document as well.
4834  Select 
4835 \family sans
4836 \bar under
4837 D
4838 \bar default
4839 ocument\SpecialChar \menuseparator
4840
4841 \bar under
4842 L
4843 \bar default
4844 aTeX\InsetSpace ~
4845
4846 \bar under
4847 P
4848 \bar default
4849 reamble
4850 \family default
4851  and type in the dialog window (or from the document settings dialog, depending
4852  on the frontend).
4853  Anything you type will (like with TeX mode) be sent directly to LaTeX.
4854 \end_layout
4855
4856 \begin_layout Subsection
4857 BibTeX
4858 \end_layout
4859
4860 \begin_layout Standard
4861 LyX has support for BibTeX, which allows you to build databases of bibliographic
4862 al references to be used in multiple documents.
4863  Select 
4864 \family sans
4865 \bar under
4866 I
4867 \bar default
4868 nsert\SpecialChar \menuseparator
4869 List\InsetSpace ~
4870 /\InsetSpace ~
4871 T
4872 \bar under
4873 O
4874 \bar default
4875 C\SpecialChar \menuseparator
4876
4877 \bar under
4878 B
4879 \bar default
4880 ibTeX\InsetSpace ~
4881 Reference
4882 \family default
4883  to include a 
4884 \family typewriter
4885 bib
4886 \family default
4887  file.
4888  Click on the resulting 
4889 \begin_inset Quotes eld
4890 \end_inset
4891
4892 BibTeX\InsetSpace ~
4893 Generated\InsetSpace ~
4894 References
4895 \begin_inset Quotes erd
4896 \end_inset
4897
4898  button, and you will get a 
4899 \family sans
4900 BibTeX
4901 \family default
4902  dialog.
4903  In the 
4904 \family sans
4905 Database
4906 \family default
4907  field, type what you would type inside the braces of a 
4908 \family typewriter
4909
4910 \backslash
4911 bibliography{}
4912 \family default
4913  command
4914 \begin_inset Foot
4915 status collapsed
4916
4917 \begin_layout Standard
4918 Like in regular LaTeX, multiple bibliographies should be separated by commas,
4919  with no whitespace.
4920 \end_layout
4921
4922 \end_inset
4923
4924 .
4925  Similarly, in the 
4926 \family sans
4927 Style
4928 \family default
4929  field, type what you would type inside the braces of a 
4930 \family typewriter
4931
4932 \backslash
4933 bibliographystyle{}
4934 \family default
4935  command.
4936 \end_layout
4937
4938 \begin_layout Standard
4939 After you've done this, you can use citations from any bibliographies you're
4940  including with 
4941 \family sans
4942 \bar under
4943 I
4944 \bar default
4945 nsert\SpecialChar \menuseparator
4946
4947 \bar under
4948 C
4949 \bar default
4950 itation
4951 \family default
4952  (see Section\InsetSpace ~
4953
4954 \begin_inset LatexCommand ref
4955 reference "sec:bibliographies"
4956
4957 \end_inset
4958
4959 ).
4960  LyX will take care of running BibTeX.
4961  The box in the 
4962 \family sans
4963 Citation
4964 \family default
4965  dialog will show a list of all the references in your 
4966 \family typewriter
4967 bib
4968 \family default
4969  file.
4970 \end_layout
4971
4972 \begin_layout Section
4973 Errors!
4974 \end_layout
4975
4976 \begin_layout Standard
4977 Sometimes when you LaTeX a document, there will be errors, things that LyX
4978  or LaTeX can't understand.
4979  When this happens, LyX will open a 
4980 \family sans
4981 LaTeX\InsetSpace ~
4982 Errors
4983 \family default
4984  dialog.
4985  Clicking on individual errors in this dialog will take you to the place
4986  in the LyX document where the error occurs and also display the detailed
4987  LaTeX error message.
4988 \end_layout
4989
4990 \end_body
4991 \end_document