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