]> git.lyx.org Git - lyx.git/blob - lib/doc/FAQ.lyx
Doc updates
[lyx.git] / lib / doc / FAQ.lyx
1 #LyX 1.3 created this file. For more info see http://www.lyx.org/
2 \lyxformat 221
3 \textclass article
4 \language english
5 \inputencoding latin1
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 3
18 \tocdepth 3
19 \paragraph_separation indent
20 \defskip medskip
21 \quotes_language english
22 \quotes_times 2
23 \papercolumns 1
24 \papersides 1
25 \paperpagestyle default
26
27 \layout Title
28
29 LyX Frequently Asked Questions with Answers 
30 \layout Author
31
32 by the LyX Team
33 \begin_inset Foot
34 collapsed false
35
36 \layout Standard
37 \noindent 
38 If you have comments or error corrections, please send them to the LyX Documenta
39 tion mailing list, <lyx-docs@lists.lyx.org>.
40 \end_inset 
41
42  
43 \layout Abstract
44
45 This is the list of Frequently Asked Questions for LyX, the Open Source
46  document processor that provides a What-You-See-Is-What-You-Mean environment
47  for producing high quality documents.
48  For further help, you may wish to contact the LyX User Group mailing list
49  at 
50 \family typewriter 
51 lyx-users@lists.lyx.org
52 \family default 
53  
54 \emph on 
55 after
56 \emph default 
57  you have read through the docs.
58
59 \emph on 
60  
61 \layout Abstract
62
63
64 \begin_inset LatexCommand \tableofcontents{}
65
66 \end_inset 
67
68
69 \layout Section
70
71 Introduction and General Information 
72 \layout Subsection
73
74 What is LyX? 
75 \layout Standard
76
77 LyX is a program that provides a more modern approach to writing documents
78  with a computer, an approach that breaks with the obsolete tradition of
79  the 
80 \begin_inset Quotes eld
81 \end_inset 
82
83 typewriter concept.
84 \begin_inset Quotes erd
85 \end_inset 
86
87  It is designed for authors who want professional output quickly with a
88  minimum of effort without becoming specialists in typesetting.
89  The job of typesetting is done mostly by the computer, not the author;
90  with LyX, the author can concentrate on the contents of her writing.
91 \layout Standard
92
93 LyX provides an 
94 \begin_inset Quotes eld
95 \end_inset 
96
97 almost-WYSIWYG
98 \begin_inset Quotes erd
99 \end_inset 
100
101  view of the document.
102  
103 \begin_inset Quotes eld
104 \end_inset 
105
106 Almost
107 \begin_inset Quotes erd
108 \end_inset 
109
110  means that the line- and page-breaks are not displayed exactly as they
111  will appear in the printed document.
112  However, that's not really necessary, since LyX uses a separate typesetter
113  program (called LaTeX) to perform the final formatting of your text.
114  While LyX contains everything it needs to be a comfortable user interface,
115  the typesetting program contains everything necessary to format text, and
116  do so very, very well.
117  
118 \layout Standard
119
120 So, line- and page-breaks aren't your problem anymore.
121  Remembering which number to use for the next subsection isn't your problem
122  anymore.
123  Recalling what font you used for all of your section headings isn't your
124  problem anymore.
125  You tell LyX (and LaTeX) what 
126 \emph on 
127 kind
128 \emph default 
129  of document you're editing and what 
130 \emph on 
131 type
132 \emph default 
133  of paragraph this-or-that text is, the computer can typeset it accordingly.
134  Of course you can also still do some low-level formatting for fine-tuning.
135  However, the proper way with LyX is to tell the computer what the text
136  
137 \emph on 
138 is
139 \emph default 
140 , not what it should look like.
141  So, we like to say that LyX gives you WYSIWYM editing (What You See Is
142  What You 
143 \emph on 
144 Mean
145 \emph default 
146 ).
147 \layout Subsection
148
149 That's fine, but is it useful?
150 \layout Standard
151
152 Absolutely.
153  The following type of documents have been produced with LyX:
154 \layout Itemize
155
156 Memos
157 \layout Itemize
158
159 Letters
160 \layout Itemize
161
162 Dissertations (260 pages in a single document, longer using include files)
163 \begin_deeper 
164 \layout Itemize
165
166 for example, 
167 \begin_inset LatexCommand \url{http://www.fee.uva.nl/scholar/mdw/leuven/thesis.pdf}
168
169 \end_inset 
170
171
172 \end_deeper 
173 \layout Itemize
174
175 Lecture notes (133 pages, 27 figures on a 33 MHz 486 machine!) 
176 \layout Itemize
177
178 Seminar notebooks (500+ pages)
179 \layout Itemize
180
181 Conference proceedings (Proceedings of the Second Continental Workshop on
182  the Geoid in Europe, (Finnish Geodetic Institute Report 98:4), 292 pages)
183 \layout Itemize
184
185 Software Documentation (the LyX User Guide is about 120 pages) 
186 \layout Itemize
187
188 Books 
189 \begin_deeper 
190 \layout Itemize
191
192 see 
193 \begin_inset LatexCommand \url{http://www.postgresql.org/docs/awbook.html}
194
195 \end_inset 
196
197  for an example on PostgreSQL
198 \layout Itemize
199
200 Donnay, J-P., Barnsley, M.J., and Longley, P.A., eds., 2001, Remote Sensing and
201  Urban Analysis (Taylor and Francis: London).
202 \layout Itemize
203
204 Herbert Voss: Praktische Kryptologie mit Java 286 pages, lots of equations,
205  tables, figures.
206  ISBN 3-8311-1458-7
207 \layout Itemize
208
209 Yann Collette and Patrick Siarry, Optimisation multiobjectifs, 2002, Eyrolles
210 \end_deeper 
211 \layout Itemize
212
213 Papers published in the following refereed journals:
214 \begin_deeper 
215 \layout Itemize
216
217 Astronomy & Astrophysics (Suetterlin, P.
218  1998, A&A, 333, 305; Suetterlin, P.
219  & Wiehr, E.
220  1998, A&A, 336, 367)
221 \layout Itemize
222
223 Astronomical Journal (Ressler, M.
224  E.
225  & Barsony, M.
226  2001, AJ, 121, 1098)
227 \end_deeper 
228 \layout Itemize
229
230 Novels (400+ page novel due out in September 2000; an 836 page novel is
231  currently with an agent)
232 \layout Itemize
233
234 Scripts for plays and movies
235 \layout Itemize
236
237 Business proposals for > $1 M (US)
238 \layout Subsection
239
240 Where do I start? 
241 \layout Standard
242
243 The website 
244 \begin_inset LatexCommand \url{www.lyx.org}
245
246 \end_inset 
247
248  is the first place to go for anything related to LyX.
249  News, examples, downloads, and lots of other stuff is available there.
250  After you have installed LyX and started it the first time, read the Tutorial
251  (
252 \family sans 
253 Help\SpecialChar \menuseparator
254 Tutorial
255 \family default 
256 ).
257  Yes, I really mean that.
258 \layout Standard
259
260 Another basic introductory guide may be found at 
261 \begin_inset LatexCommand \url{www.bilkent.edu.tr/~robin/lyxguide.pdf}
262
263 \end_inset 
264
265
266 \layout Subsection
267
268 Does LyX run on my computer?
269 \layout Standard
270
271 At this time, you need to have the X Window system to run LyX.
272  OS/2 and Win32 ports exist, but you need to have an Xserver
273 \emph on 
274  
275 \emph default 
276 installed
277 \emph on 
278  
279 \emph default 
280 and running on these systems.
281  LyX is known to run on the following platforms (and probably a zillion
282  others):
283 \layout Itemize
284
285 Linux: RedHat 4.2, 5.0, 5.1, 6.0, 6.1, SUSE 5.x, Mandrake 7.0, 7.2
286 \layout Itemize
287
288 SparcLinux: RedHat 6.0
289 \layout Itemize
290
291 Sun Solaris 2.6, 2.7
292 \layout Itemize
293
294 Tru64 Unix 4.0f
295 \layout Itemize
296
297 HP-UX
298 \layout Itemize
299
300 OSF1 flore V4.0 1091 alpha
301 \layout Subsection
302
303 How much hard disk space does LyX need? 
304 \layout Standard
305
306 On my system, the LyX binary consumes 2.0 MB of disk space, while the supporting
307  files occupy another 12.6 MB (9.1 MB of which is consumed by the docs! You
308  can delete the languages you don't care about to save some space).
309  Of course, you do need to have something like teTeX installed which consumes
310  a mere 115 MB, as well as ghostscript, which is another 10 MB!
311 \layout Subsection
312
313 Is LyX really Open Source? 
314 \layout Standard
315
316 Yes.
317  The freely available X toolkit that LyX uses, xforms, was until recently
318  closed source.
319  Also the other toolkit that LyX uses, Qt, although a proprietary product
320  of Troll Tech, is used in its open source variant.
321  The LyX source itself is available under the GPL, so it qualifies.
322  
323 \layout Standard
324
325 Version 1.0 of xforms is available under the LGPL and its sources (and binaries)
326  can be found from 
327 \begin_inset LatexCommand \url{http://savannah.nongnu.org/download/xforms/xforms-1.0.tar.gz}
328
329 \end_inset 
330
331 , which however requires some tinkering to get running.
332  Qt tends to come with your distribution.
333 \layout Section
334
335 Internet Resources
336 \layout Subsection
337
338 Where should I look on the World Wide Web for LyX stuff? 
339 \layout Itemize
340
341
342 \begin_inset LatexCommand \url{www.lyx.org}
343
344 \end_inset 
345
346
347 \layout Itemize
348
349
350 \begin_inset LatexCommand \url{bugzilla.lyx.org}
351
352 \end_inset 
353
354 , if you want to report a bug in LyX.
355 \layout Itemize
356
357
358 \begin_inset LatexCommand \url{www.devel.lyx.org}
359
360 \end_inset 
361
362 , if you are interested in the real blood and guts.
363 \layout Itemize
364
365 Known mirror sites include:
366 \begin_deeper 
367 \layout Itemize
368
369
370 \begin_inset LatexCommand \url{www.mx.lyx.org}
371
372 \end_inset 
373
374
375 \layout Itemize
376
377
378 \begin_inset LatexCommand \url{www.no.lyx.org}
379
380 \end_inset 
381
382
383 \layout Itemize
384
385
386 \begin_inset LatexCommand \url{www.it.lyx.org}
387
388 \end_inset 
389
390
391 \end_deeper 
392 \layout Subsection
393
394 Where can I get LyX material by FTP? 
395 \layout Itemize
396
397 ftp.lyx.org in /pub/lyx (also known as ftp.via.ecp.fr)
398 \layout Subsection
399
400 What mailing lists are there? 
401 \layout Itemize
402
403 lyx-announce@lists.lyx.org (very low volume), for announcements related to
404  LyX
405 \layout Itemize
406
407 lyx-users@lists.lyx.org (medium volume), for general usage issues
408 \layout Itemize
409
410 lyx-devel@lists.lyx.org (high volume), for development and debugging issues
411 \layout Itemize
412
413 lyx-docs@lists.lyx.org (excruciatingly low volume), for documentation issues
414  
415 \layout Standard
416
417 Generally, you would send email to lyx-foo-subscribe@lists.lyx.org to subscribe
418  to these lists or to lyx-foo-unsubscribe@lists.lyx.org to unsubscribe, where
419  
420 \begin_inset Quotes eld
421 \end_inset 
422
423 foo
424 \begin_inset Quotes erd
425 \end_inset 
426
427  is one of 
428 \begin_inset Quotes eld
429 \end_inset 
430
431 announce
432 \begin_inset Quotes erd
433 \end_inset 
434
435
436 \begin_inset Quotes eld
437 \end_inset 
438
439 users
440 \begin_inset Quotes erd
441 \end_inset 
442
443
444 \begin_inset Quotes eld
445 \end_inset 
446
447 devel
448 \begin_inset Quotes erd
449 \end_inset 
450
451 , or 
452 \begin_inset Quotes eld
453 \end_inset 
454
455 docs
456 \begin_inset Quotes erd
457 \end_inset 
458
459 ; definitely see 
460 \begin_inset LatexCommand \url{http://www.lyx.org/internet/mailing.php3}
461
462 \end_inset 
463
464  for the full details.
465 \layout Subsection
466
467 Are the mailing lists archived anywhere? 
468 \layout Standard
469
470 Yes.
471  :-)
472 \layout Subsection
473
474 Okay, wise guy! Where are they archived?
475 \layout Itemize
476
477 Announce: 
478 \begin_inset LatexCommand \url{http://www.mail-archive.com/lyx-announce@lists.lyx.org/}
479
480 \end_inset 
481
482
483 \layout Itemize
484
485 Users: 
486 \begin_inset LatexCommand \url{http://www.mail-archive.com/lyx-users@lists.lyx.org/}
487
488 \end_inset 
489
490
491 \layout Itemize
492
493 Devel: 
494 \begin_inset LatexCommand \url{http://www.mail-archive.com/lyx-devel@lists.lyx.org/}
495
496 \end_inset 
497
498
499 \layout Section
500
501 Compatibility with other word/document processors
502 \layout Subsection
503
504 Can I read/write LaTeX files?
505 \layout Standard
506
507 Yes.
508  LyX outputs LaTeX files that are either machine or human friendly.
509  The 
510 \family typewriter 
511 tex2lyx
512 \family default 
513  program that comes with LyX does a decent job of converting LaTeX into
514  LyX.
515  It's not perfect, but it will usually get at least 95% of the job done
516  for you.
517 \layout Subsection
518
519 Can I read/write Word files?
520 \layout Standard
521
522 Not trivially.
523  People have had some level of success with the following sequence: LyX
524 \begin_inset Formula $\rightarrow$
525 \end_inset 
526
527 LaTeX
528 \begin_inset Formula $\rightarrow$
529 \end_inset 
530
531 RTF
532 \begin_inset Formula $\rightarrow$
533 \end_inset 
534
535 Word, and vice versa.
536  However, Word is inherently not a markup language like LyX and LaTeX are,
537  so conversions are usually difficult and almost meaningless.
538 \layout Standard
539
540 However, here are a few suggestions which were sent in:
541 \layout Description
542
543 word2x produces LaTeX, HTML and plain text output.
544  The LaTeX is importable in principle (and is rather clean) but I often
545  prefer plain text and add the formatting back in.
546  (This requires that you have knowledge on the original formatting).
547  On last writing did not yet handle Office 2000 Word.
548 \layout Description
549
550 wvware (found at www.wvware.com, or the abisource CVS repository for the latest).
551  This was previously called msWordView.
552  Very good, only tends to produce visually formatted LaTeX/HTML.
553  Is however highly configurable: a config file 
554 \family typewriter 
555 wvLaTeX.xml
556 \family default 
557  guides the translation process.
558  Handles also the newest Office formats.
559 \layout Description
560
561 Ted This is the editor to use when someone sends you an RTF file created
562  by Word.
563  Fine product.
564  Mail yourself the converted version (plain text or HTML).
565 \layout Standard
566
567 Finally, when all else fails, use any word processor (WordPerfect, StarOffice/Op
568 enOffice, ...) which understands Word.
569  Then export as the file as plain text and add the formatting by hand in
570  LyX.
571  
572 \layout Standard
573
574 For me personally, at least, it's faster doing this than cleaning up attempts
575  at a conversion, though it is certainly unsatisfactory if you need to go
576  back and forth a lot.
577 \layout Subsection
578
579 Can I read/write HTML files?
580 \layout Standard
581
582 You can output HTML files using the 
583 \begin_inset Quotes eld
584 \end_inset 
585
586 tth
587 \begin_inset Quotes erd
588 \end_inset 
589
590  converter program, amongst others.
591  There may be a HTML
592 \begin_inset Formula $\rightarrow$
593 \end_inset 
594
595 LaTeX program available which allows you to convert the other direction.
596 \layout Section
597
598 Obtaining and Compiling LyX 
599 \layout Subsection
600
601 What do I need?
602 \layout Itemize
603
604 LyX source code: lyx-1.x.x.tar.gz
605 \layout Itemize
606
607 XForms library: xforms-0.88 or higher (using the latest version available
608  is recommended)
609 \layout Itemize
610
611 A LaTeX installation: we strongly recommend teTeX-1.0 or higher
612 \layout Itemize
613
614 A PostScript® interpreter: ghostscript 7.0 or higher
615 \layout Itemize
616
617 A modern C++ compiler.
618  If you are using gcc, LyX requires at least version 2.95.2.
619 \layout Subsection
620
621 How do I compile it?
622 \layout Itemize
623
624 ./configure
625 \layout Itemize
626
627 make
628 \layout Itemize
629
630 make install (usually as root, though you don't have to be if you add flags
631  to the configure command)
632 \layout Standard
633
634 See the INSTALL file for more details.
635 \layout Subsection
636
637 I hate compiling.
638  Where are precompiled binaries?
639 \layout Standard
640
641 Most of the above packages are available as precompiled binaries for a variety
642  of Linux systems, perhaps others as well.
643  The LyX binaries are available as RPMS and a few other formats and may
644  be obtained from 
645 \begin_inset LatexCommand \url{ftp://ftp.lyx.org/pub/lyx/bin/}
646
647 \end_inset 
648
649 .
650 \layout Standard
651
652 The Windows port is available at 
653 \begin_inset LatexCommand \url{http://www.fh-hannover.de/mbau/tim/hentschel/lyx/index.html}
654
655 \end_inset 
656
657
658 \layout Section
659
660 Questions about Evil Red Text (IMPORTANT!)
661 \layout Subsection
662
663 What is Evil Red Text (aka ERT)?
664 \layout Standard
665
666 ERT (Evil Red Text) refers to raw LaTeX commands which are inserted into
667  your LyX document.
668  Certain troglodytes in the development group coined this term when they
669  complained about the unsightly appearance it leads to in LyX documents.
670  The more enlightened among us know that it is extremely useful, even though
671  it does qualify as URT (Ugly Red Text), but ERT seems to have stuck.
672  
673 \layout Subsection
674
675 How do I enter Evil Red Text?
676 \layout Standard
677
678 Aesthetic arguments aside, many of the answers in this FAQ require that
679  you use ERT, so whenever we say 
680 \begin_inset Quotes eld
681 \end_inset 
682
683 insert the following LaTeX code
684 \begin_inset Quotes erd
685 \end_inset 
686
687 , do the following
688 \layout Enumerate
689
690 Click the TeX toolbar button or select 
691 \family sans 
692 \bar under 
693 I
694 \bar default 
695 nsert\SpecialChar \menuseparator
696
697 \bar under 
698 T
699 \bar default 
700 eX
701 \family default 
702 .
703 \layout Enumerate
704
705 Type the command as it is written in the normal way
706 \layout Subsection
707
708 The new ERT inset is really inconvenient !
709 \layout Standard
710
711 A lot of people have been complaining about the ERT inset introduced in
712  version 1.2.0.
713  However, since there is little hope of to see the old LaTeX font return
714  from the grave (it was really a hack), here are a couple of things to ponder:
715 \layout Itemize
716
717 You can collapse the ERT like any other floats by using 
718 \family sans 
719 \bar under 
720 E
721 \bar default 
722 dit\SpecialChar \menuseparator
723 Open/C
724 \bar under 
725 l
726 \bar default 
727 ose float
728 \family default 
729  (bound to 
730 \family sans 
731 C-i 
732 \family default 
733 by default)
734 \layout Itemize
735
736 You can also set it to 
737 \begin_inset Quotes eld
738 \end_inset 
739
740 inlined
741 \begin_inset Quotes erd
742 \end_inset 
743
744  by using the properties dialog obtained by right-clicking anywhere in the
745  inset
746 \layout Subsection
747
748 Is there an alternative?
749 \layout Standard
750
751 LaTeX commands can also be inserted in the 
752 \begin_inset Quotes eld
753 \end_inset 
754
755 LaTeX Preamble
756 \begin_inset Quotes erd
757 \end_inset 
758
759 , a form in LyX that is inserted verbatim into the LaTeX file which is generated
760  during processing.
761  This is especially useful for including nonstandard LaTeX packages, defining
762  global shortcuts to be used within the document, etc.
763 \layout Section
764
765 Questions Related to Using LyX
766 \layout Standard
767
768 In this section, we attempt to address the truly most frequently asked questions.
769  For a broader range of not-so-frequently asked questions and many 
770 \begin_inset Quotes eld
771 \end_inset 
772
773 how do I?
774 \begin_inset Quotes erd
775 \end_inset 
776
777  topics, see Herbert Voss' spectacular collection at 
778 \begin_inset LatexCommand \url{http://www.educat.hu-berlin.de/~voss/lyx}
779
780 \end_inset 
781
782 .
783  You are doing yourself a large disservice if you don't check there before
784  sending a message to the mailing lists!
785 \layout Subsection
786
787 General questions
788 \layout Subsubsection
789
790 How do I get rid of the date under the title?
791 \layout Standard
792
793 The simplest solution is to open the menu 
794 \family sans 
795 \bar under 
796 L
797 \bar default 
798 ayout\SpecialChar \menuseparator
799 P
800 \bar under 
801 r
802 \bar default 
803 eamble
804 \family default 
805  and add the line
806 \layout LyX-Code
807
808
809 \backslash 
810 date{}
811 \layout Standard
812
813 in the preamble window.
814 \layout Subsubsection
815
816 How do I change the spacing in an Itemize/\SpecialChar \-
817 Enumerate/\SpecialChar \-
818 Description list environment
819 ?
820 \layout Standard
821
822 You'll have to do this by hand: for example, for one particular list, you
823  can add the following LaTeX code at the beginning of the list: 
824 \layout Standard
825
826
827 \family typewriter 
828
829 \backslash 
830 setlength{
831 \backslash 
832 itemsep}{0mm}
833 \layout Subsubsection
834
835 How do I number equations by section?
836 \layout Standard
837
838 Add the following two lines to your LaTeX preamble:
839 \layout LyX-Code
840
841
842 \backslash 
843 @addtoreset{equation}{section} 
844 \layout LyX-Code
845
846
847 \backslash 
848 renewcommand{
849 \backslash 
850 theequation}{
851 \backslash 
852 thesection.
853 \backslash 
854 arabic{equation}}
855 \layout Subsubsection
856
857 Is it possible to do this for figures and tables as well?
858 \layout Standard
859
860 Replace the phrase 
861 \family typewriter 
862
863 \backslash 
864 theequation
865 \family default 
866  with 
867 \family typewriter 
868
869 \backslash 
870 thetable
871 \family default 
872  or 
873 \family typewriter 
874
875 \backslash 
876 thefigure
877 \family default 
878  and then replace 
879 \family typewriter 
880 equation
881 \family default 
882  with 
883 \family typewriter 
884 table
885 \family default 
886  or 
887 \family typewriter 
888 figure
889 \family default 
890 .
891  Don't forget to adapt the 
892 \backslash 
893 @addtoreset command, too.
894 \layout Subsubsection
895
896 How do I change to footnote numbers to symbols (star, dagger, etc.)?
897 \layout Standard
898
899 Add 
900 \family typewriter 
901
902 \backslash 
903 renewcommand{
904 \backslash 
905 thefootnote}{
906 \backslash 
907 fnsymbol{footnote}}
908 \family default 
909  to your LaTeX preamble.
910 \layout Subsubsection
911
912 How do I kill widows and orphans?
913 \layout Standard
914
915 Okay, we are not playing Duke Nukem here! To eliminate widows and orphans
916  (first line from a paragraph at the bottom of the page and the last line
917  from a paragraph at the top of the page), add the following to the LaTeX
918  preamble:
919 \layout LyX-Code
920
921
922 \backslash 
923 widowpenalty=10000 
924 \layout LyX-Code
925
926
927 \backslash 
928 clubpenalty=10000 
929 \layout Standard
930
931 and perhaps
932 \layout LyX-Code
933
934
935 \backslash 
936 raggedbottom
937 \layout LyX-Code
938
939 \layout Subsubsection
940
941 How do I get a formatted list which starts with e.g.
942  1.
943  a)?
944 \layout Standard
945
946 If you want a list which looks like
947 \layout LyX-Code
948
949 1.
950  a) First alternative 
951 \layout LyX-Code
952
953    b) Second alternative 
954 \layout LyX-Code
955
956    c) Third alternative
957 \layout Standard
958
959 then try the following
960 \layout LyX-Code
961
962 1.
963  {} 
964 \layout LyX-Code
965
966    a) First alternative 
967 \layout LyX-Code
968
969    b) Second alternative 
970 \layout LyX-Code
971
972    c) Third
973 \layout Standard
974
975 where {} is in ERT (i.e.
976  a placeholder not generating output.
977  Specifically, set the style to 
978 \begin_inset Quotes eld
979 \end_inset 
980
981 enumerate
982 \begin_inset Quotes erd
983 \end_inset 
984
985 , enter the brackets in ERT, change the environment depth, and add the three
986  elements.
987  LyX will auto-label the entries.
988 \layout Subsubsection
989
990 How do I count words in LyX?
991 \layout Standard
992
993 Run a spellcheck; it will display the total number of words checked.
994  Make sure the cursor is at the top of the document when you start the spellchec
995 ker so that everything is counted.
996 \layout Subsubsection
997
998 How do I insert a fixed amount of horizontal space?
999 \layout Standard
1000
1001 There are various ERT commands to use: 
1002 \family typewriter 
1003
1004 \backslash 
1005 enspace
1006 \family default 
1007  (1/2 em), 
1008 \family typewriter 
1009
1010 \backslash 
1011 thinspace
1012 \family default 
1013  (1/6 em), 
1014 \family typewriter 
1015
1016 \backslash 
1017 negthinspace
1018 \family default 
1019  (-1/6 em), 
1020 \family typewriter 
1021
1022 \backslash 
1023 quad
1024 \family default 
1025  (1 em), 
1026 \family typewriter 
1027
1028 \backslash 
1029 qquad
1030 \family default 
1031  (2 em), 
1032 \family typewriter 
1033
1034 \backslash 
1035 hspace{
1036 \emph on 
1037 length
1038 \emph default 
1039 }
1040 \family default 
1041 , etc.
1042  An 
1043 \begin_inset Quotes eld
1044 \end_inset 
1045
1046 em
1047 \begin_inset Quotes erd
1048 \end_inset 
1049
1050  is roughly the width of the letter 
1051 \begin_inset Quotes eld
1052 \end_inset 
1053
1054 m
1055 \begin_inset Quotes erd
1056 \end_inset 
1057
1058  in the current font.
1059  The length argument of the 
1060 \family typewriter 
1061
1062 \backslash 
1063 hspace
1064 \family default 
1065  command is any valid TeX length; units can be 
1066 \family typewriter 
1067 mm
1068 \family default 
1069  (millimeters), 
1070 \family typewriter 
1071 cm
1072 \family default 
1073  (centimeters), 
1074 \family typewriter 
1075 in
1076 \family default 
1077  (inches), 
1078 \family typewriter 
1079 pt
1080 \family default 
1081  (points = 1/72 inch), 
1082 \family typewriter 
1083 em
1084 \family default 
1085  (width of letter 
1086 \begin_inset Quotes eld
1087 \end_inset 
1088
1089 m
1090 \begin_inset Quotes erd
1091 \end_inset 
1092
1093 ), or 
1094 \family typewriter 
1095 ex
1096 \family default 
1097  (height of letter 
1098 \begin_inset Quotes eld
1099 \end_inset 
1100
1101 x
1102 \begin_inset Quotes erd
1103 \end_inset 
1104
1105 ).
1106  Examples: 
1107 \family typewriter 
1108
1109 \backslash 
1110 hspace{1in}
1111 \family default 
1112
1113 \family typewriter 
1114
1115 \backslash 
1116 hspace{2.5em}
1117 \family default 
1118 , etc.
1119 \layout Subsubsection
1120
1121 How can I make citations show up as [1,2,3,6] or [1-3,6] rather than [1][2][3][6
1122 ]?
1123 \layout Standard
1124
1125 Insert 
1126 \family typewriter 
1127
1128 \backslash 
1129 usepackage{cite}
1130 \family default 
1131  into the LaTeX preamble.
1132  Most LaTeX distributions should have this package included.
1133  LyX supports this package, if you insert multiple citations separated by
1134  commas into the citation dialog, e.
1135  g.
1136  [Smalley_JCP,Jarrold_Sci], instead of just one citation after the other:
1137  [Smalley_JCP] [Jarrold_Sci].
1138 \layout Subsection
1139
1140 Figure related questions
1141 \layout Subsubsection
1142
1143 What is the difference between a 
1144 \begin_inset Quotes eld
1145 \end_inset 
1146
1147 figure
1148 \begin_inset Quotes erd
1149 \end_inset 
1150
1151  and a 
1152 \begin_inset Quotes eld
1153 \end_inset 
1154
1155 figure float
1156 \begin_inset Quotes erd
1157 \end_inset 
1158
1159 ?
1160 \layout Standard
1161
1162 This is an example of less-than-ideal terminology.
1163  
1164 \begin_inset Quotes eld
1165 \end_inset 
1166
1167 Figure
1168 \begin_inset Quotes erd
1169 \end_inset 
1170
1171  is what I would really call a 
1172 \begin_inset Quotes eld
1173 \end_inset 
1174
1175 graphic
1176 \begin_inset Quotes erd
1177 \end_inset 
1178
1179 ; it basically means insert a picture file.
1180  
1181 \begin_inset Quotes eld
1182 \end_inset 
1183
1184 Figure float
1185 \begin_inset Quotes erd
1186 \end_inset 
1187
1188  is more what one means by a figure in a paper: it includes the graphic,
1189  the caption, the figure label, etc.
1190  You should almost always insert a figure float first, then put a figure
1191  inside that.
1192 \layout Standard
1193
1194 Tables work in the same manner.
1195  Put a table float in first, then insert the table within that.
1196 \layout Subsubsection
1197
1198 How do I get LyX to put the figure exactly where I want it?
1199 \layout Standard
1200
1201 Select 
1202 \family sans 
1203 Layout\SpecialChar \menuseparator
1204 Document
1205 \family default 
1206 .
1207  In the 
1208 \family sans 
1209 Float Placement
1210 \family default 
1211  box, type 
1212 \begin_inset Quotes eld
1213 \end_inset 
1214
1215
1216 \family typewriter 
1217 !htp
1218 \family default 
1219
1220 \begin_inset Quotes erd
1221 \end_inset 
1222
1223 .
1224  This tells LaTeX to try really hard to put the figure here first, then
1225  the top of a page, then on a page by itself.
1226  This is a global setting: all figure will then obey this rule set.
1227 \layout Standard
1228
1229 If you want to control how each figure behaves, right-click in the figure
1230  float and you will get a dialog allowing to control the figure behavior.
1231 \layout Subsubsection
1232
1233 What does 
1234 \begin_inset Quotes eld
1235 \end_inset 
1236
1237 Too many unprocessed floats
1238 \begin_inset Quotes erd
1239 \end_inset 
1240
1241  mean?
1242 \layout Standard
1243
1244 LaTeX can handle only a limited number of floating elements floating at
1245  a given time.
1246  For example, if Figure 4 can't be fit in a good location (using the default
1247  rules of top of the page, then bottom, then a page of its own) and Figure
1248  5 comes along, they will both continue to float toward the end of the document
1249  until a good location can be found.
1250  If nothing good turns up, they will just be placed at the end of the document.
1251  If there are too many of these, LaTeX overruns a counter and emits the
1252  
1253 \begin_inset Quotes eld
1254 \end_inset 
1255
1256 too many unprocessed floats
1257 \begin_inset Quotes erd
1258 \end_inset 
1259
1260  error.
1261  This is not a bug in LaTeX, this is simply too many figures with too little
1262  text :-)
1263 \layout Standard
1264
1265 The easiest way to work around this is to insert a 
1266 \family typewriter 
1267
1268 \backslash 
1269 clearpage
1270 \family default 
1271  command somewhere in the document where a pagebreak would be appropriate.
1272  While a pagebreak would simply start a new page, 
1273 \family typewriter 
1274
1275 \backslash 
1276 clearpage
1277 \family default 
1278  processes all remaining floats, then begins a new page.
1279  This may lead to an unsightly stack of figures in the middle of your document;
1280  you may need to use several 
1281 \family typewriter 
1282
1283 \backslash 
1284 clearpages
1285 \family default 
1286  to make things balance nicely.
1287 \layout Subsection
1288
1289 Math related questions
1290 \layout Subsubsection
1291
1292 How do I put normal text inside a mathematical equation?
1293 \layout Standard
1294
1295 Type 
1296 \begin_inset Quotes eld
1297 \end_inset 
1298
1299
1300 \family typewriter 
1301 M-m m
1302 \family default 
1303
1304 \begin_inset Quotes erd
1305 \end_inset 
1306
1307  while inside the equation to enter 
1308 \begin_inset Quotes eld
1309 \end_inset 
1310
1311 math text mode
1312 \begin_inset Quotes erd
1313 \end_inset 
1314
1315 .
1316 \layout Subsubsection
1317
1318 How do I make a cube root (or higher)?
1319 \layout Standard
1320
1321 Type 
1322 \begin_inset Quotes eld
1323 \end_inset 
1324
1325
1326 \family typewriter 
1327 M-m r
1328 \family default 
1329
1330 \begin_inset Quotes erd
1331 \end_inset 
1332
1333  to insert a nifty 
1334 \begin_inset Quotes eld
1335 \end_inset 
1336
1337 root box
1338 \begin_inset Quotes erd
1339 \end_inset 
1340
1341 .
1342  Use the cursor keys to navigate the entry boxes.
1343 \layout Section
1344
1345 Questions Related to Running LyX
1346 \layout Subsection
1347
1348 How do I convert LyX files to LaTeX from the command line?
1349 \layout Standard
1350
1351 File export was vastly improved in version 1.1.6.
1352  Simply say
1353 \layout LyX-Code
1354
1355 lyx --export latex <yourfile>.lyx
1356 \layout Standard
1357
1358 and that is all you need to do.
1359 \layout Standard
1360
1361 If you have an older version of LyX, you can use the same syntax if you
1362  are running X, because it will cause LyX windows to pop up onto your screen.
1363  If you have the Xvfb command available, you can resort to a deeper level
1364  of subterfuge (under 
1365 \family typewriter 
1366 bash
1367 \family default 
1368 ):
1369 \layout Standard
1370
1371
1372 \family typewriter 
1373 (Xvfb :1 -once -terminate &); rm <file>.tex; lyx -display :1 --export latex
1374  <file>.lyx
1375 \layout Standard
1376 \noindent 
1377 Under csh/tcsh it is simply
1378 \layout Standard
1379
1380
1381 \family typewriter 
1382 Xvfb :1 -once -terminate &; rm <file>.tex; lyx -display :1 --export latex
1383  <file>.lyx
1384 \layout Standard
1385 \noindent 
1386 This should work anywhere, whether or not X is actually running.
1387 \layout Subsection
1388
1389 How do I create PDF files from my LyX document?
1390 \layout Standard
1391
1392 Read Section 5.3.6 of the 
1393 \emph on 
1394 Extended Features
1395 \emph default 
1396  manual.
1397 \layout Subsection
1398
1399 Why do the fonts in my document look so bad in 
1400 \family typewriter 
1401 acroread
1402 \family default 
1403  ?
1404 \layout Standard
1405
1406 The problem and the solution are also discussed in Section 5.3.6 of the 
1407 \emph on 
1408 Extended Features
1409 \emph default 
1410  manual.
1411 \layout Subsection
1412
1413 Why doesn't my latest and greatest version of Ghostscript render EPS inline
1414  figures properly?
1415 \layout Standard
1416
1417 [Note: this only applies to versions of LyX older than 1.2.0, since the graphics
1418  rendering code has been rewritten in this version]
1419 \layout Standard
1420
1421 A couple of users reported that they couldn't get recent Ghostscript versions
1422  to display inline figures in LyX.
1423  It transpires that this is a Ghostscript bug:
1424 \layout Standard
1425
1426
1427 \begin_inset LatexCommand \url{http://sourceforge.net/bugs/?func=detailbug&bug_id=124957&group_id=1897}
1428
1429 \end_inset 
1430
1431
1432 \layout Standard
1433 \noindent 
1434 This bug appears to affect Ghostscript 6.22 and upwards.
1435  After applying the above mentioned patch, rendering in Lyx works fine again.
1436  GNU Ghostscript 6.53 and above include this fix.
1437 \layout Section
1438
1439 Questions Related to LyX on Windows
1440 \layout Subsection
1441
1442 Why do the menus and the toolbar flicker ?
1443 \layout Standard
1444
1445 You are probably using the XWin32 X server.
1446  This is a bug in XWin32: you can work around the problem by disabling the
1447  
1448 \begin_inset Quotes eld
1449 \end_inset 
1450
1451 Use Reserved Colors
1452 \begin_inset Quotes erd
1453 \end_inset 
1454
1455  option of XWin32, and using a color mode other than PseudoColor.
1456 \layout Section
1457
1458 How to get further assistance
1459 \layout Subsection
1460
1461 You still haven't answered my question! 
1462 \layout Standard
1463
1464 Then RTFM, especially the Tutorial.
1465  The documentation really is quite good.
1466  (Besides, I helped write parts of it :-) If you think your problem may
1467  be LaTeX related, then look in 
1468 \emph on 
1469 LaTeX, A Document Preparation System, 2nd Ed.
1470
1471 \emph default 
1472  by Leslie Lamport (1994).
1473  There are also numerous example files included with LyX.
1474  Try 
1475 \family sans 
1476 File\SpecialChar \menuseparator
1477 Open\SpecialChar \menuseparator
1478 Examples
1479 \family default 
1480 .
1481 \layout Subsection
1482
1483 I want to mail someone about my problem.
1484  
1485 \layout Standard
1486
1487 Send email to the LyX Users list lyx-users@lists.lyx.org.
1488  If LyX is actually crashing or otherwise non-functional, then try the developer
1489 s' list at lyx-devel@lists.lyx.org.
1490 \layout Subsection
1491
1492 What to put in a request for help.
1493 \layout Standard
1494
1495 Include your version of LyX and a description of what you are trying to
1496  do, along with evidence that you've actually read the docs.
1497 \layout Standard
1498
1499 If LyX has crashed, include the version of LyX, the operating system, the
1500  version of xforms (if it seems to be a screen drawing problem), and a precise
1501  description of the events that lead to the crash.
1502  The easier it is for the developers to reproduce your crash, the more likely
1503  it will get fixed.
1504  If you're brave and like to hack, use gdb to generate a backtrace and include
1505  the results with your mail.
1506  If you have no clue what I'm talking about, just describe what you did
1507  as completely as you can.
1508 \layout Section
1509
1510 Administrative information and acknowledgments
1511 \layout Subsection
1512
1513 Feedback is invited.
1514  
1515 \layout Standard
1516
1517 Send comments, suggested additions, world record document claims, etc.
1518  to 
1519 \emph on 
1520 lyx-docs@lists.lyx.org.
1521 \layout Subsection
1522
1523 Formats in which this FAQ is available.
1524  
1525 \layout Standard
1526
1527 The LyX file original is included in the LyX source distribution, converted
1528  versions in HTML and ASCII should soon be available at the website.
1529  A German version is also available with the distribution.
1530 \layout Subsection
1531
1532 Authorship and acknowledgments.
1533 \layout Standard
1534
1535 Bernhard Iselborn, David Johnson, and Paul Evans were responsible for the
1536  FAQ through version 0.2.2 which covered LyX-0.10.7.
1537  The FAQ as of version 0.3.0 was written from scratch and covers LyX-1.0 and
1538  higher.
1539  Many people contributed pieces to the current version; Mike Ressler of
1540  the Doc Team collected them into this file.
1541 \layout Subsection
1542
1543 Disclaimer and Copyright.
1544  
1545 \layout Standard
1546
1547 I don't claim anything in this document is accurate to within a factor of
1548  
1549 \begin_inset Formula $\pi$
1550 \end_inset 
1551
1552 ; after all, I'm just an astronomer, and we like to set 
1553 \begin_inset Formula $c=h=k=\pi=1$
1554 \end_inset 
1555
1556 .
1557  When the answer is wrong, we just redefine the units.
1558  This file is distributed in the hope that it will be useful, but WITHOUT
1559  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
1560  FOR A PARTICULAR PURPOSE.
1561  See the GNU General Public License for more details.
1562  In other words, it's not my fault if you lose your dissertation the night
1563  before your doctoral defense because you forgot to save it before the power
1564  failed while wondering how a fundamental physical constant expressed in
1565  units of 
1566 \begin_inset Formula $\textrm{m s}^{-1}$
1567 \end_inset 
1568
1569  could possibly be equal to one expressed as 
1570 \begin_inset Formula $\textrm{kg m s}^{-2}\textrm{ K}^{-1}$
1571 \end_inset 
1572
1573 .
1574  This file is Copyright © 2000 by Michael E.
1575  Ressler on behalf of the LyX Documentation Team.
1576 \the_end