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