]> git.lyx.org Git - lyx.git/blob - lib/doc/Intro.lyx
merge booktabs branch
[lyx.git] / lib / doc / Intro.lyx
1 #LyX 1.4.0cvs created this file. For more info see http://www.lyx.org/
2 \lyxformat 245
3 \begin_document
4 \begin_header
5 \textclass book
6 \language english
7 \inputencoding default
8 \fontscheme default
9 \graphics default
10 \paperfontsize default
11 \spacing single
12 \papersize default
13 \use_geometry false
14 \use_amsmath 0
15 \cite_engine basic
16 \use_bibtopic false
17 \paperorientation portrait
18 \secnumdepth 2
19 \tocdepth 2
20 \paragraph_separation indent
21 \defskip medskip
22 \quotes_language english
23 \papercolumns 1
24 \papersides 2
25 \paperpagestyle default
26 \tracking_changes false
27 \output_changes true
28 \end_header
29
30 \begin_body
31
32 \begin_layout Title
33 Introduction to LyX
34 \end_layout
35
36 \begin_layout Author
37 by the LyX Team
38 \begin_inset Foot
39 status collapsed
40
41 \begin_layout Standard
42 If you have comments or error corrections, please send them to the LyX Documenta
43 tion mailing list, <lyx-docs@lists.lyx.org>.
44 \end_layout
45
46 \end_inset
47
48
49 \end_layout
50
51 \begin_layout Standard
52 \begin_inset LatexCommand \tableofcontents{}
53
54 \end_inset
55
56
57 \end_layout
58
59 \begin_layout Chapter
60 The Philosophy of LyX
61 \end_layout
62
63 \begin_layout Quote
64 \begin_inset Quotes eld
65 \end_inset
66
67 Uncle Cosmo, why do they call this a word processor?
68 \begin_inset Quotes erd
69 \end_inset
70
71
72 \end_layout
73
74 \begin_layout Quote
75 \begin_inset Quotes eld
76 \end_inset
77
78 It's simple, Skyler.
79  You've seen what food processors do to food, right?
80 \begin_inset Quotes erd
81 \end_inset
82
83
84 \end_layout
85
86 \begin_layout Quote
87
88 \hfill
89 --- Jeff MacNelly in 
90 \begin_inset Quotes eld
91 \end_inset
92
93 Shoe
94 \begin_inset Quotes erd
95 \end_inset
96
97  
98 \end_layout
99
100 \begin_layout Section
101 What is LyX?
102 \end_layout
103
104 \begin_layout Standard
105 LyX is a document preparation system.
106  It excels at letting you create complex technical and scientific articles
107  with mathematics, cross-references, bibliographies, indices, etc.
108  It is very good at documents of any length in which the usual processing
109  abilities are required: automatic sectioning and pagination, spellchecking,
110  and so forth.
111  It can also be used to write a letter to your mom, though granted, there
112  are probably simpler programs available for that.
113  It is definitely not the best tool for creating banners, flyers, or advertiseme
114 nts (we'll explain why later), though with some effort all these can be
115  done, too.
116  Some examples of what it is used for: memos, letters, dissertations and
117  theses, lecture notes, seminar notebooks, conference proceedings, software
118  documentation, books (on PostgreSQL, remote sensing, cryptology, fictional
119  novels, poetry, and even a children's book or two), articles in refereed
120  scientific journals, scripts for plays and movies, business proposals \SpecialChar \ldots{}
121
122  you get the idea.
123 \end_layout
124
125 \begin_layout Standard
126 LyX is a program that provides a modern approach to writing documents with
127  a computer by using a markup language paradigm, an approach that breaks
128  with the obsolete tradition of the 
129 \begin_inset Quotes eld
130 \end_inset
131
132 typewriter concept.
133 \begin_inset Quotes erd
134 \end_inset
135
136  It is designed for authors who want professional output quickly with a
137  minimum of effort without becoming specialists in typesetting.
138  The job of typesetting is done mostly by the computer, not the author;
139  with LyX, the author can concentrate on the contents of her writing.
140 \end_layout
141
142 \begin_layout Standard
143 Part of the initial challenge of using LyX comes from the change in thinking
144  that you, the user, must make.
145  At one time, all we had for creating documents were typewriters, so we
146  all learned certain tricks to get around their limitations.
147  Underlining, which is little more than overstriking with the 
148 \begin_inset Quotes eld
149 \end_inset
150
151 _
152 \begin_inset Quotes erd
153 \end_inset
154
155  character, became a way to emphasize text.
156  You were forced to figure out column sizes and tab stops, and set them,
157  before creating a table.
158  The same applied for letters and other right justified text.
159  Hyphenation at the end of a line required a careful eye and a lot of foresight.
160 \end_layout
161
162 \begin_layout Standard
163 In other words, we've all been trained to worry about the little details
164  of which character goes where.
165  Consequently, almost all word processors have this mentality.
166  They still use tab stops for adding whitespace.
167  You still need to worry about exactly where on the page something will
168  appear.
169  Emphasizing text means changing a font, similar to changing the typewriter
170  wheel.
171  This is the underlying philosophy of a WYSIWYG word processor: 
172 \begin_inset Quotes eld
173 \end_inset
174
175 What You See Is What You Get
176 \begin_inset Quotes erd
177 \end_inset
178
179 .
180  Unfortunately, that paradigm often results in 
181 \begin_inset Quotes eld
182 \end_inset
183
184 What You See Is All You Get
185 \begin_inset Quotes erd
186 \end_inset
187
188 .
189 \end_layout
190
191 \begin_layout Standard
192 This is where LyX differs from an ordinary word processor.
193  You don't concern yourself with what character goes where.
194  You tell LyX 
195 \emph on
196 what you're doing
197 \emph default
198  and LyX takes care of the rest, following a set of rules called a 
199 \emph on
200 style.
201 \emph default
202
203 \begin_inset Foot
204 status collapsed
205
206 \begin_layout Standard
207 To be fair, most recent versions of the most popular office suites now have
208  some sort of style sheets which follow a similar markup method.
209  However, our experience is that they are still rarely used in practice.
210 \end_layout
211
212 \end_inset
213
214  Let's look at a little example:
215 \end_layout
216
217 \begin_layout Standard
218 Suppose you are writing a report.
219  To begin your report, you want a section called 
220 \begin_inset Quotes eld
221 \end_inset
222
223 Introduction\SpecialChar \@.
224
225 \begin_inset Quotes erd
226 \end_inset
227
228  So, you go into whatever menu it is in your word processor that changes
229  font sizes and decide on a new font size.
230  Then you turn on bold face.
231  Then you type, 
232 \begin_inset Quotes eld
233 \end_inset
234
235 1.\InsetSpace ~
236 \InsetSpace ~
237 Introduction
238 \begin_inset Quotes erd
239 \end_inset
240
241 .
242  Of course, if you later decide that this section belongs someplace else
243  in the document, or if you insert a new section before it, you need to
244  change the numbering for this and all following sections, as well as any
245  entry in the table of contents.
246  
247 \end_layout
248
249 \begin_layout Standard
250 In LyX, you go to the pull-down on the far left of the button bar and select
251  
252 \family sans
253 Section
254 \family default
255 , and type 
256 \begin_inset Quotes eld
257 \end_inset
258
259 Introduction\SpecialChar \@.
260
261 \begin_inset Quotes erd
262 \end_inset
263
264
265 \end_layout
266
267 \begin_layout Standard
268 Yes, that's all.
269  If you cut and paste the section, it will automatically be renumbered ---
270  everywhere.
271  And if you enter references to that section correctly (by inserting cross-refer
272 ence tags), LyX will automatically update them all throughout the file so
273  that you never, ever type a section number.
274 \end_layout
275
276 \begin_layout Standard
277 Now let's look at the problem of consistency.
278  Five days later, you reopen your report and start Section\InsetSpace ~
279 4.
280  However, you forget that you were using 18pt bold instead of 16pt, so you
281  type in the heading for Section\InsetSpace ~
282 4 in a different font that what you used
283  for Section\InsetSpace ~
284 1.
285  That problem doesn't even exist in LyX.
286  The computer takes care of all that silly bookkeeping about which thing
287  has what size font, not you.
288  After all, that's what a computer is good at.
289 \end_layout
290
291 \begin_layout Standard
292 Here's another example.
293  Suppose you're making a list.
294  In other word processors, a list is just a bunch of tab stops and newlines.
295  You need to figure out where to put the label for each list item, what
296  that label should be, how many blank lines to put between each item, and
297  so on.
298  Under LyX, you have only two concerns: what kind of list is this, and what
299  do I want to put in it.
300  That's it.
301 \end_layout
302
303 \begin_layout Standard
304 So, the basic idea behind LyX is: specify 
305 \emph on
306 what
307 \emph default
308  you're doing, not 
309 \emph on
310 how
311 \emph default
312  to do it.
313  Instead of 
314 \begin_inset Quotes eld
315 \end_inset
316
317 What You See Is What You Get,
318 \begin_inset Quotes erd
319 \end_inset
320
321  the LyX model is 
322 \begin_inset Quotes eld
323 \end_inset
324
325 What You See Is What You 
326 \emph on
327 Mean
328 \emph default
329
330 \begin_inset Quotes erd
331 \end_inset
332
333  or 
334 \begin_inset Quotes eld
335 \end_inset
336
337 WYSIWYM.
338 \begin_inset Quotes erd
339 \end_inset
340
341  It's a powerful idea that greatly simplifies the mechanics of writing documents.
342  This is also why LyX isn't so good for creating posters and flyers---in
343  this case, you 
344 \emph on
345 do
346 \emph default
347  want to specify exactly where everything goes, because there are no functional
348  units like paragraphs, sections, etc.
349  This doesn't mean LyX is missing some cool function.
350  It simply means that it isn't the right tool for the job --- you don't
351  use a screwdriver to drive in nails (unless your screwdriver comes with
352  a lifetime warranty).
353 \end_layout
354
355 \begin_layout Section
356 Differences between LyX and Other Word 
357 \newline
358 Processors
359 \begin_inset OptArg
360 status collapsed
361
362 \begin_layout Standard
363 LyX and Other Word Processors
364 \end_layout
365
366 \end_inset
367
368
369 \begin_inset Foot
370 status collapsed
371
372 \begin_layout Standard
373 No, we're not trying to start (or win) a word processor holy war here.
374  But we do think it's important to describe LyX's features.
375  And one of LyX's main features, WYSIWYM, is a fundamentally different concept
376  than the one that most of people have about word processing.
377 \end_layout
378
379 \end_inset
380
381
382 \end_layout
383
384 \begin_layout Standard
385 Here's a list of things you won't find in LyX:
386 \end_layout
387
388 \begin_layout Itemize
389 The document ruler
390 \end_layout
391
392 \begin_layout Itemize
393 Tab stops
394 \end_layout
395
396 \begin_layout Itemize
397 Extra whitespace (i.e.
398  hitting 
399 \family sans
400 Enter
401 \family default
402  or 
403 \family sans
404 Space
405 \family default
406  two or more times)
407 \end_layout
408
409 \begin_layout Standard
410 Tab stops, along with a ruler showing you the position of things on the
411  page, are useless in LyX.
412  The program worries about where things go on the page, not you.
413  Extra whitespace is similar; LyX adds them where necessary, depending on
414  context.
415  Not being able to type two blank lines in a row will be annoying at first,
416  but it makes more sense once you're thinking in WYSIWYM terms.
417 \end_layout
418
419 \begin_layout Standard
420 Here are some things that exist in LyX, but aren't used as you might think:
421 \end_layout
422
423 \begin_layout Itemize
424 Indenting controls
425 \end_layout
426
427 \begin_layout Itemize
428 Page breaks
429 \end_layout
430
431 \begin_layout Itemize
432 Line spacing (i.e.
433  single spaced, double spaced, etc.)
434 \end_layout
435
436 \begin_layout Itemize
437 Whitespace, horizontal and vertical
438 \end_layout
439
440 \begin_layout Itemize
441 Fonts and font sizes
442 \end_layout
443
444 \begin_layout Itemize
445 Typefaces (bold, italic, underline, etc.)
446 \end_layout
447
448 \begin_layout Standard
449 Although they exist in LyX, you generally don't need them.
450  LyX will take care of these things for you, depending on what you're doing.
451  Different parts of the document are automatically set in a different typeface
452  and font size.
453  Paragraph indenting is context dependent; different types of paragraphs
454  get indented differently.
455  Page breaks get handled automatically, as well.
456  In general, the space between lines, between words, and between paragraphs
457  is variable, set by LyX.
458 \begin_inset Foot
459 status collapsed
460
461 \begin_layout Standard
462 There are ways to adjust all of these (only some of which require knowledge
463  of LaTeX), either for a whole document or for a specific location in a
464  document.
465  See the 
466 \emph on
467 User's Guide
468 \emph default
469  and/or the 
470 \emph on
471 Extended Features
472 \emph default
473  manual for details.
474 \end_layout
475
476 \end_inset
477
478  
479 \end_layout
480
481 \begin_layout Standard
482 Lastly, there are a few areas where we believe LyX (and LaTeX) surpasses
483  many word processors:
484 \end_layout
485
486 \begin_layout Itemize
487 Hyphenation
488 \end_layout
489
490 \begin_layout Itemize
491 Lists of any type
492 \end_layout
493
494 \begin_layout Itemize
495 Mathematics
496 \end_layout
497
498 \begin_layout Itemize
499 Tables
500 \end_layout
501
502 \begin_layout Itemize
503 Cross-referencing
504 \end_layout
505
506 \begin_layout Standard
507 Granted, many modern word processors can handle mathematical symbols, tables,
508  and hyphenation, and many have moved towards style definitions and the
509  WYSIWYM concept.
510  However, they've only recently been able to do so, whereas LyX is built
511  upon the LaTeX document preparation system.
512  LaTeX has been around for decades, and 
513 \emph on
514 works
515 \emph default
516 .
517 \end_layout
518
519 \begin_layout Section
520 What the heck 
521 \emph on
522 is
523 \emph default
524  LaTeX (and why do I care)?
525 \end_layout
526
527 \begin_layout Standard
528 LaTeX is a document preparation system designed by Leslie Lamport in 1985.
529 \begin_inset Foot
530 status collapsed
531
532 \begin_layout Standard
533 The source for the info in this section is 
534 \begin_inset Quotes eld
535 \end_inset
536
537
538 \emph on
539 A Guide to LaTeX2e
540 \emph default
541 ,
542 \begin_inset Quotes erd
543 \end_inset
544
545  by Helmut Kopka and Patrick Daly, which has an entry in the bibliography
546  of the 
547 \emph on
548 User's Guide
549 \emph default
550 \SpecialChar \@.
551
552 \end_layout
553
554 \end_inset
555
556  It, in turn, was built up from a typesetting language called TeX, created
557  by Donald Knuth in 1984.
558  
559 \begin_inset Quotes eld
560 \end_inset
561
562 TeX
563 \begin_inset Quotes erd
564 \end_inset
565
566  is pronounced like 
567 \begin_inset Quotes eld
568 \end_inset
569
570 blech!
571 \begin_inset Quotes erd
572 \end_inset
573
574  which is how many people feel about it.
575  However, most folks don't understand just what TeX is.
576  TeX takes a sequence of typesetting commands, written in a script in an
577  ASCII file, and executes them.
578  It's a bit more complicated than a typewriter, but not nearly as involved
579  as an actual printing press; however, many of the 
580 \begin_inset Quotes eld
581 \end_inset
582
583 tricks
584 \begin_inset Quotes erd
585 \end_inset
586
587  of the printing trade were modeled by Knuth as computer algorithms and
588  incorporated into TeX, thus its excellent printed appearance.
589  In any case, what comes directly out of TeX is the so-called 
590 \begin_inset Quotes eld
591 \end_inset
592
593 device independent
594 \begin_inset Quotes erd
595 \end_inset
596
597  format file, or 
598 \family typewriter
599 dvi
600 \family default
601  for short.
602  You can then feed the 
603 \family typewriter
604 dvi
605 \family default
606  file to anything that understands 
607 \family typewriter
608 dvi
609 \family default
610 , or converts 
611 \family typewriter
612 dvi
613 \family default
614  to other formats like PostScript®, PDF, etc.
615  
616 \end_layout
617
618 \begin_layout Standard
619 If it weren't for one other feature, all TeX would be is a typesetting engine.
620  However, TeX also allows you to define macros.
621  This is where the action begins.
622 \end_layout
623
624 \begin_layout Standard
625 Most people who use TeX are actually using a macro package which Knuth created
626  to hide a lot of the typesetting details.
627  This is what most people think of when they think of TeX\SpecialChar \@.
628  Ordinary users
629  don't work with raw TeX, which are the bare-bones typesetting commands.
630  People creating new macro-packages do that.
631  This is where Leslie Lamport enters our story.
632  He wanted a macro package that was more user-oriented and less typesetter-orien
633 ted, a set of commands that consistently typeset things like sections or
634  tables or math formulae in a uniform, consistent fashion with as little
635  fuss as possible.
636  This is how LaTeX was born.
637 \end_layout
638
639 \begin_layout Standard
640 Now, in parallel with the development and growth of LaTeX, other folks were
641  creating their own custom macro packages for TeX, ones to make slides or
642  articles for math journals and so on.
643  Some used the raw TeX facilities to do this, others began modifying LaTeX.
644  To try and unify this mess, a team of LaTeX-nicians (including Lamport,
645  of course) began to work on LaTeX2e, the current version of LaTeX, during
646  the late 1980's.
647  This new version of LaTeX has commands which provide an easier-to-use interface
648  to TeX's macro-creating commands (remember TeX?), aid in the use of new
649  fonts, and so on.
650  In fact, LaTeX is quite an extensive language in its own right! Users around
651  the world have been creating their own add-ons for LaTeX beyond the standard
652  ones.
653 \end_layout
654
655 \begin_layout Standard
656 There are two ways to extend LaTeX: classes and styles.
657  A 
658 \emph on
659 class
660 \emph default
661  is a set of LaTeX (and TeX) macros describing a new type of document, like
662  a book, or an article.
663  There are classes for slides, for physics and math journals\SpecialChar \ldots{}
664  many universities
665  even have a class for their thesis format! A 
666 \emph on
667 style
668 \emph default
669  differs from a class in that it doesn't define a new type of document,
670  but a different type of 
671 \emph on
672 behavior
673 \emph default
674  that any document can use.
675  For example, LyX controls page margins and line spacing using two different
676  LaTeX style-files designed for these purposes.
677  There are style-files for a whole slew of things: printing labels or envelopes,
678  changing indentation behavior, adding new fonts, manipulating graphics,
679  designing fancy page headings, customizing bibliographies, altering the
680  location and appearance of footnotes, tables, and figures, customizing
681  lists, et cetera.
682 \end_layout
683
684 \begin_layout Standard
685 Here's a summary:
686 \end_layout
687
688 \begin_layout List
689 \labelwidthstring 00.00.0000
690 TeX: Typesetting language with macro capability.
691 \end_layout
692
693 \begin_layout List
694 \labelwidthstring 00.00.0000
695 LaTeX: Macro package built upon TeX\SpecialChar \@.
696
697 \end_layout
698
699 \begin_layout List
700 \labelwidthstring 00.00.0000
701 classes: Descriptions of a type of document, using LaTeX\SpecialChar \@.
702
703 \end_layout
704
705 \begin_layout List
706 \labelwidthstring 00.00.0000
707 styles: Alters the default behavior of LaTeX in some way.
708 \end_layout
709
710 \begin_layout List
711 \labelwidthstring 00.00.0000
712 LyX: Visual, WYSIWYM word-processor that uses LaTeX in all its glory to
713  do its printing.
714 \end_layout
715
716 \begin_layout Standard
717 The idea of this section was to try and explain 
718 \emph on
719 why
720 \emph default
721  LyX works somewhat differently from other word processors.
722  The reason is simple: LyX uses LaTeX as its printing backend.
723  Just like LaTeX, LyX focuses on the context of your writing --- 
724 \emph on
725 what
726 \emph default
727  you are typing.
728  The computer then handles how it should look.
729 \end_layout
730
731 \begin_layout Standard
732 Oh --- one last thing.
733  LaTeX is pronounced like TeX is.
734  It rhymes with 
735 \begin_inset Quotes eld
736 \end_inset
737
738 hey blech.
739 \begin_inset Quotes erd
740 \end_inset
741
742
743 \begin_inset Foot
744 status collapsed
745
746 \begin_layout Standard
747 or 
748 \begin_inset Quotes eld
749 \end_inset
750
751 ha blech
752 \begin_inset Quotes erd
753 \end_inset
754
755 , depending on how you pronounce your 
756 \begin_inset Quotes eld
757 \end_inset
758
759 a
760 \begin_inset Quotes erd
761 \end_inset
762
763 s\SpecialChar \ldots{}
764
765 \end_layout
766
767 \end_inset
768
769  Usually.
770  Lamport says in his book, though, that 
771 \begin_inset Quotes eld
772 \end_inset
773
774
775 \emph on
776 lay
777 \emph default
778 -tecks is also possible
779 \begin_inset Quotes erd
780 \end_inset
781
782 .
783  
784 \begin_inset Quotes eld
785 \end_inset
786
787 LyX,
788 \begin_inset Quotes erd
789 \end_inset
790
791  on the other hand, is pronounced 
792 \begin_inset Quotes eld
793 \end_inset
794
795 licks.
796 \begin_inset Quotes erd
797 \end_inset
798
799  Or 
800 \begin_inset Quotes eld
801 \end_inset
802
803 lucks,
804 \begin_inset Quotes erd
805 \end_inset
806
807  or 
808 \begin_inset Quotes eld
809 \end_inset
810
811 looks,
812 \begin_inset Quotes erd
813 \end_inset
814
815  depending on what country you're from \SpecialChar \ldots{}
816  but numerous holy wars and flame
817  fests have been started over this issue on the LyX mailing lists, so please
818  just pronounce it however you please.
819  Just don't pronounce it 
820 \begin_inset Quotes eld
821 \end_inset
822
823 word
824 \begin_inset Quotes erd
825 \end_inset
826
827 .
828  
829 \family typewriter
830 :-)
831 \end_layout
832
833 \begin_layout Chapter
834 Navigating the Documentation
835 \end_layout
836
837 \begin_layout Standard
838 To make it easier to answer your questions and describe all of the features
839  of LyX, the documentation has been split up into several different files.
840  Each one has its own purpose, as described below.
841  Before you go plowing into any of those files, however, you should read
842  this chapter thoroughly first, since it contains a lot of useful information
843  and commentary that can save you some time.
844 \end_layout
845
846 \begin_layout Standard
847 Although LyX is now well past the 
848 \begin_inset Quotes eld
849 \end_inset
850
851 version 1.0
852 \begin_inset Quotes erd
853 \end_inset
854
855  mark, some of the documentation may be incomplete or a bit out of date,
856  though we try to keep up.
857  Like the rest of LyX, the manuals are the work of a group of volunteers
858  who have 
859 \begin_inset Quotes eld
860 \end_inset
861
862 Real Jobs
863 \begin_inset Quotes erd
864 \end_inset
865
866 , families, dishes to clean, kitty litter to dispose of, et cetera.
867  If you want to help out, be sure to read Chapter\InsetSpace ~
868
869 \begin_inset LatexCommand \ref{chp:Contrib}
870
871 \end_inset
872
873  in addition to the rest of this document.)
874 \end_layout
875
876 \begin_layout Standard
877 Also, please do us a favor---if anything in these manuals confuses you,
878  is unclear, or wrong, don't hesitate to let us know! You can reach the
879  current document maintainers by mailing to 
880 \family typewriter
881 lyx-docs@lists.lyx.org
882 \family default
883 .
884  If you have questions which are not obviously answered in the documentation,
885  and need help fast, there is an active users' mailing list which you can
886  reach at 
887 \family typewriter
888 lyx-users@lists.lyx.org
889 \family default
890 .
891 \end_layout
892
893 \begin_layout Section
894 The Format of the Manuals
895 \end_layout
896
897 \begin_layout Standard
898 Some of you may have printed out the manual(s).
899  Others may be reading it online, within LyX as a file.
900  For those reading online, there are some differences from the printed version.
901  First, the title is simply at the top of the document, not formatted on
902  a separate page as in some of the printed versions.
903  Nor are any of the footnotes or the Table of Contents visible.
904  To open a footnote, which looks like this,
905 \begin_inset Foot
906 status collapsed
907
908 \begin_layout Standard
909 Hi! 
910 \end_layout
911
912 \begin_layout Standard
913 To close me, click on the grey box on the top left of this box, the one
914  with the word 
915 \begin_inset Quotes eld
916 \end_inset
917
918 foot
919 \begin_inset Quotes erd
920 \end_inset
921
922  in it.
923 \end_layout
924
925 \end_inset
926
927  click on it with the left mouse button.
928  For the Table of Contents, either click on the grey box, or click on the
929  
930 \family sans
931 \bar under
932 N
933 \bar default
934 avigate
935 \family default
936  menu, where the contents are displayed automatically\SpecialChar \@.
937  (Try it!)
938 \end_layout
939
940 \begin_layout Standard
941 In the printed manuals, all cross-references appear as the actual numbers
942  for a chapter, section, subsection, and so on.
943  Online, however, all cross-references appear as a grey box like the following:
944  
945 \begin_inset LatexCommand \ref{chp:Contrib}
946
947 \end_inset
948
949 .
950  (The printed manuals show a number instead.) If you click on that box with
951  the left mouse button, a dialog box will appear containing a list of all
952  the cross-references in the document.
953  This introduction has only one named 
954 \begin_inset Quotes eld
955 \end_inset
956
957 chp:Contrib
958 \begin_inset Quotes erd
959 \end_inset
960
961 .
962  You can go to the section the referred to by clicking the button labeled
963  "Go to reference".
964  Going back to where you came from is just as easy.
965  Clicking on 
966 \begin_inset Quotes eld
967 \end_inset
968
969 Go back
970 \begin_inset Quotes erd
971 \end_inset
972
973  or typing 
974 \family sans
975 C-<
976 \family default
977  will take you back to your earlier location.
978  (What does 
979 \begin_inset Quotes eld
980 \end_inset
981
982
983 \family sans
984 C-<
985 \family default
986
987 \begin_inset Quotes erd
988 \end_inset
989
990  mean? See below.)
991 \end_layout
992
993 \begin_layout Standard
994 Now that we've cleared up some of the differences between the printed and
995  online versions of this file, we can start looking at the format of this
996  document.
997  You'll occasionally notice things in different fonts:
998 \end_layout
999
1000 \begin_layout Itemize
1001
1002 \emph on
1003 Emphasized Style
1004 \emph default
1005  is used for general emphasis, generic arguments, book titles, names of
1006  sections of other manuals, and notes from the authors.
1007 \end_layout
1008
1009 \begin_layout Itemize
1010
1011 \family typewriter
1012 Typewriter
1013 \family default
1014  is used for program and file names, LaTeX code, and LyX code and functions.
1015 \end_layout
1016
1017 \begin_layout Itemize
1018
1019 \family sans
1020 Sans Serif
1021 \family default
1022  is used for menu, button, or dialog box names, and the names of keyboard
1023  keys.
1024 \end_layout
1025
1026 \begin_layout Itemize
1027
1028 \noun on
1029 Noun Style
1030 \noun default
1031  is used for people's names.
1032 \end_layout
1033
1034 \begin_layout Standard
1035 For menu accelerator keys and other more obscure keybindings, you'll probably
1036  get referred to the 
1037 \emph on
1038 Key Bindings
1039 \emph default
1040  section of the 
1041 \begin_inset Quotes eld
1042 \end_inset
1043
1044
1045 \emph on
1046 Extended Features Manual
1047 \emph default
1048
1049 \begin_inset Quotes erd
1050 \end_inset
1051
1052  (the file 
1053 \family typewriter
1054 Extended.lyx
1055 \family default
1056 ).
1057  When we do need to reference keys, we'll use the following prefixing convention
1058 :
1059 \end_layout
1060
1061 \begin_layout Itemize
1062 \begin_inset Quotes eld
1063 \end_inset
1064
1065
1066 \family sans
1067 C-
1068 \family default
1069
1070 \begin_inset Quotes erd
1071 \end_inset
1072
1073  indicates the 
1074 \family sans
1075 Control-
1076 \family default
1077  key.
1078 \end_layout
1079
1080 \begin_layout Itemize
1081 \begin_inset Quotes eld
1082 \end_inset
1083
1084
1085 \family sans
1086 S-
1087 \family default
1088
1089 \begin_inset Quotes erd
1090 \end_inset
1091
1092  indicates the 
1093 \family sans
1094 Shift-
1095 \family default
1096  key.
1097 \end_layout
1098
1099 \begin_layout Itemize
1100 \begin_inset Quotes eld
1101 \end_inset
1102
1103
1104 \family sans
1105 M-
1106 \family default
1107
1108 \begin_inset Quotes erd
1109 \end_inset
1110
1111  indicates the 
1112 \family sans
1113 Meta-
1114 \family default
1115  key, which on some keyboards will be the 
1116 \family sans
1117 Alt-
1118 \family default
1119  key.
1120 \end_layout
1121
1122 \begin_layout Itemize
1123 \begin_inset Quotes eld
1124 \end_inset
1125
1126
1127 \family sans
1128 F1
1129 \family default
1130
1131 \begin_inset Quotes erd
1132 \end_inset
1133
1134  \SpecialChar \ldots{}
1135  
1136 \begin_inset Quotes eld
1137 \end_inset
1138
1139
1140 \family sans
1141 F12
1142 \family default
1143
1144 \begin_inset Quotes erd
1145 \end_inset
1146
1147  are the function keys.
1148 \end_layout
1149
1150 \begin_layout Itemize
1151 \begin_inset Quotes eld
1152 \end_inset
1153
1154
1155 \family sans
1156 Esc
1157 \family default
1158
1159 \begin_inset Quotes erd
1160 \end_inset
1161
1162  is the escape key.
1163 \end_layout
1164
1165 \begin_layout Itemize
1166 \begin_inset Quotes eld
1167 \end_inset
1168
1169
1170 \family sans
1171 Left
1172 \family default
1173
1174 \begin_inset Quotes erd
1175 \end_inset
1176
1177  
1178 \begin_inset Quotes eld
1179 \end_inset
1180
1181
1182 \family sans
1183 Right
1184 \family default
1185
1186 \begin_inset Quotes erd
1187 \end_inset
1188
1189  
1190 \begin_inset Quotes eld
1191 \end_inset
1192
1193
1194 \family sans
1195 Up
1196 \family default
1197
1198 \begin_inset Quotes erd
1199 \end_inset
1200
1201  
1202 \begin_inset Quotes eld
1203 \end_inset
1204
1205
1206 \family sans
1207 Down
1208 \family default
1209
1210 \begin_inset Quotes erd
1211 \end_inset
1212
1213 : self-explanatory.
1214 \end_layout
1215
1216 \begin_layout Itemize
1217
1218 \family sans
1219 \begin_inset Quotes eld
1220 \end_inset
1221
1222 Insert
1223 \family default
1224
1225 \begin_inset Quotes erd
1226 \end_inset
1227
1228  
1229 \begin_inset Quotes eld
1230 \end_inset
1231
1232
1233 \family sans
1234 Delete
1235 \family default
1236
1237 \begin_inset Quotes erd
1238 \end_inset
1239
1240  
1241 \begin_inset Quotes eld
1242 \end_inset
1243
1244
1245 \family sans
1246 Home
1247 \family default
1248
1249 \begin_inset Quotes erd
1250 \end_inset
1251
1252  
1253 \begin_inset Quotes eld
1254 \end_inset
1255
1256
1257 \family sans
1258 End
1259 \family default
1260
1261 \begin_inset Quotes erd
1262 \end_inset
1263
1264  
1265 \begin_inset Quotes eld
1266 \end_inset
1267
1268
1269 \family sans
1270 PageUp
1271 \family default
1272
1273 \begin_inset Quotes erd
1274 \end_inset
1275
1276  
1277 \begin_inset Quotes eld
1278 \end_inset
1279
1280
1281 \family sans
1282 PageDown
1283 \family default
1284
1285 \begin_inset Quotes erd
1286 \end_inset
1287
1288 : these are the 6 keys that appear above the cursor keys on many PC keyboards.
1289  
1290 \begin_inset Quotes eld
1291 \end_inset
1292
1293
1294 \family sans
1295 PageUp
1296 \family default
1297
1298 \begin_inset Quotes erd
1299 \end_inset
1300
1301  and 
1302 \begin_inset Quotes eld
1303 \end_inset
1304
1305
1306 \family sans
1307 PageDown
1308 \family default
1309
1310 \begin_inset Quotes erd
1311 \end_inset
1312
1313  are called 
1314 \begin_inset Quotes eld
1315 \end_inset
1316
1317
1318 \family sans
1319 Prior
1320 \family default
1321
1322 \begin_inset Quotes erd
1323 \end_inset
1324
1325  and 
1326 \begin_inset Quotes eld
1327 \end_inset
1328
1329
1330 \family sans
1331 Next
1332 \family default
1333
1334 \begin_inset Quotes erd
1335 \end_inset
1336
1337  on some keyboards.
1338 \end_layout
1339
1340 \begin_layout Itemize
1341
1342 \family sans
1343 Return
1344 \family default
1345  and 
1346 \family sans
1347 Enter
1348 \family default
1349  both refer to the same key.
1350  Some keyboards label the 
1351 \family sans
1352 Return
1353 \family default
1354  key as 
1355 \begin_inset Quotes eld
1356 \end_inset
1357
1358 Return,
1359 \begin_inset Quotes erd
1360 \end_inset
1361
1362  others as 
1363 \begin_inset Quotes eld
1364 \end_inset
1365
1366 Enter,
1367 \begin_inset Quotes erd
1368 \end_inset
1369
1370  still others have two keys.
1371  LyX treats all of them as the same key, so we'll use 
1372 \family sans
1373 Return
1374 \family default
1375  and 
1376 \family sans
1377 Enter
1378 \family default
1379  interchangeably.
1380 \end_layout
1381
1382 \begin_layout Standard
1383 You'll also see something like 
1384 \begin_inset Quotes eld
1385 \end_inset
1386
1387 (See 
1388 \emph on
1389
1390 \begin_inset Quotes els
1391 \end_inset
1392
1393 Extended
1394 \emph default
1395
1396 \begin_inset Quotes ers
1397 \end_inset
1398
1399 )
1400 \begin_inset Quotes erd
1401 \end_inset
1402
1403  from time to time.
1404  We've listed the possible default keybindings for a function in its entry
1405  in the 
1406 \begin_inset Quotes eld
1407 \end_inset
1408
1409
1410 \emph on
1411 Extended Features Manual
1412 \emph default
1413 ,
1414 \begin_inset Quotes erd
1415 \end_inset
1416
1417  so check there, too.
1418  Note that there are two different keybinding maps in common use in the
1419  LyX community: the 
1420 \begin_inset Quotes eld
1421 \end_inset
1422
1423 CUA
1424 \begin_inset Quotes erd
1425 \end_inset
1426
1427  style which is the default and familiar to those coming from the PC world,
1428  and the 
1429 \begin_inset Quotes eld
1430 \end_inset
1431
1432 emacs
1433 \begin_inset Quotes erd
1434 \end_inset
1435
1436  style, which is common with those who 
1437 \begin_inset Quotes eld
1438 \end_inset
1439
1440 grew up
1441 \begin_inset Quotes erd
1442 \end_inset
1443
1444  on Unix systems and use the Emacs editor.
1445  Unless specifically noted, the keybindings in the documentation are from
1446  the default CUA map.
1447  If you like Emacs, you should be smart enough to read the documentation
1448  and figure out the bindings on your own.
1449 \end_layout
1450
1451 \begin_layout Section
1452 The Manuals
1453 \end_layout
1454
1455 \begin_layout Standard
1456 The following list describes the contents of each of the files in the documentat
1457 ion:
1458 \end_layout
1459
1460 \begin_layout Description
1461
1462 \emph on
1463 Introduction
1464 \end_layout
1465
1466 \begin_deeper
1467 \begin_layout Standard
1468 This file.
1469 \end_layout
1470
1471 \end_deeper
1472 \begin_layout Description
1473
1474 \emph on
1475 Tutorial 
1476 \end_layout
1477
1478 \begin_deeper
1479 \begin_layout Standard
1480 If you are new to LyX, and have never used LaTeX before, you should start
1481  here.
1482  If you think LaTeX is the stuff they make condoms out of, then you definitely
1483  need to reread Chapter 1, then read the 
1484 \emph on
1485 Tutorial
1486 \emph default
1487 .
1488  Note that after you read the 
1489 \emph on
1490 Tutorial
1491 \emph default
1492 , you'll probably still think LaTeX is some stretchy substance --- but you
1493  
1494 \emph on
1495 will
1496 \emph default
1497  know how to use LyX.
1498 \end_layout
1499
1500 \begin_layout Standard
1501 If you 
1502 \emph on
1503 have
1504 \emph default
1505  used LaTeX before, you should still read the 
1506 \emph on
1507 Tutorial
1508 \emph default
1509 , starting with the section on 
1510 \begin_inset Quotes eld
1511 \end_inset
1512
1513 LyX for LaTeX users.
1514 \begin_inset Quotes erd
1515 \end_inset
1516
1517  (Skimming the rest of the document wouldn't hurt, either.)
1518 \end_layout
1519
1520 \begin_layout Standard
1521 If, at any time, you find yourself feeling a bit clueless with respect to
1522  LyX, try perusing the 
1523 \emph on
1524 Tutorial
1525 \emph default
1526  before diving into any of the other manuals.
1527  It's a good springboard.
1528 \end_layout
1529
1530 \end_deeper
1531 \begin_layout Description
1532
1533 \emph on
1534 User's\InsetSpace ~
1535 Guide
1536 \end_layout
1537
1538 \begin_deeper
1539 \begin_layout Standard
1540 The primary documentation.
1541  We'll cover 
1542 \emph on
1543 most
1544 \emph default
1545  of the basic operation and available features of LyX here.
1546  The main manual assumes that you've read the 
1547 \emph on
1548 Tutorial
1549 \emph default
1550 .
1551 \end_layout
1552
1553 \end_deeper
1554 \begin_layout Description
1555
1556 \emph on
1557 Extended\InsetSpace ~
1558 Features
1559 \end_layout
1560
1561 \begin_deeper
1562 \begin_layout Standard
1563 Extension of the 
1564 \emph on
1565 User's Guide
1566 \emph default
1567 .
1568  Documents how to use raw LaTeX commands, additional layouts, and special-purpos
1569 e editing features, and includes some of the (rather bizarre, but nifty)
1570  tricks of the LaTeX masters.
1571 \end_layout
1572
1573 \end_deeper
1574 \begin_layout Description
1575
1576 \emph on
1577 Customization
1578 \end_layout
1579
1580 \begin_deeper
1581 \begin_layout Standard
1582 A description of advanced LyX features, including how to customize the overall
1583  behavior of LyX\SpecialChar \@.
1584  This includes such things as keybindings, internationalization,
1585  and configuration files.
1586  Don't even think of going in here until you read the 
1587 \emph on
1588 Tutorial
1589 \emph default
1590 .
1591 \end_layout
1592
1593 \end_deeper
1594 \begin_layout Description
1595
1596 \emph on
1597 LaTeX\InsetSpace ~
1598 configuration
1599 \end_layout
1600
1601 \begin_deeper
1602 \begin_layout Standard
1603 LyX investigates your system upon installation.
1604  This file contains info on what LyX learned about your installation.
1605  Check it to see if you're missing something you might like to have.
1606 \end_layout
1607
1608 \end_deeper
1609 \begin_layout Standard
1610 These files will reference one another as necessary.
1611  For example, the 
1612 \emph on
1613 User's Guide
1614 \emph default
1615  contains 
1616 \emph on
1617 some
1618 \emph default
1619  information on installation and customization, but refers the reader to
1620  the 
1621 \emph on
1622 Customization Manual
1623 \emph default
1624  for more information.
1625 \end_layout
1626
1627 \begin_layout Standard
1628 We'll state again an important point:
1629 \end_layout
1630
1631 \begin_layout Standard
1632 \begin_inset VSpace bigskip
1633 \end_inset
1634
1635
1636 \end_layout
1637
1638 \begin_layout Standard
1639 \align center
1640 If you are new to LyX, read the 
1641 \emph on
1642 Tutorial
1643 \emph default
1644 .
1645  Now\SpecialChar \@.
1646
1647 \end_layout
1648
1649 \begin_layout Standard
1650 \begin_inset VSpace bigskip
1651 \end_inset
1652
1653
1654 \end_layout
1655
1656 \begin_layout Standard
1657 Otherwise, you could needlessly frustrate yourself.
1658  LyX does all that you need a word processor to do, but using a different
1659  approach.
1660 \end_layout
1661
1662 \begin_layout Chapter
1663 \begin_inset LatexCommand \label{chp:Contrib}
1664
1665 \end_inset
1666
1667 Contributing to the LyX Project
1668 \end_layout
1669
1670 \begin_layout Section
1671 Contributing to LyX
1672 \end_layout
1673
1674 \begin_layout Standard
1675 LyX is mostly written in C++.
1676  It is a large project, and as a result it is not free from bugs, or the
1677  need for improvements in the source code.
1678 \end_layout
1679
1680 \begin_layout Subsection
1681 Reporting a bug
1682 \end_layout
1683
1684 \begin_layout Standard
1685 While using LyX, you may find behaviour which you consider a bug.
1686  Crashes, though rare, can happen.
1687  User interface problems are considered major bugs by the LyX team: especially
1688  helpful are indications of parts of the LyX interface you find confusing,
1689  or unclear.
1690 \end_layout
1691
1692 \begin_layout Standard
1693 LyX has a bug tracking system, which you can find at 
1694 \family typewriter
1695
1696 \begin_inset LatexCommand \htmlurl[LyX bug tracker]{http://bugzilla.lyx.org/}
1697
1698 \end_inset
1699
1700
1701 \family default
1702 .
1703  You should check the bug tracker before reporting any bugs, in case it
1704  has already been reported.
1705  If you have a comment on an existing bug, or wish to report a new bug,
1706  you may either use the bug tracker, or send an e-mail to the development
1707  mailing list, 
1708 \family typewriter
1709 lyx-devel@lists.lyx.org
1710 \family default
1711 .
1712  Archives of this list are linked from the main LyX website, 
1713 \family typewriter
1714
1715 \begin_inset LatexCommand \htmlurl[LyX website]{http://www.lyx.org/}
1716
1717 \end_inset
1718
1719
1720 \family default
1721 .
1722 \end_layout
1723
1724 \begin_layout Standard
1725 A good (useful) bug report will at a minimum include the version of LyX
1726  you are having the problem with.
1727  Accurate, detailed descriptions are preferred - the more time developers
1728  have to spend to pinpoint the source of a bug, the less time they have
1729  for other improvements.
1730  Mention the system and system version you are running LyX with.
1731  Give the versions of the libraries you have installed on your system, and,
1732  if relevant, the versions of external programs that LyX uses.
1733  If it's a compilation or configuration problem, include the file 
1734 \family typewriter
1735 config.log
1736 \family default
1737 , and mention which compiler you are using.
1738  
1739 \end_layout
1740
1741 \begin_layout Standard
1742 If you can make LyX crash, please take the time to produce a backtrace with
1743  a non-stripped lyx executable.
1744  The one built in the source directory is per default not stripped, while
1745  the installed binary is stripped.
1746  So, run LyX from gdb by typing, for example, 
1747 \begin_inset Quotes eld
1748 \end_inset
1749
1750
1751 \family typewriter
1752 \size small
1753 gdb /users/steve/lyx-1.0.x/src/lyx
1754 \family default
1755 \size default
1756
1757 \begin_inset Quotes erd
1758 \end_inset
1759
1760  and then 
1761 \begin_inset Quotes eld
1762 \end_inset
1763
1764
1765 \family typewriter
1766 \size small
1767 run
1768 \family default
1769 \size default
1770
1771 \begin_inset Quotes erd
1772 \end_inset
1773
1774 .
1775  Make LyX crash and you'll return to gdb.
1776  Use 
1777 \begin_inset Quotes eld
1778 \end_inset
1779
1780
1781 \family typewriter
1782 \size small
1783 bt
1784 \family default
1785 \size default
1786
1787 \begin_inset Quotes erd
1788 \end_inset
1789
1790  to produce a backtrace and include the output in the bug report
1791 \begin_inset Foot
1792 status collapsed
1793
1794 \begin_layout Standard
1795 if you want to be thorough, use the 
1796 \begin_inset Quotes eld
1797 \end_inset
1798
1799
1800 \family typewriter
1801 info locals
1802 \family default
1803
1804 \begin_inset Quotes erd
1805 \end_inset
1806
1807  and 
1808 \begin_inset Quotes eld
1809 \end_inset
1810
1811
1812 \family typewriter
1813 up
1814 \family default
1815
1816 \begin_inset Quotes erd
1817 \end_inset
1818
1819  commands to print out the values of local variables at a few stack levels.
1820 \end_layout
1821
1822 \end_inset
1823
1824 .
1825  If possible, then a description of a way to reproduce the bug is more important
1826  than a backtrace, because then we have the possibility to roll our own
1827  backtrace.
1828  If the bug is not easily reproducible, a backtrace is essential, because
1829  then that might be all we've got.
1830 \end_layout
1831
1832 \begin_layout Subsection
1833 Contributing fixes and new features
1834 \end_layout
1835
1836 \begin_layout Standard
1837 If you have made changes to LyX's source that you think should become part
1838  of LyX, send your changes as a diff file (in unified format) to the development
1839  list referenced above, along with a change log, and a description of what
1840  your patch does.
1841 \end_layout
1842
1843 \begin_layout Section
1844 Contributing to the Documentation
1845 \end_layout
1846
1847 \begin_layout Standard
1848 LyX's documentation is extensive; however LyX is under constant development,
1849  and each new release adds new features.
1850  You may find some documentation needs improvement.
1851  This section describes what to do if you find an error, or have some suggestion
1852 s for improving the documentation.
1853 \end_layout
1854
1855 \begin_layout Subsection
1856 Reporting Errors in the Manuals
1857 \end_layout
1858
1859 \begin_layout Standard
1860 If you find a problem with the documentation, send a message to the mailing
1861  list 
1862 \family typewriter
1863 lyx-docs@lists.lyx.org
1864 \family default
1865 .
1866  The documentation team will make any necessary fixes.
1867 \end_layout
1868
1869 \begin_layout Subsection
1870 Joining the Documentation Team.
1871 \end_layout
1872
1873 \begin_layout Standard
1874 The LyX Documentation Project, like anything else in the LyX project, can
1875  always use assistance! If you're interested in contributing to the Documentatio
1876 n Project, you need to do the following assignment 
1877 \emph on
1878 first
1879 \emph default
1880 :
1881 \end_layout
1882
1883 \begin_layout Enumerate
1884 Get the latest LyX source code.
1885  Untar it.
1886 \begin_inset Foot
1887 status collapsed
1888
1889 \begin_layout Standard
1890 The more adventurous can grab the latest documentation anonymously from
1891  the LyX CVS repository - it is contained in the 
1892 \family typewriter
1893 lyxdoc
1894 \family default
1895  module.
1896 \end_layout
1897
1898 \end_inset
1899
1900  You will find a directory inside the main tree called 
1901 \family typewriter
1902 lib/doc/
1903 \family default
1904 .
1905  Inside that directory is a file called 
1906 \family typewriter
1907 DocStyle.lyx
1908 \family default
1909 .
1910  Read it; it's the style sheet for the documentation.
1911 \end_layout
1912
1913 \begin_layout Enumerate
1914 Next, read the 
1915 \emph on
1916 User's Guide
1917 \emph default
1918  and the 
1919 \emph on
1920 Tutorial
1921 \emph default
1922 .
1923  
1924 \end_layout
1925
1926 \begin_deeper
1927 \begin_layout Standard
1928 The point of this exercise is to give you ideas.
1929  The 
1930 \emph on
1931 Tutorial
1932 \emph default
1933  and 
1934 \emph on
1935 User's Guide
1936 \emph default
1937  is likely to be the most up-to-date of all of the documentation.
1938  You should be able to glean some insights into how we want the manuals
1939  to read and to look.
1940 \end_layout
1941
1942 \end_deeper
1943 \begin_layout Enumerate
1944 Contact the team at: 
1945 \end_layout
1946
1947 \begin_deeper
1948 \begin_layout Standard
1949
1950 \family typewriter
1951 lyx-docs@lists.lyx.org
1952 \end_layout
1953
1954 \begin_layout Standard
1955 to discuss your intended changes, and get some feedback on them.
1956 \end_layout
1957
1958 \end_deeper
1959 \begin_layout Standard
1960 The changes you wish to make may range from improving clarity of the text,
1961  to doing major re-structuring of the documentation.
1962  Any and all improvements are gladly received.
1963 \end_layout
1964
1965 \end_body
1966 \end_document