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