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