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