]> git.lyx.org Git - lyx.git/blob - lib/doc/Additional.lyx
d58ce187fade75f281d54f15e92cdab05b74997b
[lyx.git] / lib / doc / Additional.lyx
1 #LyX 2.3 created this file. For more info see http://www.lyx.org/
2 \lyxformat 534
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin /systemlyxdir/doc/
7 \textclass scrbook
8 \begin_preamble
9 % DO NOT ALTER THIS PREAMBLE!!!
10 %
11 % This preamble is designed to ensure that the manual prints
12 % out as advertised. If you mess with this preamble,
13 % parts of the manual may not print out as expected.  If you
14 % have problems LaTeXing this file, please contact 
15 % the documentation team
16 % email: lyx-docs@lists.lyx.org
17
18 % the pages of the TOC are numbered roman
19 % and a PDF-bookmark for the TOC is added
20 \pagenumbering{roman}
21 \let\myTOC\tableofcontents
22 \renewcommand{\tableofcontents}{%
23  \pdfbookmark[1]{\contentsname}{}
24  \myTOC
25  \cleardoublepage
26  \pagenumbering{arabic}}
27
28 % extra space for tables
29 \newcommand{\extratablespace}[1]{\noalign{\vskip#1}}
30 \end_preamble
31 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
32 \use_default_options false
33 \begin_modules
34 logicalmkup
35 theorems-ams
36 theorems-ams-extended
37 multicol
38 shapepar
39 \end_modules
40 \maintain_unincluded_children false
41 \language english
42 \language_package default
43 \inputencoding auto
44 \fontencoding global
45 \font_roman "lmodern" "default"
46 \font_sans "lmss" "default"
47 \font_typewriter "lmtt" "default"
48 \font_math "auto" "auto"
49 \font_default_family default
50 \use_non_tex_fonts false
51 \font_sc false
52 \font_osf false
53 \font_sf_scale 100 100
54 \font_tt_scale 100 100
55 \use_microtype false
56 \graphics default
57 \default_output_format pdf2
58 \output_sync 0
59 \bibtex_command default
60 \index_command default
61 \paperfontsize 12
62 \spacing single
63 \use_hyperref true
64 \pdf_title "LyX's Additional Features manual"
65 \pdf_author "LyX Team"
66 \pdf_subject "LyX's additional features documentation"
67 \pdf_keywords "LyX, Documentation, Additional"
68 \pdf_bookmarks true
69 \pdf_bookmarksnumbered true
70 \pdf_bookmarksopen false
71 \pdf_bookmarksopenlevel 1
72 \pdf_breaklinks false
73 \pdf_pdfborder false
74 \pdf_colorlinks true
75 \pdf_backref false
76 \pdf_pdfusetitle false
77 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
78 \papersize a4paper
79 \use_geometry false
80 \use_package amsmath 1
81 \use_package amssymb 1
82 \use_package cancel 0
83 \use_package esint 0
84 \use_package mathdots 1
85 \use_package mathtools 0
86 \use_package mhchem 1
87 \use_package stackrel 0
88 \use_package stmaryrd 0
89 \use_package undertilde 0
90 \cite_engine basic
91 \cite_engine_type default
92 \biblio_style plain
93 \use_bibtopic false
94 \use_indices false
95 \paperorientation portrait
96 \suppress_date false
97 \justification true
98 \use_refstyle 0
99 \notefontcolor #0000ff
100 \index Index
101 \shortcut idx
102 \color #008000
103 \end_index
104 \secnumdepth 3
105 \tocdepth 3
106 \paragraph_separation indent
107 \paragraph_indentation default
108 \quotes_style english
109 \dynamic_quotes 0
110 \papercolumns 1
111 \papersides 2
112 \paperpagestyle headings
113 \tracking_changes true
114 \output_changes false
115 \html_math_output 0
116 \html_css_as_file 0
117 \html_be_strict true
118 \author -712698321 "Jürgen Spitzmüller"
119 \end_header
120
121 \begin_body
122
123 \begin_layout Title
124 Additional \SpecialChar LyX
125  Features
126 \end_layout
127
128 \begin_layout Subtitle
129 Version 2.2.x
130 \end_layout
131
132 \begin_layout Author
133 by the \SpecialChar LyX
134  Team
135 \begin_inset Foot
136 status collapsed
137
138 \begin_layout Plain Layout
139 \noindent
140 Principal maintainer of this file is
141 \noun on
142  Richard Heck
143 \noun default
144 .
145  If you have comments or error corrections, please send them to the \SpecialChar LyX
146  Documentati
147 on mailing list, 
148 \begin_inset Flex Code
149 status collapsed
150
151 \begin_layout Plain Layout
152 \noindent
153 <lyx-docs@lists.lyx.org>
154 \end_layout
155
156 \end_inset
157
158 .
159 \end_layout
160
161 \end_inset
162
163
164 \end_layout
165
166 \begin_layout Standard
167 \begin_inset CommandInset toc
168 LatexCommand tableofcontents
169
170 \end_inset
171
172
173 \end_layout
174
175 \begin_layout Chapter
176 Introduction
177 \end_layout
178
179 \begin_layout Standard
180 This manual is essentially Part II of the 
181 \emph on
182 User's Guide\SpecialChar endofsentence
183
184 \emph default
185  The reason for separating the two documents is simple: the 
186 \emph on
187 User's Guide
188 \emph default
189  is already quite lengthy, and it contains information on all of the basic
190  features one needs to know in order to prepare most documents.
191  However, the \SpecialChar LyX
192  Team has worked to make \SpecialChar LyX
193  extensible through various configuration
194  files and external packages.
195  That means that if you want to support the Fizzwizzle \SpecialChar LaTeX
196  package, you can
197  create a layout file (or module) for it without having to alter \SpecialChar LyX
198  itself.
199  We've already had contributions of several new features this way, and some
200  of them are documented here.
201  There are also some more `advanced' features, such as how to control the
202  presentation of bibliographies and how to work with multi-part documents,
203  that are not covered in the 
204 \emph on
205 User's Guide
206 \emph default
207  and are discussed here.
208 \end_layout
209
210 \begin_layout Standard
211 This manual also documents some special features, like fax support, version
212  control, and SGML support, which require additional software to work properly.
213  There is also a chapter on \SpecialChar LyX
214 's support for HTML.
215  And lastly, there's a chapter of \SpecialChar LaTeX
216  tools and tips, things you can use to
217  spruce up your documents by directly using the powerful features of \SpecialChar LaTeX
218 .
219  After all, \SpecialChar LyX
220  
221 \emph on
222 is
223 \emph default
224  only WYSIWYM and will only ever interface to some, not all, \SpecialChar LaTeX
225  features.
226 \end_layout
227
228 \begin_layout Standard
229 If you haven't read the 
230 \emph on
231 Introduction
232 \emph default
233  yet, you are definitely in the wrong manual.
234  The 
235 \emph on
236 Introduction
237 \emph default
238  is the first place to go, since it describes the notation and format of
239  all of the manuals.
240  You should also be thoroughly familiar with the 
241 \emph on
242 User's Guide
243 \emph default
244  and all of the basic features of \SpecialChar LyX
245  before attempting to read this one.
246 \end_layout
247
248 \begin_layout Standard
249 Since many of the topics in this manual depend heavily on \SpecialChar LyX
250 's interaction
251  with \SpecialChar LaTeX
252 , this first chapter covers the inner workings of \SpecialChar LyX
253  and how to direct
254  \SpecialChar LyX
255  to generate exactly the \SpecialChar LaTeX
256  code you want.
257  It is obviously for more seasoned \SpecialChar LyX
258  users.
259 \end_layout
260
261 \begin_layout Chapter
262 \SpecialChar LyX
263  and \SpecialChar LaTeX
264
265 \end_layout
266
267 \begin_layout Section
268 How \SpecialChar LyX
269  Uses \SpecialChar LaTeX
270
271 \end_layout
272
273 \begin_layout Standard
274 This chapter is for both \SpecialChar TeX
275 -nicians and the \SpecialChar LaTeX
276 -curious.
277  In it, we'll explain how \SpecialChar LyX
278  and \SpecialChar LaTeX
279  work together to produce printable output.
280  This is the only place in any of the manuals where we assume you know something
281  about \SpecialChar LaTeX
282 .
283 \end_layout
284
285 \begin_layout Standard
286 At one time, \SpecialChar LyX
287  was called a 
288 \begin_inset Quotes eld
289 \end_inset
290
291 WYSIWYM frontend to \SpecialChar LaTeX
292 ,
293 \begin_inset Quotes erd
294 \end_inset
295
296  but that's no longer true.
297  There are frontends to \SpecialChar LaTeX
298  out there.
299 \begin_inset Foot
300 status collapsed
301
302 \begin_layout Plain Layout
303 Some familar ones are \SpecialChar TeX
304 maker and kile, on Linux, and \SpecialChar TeX
305 shop, OSX.
306  There are also the \SpecialChar LaTeX
307  modes for vi and emacs, of course.
308 \end_layout
309
310 \end_inset
311
312  These are basically text editors with the ability to run \SpecialChar LaTeX
313  and mark any
314  errors in the file you're editing.
315  Although \SpecialChar LyX
316  
317 \emph on
318 is
319 \emph default
320  an editor, and it 
321 \emph on
322 does
323 \emph default
324  run \SpecialChar LaTeX
325 , and it also indicates errors in the file, it also does much, much
326  more.
327  For one thing, you don't need to know \SpecialChar LaTeX
328  to use \SpecialChar LyX
329  effectively.
330  And \SpecialChar LyX
331  has added its own extensions to \SpecialChar LaTeX
332 .
333  Try the following sometime: select 
334 \begin_inset Flex Noun
335 status collapsed
336
337 \begin_layout Plain Layout
338 Export\SpecialChar menuseparator
339 LaTeX
340 \end_layout
341
342 \end_inset
343
344  from the 
345 \begin_inset Flex Noun
346 status collapsed
347
348 \begin_layout Plain Layout
349 File
350 \end_layout
351
352 \end_inset
353
354  menu (or 
355 \begin_inset Flex Noun
356 status collapsed
357
358 \begin_layout Plain Layout
359 View\SpecialChar menuseparator
360 Source
361 \begin_inset space ~
362 \end_inset
363
364 Pane
365 \end_layout
366
367 \end_inset
368
369 ), then look at the preamble of the resulting 
370 \begin_inset Flex Code
371 status collapsed
372
373 \begin_layout Plain Layout
374 .tex
375 \end_layout
376
377 \end_inset
378
379  file.
380  You'll notice a variety of new macros defined specifically by \SpecialChar LyX
381 .
382  These macros are defined automatically, according to the features you use
383  in the document.
384 \end_layout
385
386 \begin_layout Standard
387 There are several commands that automatically invoke \SpecialChar LaTeX
388 .
389  They are:
390 \end_layout
391
392 \begin_layout Itemize
393 \begin_inset Flex Noun
394 status collapsed
395
396 \begin_layout Plain Layout
397 Document\SpecialChar menuseparator
398 View
399 \end_layout
400
401 \end_inset
402
403
404 \end_layout
405
406 \begin_layout Itemize
407 \begin_inset Flex Noun
408 status collapsed
409
410 \begin_layout Plain Layout
411 Document\SpecialChar menuseparator
412 Update
413 \end_layout
414
415 \end_inset
416
417
418 \end_layout
419
420 \begin_layout Standard
421 They will only invoke \SpecialChar LaTeX
422  if the file has changed since the last time \SpecialChar LaTeX
423  was
424  run.
425  
426 \end_layout
427
428 \begin_layout Standard
429 When \SpecialChar LyX
430  runs \SpecialChar LaTeX
431  on the file you're editing, it performs these steps:
432 \end_layout
433
434 \begin_layout Enumerate
435 Convert the document to \SpecialChar LaTeX
436  and save to a file with the extension 
437 \begin_inset Flex Code
438 status collapsed
439
440 \begin_layout Plain Layout
441 .tex
442 \end_layout
443
444 \end_inset
445
446  in place of 
447 \begin_inset Flex Code
448 status collapsed
449
450 \begin_layout Plain Layout
451 .lyx
452 \end_layout
453
454 \end_inset
455
456 .
457 \end_layout
458
459 \begin_layout Enumerate
460 Run \SpecialChar LaTeX
461  on the 
462 \begin_inset Flex Code
463 status collapsed
464
465 \begin_layout Plain Layout
466 .tex
467 \end_layout
468
469 \end_inset
470
471  file (maybe several times), and run any other commands (such as 
472 \begin_inset Flex Code
473 status collapsed
474
475 \begin_layout Plain Layout
476 bibtex
477 \end_layout
478
479 \end_inset
480
481  or 
482 \begin_inset Flex Code
483 status collapsed
484
485 \begin_layout Plain Layout
486 makeindex
487 \end_layout
488
489 \end_inset
490
491 ) needed to compile the \SpecialChar LaTeX
492  file.
493 \end_layout
494
495 \begin_layout Enumerate
496 If there are any errors, show the error log.
497 \end_layout
498
499 \begin_layout Standard
500 If you have run \SpecialChar LaTeX
501  using 
502 \begin_inset Flex Noun
503 status collapsed
504
505 \begin_layout Plain Layout
506 View\SpecialChar menuseparator
507 DVI
508 \end_layout
509
510 \end_inset
511
512 , \SpecialChar LyX
513  then runs a DVI viewer to display the DVI-file.
514  If you have used 
515 \begin_inset Flex Noun
516 status collapsed
517
518 \begin_layout Plain Layout
519 View\SpecialChar menuseparator
520 PostScript
521 \end_layout
522
523 \end_inset
524
525 , \SpecialChar LyX
526  performs further steps:
527 \end_layout
528
529 \begin_layout Itemize
530 Run 
531 \begin_inset Flex Code
532 status collapsed
533
534 \begin_layout Plain Layout
535 dvips
536 \end_layout
537
538 \end_inset
539
540  to convert the DVI file to PostScript.
541 \end_layout
542
543 \begin_layout Itemize
544 Run a PostScript viewer, such as 
545 \begin_inset Flex Code
546 status collapsed
547
548 \begin_layout Plain Layout
549 ghostview
550 \end_layout
551
552 \end_inset
553
554 , to display the PostScript file.
555 \end_layout
556
557 \begin_layout Standard
558 \SpecialChar LyX
559  does similar things when viewing, or exporting, other formats.
560 \end_layout
561
562 \begin_layout Section
563 Translating \SpecialChar LaTeX
564  files into \SpecialChar LyX
565
566 \end_layout
567
568 \begin_layout Standard
569 You can import a \SpecialChar LaTeX
570  file into \SpecialChar LyX
571  by using the 
572 \begin_inset Flex Noun
573 status collapsed
574
575 \begin_layout Plain Layout
576 File\SpecialChar menuseparator
577 Import\SpecialChar menuseparator
578 LaTeX
579 \end_layout
580
581 \end_inset
582
583  command in \SpecialChar LyX
584 .
585  This will call a program named 
586 \begin_inset Flex Code
587 status collapsed
588
589 \begin_layout Plain Layout
590 tex2lyx
591 \end_layout
592
593 \end_inset
594
595  which will create a file 
596 \begin_inset Flex Code
597 status collapsed
598
599 \begin_layout Plain Layout
600 foo.lyx
601 \end_layout
602
603 \end_inset
604
605  from the file 
606 \begin_inset Flex Code
607 status collapsed
608
609 \begin_layout Plain Layout
610 foo.tex
611 \end_layout
612
613 \end_inset
614
615 .
616  \SpecialChar LyX
617  will then open that file.
618 \begin_inset Foot
619 status collapsed
620
621 \begin_layout Plain Layout
622 \begin_inset Flex Code
623 status collapsed
624
625 \begin_layout Plain Layout
626 tex2lyx
627 \end_layout
628
629 \end_inset
630
631  can also be run from the command line, of course.
632 \end_layout
633
634 \end_inset
635
636
637 \end_layout
638
639 \begin_layout Standard
640 \begin_inset Flex Code
641 status collapsed
642
643 \begin_layout Plain Layout
644 tex2lyx
645 \end_layout
646
647 \end_inset
648
649  will translate most legal \SpecialChar LaTeX
650 , but not everything.
651  It will put things it doesn't understand into \SpecialChar TeX
652  code, so after translating
653  a file with 
654 \begin_inset Flex Code
655 status collapsed
656
657 \begin_layout Plain Layout
658 tex2lyx
659 \end_layout
660
661 \end_inset
662
663 , you can look for \SpecialChar TeX
664  code and hand-edit it until it looks right.
665 \end_layout
666
667 \begin_layout Standard
668 If you don't know what \SpecialChar TeX
669  code is, read the next section.
670 \end_layout
671
672 \begin_layout Section
673 \begin_inset CommandInset label
674 LatexCommand label
675 name "sec:Inserting-TeX-Code"
676
677 \end_inset
678
679 Inserting \SpecialChar TeX
680  Code into \SpecialChar LyX
681  Documents 
682 \end_layout
683
684 \begin_layout Standard
685 Anything you can do in \SpecialChar LaTeX
686  you can do in \SpecialChar LyX
687 , for a very simple reason: You can
688  always insert \SpecialChar TeX
689  code into any \SpecialChar LyX
690  document.
691  \SpecialChar LyX
692  cannot, and will never be able to, display every possible \SpecialChar LaTeX
693  construct.
694  If ever you need to insert \SpecialChar LaTeX
695  commands into your \SpecialChar LyX
696  document, you can use the
697  
698 \begin_inset Flex Code
699 status collapsed
700
701 \begin_layout Plain Layout
702 \SpecialChar TeX
703  Code
704 \end_layout
705
706 \end_inset
707
708  box, which you can insert into your document with 
709 \begin_inset Flex Noun
710 status collapsed
711
712 \begin_layout Plain Layout
713 Insert\SpecialChar menuseparator
714
715 \family sans
716 TeX
717 \family default
718  Code
719 \end_layout
720
721 \end_inset
722
723  or the keyboard shortcut 
724 \begin_inset Info
725 type  "shortcut"
726 arg   "ert-insert"
727 \end_inset
728
729 .
730 \end_layout
731
732 \begin_layout Standard
733 Here's an example of inserting \SpecialChar LaTeX
734  commands in a \SpecialChar LyX
735  document.
736  The code looks like this:
737 \end_layout
738
739 \begin_layout LyX-Code
740
741 \backslash
742 begin{tabular}{ll}
743 \begin_inset Newline newline
744 \end_inset
745
746
747 \backslash
748 begin{minipage}{5cm}
749 \begin_inset Newline newline
750 \end_inset
751
752 This is an example of a minipage environment.
753  You 
754 \begin_inset Newline newline
755 \end_inset
756
757 can put nearly everything in it, even (non-floating) 
758 \begin_inset Newline newline
759 \end_inset
760
761 figures and tables.
762  
763 \begin_inset Newline newline
764 \end_inset
765
766
767 \backslash
768 end{minipage}
769 \begin_inset Newline newline
770 \end_inset
771
772 &
773 \begin_inset Newline newline
774 \end_inset
775
776
777 \backslash
778 begin{minipage}{5cm}
779 \begin_inset Newline newline
780 \end_inset
781
782
783 \backslash
784 begin{verbatim}
785 \begin_inset Newline newline
786 \end_inset
787
788
789 \backslash
790 begin{minipage}{5cm}
791 \begin_inset Newline newline
792 \end_inset
793
794 This ...
795  
796 \begin_inset Newline newline
797 \end_inset
798
799
800 \backslash
801 end{minipage}
802 \begin_inset Newline newline
803 \end_inset
804
805
806 \backslash
807 end{verbatim}
808 \begin_inset Newline newline
809 \end_inset
810
811
812 \backslash
813 end{minipage}
814 \begin_inset Newline newline
815 \end_inset
816
817
818 \backslash
819 end{tabular}
820 \end_layout
821
822 \begin_layout LyX-Code
823
824 \end_layout
825
826 \begin_layout Standard
827 The 
828 \begin_inset Flex Code
829 status collapsed
830
831 \begin_layout Plain Layout
832 \SpecialChar TeX
833  Code
834 \end_layout
835
836 \end_inset
837
838  box containing this text is directly after this paragraph.
839  Those of you reading the manual in \SpecialChar LyX
840  will only see the \SpecialChar TeX
841  code inset.
842  Those reading a printed version of the manuals will see the actual results:
843 \begin_inset VSpace bigskip
844 \end_inset
845
846
847 \end_layout
848
849 \begin_layout Standard
850 \begin_inset ERT
851 status open
852
853 \begin_layout Plain Layout
854
855
856 \backslash
857 begin{tabular}{ll}
858 \end_layout
859
860 \begin_layout Plain Layout
861
862
863 \backslash
864 begin{minipage}{5cm}
865 \end_layout
866
867 \begin_layout Plain Layout
868
869 This is an example of a minipage environment.
870  You can put nearly everything in it, even (non-floating) figures and tables.
871  
872 \end_layout
873
874 \begin_layout Plain Layout
875
876
877 \backslash
878 end{minipage}
879 \end_layout
880
881 \begin_layout Plain Layout
882
883 &
884 \end_layout
885
886 \begin_layout Plain Layout
887
888
889 \backslash
890 begin{minipage}{5cm}
891 \end_layout
892
893 \begin_layout Plain Layout
894
895
896 \backslash
897 begin{verbatim}
898 \end_layout
899
900 \begin_layout Plain Layout
901
902
903 \backslash
904 begin{minipage}{5cm}
905 \end_layout
906
907 \begin_layout Plain Layout
908
909 This ...
910  
911 \end_layout
912
913 \begin_layout Plain Layout
914
915
916 \backslash
917 end{minipage}
918 \end_layout
919
920 \begin_layout Plain Layout
921
922
923 \backslash
924 end{verbatim}
925 \end_layout
926
927 \begin_layout Plain Layout
928
929
930 \backslash
931 end{minipage}
932 \end_layout
933
934 \begin_layout Plain Layout
935
936
937 \backslash
938 end{tabular}
939 \end_layout
940
941 \end_inset
942
943
944 \begin_inset VSpace bigskip
945 \end_inset
946
947
948 \end_layout
949
950 \begin_layout Standard
951 In addition to using \SpecialChar TeX
952  code, you can also create a separate file containing
953  some complex \SpecialChar LaTeX
954  structure and then use 
955 \begin_inset Flex Noun
956 status collapsed
957
958 \begin_layout Plain Layout
959 Insert\SpecialChar menuseparator
960 Child
961 \begin_inset space ~
962 \end_inset
963
964 Document
965 \end_layout
966
967 \end_inset
968
969  to include your file (you should select the type 
970 \begin_inset Flex Code
971 status collapsed
972
973 \begin_layout Plain Layout
974 Input
975 \end_layout
976
977 \end_inset
978
979 ).
980  We recommend that you only do this if you have a 
981 \begin_inset Flex Code
982 status collapsed
983
984 \begin_layout Plain Layout
985 .tex
986 \end_layout
987
988 \end_inset
989
990  file which you 
991 \emph on
992 know
993 \emph default
994  works already.
995  Otherwise, you'll have a big job tracking down \SpecialChar LaTeX
996  errors.
997 \end_layout
998
999 \begin_layout Standard
1000 There are a few last points to emphasize:
1001 \end_layout
1002
1003 \begin_layout Itemize
1004 \SpecialChar LyX
1005  
1006 \emph on
1007 does not
1008 \emph default
1009  check if your \SpecialChar LaTeX
1010  code is correct.
1011 \end_layout
1012
1013 \begin_layout Itemize
1014 Beware of reinventing the wheel.
1015 \end_layout
1016
1017 \begin_layout Standard
1018 On that last point, \SpecialChar LyX
1019  does have quite a few features tucked into it, and
1020  more are coming.
1021  Be sure to check the manuals to make sure that \SpecialChar LyX
1022  doesn't have such-and-such
1023  feature before you decide you have to do it by hand.
1024  Moreover, there are numerous \SpecialChar LaTeX
1025  packages out there to do all sorts of things,
1026  from labels to envelopes to fancy multipage tables.
1027  Check out 
1028 \begin_inset CommandInset href
1029 LatexCommand href
1030 name "CTAN"
1031 target "http://www.ctan.org/"
1032 literal "false"
1033
1034 \end_inset
1035
1036  for details.
1037 \end_layout
1038
1039 \begin_layout Standard
1040 If you do need to do some wild and fancy things within your document, be
1041  sure to check out a good \SpecialChar LaTeX
1042  book for assistance.
1043  There are a number of them listed in the bibliography of the 
1044 \emph on
1045 User's Guide
1046 \emph default
1047 .
1048 \end_layout
1049
1050 \begin_layout Section
1051 \SpecialChar LyX
1052  and the \SpecialChar LaTeX
1053  Preamble
1054 \end_layout
1055
1056 \begin_layout Subsection
1057 About the \SpecialChar LaTeX
1058  Preamble
1059 \end_layout
1060
1061 \begin_layout Standard
1062 If you already know \SpecialChar LaTeX
1063 , there is no need to explain here what the preamble
1064  is good for.
1065  If you don't, the following will give you some ideas—we recommend again
1066  that you consult a \SpecialChar LaTeX
1067  book for further information.
1068  In any case, you should read the points below, because they explain what
1069  you can do and what you don't need to do in the \SpecialChar LaTeX
1070  preamble of a \SpecialChar LyX
1071  document.
1072 \end_layout
1073
1074 \begin_layout Standard
1075 The \SpecialChar LaTeX
1076  preamble comes at the very beginning of a document, 
1077 \emph on
1078 before
1079 \emph default
1080  the text.
1081  It serves to:
1082 \end_layout
1083
1084 \begin_layout Itemize
1085 Declare the document class.
1086  
1087 \begin_inset Newline newline
1088 \end_inset
1089
1090 \SpecialChar LyX
1091  already does this for you.
1092  If you're a seasoned \SpecialChar LaTeX
1093 -nician, and you have a custom document class you
1094  want to use, check out the 
1095 \emph on
1096 Customization Manual
1097 \emph default
1098  for information on how to make \SpecialChar LyX
1099  interface to it.
1100 \end_layout
1101
1102 \begin_layout Itemize
1103 Declare the usage of packages.
1104  
1105 \begin_inset Newline newline
1106 \end_inset
1107
1108 \SpecialChar LaTeX
1109  packages provide special commands, which are only available within a document
1110  when the package has been declared in the preamble.
1111  In addition to providing special commands, the inclusion of a package can
1112  change the document.
1113  For example, the package 
1114 \begin_inset Flex Code
1115 status collapsed
1116
1117 \begin_layout Plain Layout
1118 indentfirst
1119 \end_layout
1120
1121 \end_inset
1122
1123  forces all paragraphs to be indented.
1124  There are other packages for labels, envelopes, margins, etc.
1125  
1126 \end_layout
1127
1128 \begin_layout Itemize
1129 Set counters, variables, lengths and widths.
1130  
1131 \begin_inset Newline newline
1132 \end_inset
1133
1134 There are several \SpecialChar LaTeX
1135  counters and variables that 
1136 \emph on
1137 must
1138 \emph default
1139  be set globally from within the preamble in order to have the desired effect.
1140  (There are variables that you can set and reset inside the document, too.)
1141  Margins are a good example of something that must be set in the preamble.
1142  Another example is the label format for lists.
1143  You can actually set these just about anywhere, but it's best to do it
1144  just once, inside the preamble.
1145 \end_layout
1146
1147 \begin_layout Itemize
1148 Declare user defined commands (with 
1149 \begin_inset Flex Code
1150 status collapsed
1151
1152 \begin_layout Plain Layout
1153
1154 \backslash
1155 newcommand
1156 \end_layout
1157
1158 \end_inset
1159
1160  or 
1161 \begin_inset Flex Code
1162 status collapsed
1163
1164 \begin_layout Plain Layout
1165
1166 \backslash
1167 renewcommand
1168 \end_layout
1169
1170 \end_inset
1171
1172 ).
1173 \begin_inset Newline newline
1174 \end_inset
1175
1176 These are abbreviations for \SpecialChar LaTeX
1177  commands which appear very often inside a document.
1178  Although the preamble is a good place to declare such commands, they 
1179 \emph on
1180 can
1181 \emph default
1182  be declared anywhere (before they are used for the first time, of course).
1183  This can be useful if there is a lot of raw \SpecialChar LaTeX
1184  code in your document, which
1185  normally should not be the case.
1186 \end_layout
1187
1188 \begin_layout Standard
1189 \SpecialChar LyX
1190  adds its own set of definitions to the preamble of the 
1191 \begin_inset Flex Code
1192 status collapsed
1193
1194 \begin_layout Plain Layout
1195 .tex
1196 \end_layout
1197
1198 \end_inset
1199
1200  file it produces.
1201  This makes \SpecialChar LaTeX
1202  files generated by \SpecialChar LyX
1203  portable.
1204 \end_layout
1205
1206 \begin_layout Subsection
1207 Changing the Preamble
1208 \end_layout
1209
1210 \begin_layout Standard
1211 The commands which \SpecialChar LyX
1212  adds to the preamble of a \SpecialChar LaTeX
1213  file are fixed; you can't
1214  change them without patching \SpecialChar LyX
1215  itself.
1216  You can, however, add your own stuff to the preamble by selecting 
1217 \begin_inset Flex Noun
1218 status collapsed
1219
1220 \begin_layout Plain Layout
1221 \SpecialChar LaTeX
1222
1223 \begin_inset space ~
1224 \end_inset
1225
1226 Preamble
1227 \end_layout
1228
1229 \end_inset
1230
1231  in the 
1232 \begin_inset Flex Noun
1233 status collapsed
1234
1235 \begin_layout Plain Layout
1236 Document\SpecialChar menuseparator
1237 Settings
1238 \end_layout
1239
1240 \end_inset
1241
1242  dialog.
1243  \SpecialChar LyX
1244  adds anything in the 
1245 \begin_inset Flex Noun
1246 status collapsed
1247
1248 \begin_layout Plain Layout
1249 Preamble
1250 \end_layout
1251
1252 \end_inset
1253
1254  dialog to its own built-in preamble.
1255  Before adding your own declarations in the preamble, you should make sure
1256  that \SpecialChar LyX
1257  doesn't already support what you want to do.
1258  (Remember what we said about reinventing the wheel?) Also, 
1259 \emph on
1260 make sure your preamble code is correct
1261 \emph default
1262 .
1263  \SpecialChar LyX
1264  doesn't check it for you.
1265  If there is an error, you're likely to get an error like 
1266 \begin_inset Quotes eld
1267 \end_inset
1268
1269
1270 \begin_inset Flex Code
1271 status collapsed
1272
1273 \begin_layout Plain Layout
1274 Missing 
1275 \backslash
1276 begin{document}
1277 \end_layout
1278
1279 \end_inset
1280
1281
1282 \begin_inset Quotes erd
1283 \end_inset
1284
1285 .
1286  If you see this error, check your preamble.
1287 \end_layout
1288
1289 \begin_layout Subsection
1290 Examples
1291 \end_layout
1292
1293 \begin_layout Standard
1294 Here are some examples of what you can add to a preamble, and what they
1295  do.
1296 \end_layout
1297
1298 \begin_layout Subsubsection
1299 Example #1: Offsets
1300 \end_layout
1301
1302 \begin_layout Standard
1303 There are two variables under \SpecialChar LaTeX
1304  that control page position: 
1305 \begin_inset Flex Code
1306 status collapsed
1307
1308 \begin_layout Plain Layout
1309
1310 \backslash
1311 hoffset
1312 \end_layout
1313
1314 \end_inset
1315
1316  and 
1317 \begin_inset Flex Code
1318 status collapsed
1319
1320 \begin_layout Plain Layout
1321
1322 \backslash
1323 voffset
1324 \end_layout
1325
1326 \end_inset
1327
1328 .
1329  Their names should be self-explanatory.
1330  These variables are useful if you think for a moment about computer labels.
1331  Sometimes, the size of a print medium and the area of the medium that you
1332  can actually print on aren't the same.
1333  This is where 
1334 \begin_inset Flex Code
1335 status collapsed
1336
1337 \begin_layout Plain Layout
1338
1339 \backslash
1340 hoffset
1341 \end_layout
1342
1343 \end_inset
1344
1345  and 
1346 \begin_inset Flex Code
1347 status collapsed
1348
1349 \begin_layout Plain Layout
1350
1351 \backslash
1352 voffset
1353 \end_layout
1354
1355 \end_inset
1356
1357  come in.
1358 \end_layout
1359
1360 \begin_layout Standard
1361 The default values for 
1362 \begin_inset Flex Code
1363 status collapsed
1364
1365 \begin_layout Plain Layout
1366
1367 \backslash
1368 hoffset
1369 \end_layout
1370
1371 \end_inset
1372
1373  and 
1374 \begin_inset Flex Code
1375 status collapsed
1376
1377 \begin_layout Plain Layout
1378
1379 \backslash
1380 voffset
1381 \end_layout
1382
1383 \end_inset
1384
1385  are both 0
1386 \begin_inset space \thinspace{}
1387 \end_inset
1388
1389 points, i.
1390 \begin_inset space \thinspace{}
1391 \end_inset
1392
1393 e.
1394 \begin_inset space \space{}
1395 \end_inset
1396
1397 the page isn't shifted.
1398  Unfortunately, some DVI drivers always seem to shift the page.
1399  We have no idea why, or why the sysadmin hasn't fixed such behavior.
1400  If you're using \SpecialChar LyX
1401  on a system that you don't personally maintain, and your
1402  sysadmin is a doofus, 
1403 \begin_inset Flex Code
1404 status collapsed
1405
1406 \begin_layout Plain Layout
1407
1408 \backslash
1409 hoffset
1410 \end_layout
1411
1412 \end_inset
1413
1414  and 
1415 \begin_inset Flex Code
1416 status collapsed
1417
1418 \begin_layout Plain Layout
1419
1420 \backslash
1421 voffset
1422 \end_layout
1423
1424 \end_inset
1425
1426  can save the day.
1427  Suppose your left and top margins are always 0.5
1428 \begin_inset space \thinspace{}
1429 \end_inset
1430
1431 inches too big.
1432  You can add this to the preamble:
1433 \end_layout
1434
1435 \begin_layout LyX-Code
1436
1437 \backslash
1438 setlength{
1439 \backslash
1440 hoffset}{-0.5 in}
1441 \end_layout
1442
1443 \begin_layout LyX-Code
1444
1445 \backslash
1446 setlength{
1447 \backslash
1448 voffset}{-0.5 in}
1449 \end_layout
1450
1451 \begin_layout Standard
1452 and your margins should now be correct.
1453 \end_layout
1454
1455 \begin_layout Subsubsection
1456 Example #2: Labels
1457 \end_layout
1458
1459 \begin_layout Standard
1460 Speaking of labels, suppose you wanted to print out a bunch of address labels.
1461  There's a rather nice package, available at your nearest CTAN archive,
1462  for printing sheets of labels: 
1463 \begin_inset Flex Code
1464 status collapsed
1465
1466 \begin_layout Plain Layout
1467 labels.sty
1468 \end_layout
1469
1470 \end_inset
1471
1472 .
1473  Now, your system may not have this package installed by default.
1474  We leave that up to you to check.
1475  You'll also want to read the documentation for it; we're not going to do
1476  that for you.
1477  Since this is an example, however, we'll give you an example of how you
1478  use this package.
1479 \end_layout
1480
1481 \begin_layout Standard
1482 First, make sure you're using the 
1483 \begin_inset Flex Code
1484 status collapsed
1485
1486 \begin_layout Plain Layout
1487 article
1488 \end_layout
1489
1490 \end_inset
1491
1492  document class.
1493  Next, you need to put the following in your preamble:
1494 \end_layout
1495
1496 \begin_layout LyX-Code
1497
1498 \backslash
1499 usepackage{labels}
1500 \end_layout
1501
1502 \begin_layout LyX-Code
1503
1504 \backslash
1505 LabelCols=3
1506 \end_layout
1507
1508 \begin_layout LyX-Code
1509
1510 \backslash
1511 LabelRows=7
1512 \end_layout
1513
1514 \begin_layout LyX-Code
1515
1516 \backslash
1517 LeftBorder=8mm
1518 \end_layout
1519
1520 \begin_layout LyX-Code
1521
1522 \backslash
1523 RightBorder=8mm
1524 \end_layout
1525
1526 \begin_layout LyX-Code
1527
1528 \backslash
1529 TopBorder=9mm
1530 \end_layout
1531
1532 \begin_layout LyX-Code
1533
1534 \backslash
1535 BottomBorder=2mm
1536 \end_layout
1537
1538 \begin_layout Standard
1539 This sets things up for Avery label sheets, stock #5360.
1540  You're now ready to print labels, but you'll need to insert \SpecialChar LaTeX
1541  code, placing
1542  the commands 
1543 \begin_inset Flex Code
1544 status collapsed
1545
1546 \begin_layout Plain Layout
1547
1548 \backslash
1549 begin{labels}
1550 \end_layout
1551
1552 \end_inset
1553
1554  and 
1555 \begin_inset Flex Code
1556 status collapsed
1557
1558 \begin_layout Plain Layout
1559
1560 \backslash
1561 end{labels}
1562 \end_layout
1563
1564 \end_inset
1565
1566  around each label text.
1567  This and other special features of 
1568 \begin_inset Flex Code
1569 status collapsed
1570
1571 \begin_layout Plain Layout
1572 labels.sty
1573 \end_layout
1574
1575 \end_inset
1576
1577  are explained in its documentation.
1578 \end_layout
1579
1580 \begin_layout Standard
1581 Someday, someone may write a \SpecialChar LyX
1582  layout file to support this package directly.
1583  Maybe that someone is you.
1584 \end_layout
1585
1586 \begin_layout Subsubsection
1587 Example #3: Paragraph Indentation
1588 \end_layout
1589
1590 \begin_layout Standard
1591 Americans are trained to indent the first line of 
1592 \emph on
1593 every
1594 \emph default
1595  paragraph.
1596  As with all of their other weird quirks, most Americans will whine and
1597  moan until they can have their way and indent the first line of all paragraphs.
1598  (Yes, we're joking.
1599  (We are?) 
1600 \emph on
1601 Yeah
1602 \emph default
1603 , we are.)
1604 \end_layout
1605
1606 \begin_layout Standard
1607 Of course, this behavior isn't standard typography.
1608  In books, you typically only indent the first line of a paragraph 
1609 \emph on
1610 if
1611 \emph default
1612  it follows another one.
1613  The idea behind indenting the first line of a paragraph is to distinguish
1614  neighboring paragraphs from one another.
1615  If there is no previous paragraph—for example, if it follows a figure or
1616  is the first paragraph in a section—then there is no need for indentation.
1617  
1618 \end_layout
1619
1620 \begin_layout Standard
1621 If you're a typical American (we're still joking!), though, you don't care
1622  about such esoteric things; you want your indentation! Add this to the
1623  preamble:
1624 \end_layout
1625
1626 \begin_layout LyX-Code
1627
1628 \backslash
1629 usepackage{indentfirst}
1630 \end_layout
1631
1632 \begin_layout Standard
1633 If your \SpecialChar TeX
1634  distribution isn't braindead, you'll have this package, and all
1635  of your paragraphs will get the indentation the Founding Fathers intended
1636  they should have.
1637 \end_layout
1638
1639 \begin_layout Subsubsection
1640 Example #4: This Document
1641 \end_layout
1642
1643 \begin_layout Standard
1644 You can also check out the preamble of this document to get an idea of some
1645  of the advanced things you can do.
1646 \end_layout
1647
1648 \begin_layout Section
1649 \SpecialChar LyX
1650  and \SpecialChar LaTeX
1651  Errors
1652 \end_layout
1653
1654 \begin_layout Standard
1655 When \SpecialChar LyX
1656  calls \SpecialChar LaTeX
1657 , it tells \SpecialChar LaTeX
1658  to blithely ignore any errors and keep going.
1659  It then uses the logfile from the \SpecialChar LaTeX
1660  run to do a post-mortem.
1661  After analyzing the logfile, \SpecialChar LyX
1662  displays a dialog listing the errors.
1663  Clicking on any one of them will take you to the position in your \SpecialChar LyX
1664  file
1665  where the error occurred.
1666 \begin_inset Foot
1667 status collapsed
1668
1669 \begin_layout Plain Layout
1670 Well, usually.
1671  Analyzing the logfile is a tough job, and \SpecialChar LyX
1672  doesn't always go to the right
1673  line.
1674  There are also cases where \SpecialChar LaTeX
1675  reports the error on one line, but the actual
1676  error is earlier.
1677  This is not unlike forgetting a closing brace in a program: You'll get
1678  an error, but only later.
1679 \end_layout
1680
1681 \end_inset
1682
1683
1684 \end_layout
1685
1686 \begin_layout Standard
1687 Some folks also like to look at the log file directly: It is available from
1688  
1689 \begin_inset Flex Noun
1690 status collapsed
1691
1692 \begin_layout Plain Layout
1693 Document\SpecialChar menuseparator
1694 LaTeX
1695 \begin_inset space ~
1696 \end_inset
1697
1698 Log
1699 \end_layout
1700
1701 \end_inset
1702
1703 .
1704  There are some fairly common error messages and warnings.
1705  We'll cover those here.
1706  You should look at a good \SpecialChar LaTeX
1707  book for a complete listing.
1708 \end_layout
1709
1710 \begin_layout Itemize
1711 \begin_inset Flex Code
1712 status collapsed
1713
1714 \begin_layout Plain Layout
1715 LaTeX Warning
1716 \end_layout
1717
1718 \end_inset
1719
1720
1721 \begin_inset Newline newline
1722 \end_inset
1723
1724 Anything beginning with these words is a warning message for the purpose
1725  of 
1726 \begin_inset Quotes eld
1727 \end_inset
1728
1729 debugging
1730 \begin_inset Quotes erd
1731 \end_inset
1732
1733  the \SpecialChar LaTeX
1734  code itself.
1735  You'll get messages like this if you added or changed cross-references
1736  or bibliography entries, in which case, \SpecialChar LaTeX
1737  is trying to tell you that you
1738  need to make another run.
1739  You can by-and-large ignore these.
1740 \end_layout
1741
1742 \begin_layout Itemize
1743 \begin_inset Flex Code
1744 status collapsed
1745
1746 \begin_layout Plain Layout
1747 LaTeX Font Warning
1748 \end_layout
1749
1750 \end_inset
1751
1752
1753 \begin_inset Newline newline
1754 \end_inset
1755
1756 Another warning message, this time about fonts which \SpecialChar LaTeX
1757  couldn't find.
1758  The rest of the message will often say something about a replacement font
1759  that \SpecialChar LaTeX
1760  used.
1761  You can safely ignore these, too.
1762 \end_layout
1763
1764 \begin_layout Itemize
1765 \begin_inset Flex Code
1766 status collapsed
1767
1768 \begin_layout Plain Layout
1769 Overfull 
1770 \backslash
1771 hbox
1772 \end_layout
1773
1774 \end_inset
1775
1776
1777 \begin_inset Newline newline
1778 \end_inset
1779
1780 \SpecialChar LaTeX
1781  absolutely 
1782 \emph on
1783 loves
1784 \emph default
1785  to spew these out.
1786  They are warnings about lines that were too long and run past the right
1787  margin.
1788  Almost always, this is unnoticeable in the final output.
1789  (It can be just a point or two.) Or, only one or two characters extend past
1790  the margin.
1791  \SpecialChar LaTeX
1792  seems to generate at least one of these messages for just about any document
1793  you write.
1794 \begin_inset Newline newline
1795 \end_inset
1796
1797 You can ignore these messages.
1798  Your eyes will tell you if there's a problem with something that's too
1799  wide; just look at the output.
1800 \begin_inset Foot
1801 status collapsed
1802
1803 \begin_layout Plain Layout
1804 You can also enable the `draft' option in 
1805 \begin_inset Flex Noun
1806 status collapsed
1807
1808 \begin_layout Plain Layout
1809 Document\SpecialChar menuseparator
1810 Settings
1811 \end_layout
1812
1813 \end_inset
1814
1815 , and then \SpecialChar LaTeX
1816  will draw a black box in the margin of lines that are overfull.
1817 \end_layout
1818
1819 \end_inset
1820
1821
1822 \end_layout
1823
1824 \begin_layout Itemize
1825 \begin_inset Flex Code
1826 status collapsed
1827
1828 \begin_layout Plain Layout
1829 Underfull 
1830 \backslash
1831 hbox
1832 \end_layout
1833
1834 \end_inset
1835
1836
1837 \begin_inset Newline newline
1838 \end_inset
1839
1840 Not quite as common as its cousin.
1841  \SpecialChar LaTeX
1842  seems to like to print lines that are a bit too wide as opposed to ones
1843  that are a bit too narrow.
1844  We have no idea why.
1845 \end_layout
1846
1847 \begin_layout Itemize
1848 \begin_inset Flex Code
1849 status collapsed
1850
1851 \begin_layout Plain Layout
1852 Overfull 
1853 \backslash
1854 vbox
1855 \end_layout
1856
1857 \end_inset
1858
1859  and 
1860 \begin_inset Flex Code
1861 status collapsed
1862
1863 \begin_layout Plain Layout
1864 Underfull 
1865 \backslash
1866 vbox
1867 \end_layout
1868
1869 \end_inset
1870
1871
1872 \begin_inset Newline newline
1873 \end_inset
1874
1875 Warnings about troubles breaking the page.
1876  Once again, just look at the output.
1877  Your eyes will tell you where something has gone wrong.
1878 \end_layout
1879
1880 \begin_layout Itemize
1881 \begin_inset Flex Code
1882 status collapsed
1883
1884 \begin_layout Plain Layout
1885 LaTeX Error: File 
1886 \begin_inset Quotes els
1887 \end_inset
1888
1889 Xxxx
1890 \begin_inset Quotes ers
1891 \end_inset
1892
1893  not found
1894 \end_layout
1895
1896 \end_inset
1897
1898
1899 \begin_inset Newline newline
1900 \end_inset
1901
1902 The file 
1903 \begin_inset Quotes eld
1904 \end_inset
1905
1906 Xxxx
1907 \begin_inset Quotes erd
1908 \end_inset
1909
1910  isn't installed on this system.
1911  This usually appears because some package your document needs isn't installed.
1912  If you didn't touch the preamble or didn't use the 
1913 \begin_inset Flex Code
1914 status collapsed
1915
1916 \begin_layout Plain Layout
1917
1918 \backslash
1919 usepackage{}
1920 \end_layout
1921
1922 \end_inset
1923
1924  command, then one of the packages \SpecialChar LyX
1925  tried to load is missing.
1926  Use 
1927 \begin_inset Flex Noun
1928 status collapsed
1929
1930 \begin_layout Plain Layout
1931 Help\SpecialChar menuseparator
1932 \SpecialChar LaTeX
1933  Configuration
1934 \end_layout
1935
1936 \end_inset
1937
1938  to get a list of packages that \SpecialChar LyX
1939  knows about.
1940  This file is updated whenever you reconfigure \SpecialChar LyX
1941  (using 
1942 \begin_inset Flex Noun
1943 status collapsed
1944
1945 \begin_layout Plain Layout
1946 Tools\SpecialChar menuseparator
1947 Reconfigure
1948 \end_layout
1949
1950 \end_inset
1951
1952 ) and tells you which packages have been detected and what they do.
1953 \begin_inset Newline newline
1954 \end_inset
1955
1956 If you did use the 
1957 \begin_inset Flex Code
1958 status collapsed
1959
1960 \begin_layout Plain Layout
1961
1962 \backslash
1963 usepackage{}
1964 \end_layout
1965
1966 \end_inset
1967
1968  command and the package in question isn't installed, then you'll need to
1969  install it yourself.
1970 \end_layout
1971
1972 \begin_layout Itemize
1973 \begin_inset Flex Code
1974 status collapsed
1975
1976 \begin_layout Plain Layout
1977 LaTeX Error: Unknown option
1978 \end_layout
1979
1980 \end_inset
1981
1982
1983 \begin_inset Newline newline
1984 \end_inset
1985
1986 Error messages beginning with this are trying to tell you that you specified
1987  a bad or undefined option to a package.
1988  Check the package's documentation.
1989 \end_layout
1990
1991 \begin_layout Itemize
1992 \begin_inset Flex Code
1993 status collapsed
1994
1995 \begin_layout Plain Layout
1996 Undefined control sequence
1997 \end_layout
1998
1999 \end_inset
2000
2001
2002 \begin_inset Newline newline
2003 \end_inset
2004
2005 If you've inserted \SpecialChar LaTeX
2006  code into your document, but made a typo, you'll get
2007  one of these.
2008  You may have forgotten to load a package.
2009  In any case, this error message usually means that you used an undefined
2010  command.
2011  
2012 \end_layout
2013
2014 \begin_layout Standard
2015 There are other error and warning messages.
2016  Some are self-explanatory.
2017  These are usually \SpecialChar LaTeX
2018  messages.
2019  Others are downright cryptic.
2020  These are usually \SpecialChar TeX
2021  error messages, and we really have 
2022 \emph on
2023 no clue
2024 \emph default
2025  what they mean or how to decipher them.
2026  No-one does.
2027 \end_layout
2028
2029 \begin_layout Standard
2030 There's a general sequence you should follow if you get error messages:
2031 \end_layout
2032
2033 \begin_layout Enumerate
2034 Look at the \SpecialChar LaTeX
2035  code you inserted for typos.
2036 \end_layout
2037
2038 \begin_layout Enumerate
2039 If there are no typos, check that you used the command(s) correctly.
2040 \end_layout
2041
2042 \begin_layout Enumerate
2043 If you get a bunch of error boxes piled up at the very top of the document—and
2044  especially if you see a 
2045 \begin_inset Quotes eld
2046 \end_inset
2047
2048
2049 \begin_inset Flex Code
2050 status collapsed
2051
2052 \begin_layout Plain Layout
2053 Missing 
2054 \backslash
2055 begin{document}
2056 \end_layout
2057
2058 \end_inset
2059
2060
2061 \begin_inset Quotes erd
2062 \end_inset
2063
2064  error—it means that there are errors in the preamble.
2065  Start debugging your preamble.
2066 \end_layout
2067
2068 \begin_layout Enumerate
2069 If you didn't add anything to the preamble and didn't add any \SpecialChar LaTeX
2070  code to the
2071  document, the first suspect is your \SpecialChar LaTeX
2072  distribution itself.
2073  Check for missing packages and install them.
2074 \end_layout
2075
2076 \begin_layout Enumerate
2077 Okay, so there are no missing packages.
2078  Did you use any of the fine-tuning options in \SpecialChar LyX
2079 ? Specifically, did you 
2080 \emph on
2081 misuse
2082 \emph default
2083  any of them, like trying to manually insert lots of 
2084 \begin_inset Flex Code
2085 status collapsed
2086
2087 \begin_layout Plain Layout
2088 Protected
2089 \begin_inset space ~
2090 \end_inset
2091
2092 Blanks
2093 \end_layout
2094
2095 \end_inset
2096
2097
2098 \begin_inset Flex Code
2099 status collapsed
2100
2101 \begin_layout Plain Layout
2102 Linebreaks
2103 \end_layout
2104
2105 \end_inset
2106
2107 , or 
2108 \begin_inset Flex Code
2109 status collapsed
2110
2111 \begin_layout Plain Layout
2112 Pagebreaks
2113 \end_layout
2114
2115 \end_inset
2116
2117 ? Did you try to kludge something together with these instead of using the
2118  appropriate paragraph environment?
2119 \end_layout
2120
2121 \begin_layout Enumerate
2122 All right, you didn't use any of the fine-tuning options, you played by
2123  the rules.
2124  Did you try to pull a fancy maneuver? Did you do something funky inside
2125  a table or an equation, like inserting a graphic into a table cell?
2126 \end_layout
2127
2128 \begin_layout Enumerate
2129 Do you have long sections of text where \SpecialChar LaTeX
2130  cannot find a place to break a
2131  line? By default, \SpecialChar LaTeX
2132  is rather strict about how much extra inter-word spacing
2133  it will add in order to break a line.
2134  Preferably, you should rework the paragraph to avoid the problem.
2135 \end_layout
2136
2137 \begin_layout Enumerate
2138 Did you go overboard with the nesting? \SpecialChar LyX
2139  (currently) doesn't check to make
2140  sure you're in the limits for nesting environments.
2141  If you nested a bunch of environments to the 
2142 \begin_inset Formula $17^{\mathrm{th}}$
2143 \end_inset
2144
2145  level, that's the problem.
2146  (The limit in \SpecialChar LaTeX
2147  is five.)
2148 \end_layout
2149
2150 \begin_layout Enumerate
2151 Okay, you didn't get any error messages, but your output looks awful.
2152  If you have a table or figure that's too wide or long for the page, you
2153  need to:
2154 \end_layout
2155
2156 \begin_deeper
2157 \begin_layout Enumerate
2158 rescale the figure so it fits.
2159 \end_layout
2160
2161 \begin_layout Enumerate
2162 trim down the table so it fits.
2163 \end_layout
2164
2165 \end_deeper
2166 \begin_layout Enumerate
2167 If something else is wrong with the output, and you didn't try to pull anything
2168  fancy or kludge the fine-tuning options, we're not sure what's wrong.
2169 \end_layout
2170
2171 \begin_layout Standard
2172 If all this doesn't help—well, then 
2173 \emph on
2174 perhaps
2175 \emph default
2176  you might have found a bug in \SpecialChar LyX
2177 \SpecialChar ldots
2178 .
2179 \end_layout
2180
2181 \begin_layout Chapter
2182 Supplemental Tools
2183 \end_layout
2184
2185 \begin_layout Section
2186 Customizing Bibliographies with Bib\SpecialChar TeX
2187
2188 \change_inserted -712698321 1485694846
2189  or Biblatex
2190 \change_unchanged
2191
2192 \end_layout
2193
2194 \begin_layout Standard
2195 The most basic information about how to use Bib\SpecialChar TeX
2196  
2197 \change_inserted -712698321 1485694851
2198 or 
2199 \family sans
2200 Biblatex
2201 \family default
2202  
2203 \change_unchanged
2204 with \SpecialChar LyX
2205  is contained in the section 
2206 \emph on
2207 Bibliography databases
2208 \change_deleted -712698321 1485694823
2209  (Bib\SpecialChar TeX
2210 )
2211 \change_unchanged
2212
2213 \emph default
2214  of the 
2215 \emph on
2216 User's Guide
2217 \emph default
2218 .
2219  The following subsections explain special bibliography features supported
2220  by \SpecialChar LyX
2221 .
2222 \end_layout
2223
2224 \begin_layout Subsection
2225 Alternative Citation Styles
2226 \end_layout
2227
2228 \begin_layout Standard
2229 Standard Bib\SpecialChar TeX
2230  uses numbers (e.
2231 \begin_inset space \thinspace{}
2232 \end_inset
2233
2234 g.
2235 \begin_inset space \space{}
2236 \end_inset
2237
2238
2239 \begin_inset Quotes eld
2240 \end_inset
2241
2242 [12]
2243 \begin_inset Quotes erd
2244 \end_inset
2245
2246 ) to refer to a cited work.
2247  However, in many scientific disciplines, other citation styles are in use.
2248  The most common one is the author-year style (e.
2249 \begin_inset space \thinspace{}
2250 \end_inset
2251
2252 g.
2253 \begin_inset space \space{}
2254 \end_inset
2255
2256
2257 \begin_inset Quotes eld
2258 \end_inset
2259
2260 Knuth 1984a
2261 \begin_inset Quotes erd
2262 \end_inset
2263
2264 ).
2265  \SpecialChar LyX
2266  supports 
2267 \change_deleted -712698321 1485694902
2268 two
2269 \change_inserted -712698321 1485694902
2270 three
2271 \change_unchanged
2272  packages that provide this style,
2273 \change_inserted -712698321 1485694917
2274  
2275 \begin_inset Flex Code
2276 status collapsed
2277
2278 \begin_layout Plain Layout
2279
2280 \change_inserted -712698321 1485694917
2281 biblatex
2282 \change_unchanged
2283
2284 \end_layout
2285
2286 \end_inset
2287
2288 ,
2289 \change_unchanged
2290  
2291 \begin_inset Flex Code
2292 status collapsed
2293
2294 \begin_layout Plain Layout
2295 natbib
2296 \end_layout
2297
2298 \end_inset
2299
2300
2301 \change_inserted -712698321 1485696751
2302 ,
2303 \change_unchanged
2304  and 
2305 \begin_inset Flex Code
2306 status collapsed
2307
2308 \begin_layout Plain Layout
2309 jurabib
2310 \end_layout
2311
2312 \end_inset
2313
2314 .
2315  
2316 \change_deleted -712698321 1485695091
2317 Both
2318 \change_inserted -712698321 1485695093
2319 Each of these
2320 \change_unchanged
2321  packages ha
2322 \change_deleted -712698321 1485695095
2323 ve
2324 \change_inserted -712698321 1485695095
2325 s
2326 \change_unchanged
2327  their pros and cons, which cannot be listed in detail.
2328  If you only want to have simple author-year (or author-numerical) style,
2329  or if you want to use one of the countless style files for 
2330 \begin_inset Flex Code
2331 status collapsed
2332
2333 \begin_layout Plain Layout
2334 natbib
2335 \end_layout
2336
2337 \end_inset
2338
2339 , then the established 
2340 \begin_inset Flex Code
2341 status collapsed
2342
2343 \begin_layout Plain Layout
2344 natbib
2345 \end_layout
2346
2347 \end_inset
2348
2349  package is probably your choice.
2350  If you 
2351 \change_inserted -712698321 1485695152
2352 look for specific citation styles common in law studies
2353 \change_deleted -712698321 1485695162
2354 need special features like short title references, ibidem etc.
2355 \change_unchanged
2356 , you might consider the 
2357 \begin_inset Flex Code
2358 status collapsed
2359
2360 \begin_layout Plain Layout
2361 jurabib
2362 \end_layout
2363
2364 \end_inset
2365
2366  package.
2367
2368 \change_inserted -712698321 1485695432
2369  If you want to have full control over the formatting or look for advanced
2370  features such as ibidem, footnote citations, full title citations, advanced
2371  date formats (such as 400 BC) or full localization to other languages than
2372  English, you should definitely consider 
2373 \begin_inset Flex Code
2374 status collapsed
2375
2376 \begin_layout Plain Layout
2377
2378 \change_inserted -712698321 1485695328
2379 biblatex
2380 \end_layout
2381
2382 \end_inset
2383
2384 , which exceeds all other packages in terms of features, but is also quite
2385  heavy and more resource-hungry.
2386 \change_unchanged
2387
2388 \end_layout
2389
2390 \begin_layout Standard
2391 The handling of 
2392 \change_deleted -712698321 1485695449
2393 both
2394 \change_inserted -712698321 1485695449
2395 these
2396 \change_unchanged
2397  packages in \SpecialChar LyX
2398  is basically the same.
2399  Go to 
2400 \begin_inset Flex Noun
2401 status collapsed
2402
2403 \begin_layout Plain Layout
2404 Document\SpecialChar menuseparator
2405 Settings
2406 \end_layout
2407
2408 \end_inset
2409
2410  and select under 
2411 \begin_inset Flex Noun
2412 status collapsed
2413
2414 \begin_layout Plain Layout
2415 Bibliography
2416 \end_layout
2417
2418 \end_inset
2419
2420  
2421 \change_deleted -712698321 1485695462
2422 the option
2423 \change_inserted -712698321 1485695559
2424 the 
2425 \begin_inset Flex Noun
2426 status collapsed
2427
2428 \begin_layout Plain Layout
2429
2430 \change_inserted -712698321 1485695499
2431 Style Format
2432 \end_layout
2433
2434 \end_inset
2435
2436  
2437 \begin_inset Flex Noun
2438 status collapsed
2439
2440 \begin_layout Plain Layout
2441
2442 \change_inserted -712698321 1485695527
2443 Biblatex
2444 \end_layout
2445
2446 \end_inset
2447
2448
2449 \begin_inset Flex Noun
2450 status collapsed
2451
2452 \begin_layout Plain Layout
2453
2454 \change_inserted -712698321 1485695554
2455 Biblatex (Natbib mode)
2456 \end_layout
2457
2458 \end_inset
2459
2460 ,
2461 \change_unchanged
2462  
2463 \begin_inset Flex Noun
2464 status collapsed
2465
2466 \begin_layout Plain Layout
2467 Natbib
2468 \change_inserted -712698321 1485695505
2469  (BibTeX)
2470 \change_unchanged
2471
2472 \end_layout
2473
2474 \end_inset
2475
2476  or 
2477 \begin_inset Flex Noun
2478 status collapsed
2479
2480 \begin_layout Plain Layout
2481 Jurabib
2482 \change_inserted -712698321 1485695511
2483  (BibTeX)
2484 \change_unchanged
2485
2486 \end_layout
2487
2488 \end_inset
2489
2490
2491 \change_inserted -712698321 1485695637
2492  (see sec.
2493 \begin_inset space ~
2494 \end_inset
2495
2496 6.5.3 in the User's Guide for more information on these choices)
2497 \change_unchanged
2498 .
2499  With 
2500 \change_deleted -712698321 1485695643
2501 both
2502 \change_inserted -712698321 1485695645
2503 all these
2504 \change_unchanged
2505  packages, you will get some extra features in the citation dialog and you
2506  can select the style of the reference (
2507 \begin_inset Quotes eld
2508 \end_inset
2509
2510 Knuth 1984
2511 \begin_inset Quotes erd
2512 \end_inset
2513
2514
2515 \begin_inset Quotes eld
2516 \end_inset
2517
2518 Knuth (1984)
2519 \begin_inset Quotes erd
2520 \end_inset
2521
2522
2523 \begin_inset Quotes eld
2524 \end_inset
2525
2526 Knuth, 1984
2527 \begin_inset Quotes erd
2528 \end_inset
2529
2530
2531 \begin_inset Quotes eld
2532 \end_inset
2533
2534 1984
2535 \begin_inset Quotes erd
2536 \end_inset
2537
2538  etc.).
2539  Note that 
2540 \change_deleted -712698321 1485695659
2541 both
2542 \change_inserted -712698321 1485695660
2543 either
2544 \change_unchanged
2545  package
2546 \change_deleted -712698321 1485695663
2547 s
2548 \change_unchanged
2549  need
2550 \change_inserted -712698321 1485695664
2551 s
2552 \change_unchanged
2553  specifically designed style files.
2554  They 
2555 \change_deleted -712698321 1485695676
2556 both
2557 \change_inserted -712698321 1485695676
2558 all
2559 \change_unchanged
2560  ship their own, but there are lots of additional style files, and there
2561  is even an interactive style file builder
2562 \begin_inset Foot
2563 status collapsed
2564
2565 \begin_layout Plain Layout
2566 See 
2567 \begin_inset Flex URL
2568 status open
2569
2570 \begin_layout Plain Layout
2571
2572 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
2573 \end_layout
2574
2575 \end_inset
2576
2577
2578 \end_layout
2579
2580 \end_inset
2581
2582  for 
2583 \begin_inset Flex Code
2584 status collapsed
2585
2586 \begin_layout Plain Layout
2587 natbib
2588 \end_layout
2589
2590 \end_inset
2591
2592 .
2593 \end_layout
2594
2595 \begin_layout Subsection
2596 S
2597 \change_deleted -712698321 1486199102
2598 ection
2599 \change_inserted -712698321 1486199104
2600 ubdivid
2601 \change_unchanged
2602 ed Bibliographies
2603 \end_layout
2604
2605 \begin_layout Standard
2606 Sometimes you might need to divide your bibliography into several sections.
2607  If you are for instance a historian, the possibility to separate sources
2608  and scientific works is most likely a 
2609 \begin_inset Quotes eld
2610 \end_inset
2611
2612 must have
2613 \begin_inset Quotes erd
2614 \end_inset
2615
2616 .
2617  Unfortunately, Bib\SpecialChar TeX
2618  itself does not allow you to do this.
2619  But with the help of some \SpecialChar LaTeX
2620  packages, Bib\SpecialChar TeX
2621  can be extended to fit your needs.
2622 \end_layout
2623
2624 \begin_layout Standard
2625 \SpecialChar LyX
2626  provides native support for one of these packages, 
2627 \family typewriter
2628 bibtopic
2629 \family default
2630 .
2631 \begin_inset Foot
2632 status collapsed
2633
2634 \begin_layout Plain Layout
2635 Available from 
2636 \begin_inset Flex URL
2637 status open
2638
2639 \begin_layout Plain Layout
2640
2641 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
2642 \end_layout
2643
2644 \end_inset
2645
2646
2647 \end_layout
2648
2649 \end_inset
2650
2651  The advantage of this package (compared to other packages 
2652 \change_deleted -712698321 1485695727
2653 like
2654 \change_inserted -712698321 1485695729
2655 such as
2656 \change_unchanged
2657  
2658 \family typewriter
2659 multibib
2660 \family default
2661 ) is that you don't need to define new citation commands.
2662  Instead, you need to prepare different bibliographic databases which include
2663  the entries for the different sections of the bibliography.
2664  For example: If you want to divide your bibliography into the sections
2665  
2666 \begin_inset Quotes eld
2667 \end_inset
2668
2669 Sources
2670 \begin_inset Quotes erd
2671 \end_inset
2672
2673  and 
2674 \begin_inset Quotes eld
2675 \end_inset
2676
2677 Scientific works
2678 \begin_inset Quotes erd
2679 \end_inset
2680
2681 , you first need to create two bibliographic databases, e.
2682 \begin_inset space \thinspace{}
2683 \end_inset
2684
2685 g.
2686 \begin_inset space \space{}
2687 \end_inset
2688
2689
2690 \begin_inset Flex Code
2691 status collapsed
2692
2693 \begin_layout Plain Layout
2694 sources.bib
2695 \end_layout
2696
2697 \end_inset
2698
2699  and 
2700 \begin_inset Flex Code
2701 status collapsed
2702
2703 \begin_layout Plain Layout
2704 scientific.bib
2705 \end_layout
2706
2707 \end_inset
2708
2709 .
2710  
2711 \end_layout
2712
2713 \begin_layout Standard
2714 Go to 
2715 \begin_inset Flex Noun
2716 status collapsed
2717
2718 \begin_layout Plain Layout
2719 Document\SpecialChar menuseparator
2720 Settings
2721 \end_layout
2722
2723 \end_inset
2724
2725  and check under 
2726 \begin_inset Flex Noun
2727 status collapsed
2728
2729 \begin_layout Plain Layout
2730 Bibliography
2731 \end_layout
2732
2733 \end_inset
2734
2735  the option 
2736 \begin_inset Flex Noun
2737 status collapsed
2738
2739 \begin_layout Plain Layout
2740 S
2741 \change_deleted -712698321 1486199132
2742 ection
2743 \change_inserted -712698321 1486199136
2744 ubdivid
2745 \change_unchanged
2746 ed bibliography
2747 \end_layout
2748
2749 \end_inset
2750
2751 .
2752  Now you can insert multiple Bib\SpecialChar TeX
2753  bibliographies, one for each section of
2754  your bibliography.
2755  Returning to our example: Insert the Bib\SpecialChar TeX
2756  bibliography 
2757 \begin_inset Flex Code
2758 status collapsed
2759
2760 \begin_layout Plain Layout
2761 sources.bib
2762 \end_layout
2763
2764 \end_inset
2765
2766  and a second one for the database 
2767 \begin_inset Flex Code
2768 status collapsed
2769
2770 \begin_layout Plain Layout
2771 scientific.bib
2772 \end_layout
2773
2774 \end_inset
2775
2776 .
2777  You are free to use the same or different styles for each section.
2778  Additionally, you can choose if the bibliography section should contain
2779  
2780 \begin_inset Quotes eld
2781 \end_inset
2782
2783 all cited references
2784 \begin_inset Quotes erd
2785 \end_inset
2786
2787  of the specified database(s) (which is the default), 
2788 \begin_inset Quotes eld
2789 \end_inset
2790
2791 all uncited references
2792 \begin_inset Quotes erd
2793 \end_inset
2794
2795  or even 
2796 \begin_inset Quotes eld
2797 \end_inset
2798
2799 all references
2800 \begin_inset Quotes erd
2801 \end_inset
2802
2803 .
2804  This might be useful if you would like to separate your bibliography into
2805  three sections: 
2806 \begin_inset Quotes eld
2807 \end_inset
2808
2809 Cited sources
2810 \begin_inset Quotes erd
2811 \end_inset
2812
2813
2814 \begin_inset Quotes eld
2815 \end_inset
2816
2817 Uncited sources
2818 \begin_inset Quotes erd
2819 \end_inset
2820
2821 , and 
2822 \begin_inset Quotes eld
2823 \end_inset
2824
2825 Scientific works
2826 \begin_inset Quotes erd
2827 \end_inset
2828
2829 .
2830  The titles for the sections can be added as ordinary sections or subsections.
2831  Since 
2832 \begin_inset Flex Code
2833 status collapsed
2834
2835 \begin_layout Plain Layout
2836 bibtopic
2837 \end_layout
2838
2839 \end_inset
2840
2841  removes the bibliography title, you have to manually re-add that, too (as
2842  a chapter* or section*, for instance).
2843 \change_inserted -712698321 1485695762
2844
2845 \end_layout
2846
2847 \begin_layout Standard
2848
2849 \change_inserted -712698321 1486200403
2850 With 
2851 \family sans
2852 Biblatex
2853 \family default
2854 , the procedure is a bit different.
2855  Since 
2856 \family typewriter
2857 bibtopic
2858 \family default
2859  does not work with 
2860 \family sans
2861 Biblatex
2862 \family default
2863 , the aforementioned 
2864 \begin_inset Flex Noun
2865 status collapsed
2866
2867 \begin_layout Plain Layout
2868
2869 \change_inserted -712698321 1486200382
2870 Subdivided bibliography
2871 \end_layout
2872
2873 \end_inset
2874
2875  option is disabled if you use 
2876 \family sans
2877 Biblatex
2878 \family default
2879 .
2880  However, 
2881 \family sans
2882 Biblatex
2883 \family default
2884  provides its own means to generate subdivided bibliographies.
2885  You can either add keywords to bibliography entries via the 
2886 \begin_inset Flex Code
2887 status collapsed
2888
2889 \begin_layout Plain Layout
2890
2891 \change_inserted -712698321 1485696318
2892 keywords
2893 \change_unchanged
2894
2895 \end_layout
2896
2897 \end_inset
2898
2899  entry option and then filter bibliography sections by keyword (by adding
2900  
2901 \begin_inset Flex Code
2902 status collapsed
2903
2904 \begin_layout Plain Layout
2905
2906 \change_inserted -712698321 1485696306
2907 keyword=mykeyword
2908 \change_unchanged
2909
2910 \end_layout
2911
2912 \end_inset
2913
2914  to the 
2915 \begin_inset Flex Noun
2916 status collapsed
2917
2918 \begin_layout Plain Layout
2919
2920 \change_inserted -712698321 1485696431
2921 Options
2922 \change_unchanged
2923
2924 \end_layout
2925
2926 \end_inset
2927
2928  field of the dialog that opens if you right-click on the 
2929 \begin_inset Flex Noun
2930 status collapsed
2931
2932 \begin_layout Plain Layout
2933
2934 \change_inserted -712698321 1485696518
2935 Biblatex Generated Bibliography
2936 \change_unchanged
2937
2938 \end_layout
2939
2940 \end_inset
2941
2942  button), or you can filter by entry types (such as 
2943 \emph on
2944 book
2945 \emph default
2946  or 
2947 \emph on
2948 article
2949 \emph default
2950 ) by entering e.
2951 \begin_inset space \thinspace{}
2952 \end_inset
2953
2954 g.
2955  
2956 \begin_inset Flex Code
2957 status collapsed
2958
2959 \begin_layout Plain Layout
2960
2961 \change_inserted -712698321 1485696628
2962 type=book
2963 \end_layout
2964
2965 \end_inset
2966
2967  or 
2968 \begin_inset Flex Code
2969 status collapsed
2970
2971 \begin_layout Plain Layout
2972
2973 \change_inserted -712698321 1485696643
2974 nottype=collection
2975 \end_layout
2976
2977 \end_inset
2978
2979  to the mentioned 
2980 \begin_inset Flex Noun
2981 status collapsed
2982
2983 \begin_layout Plain Layout
2984
2985 \change_inserted -712698321 1485696667
2986 Options
2987 \end_layout
2988
2989 \end_inset
2990
2991  field, or you can create so-called 
2992 \begin_inset Quotes eld
2993 \end_inset
2994
2995 Bibliography Categories
2996 \begin_inset Quotes erd
2997 \end_inset
2998
2999  to which you can assign individual entries.
3000  Please refer to the Biblatex manual, section 
3001 \emph on
3002 Subdivided Bibliographies
3003 \emph default
3004 , for details.
3005 \change_unchanged
3006
3007 \end_layout
3008
3009 \begin_layout Subsection
3010 Multiple Bibliographies
3011 \end_layout
3012
3013 \begin_layout Standard
3014 Multiple bibliographies, e.
3015 \begin_inset space \thinspace{}
3016 \end_inset
3017
3018 g.
3019 \begin_inset space \space{}
3020 \end_inset
3021
3022 a bibliography for each 
3023 \change_inserted -712698321 1486199441
3024 part, chapter, 
3025 \change_unchanged
3026 section
3027 \change_inserted -712698321 1486231742
3028 ,
3029 \change_unchanged
3030  
3031 \change_deleted -712698321 1486231742
3032 or 
3033 \change_inserted -712698321 1486199445
3034 subsection
3035 \change_deleted -712698321 1486199447
3036 chapter
3037 \change_unchanged
3038  
3039 \change_inserted -712698321 1486231758
3040 or child (sub-document) 
3041 \change_unchanged
3042 of the document, are 
3043 \change_deleted -712698321 1486199458
3044 not 
3045 \change_inserted -712698321 1486200433
3046 also 
3047 \change_unchanged
3048 supported 
3049 \change_inserted -712698321 1486231617
3050 by \SpecialChar LyX
3051 .
3052  In order to enable it, go to 
3053 \begin_inset Flex Noun
3054 status collapsed
3055
3056 \begin_layout Plain Layout
3057
3058 \change_inserted -712698321 1486199572
3059 Document\SpecialChar menuseparator
3060 Settings\SpecialChar menuseparator
3061 Bibliography
3062 \change_unchanged
3063
3064 \end_layout
3065
3066 \end_inset
3067
3068  and select the relevant unit (e.
3069 \begin_inset space \thinspace{}
3070 \end_inset
3071
3072 g., 
3073 \begin_inset Quotes eld
3074 \end_inset
3075
3076 per section
3077 \begin_inset Quotes erd
3078 \end_inset
3079
3080 ) in the 
3081 \begin_inset Flex Noun
3082 status collapsed
3083
3084 \begin_layout Plain Layout
3085
3086 \change_inserted -712698321 1486199553
3087 Multiple Bibliographies
3088 \change_unchanged
3089
3090 \end_layout
3091
3092 \end_inset
3093
3094  combo box.
3095  
3096 \change_deleted -712698321 1486199771
3097 by Bib\SpecialChar TeX
3098  itself.
3099  
3100 \change_inserted -712698321 1486200569
3101 Then add a Bib(la)\SpecialChar TeX
3102  bibliography to each unit (e.
3103 \begin_inset space \thinspace{}
3104 \end_inset
3105
3106 g., section) of your document.
3107  In the output, a separate bibliography, containing only the references
3108  done in the current unit is generated.
3109 \end_layout
3110
3111 \begin_layout Standard
3112
3113 \change_inserted -712698321 1486199829
3114 If you use Bib\SpecialChar TeX
3115
3116 \change_deleted -712698321 1486199835
3117 But 
3118 \change_inserted -712698321 1486231520
3119 either 
3120 \change_unchanged
3121 the
3122 \change_inserted -712698321 1486231576
3123  
3124 \begin_inset Flex Code
3125 status collapsed
3126
3127 \begin_layout Plain Layout
3128
3129 \change_inserted -712698321 1486231576
3130 chapterbib
3131 \change_unchanged
3132
3133 \end_layout
3134
3135 \end_inset
3136
3137  of the
3138 \change_unchanged
3139  
3140 \begin_inset Flex Code
3141 status collapsed
3142
3143 \begin_layout Plain Layout
3144 bibtopic
3145 \end_layout
3146
3147 \end_inset
3148
3149  package
3150 \change_deleted -712698321 1486231584
3151 , which is used for the creation of sectioned bibliographies in \SpecialChar LyX
3152  (see the
3153  previous section),
3154 \change_unchanged
3155  
3156 \change_inserted -712698321 1486231676
3157 is used to create multiple bibliographies.
3158  The former package is used if you select 
3159 \begin_inset Quotes eld
3160 \end_inset
3161
3162 per child document
3163 \begin_inset Quotes erd
3164 \end_inset
3165
3166  and do 
3167 \emph on
3168 not
3169 \emph default
3170  check 
3171 \begin_inset Flex Noun
3172 status collapsed
3173
3174 \begin_layout Plain Layout
3175
3176 \change_inserted -712698321 1486231676
3177 Sectioned Bibliography
3178 \change_unchanged
3179
3180 \end_layout
3181
3182 \end_inset
3183
3184 .
3185  In all other cases, 
3186 \begin_inset Flex Code
3187 status collapsed
3188
3189 \begin_layout Plain Layout
3190
3191 \change_inserted -712698321 1486231655
3192 bibtopic
3193 \end_layout
3194
3195 \end_inset
3196
3197  is used.
3198 \change_deleted -712698321 1486200505
3199 provides an easy way to solve this task, if you are willing to use some
3200  
3201 \begin_inset Flex Noun
3202 status collapsed
3203
3204 \begin_layout Plain Layout
3205 \SpecialChar TeX
3206  Code
3207 \end_layout
3208
3209 \end_inset
3210
3211  (see section
3212 \begin_inset space ~
3213 \end_inset
3214
3215
3216 \begin_inset CommandInset ref
3217 LatexCommand ref
3218 reference "sec:Inserting-TeX-Code"
3219
3220 \end_inset
3221
3222 ).
3223 \change_unchanged
3224
3225 \begin_inset Foot
3226 status collapsed
3227
3228 \begin_layout Plain Layout
3229 An alternative approach
3230 \change_inserted -712698321 1486199215
3231 , if you are willing to use some 
3232 \begin_inset Flex Noun
3233 status collapsed
3234
3235 \begin_layout Plain Layout
3236
3237 \change_inserted -712698321 1486199212
3238 \SpecialChar TeX
3239  Code
3240 \end_layout
3241
3242 \end_inset
3243
3244  (see section
3245 \begin_inset space ~
3246 \end_inset
3247
3248
3249 \begin_inset CommandInset ref
3250 LatexCommand ref
3251 reference "sec:Inserting-TeX-Code"
3252
3253 \end_inset
3254
3255 ),
3256 \change_unchanged
3257  is to use the 
3258 \change_deleted -712698321 1486231820
3259
3260 \begin_inset Flex Code
3261 status collapsed
3262
3263 \begin_layout Plain Layout
3264 chapterbib
3265 \end_layout
3266
3267 \end_inset
3268
3269  or 
3270 \change_unchanged
3271
3272 \begin_inset Flex Code
3273 status collapsed
3274
3275 \begin_layout Plain Layout
3276 bibunits
3277 \end_layout
3278
3279 \end_inset
3280
3281  package
3282 \change_deleted -712698321 1486231824
3283 , respectively
3284 \change_unchanged
3285 .
3286 \end_layout
3287
3288 \end_inset
3289
3290
3291 \change_inserted -712698321 1486231646
3292  
3293 \change_deleted -712698321 1486202138
3294
3295 \end_layout
3296
3297 \begin_layout Standard
3298
3299 \change_deleted -712698321 1486202126
3300 First go to 
3301 \begin_inset Flex Noun
3302 status collapsed
3303
3304 \begin_layout Plain Layout
3305 Document\SpecialChar menuseparator
3306 Settings
3307 \end_layout
3308
3309 \end_inset
3310
3311  and under 
3312 \begin_inset Flex Noun
3313 status collapsed
3314
3315 \begin_layout Plain Layout
3316 Bibliography
3317 \end_layout
3318
3319 \end_inset
3320
3321  check 
3322 \begin_inset Flex Noun
3323 status collapsed
3324
3325 \begin_layout Plain Layout
3326 Sectioned bibliography
3327 \end_layout
3328
3329 \end_inset
3330
3331 .
3332  In the document, you have to enclose the sections, which shall contain
3333  their own bibliography (including the Bib\SpecialChar TeX
3334  bibliography itself), between
3335  
3336 \change_inserted -712698321 1486231702
3337 If 
3338 \begin_inset Flex Code
3339 status collapsed
3340
3341 \begin_layout Plain Layout
3342
3343 \change_inserted -712698321 1486231702
3344 bibtopic
3345 \end_layout
3346
3347 \end_inset
3348
3349  is used, \SpecialChar LyX
3350  encloses the specified units in 
3351 \begin_inset Flex Code
3352 status collapsed
3353
3354 \begin_layout Plain Layout
3355
3356 \change_inserted -712698321 1486201443
3357 bibtopic
3358 \end_layout
3359
3360 \end_inset
3361
3362 's 
3363 \change_unchanged
3364
3365 \begin_inset Flex Code
3366 status collapsed
3367
3368 \begin_layout Plain Layout
3369
3370 \backslash
3371 begin{btUnit}
3372 \end_layout
3373
3374 \end_inset
3375
3376  and 
3377 \begin_inset Flex Code
3378 status collapsed
3379
3380 \begin_layout Plain Layout
3381
3382 \backslash
3383 end{btUnit}
3384 \end_layout
3385
3386 \end_inset
3387
3388
3389 \change_inserted -712698321 1486231697
3390  in order to create the units.
3391  Note that this approach has
3392 \change_unchanged
3393  
3394 \change_inserted -712698321 1486231697
3395 some limitations.
3396  
3397 \change_deleted -712698321 1486200476
3398 (those commands have to be inserted as \SpecialChar TeX
3399  code).
3400  The bibliography will contain all references that have been cited in the
3401  current 
3402 \begin_inset Flex Code
3403 status collapsed
3404
3405 \begin_layout Plain Layout
3406 btUnit
3407 \end_layout
3408
3409 \end_inset
3410
3411 .
3412  
3413 \series bold
3414 Note:
3415 \series default
3416  If you are using this approach, then 
3417 \change_inserted -712698321 1486231697
3418 First, 
3419 \change_unchanged
3420 every citation reference has to be inside some 
3421 \begin_inset Flex Code
3422 status collapsed
3423
3424 \begin_layout Plain Layout
3425 btUnit
3426 \end_layout
3427
3428 \end_inset
3429
3430 .
3431  
3432 \change_inserted -712698321 1486231697
3433 So citations outside a defined unit (e.
3434 \begin_inset space \thinspace{}
3435 \end_inset
3436
3437 g., before the first section if you use 
3438 \begin_inset Quotes eld
3439 \end_inset
3440
3441 by section
3442 \begin_inset Quotes erd
3443 \end_inset
3444
3445 ) will appear as 
3446 \begin_inset Quotes eld
3447 \end_inset
3448
3449 ???
3450 \begin_inset Quotes erd
3451 \end_inset
3452
3453 .
3454  You can also create your own units by entering 
3455 \begin_inset Flex Code
3456 status collapsed
3457
3458 \begin_layout Plain Layout
3459
3460 \change_inserted -712698321 1486200131
3461
3462 \backslash
3463 begin{btUnit}
3464 \end_layout
3465
3466 \end_inset
3467
3468  and 
3469 \begin_inset Flex Code
3470 status collapsed
3471
3472 \begin_layout Plain Layout
3473
3474 \change_inserted -712698321 1486200131
3475
3476 \backslash
3477 end{btUnit}
3478 \end_layout
3479
3480 \end_inset
3481
3482  as \SpecialChar TeX
3483  code (for instance to work around the mentioned limitation).
3484  Note, though, that
3485 \change_deleted -712698321 1486200476
3486 Also, the
3487 \change_unchanged
3488  
3489 \begin_inset Flex Code
3490 status collapsed
3491
3492 \begin_layout Plain Layout
3493 btUnit
3494 \end_layout
3495
3496 \end_inset
3497
3498 s cannot be nested.
3499
3500 \change_inserted -712698321 1486231697
3501  A second limitation is that 
3502 \begin_inset Flex Code
3503 status collapsed
3504
3505 \begin_layout Plain Layout
3506
3507 \change_inserted -712698321 1486200199
3508 bibtopic
3509 \end_layout
3510
3511 \end_inset
3512
3513  always processes all references of a bibliography database, even if they
3514  are not cited.
3515  This can result in odd labels (e.
3516 \begin_inset space \thinspace{}
3517 \end_inset
3518
3519 g.
3520  
3521 \begin_inset Quotes eld
3522 \end_inset
3523
3524 Miller 2014b
3525 \begin_inset Quotes erd
3526 \end_inset
3527
3528  if two works of this author from 2014 are in the database, even if only
3529  one is cited).
3530 \end_layout
3531
3532 \begin_layout Standard
3533
3534 \change_inserted -712698321 1486204109
3535 If you use 
3536 \family sans
3537 Biblatex
3538 \family default
3539 , the 
3540 \begin_inset Flex Code
3541 status collapsed
3542
3543 \begin_layout Plain Layout
3544
3545 \change_inserted -712698321 1486202183
3546 refsection
3547 \change_unchanged
3548
3549 \end_layout
3550
3551 \end_inset
3552
3553  option is used instead.
3554  If you need specific units, you can start them with the \SpecialChar TeX
3555  code 
3556 \begin_inset Flex Code
3557 status collapsed
3558
3559 \begin_layout Plain Layout
3560
3561 \change_inserted -712698321 1485697716
3562
3563 \backslash
3564 newrefsection
3565 \change_unchanged
3566
3567 \end_layout
3568
3569 \end_inset
3570
3571  or 
3572 \begin_inset Flex Code
3573 status collapsed
3574
3575 \begin_layout Plain Layout
3576
3577 \change_inserted -712698321 1485697724
3578
3579 \backslash
3580 newrefsegment
3581 \change_unchanged
3582
3583 \end_layout
3584
3585 \end_inset
3586
3587 , respectively.
3588  If you also want to control the end of the unit, use the environment 
3589 \begin_inset Flex Code
3590 status collapsed
3591
3592 \begin_layout Plain Layout
3593
3594 \change_inserted -712698321 1485697769
3595
3596 \backslash
3597 begin{refsection}
3598 \end_layout
3599
3600 \end_inset
3601
3602  \SpecialChar ldots
3603  
3604 \begin_inset Flex Code
3605 status collapsed
3606
3607 \begin_layout Plain Layout
3608
3609 \change_inserted -712698321 1485697780
3610
3611 \backslash
3612 end{refsection}
3613 \end_layout
3614
3615 \end_inset
3616
3617  instead.
3618  Note, though, that 
3619 \begin_inset Flex Code
3620 status collapsed
3621
3622 \begin_layout Plain Layout
3623
3624 \change_inserted -712698321 1486201999
3625 refsection
3626 \change_unchanged
3627
3628 \end_layout
3629
3630 \end_inset
3631
3632 s cannot be nested.
3633  In addition to the individual bibliography of the current unit, 
3634 \family sans
3635 Biblatex
3636 \family default
3637  also provides an easy way to output all bibliographies, subsequently, at
3638  one place (e.
3639 \begin_inset space \thinspace{}
3640 \end_inset
3641
3642 g., at the end of the document).
3643  Select 
3644 \begin_inset Quotes eld
3645 \end_inset
3646
3647 all reference units
3648 \begin_inset Quotes erd
3649 \end_inset
3650
3651  from the Content combo box of the Bib(la)TeX inset dialog in order to achieve
3652  this.
3653  Please refer to the 
3654 \family sans
3655 Biblatex
3656 \family default
3657  manual for more information on this topic.
3658 \change_unchanged
3659
3660 \end_layout
3661
3662 \begin_layout Section
3663 Multipart Documents
3664 \end_layout
3665
3666 \begin_layout Subsection
3667 General Operation
3668 \end_layout
3669
3670 \begin_layout Standard
3671 When you are working on a large file with many sections, it is often convenient
3672  to break up the document into several files, or perhaps you have something
3673  where a table may change from time to time, but the preceding text does
3674  not.
3675  In these cases, you should seriously consider using multipart documents.
3676  For example, scientific papers often have five major sections: the introduction
3677 , observations, results, discussion, and conclusion.
3678  Each of these could be its own separate \SpecialChar LyX
3679  file, with one 
3680 \begin_inset Quotes eld
3681 \end_inset
3682
3683 master
3684 \begin_inset Quotes erd
3685 \end_inset
3686
3687  file which contains the title, authors, abstract, references, etc., plus
3688  the five included files.
3689  It is important to note that each of these files is a full \SpecialChar LyX
3690  file which
3691  can be formatted and printed on its own, as well as included in a master
3692  file.
3693  Each of these files must have the same document class, however—don't attempt
3694  to mix book classes with article classes.
3695  You may also include \SpecialChar LaTeX
3696  files; however, these files must not have their own
3697  preamble (i.
3698 \begin_inset space \thinspace{}
3699 \end_inset
3700
3701 e.
3702 \begin_inset space \space{}
3703 \end_inset
3704
3705 everything up to and including the 
3706 \begin_inset Flex Code
3707 status collapsed
3708
3709 \begin_layout Plain Layout
3710
3711 \backslash
3712 begin{document}
3713 \end_layout
3714
3715 \end_inset
3716
3717  line as well as the 
3718 \begin_inset Flex Code
3719 status collapsed
3720
3721 \begin_layout Plain Layout
3722
3723 \backslash
3724 end{document}
3725 \end_layout
3726
3727 \end_inset
3728
3729  line must be deleted) or else errors will be generated when you try to
3730  make a DVI file.
3731 \end_layout
3732
3733 \begin_layout Standard
3734 \SpecialChar LyX
3735  allows you to include files quite easily with 
3736 \begin_inset Flex Noun
3737 status collapsed
3738
3739 \begin_layout Plain Layout
3740 Insert\SpecialChar menuseparator
3741 ChiId
3742 \begin_inset space ~
3743 \end_inset
3744
3745 Document
3746 \end_layout
3747
3748 \end_inset
3749
3750 .
3751  When you click on this selection a small box is inserted into the file
3752  at the current cursor location.
3753  Clicking on the box raises a dialog which allows you to select the file
3754  to be included, and the method of its inclusion.
3755  
3756 \end_layout
3757
3758 \begin_layout Standard
3759 The file selection box should by now be obvious.
3760  The three inclusion methods are 
3761 \begin_inset Quotes eld
3762 \end_inset
3763
3764 include
3765 \begin_inset Quotes erd
3766 \end_inset
3767
3768
3769 \begin_inset Quotes eld
3770 \end_inset
3771
3772 input
3773 \begin_inset Quotes erd
3774 \end_inset
3775
3776 , and 
3777 \begin_inset Quotes eld
3778 \end_inset
3779
3780 verbatim
3781 \begin_inset Quotes erd
3782 \end_inset
3783
3784 .
3785  The difference between 
3786 \begin_inset Quotes eld
3787 \end_inset
3788
3789 include
3790 \begin_inset Quotes erd
3791 \end_inset
3792
3793  and 
3794 \begin_inset Quotes eld
3795 \end_inset
3796
3797 input
3798 \begin_inset Quotes erd
3799 \end_inset
3800
3801  is really only meaningful to \SpecialChar LaTeX
3802 perts, but the practical difference is that
3803  files that are 
3804 \begin_inset Quotes eld
3805 \end_inset
3806
3807 included
3808 \begin_inset Quotes erd
3809 \end_inset
3810
3811  are typeset beginning on a new page, while files that are 
3812 \begin_inset Quotes eld
3813 \end_inset
3814
3815 inputted
3816 \begin_inset Quotes erd
3817 \end_inset
3818
3819  are typeset starting on the current page.
3820 \end_layout
3821
3822 \begin_layout Standard
3823 Generally, the master file is converted into a full \SpecialChar LaTeX
3824  file before typesetting,
3825  while the included files are converted to \SpecialChar LaTeX
3826  files that do not have all the
3827  preamble information.
3828 \end_layout
3829
3830 \begin_layout Standard
3831
3832 \begin_inset Quotes eld
3833 \end_inset
3834
3835 verbatim
3836 \begin_inset Quotes erd
3837 \end_inset
3838
3839  included file allows you to include a file typeset exactly as it appears
3840  in the file, i.
3841 \begin_inset space \thinspace{}
3842 \end_inset
3843
3844 e.
3845 \begin_inset space \space{}
3846 \end_inset
3847
3848 in 
3849 \begin_inset Flex Code
3850 status collapsed
3851
3852 \begin_layout Plain Layout
3853 verbatim
3854 \end_layout
3855
3856 \end_inset
3857
3858  mode, with the characters set in a fixed-width typewriter font.
3859  Normally, spaces in this file are invisible, though two consecutive spaces
3860  are conserved, unlike \SpecialChar LyX
3861 's normal treatment of spaces.
3862  However, setting the 
3863 \begin_inset Flex Noun
3864 status collapsed
3865
3866 \begin_layout Plain Layout
3867 Mark
3868 \begin_inset space ~
3869 \end_inset
3870
3871 spaces
3872 \begin_inset space ~
3873 \end_inset
3874
3875 in
3876 \begin_inset space ~
3877 \end_inset
3878
3879 output
3880 \end_layout
3881
3882 \end_inset
3883
3884  checkbox typesets a mark to unambiguously define the presence of a space.
3885  
3886 \end_layout
3887
3888 \begin_layout Subsection
3889 Cross-References Between Files
3890 \end_layout
3891
3892 \begin_layout Standard
3893 \begin_inset Box Shadowbox
3894 position "t"
3895 hor_pos "c"
3896 has_inner_box 1
3897 inner_pos "t"
3898 use_parbox 0
3899 use_makebox 0
3900 width "100col%"
3901 special "none"
3902 height "1in"
3903 height_special "totalheight"
3904 thickness "0.4pt"
3905 separation "3pt"
3906 shadowsize "4pt"
3907 framecolor "black"
3908 backgroundcolor "none"
3909 status open
3910
3911 \begin_layout Plain Layout
3912 This section is somewhat out of date.
3913  Need to describe default master documents and how children are opened when
3914  the master is.
3915  [[FIXME]]
3916 \end_layout
3917
3918 \end_inset
3919
3920
3921 \end_layout
3922
3923 \begin_layout Standard
3924 It is possible to set up cross-references between the different files.
3925  First, open all the files in question: let's call them A and B in a two
3926  file example, where B is included in A.
3927  Let's say you insert a label in A, then want to reference it in B.
3928  Open the cross-reference dialog whilst in document B, and you can select
3929  the 
3930 \begin_inset Quotes eld
3931 \end_inset
3932
3933 buffer
3934 \begin_inset Quotes erd
3935 \end_inset
3936
3937  to use.
3938 \end_layout
3939
3940 \begin_layout Subsection
3941 Bibliography Lists in all Subdocuments
3942 \end_layout
3943
3944 \begin_layout Standard
3945 \begin_inset Box Frameless
3946 position "t"
3947 hor_pos "c"
3948 has_inner_box 1
3949 inner_pos "t"
3950 use_parbox 0
3951 use_makebox 0
3952 width "100col%"
3953 special "none"
3954 height "1in"
3955 height_special "totalheight"
3956 thickness "0.4pt"
3957 separation "3pt"
3958 shadowsize "4pt"
3959 framecolor "black"
3960 backgroundcolor "none"
3961 status open
3962
3963 \begin_layout Plain Layout
3964 This section also needs updating.
3965  There is now material about this on the wiki, and it could be copied here.
3966 \end_layout
3967
3968 \end_inset
3969
3970
3971 \end_layout
3972
3973 \begin_layout Standard
3974 Copy the bibliography list with all entries to all subdocuments and transform
3975  them to a comment.
3976  This way \SpecialChar LyX
3977  will find the 
3978 \begin_inset Flex Code
3979 status collapsed
3980
3981 \begin_layout Plain Layout
3982 .bib
3983 \end_layout
3984
3985 \end_inset
3986
3987 -files and you can easily insert references without making the bibliography
3988  list visible.
3989 \end_layout
3990
3991 \begin_layout Standard
3992 As the bibliography list is in a comment, \SpecialChar LaTeX
3993  won't use it and the references
3994  will look like this: [?], instead of like this: [1].
3995  One solution is to use the \SpecialChar LaTeX
3996 -package 
3997 \begin_inset Flex Code
3998 status collapsed
3999
4000 \begin_layout Plain Layout
4001 comment
4002 \end_layout
4003
4004 \end_inset
4005
4006  that will only include comments by processing the files separately.
4007  To do this, add in the \SpecialChar LaTeX
4008  preamble of every subdocument the following:
4009 \end_layout
4010
4011 \begin_layout LyX-Code
4012
4013 \backslash
4014 usepackage{comment}
4015 \end_layout
4016
4017 \begin_layout LyX-Code
4018
4019 \backslash
4020 includecomment{comment}
4021 \end_layout
4022
4023 \begin_layout Standard
4024 See also 
4025 \begin_inset Flex URL
4026 status collapsed
4027
4028 \begin_layout Plain Layout
4029
4030 http://wiki.lyx.org/FAQ/Unsorted#toc31
4031 \end_layout
4032
4033 \end_inset
4034
4035 .
4036 \end_layout
4037
4038 \begin_layout Section
4039 \SpecialChar LyX
4040  Archives
4041 \end_layout
4042
4043 \begin_layout Standard
4044 Users sometimes need to be able to 
4045 \begin_inset Quotes eld
4046 \end_inset
4047
4048 bundle
4049 \begin_inset Quotes erd
4050 \end_inset
4051
4052  a \SpecialChar LyX
4053  file together with all the images (and other files) on which it depends,
4054  either for sending to a publisher or for sharing with a co-author.
4055  \SpecialChar LyX
4056  2.0 includes a Python script (
4057 \begin_inset Flex Code
4058 status collapsed
4059
4060 \begin_layout Plain Layout
4061 lyxpak.py
4062 \end_layout
4063
4064 \end_inset
4065
4066 ) that automates this process.
4067  To use it, you must have either the 
4068 \begin_inset Flex Code
4069 status collapsed
4070
4071 \begin_layout Plain Layout
4072 zipfile
4073 \end_layout
4074
4075 \end_inset
4076
4077  or 
4078 \begin_inset Flex Code
4079 status collapsed
4080
4081 \begin_layout Plain Layout
4082 tarfile
4083 \end_layout
4084
4085 \end_inset
4086
4087  python modules installed on your system.
4088  By default, the script prefers the 
4089 \begin_inset Flex Code
4090 status collapsed
4091
4092 \begin_layout Plain Layout
4093 gzip
4094 \end_layout
4095
4096 \end_inset
4097
4098 -compressed 
4099 \begin_inset Flex Code
4100 status collapsed
4101
4102 \begin_layout Plain Layout
4103 tar
4104 \end_layout
4105
4106 \end_inset
4107
4108  format on Unix-like systems and the 
4109 \begin_inset Flex Code
4110 status collapsed
4111
4112 \begin_layout Plain Layout
4113 zip
4114 \end_layout
4115
4116 \end_inset
4117
4118  format on Windows.
4119 \end_layout
4120
4121 \begin_layout Standard
4122 \SpecialChar LyX
4123 's configuration process will set the script up to export a `\SpecialChar LyX
4124  Archive',
4125  and this format will then be available under 
4126 \begin_inset Flex Code
4127 status collapsed
4128
4129 \begin_layout Plain Layout
4130 File\SpecialChar menuseparator
4131 Export
4132 \end_layout
4133
4134 \end_inset
4135
4136 .
4137 \end_layout
4138
4139 \begin_layout Standard
4140 Independently of the platform, the generation of a particular archive format
4141  can be forced by adding either the 
4142 \begin_inset Flex Code
4143 status collapsed
4144
4145 \begin_layout Plain Layout
4146 -t
4147 \end_layout
4148
4149 \end_inset
4150
4151  (for the 
4152 \begin_inset Flex Code
4153 status collapsed
4154
4155 \begin_layout Plain Layout
4156 tar
4157 \end_layout
4158
4159 \end_inset
4160
4161  format) or 
4162 \begin_inset Flex Code
4163 status collapsed
4164
4165 \begin_layout Plain Layout
4166 -z
4167 \end_layout
4168
4169 \end_inset
4170
4171  (for the 
4172 \begin_inset Flex Code
4173 status collapsed
4174
4175 \begin_layout Plain Layout
4176 zip
4177 \end_layout
4178
4179 \end_inset
4180
4181  format) switch to the 
4182 \begin_inset Flex Code
4183 status collapsed
4184
4185 \begin_layout Plain Layout
4186 \SpecialChar LyX
4187 \SpecialChar menuseparator
4188 \SpecialChar LyX
4189  Archive
4190 \end_layout
4191
4192 \end_inset
4193
4194  converter in 
4195 \begin_inset Flex Code
4196 status collapsed
4197
4198 \begin_layout Plain Layout
4199 Tools\SpecialChar menuseparator
4200 Preferences\SpecialChar menuseparator
4201 File Handling\SpecialChar menuseparator
4202 Converters
4203 \end_layout
4204
4205 \end_inset
4206
4207 .
4208  (Make sure you add the switch after the script name, not before it.)
4209 \end_layout
4210
4211 \begin_layout Section
4212 Fancy Headers and Footers
4213 \end_layout
4214
4215 \begin_layout Standard
4216 The default page layout is rather plain; for an 
4217 \begin_inset Flex Code
4218 status collapsed
4219
4220 \begin_layout Plain Layout
4221 article
4222 \end_layout
4223
4224 \end_inset
4225
4226  document class, all you get is a centered page number at the bottom of
4227  the page.
4228  This document uses KOMA-script's book class, so it appears to be a bit
4229  fancier.
4230  But to really put on a show, you need to set the document page style to
4231  
4232 \begin_inset Quotes eld
4233 \end_inset
4234
4235 fancy
4236 \begin_inset Quotes erd
4237 \end_inset
4238
4239 , as mentioned in the 
4240 \emph on
4241 User Guide
4242 \emph default
4243 .
4244  This section describes the \SpecialChar LaTeX
4245  code you need to insert in your \SpecialChar LaTeX
4246  preamble in
4247  order to get the desired effects.
4248 \end_layout
4249
4250 \begin_layout Standard
4251 For more information on fancy headers, see the 
4252 \begin_inset Flex Code
4253 status collapsed
4254
4255 \begin_layout Plain Layout
4256 fancyhdr
4257 \end_layout
4258
4259 \end_inset
4260
4261  package documentation.
4262  (
4263 \begin_inset Flex URL
4264 status collapsed
4265
4266 \begin_layout Plain Layout
4267
4268 http://www.ctan.org/tex-archive/help/Catalogue/entries/fancyhdr.html
4269 \end_layout
4270
4271 \end_inset
4272
4273 )
4274 \end_layout
4275
4276 \begin_layout Standard
4277 The page header is divided into three fields, not surprisingly labeled 
4278 \begin_inset Quotes eld
4279 \end_inset
4280
4281 left
4282 \begin_inset Quotes erd
4283 \end_inset
4284
4285
4286 \begin_inset Quotes eld
4287 \end_inset
4288
4289 center
4290 \begin_inset Quotes erd
4291 \end_inset
4292
4293 , and 
4294 \begin_inset Quotes eld
4295 \end_inset
4296
4297 right
4298 \begin_inset Quotes erd
4299 \end_inset
4300
4301 .
4302  The footer is also divided into these three fields.
4303  The \SpecialChar LaTeX
4304  commands to set these fields in the simplest manner are 
4305 \begin_inset Flex Code
4306 status collapsed
4307
4308 \begin_layout Plain Layout
4309
4310 \backslash
4311 lhead
4312 \end_layout
4313
4314 \end_inset
4315
4316
4317 \begin_inset Flex Code
4318 status collapsed
4319
4320 \begin_layout Plain Layout
4321
4322 \backslash
4323 chead
4324 \end_layout
4325
4326 \end_inset
4327
4328
4329 \begin_inset Flex Code
4330 status collapsed
4331
4332 \begin_layout Plain Layout
4333
4334 \backslash
4335 rhead
4336 \end_layout
4337
4338 \end_inset
4339
4340
4341 \begin_inset Flex Code
4342 status collapsed
4343
4344 \begin_layout Plain Layout
4345
4346 \backslash
4347 lfoot
4348 \end_layout
4349
4350 \end_inset
4351
4352 , etc.
4353  Suppose you wish to put your name in the upper left hand corner of each
4354  page.
4355  Simply insert the following command in the preamble: 
4356 \end_layout
4357
4358 \begin_layout Standard
4359
4360 \family typewriter
4361
4362 \backslash
4363 lhead{John Q.
4364  DocWriter}
4365 \end_layout
4366
4367 \begin_layout Standard
4368 You will now see your name in the upper left.
4369  If a field has a default entry that you would like to get rid of (often
4370  the page number appears in the central footer) simply include a command
4371  with a blank argument, e.
4372 \begin_inset space \thinspace{}
4373 \end_inset
4374
4375 g.:
4376 \end_layout
4377
4378 \begin_layout Standard
4379
4380 \family typewriter
4381
4382 \backslash
4383 cfoot{}
4384 \end_layout
4385
4386 \begin_layout Standard
4387 Let's get really fancy: lets put the section number with the word 
4388 \begin_inset Quotes eld
4389 \end_inset
4390
4391 Section
4392 \begin_inset Quotes erd
4393 \end_inset
4394
4395  (e.
4396 \begin_inset space \thinspace{}
4397 \end_inset
4398
4399 g.
4400 \begin_inset space \space{}
4401 \end_inset
4402
4403 Section 3) in the upper left, the page number (e.
4404 \begin_inset space \thinspace{}
4405 \end_inset
4406
4407 g.
4408 \begin_inset space \space{}
4409 \end_inset
4410
4411 Page 4) in the upper right, your name in the lower left, and the date in
4412  the lower right.
4413  The following commands should now appear in the preamble:
4414 \end_layout
4415
4416 \begin_layout Standard
4417
4418 \family typewriter
4419
4420 \backslash
4421 lhead{Section 
4422 \backslash
4423 thesection}
4424 \end_layout
4425
4426 \begin_layout Standard
4427
4428 \family typewriter
4429
4430 \backslash
4431 chead{}
4432 \end_layout
4433
4434 \begin_layout Standard
4435
4436 \family typewriter
4437
4438 \backslash
4439 rhead{Page 
4440 \backslash
4441 thepage}
4442 \end_layout
4443
4444 \begin_layout Standard
4445
4446 \family typewriter
4447
4448 \backslash
4449 lfoot{John Q.
4450  DocWriter}
4451 \end_layout
4452
4453 \begin_layout Standard
4454
4455 \family typewriter
4456
4457 \backslash
4458 cfoot{}
4459 \end_layout
4460
4461 \begin_layout Standard
4462
4463 \family typewriter
4464
4465 \backslash
4466 rfoot{
4467 \backslash
4468 today}
4469 \end_layout
4470
4471 \begin_layout Standard
4472 The commands 
4473 \begin_inset Flex Code
4474 status collapsed
4475
4476 \begin_layout Plain Layout
4477
4478 \backslash
4479 thesection
4480 \end_layout
4481
4482 \end_inset
4483
4484  and 
4485 \begin_inset Flex Code
4486 status collapsed
4487
4488 \begin_layout Plain Layout
4489
4490 \backslash
4491 thepage
4492 \end_layout
4493
4494 \end_inset
4495
4496  access \SpecialChar LaTeX
4497 's section and page counters, and so print out the current section
4498  and page numbers.
4499  
4500 \begin_inset Flex Code
4501 status collapsed
4502
4503 \begin_layout Plain Layout
4504
4505 \backslash
4506 today
4507 \end_layout
4508
4509 \end_inset
4510
4511  simply prints out today's date.
4512 \end_layout
4513
4514 \begin_layout Standard
4515 The thicknesses of the horizontal rules drawn beneath the header and above
4516  the footer can also be modified.
4517  If you don't want one of the rules, set its thickness to 0.
4518  The header rule has a default thickness of 0.4pt, the footer rule is 0pt.
4519  Use commands
4520 \family typewriter
4521  
4522 \family default
4523 like 
4524 \begin_inset Flex Code
4525 status collapsed
4526
4527 \begin_layout Plain Layout
4528
4529 \backslash
4530 renewcommand{
4531 \backslash
4532 headrulewidth}{0.4pt}
4533 \end_layout
4534
4535 \end_inset
4536
4537  and 
4538 \begin_inset Flex Code
4539 status collapsed
4540
4541 \begin_layout Plain Layout
4542
4543 \backslash
4544 renewcommand{
4545 \backslash
4546 footrulewidth}{0.4pt}
4547 \end_layout
4548
4549 \end_inset
4550
4551  to set the thicknesses.
4552 \end_layout
4553
4554 \begin_layout Standard
4555 You can switch the header/footer settings on and off for individual pages
4556  using commands like 
4557 \begin_inset Flex Code
4558 status collapsed
4559
4560 \begin_layout Plain Layout
4561
4562 \backslash
4563 thispagestyle{empty}
4564 \end_layout
4565
4566 \end_inset
4567
4568
4569 \begin_inset Flex Code
4570 status collapsed
4571
4572 \begin_layout Plain Layout
4573
4574 \backslash
4575 thispagestyle{plain}
4576 \end_layout
4577
4578 \end_inset
4579
4580 , and 
4581 \begin_inset Flex Code
4582 status collapsed
4583
4584 \begin_layout Plain Layout
4585
4586 \backslash
4587 thispagestyle{fancy}
4588 \end_layout
4589
4590 \end_inset
4591
4592 .
4593  Simply insert them in the text on the page you want changed and mark them
4594  as \SpecialChar TeX
4595  code.
4596  In fact, title pages are marked as plain by default, while following pages
4597  are marked fancy when using the global fancy setting.
4598 \end_layout
4599
4600 \begin_layout Standard
4601 As a final example, it is possible to include an image in the header or
4602  footer.
4603  Suppose you want to put a company logo in the upper lefthand corner.
4604  You might try something like
4605 \end_layout
4606
4607 \begin_layout Standard
4608
4609 \family typewriter
4610
4611 \backslash
4612 lhead{
4613 \backslash
4614 resizebox{1in}{!}{
4615 \backslash
4616 includegraphics{logo.eps}}}
4617 \end_layout
4618
4619 \begin_layout Standard
4620 \noindent
4621 (you may need to preface this with 
4622 \begin_inset Flex Code
4623 status collapsed
4624
4625 \begin_layout Plain Layout
4626 \noindent
4627
4628 \backslash
4629 usepackage{graphics}
4630 \end_layout
4631
4632 \end_inset
4633
4634  if you don't include graphics elsewhere in your document).
4635 \end_layout
4636
4637 \begin_layout Section
4638 Itemize Bullet Selection
4639 \begin_inset CommandInset label
4640 LatexCommand label
4641 name "sec:bullet"
4642
4643 \end_inset
4644
4645
4646 \end_layout
4647
4648 \begin_layout Standard
4649 by
4650 \noun on
4651  Allan Rae
4652 \end_layout
4653
4654 \begin_layout Subsection
4655 Introduction
4656 \end_layout
4657
4658 \begin_layout Standard
4659 \SpecialChar LyX
4660  provides 216 bullet shapes that can be accessed from a simple dialog.
4661  Using this dialog you can easily specify what bullet shape to use at each
4662  level of an itemized list.
4663  These settings are document-wide so you won't be able to specify different
4664  sets of bullets for different paragraphs.
4665 \begin_inset Foot
4666 status collapsed
4667
4668 \begin_layout Plain Layout
4669 Well, actually you can but you'll have to do it by hand.
4670 \end_layout
4671
4672 \end_inset
4673
4674
4675 \end_layout
4676
4677 \begin_layout Subsection
4678 How it looks
4679 \end_layout
4680
4681 \begin_layout Standard
4682 Open the dialog by selecting the 
4683 \begin_inset Flex Noun
4684 status collapsed
4685
4686 \begin_layout Plain Layout
4687 Document\SpecialChar menuseparator
4688 Settings
4689 \end_layout
4690
4691 \end_inset
4692
4693  menu item and then select the 
4694 \begin_inset Flex Noun
4695 status collapsed
4696
4697 \begin_layout Plain Layout
4698 Bullets
4699 \end_layout
4700
4701 \end_inset
4702
4703  tab.
4704 \end_layout
4705
4706 \begin_layout Standard
4707 The dialog provides you with a table of bullet shapes.
4708  A column of buttons on the left of the table provides access to the six
4709  different panels of bullet shapes.
4710  The row of buttons across the top is used to select which bullet depth
4711  you are changing.
4712  A text entry under the table shows the currently selected bullet shape's
4713  \SpecialChar LaTeX
4714  equivalent and this can be edited if desired.
4715  If you do modify the text you will also need to specify any needed packages
4716  in the \SpecialChar LaTeX
4717  preamble.
4718 \end_layout
4719
4720 \begin_layout Standard
4721 The six panels are divided up by the packages they require.
4722  The following table shows the mappings from button name to \SpecialChar LaTeX
4723  package.
4724 \end_layout
4725
4726 \begin_layout Standard
4727 \align center
4728 \begin_inset Tabular
4729 <lyxtabular version="3" rows="7" columns="2">
4730 <features tabularvalignment="middle">
4731 <column alignment="center" valignment="top" width="0pt">
4732 <column alignment="center" valignment="top" width="0pt">
4733 <row>
4734 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4735 \begin_inset Text
4736
4737 \begin_layout Plain Layout
4738
4739 \family roman
4740 \series medium
4741 \shape up
4742 \size normal
4743 \emph off
4744 \bar no
4745 \noun off
4746 \color none
4747 Button
4748 \end_layout
4749
4750 \end_inset
4751 </cell>
4752 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4753 \begin_inset Text
4754
4755 \begin_layout Plain Layout
4756
4757 \family roman
4758 \series medium
4759 \shape up
4760 \size normal
4761 \emph off
4762 \bar no
4763 \noun off
4764 \color none
4765 Packages Required
4766 \end_layout
4767
4768 \end_inset
4769 </cell>
4770 </row>
4771 <row>
4772 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4773 \begin_inset Text
4774
4775 \begin_layout Plain Layout
4776
4777 \family sans
4778 \series medium
4779 \shape up
4780 \size normal
4781 \emph off
4782 \bar no
4783 \noun off
4784 \color none
4785 Standard
4786 \end_layout
4787
4788 \end_inset
4789 </cell>
4790 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4791 \begin_inset Text
4792
4793 \begin_layout Plain Layout
4794
4795 \series medium
4796 \shape up
4797 \size normal
4798 \emph off
4799 \bar no
4800 \noun off
4801 \color none
4802 base \SpecialChar LaTeX
4803
4804 \end_layout
4805
4806 \end_inset
4807 </cell>
4808 </row>
4809 <row>
4810 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4811 \begin_inset Text
4812
4813 \begin_layout Plain Layout
4814
4815 \family sans
4816 \series medium
4817 \shape up
4818 \size normal
4819 \emph off
4820 \bar no
4821 \noun off
4822 \color none
4823 Maths
4824 \end_layout
4825
4826 \end_inset
4827 </cell>
4828 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4829 \begin_inset Text
4830
4831 \begin_layout Plain Layout
4832
4833 \family typewriter
4834 \series medium
4835 \shape up
4836 \size normal
4837 \emph off
4838 \bar no
4839 \noun off
4840 \color none
4841 amssymb.sty
4842 \end_layout
4843
4844 \end_inset
4845 </cell>
4846 </row>
4847 <row>
4848 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4849 \begin_inset Text
4850
4851 \begin_layout Plain Layout
4852
4853 \family sans
4854 \series medium
4855 \shape up
4856 \size normal
4857 \emph off
4858 \bar no
4859 \noun off
4860 \color none
4861 Ding1
4862 \end_layout
4863
4864 \end_inset
4865 </cell>
4866 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4867 \begin_inset Text
4868
4869 \begin_layout Plain Layout
4870
4871 \family typewriter
4872 \series medium
4873 \shape up
4874 \size normal
4875 \emph off
4876 \bar no
4877 \noun off
4878 \color none
4879 pifont.sty
4880 \end_layout
4881
4882 \end_inset
4883 </cell>
4884 </row>
4885 <row>
4886 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4887 \begin_inset Text
4888
4889 \begin_layout Plain Layout
4890
4891 \family sans
4892 \series medium
4893 \shape up
4894 \size normal
4895 \emph off
4896 \bar no
4897 \noun off
4898 \color none
4899 Ding2
4900 \end_layout
4901
4902 \end_inset
4903 </cell>
4904 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4905 \begin_inset Text
4906
4907 \begin_layout Plain Layout
4908
4909 \family typewriter
4910 \series medium
4911 \shape up
4912 \size normal
4913 \emph off
4914 \bar no
4915 \noun off
4916 \color none
4917 pifont.sty
4918 \end_layout
4919
4920 \end_inset
4921 </cell>
4922 </row>
4923 <row>
4924 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4925 \begin_inset Text
4926
4927 \begin_layout Plain Layout
4928
4929 \family sans
4930 \series medium
4931 \shape up
4932 \size normal
4933 \emph off
4934 \bar no
4935 \noun off
4936 \color none
4937 Ding3
4938 \end_layout
4939
4940 \end_inset
4941 </cell>
4942 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4943 \begin_inset Text
4944
4945 \begin_layout Plain Layout
4946
4947 \family typewriter
4948 \series medium
4949 \shape up
4950 \size normal
4951 \emph off
4952 \bar no
4953 \noun off
4954 \color none
4955 pifont.sty
4956 \end_layout
4957
4958 \end_inset
4959 </cell>
4960 </row>
4961 <row>
4962 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4963 \begin_inset Text
4964
4965 \begin_layout Plain Layout
4966
4967 \family sans
4968 \series medium
4969 \shape up
4970 \size normal
4971 \emph off
4972 \bar no
4973 \noun off
4974 \color none
4975 Ding4
4976 \end_layout
4977
4978 \end_inset
4979 </cell>
4980 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4981 \begin_inset Text
4982
4983 \begin_layout Plain Layout
4984
4985 \family typewriter
4986 \series medium
4987 \shape up
4988 \size normal
4989 \emph off
4990 \bar no
4991 \noun off
4992 \color none
4993 pifont.sty
4994 \end_layout
4995
4996 \end_inset
4997 </cell>
4998 </row>
4999 </lyxtabular>
5000
5001 \end_inset
5002
5003
5004 \end_layout
5005
5006 \begin_layout Standard
5007 \SpecialChar LyX
5008  doesn't stop you using bullets from packages you don't have.
5009  If you get errors from \SpecialChar LaTeX
5010  when you try to view or print the file, then it
5011  is likely you are missing a package.
5012 \begin_inset Foot
5013 status collapsed
5014
5015 \begin_layout Plain Layout
5016 \SpecialChar LyX
5017  doesn't restrict your use since you may be editing locally and exporting
5018  elsewhere.
5019 \end_layout
5020
5021 \end_inset
5022
5023
5024 \end_layout
5025
5026 \begin_layout Subsection
5027 How to use it
5028 \end_layout
5029
5030 \begin_layout Standard
5031 Select which bullet depth you want to change then select the bullet shape
5032  and size.
5033  Any changes will not be visible in \SpecialChar LyX
5034 , but are visible when viewing the document.
5035 \end_layout
5036
5037 \begin_layout Standard
5038 You can reset a bullet shape to the default simply by clicking your right
5039  mouse button on the appropriate bullet depth button.
5040 \begin_inset Foot
5041 status collapsed
5042
5043 \begin_layout Plain Layout
5044 If you 
5045 \emph on
5046 really
5047 \emph default
5048  want to have multiple sets of paragraphs with different sets of bullets
5049  in each, then you're going to have to get your hands dirty with \SpecialChar TeX
5050  code.
5051  The bullet selection dialog can help though because it provides you with
5052  the \SpecialChar LaTeX
5053  code for a wide range of bullet shapes.
5054  To make your own custom paragraphs you have the following options:
5055 \end_layout
5056
5057 \begin_layout Plain Layout
5058 \begin_inset ERT
5059 status open
5060
5061 \begin_layout Plain Layout
5062
5063
5064 \backslash
5065 let
5066 \backslash
5067 savelabelitemi=
5068 \backslash
5069 labelitemi
5070 \end_layout
5071
5072 \end_inset
5073
5074
5075 \end_layout
5076
5077 \begin_layout Plain Layout
5078 \begin_inset ERT
5079 status open
5080
5081 \begin_layout Plain Layout
5082
5083
5084 \backslash
5085 renewcommand
5086 \backslash
5087 labelitemi[0]{
5088 \backslash
5089 small
5090 \backslash
5091 (
5092 \backslash
5093 sharp
5094 \backslash
5095 )}
5096 \end_layout
5097
5098 \end_inset
5099
5100
5101 \end_layout
5102
5103 \begin_layout Itemize
5104 Use the \SpecialChar LaTeX
5105  command 
5106 \begin_inset Flex Code
5107 status collapsed
5108
5109 \begin_layout Plain Layout
5110
5111 \backslash
5112 renewcommand{}{}
5113 \end_layout
5114
5115 \end_inset
5116
5117  to specify a new bullet shape for a given depth.
5118  You'll also need to save the current bullet shape so you can restore it
5119  again afterwards.
5120  In this itemized list the following \SpecialChar LaTeX
5121  code was used to change the bullet
5122  used for the first depth.
5123 \end_layout
5124
5125 \begin_deeper
5126 \begin_layout LyX-Code
5127
5128 \backslash
5129 let
5130 \backslash
5131 savelabelitemi=
5132 \backslash
5133 labelitemi 
5134 \end_layout
5135
5136 \begin_layout LyX-Code
5137
5138 \backslash
5139 renewcommand
5140 \backslash
5141 labelitemi[0]{
5142 \backslash
5143 small
5144 \backslash
5145 (
5146 \backslash
5147 sharp
5148 \backslash
5149 )}
5150 \end_layout
5151
5152 \end_deeper
5153 \begin_layout Itemize
5154 Note that the itemize depth is specified in Roman numerals as part of the
5155  
5156 \family typewriter
5157
5158 \backslash
5159 labelitem
5160 \family default
5161  command.
5162 \end_layout
5163
5164 \begin_layout Itemize
5165 \begin_inset ERT
5166 status open
5167
5168 \begin_layout Plain Layout
5169
5170 [
5171 \backslash
5172 (
5173 \backslash
5174 star
5175 \backslash
5176 )]
5177 \end_layout
5178
5179 \end_inset
5180
5181  Specify each individual entry by starting each item with the bullet shape
5182  enclosed in square brackets and set as 
5183 \begin_inset Flex Noun
5184 status collapsed
5185
5186 \begin_layout Plain Layout
5187 \SpecialChar TeX
5188  Code
5189 \end_layout
5190
5191 \end_inset
5192
5193 .
5194  For example, this item was started with 
5195 \begin_inset Flex Code
5196 status collapsed
5197
5198 \begin_layout Plain Layout
5199 [
5200 \backslash
5201 (
5202 \backslash
5203 star
5204 \backslash
5205 )]
5206 \end_layout
5207
5208 \end_inset
5209
5210 .
5211 \end_layout
5212
5213 \begin_layout Plain Layout
5214 \begin_inset ERT
5215 status open
5216
5217 \begin_layout Plain Layout
5218
5219
5220 \backslash
5221 renewcommand
5222 \backslash
5223 labelitemi[0]{
5224 \backslash
5225 savelabelitemi}
5226 \end_layout
5227
5228 \end_inset
5229
5230
5231 \end_layout
5232
5233 \begin_layout Plain Layout
5234 You'll also need to revert the labelitem back to its previous setting for
5235  the global bullet shape settings to remain in effect.
5236  The way used here was:
5237 \end_layout
5238
5239 \begin_layout LyX-Code
5240
5241 \backslash
5242 renewcommand
5243 \backslash
5244 labelitemi[0]{
5245 \backslash
5246 savelabelitemi}
5247 \end_layout
5248
5249 \end_inset
5250
5251
5252 \end_layout
5253
5254 \begin_layout Chapter
5255 \SpecialChar LyX
5256  and the World Wide Web
5257 \end_layout
5258
5259 \begin_layout Standard
5260 \SpecialChar LyX
5261  has long supported the export of documents to various web-friendly formats,
5262  such as HTML.
5263  Before verson 2.0, however, HTML export was always accomplished by the use
5264  of external converters.
5265 \begin_inset Foot
5266 status collapsed
5267
5268 \begin_layout Plain Layout
5269 For details on the use of external converters with \SpecialChar LyX
5270 , see the 
5271 \emph on
5272 Converters
5273 \emph default
5274  section of the Customization manual.
5275 \end_layout
5276
5277 \end_inset
5278
5279  These fall into two large groups: there are converters that use \SpecialChar LaTeX
5280  as an
5281  intermediate format, such as 
5282 \begin_inset Flex Code
5283 status collapsed
5284
5285 \begin_layout Plain Layout
5286 htlatex
5287 \end_layout
5288
5289 \end_inset
5290
5291
5292 \begin_inset Flex Code
5293 status collapsed
5294
5295 \begin_layout Plain Layout
5296 html2latex
5297 \end_layout
5298
5299 \end_inset
5300
5301 , and 
5302 \begin_inset Flex Code
5303 status collapsed
5304
5305 \begin_layout Plain Layout
5306 plastex
5307 \end_layout
5308
5309 \end_inset
5310
5311 , relying upon \SpecialChar LyX
5312  to produce the \SpecialChar LaTeX
5313 ; and there is a converter that works directly
5314  on \SpecialChar LyX
5315  files, 
5316 \begin_inset Flex Code
5317 status collapsed
5318
5319 \begin_layout Plain Layout
5320 e\SpecialChar LyX
5321 er
5322 \end_layout
5323
5324 \end_inset
5325
5326 .
5327  All of these have different advantages and disadvantages.
5328  
5329 \end_layout
5330
5331 \begin_layout Standard
5332 The \SpecialChar LaTeX
5333 -based converters have the advantage that, in principle, they know everythin
5334 g about the exported document that \SpecialChar LaTeX
5335  does.
5336  Such converters do not care, for example, if a certain block of code was
5337  produced by \SpecialChar LyX
5338  or was Evil Red Text.
5339  These converters know about 
5340 \begin_inset Flex Code
5341 status collapsed
5342
5343 \begin_layout Plain Layout
5344 aux
5345 \end_layout
5346
5347 \end_inset
5348
5349  files, counters, and references, and can often make use of the 
5350 \begin_inset Flex Code
5351 status collapsed
5352
5353 \begin_layout Plain Layout
5354 bbl
5355 \end_layout
5356
5357 \end_inset
5358
5359  files generated by Bib\SpecialChar TeX
5360 .
5361  On the other hand, \SpecialChar LaTeX
5362  is a very hard language to parse—it is sometimes said
5363  that only \SpecialChar TeX
5364  itself understands \SpecialChar TeX
5365 —and \SpecialChar LaTeX
5366 -based converters will often choke on
5367  what seem to be quite simple constructs; complex ones can throw them completely
5368 , and as of this writing, for example, the 
5369 \emph on
5370 Embedded Objects
5371 \emph default
5372  manual will not export with 
5373 \begin_inset Flex Code
5374 status collapsed
5375
5376 \begin_layout Plain Layout
5377 htlatex
5378 \end_layout
5379
5380 \end_inset
5381
5382 , though the others will.
5383  The other issue concerns how math is handled.
5384  These converters typically convert the formulae into little pictures that
5385  are then linked from the HTML document.
5386  Since these are actually generated by \SpecialChar LaTeX
5387 , they are accurate.
5388  But they do not scale well, and just getting them to look as if they are
5389  actually meant to be in your document—so that the font sizes seem to be
5390  roughly the same—can be a challenge.
5391 \end_layout
5392
5393 \begin_layout Standard
5394 Alex Fernandez's 
5395 \begin_inset Flex Code
5396 status collapsed
5397
5398 \begin_layout Plain Layout
5399 e\SpecialChar LyX
5400 er
5401 \end_layout
5402
5403 \end_inset
5404
5405  (
5406 \begin_inset CommandInset href
5407 LatexCommand href
5408 name "http://elyxer.nongnu.org/"
5409 target "http://elyxer.nongnu.org/"
5410 literal "false"
5411
5412 \end_inset
5413
5414 ) solves some of these problems.
5415  In particular, the formulae it produces scale perfectly, since it renders
5416  math using a combination of HTML and CSS rather than converting the formulae
5417  to images.
5418  But even moderately complex formula are rendered less well than with 
5419 \begin_inset Flex Code
5420 status collapsed
5421
5422 \begin_layout Plain Layout
5423 htlatex
5424 \end_layout
5425
5426 \end_inset
5427
5428 ; this reflects the limitations of HTML.
5429 \begin_inset Foot
5430 status collapsed
5431
5432 \begin_layout Plain Layout
5433 That said, 
5434 \begin_inset Flex Code
5435 status collapsed
5436
5437 \begin_layout Plain Layout
5438 e\SpecialChar LyX
5439 er
5440 \end_layout
5441
5442 \end_inset
5443
5444  can also use jsMath and MathJax for equations, but this setting is only
5445  available globally and requires one to have access to a server that runs
5446  the backend.
5447 \end_layout
5448
5449 \end_inset
5450
5451  More importantly (as of version 1.1.1, at least), 
5452 \begin_inset Flex Code
5453 status collapsed
5454
5455 \begin_layout Plain Layout
5456 e\SpecialChar LyX
5457 er
5458 \end_layout
5459
5460 \end_inset
5461
5462  has limited support for math macros and no support for user-defined paragraph
5463  or character styles.
5464  These limitations make 
5465 \begin_inset Flex Code
5466 status collapsed
5467
5468 \begin_layout Plain Layout
5469 e\SpecialChar LyX
5470 er
5471 \end_layout
5472
5473 \end_inset
5474
5475  unsuitable for many of the documents \SpecialChar LyX
5476  users produce.
5477  In principle, of course, these problems could be solved, but the \SpecialChar LyX
5478  developers
5479  have decided to follow a different path and have made \SpecialChar LyX
5480  itself capable of
5481  writing XHTML, just as it is capable of writing \SpecialChar LaTeX
5482 , DocBook, and plaintext.
5483 \end_layout
5484
5485 \begin_layout Standard
5486 As of this writing, XHTML output remains under development and should probably
5487  be regarded as 
5488 \begin_inset Quotes eld
5489 \end_inset
5490
5491 experimental
5492 \begin_inset Quotes erd
5493 \end_inset
5494
5495 .
5496 \begin_inset Foot
5497 status collapsed
5498
5499 \begin_layout Plain Layout
5500 The file 
5501 \begin_inset Flex Code
5502 status collapsed
5503
5504 \begin_layout Plain Layout
5505 development/HTML.notes
5506 \end_layout
5507
5508 \end_inset
5509
5510 , which can be found in the \SpecialChar LyX
5511  source tree or 
5512 \begin_inset CommandInset href
5513 LatexCommand href
5514 name "accessed online"
5515 target "http://www.lyx.org/trac/browser/lyxgit/development/HTML/HTML.notes?rev=master"
5516 literal "false"
5517
5518 \end_inset
5519
5520 , usually contains up-to-date information about the state of XHTML output.
5521  See also the list of XHTML bugs on 
5522 \begin_inset CommandInset href
5523 LatexCommand href
5524 name "the bug tracker"
5525 target "http://www.lyx.org/trac/query?status=reopened&status=assigned&status=new&max=0&component=xhtml+export&order=id&col=id&col=summary&col=reporter&col=keywords&keywords=%21%7Efixedintrunk&desc=1"
5526 literal "false"
5527
5528 \end_inset
5529
5530 .
5531 \end_layout
5532
5533 \end_inset
5534
5535  Still, the developers have chosen this approach because it has several
5536  potential advantages over the other two.
5537 \end_layout
5538
5539 \begin_layout Standard
5540 These advantages are primarily due to the fact that the XHTML output routines,
5541  since they are part of \SpecialChar LyX
5542 , know everything \SpecialChar LyX
5543  knows about the document being
5544  exported.
5545 \begin_inset Foot
5546 status collapsed
5547
5548 \begin_layout Plain Layout
5549 Another advantage is that, since these routines are internal to \SpecialChar LyX
5550 , they are
5551  immune to changes in \SpecialChar LyX
5552 's file format, or to changes in the semantics of
5553  existing insets.
5554 \end_layout
5555
5556 \end_inset
5557
5558  So they know about the table of contents (as displayed in the outline),
5559  about the counters associated with different paragraph styles, and about
5560  user-defined styles.
5561  The XHTML output routines know what \SpecialChar LyX
5562  knows about internationalization,
5563  too, so they will output 
5564 \begin_inset Quotes eld
5565 \end_inset
5566
5567 Chapter 1
5568 \begin_inset Quotes erd
5569 \end_inset
5570
5571  or 
5572 \begin_inset Quotes eld
5573 \end_inset
5574
5575
5576 \lang ngerman
5577 Kapitel
5578 \lang english
5579  1
5580 \begin_inset Quotes erd
5581 \end_inset
5582
5583 , depending upon the language in effect at the time.
5584  
5585 \end_layout
5586
5587 \begin_layout Standard
5588 Quite generally, the output routines know what \SpecialChar LyX
5589  knows about document layout,
5590  that is, about how the document is to be rendered on screen.
5591  We use this information when we output the document as XHTML.
5592  In particular, \SpecialChar LyX
5593  
5594 \emph on
5595 automatically
5596 \emph default
5597  generates CSS style information corresponding to the layout information
5598  it uses to render the document on screen: if section headings are supposed
5599  to be sans-serif and bold as seen in \SpecialChar LyX
5600 , then (by default) they will be sans-seri
5601 f and bold when viewed in a web browser, too.
5602  And this is true not just for pre-defined styles, like Section, but for
5603  any style, including user-defined styles.
5604  Indeed, the XHTML output routines make no distinction between user-defined
5605  paragraph and character styles and \SpecialChar LyX
5606 's own pre-defined styles: in each case,
5607  everything \SpecialChar LyX
5608  knows about the styles is contained in the layout files.
5609  And much the same is true as regards pre-defined textual insets, such as
5610  footnotes, and various custom insets.
5611  
5612 \end_layout
5613
5614 \begin_layout Standard
5615 The result is that XHTML output can be customized and extended in exactly
5616  the same way \SpecialChar LaTeX
5617  output can be customized and extended: through layout files
5618  and modules.
5619  See chapter five of the 
5620 \emph on
5621 Customization 
5622 \emph default
5623 manual for the details.
5624 \end_layout
5625
5626 \begin_layout Standard
5627 The remainder of this chapter contains more detailed information on XHTML
5628  output, its limitations, and ways to work around those limitations.
5629 \end_layout
5630
5631 \begin_layout Section
5632 Math Output in XHTML
5633 \end_layout
5634
5635 \begin_layout Standard
5636 \SpecialChar LyX
5637  offers four choices for how math is rendered.
5638  These have various advantages and disadvantages:
5639 \end_layout
5640
5641 \begin_layout Itemize
5642 MathML
5643 \begin_inset Newline newline
5644 \end_inset
5645
5646 MathML is a dialect of XML designed specifically for mathematics on the
5647  web, and it typically renders very well in browsers that support it.
5648  The disadvantage is that not all browsers support MathML, and support is
5649  not complete even in the Gecko-based browsers, such as Firefox.
5650 \begin_inset Newline newline
5651 \end_inset
5652
5653 If \SpecialChar LyX
5654  is unable to render a formula as MathML—for example, if the formula
5655  uses the 
5656 \begin_inset Flex Code
5657 status collapsed
5658
5659 \begin_layout Plain Layout
5660 xymatrix
5661 \end_layout
5662
5663 \end_inset
5664
5665  package or ERT—then it will instead output the formula as an image.
5666  
5667 \end_layout
5668
5669 \begin_layout Itemize
5670 HTML
5671 \begin_inset Newline newline
5672 \end_inset
5673
5674 As mentioned above, 
5675 \begin_inset Flex Code
5676 status collapsed
5677
5678 \begin_layout Plain Layout
5679 elyxer
5680 \end_layout
5681
5682 \end_inset
5683
5684  outputs math as HTML, styled by CSS.
5685 \begin_inset Foot
5686 status collapsed
5687
5688 \begin_layout Plain Layout
5689 \SpecialChar LyX
5690  has borrowed some of the CSS for its HTML output from 
5691 \begin_inset Flex Code
5692 status collapsed
5693
5694 \begin_layout Plain Layout
5695 elyxer
5696 \end_layout
5697
5698 \end_inset
5699
5700 .
5701 \end_layout
5702
5703 \end_inset
5704
5705  For simple formulae, this can work quite well, though with more complicated
5706  formulae it tends to break down.
5707  Still, this method has the advantage that it is very widely supported and
5708  so it may be appropriate for documents that contain only a little, fairly
5709  simple math.
5710 \begin_inset Newline newline
5711 \end_inset
5712
5713 If Lyx is unable to render a formula as HTML—for example, if the formula
5714  uses the 
5715 \begin_inset Flex Code
5716 status collapsed
5717
5718 \begin_layout Plain Layout
5719 xymatrix
5720 \end_layout
5721
5722 \end_inset
5723
5724  package or ERT—then it will instead output the formula as an image.
5725  
5726 \end_layout
5727
5728 \begin_layout Itemize
5729 Images
5730 \begin_inset Newline newline
5731 \end_inset
5732
5733 Like 
5734 \begin_inset Flex Code
5735 status collapsed
5736
5737 \begin_layout Plain Layout
5738 htlatex
5739 \end_layout
5740
5741 \end_inset
5742
5743 , \SpecialChar LyX
5744  will output formulae as images, the very same images, in fact, that are
5745  used for instant preview.
5746 \begin_inset Foot
5747 status collapsed
5748
5749 \begin_layout Plain Layout
5750 Instant preview does 
5751 \emph on
5752 not 
5753 \emph default
5754 have to be on for images to be output, however.
5755 \end_layout
5756
5757 \end_inset
5758
5759  The advantage to this method is that the images are simply generated by
5760  \SpecialChar LaTeX
5761 , so they are very accurate.
5762  The disadvantage, as mentioned earlier, is that these are bitmapped images,
5763  so they do not scale terribly well, and one cannot copy them, etc.
5764  (As of this writing, there are also problems about equation numbering.
5765  See 
5766 \begin_inset CommandInset href
5767 LatexCommand href
5768 name "bug 6894"
5769 target "http://www.lyx.org/trac/ticket/6894"
5770 literal "false"
5771
5772 \end_inset
5773
5774 .)
5775 \begin_inset Newline newline
5776 \end_inset
5777
5778 The size of the images can be controlled by setting the 
5779 \begin_inset Quotes eld
5780 \end_inset
5781
5782 Math Images Scaling
5783 \begin_inset Quotes erd
5784 \end_inset
5785
5786  parameter under 
5787 \begin_inset Flex Noun
5788 status collapsed
5789
5790 \begin_layout Plain Layout
5791 Document\SpecialChar menuseparator
5792 Settings\SpecialChar menuseparator
5793 Output
5794 \end_layout
5795
5796 \end_inset
5797
5798 .
5799 \begin_inset Foot
5800 status collapsed
5801
5802 \begin_layout Plain Layout
5803 For those who want to know, this controls the resolution of the image in
5804  dots per inch and is based upon a default of 75 dpi.
5805 \end_layout
5806
5807 \end_inset
5808
5809
5810 \begin_inset Newline newline
5811 \end_inset
5812
5813 If \SpecialChar LyX
5814  for some reason fails to create an image for a formula (e.g., if a required
5815  \SpecialChar LaTeX
5816  package is not installed), then it will fall back to outputing the raw
5817  \SpecialChar LaTeX
5818 .
5819 \end_layout
5820
5821 \begin_layout Itemize
5822 \SpecialChar LaTeX
5823
5824 \begin_inset Newline newline
5825 \end_inset
5826
5827 Finally, \SpecialChar LyX
5828  will happily output math as \SpecialChar LaTeX
5829 .
5830  As well as being the output of last resort, this method can be used with
5831  such tools as 
5832 \begin_inset CommandInset href
5833 LatexCommand href
5834 name "jsMath"
5835 target "http://www.math.union.edu/~dpvc/jsMath/"
5836 literal "false"
5837
5838 \end_inset
5839
5840 , which uses JavaScript to render \SpecialChar LaTeX
5841  embedded in HTML documents.
5842  \SpecialChar LyX
5843  wraps the \SpecialChar LaTeX
5844  in either a 
5845 \begin_inset Flex Code
5846 status collapsed
5847
5848 \begin_layout Plain Layout
5849 span
5850 \end_layout
5851
5852 \end_inset
5853
5854  (for inline formulas) or 
5855 \begin_inset Flex Code
5856 status collapsed
5857
5858 \begin_layout Plain Layout
5859 div
5860 \end_layout
5861
5862 \end_inset
5863
5864  (for displayed formulas) with 
5865 \begin_inset Flex Code
5866 status collapsed
5867
5868 \begin_layout Plain Layout
5869 class='math'
5870 \end_layout
5871
5872 \end_inset
5873
5874 , as is required for jsMath.
5875 \end_layout
5876
5877 \begin_layout Standard
5878 One of these output methods must be selected under 
5879 \begin_inset Flex Noun
5880 status collapsed
5881
5882 \begin_layout Plain Layout
5883 Document\SpecialChar menuseparator
5884 Settings\SpecialChar menuseparator
5885 Output
5886 \end_layout
5887
5888 \end_inset
5889
5890 .
5891  By default, \SpecialChar LyX
5892  outputs MathML.
5893  This is a document-wide setting, therefore.
5894 \end_layout
5895
5896 \begin_layout Standard
5897 Eventually, \SpecialChar LyX
5898  will offer the user the option to select an alternate output
5899  method for a particular inset, say, one that isn't being rendered very
5900  well by MathML.
5901 \begin_inset Foot
5902 status collapsed
5903
5904 \begin_layout Plain Layout
5905 That said, since \SpecialChar LyX
5906  falls back to images if the inset contains ERT, then one
5907  can force output as an image by putting some harmless ERT into the math,
5908  for example: 
5909 \begin_inset Formula $a=b\relax$
5910 \end_inset
5911
5912 .
5913 \end_layout
5914
5915 \end_inset
5916
5917
5918 \end_layout
5919
5920 \begin_layout Section
5921 Bibliography and Citations
5922 \end_layout
5923
5924 \begin_layout Standard
5925 XHTML output fully supports bibliographies and citations.
5926  
5927 \end_layout
5928
5929 \begin_layout Standard
5930 Citation labels are generated by the same machinery that generates \SpecialChar LyX
5931 's on-screen
5932  labels, so the labels will look in the output much as they do in \SpecialChar LyX
5933 , though
5934  better.
5935  If you are using numerical citations, then \SpecialChar LyX
5936  will output numerical labels,
5937  such as [1] or [17], rather than simply showing the citation key in square
5938  brackets, as it does on-screen.
5939  If you are using author-year citations, then \SpecialChar LyX
5940  will add lowercase letters
5941  to the years, just as Bib\SpecialChar TeX
5942  does, if it finds more than one citation for
5943  a given author-year combination.
5944  The labels will be printed with the bibliography entries.
5945  Note that there is, at present, no way to customize the appearance of the
5946  labels, for example, to choose between square brackets and parentheses.
5947 \end_layout
5948
5949 \begin_layout Standard
5950 Bibliography output is handled by the same machinery that handles the presentati
5951 on of reference information in the citation dialog, so you will see in the
5952  XHTML output pretty much what you would see if you were to look at a given
5953  entry in the citation dialog.
5954  The formatting can be customized in your layout file or, preferably, in
5955  a module.
5956  See the 
5957 \emph on
5958 Customization
5959 \emph default
5960  manual for the details.
5961 \end_layout
5962
5963 \begin_layout Standard
5964 The main defect at present is that cross-referenced information is printed
5965  with every entry with which it is associated.
5966  So you can see things like this:
5967 \end_layout
5968
5969 \begin_layout Quote
5970 Jason Stanley, 
5971 \begin_inset Quotes eld
5972 \end_inset
5973
5974 Context and Logical Form
5975 \begin_inset Quotes erd
5976 \end_inset
5977
5978 , in 
5979 \emph on
5980 Language in Context: Selected Essays
5981 \emph default
5982  (Oxford: Oxford University Press, 2007), pp.
5983  30–68.
5984 \end_layout
5985
5986 \begin_layout Quote
5987 Jason Stanley, 
5988 \begin_inset Quotes eld
5989 \end_inset
5990
5991 Semantics in Context
5992 \begin_inset Quotes erd
5993 \end_inset
5994
5995 , in 
5996 \emph on
5997 Language in Context: Selected Essays
5998 \emph default
5999  (Oxford: Oxford University Press, 2007), pp.
6000  201–30.
6001 \end_layout
6002
6003 \begin_layout Standard
6004 This should be fixed before long.
6005 \end_layout
6006
6007 \begin_layout Standard
6008 There is no support at present for sectioned bibliographies.
6009  If you have multiple bibliographies, then \SpecialChar LyX
6010  will print the same bibliography
6011  over and over.
6012 \end_layout
6013
6014 \begin_layout Section
6015 Indexes
6016 \end_layout
6017
6018 \begin_layout Standard
6019 \SpecialChar LyX
6020  will happily export indexes as XHTML, but with certain limitations at the
6021  moment.
6022 \end_layout
6023
6024 \begin_layout Standard
6025 Index export will be most reliable when you do not attempt to use the fancy
6026  constructs that are described in the section on indexes in the 
6027 \emph on
6028 User's Guide
6029 \emph default
6030 .
6031 \begin_inset Foot
6032 status collapsed
6033
6034 \begin_layout Plain Layout
6035 The main issue here is that \SpecialChar LyX
6036  itself does not really handle these.
6037  It just lets you enter what you would have to enter in raw \SpecialChar LaTeX
6038 .
6039 \end_layout
6040
6041 \end_inset
6042
6043  We'll describe how they are handled using the subsection headings from
6044  that section.
6045 \end_layout
6046
6047 \begin_layout Itemize
6048 Grouping Index Entries (aka, sub-entries): \SpecialChar LyX
6049  makes an effort to support these,
6050  but the entries must be separated by 
6051 \begin_inset Quotes eld
6052 \end_inset
6053
6054  ! 
6055 \begin_inset Quotes erd
6056 \end_inset
6057
6058 , that is, there must be spaces around the exclamation point.
6059  This is because it is otherwise too difficult to check for escaped exclamation
6060  points, ones in math, and so forth.
6061 \end_layout
6062
6063 \begin_layout Itemize
6064 Page Ranges: There is no support at all for page ranges, since these make
6065  no sense with XHMTL.
6066  Instead, you will just get two index entries, one at either end.
6067 \end_layout
6068
6069 \begin_layout Itemize
6070 Cross-referencing: There is no support for cross-referencing.
6071  If \SpecialChar LyX
6072  finds an entry containing the 
6073 \begin_inset Quotes eld
6074 \end_inset
6075
6076 |see\SpecialChar ldots
6077
6078 \begin_inset Quotes erd
6079 \end_inset
6080
6081  construct, it is just dropped, and the rest is treated as an ordinary index
6082  entry.
6083 \end_layout
6084
6085 \begin_layout Itemize
6086 Index Entry Order: \SpecialChar LyX
6087  does support attempts to fix the sorting order.
6088  It will take what is before the first `@' it finds and use that for sorting,
6089  taking what follows the first `@' to be the actual entry.
6090  At present, \SpecialChar LyX
6091  does not check for escaped `@', so do not try to index email
6092  addresses.
6093 \end_layout
6094
6095 \begin_layout Itemize
6096 Index Entry Layout: You can format entries by using the text style dialog,
6097  or by using any other method available within \SpecialChar LyX
6098  itself.
6099  There is no support for constructs like: 
6100 \begin_inset Quotes eld
6101 \end_inset
6102
6103 entry|textbf
6104 \begin_inset Quotes erd
6105 \end_inset
6106
6107 .
6108  Indeed, if \SpecialChar LyX
6109  finds a pipe symbol, `|', in an entry, it will delete it and
6110  everything that follows it.
6111 \end_layout
6112
6113 \begin_layout Itemize
6114 Multiple Indexes: There is no support for multiple indexes.
6115  Rather, all index entries will be printed as one large index.
6116  To avoid our printing several versions of the index, we print only the
6117  main index, so make sure you have one.
6118 \end_layout
6119
6120 \begin_layout Section
6121 Nomenclature and Glossary
6122 \end_layout
6123
6124 \begin_layout Standard
6125 There is at present no support for glossaries.
6126  Adding it would be fairly trivial, and welcome.
6127 \end_layout
6128
6129 \begin_layout Chapter
6130 The \SpecialChar LyX
6131  Server
6132 \end_layout
6133
6134 \begin_layout Section
6135 Introduction
6136 \end_layout
6137
6138 \begin_layout Standard
6139 The `\SpecialChar LyX
6140  server' allows other programs to talk to \SpecialChar LyX
6141 , invoke \SpecialChar LyX
6142  commands, and retrieve
6143  information about the \SpecialChar LyX
6144  internal state.
6145  This is only intended for advanced users, but they should find it useful.
6146  It is by writing to the \SpecialChar LyX
6147  server, for example, that bibliography managers,
6148  such as JabRef, are able to 
6149 \begin_inset Quotes eld
6150 \end_inset
6151
6152 push
6153 \begin_inset Quotes erd
6154 \end_inset
6155
6156  citations to \SpecialChar LyX
6157 .
6158 \end_layout
6159
6160 \begin_layout Section
6161 Starting the \SpecialChar LyX
6162  Server
6163 \end_layout
6164
6165 \begin_layout Standard
6166 The \SpecialChar LyX
6167  server works through the use of a pair of named pipes.
6168  These are usually located in 
6169 \begin_inset Flex Code
6170 status collapsed
6171
6172 \begin_layout Plain Layout
6173 UserDir
6174 \end_layout
6175
6176 \end_inset
6177
6178 , (except on Windows, where 
6179 \emph on
6180 local
6181 \emph default
6182  named pipes are special objects located in 
6183 \begin_inset Flex Code
6184 status collapsed
6185
6186 \begin_layout Plain Layout
6187
6188 \backslash
6189
6190 \backslash
6191 .
6192 \backslash
6193 pipe
6194 \end_layout
6195
6196 \end_inset
6197
6198 ) and have the names 
6199 \begin_inset Quotes eld
6200 \end_inset
6201
6202
6203 \begin_inset Flex Code
6204 status collapsed
6205
6206 \begin_layout Plain Layout
6207 lyxpipe.in
6208 \end_layout
6209
6210 \end_inset
6211
6212
6213 \begin_inset Quotes erd
6214 \end_inset
6215
6216  and 
6217 \begin_inset Quotes eld
6218 \end_inset
6219
6220
6221 \begin_inset Flex Code
6222 status collapsed
6223
6224 \begin_layout Plain Layout
6225 lyxpipe.out
6226 \end_layout
6227
6228 \end_inset
6229
6230
6231 \begin_inset Quotes erd
6232 \end_inset
6233
6234 .
6235  External programs write into 
6236 \begin_inset Flex Code
6237 status collapsed
6238
6239 \begin_layout Plain Layout
6240 lyxpipe.in
6241 \end_layout
6242
6243 \end_inset
6244
6245  and read back data from 
6246 \begin_inset Flex Code
6247 status collapsed
6248
6249 \begin_layout Plain Layout
6250 lyxpipe.out
6251 \end_layout
6252
6253 \end_inset
6254
6255 .
6256  The stem of the pipe names can be defined in the 
6257 \begin_inset Flex Noun
6258 status collapsed
6259
6260 \begin_layout Plain Layout
6261 Tools\SpecialChar menuseparator
6262 Preferences
6263 \end_layout
6264
6265 \end_inset
6266
6267  dialog, for example 
6268 \begin_inset Flex Code
6269 status collapsed
6270
6271 \begin_layout Plain Layout
6272 "/home/myhome/lyxpipe"
6273 \end_layout
6274
6275 \end_inset
6276
6277 , or 
6278 \begin_inset Flex Code
6279 status collapsed
6280
6281 \begin_layout Plain Layout
6282 "
6283 \backslash
6284
6285 \backslash
6286 .
6287 \backslash
6288 pipe
6289 \backslash
6290 lyxpipe"
6291 \end_layout
6292
6293 \end_inset
6294
6295  on Windows (where any working path instead of lyxpipe can be used, for
6296  example 
6297 \begin_inset Flex Code
6298 status collapsed
6299
6300 \begin_layout Plain Layout
6301 "
6302 \backslash
6303
6304 \backslash
6305 .
6306 \backslash
6307 pipe
6308 \backslash
6309 my
6310 \backslash
6311 lyx
6312 \backslash
6313 pipe"
6314 \end_layout
6315
6316 \end_inset
6317
6318  would also work).
6319  You 
6320 \emph on
6321 must
6322 \emph default
6323  configure this manually in order for the server to start.
6324 \end_layout
6325
6326 \begin_layout Standard
6327 \SpecialChar LyX
6328  will add the '
6329 \begin_inset Flex Code
6330 status collapsed
6331
6332 \begin_layout Plain Layout
6333 .in
6334 \end_layout
6335
6336 \end_inset
6337
6338 ' and '
6339 \begin_inset Flex Code
6340 status collapsed
6341
6342 \begin_layout Plain Layout
6343 .out
6344 \end_layout
6345
6346 \end_inset
6347
6348 ' to create the pipes.
6349  If one of the pipes already exists, \SpecialChar LyX
6350  will assume that another \SpecialChar LyX
6351  process
6352  is already running and will not start the server.
6353  On POSIX (Unix like) systems, if for some other reason, an unused 
6354 \begin_inset Quotes eld
6355 \end_inset
6356
6357 stale
6358 \begin_inset Quotes erd
6359 \end_inset
6360
6361  pipe is left in existence when \SpecialChar LyX
6362  closes, then \SpecialChar LyX
6363  will try to delete it.
6364  If this fails for some reason, you will need to delete the pipes manually
6365  and then restart \SpecialChar LyX
6366 .
6367  On Windows, pipes are deleted by the OS on program termination or crash,
6368  so 
6369 \begin_inset Quotes eld
6370 \end_inset
6371
6372 stale
6373 \begin_inset Quotes erd
6374 \end_inset
6375
6376  pipes should not be possible.
6377 \end_layout
6378
6379 \begin_layout Standard
6380 To have several \SpecialChar LyX
6381  processes with servers at the same time, you have to use
6382  different configurations, perhaps by using separate user directories, each
6383  with its own 
6384 \begin_inset Flex Code
6385 status collapsed
6386
6387 \begin_layout Plain Layout
6388 preferences
6389 \end_layout
6390
6391 \end_inset
6392
6393  file, for each process.
6394 \end_layout
6395
6396 \begin_layout Standard
6397 If you are developing a client program, you might find it useful to enable
6398  debugging information from the \SpecialChar LyX
6399  server.
6400  Do this by starting \SpecialChar LyX
6401  as 
6402 \begin_inset Flex Code
6403 status collapsed
6404
6405 \begin_layout Plain Layout
6406 lyx -dbg lyxserver
6407 \end_layout
6408
6409 \end_inset
6410
6411 .
6412 \end_layout
6413
6414 \begin_layout Standard
6415 You can find a complete example client written in C++ in the source distribution
6416  as 
6417 \begin_inset Flex Code
6418 status collapsed
6419
6420 \begin_layout Plain Layout
6421 development/lyxserver/server_monitor.cpp
6422 \end_layout
6423
6424 \end_inset
6425
6426 .
6427 \end_layout
6428
6429 \begin_layout Standard
6430 Another useful tool is the command-line based client found in 
6431 \begin_inset Flex Code
6432 status collapsed
6433
6434 \begin_layout Plain Layout
6435 src/client/lyxclient
6436 \end_layout
6437
6438 \end_inset
6439
6440 .
6441 \end_layout
6442
6443 \begin_layout Section
6444 Normal communication
6445 \end_layout
6446
6447 \begin_layout Standard
6448 To issue a \SpecialChar LyX
6449  call, the client writes a line of ASCII text into the input
6450  pipe.
6451  This line has the following format:
6452 \end_layout
6453
6454 \begin_layout Quote
6455 LYXCMD:
6456 \emph on
6457 clientname
6458 \emph default
6459 :
6460 \emph on
6461 function
6462 \emph default
6463 :
6464 \emph on
6465 argument
6466 \end_layout
6467
6468 \begin_layout Description
6469 clientname is a name that the client can choose arbitrarily.
6470  Its only use is that \SpecialChar LyX
6471  will echo it if it sends an answer—so a client can
6472  dispatch results from different requesters.
6473 \end_layout
6474
6475 \begin_layout Description
6476 function is the function you want \SpecialChar LyX
6477  to perform.
6478  It is the same as the commands you'd use in the minibuffer.
6479 \end_layout
6480
6481 \begin_layout Description
6482 argument is an optional argument which is meaningful only to some functions
6483  (for instance, the 
6484 \begin_inset Quotes eld
6485 \end_inset
6486
6487 self-insert
6488 \begin_inset Quotes erd
6489 \end_inset
6490
6491  LFUN will insert the argument as text at the cursor position).
6492 \end_layout
6493
6494 \begin_layout Standard
6495 The answer from \SpecialChar LyX
6496  will arrive in the output pipe and be of the form
6497 \end_layout
6498
6499 \begin_layout Quote
6500 INFO:
6501 \emph on
6502 clientname
6503 \emph default
6504 :
6505 \emph on
6506 function
6507 \emph default
6508 :
6509 \emph on
6510 data
6511 \end_layout
6512
6513 \begin_layout Standard
6514 where 
6515 \emph on
6516 clientname
6517 \emph default
6518  and 
6519 \emph on
6520 function
6521 \emph default
6522  are just echoed from the command request, while 
6523 \emph on
6524 data
6525 \emph default
6526  is more or less useful information filled according to how the command
6527  execution worked out.
6528  Some commands, such as 
6529 \begin_inset Quotes eld
6530 \end_inset
6531
6532 font-state
6533 \begin_inset Quotes erd
6534 \end_inset
6535
6536 , will return information about the internal state of \SpecialChar LyX
6537 , while other will
6538  return an empty data-response.
6539  This means that the command execution went fine.
6540 \end_layout
6541
6542 \begin_layout Standard
6543 In case of errors, the response from \SpecialChar LyX
6544  will have this form
6545 \end_layout
6546
6547 \begin_layout Quote
6548 ERROR:
6549 \emph on
6550 clientname
6551 \emph default
6552 :
6553 \emph on
6554 function
6555 \emph default
6556 :
6557 \emph on
6558 error message
6559 \end_layout
6560
6561 \begin_layout Standard
6562 where the 
6563 \emph on
6564 error message
6565 \emph default
6566  should contain an explanation of why the command failed.
6567 \end_layout
6568
6569 \begin_layout Standard
6570 Examples:
6571 \end_layout
6572
6573 \begin_layout LyX-Code
6574 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
6575 \begin_inset Newline newline
6576 \end_inset
6577
6578 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
6579 \begin_inset Newline newline
6580 \end_inset
6581
6582 read a <~/.lyxpipe.out
6583 \begin_inset Newline newline
6584 \end_inset
6585
6586 echo $a
6587 \end_layout
6588
6589 \begin_layout Subsection
6590 AppleScript (Mac OS X)
6591 \end_layout
6592
6593 \begin_layout Standard
6594 Since \SpecialChar LyX
6595  2.1, \SpecialChar LyX
6596  supports basic interactions with AppleScript for normal communicatio
6597 n through the command run.
6598  This command takes a direct argument (the 
6599 \series bold
6600 function
6601 \series default
6602  to perform) and an optional argument.
6603  It either returns the output of the function or triggers an error with
6604  the error message and code.
6605 \end_layout
6606
6607 \begin_layout Standard
6608 Example:
6609 \end_layout
6610
6611 \begin_layout LyX-Code
6612 tell application "\SpecialChar LyX
6613 "
6614 \end_layout
6615
6616 \begin_layout LyX-Code
6617   try
6618 \end_layout
6619
6620 \begin_layout LyX-Code
6621     -- Stores the current file name into f
6622 \end_layout
6623
6624 \begin_layout LyX-Code
6625     set f to (run "server-get-filename" with argument "")
6626 \end_layout
6627
6628 \begin_layout LyX-Code
6629     on error the error_message number the error_number
6630 \end_layout
6631
6632 \begin_layout LyX-Code
6633       display dialog "Error: " & the error_number & ".
6634  " ¬
6635 \end_layout
6636
6637 \begin_layout LyX-Code
6638               & the error_message buttons {"OK"} default button 1
6639 \end_layout
6640
6641 \begin_layout LyX-Code
6642   end try
6643 \end_layout
6644
6645 \begin_layout LyX-Code
6646 end tell
6647 \end_layout
6648
6649 \begin_layout Section
6650 Notification
6651 \end_layout
6652
6653 \begin_layout Standard
6654 \SpecialChar LyX
6655  can notify clients of events going on asynchronously.
6656  Currently it will only do this if the user binds a key sequence with the
6657  function 
6658 \begin_inset Quotes eld
6659 \end_inset
6660
6661 notify
6662 \begin_inset Quotes erd
6663 \end_inset
6664
6665 .
6666  The format of the string \SpecialChar LyX
6667  sends is as follows:
6668 \end_layout
6669
6670 \begin_layout Quote
6671 \begin_inset Flex Code
6672 status collapsed
6673
6674 \begin_layout Plain Layout
6675 NOTIFY:
6676 \end_layout
6677
6678 \end_inset
6679
6680
6681 \emph on
6682 key-sequence
6683 \end_layout
6684
6685 \begin_layout Standard
6686 where 
6687 \emph on
6688 key-sequence
6689 \emph default
6690  is the printed representation of the key sequence that was actually typed
6691  by the user.
6692 \end_layout
6693
6694 \begin_layout Standard
6695 This mechanism can be used to extend \SpecialChar LyX
6696 's command set and implement macros.
6697  Bind some key sequence to 
6698 \begin_inset Quotes eld
6699 \end_inset
6700
6701 notify
6702 \begin_inset Quotes erd
6703 \end_inset
6704
6705 .
6706  Then start a client that listens on the output pipe, dispatches the command
6707  according to the sequence, and starts a function that may use \SpecialChar LyX
6708  calls and
6709  \SpecialChar LyX
6710  requests to issue a command or a series of commands to \SpecialChar LyX
6711 .
6712 \end_layout
6713
6714 \begin_layout Section
6715 The simple \SpecialChar LyX
6716  Server Protocol
6717 \end_layout
6718
6719 \begin_layout Standard
6720 \SpecialChar LyX
6721  implements a simple protocol that can be used for session management.
6722  All messages are of the form
6723 \end_layout
6724
6725 \begin_layout Quote
6726 LYXSRV:
6727 \emph on
6728 clientname
6729 \emph default
6730 :
6731 \emph on
6732 protocol message
6733 \end_layout
6734
6735 \begin_layout Standard
6736 where 
6737 \emph on
6738 protocol message
6739 \emph default
6740  can be 
6741 \begin_inset Quotes eld
6742 \end_inset
6743
6744 hello
6745 \begin_inset Quotes erd
6746 \end_inset
6747
6748  or 
6749 \begin_inset Quotes eld
6750 \end_inset
6751
6752 bye
6753 \begin_inset Quotes erd
6754 \end_inset
6755
6756 .
6757  If 
6758 \begin_inset Quotes eld
6759 \end_inset
6760
6761 hello
6762 \begin_inset Quotes erd
6763 \end_inset
6764
6765  is received from a client, \SpecialChar LyX
6766  will report back to inform the client that
6767  it's listening to it's messages, while 
6768 \begin_inset Quotes eld
6769 \end_inset
6770
6771 bye
6772 \begin_inset Quotes erd
6773 \end_inset
6774
6775  sent from \SpecialChar LyX
6776  will inform clients that \SpecialChar LyX
6777  is closing.
6778 \end_layout
6779
6780 \begin_layout Section
6781 Reverse DVI/PDF search
6782 \end_layout
6783
6784 \begin_layout Standard
6785 Some DVI/PDF viewers
6786 \begin_inset Foot
6787 status collapsed
6788
6789 \begin_layout Plain Layout
6790 The following viewers offer the reverse PDF search feature: Okular on KDE/Linux,
6791  Qpdfview on Unix, Skim on Mac OSX and SumatraPDF on Windows.
6792 \end_layout
6793
6794 \end_inset
6795
6796  provide 
6797 \emph on
6798 reverse search
6799 \emph default
6800  facility (also called 
6801 \emph on
6802 inverse search
6803 \emph default
6804 ).
6805  This means that you can tell \SpecialChar LyX
6806  to put the cursor to a specific line in the
6807  document by clicking at the respective position in the DVI/PDF output.
6808  To achieve this, the viewer must be able to communicate with \SpecialChar LyX
6809 .
6810  This is done via the \SpecialChar LyX
6811  server either by using the named pipe (
6812 \emph on
6813 lyxpipe
6814 \emph default
6815 ), or the UNIX domain socket (
6816 \emph on
6817 lyxsocket
6818 \emph default
6819 ) that \SpecialChar LyX
6820  creates in its temporary directory (this is the way the 
6821 \begin_inset Flex Code
6822 status collapsed
6823
6824 \begin_layout Plain Layout
6825 lyxclient
6826 \end_layout
6827
6828 \end_inset
6829
6830  program communicates with \SpecialChar LyX
6831 ).
6832  In some cases, you need a helper script that mediates between the viewer
6833  and \SpecialChar LyX
6834 , in others, the viewer can communicate with \SpecialChar LyX
6835  directly.
6836  This depends on the selected viewer and on your operating system.
6837  The same applies to the way viewers need to be configured and the way the
6838  reverse search is actually performed.
6839  In what follows, we will thus describe how to setup reverse search for
6840  specific viewers.
6841  Before we turn to this, though, we will explain what needs to be done generally
6842  to enable reverse search in the DVI/PDF output.
6843 \end_layout
6844
6845 \begin_layout Subsection
6846 Automatic setup
6847 \begin_inset CommandInset label
6848 LatexCommand label
6849 name "subsec:rev-search"
6850
6851 \end_inset
6852
6853
6854 \end_layout
6855
6856 \begin_layout Standard
6857 In most cases \SpecialChar LyX
6858  will do the work for you by enabling the option 
6859 \begin_inset Flex Noun
6860 status collapsed
6861
6862 \begin_layout Plain Layout
6863 Synchronize with Output
6864 \end_layout
6865
6866 \end_inset
6867
6868  in the menu 
6869 \begin_inset Flex Noun
6870 status collapsed
6871
6872 \begin_layout Plain Layout
6873 Document\SpecialChar menuseparator
6874 Settings\SpecialChar menuseparator
6875 Output
6876 \end_layout
6877
6878 \end_inset
6879
6880 .
6881  In such a case \SpecialChar LyX
6882  will automatically insert the necessary Sync\SpecialChar TeX
6883  macro (for
6884  PDF) or load the srcltx package (for DVI) respectively.
6885  This option can be easily reached also on 
6886 \begin_inset Flex Code
6887 status collapsed
6888
6889 \begin_layout Plain Layout
6890 View/Update
6891 \end_layout
6892
6893 \end_inset
6894
6895  Toolbar.
6896 \end_layout
6897
6898 \begin_layout Standard
6899 If you need a different setting, you can select or input a custom macro
6900  from the drop down box just below 
6901 \begin_inset Flex Noun
6902 status collapsed
6903
6904 \begin_layout Plain Layout
6905 Document\SpecialChar menuseparator
6906 Settings\SpecialChar menuseparator
6907 Output\SpecialChar menuseparator
6908 Synchronize with Output
6909 \end_layout
6910
6911 \end_inset
6912
6913 .
6914 \end_layout
6915
6916 \begin_layout Standard
6917 Note that the method 
6918 \begin_inset Flex Code
6919 status collapsed
6920
6921 \begin_layout Plain Layout
6922
6923 \backslash
6924 synctex=1
6925 \end_layout
6926
6927 \end_inset
6928
6929  enables gzip compression.
6930  If your viewer does not support it, you should instead use 
6931 \begin_inset Flex Code
6932 status collapsed
6933
6934 \begin_layout Plain Layout
6935
6936 \backslash
6937 synctex=-1
6938 \end_layout
6939
6940 \end_inset
6941
6942 .
6943 \end_layout
6944
6945 \begin_layout Standard
6946 Please also note that including the 
6947 \begin_inset Flex Code
6948 status collapsed
6949
6950 \begin_layout Plain Layout
6951 srcltx
6952 \end_layout
6953
6954 \end_inset
6955
6956  package or 
6957 \begin_inset Flex Code
6958 status collapsed
6959
6960 \begin_layout Plain Layout
6961 src-specials
6962 \end_layout
6963
6964 \end_inset
6965
6966  sometimes has an undesired impact on the typesetting.
6967  Thus, you should switch output synchronization off for the final typesetting
6968  if you use the 
6969 \begin_inset Flex Code
6970 status collapsed
6971
6972 \begin_layout Plain Layout
6973 srcltx
6974 \end_layout
6975
6976 \end_inset
6977
6978  package or 
6979 \begin_inset Flex Code
6980 status collapsed
6981
6982 \begin_layout Plain Layout
6983 src-specials
6984 \end_layout
6985
6986 \end_inset
6987
6988 .
6989  
6990 \end_layout
6991
6992 \begin_layout Standard
6993 In case you need some more special settings that are not covered by the
6994  automatic settings, read the next section about how to set up output synchroniz
6995 ation manually.
6996  If the automatic setup suits your needs, you can readily jump to section
6997 \begin_inset space ~
6998 \end_inset
6999
7000
7001 \begin_inset CommandInset ref
7002 LatexCommand ref
7003 reference "subsec:configuring-viewers"
7004
7005 \end_inset
7006
7007 , where the necessary configuration steps in your viewer – needed both with
7008  the automatic and the manual setup – are described.
7009 \end_layout
7010
7011 \begin_layout Subsection
7012 Manual setup
7013 \end_layout
7014
7015 \begin_layout Standard
7016 \SpecialChar LaTeX
7017  provides several different methods for reverse search.
7018  Some are built-in in the 
7019 \begin_inset Flex Code
7020 status collapsed
7021
7022 \begin_layout Plain Layout
7023 latex/pdflatex
7024 \end_layout
7025
7026 \end_inset
7027
7028  program, some are provided by external packages.
7029  Your choice depends on whether your \SpecialChar LaTeX
7030  distribution already provides a given
7031  method (the built-in methods are rather new) and whether your viewer can
7032  cope with it.
7033  The available methods are described in the following.
7034 \end_layout
7035
7036 \begin_layout Subsubsection*
7037 Built-in DVI-search via src-specials (DVI only) 
7038 \end_layout
7039
7040 \begin_layout Standard
7041 This method provides the DVI file with the necessary information for reverse
7042  search.
7043  It is available in \SpecialChar LaTeX
7044  since quite some time (any somewhat recent \SpecialChar LaTeX
7045  distribution
7046  should include it), and it works reliably.
7047  To enable it, change the 
7048 \begin_inset Flex Noun
7049 status collapsed
7050
7051 \begin_layout Plain Layout
7052 La
7053 \family sans
7054 TeX
7055 \family default
7056  (plain)->DVI
7057 \end_layout
7058
7059 \end_inset
7060
7061  or 
7062 \begin_inset Flex Noun
7063 status collapsed
7064
7065 \begin_layout Plain Layout
7066 La
7067 \family sans
7068 TeX
7069 \family default
7070  (plain)->DraftDVI
7071 \end_layout
7072
7073 \end_inset
7074
7075  converter in 
7076 \begin_inset Flex Noun
7077 status collapsed
7078
7079 \begin_layout Plain Layout
7080 Preferences\SpecialChar menuseparator
7081 File Handling\SpecialChar menuseparator
7082 Converters
7083 \end_layout
7084
7085 \end_inset
7086
7087  to 
7088 \begin_inset Flex Code
7089 status collapsed
7090
7091 \begin_layout Plain Layout
7092 latex -src-specials $$i
7093 \end_layout
7094
7095 \end_inset
7096
7097 .
7098  If this doesn't work, check if your \SpecialChar TeX
7099  engine needs different options (the
7100  syntax might differ in some distributions).
7101 \end_layout
7102
7103 \begin_layout Subsubsection*
7104 External Packages (PDFSync and scrltx) 
7105 \end_layout
7106
7107 \begin_layout Standard
7108 The packages 
7109 \emph on
7110 pdfsync
7111 \emph default
7112  and 
7113 \emph on
7114 scrltx
7115 \emph default
7116  provide reverse search facility for PDF output (via pdflatex) and DVI output,
7117  respectively.
7118  In order to enable it, load the packages in the \SpecialChar LyX
7119  preamble: 
7120 \end_layout
7121
7122 \begin_layout Itemize
7123 \begin_inset Flex Code
7124 status collapsed
7125
7126 \begin_layout Plain Layout
7127
7128 \backslash
7129 usepackage{pdfsync}
7130 \end_layout
7131
7132 \end_inset
7133
7134  for reverse PDF search,
7135 \end_layout
7136
7137 \begin_layout Itemize
7138 \begin_inset Flex Code
7139 status collapsed
7140
7141 \begin_layout Plain Layout
7142
7143 \backslash
7144 usepackage[active]{srcltx}
7145 \end_layout
7146
7147 \end_inset
7148
7149  for reverse DVI search.
7150 \end_layout
7151
7152 \begin_layout Standard
7153 If you want to be able to perform both DVI and PDF reverse searches, you
7154  can also insert in the preamble the following lines
7155 \end_layout
7156
7157 \begin_layout LyX-Code
7158
7159 \backslash
7160 usepackage{ifpdf}
7161 \begin_inset Newline newline
7162 \end_inset
7163
7164
7165 \backslash
7166 ifpdf
7167 \begin_inset Newline newline
7168 \end_inset
7169
7170   
7171 \backslash
7172 usepackage{pdfsync}
7173 \begin_inset Newline newline
7174 \end_inset
7175
7176
7177 \backslash
7178 else
7179 \begin_inset Newline newline
7180 \end_inset
7181
7182   
7183 \backslash
7184 usepackage[active]{srcltx}
7185 \begin_inset Newline newline
7186 \end_inset
7187
7188
7189 \backslash
7190 fi
7191 \end_layout
7192
7193 \begin_layout Standard
7194 This way, you can preview the file as either DVI or PDF (pdflatex) and the
7195  right package will be used.
7196 \end_layout
7197
7198 \begin_layout Standard
7199 Note that PDFSync might affect the output layout of your document.
7200  It is therefore advised to disable PDFsync for final documents.
7201 \end_layout
7202
7203 \begin_layout Subsubsection*
7204 Built-in reverse search via Sync\SpecialChar TeX
7205  (DVI and PDF) 
7206 \end_layout
7207
7208 \begin_layout Standard
7209 Recent versions of 
7210 \begin_inset Flex Code
7211 status collapsed
7212
7213 \begin_layout Plain Layout
7214 (pdf)latex
7215 \end_layout
7216
7217 \end_inset
7218
7219  have built-in support for both PDF and DVI reverse search.
7220  This so-called 
7221 \emph on
7222 Sync\SpecialChar TeX
7223
7224 \emph default
7225  facility is basically the result of the integration of the PDFSync package
7226  to the pdftex program and its merge with the 
7227 \emph on
7228 scr-specials
7229 \emph default
7230  approach.
7231  You need at least \SpecialChar TeX
7232 Live 2008 or a recent Mik\SpecialChar TeX
7233  distribution in order to use
7234  it.
7235 \begin_inset Foot
7236 status collapsed
7237
7238 \begin_layout Plain Layout
7239 For some reason, Mik\SpecialChar TeX
7240  does not understand/obey the command \SpecialChar LyX
7241  inserts into
7242  the preamble when you check the "Enable Forward/Reverse Search" button
7243  in the toolbar and does not generate the necessary info.
7244 \end_layout
7245
7246 \begin_layout Plain Layout
7247 The generation of the required info can be forced by changing the converter
7248  "\SpecialChar LaTeX
7249  (pdflatex) -> PDF (pdflatex)" in Preferences->File handling->Converters
7250  from the default "pdflatex $$i" to "pdflatex -synctex=1 $$i" (i.e., by adding
7251  the -synctex=1 switch).
7252 \end_layout
7253
7254 \end_inset
7255
7256  Also note that only a few PDF viewers (Okular and Qpdfview on Unix, Skim
7257  on the Mac, SumatraPDF on Windows) already provide Sync\SpecialChar TeX
7258  support.
7259 \end_layout
7260
7261 \begin_layout Standard
7262 To enable Sync\SpecialChar TeX
7263  for DVI output, change the 
7264 \begin_inset Flex Noun
7265 status collapsed
7266
7267 \begin_layout Plain Layout
7268 La
7269 \family sans
7270 TeX
7271 \family default
7272  (plain) -> DVI
7273 \end_layout
7274
7275 \end_inset
7276
7277  or 
7278 \begin_inset Flex Noun
7279 status collapsed
7280
7281 \begin_layout Plain Layout
7282 La
7283 \family sans
7284 TeX
7285 \family default
7286  (plain) -> DraftDVI
7287 \end_layout
7288
7289 \end_inset
7290
7291  converter in 
7292 \begin_inset Flex Noun
7293 status collapsed
7294
7295 \begin_layout Plain Layout
7296 Preferences\SpecialChar menuseparator
7297 File Handling\SpecialChar menuseparator
7298 Converters
7299 \end_layout
7300
7301 \end_inset
7302
7303  to 
7304 \begin_inset Flex Code
7305 status collapsed
7306
7307 \begin_layout Plain Layout
7308 latex -synctex=1 $$i
7309 \end_layout
7310
7311 \end_inset
7312
7313 , and for PDF output, change the 
7314 \begin_inset Flex Noun
7315 status collapsed
7316
7317 \begin_layout Plain Layout
7318 La
7319 \family sans
7320 TeX
7321 \family default
7322  (pdflatex) -> PDF (pdflatex)
7323 \end_layout
7324
7325 \end_inset
7326
7327  or converter to 
7328 \begin_inset Flex Code
7329 status collapsed
7330
7331 \begin_layout Plain Layout
7332 pdflatex -synctex=1 $$i
7333 \end_layout
7334
7335 \end_inset
7336
7337 .
7338  Check the documentation of your viewer whether the viewer needs to be configure
7339 d for the use with Sync\SpecialChar TeX
7340 .
7341 \begin_inset Foot
7342 status collapsed
7343
7344 \begin_layout Plain Layout
7345 Note that the option 
7346 \begin_inset Flex Code
7347 status collapsed
7348
7349 \begin_layout Plain Layout
7350 -synctex=1
7351 \end_layout
7352
7353 \end_inset
7354
7355  option enables gzip compression.
7356  If your viewer does not support it, you should instead use 
7357 \begin_inset Flex Code
7358 status collapsed
7359
7360 \begin_layout Plain Layout
7361 -synctex=-1
7362 \end_layout
7363
7364 \end_inset
7365
7366 .
7367 \end_layout
7368
7369 \end_inset
7370
7371
7372 \end_layout
7373
7374 \begin_layout Subsection
7375 Configuring and using specific viewers
7376 \begin_inset CommandInset label
7377 LatexCommand label
7378 name "subsec:configuring-viewers"
7379
7380 \end_inset
7381
7382
7383 \end_layout
7384
7385 \begin_layout Subsubsection*
7386 Xdvi (all platforms)
7387 \end_layout
7388
7389 \begin_layout Standard
7390 If you use 
7391 \begin_inset Flex Code
7392 status collapsed
7393
7394 \begin_layout Plain Layout
7395 xdvi
7396 \end_layout
7397
7398 \end_inset
7399
7400 , you don't need to do anything else for performing a reverse DVI search,
7401  as \SpecialChar LyX
7402  already provides the necessary hooks for automatically using the 
7403 \begin_inset Flex Code
7404 status collapsed
7405
7406 \begin_layout Plain Layout
7407 lyxclient
7408 \end_layout
7409
7410 \end_inset
7411
7412  program.
7413  Just setup your document as described above (reverse search is triggered
7414  by Ctrl-click or Alt-click on Mac OSX, respectively).
7415 \end_layout
7416
7417 \begin_layout Standard
7418 However, if for whatever reason you want to use the named pipe instead of
7419  the socket for communicating with \SpecialChar LyX
7420 , simply change the DVI viewer in 
7421 \begin_inset Flex Noun
7422 status collapsed
7423
7424 \begin_layout Plain Layout
7425 Preferences\SpecialChar menuseparator
7426 File Handling\SpecialChar menuseparator
7427 File formats
7428 \end_layout
7429
7430 \end_inset
7431
7432  to
7433 \begin_inset Foot
7434 status collapsed
7435
7436 \begin_layout Plain Layout
7437 On Mac OSX you have to use 
7438 \begin_inset Flex Code
7439 status collapsed
7440
7441 \begin_layout Plain Layout
7442 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
7443 \end_layout
7444
7445 \end_inset
7446
7447
7448 \end_layout
7449
7450 \end_inset
7451
7452  
7453 \begin_inset Flex Code
7454 status collapsed
7455
7456 \begin_layout Plain Layout
7457 xdvi -editor "lyxeditor.sh %f %l"
7458 \end_layout
7459
7460 \end_inset
7461
7462 , where 
7463 \begin_inset Flex Code
7464 status collapsed
7465
7466 \begin_layout Plain Layout
7467 lyxeditor.sh
7468 \end_layout
7469
7470 \end_inset
7471
7472  is a suitable script.
7473  For example, a minimal shell script is the following one:
7474 \end_layout
7475
7476 \begin_layout LyX-Code
7477 #!/bin/sh
7478 \begin_inset Newline newline
7479 \end_inset
7480
7481 LYXPIPE="/path/to/lyxpipe"
7482 \begin_inset Newline newline
7483 \end_inset
7484
7485 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
7486 \begin_inset Newline newline
7487 \end_inset
7488
7489 echo "$COMMAND" > "${LYXPIPE}".in || exit
7490 \begin_inset Newline newline
7491 \end_inset
7492
7493 read TMP < "${LYXPIPE}".out || exit
7494 \end_layout
7495
7496 \begin_layout Standard
7497 where 
7498 \begin_inset Flex Code
7499 status collapsed
7500
7501 \begin_layout Plain Layout
7502 /path/to/lyxpipe
7503 \end_layout
7504
7505 \end_inset
7506
7507  is the LyXServer pipe path specified in 
7508 \begin_inset Flex Noun
7509 status collapsed
7510
7511 \begin_layout Plain Layout
7512 Preferences\SpecialChar menuseparator
7513 Paths
7514 \end_layout
7515
7516 \end_inset
7517
7518 .
7519 \begin_inset Foot
7520 status collapsed
7521
7522 \begin_layout Plain Layout
7523 In the 
7524 \begin_inset Flex Code
7525 status collapsed
7526
7527 \begin_layout Plain Layout
7528 development/tools
7529 \end_layout
7530
7531 \end_inset
7532
7533  folder of a source distribution you can find a 
7534 \begin_inset Flex Code
7535 status collapsed
7536
7537 \begin_layout Plain Layout
7538 lyxeditor
7539 \end_layout
7540
7541 \end_inset
7542
7543  script which is able to locate the 
7544 \emph on
7545 lyxpipe
7546 \emph default
7547  based on your preferences.
7548 \end_layout
7549
7550 \end_inset
7551
7552
7553 \end_layout
7554
7555 \begin_layout Subsubsection*
7556 MacDviX (Mac OSX)
7557 \end_layout
7558
7559 \begin_layout Standard
7560 At the end of 
7561 \begin_inset Flex Code
7562 status collapsed
7563
7564 \begin_layout Plain Layout
7565 /Applications/MacDviX_Folder/calleditor.script
7566 \end_layout
7567
7568 \end_inset
7569
7570 , add the following lines:
7571 \end_layout
7572
7573 \begin_layout LyX-Code
7574 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
7575 \begin_inset Newline newline
7576 \end_inset
7577
7578 exit 1
7579 \end_layout
7580
7581 \begin_layout Standard
7582 Modify the lines accordingly if you install \SpecialChar LyX
7583  somewhere else than in the
7584  Applications folder.
7585 \end_layout
7586
7587 \begin_layout Standard
7588 Reverse search is triggered by Alt-click (OPTION-click).
7589 \end_layout
7590
7591 \begin_layout Subsubsection*
7592 Skim (Mac OSX)
7593 \end_layout
7594
7595 \begin_layout Standard
7596 Enter 
7597 \begin_inset Flex Code
7598 status collapsed
7599
7600 \begin_layout Plain Layout
7601 open -a Skim.app $$i
7602 \end_layout
7603
7604 \end_inset
7605
7606  to the viewer setting in 
7607 \begin_inset Flex Noun
7608 status collapsed
7609
7610 \begin_layout Plain Layout
7611 Preferences\SpecialChar menuseparator
7612 File Handling\SpecialChar menuseparator
7613 File formats\SpecialChar menuseparator
7614 PDF (pdflatex)
7615 \end_layout
7616
7617 \end_inset
7618
7619 , and then in 
7620 \begin_inset Flex Noun
7621 status collapsed
7622
7623 \begin_layout Plain Layout
7624 Skim\SpecialChar menuseparator
7625 Preferences\SpecialChar menuseparator
7626 Sync
7627 \end_layout
7628
7629 \end_inset
7630
7631  choose 
7632 \begin_inset Flex Noun
7633 status collapsed
7634
7635 \begin_layout Plain Layout
7636 custom
7637 \end_layout
7638
7639 \end_inset
7640
7641  preset and enter command 
7642 \begin_inset Flex Noun
7643 status collapsed
7644
7645 \begin_layout Plain Layout
7646 /Applications/\SpecialChar LyX
7647 .app/Contents/MacOS/lyxeditor
7648 \end_layout
7649
7650 \end_inset
7651
7652 .
7653 \end_layout
7654
7655 \begin_layout Standard
7656 Reverse search is triggered by COMMAND-SHIFT-click
7657 \end_layout
7658
7659 \begin_layout Subsubsection*
7660 Okular (KDE)
7661 \end_layout
7662
7663 \begin_layout Standard
7664 Go to 
7665 \begin_inset Flex Noun
7666 status collapsed
7667
7668 \begin_layout Plain Layout
7669 Settings\SpecialChar menuseparator
7670 Configure Okular\SpecialChar menuseparator
7671 Editor
7672 \end_layout
7673
7674 \end_inset
7675
7676 , select 
7677 \begin_inset Quotes eld
7678 \end_inset
7679
7680 Custom Text Editor
7681 \begin_inset Quotes erd
7682 \end_inset
7683
7684  and add the command 
7685 \begin_inset Flex Code
7686 status collapsed
7687
7688 \begin_layout Plain Layout
7689 lyxclient -g %f %l
7690 \end_layout
7691
7692 \end_inset
7693
7694 .
7695 \end_layout
7696
7697 \begin_layout Standard
7698 Reverse search is triggered by SHIFT-click.
7699 \end_layout
7700
7701 \begin_layout Subsubsection*
7702 Qpdfview (Unix)
7703 \end_layout
7704
7705 \begin_layout Standard
7706 Qpdfview supports Sync\SpecialChar TeX
7707  since version 0.3.5.
7708  Go to 
7709 \begin_inset Flex Noun
7710 status collapsed
7711
7712 \begin_layout Plain Layout
7713 Edit\SpecialChar menuseparator
7714 Settings\SpecialChar menuseparator
7715 Behavior
7716 \end_layout
7717
7718 \end_inset
7719
7720 , click on the input field of the 
7721 \begin_inset Quotes eld
7722 \end_inset
7723
7724 Source editor
7725 \begin_inset Quotes erd
7726 \end_inset
7727
7728  item and add the command 
7729 \begin_inset Flex Code
7730 status collapsed
7731
7732 \begin_layout Plain Layout
7733 lyxclient -g %1 %2
7734 \end_layout
7735
7736 \end_inset
7737
7738 .
7739 \end_layout
7740
7741 \begin_layout Standard
7742 Reverse search is triggered by double-click or, in more recent versions,
7743  by context menu.
7744 \end_layout
7745
7746 \begin_layout Subsubsection*
7747 YAP (Windows)
7748 \end_layout
7749
7750 \begin_layout Standard
7751 Launch yap, choose its 
7752 \begin_inset Flex Noun
7753 status collapsed
7754
7755 \begin_layout Plain Layout
7756 View\SpecialChar menuseparator
7757 Options
7758 \end_layout
7759
7760 \end_inset
7761
7762  menu and select the 
7763 \begin_inset Quotes eld
7764 \end_inset
7765
7766 Inverse DVI Search
7767 \begin_inset Quotes erd
7768 \end_inset
7769
7770  tab.
7771  Click on the 
7772 \begin_inset Quotes eld
7773 \end_inset
7774
7775 New\SpecialChar ldots
7776
7777 \begin_inset Quotes erd
7778 \end_inset
7779
7780  button and, in the window that opens, enter 
7781 \begin_inset Quotes eld
7782 \end_inset
7783
7784 \SpecialChar LyX
7785  Editor
7786 \begin_inset Quotes erd
7787 \end_inset
7788
7789  (or any other name you like) in the 
7790 \begin_inset Quotes eld
7791 \end_inset
7792
7793 Name:
7794 \begin_inset Quotes erd
7795 \end_inset
7796
7797  field.
7798  Now click on the button labeled 
7799 \begin_inset Quotes eld
7800 \end_inset
7801
7802 \SpecialChar ldots
7803
7804 \begin_inset Quotes erd
7805 \end_inset
7806
7807  to open a file dialog and navigate to the directory containing the batch
7808  file 
7809 \begin_inset Flex Code
7810 status collapsed
7811
7812 \begin_layout Plain Layout
7813 lyxeditor.bat
7814 \end_layout
7815
7816 \end_inset
7817
7818  (see below).
7819  Select 
7820 \begin_inset Flex Code
7821 status collapsed
7822
7823 \begin_layout Plain Layout
7824 lyxeditor.bat
7825 \end_layout
7826
7827 \end_inset
7828
7829  and then specify the program arguments as 
7830 \begin_inset Flex Code
7831 status collapsed
7832
7833 \begin_layout Plain Layout
7834 %f %l
7835 \end_layout
7836
7837 \end_inset
7838
7839 .
7840  The 
7841 \begin_inset Flex Code
7842 status collapsed
7843
7844 \begin_layout Plain Layout
7845 lyxeditor.bat
7846 \end_layout
7847
7848 \end_inset
7849
7850  wrapper is used for communicating with \SpecialChar LyX
7851  through the 
7852 \emph on
7853 lyxpipe
7854 \emph default
7855  and is as follows:
7856 \end_layout
7857
7858 \begin_layout LyX-Code
7859 @echo off
7860 \begin_inset Newline newline
7861 \end_inset
7862
7863 echo LYXCMD:revdvi:server-goto-file-row:%1 %2> 
7864 \backslash
7865
7866 \backslash
7867 .
7868 \backslash
7869 pipe
7870 \backslash
7871 lyxpipe.in
7872 \begin_inset Newline newline
7873 \end_inset
7874
7875 type 
7876 \backslash
7877
7878 \backslash
7879 .
7880 \backslash
7881 pipe
7882 \backslash
7883 lyxpipe.out
7884 \end_layout
7885
7886 \begin_layout Standard
7887 Make sure that the \SpecialChar LyX
7888 Server pipe path you specified in \SpecialChar LyX
7889  is 
7890 \begin_inset Flex Code
7891 status collapsed
7892
7893 \begin_layout Plain Layout
7894
7895 \backslash
7896
7897 \backslash
7898 .
7899 \backslash
7900 pipe
7901 \backslash
7902 lyxpipe
7903 \end_layout
7904
7905 \end_inset
7906
7907 , otherwise change the 
7908 \begin_inset Flex Code
7909 status collapsed
7910
7911 \begin_layout Plain Layout
7912 lyxeditor.bat
7913 \end_layout
7914
7915 \end_inset
7916
7917  wrapper accordingly.
7918 \end_layout
7919
7920 \begin_layout Standard
7921 In yap, reverse search is triggered by double-click.
7922 \end_layout
7923
7924 \begin_layout Subsubsection*
7925 SumatraPDF (Windows)
7926 \end_layout
7927
7928 \begin_layout Standard
7929 In order to use SumatraPDF for inverse search, enter 
7930 \begin_inset Flex Code
7931 status collapsed
7932
7933 \begin_layout Plain Layout
7934 SumatraPDF -inverse-search "lyxeditor.bat %f %l"
7935 \end_layout
7936
7937 \end_inset
7938
7939  in the viewer setting in 
7940 \begin_inset Flex Noun
7941 status collapsed
7942
7943 \begin_layout Plain Layout
7944 Preferences\SpecialChar menuseparator
7945 File Handling\SpecialChar menuseparator
7946 File formats\SpecialChar menuseparator
7947 PDF (pdflatex)
7948 \end_layout
7949
7950 \end_inset
7951
7952 , where 
7953 \begin_inset Flex Code
7954 status collapsed
7955
7956 \begin_layout Plain Layout
7957 lyxeditor.bat
7958 \end_layout
7959
7960 \end_inset
7961
7962  is the previous wrapper.
7963  If SumatraPDF.exe is not in your command PATH, use its full file name.
7964 \end_layout
7965
7966 \begin_layout Standard
7967 Reverse search is triggered by double-click.
7968 \end_layout
7969
7970 \begin_layout Subsubsection*
7971 YAP (Cygwin)
7972 \end_layout
7973
7974 \begin_layout Standard
7975 First of all, make sure that yap is your default DVI viewer in the Windows
7976  environment, then launch it, choose its 
7977 \begin_inset Flex Noun
7978 status collapsed
7979
7980 \begin_layout Plain Layout
7981 View\SpecialChar menuseparator
7982 Options
7983 \end_layout
7984
7985 \end_inset
7986
7987  menu and select the 
7988 \begin_inset Quotes eld
7989 \end_inset
7990
7991 Inverse DVI Search
7992 \begin_inset Quotes erd
7993 \end_inset
7994
7995  tab.
7996  Click on the 
7997 \begin_inset Quotes eld
7998 \end_inset
7999
8000 New\SpecialChar ldots
8001
8002 \begin_inset Quotes erd
8003 \end_inset
8004
8005  button and, in the window that opens, enter 
8006 \begin_inset Quotes eld
8007 \end_inset
8008
8009 \SpecialChar LyX
8010  Editor
8011 \begin_inset Quotes erd
8012 \end_inset
8013
8014  (or any other name you like) in the 
8015 \begin_inset Quotes eld
8016 \end_inset
8017
8018 Name:
8019 \begin_inset Quotes erd
8020 \end_inset
8021
8022  field.
8023  Now click on the button labeled 
8024 \begin_inset Quotes eld
8025 \end_inset
8026
8027 \SpecialChar ldots
8028
8029 \begin_inset Quotes erd
8030 \end_inset
8031
8032  to open a file dialog and navigate to the directory containing the 
8033 \begin_inset Flex Code
8034 status collapsed
8035
8036 \begin_layout Plain Layout
8037 lyxeditor.exe
8038 \end_layout
8039
8040 \end_inset
8041
8042  program (which is installed by default on Cygwin along with the \SpecialChar LyX
8043  executable).
8044  Select 
8045 \begin_inset Flex Code
8046 status collapsed
8047
8048 \begin_layout Plain Layout
8049 lyxeditor.exe
8050 \end_layout
8051
8052 \end_inset
8053
8054  and then specify the program arguments as 
8055 \begin_inset Flex Code
8056 status collapsed
8057
8058 \begin_layout Plain Layout
8059 -g %f %l
8060 \end_layout
8061
8062 \end_inset
8063
8064 .
8065  In this way, you will be using the 
8066 \emph on
8067 lyxsocket
8068 \emph default
8069  for communicating with \SpecialChar LyX
8070 .
8071  If, for whatever reason, you want to use the 
8072 \emph on
8073 lyxpipe
8074 \emph default
8075 , omit the 
8076 \begin_inset Flex Code
8077 status collapsed
8078
8079 \begin_layout Plain Layout
8080 -g
8081 \end_layout
8082
8083 \end_inset
8084
8085  option and be sure to specify the \SpecialChar LyX
8086 Server pipe path in the \SpecialChar LyX
8087  preferences.
8088 \end_layout
8089
8090 \begin_layout Standard
8091 In yap, reverse search is triggered by double-click.
8092 \end_layout
8093
8094 \begin_layout Subsubsection*
8095 SumatraPDF (Cygwin)
8096 \end_layout
8097
8098 \begin_layout Standard
8099 In order to use SumatraPDF for inverse search, enter 
8100 \begin_inset Flex Code
8101 status collapsed
8102
8103 \begin_layout Plain Layout
8104 SumatraPDF -inverse-search "lyxeditor -g %f %l"
8105 \end_layout
8106
8107 \end_inset
8108
8109  in the viewer setting in 
8110 \begin_inset Flex Noun
8111 status collapsed
8112
8113 \begin_layout Plain Layout
8114 Preferences\SpecialChar menuseparator
8115 File Handling\SpecialChar menuseparator
8116 File formats\SpecialChar menuseparator
8117 PDF (pdflatex)
8118 \end_layout
8119
8120 \end_inset
8121
8122 .
8123  If SumatraPDF.exe is not in your command PATH, use its full posix path.
8124  The 
8125 \begin_inset Flex Code
8126 status collapsed
8127
8128 \begin_layout Plain Layout
8129 -g
8130 \end_layout
8131
8132 \end_inset
8133
8134  enables communication via the 
8135 \emph on
8136 lyxsocket
8137 \emph default
8138 .
8139  Again, omit the 
8140 \begin_inset Flex Code
8141 status collapsed
8142
8143 \begin_layout Plain Layout
8144 -g
8145 \end_layout
8146
8147 \end_inset
8148
8149  option if you want to use the 
8150 \emph on
8151 lyxpipe
8152 \emph default
8153 , and be sure to specify the \SpecialChar LyX
8154 Server pipe path in the \SpecialChar LyX
8155  preferences.
8156 \end_layout
8157
8158 \begin_layout Standard
8159 Reverse search is triggered by double-click.
8160 \end_layout
8161
8162 \begin_layout Section
8163 Forward search
8164 \end_layout
8165
8166 \begin_layout Standard
8167 Forward search is, as the name implies, in a sense the 
8168 \begin_inset Quotes eld
8169 \end_inset
8170
8171 opposite
8172 \begin_inset Quotes erd
8173 \end_inset
8174
8175  of reverse search.
8176  It allows you to let the viewer jump to a given position from within \SpecialChar LyX
8177 .
8178  If forward search is set up (as described in what follows), you can put
8179  the cursor anywhere in your \SpecialChar LyX
8180  document, and hit 
8181 \begin_inset Flex Noun
8182 status collapsed
8183
8184 \begin_layout Plain Layout
8185 Navigate\SpecialChar menuseparator
8186 Forward search
8187 \end_layout
8188
8189 \end_inset
8190
8191  (or select 
8192 \begin_inset Flex Noun
8193 status collapsed
8194
8195 \begin_layout Plain Layout
8196 Forward search
8197 \end_layout
8198
8199 \end_inset
8200
8201  in the context menu via right mouse click), and then the viewer will jump
8202  to that position as well.
8203  This implies, of course, that your viewer supports this function.
8204 \end_layout
8205
8206 \begin_layout Standard
8207 To make forward search possible, you first need to provide the generated
8208  output PDF/DVI file with additional information about the \SpecialChar TeX
8209  sources.
8210  This can be done via the methods described in the section 
8211 \begin_inset CommandInset ref
8212 LatexCommand ref
8213 reference "subsec:rev-search"
8214
8215 \end_inset
8216
8217 .
8218 \end_layout
8219
8220 \begin_layout Standard
8221 Additionally, you need to configure \SpecialChar LyX
8222  for using your viewers in 
8223 \begin_inset Flex Noun
8224 status collapsed
8225
8226 \begin_layout Plain Layout
8227 Tools\SpecialChar menuseparator
8228 Preferences\SpecialChar menuseparator
8229 Output\SpecialChar menuseparator
8230 General
8231 \end_layout
8232
8233 \end_inset
8234
8235 .
8236  We provide a range of tested configurations for some viewers, which you
8237  can select from the drop down list.
8238  If none of these configurations suits you, you have to find out and enter
8239  a suitable configuration yourself.
8240  The definition syntax uses the following placeholders:
8241 \end_layout
8242
8243 \begin_layout Itemize
8244 \noindent
8245 \begin_inset Flex Code
8246 status collapsed
8247
8248 \begin_layout Plain Layout
8249 $$n
8250 \end_layout
8251
8252 \end_inset
8253
8254 : row number
8255 \end_layout
8256
8257 \begin_layout Itemize
8258 \noindent
8259 \begin_inset Flex Code
8260 status collapsed
8261
8262 \begin_layout Plain Layout
8263 $$t
8264 \end_layout
8265
8266 \end_inset
8267
8268 : name of the (temporary) exported .tex file (without path)
8269 \end_layout
8270
8271 \begin_layout Itemize
8272 \noindent
8273 \begin_inset Flex Code
8274 status collapsed
8275
8276 \begin_layout Plain Layout
8277 $$f
8278 \end_layout
8279
8280 \end_inset
8281
8282 : name of the (temporary) exported .tex file (including path)
8283 \end_layout
8284
8285 \begin_layout Itemize
8286 \noindent
8287 \begin_inset Flex Code
8288 status collapsed
8289
8290 \begin_layout Plain Layout
8291 $$o
8292 \end_layout
8293
8294 \end_inset
8295
8296 : name of the exported output file (either dvi or pdf, depending on which
8297  one exists in the temporary directory)
8298 \end_layout
8299
8300 \begin_layout Standard
8301 Note that only some of the viewers provide full forward search functionality,
8302  among them yap, xdvi, okular
8303 \begin_inset Foot
8304 status collapsed
8305
8306 \begin_layout Plain Layout
8307 You might want to set 
8308 \begin_inset Flex Code
8309 status collapsed
8310
8311 \begin_layout Plain Layout
8312 okular –unique
8313 \end_layout
8314
8315 \end_inset
8316
8317  in 
8318 \begin_inset Flex Noun
8319 status collapsed
8320
8321 \begin_layout Plain Layout
8322 Tools\SpecialChar menuseparator
8323 Preferences\SpecialChar menuseparator
8324 File Handling\SpecialChar menuseparator
8325 File
8326 \begin_inset space ~
8327 \end_inset
8328
8329 Formats
8330 \end_layout
8331
8332 \end_inset
8333
8334
8335 \end_layout
8336
8337 \end_inset
8338
8339 , qpdfview and SumatraPDF
8340 \begin_inset Foot
8341 status collapsed
8342
8343 \begin_layout Plain Layout
8344 SumatraPDF can also use DDE commands through the external program CMCDDE
8345  — downloadable from 
8346 \begin_inset CommandInset href
8347 LatexCommand href
8348 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
8349 literal "false"
8350
8351 \end_inset
8352
8353
8354 \end_layout
8355
8356 \end_inset
8357
8358 .
8359  While many of the widespread PDF viewers (most notably Adobe Reader) do
8360  not support forward search at all, some other viewers – e.
8361 \begin_inset space \thinspace{}
8362 \end_inset
8363
8364 g.
8365  evince and xpdf – allow at least to reload the document and jump to a specific
8366  page of the file, so you can at least navigate 
8367 \begin_inset Quotes eld
8368 \end_inset
8369
8370 near
8371 \begin_inset Quotes erd
8372 \end_inset
8373
8374 .
8375  This latter functionality is provided by an external call of synctex (see
8376  the predefined example configurations).
8377  
8378 \end_layout
8379
8380 \begin_layout Standard
8381 Forward search works both with DVI and PDF output.
8382  \SpecialChar LyX
8383  simply checks which preview format you have used before (i.
8384 \begin_inset space \thinspace{}
8385 \end_inset
8386
8387 e., which format is already there in the temporary directory) and chooses
8388  the appropriate configuration for the respective format.
8389 \end_layout
8390
8391 \begin_layout Chapter
8392 Special Document Classes
8393 \end_layout
8394
8395 \begin_layout Section
8396 A&A Paper
8397 \end_layout
8398
8399 \begin_layout Standard
8400 by 
8401 \noun on
8402 Peter Sütterlin
8403 \end_layout
8404
8405 \begin_layout Subsection
8406 Introduction
8407 \end_layout
8408
8409 \begin_layout Standard
8410 This section describes how \SpecialChar LyX
8411  can be used to write articles for submission
8412  to the scientific journal 
8413 \emph on
8414 Astronomy and Astrophysics
8415 \emph default
8416  (
8417 \begin_inset Flex URL
8418 status collapsed
8419
8420 \begin_layout Plain Layout
8421
8422 http://www.edpsciences.fr/aa/
8423 \end_layout
8424
8425 \end_inset
8426
8427 ) using Version 5.01 of the document class 
8428 \family typewriter
8429 aa.cls
8430 \family default
8431 .
8432  This package can be downloaded from the ftp site
8433 \end_layout
8434
8435 \begin_layout Standard
8436 \begin_inset VSpace medskip
8437 \end_inset
8438
8439
8440 \end_layout
8441
8442 \begin_layout Standard
8443 \align center
8444 \begin_inset Flex URL
8445 status collapsed
8446
8447 \begin_layout Plain Layout
8448
8449 ftp://ftp.edpsciences.org/pub/aa/readme.html
8450 \end_layout
8451
8452 \end_inset
8453
8454
8455 \end_layout
8456
8457 \begin_layout Standard
8458 \begin_inset VSpace medskip
8459 \end_inset
8460
8461
8462 \end_layout
8463
8464 \begin_layout Standard
8465 A manual comes together with that package, and this text is not meant to
8466  replace the original manual but is merely a short guide in how to realize
8467  the correct form of your paper.
8468  
8469 \end_layout
8470
8471 \begin_layout Standard
8472 Please note that the publisher of the journal was changed from Springer
8473  to EDP Sciences starting January 1, 2001.
8474  That change involved also some slight changes to the style files, namely
8475  the removal of the thesaurus command.
8476  The \SpecialChar LyX
8477  class aa supports the newest version of these style files, V 5.01.
8478  If you have an older version installed, please upgrade.
8479  For compatibility, the old (version 4) layout has been kept as 
8480 \family sans
8481 article (A&A V4)
8482 \family default
8483 .
8484  Please refer to the comments in 
8485 \family typewriter
8486 \SpecialChar LyX
8487 Dir/layouts/aapaper.layout
8488 \family default
8489 .
8490 \end_layout
8491
8492 \begin_layout Subsection
8493 Getting started
8494 \end_layout
8495
8496 \begin_layout Standard
8497 It is recommended you start from the example template distributed with \SpecialChar LyX
8498 .
8499  If you are not using a template, note the following settings:
8500 \end_layout
8501
8502 \begin_layout Itemize
8503 Select 
8504 \family sans
8505 article (A&A)
8506 \family default
8507  in the 
8508 \family sans
8509 Document\SpecialChar menuseparator
8510 Settings
8511 \family default
8512  dialog (OK, that one was obvious).
8513 \end_layout
8514
8515 \begin_layout Itemize
8516 Don't change the option 
8517 \family sans
8518 Page
8519 \begin_inset space ~
8520 \end_inset
8521
8522 style
8523 \family default
8524 : Leave it set to 
8525 \family sans
8526 default
8527 \family default
8528 .
8529  The whole layout is done by the macros, you shouldn't change anything.
8530 \end_layout
8531
8532 \begin_layout Subsection
8533 The header block
8534 \end_layout
8535
8536 \begin_layout Standard
8537 First thing to enter is the header information.
8538  It consists of seven entries, of which some are optional.
8539  They are
8540 \end_layout
8541
8542 \begin_layout Itemize
8543
8544 \family sans
8545 Title
8546 \family default
8547 : [required] 
8548 \end_layout
8549
8550 \begin_layout Itemize
8551
8552 \family sans
8553 Subtitle
8554 \family default
8555 : [optional] 
8556 \end_layout
8557
8558 \begin_layout Itemize
8559
8560 \family sans
8561 Author
8562 \family default
8563 : [required]
8564 \end_layout
8565
8566 \begin_layout Itemize
8567
8568 \family sans
8569 Address
8570 \family default
8571 : [required]
8572 \end_layout
8573
8574 \begin_layout Itemize
8575
8576 \family sans
8577 Offprints
8578 \family default
8579 : [optional] if more than one author: whom to contact for offprint requests.
8580 \end_layout
8581
8582 \begin_layout Itemize
8583
8584 \family sans
8585 Mail
8586 \family default
8587 : [optional] mail address for contacts.
8588 \end_layout
8589
8590 \begin_layout Itemize
8591
8592 \family sans
8593 Date
8594 \family default
8595 : [required].
8596  Suggested format is 
8597 \family typewriter
8598 Received: <date>; Accepted <date> 
8599 \end_layout
8600
8601 \begin_layout Standard
8602 There is no need to issue the 
8603 \family typewriter
8604
8605 \backslash
8606 maketitle
8607 \family default
8608  command, this is done automatically by \SpecialChar LyX
8609  when the header is finished.
8610  Although the order of the single header entries doesn't matter it is advised
8611  to keep the above sequence, just to get the best optics and meets the layout
8612  of the real document.
8613 \end_layout
8614
8615 \begin_layout Standard
8616 If you want to place footnotes in the header block, e.
8617 \begin_inset space \thinspace{}
8618 \end_inset
8619
8620 g.
8621 \begin_inset space \space{}
8622 \end_inset
8623
8624 to state your present address, just use the standard footnote via the menu
8625  
8626 \family sans
8627 Insert\SpecialChar menuseparator
8628 Footnote.
8629
8630 \family default
8631  \SpecialChar LyX
8632  will automagically use the term 
8633 \family typewriter
8634
8635 \backslash
8636 thanks{}
8637 \family default
8638  in that case.
8639 \end_layout
8640
8641 \begin_layout Standard
8642 In addition to these topics, the macros use three additional \SpecialChar LaTeX
8643  commands that
8644  have no counterpart in \SpecialChar LyX
8645 :
8646 \end_layout
8647
8648 \begin_layout Itemize
8649
8650 \family typewriter
8651
8652 \backslash
8653 and
8654 \family default
8655  to separate different names for more than one author and institute, respectivel
8656 y.
8657 \end_layout
8658
8659 \begin_layout Itemize
8660
8661 \family typewriter
8662
8663 \backslash
8664 inst{<nr>}
8665 \family default
8666 to mark corresponding author/institute pairs.
8667  The institutes are numbered sequentially as they appear in the 
8668 \family sans
8669 Address
8670 \family default
8671  field, so you have to put a marker to each author.
8672 \end_layout
8673
8674 \begin_layout Itemize
8675
8676 \family typewriter
8677
8678 \backslash
8679 email{address}
8680 \family default
8681  to supply an email address for fast contact.
8682 \end_layout
8683
8684 \begin_layout Standard
8685 In all cases, the appropriate command has to be entered in \SpecialChar LyX
8686  and marked as
8687  \SpecialChar LaTeX
8688  code.
8689  See the examples.
8690  
8691 \end_layout
8692
8693 \begin_layout Subsection
8694 The abstract
8695 \end_layout
8696
8697 \begin_layout Standard
8698 The abstract should immediately follow the header block.
8699  With version 5 the abstract environment was changed to a command, and there
8700  is now a resctriction to only one paragraph.
8701  In addition, it should contain an entry with the keywords.
8702  This is not yet implemented for \SpecialChar LyX
8703 , therefore you have to enter the \SpecialChar LaTeX
8704  command
8705  
8706 \family typewriter
8707
8708 \backslash
8709 keywords{}
8710 \family default
8711  by hand and mark it as \SpecialChar LaTeX
8712  code.
8713  Refer to the example paper.
8714 \end_layout
8715
8716 \begin_layout Subsection
8717 Supported environments
8718 \end_layout
8719
8720 \begin_layout Standard
8721 The A&A paper layout supports the following environments for structuring
8722  your text:
8723 \end_layout
8724
8725 \begin_layout Itemize
8726
8727 \family sans
8728 Standard
8729 \end_layout
8730
8731 \begin_layout Itemize
8732
8733 \family sans
8734 Section
8735 \end_layout
8736
8737 \begin_layout Itemize
8738
8739 \family sans
8740 Subsection
8741 \end_layout
8742
8743 \begin_layout Itemize
8744
8745 \family sans
8746 Subsubsection
8747 \end_layout
8748
8749 \begin_layout Itemize
8750
8751 \family sans
8752 Itemize
8753 \end_layout
8754
8755 \begin_layout Itemize
8756
8757 \family sans
8758 Enumerate
8759 \end_layout
8760
8761 \begin_layout Itemize
8762
8763 \family sans
8764 Description
8765 \end_layout
8766
8767 \begin_layout Itemize
8768
8769 \family sans
8770 Caption
8771 \end_layout
8772
8773 \begin_layout Itemize
8774
8775 \family sans
8776 Abstract
8777 \end_layout
8778
8779 \begin_layout Itemize
8780
8781 \family sans
8782 Acknowledgment
8783 \end_layout
8784
8785 \begin_layout Itemize
8786
8787 \family sans
8788 Bibliography
8789 \end_layout
8790
8791 \begin_layout Itemize
8792
8793 \family sans
8794 \SpecialChar LaTeX
8795
8796 \end_layout
8797
8798 \begin_layout Subsection
8799 Commands not supported by \SpecialChar LyX
8800
8801 \end_layout
8802
8803 \begin_layout Standard
8804 Some commands are not yet supported by the 
8805 \family sans
8806 paper (A&A)
8807 \family default
8808  layout for \SpecialChar LyX
8809 .
8810  Some have already been mentioned.
8811  For the sake of completeness, they are listed all together here:
8812 \end_layout
8813
8814 \begin_layout Itemize
8815
8816 \family typewriter
8817
8818 \backslash
8819 and
8820 \end_layout
8821
8822 \begin_layout Itemize
8823
8824 \family typewriter
8825
8826 \backslash
8827 email
8828 \end_layout
8829
8830 \begin_layout Itemize
8831
8832 \family typewriter
8833
8834 \backslash
8835 appendix
8836 \end_layout
8837
8838 \begin_layout Itemize
8839
8840 \family typewriter
8841
8842 \backslash
8843 authorrunning
8844 \end_layout
8845
8846 \begin_layout Itemize
8847
8848 \family typewriter
8849
8850 \backslash
8851 inst{}
8852 \end_layout
8853
8854 \begin_layout Itemize
8855
8856 \family typewriter
8857
8858 \backslash
8859 keywords{}
8860 \end_layout
8861
8862 \begin_layout Itemize
8863
8864 \family typewriter
8865
8866 \backslash
8867 object{}
8868 \end_layout
8869
8870 \begin_layout Itemize
8871
8872 \family typewriter
8873
8874 \backslash
8875 titlerunning{}
8876 \end_layout
8877
8878 \begin_layout Standard
8879 If you want to use any of these commands, you have to enter them yourself.
8880  
8881 \series bold
8882 Do not forget to mark them as \SpecialChar LaTeX
8883  code!
8884 \end_layout
8885
8886 \begin_layout Subsection
8887 Figure and Table Floats
8888 \end_layout
8889
8890 \begin_layout Standard
8891 \SpecialChar LyX
8892  provides support for the necessary float environments 
8893 \family sans
8894 figure, figure*, table
8895 \family default
8896  and 
8897 \family sans
8898 table*
8899 \family default
8900 , therefore we won't tell much about it here.
8901  Refer to the 
8902 \emph on
8903 User's
8904 \begin_inset space ~
8905 \end_inset
8906
8907 Guide
8908 \emph default
8909 .
8910  Just remember that tables should be left-aligned.
8911  For that, select the table and change the alignment in 
8912 \family sans
8913 Edit\SpecialChar menuseparator
8914 Paragraph
8915 \begin_inset space ~
8916 \end_inset
8917
8918 Settings.
8919 \end_layout
8920
8921 \begin_layout Standard
8922 There is only one special thing: the figures with caption besides the figure.
8923  To create such a figure, you have to do the following:
8924 \end_layout
8925
8926 \begin_layout Enumerate
8927 Create a wide figure float: 
8928 \family sans
8929 Insert\SpecialChar menuseparator
8930 Float\SpecialChar menuseparator
8931 Figure
8932 \family default
8933 , then right click in the figure and select 
8934 \family sans
8935 Span
8936 \begin_inset space ~
8937 \end_inset
8938
8939 columns
8940 \family default
8941 .
8942 \end_layout
8943
8944 \begin_layout Enumerate
8945 Enter your caption text.
8946 \end_layout
8947
8948 \begin_layout Enumerate
8949 Press 
8950 \family sans
8951 Return
8952 \family default
8953  to move the cursor above the caption.
8954 \end_layout
8955
8956 \begin_layout Enumerate
8957 Insert your figure
8958 \end_layout
8959
8960 \begin_layout Enumerate
8961 Position the cursor behind the figure and insert a horizontal fill: 
8962 \family sans
8963 Insert\SpecialChar menuseparator
8964 Special
8965 \begin_inset space ~
8966 \end_inset
8967
8968 Character\SpecialChar menuseparator
8969 Horizontal
8970 \begin_inset space ~
8971 \end_inset
8972
8973 Fill
8974 \family default
8975 .
8976 \end_layout
8977
8978 \begin_layout Enumerate
8979 Switch to \SpecialChar LaTeX
8980  mode: 
8981 \family sans
8982 M-c
8983 \begin_inset space ~
8984 \end_inset
8985
8986 t
8987 \family default
8988 .
8989 \end_layout
8990
8991 \begin_layout Enumerate
8992 Enter 
8993 \family typewriter
8994
8995 \backslash
8996 parbox[b]{55mm}{
8997 \family default
8998 .
8999  
9000 \series bold
9001 Do not close the brace!
9002 \end_layout
9003
9004 \begin_layout Enumerate
9005 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
9006  mode and insert
9007  the closing brace: 
9008 \family sans
9009 M-c
9010 \begin_inset space ~
9011 \end_inset
9012
9013 t
9014 \family default
9015  
9016 \family typewriter
9017 }
9018 \family default
9019 .
9020 \end_layout
9021
9022 \begin_layout Standard
9023 Also, refer to the figures in the example paper.
9024 \end_layout
9025
9026 \begin_layout Subsection
9027 Referee layout
9028 \end_layout
9029
9030 \begin_layout Standard
9031 For submission, the paper has to be formated in a special double-spacing
9032  layout.
9033  For this purpose, you have to give the option 
9034 \family typewriter
9035 referee
9036 \family default
9037  to the documentclass.
9038  This must be done using the extra class options field in the 
9039 \family sans
9040 Document\SpecialChar menuseparator
9041 Settings
9042 \family default
9043  dialog.
9044  Just enter the string 
9045 \family typewriter
9046 referee
9047 \family default
9048  there.
9049 \end_layout
9050
9051 \begin_layout Subsection
9052 The example paper
9053 \end_layout
9054
9055 \begin_layout Standard
9056 The 
9057 \family sans
9058 Examples
9059 \family default
9060  directory contains an example paper written with \SpecialChar LyX
9061 .
9062  It is the example paper from the original macro package, translated to
9063  \SpecialChar LyX
9064 .
9065  Use it for inspiration, and compare the original \SpecialChar LaTeX
9066  code with \SpecialChar LyX
9067  way of writing.
9068 \end_layout
9069
9070 \begin_layout Section
9071 AAS\SpecialChar TeX
9072
9073 \end_layout
9074
9075 \begin_layout Standard
9076 by 
9077 \noun on
9078 Mike Ressler
9079 \end_layout
9080
9081 \begin_layout Subsection
9082 Introduction
9083 \end_layout
9084
9085 \begin_layout Standard
9086 AAS\SpecialChar TeX
9087  is a set of macros produced by the American Astronomical Society to
9088  facilitate electronic manuscript submission to the three journals they
9089  publish: the Astrophysical Journal (including the Letters and Supplement),
9090  the Astronomical Journal, and the Publications of the Astronomical Society
9091  of the Pacific.
9092  \SpecialChar LyX
9093  has proven to be an excellent tool for generating these documents, especially
9094  given its equation, citation, and figure handling capabilities.
9095  \SpecialChar LyX
9096  requires version 5.0 (or higher) of these macros; preferably 5.2, which
9097  is the version described here, or higher.
9098  Versions prior to 5.0 are intended for use with \SpecialChar LaTeX
9099 2.09 and are fundamentally
9100  incompatible with \SpecialChar LyX
9101 .
9102  The AAS\SpecialChar TeX
9103  package may be downloaded from the AAS\SpecialChar TeX
9104  Web site
9105 \end_layout
9106
9107 \begin_layout Standard
9108 \begin_inset VSpace medskip
9109 \end_inset
9110
9111
9112 \end_layout
9113
9114 \begin_layout Standard
9115 \align center
9116 \begin_inset Flex URL
9117 status collapsed
9118
9119 \begin_layout Plain Layout
9120
9121 https://aas.org/aastex/aastex-downloads
9122 \end_layout
9123
9124 \end_inset
9125
9126
9127 \end_layout
9128
9129 \begin_layout Standard
9130 \begin_inset VSpace medskip
9131 \end_inset
9132
9133
9134 \end_layout
9135
9136 \begin_layout Standard
9137 A complete user guide is contained in that package and you should familiarize
9138  yourself with it thoroughly before embarking on writing a paper in \SpecialChar LyX
9139 .
9140  \SpecialChar LyX
9141  will not reduce the need to figure out all the AAS\SpecialChar TeX
9142  commands, it will only
9143  reduce the drudgery of typing everything in.
9144  It is your responsibility to ensure that the final exported \SpecialChar LaTeX
9145  document conforms
9146  completely to the requirements of the journal to which you are submitting
9147  your paper.
9148 \end_layout
9149
9150 \begin_layout Subsection
9151 Starting a New Paper
9152 \end_layout
9153
9154 \begin_layout Standard
9155 I strongly suggest that you start with the AAS\SpecialChar TeX
9156  template file.
9157  Click on 
9158 \family sans
9159 File\SpecialChar menuseparator
9160 New from
9161 \family default
9162  
9163 \family sans
9164 Template
9165 \family default
9166 , enter the new file name, then choose the 
9167 \family typewriter
9168 aastex.lyx
9169 \family default
9170  template.
9171  This will show the most common fields found in a manuscript.
9172  Simply overwrite the existing text (including the brackets, 
9173 \family typewriter
9174 <>
9175 \family default
9176 ) with the correct information.
9177  Many of the AAS\SpecialChar TeX
9178  commands and environments can be implemented directly in
9179  \SpecialChar LyX
9180 , but some cannot: most noticeably 
9181 \family typewriter
9182
9183 \backslash
9184 altaffilmark
9185 \family default
9186  and 
9187 \family typewriter
9188
9189 \backslash
9190 altaffiltext
9191 \family default
9192 , which should stick out like a sore thumb if you actually just opened the
9193  template file.
9194  For commands such as these, the \SpecialChar LaTeX
9195  code must be entered directly and marked
9196  as such.
9197  Such commands are referred to as \SpecialChar TeX
9198  code, or Evil Red Text.
9199  I tried to minimize the amount of \SpecialChar TeX
9200  code needed in an AAS\SpecialChar TeX
9201  document, but
9202  there is still a bit more required than any of us would like.
9203 \end_layout
9204
9205 \begin_layout Subsection
9206 Finishing Your Paper
9207 \end_layout
9208
9209 \begin_layout Standard
9210 When the paper is finished to your satisfaction and previews/prints correctly,
9211  there are a few 
9212 \begin_inset Quotes eld
9213 \end_inset
9214
9215 postprocessing
9216 \begin_inset Quotes erd
9217 \end_inset
9218
9219  actions which need to be done before you submit it to the journals.
9220  
9221 \end_layout
9222
9223 \begin_layout Enumerate
9224 Export your paper as a \SpecialChar LaTeX
9225  file (
9226 \family sans
9227 File\SpecialChar menuseparator
9228 Export\SpecialChar menuseparator
9229 \SpecialChar LaTeX
9230
9231 \family default
9232 ).
9233  
9234 \end_layout
9235
9236 \begin_layout Enumerate
9237 Edit the resulting 
9238 \family typewriter
9239 .tex
9240 \family default
9241  file with your favorite text editor
9242 \end_layout
9243
9244 \begin_deeper
9245 \begin_layout Enumerate
9246 remove the comment lines before the 
9247 \family typewriter
9248
9249 \backslash
9250 documentclass
9251 \family default
9252  command
9253 \end_layout
9254
9255 \begin_layout Enumerate
9256 remove the 
9257 \family typewriter
9258
9259 \backslash
9260 usepackage...{fontenc}
9261 \family default
9262  line if it appears (usually just after 
9263 \family typewriter
9264
9265 \backslash
9266 documentclass
9267 \family default
9268 }; also remove the 
9269 \family typewriter
9270
9271 \backslash
9272 secnumdepth
9273 \family default
9274  line if it appears.
9275 \end_layout
9276
9277 \begin_layout Enumerate
9278 remove everything between (and including) the 
9279 \family typewriter
9280
9281 \backslash
9282 makeatletter
9283 \family default
9284  and 
9285 \family typewriter
9286
9287 \backslash
9288 makeatother
9289 \family default
9290  commands, except for any commands you specifically put into the \SpecialChar LaTeX
9291  preamble
9292  (which should appear immediately after the 
9293 \begin_inset Quotes eld
9294 \end_inset
9295
9296 User specified \SpecialChar LaTeX
9297  commands
9298 \begin_inset Quotes erd
9299 \end_inset
9300
9301  comment in the 
9302 \family typewriter
9303 .tex
9304 \family default
9305  file).
9306 \end_layout
9307
9308 \end_deeper
9309 \begin_layout Enumerate
9310 Run the resulting file through \SpecialChar LaTeX
9311  to make sure it still processes correctly.
9312 \end_layout
9313
9314 \begin_layout Enumerate
9315 Reread the journal requirements to make sure your filenames and formats
9316  are correct.
9317 \end_layout
9318
9319 \begin_layout Enumerate
9320 Submit it.
9321 \end_layout
9322
9323 \begin_layout Subsection
9324 Comments On Specific Commands
9325 \end_layout
9326
9327 \begin_layout Standard
9328 I will not describe the detailed usage of the individual AAS\SpecialChar TeX
9329  commands: the
9330  AAS\SpecialChar TeX
9331  User Guide (
9332 \family typewriter
9333 aasguide.tex
9334 \family default
9335 ) gives a good description of each.
9336  Thus it's probably easiest for me to go down the list as found in the guide
9337  and offer comments where necessary.
9338  So let's begin \SpecialChar ldots
9339
9340 \end_layout
9341
9342 \begin_layout Subsubsection
9343 Things that work as expected
9344 \end_layout
9345
9346 \begin_layout Standard
9347 Because they work as you might expect, I simply list them and the section
9348  they are found in: 
9349 \family typewriter
9350
9351 \backslash
9352 documentclass
9353 \family default
9354  (2.1.1), 
9355 \family typewriter
9356
9357 \backslash
9358 begin{document}
9359 \family default
9360  (2.2), 
9361 \family typewriter
9362
9363 \backslash
9364 title
9365 \family default
9366  (2.3), 
9367 \family typewriter
9368
9369 \backslash
9370 author
9371 \family default
9372  (2.3), 
9373 \family typewriter
9374
9375 \backslash
9376 affil
9377 \family default
9378  (2.3), 
9379 \family typewriter
9380
9381 \backslash
9382 abstract
9383 \family default
9384  (2.4), 
9385 \family typewriter
9386
9387 \backslash
9388 keywords
9389 \family default
9390  (2.5), 
9391 \family typewriter
9392
9393 \backslash
9394 section
9395 \family default
9396  (2.7), 
9397 \family typewriter
9398
9399 \backslash
9400 subsection
9401 \family default
9402  (2.7), 
9403 \family typewriter
9404
9405 \backslash
9406 subsubsection
9407 \family default
9408  (2.7), 
9409 \family typewriter
9410
9411 \backslash
9412 paragraph
9413 \family default
9414  (2.7), 
9415 \family typewriter
9416
9417 \backslash
9418 facility
9419 \family default
9420  (2.10), 
9421 \family typewriter
9422
9423 \backslash
9424 begin{displaymath}
9425 \family default
9426  (2.12), 
9427 \family typewriter
9428
9429 \backslash
9430 begin{equation}
9431 \family default
9432  (2.12), 
9433 \family typewriter
9434
9435 \backslash
9436 begin{eqnarray}
9437 \family default
9438  (2.12), 
9439 \family typewriter
9440
9441 \backslash
9442 begin{mathletters}
9443 \family default
9444  (2.12), 
9445 \family typewriter
9446
9447 \backslash
9448 begin{thebibliography}
9449 \family default
9450  (2.13.1), 
9451 \family typewriter
9452
9453 \backslash
9454 bibitem
9455 \family default
9456  (2.13.2), all the cite commands and their variations (2.13.2), the generic
9457  graphicx figure commands (2.14.1), 
9458 \family typewriter
9459
9460 \backslash
9461 begin{table}
9462 \family default
9463  (2.15.4), 
9464 \family typewriter
9465
9466 \backslash
9467 begin{tabular}
9468 \family default
9469  (2.15.4), 
9470 \family typewriter
9471
9472 \backslash
9473 caption
9474 \family default
9475  (2.15.4), 
9476 \family typewriter
9477
9478 \backslash
9479 label
9480 \family default
9481  (2.15.4, amongst other places), 
9482 \family typewriter
9483
9484 \backslash
9485 tablerefs
9486 \family default
9487  (2.15.5), 
9488 \family typewriter
9489
9490 \backslash
9491 tablecomments
9492 \family default
9493  (2.15.5), 
9494 \family typewriter
9495
9496 \backslash
9497 url
9498 \family default
9499  (2.17.4), 
9500 \family typewriter
9501
9502 \backslash
9503 end{document}
9504 \family default
9505  (2.18).
9506 \end_layout
9507
9508 \begin_layout Standard
9509 The following style options also work correctly: 
9510 \family typewriter
9511 longabstract
9512 \family default
9513  (2.4), 
9514 \family typewriter
9515 preprint
9516 \family default
9517  (3.2.1), 
9518 \family typewriter
9519 preprint2
9520 \family default
9521  (3.2.2), 
9522 \family typewriter
9523 eqsecnum
9524 \family default
9525  (3.3), 
9526 \family typewriter
9527 flushrt
9528 \family default
9529  (3.4).
9530  Simply put them in the 
9531 \family sans
9532 Options
9533 \family default
9534  box in 
9535 \family sans
9536 Layout\SpecialChar menuseparator
9537 Document
9538 \family default
9539 .
9540 \end_layout
9541
9542 \begin_layout Subsubsection
9543 Things that work, but require more comment
9544 \end_layout
9545
9546 \begin_layout Standard
9547 The following items work, but require a little more discussion:
9548 \end_layout
9549
9550 \begin_layout Itemize
9551 These items are reserved for use by the journal editors, but you can put
9552  them into the \SpecialChar LaTeX
9553  preamble if you feel compelled to do so: 
9554 \family typewriter
9555
9556 \backslash
9557 received
9558 \family default
9559
9560 \family typewriter
9561
9562 \backslash
9563 revised
9564 \family default
9565
9566 \family typewriter
9567
9568 \backslash
9569 accepted
9570 \family default
9571
9572 \family typewriter
9573
9574 \backslash
9575 ccc
9576 \family default
9577
9578 \family typewriter
9579
9580 \backslash
9581 cpright
9582 \family default
9583  (all from 2.1.3)
9584 \end_layout
9585
9586 \begin_layout Itemize
9587 These items may be placed in the \SpecialChar LaTeX
9588  preamble, and are included as blanks in
9589  the template file: 
9590 \family typewriter
9591
9592 \backslash
9593 slugcomment
9594 \family default
9595  (2.1.4), 
9596 \family typewriter
9597
9598 \backslash
9599 shorttitle
9600 \family default
9601  (2.1.5), 
9602 \family typewriter
9603
9604 \backslash
9605 shortauthors
9606 \family default
9607  (2.1.5)
9608 \end_layout
9609
9610 \begin_layout Itemize
9611
9612 \family typewriter
9613
9614 \backslash
9615 email
9616 \family default
9617  (2.3) – can only be used 
9618 \begin_inset Quotes eld
9619 \end_inset
9620
9621 standalone
9622 \begin_inset Quotes erd
9623 \end_inset
9624
9625 , not in the middle of a paragraph.
9626  Use \SpecialChar TeX
9627  code if you need to embed it.
9628 \end_layout
9629
9630 \begin_layout Itemize
9631
9632 \family typewriter
9633
9634 \backslash
9635 and
9636 \family default
9637  (2.3) – will have extra {} after it.
9638  This should not cause an error.
9639 \end_layout
9640
9641 \begin_layout Itemize
9642
9643 \family typewriter
9644
9645 \backslash
9646 notetoeditor
9647 \family default
9648  (2.6) – can only be used 
9649 \begin_inset Quotes eld
9650 \end_inset
9651
9652 standalone
9653 \begin_inset Quotes erd
9654 \end_inset
9655
9656 , not in the middle of a paragraph.
9657  Use \SpecialChar TeX
9658  code if you need to embed it.
9659 \end_layout
9660
9661 \begin_layout Itemize
9662
9663 \family typewriter
9664
9665 \backslash
9666 placetable
9667 \family default
9668  (2.8) – can't insert a cross-reference tag, you must type the tag name by
9669  hand
9670 \end_layout
9671
9672 \begin_layout Itemize
9673
9674 \family typewriter
9675
9676 \backslash
9677 placefigure
9678 \family default
9679  (2.8) – same as for 
9680 \family typewriter
9681
9682 \backslash
9683 placetable
9684 \end_layout
9685
9686 \begin_layout Itemize
9687
9688 \family typewriter
9689
9690 \backslash
9691 acknowledgements
9692 \family default
9693  (2.9) – will have extra {} after it.
9694  This should not cause an error.
9695 \end_layout
9696
9697 \begin_layout Itemize
9698
9699 \family typewriter
9700
9701 \backslash
9702 appendix
9703 \family default
9704  (2.11) – will have extra {} after it.
9705  This should not cause an error.
9706 \end_layout
9707
9708 \begin_layout Itemize
9709
9710 \family typewriter
9711
9712 \backslash
9713 figcaption
9714 \family default
9715  (2.14.2) – you can insert an optional filename argument by placing the cursor
9716  at the beginning of the text and selecting 
9717 \family sans
9718 Insert\SpecialChar menuseparator
9719 Short Title
9720 \family default
9721 .
9722  
9723 \begin_inset Quotes eld
9724 \end_inset
9725
9726 Short Title
9727 \begin_inset Quotes erd
9728 \end_inset
9729
9730  inserts an optional argument of the type needed by 
9731 \family typewriter
9732
9733 \backslash
9734 figcaption
9735 \family default
9736 .
9737  Hopefully it will be renamed someday.
9738 \end_layout
9739
9740 \begin_layout Itemize
9741
9742 \family typewriter
9743
9744 \backslash
9745 objectname
9746 \family default
9747  (2.17.1) – same as 
9748 \family typewriter
9749
9750 \backslash
9751 figcaption
9752 \family default
9753  for the catalog ID optional parameter
9754 \end_layout
9755
9756 \begin_layout Itemize
9757
9758 \family typewriter
9759
9760 \backslash
9761 dataset
9762 \family default
9763  (2.17.1) – same as 
9764 \family typewriter
9765
9766 \backslash
9767 figcaption
9768 \family default
9769  for the catalog ID optional parameter
9770 \end_layout
9771
9772 \begin_layout Subsubsection
9773 Things not implemented, use \SpecialChar TeX
9774  code
9775 \end_layout
9776
9777 \begin_layout Standard
9778
9779 \family typewriter
9780
9781 \backslash
9782 altaffilmark
9783 \family default
9784  (2.3), 
9785 \family typewriter
9786
9787 \backslash
9788 altaffiltext
9789 \family default
9790  (2.3), 
9791 \family typewriter
9792
9793 \backslash
9794 eqnum
9795 \family default
9796  (2.12), 
9797 \family typewriter
9798
9799 \backslash
9800 setcounter{equation}
9801 \family default
9802  (2.12), Journal name abbreviations (2.13.4), 
9803 \family typewriter
9804
9805 \backslash
9806 figurenum
9807 \family default
9808  (2.14.1), 
9809 \family typewriter
9810
9811 \backslash
9812 epsscale
9813 \family default
9814  (2.14.1), 
9815 \family typewriter
9816
9817 \backslash
9818 plotone
9819 \family default
9820  (2.14.1), 
9821 \family typewriter
9822
9823 \backslash
9824 plottwo
9825 \family default
9826  (2.14.1), 
9827 \family typewriter
9828
9829 \backslash
9830 tablenum
9831 \family default
9832  (2.15.4), 
9833 \family typewriter
9834
9835 \backslash
9836 tableline
9837 \family default
9838  (2.15.4, insert it as the first element in the lefthand cell after where
9839  you want it.
9840  Don't use any of \SpecialChar LyX
9841 's rules in the table), 
9842 \family typewriter
9843
9844 \backslash
9845 tablenotemark
9846 \family default
9847  (2.15.5), 
9848 \family typewriter
9849
9850 \backslash
9851 tablenotetext
9852 \family default
9853  (2.15.5), much of Misc (2.17, except 
9854 \family typewriter
9855
9856 \backslash
9857 objectname
9858 \family default
9859
9860 \family typewriter
9861
9862 \backslash
9863 dataset
9864 \family default
9865
9866 \family typewriter
9867
9868 \backslash
9869 url
9870 \family default
9871 , and 
9872 \family typewriter
9873
9874 \backslash
9875 email
9876 \family default
9877 ; see above), 
9878 \family typewriter
9879
9880 \backslash
9881 singlespace
9882 \family default
9883  (3.1), 
9884 \family typewriter
9885
9886 \backslash
9887 doublespace
9888 \family default
9889  (3.1), 
9890 \family typewriter
9891
9892 \backslash
9893 onecolumn
9894 \family default
9895  (3.2), 
9896 \family typewriter
9897
9898 \backslash
9899 twocolumn
9900 \family default
9901  (3.2)
9902 \end_layout
9903
9904 \begin_layout Subsubsection
9905 Things that cannot be implemented
9906 \end_layout
9907
9908 \begin_layout Standard
9909 \SpecialChar ldots
9910  at least in any meaningful sort of way, so I suggest ignoring them.
9911  They are the references environment (2.13.3), and the deluxetable environment
9912  (2.15).
9913  If you really, really need to use deluxetable, I suggest editing it in
9914  a separate file with a text editor, then using 
9915 \family sans
9916 Insert\SpecialChar menuseparator
9917 Child
9918 \begin_inset space ~
9919 \end_inset
9920
9921 Document
9922 \family default
9923  to include it in your \SpecialChar LyX
9924  document.
9925  See the 
9926 \family typewriter
9927 aas_sample.lyx
9928 \family default
9929  file to see an example of this.
9930 \end_layout
9931
9932 \begin_layout Subsection
9933 FAQs, Tips, Tricks, and Other Ruminations
9934 \end_layout
9935
9936 \begin_layout Subsubsection
9937 Getting \SpecialChar LyX
9938  and AAS\SpecialChar TeX
9939  to cooperate
9940 \end_layout
9941
9942 \begin_layout Standard
9943 It can be a bit tricky to get \SpecialChar LyX
9944  to recognize a new layout and document class.
9945  When all else fails, do this:
9946 \end_layout
9947
9948 \begin_layout Enumerate
9949 Make certain that \SpecialChar LaTeX
9950  can find AAS\SpecialChar TeX
9951 .
9952  Copy sample.tex (and perhaps table.tex) from the AAS\SpecialChar TeX
9953  distribution into a
9954  directory completely unrelated to \SpecialChar LaTeX
9955  or AAS\SpecialChar TeX
9956  and run \SpecialChar LaTeX
9957  on 
9958 \family typewriter
9959 sample.tex
9960 \family default
9961 .
9962 \end_layout
9963
9964 \begin_layout Enumerate
9965 Make certain that 
9966 \family typewriter
9967 aastex.layout
9968 \family default
9969  appears in \SpecialChar LyX
9970 's 
9971 \family typewriter
9972 layouts
9973 \family default
9974  folder
9975 \end_layout
9976
9977 \begin_layout Enumerate
9978 Rerun 
9979 \family sans
9980 Tools\SpecialChar menuseparator
9981 Reconfigure
9982 \family default
9983  in \SpecialChar LyX
9984 , then restart \SpecialChar LyX
9985 .
9986 \end_layout
9987
9988 \begin_layout Enumerate
9989 Open a regular new file, not from a template.
9990  Does AAS\SpecialChar TeX
9991  appear in the class list in 
9992 \family sans
9993 Document\SpecialChar menuseparator
9994 Settings
9995 \family default
9996 ?
9997 \end_layout
9998
9999 \begin_layout Standard
10000 If you get a warning from an existing AAS\SpecialChar TeX
10001  document about not being able
10002  to find the AAS\SpecialChar TeX
10003  layout or a message about 
10004 \begin_inset Quotes eld
10005 \end_inset
10006
10007 You should not mix title layouts with normal ones
10008 \begin_inset Quotes erd
10009 \end_inset
10010
10011 , things haven't been installed correctly.
10012 \end_layout
10013
10014 \begin_layout Subsubsection
10015 \SpecialChar LaTeX
10016  error processing a table 
10017 \end_layout
10018
10019 \begin_layout Standard
10020 \SpecialChar LyX
10021 , by default, attempts to center the table caption/title.
10022  This seems to produce a bad interaction in AAS\SpecialChar TeX
10023  so you should click somewhere
10024  in the caption/title, then select 
10025 \family sans
10026 Edit\SpecialChar menuseparator
10027 Paragraph
10028 \begin_inset space ~
10029 \end_inset
10030
10031 Settings
10032 \family default
10033 , then set the 
10034 \family sans
10035 Alignment
10036 \family default
10037  to 
10038 \family sans
10039 Block
10040 \family default
10041 .
10042  This took care of it for me.
10043 \end_layout
10044
10045 \begin_layout Subsubsection
10046 References
10047 \end_layout
10048
10049 \begin_layout Standard
10050 A couple of things: 1) I have noticed some funny spacing in the reference
10051  entries in the text.
10052  When you enter the bibliography item data, make sure their is 
10053 \emph on
10054 no
10055 \emph default
10056  space between the last author and the parenthesis setting off the year;
10057  
10058 \emph on
10059 e.
10060 \begin_inset space \thinspace{}
10061 \end_inset
10062
10063 g.
10064 \begin_inset space \space{}
10065 \end_inset
10066
10067
10068 \emph default
10069 type 
10070 \family typewriter
10071 Ressler(1992)
10072 \family default
10073 , not 
10074 \family typewriter
10075 Ressler (1992)
10076 \family default
10077 .
10078  2) Entering the references at all is not obvious.
10079  The easiest thing is to start typing your first reference at the end of
10080  the document, then mark it as type 
10081 \family sans
10082 References
10083 \family default
10084 .
10085  That will put a small gray box in front of what you just typed.
10086  Click on the box to fill in the rest of the information.
10087  For new references, go to the end of an existing reference and press return.
10088  That will create a new line with its own box, etc.
10089 \end_layout
10090
10091 \begin_layout Subsubsection
10092 Including EPS files
10093 \end_layout
10094
10095 \begin_layout Standard
10096 Even though AAS\SpecialChar TeX
10097  provides its own figure commands (
10098 \family typewriter
10099
10100 \backslash
10101 plotone
10102 \family default
10103 , for example), I much prefer \SpecialChar LaTeX
10104 's standard figure commands (with the default
10105  graphicx).
10106  You can insert the 
10107 \family typewriter
10108
10109 \backslash
10110 plotone
10111 \family default
10112 , etc.
10113 \begin_inset space ~
10114 \end_inset
10115
10116 commands as \SpecialChar TeX
10117  code into a Figure Float box if you desire, but I never have
10118  much luck getting the layout right.
10119  With the standard graphics, \SpecialChar LyX
10120  will insert a 
10121 \family typewriter
10122
10123 \backslash
10124 usepackage{graphicx}
10125 \family default
10126  command into the \SpecialChar LaTeX
10127  preamble and handle the figures in the standard \SpecialChar LaTeX2e
10128  way,
10129  interspersing the figures in the text.
10130  I believe ApJ accepts figures exactly this way now; AJ might still use
10131  the 
10132 \begin_inset Quotes eld
10133 \end_inset
10134
10135 stack everything at the end
10136 \begin_inset Quotes erd
10137 \end_inset
10138
10139  technique.
10140 \end_layout
10141
10142 \begin_layout Subsubsection
10143 Things I could have done, but didn't
10144 \end_layout
10145
10146 \begin_layout Standard
10147 There are a few 
10148 \begin_inset Quotes eld
10149 \end_inset
10150
10151 pretty
10152 \begin_inset Quotes erd
10153 \end_inset
10154
10155  things I could have implemented, but chose not to.
10156  For instance, I saw no point in double-spacing the text in the \SpecialChar LyX
10157  window,
10158  even though it is double-spaced in the paper manuscript.
10159  Also, I chose not to make separate layouts for the preprint and preprint2
10160  styles.
10161  Since I assume you will spend most of your time in the plain manuscript
10162  mode anyway, I decided not to chew up more disk space with this.
10163  
10164 \end_layout
10165
10166 \begin_layout Subsection
10167 Final Caveat
10168 \end_layout
10169
10170 \begin_layout Standard
10171 Your mileage may vary.
10172  I've now had papers published by both ApJ and AJ that have had 98% of the
10173  effort done in \SpecialChar LyX
10174 ; the last 2% was the \SpecialChar LaTeX
10175  post-processing and a few cleanups.
10176  I have had no trouble with the submission process, and I'm sure the journals
10177  were never aware that there might be a difference.
10178  So, go forth and publish!
10179 \end_layout
10180
10181 \begin_layout Section
10182 AMS \SpecialChar LaTeX
10183
10184 \end_layout
10185
10186 \begin_layout Standard
10187 by 
10188 \noun on
10189 David Johnson
10190 \noun default
10191 ; updated by 
10192 \noun on
10193 Richard Heck
10194 \end_layout
10195
10196 \begin_layout Standard
10197 \begin_inset VSpace bigskip
10198 \end_inset
10199
10200
10201 \end_layout
10202
10203 \begin_layout Standard
10204 \noindent
10205 The AMS \SpecialChar LaTeX
10206  layouts are set up to conform to suggested styles for mathematical
10207  papers to be submitted to American Mathematical Society publications.
10208  The layouts are not tailored to a specific journal, but easily can be.
10209  You should refer to the AMS documentation for specific instructions for
10210  each journal (usually it will entail only changing a single line in the
10211  \SpecialChar TeX
10212  output).
10213  That documentation is available on the Web at 
10214 \begin_inset Flex URL
10215 status open
10216
10217 \begin_layout Plain Layout
10218
10219 http://www.ams.org
10220 \end_layout
10221
10222 \end_inset
10223
10224  or by ftp at 
10225 \begin_inset Flex URL
10226 status open
10227
10228 \begin_layout Plain Layout
10229
10230 ftp://ftp.ams.org/pub/tex/amslatex/
10231 \end_layout
10232
10233 \end_inset
10234
10235 .
10236  These layouts are appropriate, and useful, for any mathematical writing.
10237  
10238 \end_layout
10239
10240 \begin_layout Standard
10241 There are two basic AMS \SpecialChar LaTeX
10242  layouts: 
10243 \end_layout
10244
10245 \begin_layout Itemize
10246 amsart: The standard AMS article format.
10247 \end_layout
10248
10249 \begin_layout Itemize
10250 amsbook: the standard AMS book (really, monograph) format.
10251  
10252 \end_layout
10253
10254 \begin_layout Standard
10255 The layouts themselves contain only the minimum necessary to use the AMS
10256  classes.
10257  They do not, in particular, contain any of the `theorem' environments used
10258  for setting theorems, lemmas, and the like.
10259  These are contained, instead, in the 
10260 \begin_inset Flex Code
10261 status collapsed
10262
10263 \begin_layout Plain Layout
10264 Theorems (AMS)
10265 \end_layout
10266
10267 \end_inset
10268
10269  module, which is loaded by default when you select one of the AMS classes.
10270  (It can also be used with other classes and can be removed, if you would
10271  rather use something else.) Less commonly used environments are in the 
10272 \begin_inset Flex Code
10273 status collapsed
10274
10275 \begin_layout Plain Layout
10276 Theorems (AMS-Extended)
10277 \end_layout
10278
10279 \end_inset
10280
10281  module, which must be loaded manually.
10282 \end_layout
10283
10284 \begin_layout Standard
10285 By default, theorems and the like are numbered consecutively throughout
10286  the document, but this may be modified by loading the module 
10287 \begin_inset Flex Code
10288 status collapsed
10289
10290 \begin_layout Plain Layout
10291 Theorems (Order by Section)
10292 \end_layout
10293
10294 \end_inset
10295
10296  or, if you are using 
10297 \begin_inset Flex Code
10298 status collapsed
10299
10300 \begin_layout Plain Layout
10301 book (AMS)
10302 \end_layout
10303
10304 \end_inset
10305
10306 , the module 
10307 \begin_inset Flex Code
10308 status collapsed
10309
10310 \begin_layout Plain Layout
10311 Theorems (Order by Chapter)
10312 \end_layout
10313
10314 \end_inset
10315
10316 .
10317  These will number the results as 
10318 \begin_inset Formula $n.m$
10319 \end_inset
10320
10321 , where the first number refers to the section (or chapter) and the second
10322  refers to the total number of results so far in that section (or chapter).
10323  Many environments are also available unnumbered.
10324  These are indicated by an asterisk at the end.
10325  If you happen to want 
10326 \emph on
10327 only
10328 \emph default
10329  unnumbered results, the module 
10330 \begin_inset Flex Code
10331 status collapsed
10332
10333 \begin_layout Plain Layout
10334 Theorems (Starred)
10335 \end_layout
10336
10337 \end_inset
10338
10339  provides that option.
10340 \end_layout
10341
10342 \begin_layout Standard
10343 Note that these modules do not 
10344 \emph on
10345 have
10346 \emph default
10347  to be used with the AMS classes.
10348  It is perfectly possible to use the 
10349 \begin_inset Flex Code
10350 status collapsed
10351
10352 \begin_layout Plain Layout
10353 Theorems (AMS)
10354 \end_layout
10355
10356 \end_inset
10357
10358  module, and the others mentioned, with other classes, such as 
10359 \begin_inset Flex Code
10360 status collapsed
10361
10362 \begin_layout Plain Layout
10363 article
10364 \end_layout
10365
10366 \end_inset
10367
10368
10369 \begin_inset Flex Code
10370 status collapsed
10371
10372 \begin_layout Plain Layout
10373 report
10374 \end_layout
10375
10376 \end_inset
10377
10378
10379 \begin_inset Flex Code
10380 status collapsed
10381
10382 \begin_layout Plain Layout
10383 book (KOMA-script)
10384 \end_layout
10385
10386 \end_inset
10387
10388 , and so forth.
10389 \end_layout
10390
10391 \begin_layout Subsection
10392 What these layouts provide
10393 \end_layout
10394
10395 \begin_layout Standard
10396 There is a long list of included environments provided by these layouts.
10397  In AMS-\SpecialChar LaTeX
10398 , there is, in fact, an opportunity to define an unlimited variety
10399  of `theorem' environments.
10400  However, the AMS recommends the environments that are available in \SpecialChar LyX
10401 .
10402  
10403 \end_layout
10404
10405 \begin_layout Standard
10406 The following environments—as well as the standard environments, such as
10407  
10408 \begin_inset Flex Noun
10409 status collapsed
10410
10411 \begin_layout Plain Layout
10412 section
10413 \end_layout
10414
10415 \end_inset
10416
10417
10418 \begin_inset Flex Noun
10419 status collapsed
10420
10421 \begin_layout Plain Layout
10422 bibliography
10423 \end_layout
10424
10425 \end_inset
10426
10427
10428 \begin_inset Flex Noun
10429 status collapsed
10430
10431 \begin_layout Plain Layout
10432 title
10433 \end_layout
10434
10435 \end_inset
10436
10437
10438 \begin_inset Flex Noun
10439 status collapsed
10440
10441 \begin_layout Plain Layout
10442 author
10443 \end_layout
10444
10445 \end_inset
10446
10447 , and 
10448 \begin_inset Flex Noun
10449 status collapsed
10450
10451 \begin_layout Plain Layout
10452 date
10453 \end_layout
10454
10455 \end_inset
10456
10457 —are provided by 
10458 \begin_inset Flex Code
10459 status collapsed
10460
10461 \begin_layout Plain Layout
10462 article (AMS)
10463 \end_layout
10464
10465 \end_inset
10466
10467  and 
10468 \begin_inset Flex Code
10469 status collapsed
10470
10471 \begin_layout Plain Layout
10472 book (AMS)
10473 \end_layout
10474
10475 \end_inset
10476
10477 :
10478 \end_layout
10479
10480 \begin_layout Description
10481 Address This should be the author's permanent address.
10482 \end_layout
10483
10484 \begin_layout Description
10485 Current
10486 \begin_inset space ~
10487 \end_inset
10488
10489 Address This should be the author's temporary address at the time of submission,
10490  if different from the Address.
10491 \end_layout
10492
10493 \begin_layout Description
10494 Email Author's e-mail address
10495 \end_layout
10496
10497 \begin_layout Description
10498 URL Author's Web address, if desired.
10499 \end_layout
10500
10501 \begin_layout Description
10502 Keywords Key words or phrases used to identify specific topics discussed
10503  in the paper.
10504 \end_layout
10505
10506 \begin_layout Description
10507 Subjectclass These refer to the AMS Subject Classifications, published and
10508  described in 
10509 \emph on
10510 Mathematical Reviews
10511 \emph default
10512 .
10513  These are also available online at the AMS cites listed above.
10514 \end_layout
10515
10516 \begin_layout Description
10517 Thanks
10518 \end_layout
10519
10520 \begin_layout Description
10521 Dedicatory
10522 \end_layout
10523
10524 \begin_layout Description
10525 Translator
10526 \end_layout
10527
10528 \begin_layout Standard
10529 The following environments are provided by both the 
10530 \begin_inset Flex Code
10531 status collapsed
10532
10533 \begin_layout Plain Layout
10534 Theorems
10535 \end_layout
10536
10537 \end_inset
10538
10539  and 
10540 \begin_inset Flex Code
10541 status collapsed
10542
10543 \begin_layout Plain Layout
10544 Theorems (AMS)
10545 \end_layout
10546
10547 \end_inset
10548
10549  modules, in the latter case in both starred (unnumbered) and unstarred
10550  (numbered) versions.
10551  These same environments are provided only in the starred versions by the
10552  
10553 \begin_inset Flex Code
10554 status collapsed
10555
10556 \begin_layout Plain Layout
10557 Theorems (Starred)
10558 \end_layout
10559
10560 \end_inset
10561
10562  module:
10563 \end_layout
10564
10565 \begin_layout Theorem
10566 This is typically used for the statements of major results.
10567  
10568 \end_layout
10569
10570 \begin_layout Corollary*
10571 This is used for statements which follow fairly directly from previous statement
10572 s.
10573  Again, these can be major results.
10574  
10575 \end_layout
10576
10577 \begin_layout Lemma
10578 These are smaller results needed to prove other statements.
10579 \end_layout
10580
10581 \begin_layout Proposition
10582 These are less major results which (hopefully) add to the general theory
10583  being discussed.
10584 \end_layout
10585
10586 \begin_layout Conjecture
10587 These are statements provided without justification, which the author does
10588  not know how to prove, but which seem to be true (to the author, at least).
10589 \end_layout
10590
10591 \begin_layout Definition*
10592 Guess what this is for.
10593  The font is different for this environment than for the previous ones.
10594  
10595 \end_layout
10596
10597 \begin_layout Example*
10598 Used for examples illustrating proven results.
10599 \end_layout
10600
10601 \begin_layout Problem
10602 It's not really known what this is for.
10603  You should figure it out.
10604 \end_layout
10605
10606 \begin_layout Exercise*
10607 Write a description for this one.
10608 \end_layout
10609
10610 \begin_layout Remark
10611 This environment is also a type of theorem, usually a lesser sort of observation.
10612 \end_layout
10613
10614 \begin_layout Claim*
10615 Often used in the course of giving a proof of a larger result.
10616 \end_layout
10617
10618 \begin_layout Case
10619 Generally, these are used to break up long arguments, using specific instances
10620  of some condition.
10621  
10622 \end_layout
10623
10624 \begin_layout Case
10625 The numbering scheme for cases is on its own, not together with other numbered
10626  statements.
10627  
10628 \end_layout
10629
10630 \begin_layout Proof
10631 At the end of this environment, a QED symbol (usually a square, but it can
10632  vary with different styles) is placed.
10633  If you want to have other environments within this one—for example, Case
10634  environments—and have the QED symbol appear only after them, then the other
10635  environments need to be nested within the proof environment.
10636  See the section 
10637 \emph on
10638 Nesting Environments
10639 \emph default
10640  of the 
10641 \emph on
10642 User's Guide
10643 \emph default
10644  for information on nesting.
10645 \end_layout
10646
10647 \begin_layout Standard
10648 And these environments are provided by 
10649 \begin_inset Flex Code
10650 status collapsed
10651
10652 \begin_layout Plain Layout
10653 Theorems (AMS-Extended)
10654 \end_layout
10655
10656 \end_inset
10657
10658 :
10659 \end_layout
10660
10661 \begin_layout Criterion*
10662 A required condition.
10663 \end_layout
10664
10665 \begin_layout Algorithm*
10666 A general procedure to be used.
10667 \end_layout
10668
10669 \begin_layout Axiom*
10670 This is a property or statement taken as true within the system being discussed.
10671 \end_layout
10672
10673 \begin_layout Condition*
10674 Sometimes used to state a condition assumed within the present context of
10675  discussion.
10676 \end_layout
10677
10678 \begin_layout Note*
10679 Similar to a Remark.
10680 \end_layout
10681
10682 \begin_layout Notation*
10683 Used for the explanation of, yes, notation.
10684 \end_layout
10685
10686 \begin_layout Summary
10687 Do we really need to tell you? 
10688 \end_layout
10689
10690 \begin_layout Acknowledgement*
10691 Acknowledgement.
10692 \end_layout
10693
10694 \begin_layout Conclusion*
10695 Sometimes used at the end of a long train of argument.
10696 \end_layout
10697
10698 \begin_layout Fact
10699 Used in a way similar to Proposition, though perhaps lower on the scale.
10700 \end_layout
10701
10702 \begin_layout Standard
10703 In addition, the AMS classes automatically provide the AMS \SpecialChar LaTeX
10704  and AMS fonts
10705  packages.
10706  They need to be available on your system in order to use these environments.
10707 \end_layout
10708
10709 \begin_layout Section
10710 AGU journals (
10711 \family sans
10712 aguplus
10713 \family default
10714 )
10715 \end_layout
10716
10717 \begin_layout Standard
10718 by 
10719 \shape smallcaps
10720 Martin Vermeer
10721 \end_layout
10722
10723 \begin_layout Subsection
10724 Description
10725 \end_layout
10726
10727 \begin_layout Standard
10728 These are the layout files for some of the journals of the American Geophysical
10729  Society.
10730  It is assumed that you have both the AGU's own class files and AGUplus
10731  installed (everything to be found at
10732 \begin_inset Flex URL
10733 status collapsed
10734
10735 \begin_layout Plain Layout
10736
10737 http://publications.agu.org/files/2013/08/AGU-LaTeX.zip
10738 \end_layout
10739
10740 \end_inset
10741
10742 ).
10743 \end_layout
10744
10745 \begin_layout Subsection
10746 New styles
10747 \end_layout
10748
10749 \begin_layout Standard
10750 Redefined are 
10751 \family sans
10752 Paragraph
10753 \family default
10754
10755 \family sans
10756 Paragraph*
10757 \family default
10758 .
10759  They are still called this in the \SpecialChar LyX
10760  GUI, though their \SpecialChar LaTeX
10761  equivalents in the
10762  AGU classes are 
10763 \family sans
10764 Subsubsubsection
10765 \family default
10766  and 
10767 \family sans
10768 Subsubsubsection*
10769 \family default
10770 .
10771 \end_layout
10772
10773 \begin_layout Standard
10774 Newly defined styles are 
10775 \family sans
10776 Left_Header
10777 \family default
10778
10779 \family sans
10780 Right_Header
10781 \family default
10782
10783 \family sans
10784 Received
10785 \family default
10786
10787 \family sans
10788 Revised
10789 \family default
10790
10791 \family sans
10792 Accepted
10793 \family default
10794
10795 \family sans
10796 CCC
10797 \family default
10798
10799 \family sans
10800 PaperId
10801 \family default
10802
10803 \family sans
10804 AuthorAddr
10805 \family default
10806
10807 \family sans
10808 SlugComment
10809 \family default
10810 .
10811  These are mostly manuscript attributes and defined in the AGU class documentati
10812 on.
10813 \end_layout
10814
10815 \begin_layout Standard
10816 I suspect this is still badly incomplete.
10817 \end_layout
10818
10819 \begin_layout Subsection
10820 New floats
10821 \end_layout
10822
10823 \begin_layout Standard
10824
10825 \family sans
10826 Planotable
10827 \family default
10828  and 
10829 \family sans
10830 Plate
10831 \family default
10832 .
10833  We also have a new 
10834 \family sans
10835 Table_Caption
10836 \family default
10837 .
10838 \end_layout
10839
10840 \begin_layout Subsection
10841 Supported journals
10842 \end_layout
10843
10844 \begin_layout Itemize
10845
10846 \emph on
10847 Journal of Geophysical Research
10848 \emph default
10849
10850 \family typewriter
10851 jgrga.layout
10852 \family default
10853  — Martin Vermeer
10854 \end_layout
10855
10856 \begin_layout Standard
10857 Add your own, it isn't so hard! Look at the 
10858 \family typewriter
10859 jgrga.layout
10860 \family default
10861  example and 
10862 \family typewriter
10863 aguplus.inc
10864 \family default
10865 .
10866 \end_layout
10867
10868 \begin_layout Subsection
10869 Bugs and things to remember
10870 \end_layout
10871
10872 \begin_layout Standard
10873 In order to use the new layouts, you must remember to do the following for
10874  a new document:
10875 \end_layout
10876
10877 \begin_layout Enumerate
10878
10879 \emph on
10880 Turn off babel
10881 \emph default
10882 .
10883  This can be done in the 
10884 \family sans
10885 Layout\SpecialChar menuseparator
10886 Document
10887 \family default
10888  or 
10889 \family sans
10890 Document\SpecialChar menuseparator
10891 Settings
10892 \family default
10893  menu item.
10894  (AGU articles are always in English, right? So 
10895 \emph on
10896 don't
10897 \emph default
10898  choose a language.)
10899 \end_layout
10900
10901 \begin_layout Enumerate
10902 Enter 
10903 \family typewriter
10904 jgrga
10905 \family default
10906  into the document's 
10907 \family sans
10908 Extra Options
10909 \family default
10910  field.
10911  (Yes, this is a bug.)
10912 \end_layout
10913
10914 \begin_layout Enumerate
10915 Make sure you use the 
10916 \family typewriter
10917 agu.bst
10918 \family default
10919  bibliography style, by entering 
10920 \family sans
10921 agu
10922 \family default
10923  into the second field of the Bib\SpecialChar TeX
10924  inset.
10925  None of the standard styles will do.
10926 \end_layout
10927
10928 \begin_layout Section
10929 Broadway
10930 \end_layout
10931
10932 \begin_layout Standard
10933 by 
10934 \shape smallcaps
10935 Garst Reese
10936 \end_layout
10937
10938 \begin_layout Subsection
10939 Introduction
10940 \end_layout
10941
10942 \begin_layout Standard
10943 Broadway is for writing plays.
10944  The format is more decorative than Hollywood, and much less standardized.
10945  This format should be suitable for workshops.
10946 \end_layout
10947
10948 \begin_layout Subsection
10949 Special problems
10950 \end_layout
10951
10952 \begin_layout Standard
10953 The same as in Hollywood.
10954 \end_layout
10955
10956 \begin_layout Subsection
10957 Special features
10958 \end_layout
10959
10960 \begin_layout Standard
10961 Insert the 
10962 \family sans
10963 Speaker
10964 \family default
10965  names as labels then cross-reference the label to insert the name.
10966  The cross-reference dialog will show the current cast of characters.
10967 \end_layout
10968
10969 \begin_layout Subsection
10970 Paper size and Margins
10971 \end_layout
10972
10973 \begin_layout Standard
10974 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
10975 \end_layout
10976
10977 \begin_layout Subsection
10978 Environments
10979 \end_layout
10980
10981 \begin_layout Standard
10982 The following environments are available.
10983  You can use broadway.bind to get the bind keys shown at the right.
10984 \end_layout
10985
10986 \begin_layout Itemize
10987
10988 \family sans
10989 Standard
10990 \begin_inset Newline newline
10991 \end_inset
10992
10993
10994 \family default
10995 You should not have to use this, but it is here for anything that does not
10996  fit otherwise.
10997 \end_layout
10998
10999 \begin_layout Itemize
11000
11001 \family sans
11002 Narrative
11003 \begin_inset space \hfill{}
11004 \end_inset
11005
11006 M-z n
11007 \begin_inset Newline newline
11008 \end_inset
11009
11010
11011 \family default
11012 Used to describe stage setting and the action.
11013  First use of speaker names in all CAPs.
11014 \end_layout
11015
11016 \begin_layout Itemize
11017
11018 \family sans
11019 ACT
11020 \begin_inset space \hfill{}
11021 \end_inset
11022
11023 M-z a
11024 \begin_inset Newline newline
11025 \end_inset
11026
11027
11028 \family default
11029 Automatically numbered.
11030  On screen it will be arabic, but will print as Roman.
11031 \end_layout
11032
11033 \begin_layout Itemize
11034
11035 \family sans
11036 ACT*
11037 \begin_inset space \hfill{}
11038 \end_inset
11039
11040 M-z S at
11041 \begin_inset Newline newline
11042 \end_inset
11043
11044
11045 \family default
11046 Subtitle for 
11047 \family sans
11048 ACT.
11049
11050 \family default
11051  It is just centered text.
11052 \end_layout
11053
11054 \begin_layout Itemize
11055
11056 \family sans
11057 SCENE
11058 \begin_inset space \hfill{}
11059 \end_inset
11060
11061 M-z S-S
11062 \begin_inset Newline newline
11063 \end_inset
11064
11065
11066 \family default
11067 Not automatically numbered.
11068  You supply the number.
11069  This is because I couldn't figure out how.
11070 \end_layout
11071
11072 \begin_layout Itemize
11073
11074 \family sans
11075 AT_RISE:
11076 \begin_inset space \hfill{}
11077 \end_inset
11078
11079 M-z S-R
11080 \begin_inset Newline newline
11081 \end_inset
11082
11083
11084 \family default
11085 A special case of Narrative to describe the setting and action as the curtain
11086  rises.
11087 \end_layout
11088
11089 \begin_layout Itemize
11090
11091 \family sans
11092 Speaker
11093 \begin_inset space \hfill{}
11094 \end_inset
11095
11096 M-z s
11097 \begin_inset Newline newline
11098 \end_inset
11099
11100
11101 \family default
11102 The speaker's (actor's) title, centered in all CAPS.
11103 \end_layout
11104
11105 \begin_layout Itemize
11106
11107 \family sans
11108 Parenthetical
11109 \begin_inset space \hfill{}
11110 \end_inset
11111
11112 M-z p
11113 \begin_inset Newline newline
11114 \end_inset
11115
11116
11117 \family default
11118 Instructions to the speaker.
11119  The parentheses are automatically inserted.
11120  The ( will appear on screen, but both will be in the printed play.
11121  This environment is only used within 
11122 \family sans
11123 Dialogue
11124 \family default
11125 .
11126 \end_layout
11127
11128 \begin_layout Itemize
11129
11130 \family sans
11131 Dialogue
11132 \begin_inset space \hfill{}
11133 \end_inset
11134
11135 M-z d
11136 \begin_inset Newline newline
11137 \end_inset
11138
11139
11140 \family default
11141 What the Speaker says.
11142 \end_layout
11143
11144 \begin_layout Itemize
11145
11146 \family sans
11147 CURTAIN
11148 \begin_inset space \hfill{}
11149 \end_inset
11150
11151 M-z S-C
11152 \begin_inset Newline newline
11153 \end_inset
11154
11155
11156 \family default
11157 The curtain comes down.
11158 \end_layout
11159
11160 \begin_layout Itemize
11161
11162 \family sans
11163 Title
11164 \begin_inset space \hfill{}
11165 \end_inset
11166
11167 M-z S-T
11168 \end_layout
11169
11170 \begin_layout Itemize
11171
11172 \family sans
11173 Author
11174 \begin_inset space \hfill{}
11175 \end_inset
11176
11177 M-z S-A
11178 \end_layout
11179
11180 \begin_layout Itemize
11181
11182 \family sans
11183 Right_Address
11184 \begin_inset space \hfill{}
11185 \end_inset
11186
11187 M-z r
11188 \end_layout
11189
11190 \begin_layout Standard
11191 Hello there.
11192 \end_layout
11193
11194 \begin_layout Section
11195 Dinbrief
11196 \end_layout
11197
11198 \begin_layout Standard
11199 The document class 
11200 \family sans
11201 dinbrief
11202 \family default
11203  can be used to type letters according to German conventions.
11204  A template file is included in 
11205 \family typewriter
11206 .../lyx/share/templates
11207 \family default
11208  for you to use as a starting point.
11209 \end_layout
11210
11211 \begin_layout Section
11212 EGS journals (
11213 \family sans
11214 egs
11215 \family default
11216 )
11217 \end_layout
11218
11219 \begin_layout Standard
11220 by 
11221 \shape smallcaps
11222 Martin Vermeer
11223 \end_layout
11224
11225 \begin_layout Subsection
11226 Description
11227 \end_layout
11228
11229 \begin_layout Standard
11230 This is the layout file for the European Geophysical Society journals.
11231  The needed 
11232 \family typewriter
11233 egs.cls
11234 \family default
11235  can be downloaded from the web site of the EGS under 
11236 \begin_inset Flex URL
11237 status collapsed
11238
11239 \begin_layout Plain Layout
11240
11241 www.copernicus.org
11242 \end_layout
11243
11244 \end_inset
11245
11246 .
11247 \end_layout
11248
11249 \begin_layout Subsection
11250 New styles
11251 \end_layout
11252
11253 \begin_layout Standard
11254
11255 \family sans
11256 Right_address, Latex_Title, Affil, Journal, msnumber, FirstAuthor, Received,
11257  Accepted
11258 \family default
11259
11260 \family sans
11261 Offsets
11262 \family default
11263 .
11264  The current layout file is unfortunately very unmodular and would benefit
11265  from using the various 
11266 \family typewriter
11267 std*.inc
11268 \family default
11269  file inclusions.
11270 \end_layout
11271
11272 \begin_layout Section
11273 Elsevier Journals
11274 \end_layout
11275
11276 \begin_layout Standard
11277 See the \SpecialChar LyX
11278  template file 
11279 \family typewriter
11280 elsarticle.lyx
11281 \family default
11282 .
11283  It contains all infos you need.
11284 \end_layout
11285
11286 \begin_layout Section
11287 Foils [aka 
11288 \family sans
11289 Foil\SpecialChar TeX
11290
11291 \family default
11292 ]
11293 \begin_inset CommandInset label
11294 LatexCommand label
11295 name "sec:foiltex"
11296
11297 \end_inset
11298
11299
11300 \end_layout
11301
11302 \begin_layout Standard
11303 by 
11304 \noun on
11305 Allan Rae
11306 \end_layout
11307
11308 \begin_layout Subsection
11309 Introduction
11310 \end_layout
11311
11312 \begin_layout Standard
11313 This section describes how to use \SpecialChar LyX
11314  to make slides for overhead projectors.
11315  There are two document classes that can do this: the default slides class
11316  and the 
11317 \family sans
11318 Foil\SpecialChar TeX
11319
11320 \family default
11321  slides class.
11322  This section documents the latter.
11323 \end_layout
11324
11325 \begin_layout Standard
11326 I'm going to say this again, nice and clear, so that there's no misunderstanding
11327 :
11328 \end_layout
11329
11330 \begin_layout Standard
11331 \begin_inset VSpace bigskip
11332 \end_inset
11333
11334
11335 \end_layout
11336
11337 \begin_layout Standard
11338 \align center
11339
11340 \size large
11341 This section documents the class 
11342 \begin_inset Quotes eld
11343 \end_inset
11344
11345
11346 \family sans
11347 FoilTeX
11348 \family default
11349
11350 \begin_inset Quotes erd
11351 \end_inset
11352
11353  
11354 \emph on
11355 only.
11356 \end_layout
11357
11358 \begin_layout Standard
11359 \begin_inset VSpace bigskip
11360 \end_inset
11361
11362
11363 \end_layout
11364
11365 \begin_layout Standard
11366 If you're looking for the documentation for 
11367 \begin_inset Quotes eld
11368 \end_inset
11369
11370
11371 \family sans
11372 slides (default)
11373 \family default
11374
11375 \begin_inset Quotes erd
11376 \end_inset
11377
11378 , check out section
11379 \begin_inset space ~
11380 \end_inset
11381
11382
11383 \begin_inset CommandInset ref
11384 LatexCommand ref
11385 reference "sec:slitex"
11386
11387 \end_inset
11388
11389 .
11390  If your machine doesn't have the 
11391 \family sans
11392 foils
11393 \family default
11394  class 
11395 \family sans
11396 FoilTeX
11397 \family default
11398  installed, you'll probably have to use the default 
11399 \family sans
11400 slides
11401 \family default
11402  class, which isn't quite as good as 
11403 \family sans
11404 foils.
11405 \end_layout
11406
11407 \begin_layout Standard
11408 The 
11409 \family sans
11410 foils
11411 \family default
11412  class is designed for use with version
11413 \begin_inset space ~
11414 \end_inset
11415
11416 2.1 of the 
11417 \family sans
11418 foils.cls
11419 \family default
11420  \SpecialChar LaTeX
11421  class file which is now an integral part of \SpecialChar LaTeX2e
11422 .
11423 \end_layout
11424
11425 \begin_layout Subsection
11426 Getting Started
11427 \end_layout
11428
11429 \begin_layout Standard
11430 Obviously, to use this document class, you need to select 
11431 \family sans
11432 FoilTeX
11433 \family default
11434  from the 
11435 \family sans
11436 Class
11437 \family default
11438  entry in the 
11439 \family sans
11440 Document
11441 \begin_inset space ~
11442 \end_inset
11443
11444 Layout
11445 \family default
11446  dialog.
11447  There are some settings in the 
11448 \family sans
11449 Document
11450 \begin_inset space ~
11451 \end_inset
11452
11453 Layout
11454 \family default
11455  dialog that you should know about that are specific to this class:
11456 \end_layout
11457
11458 \begin_layout Itemize
11459 Don't change the options 
11460 \family sans
11461 Sides
11462 \family default
11463  and 
11464 \family sans
11465 Columns
11466 \family default
11467  on the 
11468 \family sans
11469 Document
11470 \begin_inset space ~
11471 \end_inset
11472
11473 Layout
11474 \family default
11475  dialog.
11476  They're ignored by the 
11477 \family sans
11478 foils
11479 \family default
11480  class.
11481 \end_layout
11482
11483 \begin_layout Itemize
11484 The default font size is 20
11485 \begin_inset space \thinspace{}
11486 \end_inset
11487
11488 pt with the other options being 17
11489 \begin_inset space \thinspace{}
11490 \end_inset
11491
11492 pt, 25
11493 \begin_inset space \thinspace{}
11494 \end_inset
11495
11496 pt and 30
11497 \begin_inset space \thinspace{}
11498 \end_inset
11499
11500 pt.
11501 \end_layout
11502
11503 \begin_layout Itemize
11504 The default font is 
11505 \family sans
11506 sans
11507 \family default
11508  
11509 \family sans
11510 serif
11511 \family default
11512  but all math equations are still typeset in the usual roman font.
11513 \end_layout
11514
11515 \begin_layout Itemize
11516
11517 \family sans
11518 Foil\SpecialChar TeX
11519
11520 \family default
11521  supports A4 and Letter paper sizes as well as a special size for working
11522  with 35
11523 \begin_inset space \thinspace{}
11524 \end_inset
11525
11526 mm slides.
11527  It doesn't support A5, B5, legal or executive paper sizes.
11528 \end_layout
11529
11530 \begin_layout Itemize
11531 Don't bother changing the 
11532 \family sans
11533 Float Placement
11534 \family default
11535  settings because they are ignored anyway.
11536  All floats appear where they are defined in the text.
11537 \end_layout
11538
11539 \begin_layout Itemize
11540 The 
11541 \family sans
11542 Pagestyle
11543 \family default
11544  setting behaves a bit differently for this class.
11545  
11546 \family sans
11547 Foil\SpecialChar TeX
11548
11549 \family default
11550  provides extensive footer and header capabilities including a user-defined
11551  logo.
11552  See section
11553 \begin_inset space ~
11554 \end_inset
11555
11556
11557 \begin_inset CommandInset ref
11558 LatexCommand ref
11559 reference "sec:foilfoot"
11560
11561 \end_inset
11562
11563  for more details.
11564  The title page is treated differently to all other pages in the document
11565  and is 
11566 \emph on
11567 always
11568 \emph default
11569  unnumbered and 
11570 \emph on
11571 always
11572 \emph default
11573  has the logo centered at the bottom of the page (if one is defined).
11574  The possible page style choices and what they do are as follows:
11575 \end_layout
11576
11577 \begin_deeper
11578 \begin_layout Labeling
11579 \labelwidthstring MMMMMMM
11580
11581 \family sans
11582 \series bold
11583 empty
11584 \family default
11585 \series default
11586  The final output contains no page numbers, or other headers or footers
11587  (except footnotes of course).
11588  
11589 \end_layout
11590
11591 \begin_layout Labeling
11592 \labelwidthstring MMMMMMM
11593
11594 \family sans
11595 \series bold
11596 plain
11597 \family default
11598 \series default
11599  The final output contains page numbers centered at the bottom of the page.
11600  No other headings or footers (other than footnotes).
11601 \end_layout
11602
11603 \begin_layout Labeling
11604 \labelwidthstring MMMMMMM
11605
11606 \series bold
11607 foilheadings
11608 \series default
11609  Page numbers in lower right corner.
11610  Additional headers and footers are also shown.
11611  This is also the default.
11612 \end_layout
11613
11614 \begin_layout Labeling
11615 \labelwidthstring MMMMMMM
11616
11617 \series bold
11618 fancy
11619 \series default
11620  Gives you access to the 
11621 \family sans
11622 fancyheadings
11623 \family default
11624  package although its use with 
11625 \family sans
11626 Foil\SpecialChar TeX
11627
11628 \family default
11629  is discouraged by the writer of the 
11630 \family sans
11631 Foil\SpecialChar TeX
11632
11633 \family default
11634  package because of some potential page layout clashes.
11635 \end_layout
11636
11637 \end_deeper
11638 \begin_layout Subsubsection
11639 Extra Options
11640 \end_layout
11641
11642 \begin_layout Standard
11643 The following options may be used in the extra class options in the 
11644 \family sans
11645 Document\SpecialChar menuseparator
11646 Settings
11647 \family default
11648  dialog.
11649 \end_layout
11650
11651 \begin_layout Labeling
11652 \labelwidthstring MMMMMMx
11653
11654 \series bold
11655 35mmSlide
11656 \series default
11657  This sets up the page layout for 7.33
11658 \begin_inset space \thinspace{}
11659 \end_inset
11660
11661 in by 11
11662 \begin_inset space \thinspace{}
11663 \end_inset
11664
11665 in paper, which is about the same aspect ratio as a 35
11666 \begin_inset space \thinspace{}
11667 \end_inset
11668
11669 mm slide, making it a bit easier to work with this medium.
11670 \end_layout
11671
11672 \begin_layout Labeling
11673 \labelwidthstring MMMMMMx
11674
11675 \series bold
11676 headrule
11677 \series default
11678  Places a rule across the page below the header on every page except the
11679  title page.
11680 \end_layout
11681
11682 \begin_layout Labeling
11683 \labelwidthstring MMMMMMx
11684
11685 \series bold
11686 footrule
11687 \series default
11688  Places a rule across the page above the footer on every page except the
11689  title page.
11690 \end_layout
11691
11692 \begin_layout Labeling
11693 \labelwidthstring MMMMMMx
11694
11695 \series bold
11696 dvips
11697 \series default
11698  This is automatically set each time you create a new 
11699 \family sans
11700 foils
11701 \family default
11702  document.
11703  This option tells 
11704 \family sans
11705 Foil\SpecialChar TeX
11706
11707 \family default
11708  to use the dvips driver to rotate those pages that are set as landscape
11709  foils.
11710 \end_layout
11711
11712 \begin_layout Labeling
11713 \labelwidthstring MMMMMMx
11714
11715 \series bold
11716 landscape
11717 \series default
11718  Simply changes the page dimensions to those of a landscape page but doesn't
11719  do any rotation.
11720  Thus if you use this option you need to use an external program to rotate
11721  each page or feed your paper through your printer as landscape.
11722  Note that this option effectively reverses the roles of the 
11723 \family sans
11724 Foilhead
11725 \family default
11726  and 
11727 \family sans
11728 Rotatefoilhead
11729 \family default
11730  environments (don't worry these are described in the next section).
11731 \end_layout
11732
11733 \begin_layout Labeling
11734 \labelwidthstring MMMMMMx
11735
11736 \series bold
11737 leqno
11738 \series default
11739  Equation numbers on the left.
11740 \end_layout
11741
11742 \begin_layout Labeling
11743 \labelwidthstring MMMMMMx
11744
11745 \series bold
11746 fleqn
11747 \series default
11748  Flush-left equations.
11749 \end_layout
11750
11751 \begin_layout Subsection
11752 Supported Environments
11753 \end_layout
11754
11755 \begin_layout Standard
11756 Most of the environments commonly supported in other classes are also supported
11757  by the 
11758 \family sans
11759 foils
11760 \family default
11761  class.
11762  There are several additional environments provided by 
11763 \family sans
11764 Foil\SpecialChar TeX
11765
11766 \family default
11767  as well as a couple added by \SpecialChar LyX
11768 .
11769  The following environments are shared with other classes:
11770 \end_layout
11771
11772 \begin_layout Standard
11773 \begin_inset Flex Multiple Columns
11774 status open
11775
11776 \begin_layout Itemize
11777
11778 \family sans
11779 Standard
11780 \end_layout
11781
11782 \begin_layout Itemize
11783
11784 \family sans
11785 Itemize
11786 \end_layout
11787
11788 \begin_layout Itemize
11789
11790 \family sans
11791 Enumerate
11792 \end_layout
11793
11794 \begin_layout Itemize
11795
11796 \family sans
11797 Description
11798 \end_layout
11799
11800 \begin_layout Itemize
11801
11802 \family sans
11803 List
11804 \end_layout
11805
11806 \begin_layout Itemize
11807
11808 \family sans
11809 \SpecialChar LyX
11810 -Code
11811 \end_layout
11812
11813 \begin_layout Itemize
11814
11815 \family sans
11816 Verse
11817 \end_layout
11818
11819 \begin_layout Itemize
11820
11821 \family sans
11822 Quote
11823 \end_layout
11824
11825 \begin_layout Itemize
11826
11827 \family sans
11828 Quotation
11829 \end_layout
11830
11831 \begin_layout Itemize
11832
11833 \family sans
11834 Title
11835 \end_layout
11836
11837 \begin_layout Itemize
11838
11839 \family sans
11840 Author
11841 \end_layout
11842
11843 \begin_layout Itemize
11844
11845 \family sans
11846 Date
11847 \end_layout
11848
11849 \begin_layout Itemize
11850
11851 \family sans
11852 Abstract
11853 \end_layout
11854
11855 \begin_layout Itemize
11856
11857 \family sans
11858 Bibliography
11859 \end_layout
11860
11861 \begin_layout Itemize
11862
11863 \family sans
11864 Address
11865 \end_layout
11866
11867 \begin_layout Itemize
11868
11869 \family sans
11870 RightAddress
11871 \end_layout
11872
11873 \begin_layout Itemize
11874
11875 \family sans
11876 Caption
11877 \end_layout
11878
11879 \begin_layout Itemize
11880
11881 \family sans
11882 Comment
11883 \end_layout
11884
11885 \end_inset
11886
11887
11888 \end_layout
11889
11890 \begin_layout Standard
11891 That is, all the major environments apart from the sectioning environments.
11892  Since foils are essentially self-contained sections, with a title and body,
11893  
11894 \family sans
11895 Foil\SpecialChar TeX
11896
11897 \family default
11898  provides specific commands for starting new foils and these are:
11899 \end_layout
11900
11901 \begin_layout Itemize
11902
11903 \family sans
11904 Foilhead
11905 \end_layout
11906
11907 \begin_layout Itemize
11908
11909 \family sans
11910 Rotatefoilhead
11911 \end_layout
11912
11913 \begin_layout Standard
11914 \SpecialChar LyX
11915  also provides slightly modified versions of these two environments called:
11916 \end_layout
11917
11918 \begin_layout Itemize
11919
11920 \family sans
11921 ShortFoilhead
11922 \end_layout
11923
11924 \begin_layout Itemize
11925
11926 \family sans
11927 ShortRotatefoilhead
11928 \end_layout
11929
11930 \begin_layout Standard
11931 and the differences will be explained in the next section.
11932 \end_layout
11933
11934 \begin_layout Standard
11935 Since foils are often used in presenting ideas or new theorems and such
11936  
11937 \family sans
11938 Foil\SpecialChar TeX
11939
11940 \family default
11941  also provides a comprehensive box of goodies for presenting them:
11942 \end_layout
11943
11944 \begin_layout Standard
11945 \begin_inset Flex Multiple Columns
11946 status open
11947
11948 \begin_layout Itemize
11949
11950 \family sans
11951 Theorem
11952 \end_layout
11953
11954 \begin_layout Itemize
11955
11956 \family sans
11957 Lemma
11958 \end_layout
11959
11960 \begin_layout Itemize
11961
11962 \family sans
11963 Corollary
11964 \end_layout
11965
11966 \begin_layout Itemize
11967
11968 \family sans
11969 Proposition
11970 \end_layout
11971
11972 \begin_layout Itemize
11973
11974 \family sans
11975 Definition
11976 \end_layout
11977
11978 \begin_layout Itemize
11979
11980 \family sans
11981 Proof
11982 \end_layout
11983
11984 \begin_layout Itemize
11985
11986 \family sans
11987 Theorem*
11988 \end_layout
11989
11990 \begin_layout Itemize
11991
11992 \family sans
11993 Lemma*
11994 \end_layout
11995
11996 \begin_layout Itemize
11997
11998 \family sans
11999 Corollary*
12000 \end_layout
12001
12002 \begin_layout Itemize
12003
12004 \family sans
12005 Proposition*
12006 \end_layout
12007
12008 \begin_layout Itemize
12009
12010 \family sans
12011 Definition*
12012 \end_layout
12013
12014 \end_inset
12015
12016
12017 \end_layout
12018
12019 \begin_layout Standard
12020 The starred versions are unnumbered while the unstarred versions are numbered.
12021  There are also two list environments added by \SpecialChar LyX
12022  and these are:
12023 \end_layout
12024
12025 \begin_layout Itemize
12026
12027 \family sans
12028 TickList
12029 \end_layout
12030
12031 \begin_layout Itemize
12032
12033 \family sans
12034 CrossList
12035 \end_layout
12036
12037 \begin_layout Standard
12038
12039 \family sans
12040 Foil\SpecialChar TeX
12041
12042 \family default
12043  provides some powerful header and footer capabilities that are best set
12044  in the preamble although they may be set at any point in a document.
12045  If you want to change these settings in your document the best place to
12046  do so is at the very top of a foil, i.
12047 \begin_inset space \thinspace{}
12048 \end_inset
12049
12050 e.
12051 \emph on
12052
12053 \begin_inset space \space{}
12054 \end_inset
12055
12056
12057 \emph default
12058 straight after the foilhead.
12059 \end_layout
12060
12061 \begin_layout Standard
12062 For this purpose, the following command styles are provided [
12063 \shape smallcaps
12064 Martin Vermeer
12065 \shape default
12066 ]:
12067 \end_layout
12068
12069 \begin_layout Standard
12070 \begin_inset Flex Multiple Columns
12071 status open
12072
12073 \begin_layout Itemize
12074
12075 \family sans
12076 My
12077 \begin_inset space ~
12078 \end_inset
12079
12080 Logo
12081 \end_layout
12082
12083 \begin_layout Itemize
12084
12085 \family sans
12086 Restriction
12087 \end_layout
12088
12089 \begin_layout Itemize
12090
12091 \family sans
12092 Right
12093 \begin_inset space ~
12094 \end_inset
12095
12096 Footer
12097 \end_layout
12098
12099 \begin_layout Itemize
12100
12101 \family sans
12102 Right
12103 \begin_inset space ~
12104 \end_inset
12105
12106 Header
12107 \end_layout
12108
12109 \begin_layout Itemize
12110
12111 \family sans
12112 Left
12113 \begin_inset space ~
12114 \end_inset
12115
12116 Header
12117 \end_layout
12118
12119 \begin_deeper
12120 \begin_layout Plain Layout
12121 \begin_inset space ~
12122 \end_inset
12123
12124
12125 \end_layout
12126
12127 \end_deeper
12128 \end_inset
12129
12130
12131 \end_layout
12132
12133 \begin_layout Standard
12134 There are also a few commands provided by 
12135 \family sans
12136 Foil\SpecialChar TeX
12137
12138 \family default
12139  that aren't directly supported by \SpecialChar LyX
12140  but I'll tell you what they do and how
12141  to use them in section
12142 \begin_inset space ~
12143 \end_inset
12144
12145
12146 \begin_inset CommandInset ref
12147 LatexCommand ref
12148 reference "sec:unsuppfoils"
12149
12150 \end_inset
12151
12152 .
12153 \end_layout
12154
12155 \begin_layout Subsection
12156 Building a Set of Foils
12157 \end_layout
12158
12159 \begin_layout Standard
12160 This section will give a simple introduction to using the different environments
12161  to build a set of foils.
12162  If you want to see an example set of foils, take a look at the 
12163 \family typewriter
12164 Foils.lyx
12165 \family default
12166  file you find in \SpecialChar LyX
12167 's 
12168 \family typewriter
12169 examples
12170 \family default
12171  folder.
12172 \end_layout
12173
12174 \begin_layout Subsubsection
12175 Give It a Title Page
12176 \end_layout
12177
12178 \begin_layout Standard
12179 Unlike other classes that provide 
12180 \family sans
12181 Title
12182 \family default
12183
12184 \family sans
12185 Author
12186 \family default
12187
12188 \family sans
12189 Date
12190 \family default
12191  and 
12192 \family sans
12193 Abstract
12194 \family default
12195  environments, 
12196 \family sans
12197 foils
12198 \family default
12199  creates the title on a page of its own.
12200  If you leave out the 
12201 \family sans
12202 Date
12203 \family default
12204  environment \SpecialChar LaTeX
12205  will substitute the current date (every time you regenerate
12206  the output).
12207 \end_layout
12208
12209 \begin_layout Subsubsection
12210 Start a New Foil
12211 \end_layout
12212
12213 \begin_layout Standard
12214 As I mentioned earlier, there are four ways of starting a new foil.
12215  For portrait foils you should use 
12216 \family sans
12217 Foilhead
12218 \family default
12219  or 
12220 \family sans
12221 ShortFoilhead.
12222
12223 \family default
12224  The difference between these two environments is the amount of space between
12225  the title of the foil (the foilhead) and the body of the foil.
12226 \end_layout
12227
12228 \begin_layout Standard
12229 Landscape foils are generated using the 
12230 \family sans
12231 Rotatefoilhead
12232 \family default
12233  and 
12234 \family sans
12235 ShortRotatefoilhead
12236 \family default
12237  environments.
12238  Again the only difference is the spacing between foilhead and body.
12239  Both of the short versions have 0.5
12240 \begin_inset space ~
12241 \end_inset
12242
12243 inches less separation between the foilhead and the body.
12244  
12245 \end_layout
12246
12247 \begin_layout Standard
12248 One problem with the support for landscape foils is the requirement that
12249  you have to use the 
12250 \family typewriter
12251 dvips
12252 \family default
12253  driver to generate the PostScript output otherwise the foils won't be rotated.
12254  It is possible to get landscape foils even if you haven't got the 
12255 \family typewriter
12256 dvips
12257 \family default
12258  driver provided you can feed your foils sideways through your printer ;-)
12259 \end_layout
12260
12261 \begin_layout Subsubsection
12262 Theorems, Lemmas, Proofs and more
12263 \end_layout
12264
12265 \begin_layout Standard
12266 Due to a small bug in \SpecialChar LyX
12267  you can't have two of the same type of these environments
12268  directly following each other.
12269  They must be separated by something.
12270  If you try, you will just be extending the previous environment as if you
12271  had merged the two environments together.
12272  So, how do you get around this problem? The simplest option is to insert
12273  some text between the two environments or add a 
12274 \family sans
12275 \SpecialChar LaTeX
12276
12277 \family default
12278  environment between the two with just a 
12279 \begin_inset Quotes eld
12280 \end_inset
12281
12282
12283 \family typewriter
12284 %
12285 \family default
12286
12287 \begin_inset Quotes erd
12288 \end_inset
12289
12290  in it.
12291  This will force \SpecialChar LyX
12292  to produce two separate environments and hence the correct
12293  \SpecialChar LaTeX
12294  output.
12295  An example is provided in the example file included with the \SpecialChar LyX
12296  distribution.
12297  Remember, this problem only occurs if you are trying to place two of the
12298  same type of theorem-like environments one directly after the other.
12299 \end_layout
12300
12301 \begin_layout Subsubsection
12302 Lists
12303 \end_layout
12304
12305 \begin_layout Standard
12306 You get all the commonly supported list styles found in other classes as
12307  well as two new ones.
12308  I'll only describe the new ones here.
12309  If you want to find out more about the other list environments check out
12310  the 
12311 \emph on
12312 User's Guide.
12313
12314 \emph default
12315  If you intend to use itemized lists you might also want to read about the
12316  
12317 \family sans
12318 Itemize
12319 \begin_inset space ~
12320 \end_inset
12321
12322 Bullet
12323 \begin_inset space ~
12324 \end_inset
12325
12326 Selection
12327 \family default
12328  dialog described above in section
12329 \begin_inset space ~
12330 \end_inset
12331
12332
12333 \begin_inset CommandInset ref
12334 LatexCommand ref
12335 reference "sec:bullet"
12336
12337 \end_inset
12338
12339 .
12340 \end_layout
12341
12342 \begin_layout Standard
12343 The two new list styles, 
12344 \family sans
12345 TickList
12346 \family default
12347  and 
12348 \family sans
12349 CrossList
12350 \family default
12351 , are designed to make it easier for you to create lists of do's and don'ts
12352  or right and wrong by providing dedicated environments that use a tick
12353  or a cross as the label of the list.
12354  These lists are in fact dedicated variants of the 
12355 \family sans
12356 Itemize
12357 \family default
12358  environment.
12359  They do however require that you have the 
12360 \family typewriter
12361 psnfss
12362 \family default
12363  packages installed.
12364 \end_layout
12365
12366 \begin_layout Subsubsection
12367 Figures and Tables
12368 \end_layout
12369
12370 \begin_layout Standard
12371
12372 \family sans
12373 Foil\SpecialChar TeX
12374
12375 \family default
12376  redefines the floating tables and figures so that they appear exactly where
12377  they are in the text rather than pushing them to the top of the page or
12378  to some user specified location.
12379  In fact if you change the float placement settings they are simply ignored.
12380 \end_layout
12381
12382 \begin_layout Subsubsection
12383 Page Headers and Footers
12384 \begin_inset CommandInset label
12385 LatexCommand label
12386 name "sec:foilfoot"
12387
12388 \end_inset
12389
12390
12391 \end_layout
12392
12393 \begin_layout Standard
12394
12395 \family sans
12396 My
12397 \begin_inset space ~
12398 \end_inset
12399
12400 Logo
12401 \family default
12402  and 
12403 \family sans
12404 Restriction
12405 \family default
12406  are two commands used to control the left-footer text string.
12407  The first is meant to allow you to include a graphic logo on your foils
12408  and defaults to 
12409 \begin_inset Quotes eld
12410 \end_inset
12411
12412 -Typeset by 
12413 \family sans
12414 Foil\SpecialChar TeX
12415
12416 \family default
12417 -
12418 \begin_inset Quotes erd
12419 \end_inset
12420
12421 .
12422  While the second is meant to provide a classification for the audience,
12423  
12424 \emph on
12425 e.
12426 \begin_inset space \thinspace{}
12427 \end_inset
12428
12429 g.
12430 \emph default
12431
12432 \begin_inset space \space{}
12433 \end_inset
12434
12435 Confidential.
12436  It is empty by default.
12437 \end_layout
12438
12439 \begin_layout Standard
12440 The remaining page corners can be filled by 
12441 \family sans
12442 Right
12443 \begin_inset space ~
12444 \end_inset
12445
12446 Footer
12447 \family default
12448  (which defaults to page numbers), 
12449 \family sans
12450 Right
12451 \begin_inset space ~
12452 \end_inset
12453
12454 Header
12455 \family default
12456  (top right) and 
12457 \family sans
12458 Left
12459 \begin_inset space ~
12460 \end_inset
12461
12462 Header
12463 \family default
12464  (top left).
12465 \end_layout
12466
12467 \begin_layout Subsection
12468 Unsupported 
12469 \family sans
12470 Foil\SpecialChar TeX
12471
12472 \family default
12473  Goodies
12474 \begin_inset CommandInset label
12475 LatexCommand label
12476 name "sec:unsuppfoils"
12477
12478 \end_inset
12479
12480
12481 \end_layout
12482
12483 \begin_layout Standard
12484 All the commands mentioned below need to be set in a 
12485 \family sans
12486 \SpecialChar LaTeX
12487
12488 \family default
12489  environment or as 
12490 \family sans
12491 \SpecialChar TeX
12492
12493 \family default
12494  within another environment.
12495 \end_layout
12496
12497 \begin_layout Subsubsection
12498 Lengths
12499 \end_layout
12500
12501 \begin_layout Standard
12502 All lengths are adjusted using the 
12503 \family typewriter
12504
12505 \backslash
12506 setlength{
12507 \family default
12508 \emph on
12509 lengthname
12510 \family typewriter
12511 \emph default
12512 }{
12513 \family default
12514 \emph on
12515 newlength
12516 \family typewriter
12517 \emph default
12518 }
12519 \family default
12520  command.
12521  Where 
12522 \emph on
12523 lengthname
12524 \emph default
12525  should be replaced by the name given to the length you want to change and
12526  
12527 \emph on
12528 newlength
12529 \emph default
12530  is the length value.
12531  All lengths should be specified in units of length such as inches (
12532 \family typewriter
12533 in
12534 \family default
12535 ), millimeters (
12536 \family typewriter
12537 mm
12538 \family default
12539 ) or points (
12540 \family typewriter
12541 pt
12542 \family default
12543 ) or relative to some document or font-based length such as 
12544 \family typewriter
12545
12546 \backslash
12547 textwidth
12548 \family default
12549 .
12550  
12551 \end_layout
12552
12553 \begin_layout Standard
12554 It's possible to change the spacing between a foilhead and the body of the
12555  foil by adjusting the length specified by 
12556 \family typewriter
12557
12558 \backslash
12559 foilheadskip
12560 \family default
12561 .
12562  For example, to make 
12563 \emph on
12564 all
12565 \emph default
12566  foilheads 0.5
12567 \begin_inset space \space{}
12568 \end_inset
12569
12570 in closer to their bodies put the following in the preamble: 
12571 \family typewriter
12572
12573 \backslash
12574 setlength{
12575 \backslash
12576 foilheadskip}{-0.5in}
12577 \end_layout
12578
12579 \begin_layout Standard
12580 The spacings around floats can be adjusted by setting these lengths:
12581 \end_layout
12582
12583 \begin_layout Labeling
12584 \labelwidthstring MMMMMMMMMMM
12585
12586 \family typewriter
12587
12588 \backslash
12589 abovefloatskip
12590 \family default
12591  Separation between the text and the top of the float
12592 \end_layout
12593
12594 \begin_layout Labeling
12595 \labelwidthstring MMMMMMMMMMM
12596
12597 \family typewriter
12598
12599 \backslash
12600 abovecaptionskip
12601 \family default
12602  Separation between the float and the caption
12603 \end_layout
12604
12605 \begin_layout Labeling
12606 \labelwidthstring MMMMMMMMMMM
12607
12608 \family typewriter
12609
12610 \backslash
12611 belowcaptionskip
12612 \family default
12613  Separation between the caption and the following text
12614 \end_layout
12615
12616 \begin_layout Labeling
12617 \labelwidthstring MMMMMMMMMMM
12618
12619 \family typewriter
12620
12621 \backslash
12622 captionwidth
12623 \family default
12624  You can make the captions narrower than the surrounding text by adjusting
12625  this length.
12626  Best done relative to 
12627 \family typewriter
12628
12629 \backslash
12630 textwidth
12631 \family default
12632 .
12633 \end_layout
12634
12635 \begin_layout Standard
12636 There are also several title page related lengths that you may find useful
12637  if you have a long title or several authors:
12638 \end_layout
12639
12640 \begin_layout Labeling
12641 \labelwidthstring MMMMMMMMMMM
12642
12643 \family typewriter
12644
12645 \backslash
12646 abovetitleskip
12647 \family default
12648  Separation from headers to 
12649 \family sans
12650 Title
12651 \end_layout
12652
12653 \begin_layout Labeling
12654 \labelwidthstring MMMMMMMMMMM
12655
12656 \family typewriter
12657
12658 \backslash
12659 titleauthorskip
12660 \family default
12661  between 
12662 \family sans
12663 Title
12664 \family default
12665  and 
12666 \family sans
12667 Author
12668 \family default
12669  environments
12670 \end_layout
12671
12672 \begin_layout Labeling
12673 \labelwidthstring MMMMMMMMMMM
12674
12675 \family typewriter
12676
12677 \backslash
12678 authorauthorskip
12679 \family default
12680  between multiple 
12681 \family sans
12682 Author
12683 \family default
12684  lines
12685 \end_layout
12686
12687 \begin_layout Labeling
12688 \labelwidthstring MMMMMMMMMMM
12689
12690 \family typewriter
12691
12692 \backslash
12693 authordateskip
12694 \family default
12695  between the 
12696 \family sans
12697 Author
12698 \family default
12699  and the 
12700 \family sans
12701 Date
12702 \end_layout
12703
12704 \begin_layout Labeling
12705 \labelwidthstring MMMMMMMMMMM
12706
12707 \family typewriter
12708
12709 \backslash
12710 dateabstractskip
12711 \family default
12712  between the 
12713 \family sans
12714 Date
12715 \family default
12716  and the 
12717 \family sans
12718 Abstract
12719 \end_layout
12720
12721 \begin_layout Standard
12722 The last length related command affects all the list environments.
12723  If you place 
12724 \family typewriter
12725
12726 \backslash
12727 zerolistvertdimens
12728 \family default
12729  
12730 \emph on
12731 inside
12732 \emph default
12733  a list environment then all the vertical spacing between the list items
12734  is removed.
12735  Note that this is a command not a length so it doesn't require 
12736 \family typewriter
12737
12738 \backslash
12739 setlength
12740 \family default
12741  like the stuff mentioned above.
12742 \end_layout
12743
12744 \begin_layout Subsubsection
12745 Headers and Footers
12746 \end_layout
12747
12748 \begin_layout Standard
12749 The 
12750 \family typewriter
12751
12752 \backslash
12753 LogoOn
12754 \family default
12755  and 
12756 \family typewriter
12757
12758 \backslash
12759 LogoOff
12760 \family default
12761  commands control whether the logo in the 
12762 \family sans
12763 MyLogo
12764 \family default
12765  definition appear on a given page.
12766  If you put 
12767 \family typewriter
12768
12769 \backslash
12770 LogoOff
12771 \family default
12772  in the preamble then none of the foils will have the logo on them.
12773  If you don't want the logo on a particular page place the 
12774 \family typewriter
12775
12776 \backslash
12777 LogoOff
12778 \family default
12779  directly after the foilhead of that page and the 
12780 \family typewriter
12781
12782 \backslash
12783 LogoOn
12784 \family default
12785  directly after the next foilhead.
12786 \end_layout
12787
12788 \begin_layout Standard
12789 If you decide to use the 
12790 \family sans
12791 fancy
12792 \family default
12793  page style setting in the 
12794 \family sans
12795 Document
12796 \begin_inset space ~
12797 \end_inset
12798
12799 Layout
12800 \family default
12801  dialog you should probably add 
12802 \family typewriter
12803
12804 \backslash
12805 let
12806 \backslash
12807 headwidth
12808 \backslash
12809 textwidth
12810 \family default
12811  to your preamble so headers and footers on landscape pages are correctly
12812  placed when rotated.
12813  This is due to some clashes between the page layouts provided by the 
12814 \family sans
12815 fancyheadings
12816 \family default
12817  package and the 
12818 \family sans
12819 foils
12820 \family default
12821  class.
12822 \end_layout
12823
12824 \begin_layout Section
12825 Hollywood (Hollywood spec scripts)
12826 \end_layout
12827
12828 \begin_layout Standard
12829 by 
12830 \shape smallcaps
12831 Garst Reese
12832 \end_layout
12833
12834 \begin_layout Subsection
12835 Introduction
12836 \end_layout
12837
12838 \begin_layout Standard
12839 Getting the format of a Hollywood script right is a 
12840 \begin_inset Quotes eld
12841 \end_inset
12842
12843 rite of passage.
12844 \begin_inset Quotes erd
12845 \end_inset
12846
12847  It is designed to make the readers focus on content and to be easy and
12848  familiar for the actors to read.
12849  Each page of a script should be one minute of film.
12850  Nothing goes in a script that you cannot see or hear on screen.
12851  The courier 12 pt font should be used throughout.
12852  No italics.
12853 \end_layout
12854
12855 \begin_layout Subsection
12856 Special problems
12857 \end_layout
12858
12859 \begin_layout Standard
12860 Speakers' lines should NEVER break in mid-sentence.
12861  If a speaker's lines continue over a page break, repeat the 
12862 \family sans
12863 Speaker
12864 \family default
12865  title followed by (Cont'd).
12866 \end_layout
12867
12868 \begin_layout Subsection
12869 Special features
12870 \end_layout
12871
12872 \begin_layout Standard
12873 Insert the 
12874 \family sans
12875 Speaker
12876 \family default
12877  names as labels then cross-reference the label to insert the name.
12878  The cross-reference dialog will show the current cast of characters.
12879  You can use this to insert the speaker name in narratives also.
12880 \end_layout
12881
12882 \begin_layout Subsection
12883 Paper size and Margins
12884 \end_layout
12885
12886 \begin_layout Standard
12887 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
12888 \end_layout
12889
12890 \begin_layout Subsection
12891 Environments
12892 \end_layout
12893
12894 \begin_layout Standard
12895 The following environments are available.
12896  You can use hollywood.bind to get the bind keys shown at the right.
12897 \end_layout
12898
12899 \begin_layout Itemize
12900
12901 \family sans
12902 Standard
12903 \begin_inset Newline newline
12904 \end_inset
12905
12906
12907 \family default
12908 Used where nothing else works.
12909  Try to avoid it.
12910 \end_layout
12911
12912 \begin_layout Itemize
12913
12914 \family sans
12915 FADE_IN
12916 \family default
12917 :
12918 \begin_inset space \hfill{}
12919 \end_inset
12920
12921
12922 \family sans
12923 M-z S-I
12924 \family default
12925
12926 \begin_inset Newline newline
12927 \end_inset
12928
12929 Usually followed by something like 
12930 \begin_inset Quotes eld
12931 \end_inset
12932
12933 on Sally waking up.
12934 \begin_inset Quotes erd
12935 \end_inset
12936
12937
12938 \end_layout
12939
12940 \begin_layout Itemize
12941
12942 \family sans
12943 INT:
12944 \begin_inset space \hfill{}
12945 \end_inset
12946
12947 M-z i
12948 \begin_inset Newline newline
12949 \end_inset
12950
12951
12952 \family default
12953 Introduces a new INTERIOR camera set-up.
12954  Always followed by DAY or NIGHT, or something similar to define the lighting
12955  required.
12956  Everthing on this line in CAPS.
12957 \end_layout
12958
12959 \begin_layout Itemize
12960
12961 \family sans
12962 EXT:
12963 \begin_inset space \hfill{}
12964 \end_inset
12965
12966 M-z e
12967 \begin_inset Newline newline
12968 \end_inset
12969
12970
12971 \family default
12972 Introduces a new EXTERIOR camera set-up.
12973  Everthing on this line in CAPS.
12974 \end_layout
12975
12976 \begin_layout Itemize
12977
12978 \family sans
12979 Speaker
12980 \begin_inset space \hfill{}
12981 \end_inset
12982
12983 M-z s
12984 \begin_inset Newline newline
12985 \end_inset
12986
12987
12988 \family default
12989 The character speaking.
12990 \end_layout
12991
12992 \begin_layout Itemize
12993
12994 \family sans
12995 Parenthetical
12996 \begin_inset space \hfill{}
12997 \end_inset
12998
12999 M-z p
13000 \begin_inset Newline newline
13001 \end_inset
13002
13003
13004 \family default
13005 Instructions to the speaker.
13006  The () are automatically inserted, but only the ( will show in \SpecialChar LyX
13007 .
13008  Both will be printed.
13009 \end_layout
13010
13011 \begin_layout Itemize
13012
13013 \family sans
13014 Dialogue
13015 \begin_inset space \hfill{}
13016 \end_inset
13017
13018 M-z d
13019 \begin_inset Newline newline
13020 \end_inset
13021
13022
13023 \family default
13024 What the 
13025 \family sans
13026 Speaker
13027 \family default
13028  says.
13029 \end_layout
13030
13031 \begin_layout Itemize
13032
13033 \family sans
13034 Transition
13035 \begin_inset space \hfill{}
13036 \end_inset
13037
13038 M-z t
13039 \begin_inset Newline newline
13040 \end_inset
13041
13042
13043 \family default
13044 Camera movement instruction.
13045  e.
13046 \begin_inset space \thinspace{}
13047 \end_inset
13048
13049 g.
13050 \begin_inset space \space{}
13051 \end_inset
13052
13053 CUT TO:
13054 \end_layout
13055
13056 \begin_layout Itemize
13057
13058 \family sans
13059 FADE OUT:
13060 \begin_inset space \hfill{}
13061 \end_inset
13062
13063 M-z S-I
13064 \end_layout
13065
13066 \begin_layout Itemize
13067
13068 \family sans
13069 Author
13070 \begin_inset space \hfill{}
13071 \end_inset
13072
13073 M-z S-A
13074 \end_layout
13075
13076 \begin_layout Itemize
13077
13078 \family sans
13079 Title
13080 \begin_inset space \hfill{}
13081 \end_inset
13082
13083 M-z S-T
13084 \end_layout
13085
13086 \begin_layout Itemize
13087
13088 \family sans
13089 Right_Address
13090 \begin_inset space \hfill{}
13091 \end_inset
13092
13093 M-z r
13094 \end_layout
13095
13096 \begin_layout Subsection
13097 Script jargon
13098 \end_layout
13099
13100 \begin_layout Itemize
13101 (O.S) — off screen
13102 \end_layout
13103
13104 \begin_layout Itemize
13105 (V.0) — voice over
13106 \end_layout
13107
13108 \begin_layout Itemize
13109 b.
13110 \begin_inset space \thinspace{}
13111 \end_inset
13112
13113 g.
13114  — background
13115 \end_layout
13116
13117 \begin_layout Itemize
13118 C.U.
13119  — close-up
13120 \end_layout
13121
13122 \begin_layout Itemize
13123 PAN — camera movement
13124 \end_layout
13125
13126 \begin_layout Itemize
13127 INSERT — cut to close-up of
13128 \end_layout
13129
13130 \begin_layout Section
13131 ijmpc and ijmpd
13132 \end_layout
13133
13134 \begin_layout Standard
13135 by 
13136 \noun on
13137 Panayotis Papasotiriou
13138 \end_layout
13139
13140 \begin_layout Subsection
13141 Overview
13142 \end_layout
13143
13144 \begin_layout Standard
13145 The ijmpc package is a set of macros that facilitates electronic manuscript
13146  submission to the 
13147 \emph on
13148 International Journal of Modern Physics C
13149 \emph default
13150 .
13151  Similarly, the ijmpd package is for creating manuscripts to be submitted
13152  to the 
13153 \emph on
13154 International Journal of Modern Physics D
13155 \emph default
13156 .
13157  Both journals are published by World Scientific.
13158  The corresponding document classes are named 
13159 \family typewriter
13160 ws-ijmpc.cls
13161 \family default
13162  and 
13163 \family typewriter
13164 ws-ijmpd.cls
13165 \family default
13166 , respectively.
13167  These files, together with instructions for the authors, can be downloaded
13168  from the sites 
13169 \begin_inset Flex URL
13170 status collapsed
13171
13172 \begin_layout Plain Layout
13173
13174 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
13175 \end_layout
13176
13177 \end_inset
13178
13179  and 
13180 \begin_inset Flex URL
13181 status collapsed
13182
13183 \begin_layout Plain Layout
13184
13185 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
13186 \end_layout
13187
13188 \end_inset
13189
13190 .
13191  Both packages are modified versions of the standard 
13192 \begin_inset Quotes eld
13193 \end_inset
13194
13195 article
13196 \begin_inset Quotes erd
13197 \end_inset
13198
13199  package, and they are almost (but not exactly) identical.
13200  Most of their features are supported by \SpecialChar LyX
13201 .
13202  I have used \SpecialChar LyX
13203  successfully to write articles submitted to both journals
13204  without any problem.
13205 \end_layout
13206
13207 \begin_layout Subsection
13208 Writing a paper
13209 \end_layout
13210
13211 \begin_layout Standard
13212 As usual, the easiest way to write a paper is to start with a template.
13213  Click on 
13214 \family sans
13215 File\SpecialChar menuseparator
13216 New from
13217 \family default
13218  
13219 \family sans
13220 Template
13221 \family default
13222 , then choose the 
13223 \family typewriter
13224 ijmpc.lyx
13225 \family default
13226  or 
13227 \family typewriter
13228 ijmpd.lyx
13229 \family default
13230  template.
13231  This will give an (almost) empty document that includes the most common
13232  fields found in a manuscript.
13233  Simply overwrite the existing text (including the brackets, 
13234 \family typewriter
13235 <>
13236 \family default
13237 ) with your text.
13238  You should keep in mind the following remarks.
13239 \end_layout
13240
13241 \begin_layout Enumerate
13242 \SpecialChar LyX
13243  won't let you change the font size and the page style of the document,
13244  because such modifications are not allowed by both packages.
13245 \end_layout
13246
13247 \begin_layout Enumerate
13248 The language of the document should not be changed.
13249  Before previewing your paper, be sure that the babel package is not used.
13250  To do this, click on 
13251 \family sans
13252 Tools\SpecialChar menuseparator
13253 Preferences
13254 \family default
13255 , select the 
13256 \family sans
13257 Lang Opts
13258 \family default
13259  tab, deselect the 
13260 \family sans
13261 Use babel
13262 \family default
13263  checkbox in the language settings, and click on 
13264 \family sans
13265 Apply
13266 \family default
13267  (or 
13268 \family sans
13269 Save
13270 \family default
13271 , if you wish to make this change permanent).
13272 \end_layout
13273
13274 \begin_layout Enumerate
13275 The 
13276 \begin_inset Quotes eld
13277 \end_inset
13278
13279 Keywords
13280 \begin_inset Quotes erd
13281 \end_inset
13282
13283  style must be used to define keywords.
13284 \end_layout
13285
13286 \begin_layout Enumerate
13287 The ijmpc package provides a style named 
13288 \begin_inset Quotes eld
13289 \end_inset
13290
13291 Classification Codes
13292 \begin_inset Quotes erd
13293 \end_inset
13294
13295 , which can be used to define classification codes, such as PACS numbers.
13296  Note that this facility is not supported by the ijmpd package.
13297 \end_layout
13298
13299 \begin_layout Enumerate
13300 Several new environments are available: 
13301 \begin_inset Quotes eld
13302 \end_inset
13303
13304 Definition
13305 \begin_inset Quotes erd
13306 \end_inset
13307
13308
13309 \begin_inset Quotes eld
13310 \end_inset
13311
13312 Step
13313 \begin_inset Quotes erd
13314 \end_inset
13315
13316
13317 \begin_inset Quotes eld
13318 \end_inset
13319
13320 Example
13321 \begin_inset Quotes erd
13322 \end_inset
13323
13324
13325 \begin_inset Quotes eld
13326 \end_inset
13327
13328 Remark
13329 \begin_inset Quotes erd
13330 \end_inset
13331
13332
13333 \begin_inset Quotes eld
13334 \end_inset
13335
13336 Notation
13337 \begin_inset Quotes erd
13338 \end_inset
13339
13340
13341 \begin_inset Quotes eld
13342 \end_inset
13343
13344 Theorem
13345 \begin_inset Quotes erd
13346 \end_inset
13347
13348
13349 \begin_inset Quotes eld
13350 \end_inset
13351
13352 Proof
13353 \begin_inset Quotes erd
13354 \end_inset
13355
13356
13357 \begin_inset Quotes eld
13358 \end_inset
13359
13360 Corollary
13361 \begin_inset Quotes erd
13362 \end_inset
13363
13364
13365 \begin_inset Quotes eld
13366 \end_inset
13367
13368 Lemma
13369 \begin_inset Quotes erd
13370 \end_inset
13371
13372
13373 \begin_inset Quotes eld
13374 \end_inset
13375
13376 Proposition
13377 \begin_inset Quotes erd
13378 \end_inset
13379
13380
13381 \begin_inset Quotes eld
13382 \end_inset
13383
13384 Prop
13385 \begin_inset Quotes erd
13386 \end_inset
13387
13388
13389 \begin_inset Quotes eld
13390 \end_inset
13391
13392 Question
13393 \begin_inset Quotes erd
13394 \end_inset
13395
13396
13397 \begin_inset Quotes eld
13398 \end_inset
13399
13400 Claim
13401 \begin_inset Quotes erd
13402 \end_inset
13403
13404 , and 
13405 \begin_inset Quotes eld
13406 \end_inset
13407
13408 Conjecture
13409 \begin_inset Quotes erd
13410 \end_inset
13411
13412 .
13413  Their use is more or less obvious.
13414  \SpecialChar LyX
13415  supports all these environments; it will use the proper label, text style,
13416  and numbering scheme for each of them.
13417 \end_layout
13418
13419 \begin_layout Enumerate
13420 Both packages use basic citations; the natbib package should not be used.
13421  In \SpecialChar LyX
13422 , citation references are shown as usual; in the output, citations are
13423  shown as superscripts.
13424  If you want to use a citation as normal text, you should use the 
13425 \family typewriter
13426 refcite
13427 \family default
13428  command, e.
13429 \begin_inset space \thinspace{}
13430 \end_inset
13431
13432 g.
13433 \begin_inset space \space{}
13434 \end_inset
13435
13436
13437 \begin_inset Quotes eld
13438 \end_inset
13439
13440 See Ref.
13441 \begin_inset space \space{}
13442 \end_inset
13443
13444
13445 \family typewriter
13446
13447 \backslash
13448 refcite{key}
13449 \family default
13450
13451 \begin_inset Quotes erd
13452 \end_inset
13453
13454 .
13455 \end_layout
13456
13457 \begin_layout Enumerate
13458 There is no 
13459 \begin_inset Quotes eld
13460 \end_inset
13461
13462 Acknowledgments
13463 \begin_inset Quotes erd
13464 \end_inset
13465
13466  section in both packages.
13467  To put acknowledgments, just use the 
13468 \begin_inset Quotes eld
13469 \end_inset
13470
13471 Section*
13472 \begin_inset Quotes erd
13473 \end_inset
13474
13475  environment.
13476 \end_layout
13477
13478 \begin_layout Enumerate
13479 Appendices may be added to the paper, 
13480 \emph on
13481 after
13482 \emph default
13483  the Acknowledgments and 
13484 \shape italic
13485 before
13486 \shape default
13487  the References.
13488  \SpecialChar LyX
13489  provides a special environment, called 
13490 \begin_inset Quotes eld
13491 \end_inset
13492
13493 Appendices Section
13494 \begin_inset Quotes erd
13495 \end_inset
13496
13497  which marks the beginning of the appendices.
13498  This environment should be left blank; it just sends a \SpecialChar LaTeX
13499  command, but nothing
13500  is really printed.
13501  In \SpecialChar LyX
13502 , the word 
13503 \begin_inset Quotes eld
13504 \end_inset
13505
13506 Appendix
13507 \begin_inset Quotes erd
13508 \end_inset
13509
13510  is printed with blue letters, as a signal that all sections after that
13511  point are appendices.
13512  To write an appendix, use the 
13513 \begin_inset Quotes eld
13514 \end_inset
13515
13516 Appendix
13517 \begin_inset Quotes erd
13518 \end_inset
13519
13520  environment.
13521  \SpecialChar LyX
13522  will number each appendix with capital letters, as required by both journals.
13523  Note that 
13524 \begin_inset Quotes eld
13525 \end_inset
13526
13527 Appendices Section
13528 \begin_inset Quotes erd
13529 \end_inset
13530
13531  
13532 \emph on
13533 must
13534 \emph default
13535  be present before the first appendix; if not, all appendices will be numbered
13536  as normal sections in the output.
13537 \end_layout
13538
13539 \begin_layout Enumerate
13540 The ijmpc and the ijmpd packages use the 
13541 \family typewriter
13542 tbl
13543 \family default
13544  command to implement table captions.
13545  As a result, a table created by \SpecialChar LyX
13546  is printed correctly, but its caption
13547  is ignored.
13548  However, you can use some \SpecialChar TeX
13549  code to overcome this problem, so that captions
13550  are printed as expected.
13551  To do so, create a float table as usual, remove the caption, and replace
13552  it with the \SpecialChar TeX
13553  code 
13554 \family typewriter
13555
13556 \backslash
13557 tbl{
13558 \emph on
13559 your table caption
13560 \emph default
13561 }{
13562 \family default
13563  (sic); you must also the \SpecialChar TeX
13564  code 
13565 \family typewriter
13566 }
13567 \family default
13568  immediately after the tabular material.
13569  Study the example table included in the template files to see how this
13570  trick is implemented.
13571  Alternatively, If you need table captions, you should implement the whole
13572  table float in a 
13573 \family typewriter
13574 .tex
13575 \family default
13576  file, then include this file to the \SpecialChar LyX
13577  document (
13578 \family sans
13579 Insert\SpecialChar menuseparator
13580 File\SpecialChar menuseparator
13581 Child
13582 \begin_inset space ~
13583 \end_inset
13584
13585 Document
13586 \family default
13587 ).
13588  Details on how to create a table float can be found in the files 
13589 \family typewriter
13590 ws-ijmpc.tex
13591 \family default
13592  and 
13593 \family typewriter
13594 ws-ijmpd.tex
13595 \family default
13596 , included in the corresponding packages.
13597 \end_layout
13598
13599 \begin_layout Subsection
13600 Preparing a paper for submission
13601 \end_layout
13602
13603 \begin_layout Standard
13604 Before you submit your paper you must export the \SpecialChar LyX
13605  document as a \SpecialChar LaTeX
13606  file (
13607 \family sans
13608 File\SpecialChar menuseparator
13609 Export\SpecialChar menuseparator
13610 \SpecialChar LaTeX
13611
13612 \family default
13613 )
13614 \begin_inset Foot
13615 status open
13616
13617 \begin_layout Plain Layout
13618 Actually you have the choice between \SpecialChar LaTeX
13619  (plain) and pdflatex.
13620  If you intend to use pdflatex to prepare the paper, you should use the
13621  pdflatex option so that included graphics are converted to PDF format,
13622  ready for use by pdflatex.
13623 \end_layout
13624
13625 \end_inset
13626
13627 , then make the following changes to the resulting 
13628 \family typewriter
13629 .tex
13630 \family default
13631  file.
13632 \end_layout
13633
13634 \begin_layout Enumerate
13635 Remove the comment lines before the 
13636 \family typewriter
13637
13638 \backslash
13639 documentclass
13640 \family default
13641  command.
13642 \end_layout
13643
13644 \begin_layout Enumerate
13645 Remove everything between (and including) the 
13646 \family typewriter
13647
13648 \backslash
13649 makeatletter
13650 \family default
13651  and 
13652 \family typewriter
13653
13654 \backslash
13655 makeatother
13656 \family default
13657  commands, except for any commands you specifically put into the \SpecialChar LaTeX
13658  preamble.
13659 \end_layout
13660
13661 \begin_layout Standard
13662 The modified 
13663 \family typewriter
13664 .tex
13665 \family default
13666  file should be saved and processed through \SpecialChar LaTeX
13667  as many times as necessary.
13668  You may also want to check the resulting 
13669 \family typewriter
13670 .dvi
13671 \family default
13672  document.
13673 \end_layout
13674
13675 \begin_layout Subsection
13676 Use of \SpecialChar TeX
13677  code
13678 \end_layout
13679
13680 \begin_layout Standard
13681 The use of \SpecialChar TeX
13682  code is reduced to two commands, which must be placed at the
13683  top of the document.
13684  If you started writing your paper by using the 
13685 \family typewriter
13686 ijmpc.lyx
13687 \family default
13688  or the 
13689 \family typewriter
13690 ijmpd.lyx
13691 \family default
13692  template, the \SpecialChar TeX
13693  code needed is already in its place; you usually don't need
13694  to delete it.
13695  You may only modify the first \SpecialChar TeX
13696  code to specify the information printed
13697  to the top of odd and even pages (authors' names and short paper's title,
13698  respectively).
13699  This \SpecialChar TeX
13700  code must have the form 
13701 \family typewriter
13702
13703 \backslash
13704 markboth{Authors' Names}{Short Paper's Title}
13705 \family default
13706 .
13707 \end_layout
13708
13709 \begin_layout Section
13710 iopart
13711 \end_layout
13712
13713 \begin_layout Standard
13714 by 
13715 \noun on
13716 Uwe Stöhr
13717 \end_layout
13718
13719 \begin_layout Subsection
13720 Overview
13721 \end_layout
13722
13723 \begin_layout Standard
13724 The iopart package provides a document class to create electronic manuscript
13725  submission to the journals published by the Institute of Physics.
13726  Instructions for the authors how to create a paper using the iopart class
13727  can be downloaded together with the iopart package from the site 
13728 \begin_inset Flex URL
13729 status collapsed
13730
13731 \begin_layout Plain Layout
13732
13733 ftp://ftp.iop.org/pub/journals/latex2e
13734 \end_layout
13735
13736 \end_inset
13737
13738 .
13739 \end_layout
13740
13741 \begin_layout Subsection
13742 Writing a paper
13743 \end_layout
13744
13745 \begin_layout Standard
13746 The easiest way to write a paper is to start with the file 
13747 \emph on
13748 IOP-article.lyx
13749 \emph default
13750  that is available in \SpecialChar LyX
13751 's examples files folder.
13752  Open this file, save it under a new name, and start writing.
13753  The example file explains how to use the special text environments.
13754  Here are the most important advices:
13755 \end_layout
13756
13757 \begin_layout Itemize
13758 To be able to compile your document to a PDF, PS, or DVI, ensure that the
13759  two options 
13760 \family sans
13761 Use AMS math package
13762 \family default
13763  in the document settings under 
13764 \family sans
13765 Math Options
13766 \family default
13767  are not used!
13768 \end_layout
13769
13770 \begin_layout Itemize
13771
13772 \size normal
13773 The title environment defines the kind of your paper.
13774  So use one of the following environments for the title:
13775 \end_layout
13776
13777 \begin_deeper
13778 \begin_layout Itemize
13779
13780 \family sans
13781 \size normal
13782 Title
13783 \family default
13784  for a Paper
13785 \end_layout
13786
13787 \begin_layout Itemize
13788
13789 \family sans
13790 \size normal
13791 Review
13792 \family default
13793  for a Review
13794 \end_layout
13795
13796 \begin_layout Itemize
13797
13798 \family sans
13799 \size normal
13800 Topical
13801 \family default
13802  for a Topical review
13803 \end_layout
13804
13805 \begin_layout Itemize
13806
13807 \family sans
13808 \size normal
13809 Comment
13810 \family default
13811  for a Comment
13812 \end_layout
13813
13814 \begin_layout Itemize
13815
13816 \family sans
13817 \size normal
13818 Note
13819 \family default
13820  for a Note
13821 \end_layout
13822
13823 \begin_layout Itemize
13824
13825 \family sans
13826 \size normal
13827 Paper
13828 \family default
13829  for a Paper (same as Title)
13830 \end_layout
13831
13832 \begin_layout Itemize
13833
13834 \family sans
13835 \size normal
13836 Prelim
13837 \family default
13838  for a Preliminary communication
13839 \end_layout
13840
13841 \begin_layout Itemize
13842
13843 \family sans
13844 \size normal
13845 Rapid
13846 \family default
13847  for a Rapid communication
13848 \end_layout
13849
13850 \begin_layout Itemize
13851
13852 \family sans
13853 \size normal
13854 Letter
13855 \family default
13856  for a Letter to the editor
13857 \end_layout
13858
13859 \end_deeper
13860 \begin_layout Itemize
13861
13862 \size normal
13863 All title environments except of 
13864 \family sans
13865 Letter
13866 \family default
13867  can have an optional short title.
13868 \end_layout
13869
13870 \begin_layout Itemize
13871 There is a general title environment 
13872 \family sans
13873 Article
13874 \family default
13875  which is not directly supported by the \SpecialChar LyX
13876 .
13877  This can be used as \SpecialChar TeX
13878  code when your document doesn't fit into one of the
13879  other title types.
13880 \end_layout
13881
13882 \begin_layout Standard
13883 For more informations like hints for special table and formula formatting,
13884  look at the IOP author guidelines.
13885 \end_layout
13886
13887 \begin_layout Section
13888 Kluwer
13889 \end_layout
13890
13891 \begin_layout Standard
13892 by 
13893 \noun on
13894 Panayotis Papasotiriou
13895 \end_layout
13896
13897 \begin_layout Subsection
13898 Overview
13899 \end_layout
13900
13901 \begin_layout Standard
13902 The Kluwer package is a set of macros produced by Kluwer Academic Publishers
13903  that facilitates electronic manuscript submission to the journals they
13904  publish.
13905  Most known of them (at least in my domain of interest) are 
13906 \emph on
13907 Astrophysics and Space Science
13908 \emph default
13909  and 
13910 \emph on
13911 Solar Physics
13912 \emph default
13913 , but there are many others (see a complete list at 
13914 \begin_inset Flex URL
13915 status open
13916
13917 \begin_layout Plain Layout
13918
13919 http://www.wkap.nl/jrnllist.htm/JRNLHOME
13920 \end_layout
13921
13922 \end_inset
13923
13924 ).
13925  The Kluwer package may be downloaded from the site 
13926 \begin_inset Flex URL
13927 status collapsed
13928
13929 \begin_layout Plain Layout
13930
13931 http://www.wkap.nl/kaphtml.htm/STYLEFILES
13932 \end_layout
13933
13934 \end_inset
13935
13936 .
13937  A complete user guide is contained in that package (but it can also be
13938  downloaded separately).
13939 \end_layout
13940
13941 \begin_layout Standard
13942 \SpecialChar LyX
13943  supports many features of the package but not everything.
13944  However, the \SpecialChar TeX
13945  code needed is reduced to some 
13946 \begin_inset Quotes eld
13947 \end_inset
13948
13949 peculiar
13950 \begin_inset Quotes erd
13951 \end_inset
13952
13953  commands of the package (see
13954 \begin_inset space ~
13955 \end_inset
13956
13957
13958 \begin_inset CommandInset ref
13959 LatexCommand ref
13960 reference "subsec:kluwer_peculiarities"
13961
13962 \end_inset
13963
13964 ).
13965  I have recently used \SpecialChar LyX
13966  to write an article submitted to the 
13967 \emph on
13968 Astrophysics and Space Science
13969 \emph default
13970  without any problem.
13971 \end_layout
13972
13973 \begin_layout Subsection
13974 Writing a paper
13975 \end_layout
13976
13977 \begin_layout Standard
13978 The easiest way to write a paper is to start with the Kluwer template file.
13979  Click on 
13980 \family sans
13981 File\SpecialChar menuseparator
13982 New from
13983 \family default
13984  
13985 \family sans
13986 Template
13987 \family default
13988 , then choose the 
13989 \family typewriter
13990 kluwer.lyx
13991 \family default
13992  template.
13993  This will give an (almost) empty document that includes the most common
13994  fields found in a manuscript and a short description of their use.
13995  As in most templates, simply overwrite the existing text (including the
13996  brackets, 
13997 \family typewriter
13998 <>
13999 \family default
14000 ) with the correct information.
14001 \end_layout
14002
14003 \begin_layout Subsection
14004 Preparing a paper for submission
14005 \end_layout
14006
14007 \begin_layout Standard
14008 As in the AAS\SpecialChar TeX
14009  package, before you submit your paper to a journal you must
14010  
14011 \begin_inset Quotes eld
14012 \end_inset
14013
14014 postprocess
14015 \begin_inset Quotes erd
14016 \end_inset
14017
14018  it as follows.
14019 \end_layout
14020
14021 \begin_layout Enumerate
14022 Export your paper as a \SpecialChar LaTeX
14023  file.
14024  To do this, click on 
14025 \family sans
14026 File\SpecialChar menuseparator
14027 Export\SpecialChar menuseparator
14028 \SpecialChar LaTeX
14029
14030 \family default
14031 .
14032  
14033 \end_layout
14034
14035 \begin_layout Enumerate
14036 Edit the resulting 
14037 \family typewriter
14038 .tex
14039 \family default
14040  file with a text editor and make the following changes
14041 \end_layout
14042
14043 \begin_deeper
14044 \begin_layout Enumerate
14045 remove the comment lines before the 
14046 \family typewriter
14047
14048 \backslash
14049 documentclass
14050 \family default
14051  command,
14052 \end_layout
14053
14054 \begin_layout Enumerate
14055 remove everything between (and including) the 
14056 \family typewriter
14057
14058 \backslash
14059 makeatletter
14060 \family default
14061  and 
14062 \family typewriter
14063
14064 \backslash
14065 makeatother
14066 \family default
14067  commands, except for any commands you specifically put into the \SpecialChar LaTeX
14068  preamble.
14069 \end_layout
14070
14071 \begin_layout Standard
14072 Save the resulting 
14073 \family typewriter
14074 .tex
14075 \family default
14076  file.
14077 \end_layout
14078
14079 \end_deeper
14080 \begin_layout Enumerate
14081 Run the 
14082 \family typewriter
14083 .tex
14084 \family default
14085  file through \SpecialChar LaTeX
14086  as many times as necessary (usually up to three).
14087 \end_layout
14088
14089 \begin_layout Enumerate
14090 View the resulting 
14091 \family typewriter
14092 .dvi
14093 \family default
14094  document using, e.
14095 \begin_inset space \thinspace{}
14096 \end_inset
14097
14098 g.
14099 \begin_inset space \space{}
14100 \end_inset
14101
14102
14103 \family sans
14104 xdvi
14105 \family default
14106 , and check if everything is OK (it should, if you didn't make any mistake).
14107 \end_layout
14108
14109 \begin_layout Subsection
14110 \begin_inset Quotes eld
14111 \end_inset
14112
14113 Peculiarities
14114 \begin_inset Quotes erd
14115 \end_inset
14116
14117  of the Kluwer package
14118 \begin_inset CommandInset label
14119 LatexCommand label
14120 name "subsec:kluwer_peculiarities"
14121
14122 \end_inset
14123
14124
14125 \end_layout
14126
14127 \begin_layout Standard
14128 The Kluwer package has the following 
14129 \begin_inset Quotes eld
14130 \end_inset
14131
14132 peculiarities
14133 \begin_inset Quotes erd
14134 \end_inset
14135
14136 .
14137 \end_layout
14138
14139 \begin_layout Enumerate
14140 It is possible to write multiple articles in the same \SpecialChar LaTeX
14141  file
14142 \begin_inset Foot
14143 status collapsed
14144
14145 \begin_layout Plain Layout
14146 I can't imagine any good reason to do this.
14147 \end_layout
14148
14149 \end_inset
14150
14151 .
14152  Each article must be included in the environment 
14153 \begin_inset Quotes eld
14154 \end_inset
14155
14156 article
14157 \begin_inset Quotes erd
14158 \end_inset
14159
14160 .
14161  Unfortunately, this environment cannot be omitted, even if you write just
14162  one article.
14163  Therefore, each article starts with the command 
14164 \family typewriter
14165
14166 \backslash
14167 begin{article}
14168 \family default
14169  and, obviously, ends with the command 
14170 \family typewriter
14171
14172 \backslash
14173 end{article}
14174 \family default
14175 .
14176  Although this can be implemented in \SpecialChar LyX
14177 , I didn't included it, since it looks
14178  ugly and can confuse the novice user.
14179  Therefore, you need to enter them directly and mark them as \SpecialChar LaTeX
14180  code (the
14181  well-known 
14182 \begin_inset Quotes eld
14183 \end_inset
14184
14185 \SpecialChar TeX
14186  code
14187 \begin_inset Quotes erd
14188 \end_inset
14189
14190 ).
14191 \end_layout
14192
14193 \begin_layout Enumerate
14194 Information given at the beginning of the article (i.
14195 \begin_inset space \thinspace{}
14196 \end_inset
14197
14198 e.
14199 \begin_inset space \space{}
14200 \end_inset
14201
14202 title, subtitle, author, institution, running title, running author, abstract
14203  and keywords) must be included in an environment called 
14204 \begin_inset Quotes eld
14205 \end_inset
14206
14207 opening
14208 \begin_inset Quotes erd
14209 \end_inset
14210
14211 .
14212  This is not implemented in \SpecialChar LyX
14213 , so you must enter title, subtitle etc.
14214 \begin_inset space ~
14215 \end_inset
14216
14217 between two \SpecialChar TeX
14218  code lines (
14219 \family typewriter
14220
14221 \backslash
14222 begin{opening}
14223 \family default
14224  and 
14225 \family typewriter
14226
14227 \backslash
14228 end{opening}
14229 \family default
14230 ).
14231 \end_layout
14232
14233 \begin_layout Enumerate
14234 According to the user manual, the label of each bibliography item must be
14235  written as 
14236 \family typewriter
14237
14238 \backslash
14239 protect
14240 \backslash
14241 citeauthoryear{
14242 \family default
14243 \emph on
14244 author(s)
14245 \family typewriter
14246 \emph default
14247 }{
14248 \family default
14249 \emph on
14250 year
14251 \family typewriter
14252 \emph default
14253 }
14254 \family default
14255 .
14256 \end_layout
14257
14258 \begin_layout Standard
14259 The 
14260 \family typewriter
14261 kluwer.lyx
14262 \family default
14263  template takes care of all these 
14264 \begin_inset Quotes eld
14265 \end_inset
14266
14267 peculiarities
14268 \begin_inset Quotes erd
14269 \end_inset
14270
14271 .
14272  If you start a new paper using this template you don't need to do anything
14273  special.
14274  Just 
14275 \end_layout
14276
14277 \begin_layout Enumerate
14278 don't delete the \SpecialChar TeX
14279  code included in the template, and
14280 \end_layout
14281
14282 \begin_layout Enumerate
14283 copy the example bibliography item included in the template and modify it
14284  as necessary to enter new bibliography items.
14285 \end_layout
14286
14287 \begin_layout Section
14288 Koma-Script
14289 \end_layout
14290
14291 \begin_layout Standard
14292 by 
14293 \noun on
14294 Bernd Rellermeyer
14295 \end_layout
14296
14297 \begin_layout Subsection
14298 Overview
14299 \end_layout
14300
14301 \begin_layout Standard
14302 The \SpecialChar LyX
14303  document classes 
14304 \emph on
14305 article (koma-script)
14306 \emph default
14307
14308 \emph on
14309 report (koma-script)
14310 \emph default
14311
14312 \emph on
14313 book
14314 \emph default
14315  
14316 \emph on
14317 (koma-script)
14318 \emph default
14319 , and 
14320 \emph on
14321 letter
14322 \emph default
14323  
14324 \emph on
14325 (koma-script)
14326 \emph default
14327  correspond to the \SpecialChar LaTeX
14328  document classes 
14329 \family typewriter
14330 scrartcl.cls
14331 \family default
14332
14333 \family typewriter
14334 scrreprt.cls
14335 \family default
14336
14337 \family typewriter
14338 scrbook.cls
14339 \family default
14340 , and 
14341 \family typewriter
14342 scrlettr.cls
14343 \family default
14344 , resp.
14345 \begin_inset space ~
14346 \end_inset
14347
14348 of the Koma-Script family.
14349  They are replacements for the standard document classes 
14350 \family typewriter
14351 article.cls
14352 \family default
14353
14354 \family typewriter
14355 report.cls
14356 \family default
14357
14358 \family typewriter
14359 book.cls
14360 \family default
14361  and 
14362 \family typewriter
14363 letter.cls
14364 \family default
14365 , resp., and fit better to European typography conventions in a number of
14366  points.
14367 \end_layout
14368
14369 \begin_layout Itemize
14370 Standard character size is 11pt in 
14371 \emph on
14372 article (koma-script)
14373 \emph default
14374
14375 \emph on
14376 report (koma-script)
14377 \emph default
14378 , and 
14379 \emph on
14380 book (koma-script)
14381 \emph default
14382 , and 12pt in 
14383 \emph on
14384 letter (koma-script)
14385 \emph default
14386 .
14387 \end_layout
14388
14389 \begin_layout Itemize
14390 Headings, labels of the description environment, and a number of elements
14391  of the 
14392 \emph on
14393 letter (koma-script)
14394 \emph default
14395  document class are set in a bold sans serif font.
14396 \begin_inset Foot
14397 status collapsed
14398
14399 \begin_layout Plain Layout
14400 There is a big difference between the bold sans serif old cm fonts and new
14401  ec fonts, especially in the appearance of headings.
14402  In comparison, the ec bold sans serif fonts look a bit thin.
14403  Here the \SpecialChar LaTeX
14404  package 
14405 \family typewriter
14406 cmsd.sty by
14407 \family default
14408  
14409 \shape smallcaps
14410 Walter Schmidt
14411 \shape default
14412  helps to produce the 
14413 \begin_inset Quotes eld
14414 \end_inset
14415
14416 usual
14417 \begin_inset Quotes erd
14418 \end_inset
14419
14420  appearance when using the ec fonts.
14421 \end_layout
14422
14423 \end_inset
14424
14425  The numbering of chapter headings is made in the same way as the numbering
14426  of section headings, that is without the extra line 
14427 \begin_inset Quotes eld
14428 \end_inset
14429
14430 Chapter\SpecialChar ldots
14431
14432 \begin_inset Quotes erd
14433 \end_inset
14434
14435 .
14436  In addition, the appearance of the headings can be modified by using a
14437  number of options (in \SpecialChar LyX
14438  to be entered in the field 
14439 \family sans
14440 Extra
14441 \begin_inset space ~
14442 \end_inset
14443
14444 Options
14445 \family default
14446  of the dialog 
14447 \family sans
14448 Layout\SpecialChar menuseparator
14449 Document
14450 \family default
14451 ).
14452  
14453 \end_layout
14454
14455 \begin_layout Itemize
14456 The main means in the Koma-Script document classes to design the type area
14457  are the options 
14458 \family sans
14459 BCOR
14460 \family default
14461  and 
14462 \family sans
14463 DIV
14464 \family default
14465  (in \SpecialChar LyX
14466  to be entered in the extra class options field in the dialog 
14467 \family sans
14468 Document\SpecialChar menuseparator
14469 Settings
14470 \family default
14471 ).
14472  They make a clearer modification of page margins possible as do the options
14473  of the dialog 
14474 \family sans
14475 Document\SpecialChar menuseparator
14476 Settings
14477 \family default
14478 .
14479  
14480 \end_layout
14481
14482 \begin_layout Itemize
14483 The \SpecialChar LaTeX
14484  document classes of the Koma-Script family define a number of additional
14485  commands.
14486  Those part of it which makes sense in \SpecialChar LyX
14487  is implemented in corresponding
14488  paragraph types.
14489 \end_layout
14490
14491 \begin_layout Standard
14492 Detailed descriptions of the \SpecialChar LaTeX
14493  document classes of the Koma-Script family
14494  can be found in the Koma-Script documentation 
14495 \emph on
14496 scrguide
14497 \emph default
14498  (German) and 
14499 \emph on
14500 scrguien
14501 \emph default
14502  (English).
14503 \end_layout
14504
14505 \begin_layout Subsection
14506 article (koma-script), report (koma-script), and book (koma-script)
14507 \end_layout
14508
14509 \begin_layout Standard
14510 The document classes 
14511 \emph on
14512 article (koma-script)
14513 \emph default
14514
14515 \emph on
14516 report (koma-script)
14517 \emph default
14518 , and 
14519 \emph on
14520 book
14521 \emph default
14522  
14523 \emph on
14524 (koma-script)
14525 \emph default
14526  are implemented in the layout files 
14527 \family typewriter
14528 scrartcl.layout
14529 \family default
14530
14531 \family typewriter
14532 scrreprt.layout
14533 \family default
14534 , and 
14535 \family typewriter
14536 scrbook.layout
14537 \family default
14538 , resp.
14539  They contain all the paragraph types of the corresponding standard document
14540  classes 
14541 \emph on
14542 article
14543 \emph default
14544
14545 \emph on
14546 report
14547 \emph default
14548 , and 
14549 \emph on
14550 book
14551 \emph default
14552 , resp., partly modified, with the exception of the \SpecialChar LyX
14553  specific 
14554 \family sans
14555 List
14556 \family default
14557 -type, which is replaced by the new 
14558 \family sans
14559 Labeling
14560 \family default
14561 -type having the same functionality.
14562  Beside the 
14563 \family sans
14564 Labeling
14565 \family default
14566 -Type there is a number of new paragraph types added.
14567  They are 
14568 \emph on
14569 not
14570 \emph default
14571  part of 
14572 \emph on
14573 letter (koma-script)
14574 \emph default
14575 .
14576 \end_layout
14577
14578 \begin_layout Itemize
14579
14580 \family sans
14581 Addpart, Addchap
14582 \family default
14583
14584 \family sans
14585 Addsec
14586 \family default
14587 : are equivalents to 
14588 \family sans
14589 Part*, Chapter*
14590 \family default
14591  and 
14592 \family sans
14593 Section*
14594 \family default
14595 , resp., additionally inserting an entry in the table of contents.
14596  
14597 \family sans
14598 Addpart
14599 \family default
14600  and 
14601 \family sans
14602 Addchap
14603 \family default
14604  are not contained in 
14605 \emph on
14606 article (koma-script)
14607 \emph default
14608 .
14609 \end_layout
14610
14611 \begin_layout Itemize
14612
14613 \family sans
14614 Addchap*
14615 \family default
14616
14617 \family sans
14618 Addsec*
14619 \family default
14620 : behave exactly as 
14621 \family sans
14622 Addchap
14623 \family default
14624  and 
14625 \family sans
14626 Addsec
14627 \family default
14628 , resp., additionally clearing running heads.
14629  
14630 \family sans
14631 Addchap*
14632 \family default
14633  is not contained in 
14634 \emph on
14635 article (koma-script)
14636 \emph default
14637 .
14638 \begin_inset Foot
14639 status collapsed
14640
14641 \begin_layout Plain Layout
14642 There is also an 
14643 \family typewriter
14644
14645 \backslash
14646 addpart*
14647 \family default
14648  command in 
14649 \emph on
14650 book (koma-script)
14651 \emph default
14652  and in 
14653 \emph on
14654 report (koma-script)
14655 \emph default
14656 , but since this is identical to 
14657 \family sans
14658 Part*
14659 \family default
14660 , is has not been implemented in \SpecialChar LyX
14661 .
14662 \end_layout
14663
14664 \end_inset
14665
14666
14667 \end_layout
14668
14669 \begin_layout Itemize
14670
14671 \family sans
14672 Minisec
14673 \family default
14674 : generates a heading directly above the following paragraph in the standard
14675  character size without affecting the structure of the document.
14676 \end_layout
14677
14678 \begin_layout Itemize
14679
14680 \family sans
14681 Captionabove
14682 \family default
14683  and 
14684 \family sans
14685 Captionbelow
14686 \family default
14687  are special captions which respect the different space settings needed
14688  for captions placed above or below an element (if you follow strict typographic
14689  rules, you might want to place table captions always above the table).
14690  You can also use the class option 
14691 \family typewriter
14692 tablecaptionsabove
14693 \family default
14694 , which will switch 
14695 \family sans
14696 caption
14697 \family default
14698  to 
14699 \family sans
14700 captionabove
14701 \family default
14702  for tables and 
14703 \family sans
14704 captionbelow
14705 \family default
14706  for figures.
14707  You need at least Koma-Script version 2.8q to use this.
14708 \end_layout
14709
14710 \begin_layout Itemize
14711
14712 \family sans
14713 Dictum
14714 \family default
14715 : can be used to set a bonmot, e.
14716 \begin_inset space \thinspace{}
14717 \end_inset
14718
14719 g.
14720 \begin_inset space \space{}
14721 \end_inset
14722
14723 at the beginning of a chapter.
14724  If you use the optional argument (
14725 \family sans
14726 Insert\SpecialChar menuseparator
14727 Short
14728 \begin_inset space ~
14729 \end_inset
14730
14731 Title
14732 \family default
14733 ), you can insert the dictum's author there.
14734  Dictum and author are separated by a line.
14735  You need at least Koma-Script version 2.8q to use this.
14736  
14737 \family sans
14738 Dictum
14739 \family default
14740  is not contained in 
14741 \emph on
14742 article (koma-script)
14743 \emph default
14744 .
14745 \end_layout
14746
14747 \begin_layout Standard
14748 The following types, together with the standard types 
14749 \family sans
14750 Title
14751 \family default
14752
14753 \family sans
14754 Author
14755 \family default
14756 , and 
14757 \family sans
14758 Date
14759 \family default
14760 , form the title area of the document.
14761  They must be entered ahead of the first 
14762 \begin_inset Quotes eld
14763 \end_inset
14764
14765 ordinary
14766 \begin_inset Quotes erd
14767 \end_inset
14768
14769  paragraph.
14770 \begin_inset Foot
14771 status collapsed
14772
14773 \begin_layout Plain Layout
14774 The corresponding \SpecialChar LaTeX
14775  commands must appear before the 
14776 \family typewriter
14777
14778 \backslash
14779 maketitle
14780 \family default
14781  command.
14782 \end_layout
14783
14784 \end_inset
14785
14786  When such a type is used more than once, the latter usage overwrites the
14787  former one, that means, for every type only the latest usage is valid.
14788  The order of the different types however has, like 
14789 \family sans
14790 Title
14791 \family default
14792
14793 \family sans
14794 Author
14795 \family default
14796 , and 
14797 \family sans
14798 Date
14799 \family default
14800 , no effect on the appearance of the produced document.
14801 \end_layout
14802
14803 \begin_layout Itemize
14804
14805 \family sans
14806 Subject
14807 \family default
14808 : produces a centered paragraph above the ordinary title (
14809 \family sans
14810 Title
14811 \family default
14812
14813 \family sans
14814 Author
14815 \family default
14816
14817 \family sans
14818 Date
14819 \family default
14820 ) for the subject of the document.
14821 \end_layout
14822
14823 \begin_layout Itemize
14824
14825 \family sans
14826 Publishers
14827 \family default
14828 : produces a centered paragraph below the ordinary title (
14829 \family sans
14830 Title
14831 \family default
14832
14833 \family sans
14834 Author
14835 \family default
14836
14837 \family sans
14838 Date
14839 \family default
14840 ) for the publishers' name.
14841 \end_layout
14842
14843 \begin_layout Itemize
14844
14845 \family sans
14846 Dedication
14847 \family default
14848 : in 
14849 \emph on
14850 report (koma-script)
14851 \emph default
14852  and 
14853 \emph on
14854 book (koma-script)
14855 \emph default
14856  produces a centered paragraph on its own page behind the title page, or
14857  in 
14858 \emph on
14859 article (koma-script)
14860 \emph default
14861  produces a centered paragraph below the ordinary title (
14862 \family sans
14863 Title
14864 \family default
14865
14866 \family sans
14867 Author
14868 \family default
14869
14870 \family sans
14871 Date
14872 \family default
14873
14874 \family sans
14875 Publishers
14876 \family default
14877 ) for a dedication.
14878 \end_layout
14879
14880 \begin_layout Itemize
14881
14882 \family sans
14883 Titlehead
14884 \family default
14885 : produces a left aligned paragraph above the ordinary title (
14886 \family sans
14887 Title
14888 \family default
14889
14890 \family sans
14891 Author
14892 \family default
14893
14894 \family sans
14895 Date
14896 \family default
14897
14898 \family sans
14899 Subject
14900 \family default
14901 ) for a document`s head.
14902 \end_layout
14903
14904 \begin_layout Itemize
14905
14906 \family sans
14907 Uppertitleback
14908 \family default
14909 : produces in a double-sided print in 
14910 \emph on
14911 report (koma-script)
14912 \emph default
14913  and 
14914 \emph on
14915 book (koma-script)
14916 \emph default
14917  a left-aligned paragraph at the top of the title page`s back or has no
14918  effect in a single-sided print or in 
14919 \emph on
14920 article (koma-script)
14921 \emph default
14922 .
14923 \end_layout
14924
14925 \begin_layout Itemize
14926
14927 \family sans
14928 Lowertitleback
14929 \family default
14930 : produces in a double-sided print in 
14931 \emph on
14932 report (koma-script)
14933 \emph default
14934  and 
14935 \emph on
14936 book (koma-script)
14937 \emph default
14938  a left-aligned paragraph at the bottom of the title page`s back or has
14939  no effect in a single-sided print or in 
14940 \emph on
14941 article (koma-script)
14942 \emph default
14943 .
14944 \end_layout
14945
14946 \begin_layout Itemize
14947
14948 \family sans
14949 Extratitle
14950 \family default
14951 : produces a special 
14952 \begin_inset Quotes eld
14953 \end_inset
14954
14955 dirty
14956 \begin_inset Quotes erd
14957 \end_inset
14958
14959  page ahead of the actual document containing a paragraph without special
14960  formatting.
14961 \end_layout
14962
14963 \begin_layout Standard
14964 The layout files for the document classes 
14965 \emph on
14966 article (koma-script)
14967 \emph default
14968
14969 \emph on
14970 report (koma-script)
14971 \emph default
14972 , and 
14973 \emph on
14974 book (koma-script)
14975 \emph default
14976  do include the file 
14977 \family typewriter
14978 scrmacros.inc
14979 \family default
14980 .
14981  This is thought of as a place to define your own types.
14982  Copy scrmacros
14983 \family typewriter
14984 .inc
14985 \family default
14986  in your personal layout directory and edit the file!
14987 \end_layout
14988
14989 \begin_layout Subsection
14990 letter (koma-script)
14991 \end_layout
14992
14993 \begin_layout Standard
14994 \noindent
14995 The document class 
14996 \emph on
14997 letter (koma-script)
14998 \emph default
14999  is implemented in the layout file 
15000 \family typewriter
15001 scrlettr.layout
15002 \family default
15003 .
15004  It contains all the paragraph types of the corresponding standard document
15005  class 
15006 \emph on
15007 letter
15008 \emph default
15009 , partly modified, with the exception of the \SpecialChar LyX
15010  specific types 
15011 \family sans
15012 \SpecialChar LyX
15013 -Code
15014 \family default
15015  and 
15016 \family sans
15017 Comment
15018 \family default
15019  and the 
15020 \family sans
15021 List
15022 \family default
15023  type, which is replaced by the new 
15024 \family sans
15025 Labeling
15026 \family default
15027  type.
15028  In addition, it contains, in contrast to the standard document class, the
15029  standard types 
15030 \family sans
15031 \SpecialChar LaTeX
15032
15033 \family default
15034
15035 \family sans
15036 Quotation
15037 \family default
15038
15039 \family sans
15040 Quote
15041 \family default
15042 , and 
15043 \family sans
15044 Verse
15045 \family default
15046 .
15047  Furthermore, there are a number of new letter specific types.
15048 \end_layout
15049
15050 \begin_layout Standard
15051 The appearance of the letter produced by this document class can be controlled
15052  by a number of \SpecialChar LaTeX
15053  commands, which you can put in the \SpecialChar LaTeX
15054  preamble.
15055 \begin_inset Foot
15056 status collapsed
15057
15058 \begin_layout Plain Layout
15059 For example, the standard appearance of the letter`s heading, consisting
15060  of name and address, is quite self-willed.
15061  An 
15062 \begin_inset Quotes eld
15063 \end_inset
15064
15065 ordinary
15066 \begin_inset Quotes erd
15067 \end_inset
15068
15069  heading is produced by the following \SpecialChar LaTeX
15070  commands in the preamble:
15071 \end_layout
15072
15073 \begin_layout LyX-Code
15074
15075 \backslash
15076 firsthead{
15077 \backslash
15078 parbox[b]{
15079 \backslash
15080 textwidth}
15081 \end_layout
15082
15083 \begin_layout LyX-Code
15084   {
15085 \backslash
15086 ignorespaces 
15087 \backslash
15088 fromname
15089 \backslash
15090
15091 \backslash
15092  
15093 \backslash
15094 ignorespaces 
15095 \backslash
15096 fromaddress}} 
15097 \end_layout
15098
15099 \begin_layout LyX-Code
15100
15101 \backslash
15102 nexthead{
15103 \backslash
15104 parbox[b]{
15105 \backslash
15106 textwidth}
15107 \end_layout
15108
15109 \begin_layout LyX-Code
15110   {
15111 \backslash
15112 ignorespaces 
15113 \backslash
15114 fromname 
15115 \backslash
15116 hfill 
15117 \backslash
15118 ignorespaces 
15119 \backslash
15120 pagename
15121 \backslash
15122  
15123 \backslash
15124 thepage}}
15125 \end_layout
15126
15127 \end_inset
15128
15129  A detailed German description of such \SpecialChar LaTeX
15130  commands can be found in the Koma-Script
15131  documentation 
15132 \emph on
15133 scrguide
15134 \emph default
15135 .
15136  With it, the letter's author can produce his personal letter layout.
15137 \end_layout
15138
15139 \begin_layout Standard
15140 The types 
15141 \family sans
15142 Letter
15143 \family default
15144  and 
15145 \family sans
15146 Opening
15147 \family default
15148  define the beginning of the letter and must be used in every letter.
15149  To emphasize them in the \SpecialChar LyX
15150  document class, they are marked with the letter
15151  
15152 \shape italic
15153 L
15154 \shape default
15155  or 
15156 \shape italic
15157 O
15158 \shape default
15159 , resp.
15160 \begin_inset space ~
15161 \end_inset
15162
15163 in the left margin.
15164  It is possible to write any number of letters in one file.
15165  An 
15166 \family sans
15167 Opening
15168 \family default
15169  type produces a new letter using the same addressee and a 
15170 \family sans
15171 Letter
15172 \family default
15173  type produces a new addressee.
15174  The types 
15175 \family sans
15176 Closing
15177 \family default
15178
15179 \family sans
15180 PS
15181 \family default
15182
15183 \family sans
15184 CC
15185 \family default
15186 , and 
15187 \family sans
15188 Encl
15189 \family default
15190  are ordinary paragraph types and can also be used several times in one
15191  and the same letter.
15192 \end_layout
15193
15194 \begin_layout Itemize
15195
15196 \family sans
15197 Letter
15198 \family default
15199 : produces a paragraph for the addressee and implicitly defines the beginning
15200  of the letter.
15201 \end_layout
15202
15203 \begin_layout Itemize
15204
15205 \family sans
15206 Opening
15207 \family default
15208 : produces a paragraph for the form of address and implicitly produces a
15209  new letter.
15210 \end_layout
15211
15212 \begin_layout Itemize
15213
15214 \family sans
15215 Closing
15216 \family default
15217 : produces a paragraph for a close.
15218 \end_layout
15219
15220 \begin_layout Itemize
15221
15222 \family sans
15223 PS
15224 \family default
15225 : produces a paragraph for a postscript.
15226 \end_layout
15227
15228 \begin_layout Itemize
15229
15230 \family sans
15231 CC
15232 \family default
15233 : produces a paragraph for a distribution list.
15234 \end_layout
15235
15236 \begin_layout Itemize
15237
15238 \family sans
15239 Encl
15240 \family default
15241 : produces a paragraph for enclosures.
15242 \end_layout
15243
15244 \begin_layout Standard
15245 The types 
15246 \family sans
15247 Name
15248 \family default
15249
15250 \family sans
15251 Signature
15252 \family default
15253
15254 \family sans
15255 Address
15256 \family default
15257
15258 \family sans
15259 Telephone
15260 \family default
15261
15262 \family sans
15263 Place
15264 \family default
15265
15266 \family sans
15267 Backaddress
15268 \family default
15269
15270 \family sans
15271 Specialmail
15272 \family default
15273
15274 \family sans
15275 Location
15276 \family default
15277
15278 \family sans
15279 Title
15280 \family default
15281 , and 
15282 \family sans
15283 Subject
15284 \family default
15285  are input types provided with a label to enter information, which will
15286  be processed by the document class.
15287 \begin_inset Foot
15288 status open
15289
15290 \begin_layout Plain Layout
15291 It could be seen as a matter of inconsequence, that the types 
15292 \family sans
15293 Letter
15294 \family default
15295  and 
15296 \family sans
15297 Opening
15298 \family default
15299  described above are not such input types as well.
15300  Because of the special meaning of those types, however, I have implemented
15301  them as ordinary paragraph types with a one letter mark in the left margin.
15302  Moreover, it would affect my feeling of symmetry, if the 
15303 \family sans
15304 Opening
15305 \family default
15306  type and the 
15307 \family sans
15308 Closing
15309 \family default
15310  type had such a serious different appearance.
15311 \end_layout
15312
15313 \end_inset
15314
15315  The types must be used ahead of the corresponding 
15316 \family sans
15317 Opening
15318 \family default
15319  type.
15320 \end_layout
15321
15322 \begin_layout Standard
15323 An implementation of these types in a WYSIWYG fashion does not seem to make
15324  sense, because the real appearance of the produced letter does not only
15325  depend on the usage of the particular type, but also on other factors.
15326  For example, a signature entered in the 
15327 \family sans
15328 Signature
15329 \family default
15330  type will in the standard behavior appear in the produced letter only,
15331  when in the same letter also a 
15332 \family sans
15333 Closing
15334 \family default
15335  type is used.
15336  The entered value of the 
15337 \family sans
15338 Telephone
15339 \family default
15340  type will in the standard behavior not appear in the produced letter at
15341  all.
15342  The possibility to design the letter`s heading freely is already indicated
15343  in a footnote above.
15344 \end_layout
15345
15346 \begin_layout Standard
15347 The input types can also be used as empty paragraphs.
15348  This makes sense e.
15349 \begin_inset space \thinspace{}
15350 \end_inset
15351
15352 g.
15353 \begin_inset space \space{}
15354 \end_inset
15355
15356 for the 
15357 \family sans
15358 Signature
15359 \family default
15360  type.
15361  If the 
15362 \family sans
15363 Signature
15364 \family default
15365  type is not used at all, in the standard behavior the value of the 
15366 \family sans
15367 Name
15368 \family default
15369  type is used as signature, whereas if an empty 
15370 \family sans
15371 Signature
15372 \family default
15373  type is used, no signature value is defined.
15374 \end_layout
15375
15376 \begin_layout Standard
15377 By using the input types it is possible to write a letter template, containing
15378  filled input types with your personal dates (name, address, etc.) and empty
15379  input types for other dates you want to enter.
15380 \end_layout
15381
15382 \begin_layout Itemize
15383
15384 \family sans
15385 Name
15386 \family default
15387 : sender's name, in the standard behavior appears as a centered paragraph
15388  in small caps in the letter`s heading.
15389 \end_layout
15390
15391 \begin_layout Itemize
15392
15393 \family sans
15394 Signature
15395 \family default
15396 : sender's signature, in the standard behavior appears below the 
15397 \family sans
15398 Closing
15399 \family default
15400  type.
15401  If no 
15402 \family sans
15403 Signature
15404 \family default
15405  type is used, the value of the 
15406 \family sans
15407 Name
15408 \family default
15409  type appears instead.
15410 \end_layout
15411
15412 \begin_layout Itemize
15413
15414 \family sans
15415 Address
15416 \family default
15417 : sender's address, in the standard behavior appears in a centered paragraph
15418  in the letter`s heading below the sender's name.
15419 \end_layout
15420
15421 \begin_layout Itemize
15422
15423 \family sans
15424 Telephone
15425 \family default
15426 : sender's telephone number, in the standard behavior only sets the \SpecialChar LaTeX
15427  variable
15428  
15429 \family typewriter
15430
15431 \backslash
15432 telephonenum
15433 \family default
15434 .
15435 \end_layout
15436
15437 \begin_layout Itemize
15438
15439 \family sans
15440 Place
15441 \family default
15442 : place of the letter`s making.
15443 \end_layout
15444
15445 \begin_layout Itemize
15446
15447 \family sans
15448 Date
15449 \family default
15450 : date of the letter`s making.
15451  
15452 \family sans
15453 Place
15454 \family default
15455  and 
15456 \family sans
15457 Date
15458 \family default
15459 , in the standard behavior, produce the place and the date in a right-aligned
15460  line below the addressee's field.
15461  If an empty 
15462 \family sans
15463 Date
15464 \family default
15465  type is used, neither place nor date appear, independent of the value of
15466  the 
15467 \family sans
15468 Place
15469 \family default
15470  type.
15471  If no 
15472 \family sans
15473 Date
15474 \family default
15475  type is used, the date of the letter `s production is used.
15476 \end_layout
15477
15478 \begin_layout Itemize
15479
15480 \family sans
15481 Backaddress
15482 \family default
15483 : sender`s back address, in the standard behavior appears above the addressee's
15484  field in a small sans serif font.
15485 \end_layout
15486
15487 \begin_layout Itemize
15488
15489 \family sans
15490 Specialmail
15491 \family default
15492 : special mail information, in the standard behavior appears underlined
15493  above the addressee's field below the back address.
15494 \end_layout
15495
15496 \begin_layout Itemize
15497
15498 \family sans
15499 Location
15500 \family default
15501 : additional information, in the standard behavior appears on right side
15502  below the addressee`s field.
15503 \end_layout
15504
15505 \begin_layout Itemize
15506
15507 \family sans
15508 Title
15509 \family default
15510 : the letter's title, in the standard behavior appears in a big, bold, sans
15511  serif font above the subject.
15512 \end_layout
15513
15514 \begin_layout Itemize
15515
15516 \family sans
15517 Subject
15518 \family default
15519 : the letter's subject, in the standard behavior appears in a bold font
15520  above the 
15521 \family sans
15522 Opening
15523 \family default
15524  paragraph.
15525 \end_layout
15526
15527 \begin_layout Standard
15528 The types 
15529 \family sans
15530 Yourref
15531 \family default
15532
15533 \family sans
15534 Yourmail
15535 \family default
15536
15537 \family sans
15538 Myref
15539 \family default
15540
15541 \family sans
15542 Customer
15543 \family default
15544 , and 
15545 \family sans
15546 Invoice
15547 \family default
15548  produce a business letter like line above the 
15549 \family sans
15550 Title
15551 \family default
15552  line containing the fields 
15553 \begin_inset Quotes eld
15554 \end_inset
15555
15556 Your ref.
15557 \begin_inset Quotes erd
15558 \end_inset
15559
15560
15561 \begin_inset Quotes eld
15562 \end_inset
15563
15564 Your letter of
15565 \begin_inset Quotes erd
15566 \end_inset
15567
15568
15569 \begin_inset Quotes eld
15570 \end_inset
15571
15572 Our ref.
15573 \begin_inset Quotes erd
15574 \end_inset
15575
15576
15577 \begin_inset Quotes eld
15578 \end_inset
15579
15580 Customer no.
15581 \begin_inset Quotes erd
15582 \end_inset
15583
15584
15585 \begin_inset Quotes eld
15586 \end_inset
15587
15588 Invoice no.
15589 \begin_inset Quotes erd
15590 \end_inset
15591
15592 , and 
15593 \begin_inset Quotes eld
15594 \end_inset
15595
15596 Date
15597 \begin_inset Quotes erd
15598 \end_inset
15599
15600 .
15601  For the date field, the value of the 
15602 \family sans
15603 Date
15604 \family default
15605  type is used.
15606  If one of these 
15607 \begin_inset Quotes eld
15608 \end_inset
15609
15610 business letter types
15611 \begin_inset Quotes erd
15612 \end_inset
15613
15614  is used, the value of the 
15615 \family sans
15616 Place
15617 \family default
15618  type however does not appear, but only the \SpecialChar LaTeX
15619  variable 
15620 \family typewriter
15621
15622 \backslash
15623 fromplace
15624 \family default
15625  is set.
15626  The ordinary output of place and date in a right-aligned line below the
15627  addressee`s field is suppressed.
15628  The types are implemented as input types provided with a label and must
15629  be used ahead of the corresponding 
15630 \family sans
15631 Opening
15632 \family default
15633  type.
15634 \end_layout
15635
15636 \begin_layout Itemize
15637
15638 \family sans
15639 Yourref
15640 \family default
15641 : Your ref.
15642 \end_layout
15643
15644 \begin_layout Itemize
15645
15646 \family sans
15647 Yourmail
15648 \family default
15649 : Your letter of.
15650 \end_layout
15651
15652 \begin_layout Itemize
15653
15654 \family sans
15655 Myref
15656 \family default
15657 : Our ref.
15658 \end_layout
15659
15660 \begin_layout Itemize
15661
15662 \family sans
15663 Customer
15664 \family default
15665 : Customer no.
15666 \end_layout
15667
15668 \begin_layout Itemize
15669
15670 \family sans
15671 Invoice
15672 \family default
15673 : Invoice no.
15674 \end_layout
15675
15676 \begin_layout Subsection
15677 The new letter class: letter (koma-script v.2)
15678 \end_layout
15679
15680 \begin_layout Standard
15681 by 
15682 \noun on
15683 Jürgen Spitzmüller
15684 \end_layout
15685
15686 \begin_layout Standard
15687 \begin_inset VSpace medskip
15688 \end_inset
15689
15690
15691 \end_layout
15692
15693 \begin_layout Standard
15694 \noindent
15695 Koma-Script version 2.8 has introduced a new letter class 
15696 \family typewriter
15697 scrlttr2
15698 \family default
15699  which supersedes the now unsupported 
15700 \family typewriter
15701 scrlettr
15702 \family default
15703 .
15704  It has — on the \SpecialChar LaTeX
15705  side — a completely new interface and is not compatible
15706  with the old class.
15707  Therefore, \SpecialChar LyX
15708  supports both, though it is recommended you use the new class.
15709 \end_layout
15710
15711 \begin_layout Standard
15712 This class covers the same functionality as 
15713 \emph on
15714 letter (koma-script),
15715 \emph default
15716  and a few more.
15717  The basic items are 
15718 \family sans
15719 Address
15720 \family default
15721  (receiver's address, same as 
15722 \family sans
15723 Letter
15724 \family default
15725  in the old layout), 
15726 \family sans
15727 Opening
15728 \family default
15729 , and 
15730 \family sans
15731 Closing
15732 \family default
15733 .
15734  
15735 \family sans
15736 NextAddress
15737 \family default
15738  will start a new letter (i.
15739 \begin_inset space \thinspace{}
15740 \end_inset
15741
15742 e.
15743 \begin_inset space \space{}
15744 \end_inset
15745
15746 you can write several letters per document).
15747  New elements are sender's 
15748 \family sans
15749 E-Mail
15750 \family default
15751
15752 \family sans
15753 URL
15754 \family default
15755
15756 \family sans
15757 Fax
15758 \family default
15759
15760 \family sans
15761 Bank
15762 \family default
15763  and the possibility to use a 
15764 \family sans
15765 Logo
15766 \family default
15767  (via 
15768 \family sans
15769 Insert\SpecialChar menuseparator
15770 Graphics
15771 \family default
15772 ) in the header.
15773 \end_layout
15774
15775 \begin_layout Standard
15776 The biggest improvement is, though, that the letter's layout is configurable
15777  to meet almost any needs.
15778  This can be done via the preamble or with a special style file (Letter
15779  Class Option, extension 
15780 \family typewriter
15781 *.lco
15782 \family default
15783 ), that will be read in as a class option.
15784 \begin_inset Foot
15785 status collapsed
15786
15787 \begin_layout Plain Layout
15788 The KOMA package comes with some default 
15789 \family typewriter
15790 *.lco
15791 \family default
15792  files.
15793  There is, for instance, a 
15794 \family typewriter
15795 DIN.lco
15796 \family default
15797  file that follows german typesetting rules, or a 
15798 \family typewriter
15799 KOMAold.lco
15800 \family default
15801  that provides the default layout of the old 
15802 \family typewriter
15803 scrlettr
15804 \family default
15805  class.
15806  The latter can be loaded with the class option 
15807 \family typewriter
15808 KOMAold
15809 \family default
15810 , inserted via the 
15811 \family sans
15812 Layout\SpecialChar menuseparator
15813 Document\SpecialChar menuseparator
15814 Extra Options
15815 \family default
15816  field.
15817 \end_layout
15818
15819 \end_inset
15820
15821  Have a look at the 
15822 \emph on
15823 koma-letter2
15824 \emph default
15825  template that is included in \SpecialChar LyX
15826  for examples.
15827  A detailed description is to be found in the Koma-Script documentation
15828  (
15829 \emph on
15830 scrguide
15831 \emph default
15832 ).
15833 \end_layout
15834
15835 \begin_layout Subsection
15836 Problems
15837 \end_layout
15838
15839 \begin_layout Standard
15840 Visualizing the Koma-Script document classes in \SpecialChar LyX
15841 , the \SpecialChar LyX
15842  internals cause some
15843  problems.
15844 \end_layout
15845
15846 \begin_layout Itemize
15847 The chapter number of a 
15848 \family sans
15849 Chapter
15850 \family default
15851  type appears on a line of its own above the chapter heading instead of
15852  appearing in the same line ahead of it.
15853  The cause for that is the \SpecialChar LyX
15854  internal behavior for the labeltype 
15855 \family sans
15856 Counter_Chapter
15857 \family default
15858  in the layout file.
15859 \end_layout
15860
15861 \begin_layout Itemize
15862 The headings of the types 
15863 \family sans
15864 Addchap
15865 \family default
15866  and 
15867 \family sans
15868 Addsec
15869 \family default
15870  are only put in the 
15871 \begin_inset Quotes eld
15872 \end_inset
15873
15874 true
15875 \begin_inset Quotes erd
15876 \end_inset
15877
15878  \SpecialChar LaTeX
15879  table of contents, but not in the \SpecialChar LyX
15880  table of contents (
15881 \family sans
15882 Document\SpecialChar menuseparator
15883 Table
15884 \begin_inset space ~
15885 \end_inset
15886
15887 of
15888 \begin_inset space ~
15889 \end_inset
15890
15891 Contents
15892 \family default
15893 ).
15894 \end_layout
15895
15896 \begin_layout Itemize
15897 The paragraphs in a 
15898 \emph on
15899 letter
15900 \emph default
15901  document class appear in a skip separation mode, not indented.
15902  This is the standard behavior, no special \SpecialChar LaTeX
15903  commands are needed for that.
15904  But in the 
15905 \family sans
15906 Document\SpecialChar menuseparator
15907 Settings
15908 \family default
15909  dialog the corresponding radio button indicates 
15910 \family sans
15911 Indent
15912 \family default
15913 .
15914  A 
15915 \family sans
15916 Skip
15917 \family default
15918  value always has the effect that extra \SpecialChar LaTeX
15919  commands are inserted in the document
15920  to produce the gap, which is not what is wanted in this case.
15921 \end_layout
15922
15923 \begin_layout Section
15924 Memoir
15925 \end_layout
15926
15927 \begin_layout Standard
15928 By 
15929 \noun on
15930 Jürgen Spitzmüller
15931 \end_layout
15932
15933 \begin_layout Subsection
15934 Overview
15935 \end_layout
15936
15937 \begin_layout Standard
15938 Memoir is a very powerful and constantly evolving class.
15939  It has been designed with regard to fictional and non-fictional literature.
15940  Its aim is to let the user have maximum control over the typesetting of
15941  his document.
15942  Memoir is based on the standard book class, but it can also emulate the
15943  article class (see below).
15944 \end_layout
15945
15946 \begin_layout Standard
15947 Peter Wilson, the developer of Memoir, is known as the author of lots of
15948  useful packages in the \SpecialChar LaTeX
15949  world.
15950  Most of them have been merged with Memoir.
15951  Therefore, it is much easier to layout the table of contents, appendices,
15952  chapter designs and such.
15953  \SpecialChar LyX
15954 , though, does not support all of these goodies natively.
15955  Some of them might be added to forthcoming releases
15956 \begin_inset Foot
15957 status collapsed
15958
15959 \begin_layout Plain Layout
15960 You are invited to send suggestions to 
15961 \begin_inset Flex URL
15962 status collapsed
15963
15964 \begin_layout Plain Layout
15965
15966 lyx-devel@lists.lyx.org
15967 \end_layout
15968
15969 \end_inset
15970
15971 .
15972 \end_layout
15973
15974 \end_inset
15975
15976 , lots will probably never be supported, due to the limitations of \SpecialChar LyX
15977 's framework.
15978  Of course you can still use all features with the help of some native \SpecialChar LaTeX
15979
15980  commands (\SpecialChar TeX
15981  code
15982 \begin_inset Foot
15983 status collapsed
15984
15985 \begin_layout Plain Layout
15986 Cf.
15987 \begin_inset ERT
15988 status collapsed
15989
15990 \begin_layout Plain Layout
15991
15992
15993 \backslash
15994  
15995 \end_layout
15996
15997 \end_inset
15998
15999 section
16000 \begin_inset space ~
16001 \end_inset
16002
16003
16004 \begin_inset CommandInset ref
16005 LatexCommand ref
16006 reference "sec:Inserting-TeX-Code"
16007
16008 \end_inset
16009
16010  for details.
16011 \end_layout
16012
16013 \end_inset
16014
16015 ).
16016  In this section, we can only list those features that are natively supported
16017  by \SpecialChar LyX
16018 .
16019  For detailed descriptions (and for the rest of features) we recommend you
16020  have a look at the detailed manual of the Memoir class
16021 \begin_inset Foot
16022 status collapsed
16023
16024 \begin_layout Plain Layout
16025 Cf.
16026 \begin_inset ERT
16027 status collapsed
16028
16029 \begin_layout Plain Layout
16030
16031
16032 \backslash
16033  
16034 \end_layout
16035
16036 \end_inset
16037
16038
16039 \begin_inset Flex URL
16040 status collapsed
16041
16042 \begin_layout Plain Layout
16043
16044 CTAN:/macros/latex/memoir/memman.pdf
16045 \end_layout
16046
16047 \end_inset
16048
16049 .
16050 \end_layout
16051
16052 \end_inset
16053
16054 , which is not only a user guide for the class, but also both a comprehensive
16055  description on good typesetting and a superb example for good typesetting
16056  itself.
16057 \end_layout
16058
16059 \begin_layout Subsection
16060 Basic features and restrictions
16061 \end_layout
16062
16063 \begin_layout Standard
16064 Memoir supports basically all features of the standard book classes.
16065  There are, however, some differences, as follows:
16066 \end_layout
16067
16068 \begin_layout Description
16069 Font
16070 \begin_inset space ~
16071 \end_inset
16072
16073 sizes: Memoir has a broader range of font sizes: 9, 10, 11, 12, 14, 17
16074 \end_layout
16075
16076 \begin_layout Description
16077 Page
16078 \begin_inset space ~
16079 \end_inset
16080
16081 style: The fancy page style is not supported, due to a command clash between
16082  Memoir and the fancyhdr package (they both define a command with the same
16083  name, which confuses \SpecialChar LaTeX
16084 ).
16085  Instead, Memoir comes with a number of its own page styles (see 
16086 \family sans
16087 Layout\SpecialChar menuseparator
16088 Document\SpecialChar menuseparator
16089 Page
16090 \begin_inset space ~
16091 \end_inset
16092
16093 Style
16094 \family default
16095 ).
16096  If you want to use these for the chapter pages, you have to use the command
16097  
16098 \family typewriter
16099
16100 \backslash
16101 chapterstyle
16102 \family default
16103  in the main text or in preamble (e.
16104 \begin_inset space \thinspace{}
16105 \end_inset
16106
16107 g.
16108 \begin_inset space \space{}
16109 \end_inset
16110
16111
16112 \family typewriter
16113
16114 \backslash
16115 chapterstyle{companion}
16116 \family default
16117 ).
16118 \end_layout
16119
16120 \begin_layout Description
16121 Sectioning: Sectionings (chapter, section, subsection etc.) come with an
16122  optional argument in the standard classes.
16123  With this, you can specify an alternative version of the title for the
16124  table of contents and the headers (for instance, if the title is too long).
16125  In \SpecialChar LyX
16126 , you can do this via 
16127 \family sans
16128 Insert\SpecialChar menuseparator
16129 Short
16130 \begin_inset space ~
16131 \end_inset
16132
16133 Title
16134 \family default
16135  at the beginning of a chapter/section.
16136  Memoir features a second optional argument and thus separates the table
16137  of contents from the header.
16138  You can define three variants of a title with this: one for the main text,
16139  one for the table of contents, and one for the headers.
16140  Simply insert two optional arguments if you need this feature, the first
16141  one containing the short title for the Table of Contents, the second one
16142  containing an alternative short title for the headers.
16143 \end_layout
16144
16145 \begin_layout Description
16146 TOC/LOT/LOF: In the standard classes (and in many other classes), the table
16147  of contents, the list of figures and the list of table start a new page
16148  automatically.
16149  Memoir does not follow this route.
16150  You have to insert a page break yourself, if you want to have one.
16151 \end_layout
16152
16153 \begin_layout Description
16154 Titlepage: For some unknown reason, Memoir uses pagination on the title
16155  page (in the standard classes, title pages are 
16156 \begin_inset Quotes eld
16157 \end_inset
16158
16159 empty
16160 \begin_inset Quotes erd
16161 \end_inset
16162
16163 ).
16164  If you want an empty title page, type 
16165 \family typewriter
16166
16167 \backslash
16168 aliaspagestyle{title}{empty}
16169 \family default
16170  in the preamble.
16171 \end_layout
16172
16173 \begin_layout Description
16174 Article: With the class option 
16175 \emph on
16176 article
16177 \emph default
16178  (to be inserted in 
16179 \family sans
16180 Layout\SpecialChar menuseparator
16181 Document\SpecialChar menuseparator
16182 Extra
16183 \begin_inset space ~
16184 \end_inset
16185
16186 Options
16187 \family default
16188 ), you can emulate article style.
16189  That is, counters (footnotes, figures, tables etc.) will not be reset on
16190  new chapters, chapters don't start a new page (but are—in contrary to 
16191 \begin_inset Quotes eld
16192 \end_inset
16193
16194 real
16195 \begin_inset Quotes erd
16196 \end_inset
16197
16198  article classes—still allowed), parts, though, use their own page, as in
16199  book.
16200 \end_layout
16201
16202 \begin_layout Description
16203 Oldfontcommands: By default, Memoir does not allow the use of the deprecated
16204  font commands, which have been used in the old \SpecialChar LaTeX
16205  version 2.09 (e.
16206 \begin_inset space \thinspace{}
16207 \end_inset
16208
16209 g.
16210 \begin_inset space \space{}
16211 \end_inset
16212
16213
16214 \family typewriter
16215
16216 \backslash
16217 rm
16218 \family default
16219
16220 \family typewriter
16221
16222 \backslash
16223 it
16224 \family default
16225 ).
16226  It produces an error and stops \SpecialChar LaTeX
16227  whenever such a command appears.
16228  The class option 
16229 \emph on
16230 oldfontcommands
16231 \emph default
16232  reallows the commands and spits out warnings instead (which does at least
16233  not stop \SpecialChar LaTeX
16234 ).
16235  Since a lot of packages and particularly Bib\SpecialChar TeX
16236  style files are still using
16237  those commands, we have decided to use this option by default.
16238 \end_layout
16239
16240 \begin_layout Subsection
16241 Extra features
16242 \end_layout
16243
16244 \begin_layout Standard
16245 We will only describe the features supported by \SpecialChar LyX
16246  (which is not much currently).
16247  Please consult the Memoir manual
16248 \begin_inset Foot
16249 status collapsed
16250
16251 \begin_layout Plain Layout
16252 Cf.
16253 \begin_inset ERT
16254 status collapsed
16255
16256 \begin_layout Plain Layout
16257
16258
16259 \backslash
16260  
16261 \end_layout
16262
16263 \end_inset
16264
16265
16266 \begin_inset Flex URL
16267 status collapsed
16268
16269 \begin_layout Plain Layout
16270
16271 CTAN:/macros/latex/memoir/memman.pdf
16272 \end_layout
16273
16274 \end_inset
16275
16276 .
16277 \end_layout
16278
16279 \end_inset
16280
16281  for details.
16282 \end_layout
16283
16284 \begin_layout Description
16285 Abstract: You may wonder why an abstract is an extra feature.
16286  Well, it is in book class.
16287  Usually books don't have abstracts.
16288  Memoir, however, has.
16289  You can use it wherever and how often you like.
16290 \end_layout
16291
16292 \begin_layout Description
16293 Chapterprecis: You may know this older typesetting style: The contents of
16294  a chapter are summarized below the title and also in the table of contents
16295  (e.
16296 \begin_inset space \thinspace{}
16297 \end_inset
16298
16299 g.
16300 \begin_inset space \space{}
16301 \end_inset
16302
16303
16304 \emph on
16305 Our hero arrives in Troia; he loses some friends; he finds others
16306 \emph default
16307 ).
16308  Chapterprecis does exactly this.
16309  It is therefore only sensible below a chapter.
16310 \end_layout
16311
16312 \begin_layout Description
16313 Epigraph: An epigraph is a smart slogan or motto at the beginning of a chapter.
16314  The epigraph environment provides an elegant way of typesetting such a
16315  motto.
16316  The motto itself (text) and its author (source) are divided by a short
16317  line.
16318  Unfortunately, we have to fool \SpecialChar LyX
16319  a bit here again, since the environment
16320  needs two arguments (text and source).
16321  In this case, we have to use curly brackets (in \SpecialChar TeX
16322  mode) between the two
16323  arguments: 
16324 \emph on
16325 <smart slogan>
16326 \emph default
16327  
16328 \family typewriter
16329 }{
16330 \family default
16331  
16332 \emph on
16333 <author of the slogan>.
16334 \end_layout
16335
16336 \begin_layout Description
16337 Poemtitle: Memoir has lots of possibilities to typeset poetry (up to very
16338  complex figurative poems).
16339  \SpecialChar LyX
16340  can only support a few of them.
16341  One is poemtitle, which is a centered title for poems, which will also
16342  be added to the table of contents (verse is the standard environment for
16343  poems.
16344  Memoir has some enhanced versions of verse, but you need to use \SpecialChar TeX
16345  code,
16346  because they have to be nested inside regular verse environments, which
16347  is not possible with \SpecialChar LyX
16348 ).
16349 \end_layout
16350
16351 \begin_layout Description
16352 Poemtitle*: Same as poemtitle, but it adds no entry to the table of contents.
16353 \end_layout
16354
16355 \begin_layout Section
16356 Article (mwart), book (mwbk) and report (mwrep)
16357 \begin_inset Argument status
16358 status collapsed
16359
16360 \begin_layout Plain Layout
16361 The 
16362 \family typewriter
16363 mw
16364 \family default
16365  Classes
16366 \end_layout
16367
16368 \end_inset
16369
16370
16371 \end_layout
16372
16373 \begin_layout Standard
16374 by 
16375 \noun on
16376 Tomasz Luczak
16377 \end_layout
16378
16379 \begin_layout Standard
16380 The \SpecialChar LyX
16381  document classes 
16382 \emph on
16383 article (mwart)
16384 \emph default
16385
16386 \emph on
16387 report (mwrep)
16388 \emph default
16389  and 
16390 \emph on
16391 book
16392 \emph default
16393  
16394 \emph on
16395 (mwbk)
16396 \emph default
16397  correspond to the \SpecialChar LaTeX
16398  document classes 
16399 \family typewriter
16400 mwart.cls
16401 \family default
16402
16403 \family typewriter
16404 mwrep.cls
16405 \family default
16406  and 
16407 \family typewriter
16408 mwbk.cls
16409 \family default
16410 , resp.
16411  They are replacements for the standard document classes 
16412 \family typewriter
16413 article.cls
16414 \family default
16415
16416 \family typewriter
16417 report.cls
16418 \family default
16419  and 
16420 \family typewriter
16421 book.cls
16422 \family default
16423 , resp., and fit better to Polish typography conventions in a number of points.
16424  
16425 \end_layout
16426
16427 \begin_layout Standard
16428 Basic differences:
16429 \end_layout
16430
16431 \begin_layout Itemize
16432 Unnumbered titles (with star, e.
16433 \begin_inset space \thinspace{}
16434 \end_inset
16435
16436 g.
16437 \begin_inset space \space{}
16438 \end_inset
16439
16440
16441 \family sans
16442 Section*
16443 \family default
16444 ) are added into table of contents,
16445 \end_layout
16446
16447 \begin_layout Itemize
16448 Additional page styles:
16449 \end_layout
16450
16451 \begin_deeper
16452 \begin_layout Description
16453 uheadings header with separated lines,
16454 \end_layout
16455
16456 \begin_layout Description
16457 myheadings custom header, contents headers via commands: 
16458 \family typewriter
16459
16460 \backslash
16461 markright
16462 \family default
16463  and 
16464 \family typewriter
16465
16466 \backslash
16467 markboth
16468 \family default
16469 ,
16470 \end_layout
16471
16472 \begin_layout Description
16473 myuheadings custom header with separated lines,
16474 \end_layout
16475
16476 \begin_layout Description
16477 outer page number is placed on outer side of page
16478 \end_layout
16479
16480 \end_deeper
16481 \begin_layout Itemize
16482 Options 
16483 \end_layout
16484
16485 \begin_deeper
16486 \begin_layout Description
16487 rmheadings serif titles — default,
16488 \end_layout
16489
16490 \begin_layout Description
16491 sfheadings sansserif titles,
16492 \end_layout
16493
16494 \begin_layout Description
16495 authortitle on title page first placed is author next title — default,
16496 \end_layout
16497
16498 \begin_layout Description
16499 titleauthor on title page first placed is title next author,
16500 \end_layout
16501
16502 \begin_layout Description
16503 withmarginpar reserve place on page for margins.
16504 \end_layout
16505
16506 \end_deeper
16507 \begin_layout Section
16508 Paper
16509 \end_layout
16510
16511 \begin_layout Standard
16512 The document class 
16513 \family sans
16514 paper
16515 \family default
16516  provides an alternative to the standard 
16517 \family sans
16518 article
16519 \family default
16520  class.
16521  It provides similar functionality, but you might prefer this layout with
16522  sans serif sections, headings, and more.
16523 \end_layout
16524
16525 \begin_layout Section
16526 Rev\SpecialChar TeX
16527 4
16528 \end_layout
16529
16530 \begin_layout Standard
16531 by 
16532 \noun on
16533 Amir Karger
16534 \end_layout
16535
16536 \begin_layout Standard
16537 \begin_inset VSpace bigskip
16538 \end_inset
16539
16540
16541 \end_layout
16542
16543 \begin_layout Standard
16544 \noindent
16545 The 
16546 \family sans
16547 Revtex
16548 \begin_inset space ~
16549 \end_inset
16550
16551 4
16552 \family default
16553  textclass works with the American Physical Sociey's Rev\SpecialChar TeX
16554  4.0 (the 
16555 \begin_inset Formula $\beta$
16556 \end_inset
16557
16558  release of May, 1999) class.
16559 \end_layout
16560
16561 \begin_layout Standard
16562 \SpecialChar LyX
16563  has a 
16564 \family sans
16565 Revtex
16566 \family default
16567  textclass, which works with Rev\SpecialChar TeX
16568  3.1.
16569  However, v3.1 is basically obsolete, as it works with \SpecialChar LaTeX
16570  2.09.
16571  That means that it doesn't interact very well with \SpecialChar LyX
16572 , which requires \SpecialChar LaTeX2e
16573 , although
16574  it has been kludged to work.
16575  Since Rev\SpecialChar TeX
16576  4.0 has been designed to work much more cleanly with \SpecialChar LaTeX2e
16577 , \SpecialChar LyX
16578  with the
16579  
16580 \family sans
16581 Rev\SpecialChar TeX
16582
16583 \begin_inset space ~
16584 \end_inset
16585
16586 4
16587 \family default
16588  textclass should also be pretty easy to use.
16589 \end_layout
16590
16591 \begin_layout Standard
16592 These documents are supposed to be used in 
16593 \emph on
16594 addition
16595 \emph default
16596  to the Rev\SpecialChar TeX
16597  4.0 documents, so we don't describe any of the special Rev\SpecialChar TeX
16598  macros,
16599  and assume you'll know what to put in the preamble if necessary.
16600 \end_layout
16601
16602 \begin_layout Subsection
16603 Installation
16604 \end_layout
16605
16606 \begin_layout Standard
16607 All you need to do is install Rev\SpecialChar TeX
16608  4, as described in the package's README
16609  file.
16610  The package can be found at The Rev\SpecialChar TeX
16611  4 Web Site 
16612 \begin_inset Flex URL
16613 status collapsed
16614
16615 \begin_layout Plain Layout
16616
16617 http://publish.aps.org/revtex4/
16618 \end_layout
16619
16620 \end_inset
16621
16622 .
16623  Install it somewhere that \SpecialChar LaTeX
16624  can see it.
16625  Test it by trying to \SpecialChar LaTeX
16626  a short Rev\SpecialChar TeX
16627  4 document in some random directory (i.
16628 \begin_inset space \thinspace{}
16629 \end_inset
16630
16631 e.
16632 \begin_inset space \space{}
16633 \end_inset
16634
16635 not the directory where you installed the class file.) Then, if you reconfigure
16636  \SpecialChar LyX
16637 , it will find the class file and let you use the Rev\SpecialChar TeX
16638 4 textclass.
16639 \end_layout
16640
16641 \begin_layout Standard
16642 Probably the easiest way to get started is either to import a Rev\SpecialChar TeX
16643  4 document
16644  using 
16645 \family typewriter
16646 tex2lyx
16647 \family default
16648 , or to use the 
16649 \family sans
16650 Revtex
16651 \begin_inset space ~
16652 \end_inset
16653
16654 4
16655 \family default
16656  template, found in the templates directory.
16657 \end_layout
16658
16659 \begin_layout Subsection
16660 Preamble Matter
16661 \end_layout
16662
16663 \begin_layout Standard
16664 Optional arguments to 
16665 \family typewriter
16666
16667 \backslash
16668 documentclass
16669 \family default
16670 , like 
16671 \begin_inset Quotes eld
16672 \end_inset
16673
16674 preprint
16675 \begin_inset Quotes erd
16676 \end_inset
16677
16678  and 
16679 \begin_inset Quotes eld
16680 \end_inset
16681
16682 aps
16683 \begin_inset Quotes erd
16684 \end_inset
16685
16686 , go in the 
16687 \family sans
16688 Extra
16689 \begin_inset space ~
16690 \end_inset
16691
16692 Options
16693 \family default
16694  field in the 
16695 \family sans
16696 Document
16697 \begin_inset space ~
16698 \end_inset
16699
16700 Layout
16701 \family default
16702  dialog, as usual.
16703  Remember that in Rev\SpecialChar TeX
16704 , at least one optional argument is required! 
16705 \end_layout
16706
16707 \begin_layout Standard
16708 Other preamble matter, like 
16709 \family typewriter
16710
16711 \backslash
16712 draft
16713 \family default
16714  etc.
16715 \begin_inset space ~
16716 \end_inset
16717
16718 goes in the 
16719 \family sans
16720 \SpecialChar LaTeX
16721
16722 \begin_inset space ~
16723 \end_inset
16724
16725 Preamble
16726 \family default
16727  dialog, also as usual.
16728 \end_layout
16729
16730 \begin_layout Subsection
16731 Layouts
16732 \end_layout
16733
16734 \begin_layout Standard
16735 The layouts basically correspond to the commands in Rev\SpecialChar TeX
16736 4.0.
16737  For example, the Email layout corresponds to 
16738 \family typewriter
16739
16740 \backslash
16741 email{}
16742 \family default
16743 .
16744  Note that (at least as of Rev\SpecialChar TeX
16745  4.0 Beta), the 
16746 \family sans
16747 Address
16748 \family default
16749  and 
16750 \family sans
16751 Affiliation
16752 \family default
16753  layouts are exactly equivalent, so you shouldn't need to use both.
16754 \begin_inset Foot
16755 status collapsed
16756
16757 \begin_layout Plain Layout
16758 In case you're curious, both were included so that 
16759 \family typewriter
16760 tex2lyx
16761 \family default
16762  would be able to translate both 
16763 \family typewriter
16764
16765 \backslash
16766 address
16767 \family default
16768  and 
16769 \family typewriter
16770
16771 \backslash
16772 affiliation
16773 \family default
16774 .
16775 \end_layout
16776
16777 \end_inset
16778
16779
16780 \end_layout
16781
16782 \begin_layout Subsection
16783 Important Notes
16784 \end_layout
16785
16786 \begin_layout Standard
16787 There are a couple of important unique aspects of Rev\SpecialChar TeX
16788  4 which might cause
16789  bugs that will be even more confusing in \SpecialChar LyX
16790 .
16791 \end_layout
16792
16793 \begin_layout Standard
16794 In Rev\SpecialChar TeX
16795 , the 
16796 \family typewriter
16797
16798 \backslash
16799 thanks
16800 \family default
16801  command goes 
16802 \emph on
16803 outside
16804 \emph default
16805  the 
16806 \family typewriter
16807
16808 \backslash
16809 author
16810 \family default
16811  command.
16812  The \SpecialChar LyX
16813  equivalent is that there is a separate Thanks layout.
16814  Do 
16815 \emph on
16816 not
16817 \emph default
16818  write footnotes in the 
16819 \family sans
16820 Author
16821 \family default
16822  layout, or weird things may happen.
16823  See the Rev\SpecialChar TeX
16824  4 documentation for more details.
16825 \end_layout
16826
16827 \begin_layout Standard
16828 Also, the 
16829 \family sans
16830 Author
16831 \begin_inset space ~
16832 \end_inset
16833
16834 Email
16835 \family default
16836
16837 \family sans
16838 Author
16839 \begin_inset space ~
16840 \end_inset
16841
16842 URL
16843 \family default
16844 , and 
16845 \family sans
16846 Thanks
16847 \family default
16848  layouts must be placed 
16849 \emph on
16850 in between
16851 \emph default
16852  the 
16853 \family sans
16854 Author
16855 \family default
16856  layout and the corresponding 
16857 \family sans
16858 Address
16859 \family default
16860  (or equivalent 
16861 \family sans
16862 Affiliation
16863 \family default
16864 ) layout.
16865  If you put the 
16866 \family sans
16867 Thanks
16868 \family default
16869  after the 
16870 \family sans
16871 Address
16872 \family default
16873 , the \SpecialChar LaTeX
16874  won't compile.
16875 \end_layout
16876
16877 \begin_layout Subsection
16878 Drawbacks
16879 \end_layout
16880
16881 \begin_layout Standard
16882 The main problem with this layout is that you can't use the optional arguments
16883  to layouts like Email and Title.
16884  (The problem is not unique to this layout; you can't use optional arguments
16885  to the Section layouts either.) This means that after you export that file
16886  to \SpecialChar LaTeX
16887  (which you'll need to do eventually to send it in to APS), you'll need
16888  to edit the \SpecialChar LaTeX
16889  file with a text editor to add the optional arguments to set,
16890  e.
16891 \begin_inset space \thinspace{}
16892 \end_inset
16893
16894 g.
16895 \begin_inset space \space{}
16896 \end_inset
16897
16898 the running title for the page headers.
16899  Lacking these layouts makes the 
16900 \family typewriter
16901
16902 \backslash
16903 altaffiliation
16904 \family default
16905  (and the equivalent 
16906 \family typewriter
16907
16908 \backslash
16909 altaddress
16910 \family default
16911 ) useless, so the corresponding layouts don't exist, and will have to be
16912  added by hand.
16913 \begin_inset Foot
16914 status collapsed
16915
16916 \begin_layout Plain Layout
16917
16918 \emph on
16919 Note from JMarc:
16920 \emph default
16921  actually, \SpecialChar LyX
16922  1.3.0 supports some forms of optional arguments, but this layout
16923  has not been updated yet to take advantage of it.
16924 \end_layout
16925
16926 \end_inset
16927
16928  
16929 \end_layout
16930
16931 \begin_layout Section
16932 Springer Journals (
16933 \family sans
16934 svjour
16935 \family default
16936 )
16937 \end_layout
16938
16939 \begin_layout Standard
16940 by 
16941 \noun on
16942 Martin Vermeer
16943 \end_layout
16944
16945 \begin_layout Subsection
16946 Description
16947 \end_layout
16948
16949 \begin_layout Standard
16950 These are the layout files for some of the journal formats used by Springer
16951  Verlag and listed on 
16952 \begin_inset Flex URL
16953 status collapsed
16954
16955 \begin_layout Plain Layout
16956
16957 http://www.springer.de/author/tex/help-journals.html
16958 \end_layout
16959
16960 \end_inset
16961
16962 , where you should also go to fetch the class files (yes, these are \SpecialChar LaTeX2e
16963  now!).
16964  It is a modular system: the things common to all journals are implemented
16965  in 
16966 \family typewriter
16967 svjour.inc
16968 \family default
16969 , which journal-specific layout files (such as, e.
16970 \begin_inset space \thinspace{}
16971 \end_inset
16972
16973 g.
16974 \begin_inset space \space{}
16975 \end_inset
16976
16977
16978 \family typewriter
16979 svjog.layout
16980 \family default
16981  for Journal of Geodesy) can include.
16982 \end_layout
16983
16984 \begin_layout Standard
16985 This means that implementing support for any other Springer journal on this
16986  list is as simple as writing your own 
16987 \family typewriter
16988 sv
16989 \family default
16990 <myjournal>
16991 \family typewriter
16992 .layout
16993 \family default
16994  file following the outline given in 
16995 \family typewriter
16996 svjog.layout
16997 \family default
16998 .
16999  
17000 \end_layout
17001
17002 \begin_layout Standard
17003 It is reasonably well tested only for the Journal of Geodesy.
17004  
17005 \family typewriter
17006 svjour
17007 \family default
17008  and 
17009 \family typewriter
17010 svjog
17011 \family default
17012  come with the standard \SpecialChar LyX
17013  distribution.
17014  Install the relevant class file (downloaded from Springer) in a proper
17015  directory, reconfigure \SpecialChar LaTeX
17016  (in the te\SpecialChar TeX
17017  case by running 
17018 \family typewriter
17019 texhash
17020 \family default
17021 , as root if necessary — doesn't \SpecialChar LyX
17022  take care of this?), reconfigure \SpecialChar LyX
17023  and
17024  it should work.
17025 \end_layout
17026
17027 \begin_layout Subsection
17028 New styles
17029 \end_layout
17030
17031 \begin_layout Standard
17032 A large number of theorem-like styles — 
17033 \family sans
17034 Claim, Conjecture,
17035 \family default
17036  
17037 \family sans
17038 \SpecialChar ldots
17039 Theorem
17040 \family default
17041 .
17042 \end_layout
17043
17044 \begin_layout Standard
17045
17046 \family sans
17047 Headnote, Dedication, Subtitle, Running_\SpecialChar LaTeX
17048 _Title, Author_Running, Institute,
17049  Mail, Offprints, Keywords, Acknowledgements, Acknowledgement
17050 \family default
17051 .
17052  See the Springer class file documentation for details.
17053 \end_layout
17054
17055 \begin_layout Subsection
17056 Supported journals
17057 \end_layout
17058
17059 \begin_layout Itemize
17060
17061 \emph on
17062 Journal of Geodesy
17063 \emph default
17064
17065 \family typewriter
17066 svjog.layout
17067 \family default
17068  — Martin Vermeer
17069 \end_layout
17070
17071 \begin_layout Itemize
17072
17073 \emph on
17074 Probability Theory and Related Fields
17075 \emph default
17076
17077 \family typewriter
17078 svprobth.layout
17079 \family default
17080  — Jean-Marc Lasgouttes
17081 \end_layout
17082
17083 \begin_layout Standard
17084 Add your own, it isn't so hard!
17085 \end_layout
17086
17087 \begin_layout Subsection
17088 Credits
17089 \end_layout
17090
17091 \begin_layout Standard
17092 These files are partly based on the older 
17093 \family typewriter
17094 ejour2.layout
17095 \family default
17096 , which was again based on a tinkered-with version of an old \SpecialChar LaTeX
17097  2.09 style
17098  file from Springer.
17099  All this, and the 
17100 \family typewriter
17101 ejour2
17102 \family default
17103  layout, are now defunct.
17104  Jean-Marc Lasgouttes helped out big in making me find my way around the
17105  \SpecialChar LyX
17106  layout file mechanism.
17107 \end_layout
17108
17109 \begin_layout Subsection
17110 Bugs
17111 \end_layout
17112
17113 \begin_layout Standard
17114 Probably.
17115  But probably less than in the old hacked-\SpecialChar LaTeX
17116  
17117 \family typewriter
17118 ejour2
17119 \family default
17120 .
17121 \end_layout
17122
17123 \begin_layout Standard
17124 Limitations e.
17125 \begin_inset space \thinspace{}
17126 \end_inset
17127
17128 g.: does not display the number for theorem-like layouts, just #.
17129 \end_layout
17130
17131 \begin_layout Section
17132 Slides [aka 
17133 \noun on
17134 Sli\SpecialChar TeX
17135
17136 \noun default
17137 ]
17138 \begin_inset CommandInset label
17139 LatexCommand label
17140 name "sec:slitex"
17141
17142 \end_inset
17143
17144
17145 \end_layout
17146
17147 \begin_layout Standard
17148 by 
17149 \noun on
17150 John Weiss
17151 \noun default
17152  
17153 \end_layout
17154
17155 \begin_layout Subsection
17156 Introduction
17157 \end_layout
17158
17159 \begin_layout Standard
17160 This section describes how to use \SpecialChar LyX
17161  to make slides for overhead projectors.
17162  There are two document classes that can do this: the default slides class
17163  and the 
17164 \family sans
17165 Foil\SpecialChar TeX
17166
17167 \family default
17168  slides class.
17169  This section documents the former.
17170 \end_layout
17171
17172 \begin_layout Standard
17173 I'm going to say this again, nice and clear, so that there's no misunderstanding
17174 :
17175 \end_layout
17176
17177 \begin_layout Standard
17178 \begin_inset VSpace bigskip
17179 \end_inset
17180
17181
17182 \end_layout
17183
17184 \begin_layout Standard
17185 \align center
17186
17187 \size large
17188 This section documents the class 
17189 \begin_inset Quotes eld
17190 \end_inset
17191
17192
17193 \family sans
17194 slides (default)
17195 \family default
17196
17197 \begin_inset Quotes erd
17198 \end_inset
17199
17200  
17201 \emph on
17202 only.
17203 \end_layout
17204
17205 \begin_layout Standard
17206 \begin_inset VSpace bigskip
17207 \end_inset
17208
17209
17210 \end_layout
17211
17212 \begin_layout Standard
17213 If you're looking for the documentation for 
17214 \begin_inset Quotes eld
17215 \end_inset
17216
17217
17218 \family sans
17219 slides (Foil\SpecialChar TeX
17220 )
17221 \family default
17222
17223 \begin_inset Quotes erd
17224 \end_inset
17225
17226 , check out section
17227 \begin_inset space ~
17228 \end_inset
17229
17230
17231 \begin_inset CommandInset ref
17232 LatexCommand ref
17233 reference "sec:foiltex"
17234
17235 \end_inset
17236
17237 .
17238  The 
17239 \family sans
17240 foils
17241 \family default
17242  class [
17243 \begin_inset Quotes eld
17244 \end_inset
17245
17246
17247 \family sans
17248 slides (Foil\SpecialChar TeX
17249 )
17250 \family default
17251
17252 \begin_inset Quotes erd
17253 \end_inset
17254
17255 ] is actually somewhat better than the default 
17256 \family sans
17257 slides
17258 \family default
17259  class,
17260 \begin_inset Foot
17261 status collapsed
17262
17263 \begin_layout Plain Layout
17264 \SpecialChar ldots
17265 or so I've been told repeatedly by its advocates.
17266  Having never used it, I have no idea if this claim is true or not.
17267 \end_layout
17268
17269 \end_inset
17270
17271  which this section documents.
17272 \end_layout
17273
17274 \begin_layout Standard
17275 This class is the \SpecialChar LaTeX2e
17276  improvement of the old 
17277 \noun on
17278 Sli\SpecialChar TeX
17279
17280 \noun default
17281  package.
17282  Every \SpecialChar LaTeX2e
17283  distribution includes this class [which I'll just refer to as 
17284 \begin_inset Quotes eld
17285 \end_inset
17286
17287
17288 \family sans
17289 slides
17290 \family default
17291
17292 \begin_inset Quotes erd
17293 \end_inset
17294
17295  from now on], so you're bound to have it.
17296  As I noted earlier, there are other classes, such as 
17297 \family sans
17298 foils
17299 \family default
17300 , which also produce slides for overhead projectors and do a better job
17301  at it.
17302  However, there are some things which 
17303 \family sans
17304 slides
17305 \family default
17306  can do which the others can't, such as generate overlays.
17307  Read on to learn more!
17308 \end_layout
17309
17310 \begin_layout Subsection
17311 Getting Started
17312 \begin_inset CommandInset label
17313 LatexCommand label
17314 name "sec:slidesetup"
17315
17316 \end_inset
17317
17318
17319 \end_layout
17320
17321 \begin_layout Standard
17322 Obviously, to use this document class, you need to select 
17323 \begin_inset Quotes eld
17324 \end_inset
17325
17326
17327 \family sans
17328 slides (default)
17329 \family default
17330
17331 \begin_inset Quotes erd
17332 \end_inset
17333
17334  from the class list in the 
17335 \family sans
17336 Document\SpecialChar menuseparator
17337 Settings
17338 \family default
17339  dialog.
17340  There are some other special things you should know about this class:
17341 \end_layout
17342
17343 \begin_layout Itemize
17344 Don't bother changing the options 
17345 \family sans
17346 Sides and Columns
17347 \family default
17348 .
17349  They're not supported by the 
17350 \family sans
17351 slides
17352 \family default
17353  class, anyways.
17354 \end_layout
17355
17356 \begin_layout Itemize
17357 The option 
17358 \family sans
17359 Page
17360 \begin_inset space ~
17361 \end_inset
17362
17363 style
17364 \family default
17365  behaves a bit differently for this class.
17366  The possible choices and what they do are as follows:
17367 \end_layout
17368
17369 \begin_deeper
17370 \begin_layout Description
17371
17372 \family sans
17373 plain
17374 \family default
17375  The final output contains page numbers in the lower right corner.
17376 \end_layout
17377
17378 \begin_layout Description
17379
17380 \family sans
17381 headings
17382 \family default
17383  Like 
17384 \family sans
17385 plain
17386 \family default
17387 , but also prints out any time markers you've put in.
17388  This is the default.
17389 \end_layout
17390
17391 \begin_layout Description
17392
17393 \family sans
17394 empty
17395 \family default
17396  The final output contains no page numbers, time markers, or alignment markers.
17397 \end_layout
17398
17399 \end_deeper
17400 \begin_layout Itemize
17401 The 
17402 \family sans
17403 slides
17404 \family default
17405  class has an extra option: 
17406 \family typewriter
17407 clock
17408 \family default
17409 .
17410  To use it, put 
17411 \begin_inset Quotes eld
17412 \end_inset
17413
17414
17415 \family typewriter
17416 clock
17417 \family default
17418
17419 \begin_inset Quotes erd
17420 \end_inset
17421
17422  in the extra class options.
17423 \end_layout
17424
17425 \begin_deeper
17426 \begin_layout Standard
17427 Using this options allows you to add time markers to 
17428 \family sans
17429 Note
17430 \family default
17431 s.
17432  See section
17433 \begin_inset space ~
17434 \end_inset
17435
17436
17437 \begin_inset CommandInset ref
17438 LatexCommand ref
17439 reference "sec:slideNote"
17440
17441 \end_inset
17442
17443  for more details.
17444 \end_layout
17445
17446 \end_deeper
17447 \begin_layout Standard
17448 You can also use the template file 
17449 \begin_inset Quotes eld
17450 \end_inset
17451
17452
17453 \family typewriter
17454 slides.lyx
17455 \family default
17456
17457 \begin_inset Quotes erd
17458 \end_inset
17459
17460  to automatically set up a document to use the 
17461 \family sans
17462 slides
17463 \family default
17464  class [using 
17465 \family sans
17466 File\SpecialChar menuseparator
17467 New
17468 \begin_inset space ~
17469 \end_inset
17470
17471 from
17472 \begin_inset space ~
17473 \end_inset
17474
17475 Template
17476 \family default
17477  to open your new document].
17478  The template file also contains some examples of the special paragraph
17479  environments used by this class.
17480  I'll describe those next.
17481 \end_layout
17482
17483 \begin_layout Subsection
17484 Paragraph Environments
17485 \end_layout
17486
17487 \begin_layout Subsubsection
17488 Supported Environments
17489 \end_layout
17490
17491 \begin_layout Standard
17492 The first thing you'll notice when you start up a new 
17493 \family sans
17494 slides
17495 \family default
17496  document is the font size and type: it's the equivalent of the size 
17497 \begin_inset Quotes eld
17498 \end_inset
17499
17500
17501 \family sans
17502 Largest
17503 \family default
17504
17505 \begin_inset Quotes erd
17506 \end_inset
17507
17508  in the 
17509 \family sans
17510 Sans
17511 \begin_inset space ~
17512 \end_inset
17513
17514 Serif
17515 \family default
17516  font.
17517  This is also what's used in the output.
17518  Think of this as a 
17519 \begin_inset Quotes eld
17520 \end_inset
17521
17522 visual cue
17523 \begin_inset Quotes erd
17524 \end_inset
17525
17526  to remind you that this is a slide.
17527  Your final slides will use a larger font; ergo, you'll have less space.
17528  Of course, the larger default screen font isn't WYSIWYG, only a reminder.
17529 \end_layout
17530
17531 \begin_layout Standard
17532 The next thing that becomes obvious is the changes to the paragraph environment
17533  pull-down box [at the far-left end of the toolbar].
17534  Most of the paragraph environments you're used to seeing are missing.
17535  There are also five new ones.
17536  That's because the 
17537 \family sans
17538 slides
17539 \family default
17540  class itself only supports certain paragraph environments:
17541 \end_layout
17542
17543 \begin_layout Itemize
17544
17545 \family sans
17546 Standard
17547 \end_layout
17548
17549 \begin_layout Itemize
17550
17551 \family sans
17552 Itemize
17553 \end_layout
17554
17555 \begin_layout Itemize
17556
17557 \family sans
17558 Enumerate
17559 \end_layout
17560
17561 \begin_layout Itemize
17562
17563 \family sans
17564 Description
17565 \end_layout
17566
17567 \begin_layout Itemize
17568
17569 \family sans
17570 List
17571 \end_layout
17572
17573 \begin_layout Itemize
17574
17575 \family sans
17576 Quotation
17577 \end_layout
17578
17579 \begin_layout Itemize
17580
17581 \family sans
17582 Quote
17583 \end_layout
17584
17585 \begin_layout Itemize
17586
17587 \family sans
17588 Verse
17589 \end_layout
17590
17591 \begin_layout Itemize
17592
17593 \family sans
17594 Caption
17595 \end_layout
17596
17597 \begin_layout Itemize
17598
17599 \family sans
17600 \SpecialChar LyX
17601 -Code
17602 \end_layout
17603
17604 \begin_layout Itemize
17605
17606 \family sans
17607 Comment
17608 \end_layout
17609
17610 \begin_layout Standard
17611 All of the other standard environments, including the section-heading environmen
17612 ts, aren't used in the 
17613 \family sans
17614 slides
17615 \family default
17616  class.
17617 \end_layout
17618
17619 \begin_layout Standard
17620 On the other hand, you'll notice the following new environments:
17621 \end_layout
17622
17623 \begin_layout Itemize
17624
17625 \family sans
17626 Slide
17627 \end_layout
17628
17629 \begin_layout Itemize
17630
17631 \family sans
17632 Overlay
17633 \end_layout
17634
17635 \begin_layout Itemize
17636
17637 \family sans
17638 Note
17639 \end_layout
17640
17641 \begin_layout Itemize
17642
17643 \family sans
17644 InvisibleText
17645 \end_layout
17646
17647 \begin_layout Itemize
17648
17649 \family sans
17650 VisibleText
17651 \end_layout
17652
17653 \begin_layout Standard
17654 These five are kind of quirky, due to a 
17655 \begin_inset Quotes eld
17656 \end_inset
17657
17658 feature
17659 \begin_inset Quotes erd
17660 \end_inset
17661
17662  in \SpecialChar LyX
17663 .
17664  You see, \SpecialChar LyX
17665  doesn't permit you to nest any other paragraph environment into
17666  an empty environment.
17667  Now, that's fine and dandy, but it means that you wouldn't be able to start
17668  a slide with anything except plain text.
17669  To deal with this, I've performed a little 
17670 \begin_inset Quotes eld
17671 \end_inset
17672
17673 \SpecialChar LaTeX
17674  magic.
17675 \begin_inset Quotes erd
17676 \end_inset
17677
17678  
17679 \end_layout
17680
17681 \begin_layout Subsubsection
17682 Quirks of the New Environments
17683 \begin_inset CommandInset label
17684 LatexCommand label
17685 name "sec:slideQuirk"
17686
17687 \end_inset
17688
17689
17690 \end_layout
17691
17692 \begin_layout Standard
17693 All five of the new paragraph environments are somewhat quirky due to inherent
17694  limitiations in the current version of \SpecialChar LyX
17695 .
17696  As I just mentioned, \SpecialChar LyX
17697  forbids environments that begin with another environment.
17698  To get around this, the 
17699 \family sans
17700 Slide
17701 \family default
17702  environment isn't a paragraph environment as described in the 
17703 \emph on
17704 User's Guide
17705 \emph default
17706 .
17707  
17708 \end_layout
17709
17710 \begin_layout Standard
17711 You should consider 
17712 \family sans
17713 Slide
17714 \family default
17715
17716 \family sans
17717 Overlay
17718 \family default
17719 , and 
17720 \family sans
17721 Note
17722 \family default
17723  to be 
17724 \begin_inset Quotes eld
17725 \end_inset
17726
17727 pseudo-environments.
17728 \begin_inset Quotes erd
17729 \end_inset
17730
17731  They look like a section heading or a 
17732 \begin_inset Quotes eld
17733 \end_inset
17734
17735
17736 \family sans
17737 Caption
17738 \family default
17739 ,
17740 \begin_inset Quotes erd
17741 \end_inset
17742
17743  but really begin a [and, if necessary, end the previous] paragraph environment.
17744  Likewise, treat 
17745 \family sans
17746 InvisibleText
17747 \family default
17748  and 
17749 \family sans
17750 VisibleText
17751 \family default
17752  as 
17753 \begin_inset Quotes eld
17754 \end_inset
17755
17756 pseudo-commands.
17757 \begin_inset Quotes erd
17758 \end_inset
17759
17760  These two perform some action.
17761 \end_layout
17762
17763 \begin_layout Standard
17764 A common feature of all five environments, 
17765 \family sans
17766 Slide
17767 \family default
17768
17769 \family sans
17770 Overlay
17771 \family default
17772
17773 \family sans
17774 Note
17775 \family default
17776
17777 \family sans
17778 InvisibleText
17779 \family default
17780  and 
17781 \family sans
17782 VisibleText
17783 \family default
17784 , is a rather long-ish label.
17785  The text following this label — ordinarily the contents of the paragraph
17786  environment — is utterly irrelevant for 
17787 \family sans
17788 Slide
17789 \family default
17790
17791 \family sans
17792 Overlay
17793 \family default
17794
17795 \family sans
17796 Note
17797 \family default
17798
17799 \family sans
17800 InvisibleText
17801 \family default
17802  and 
17803 \family sans
17804 VisibleText
17805 \family default
17806 .
17807  \SpecialChar LyX
17808  completely ignores it.
17809  In fact, you can leave these five environments completely empty.
17810  
17811 \end_layout
17812
17813 \begin_layout Standard
17814 While you don't 
17815 \emph on
17816 have
17817 \emph default
17818  to put any text after the rather long-ish label, you might want to.
17819  This could be a short description of the contents of the 
17820 \family sans
17821 Slide
17822 \family default
17823 , for example.
17824  In that case, enter your descriptive comment and hit 
17825 \family sans
17826 Return
17827 \family default
17828  as you normally would.
17829 \end_layout
17830
17831 \begin_layout Standard
17832 If, on the other hand, you don't want to enter any descriptive text, you'll
17833  hit another \SpecialChar LyX
17834  quirk.
17835  \SpecialChar LyX
17836 , like nature, abhors a vacuum, and will not let you start a new paragraph
17837  environment until you put something in the old one.
17838  So, do this:
17839 \end_layout
17840
17841 \begin_layout Itemize
17842 Start entering the text that will 
17843 \emph on
17844 follow
17845 \emph default
17846  the new 
17847 \family sans
17848 Slide
17849 \family default
17850
17851 \family sans
17852 Overlay
17853 \family default
17854
17855 \family sans
17856 Note
17857 \family default
17858
17859 \family sans
17860 InvisibleText
17861 \family default
17862  or 
17863 \family sans
17864 VisibleText
17865 \family default
17866 .
17867  
17868 \end_layout
17869
17870 \begin_layout Itemize
17871 Now move to the beginning of that paragraph.
17872  
17873 \end_layout
17874
17875 \begin_layout Itemize
17876 Next, hit 
17877 \family sans
17878 Return
17879 \family default
17880 .
17881  
17882 \end_layout
17883
17884 \begin_layout Itemize
17885 Finally, change this new, empty paragraph to a 
17886 \family sans
17887 Slide
17888 \family default
17889
17890 \family sans
17891 Overlay
17892 \family default
17893
17894 \family sans
17895 Note
17896 \family default
17897
17898 \family sans
17899 InvisibleText
17900 \family default
17901  or 
17902 \family sans
17903 VisibleText
17904 \family default
17905 .
17906  
17907 \end_layout
17908
17909 \begin_layout Standard
17910 Some future version of \SpecialChar LyX
17911  will, hopefully, resolve this quirkiness\SpecialChar ldots
17912
17913 \end_layout
17914
17915 \begin_layout Subsection
17916 Making a Presentation with 
17917 \family sans
17918 Slide
17919 \family default
17920
17921 \family sans
17922 Overlay
17923 \family default
17924  and 
17925 \family sans
17926 Note
17927 \end_layout
17928
17929 \begin_layout Subsubsection
17930 Using the 
17931 \family sans
17932 Slide
17933 \family default
17934  Environment
17935 \end_layout
17936
17937 \begin_layout Standard
17938 If you're expecting this section to teach you how to actually make a presentatio
17939 n, you'll be sorely disappointed.
17940  Naturally, I'll describe all of the ways the 
17941 \family sans
17942 slides
17943 \family default
17944  class can assist you in preparing the materials for a presentation.
17945  Filling in the contents, however, is up to you.
17946  [Then again, that 
17947 \emph on
17948 is
17949 \emph default
17950  the \SpecialChar LyX
17951  philosophy.]
17952 \end_layout
17953
17954 \begin_layout Standard
17955 Choosing the 
17956 \family sans
17957 Slide
17958 \family default
17959  environment [in the manner described in section
17960 \begin_inset space ~
17961 \end_inset
17962
17963
17964 \begin_inset CommandInset ref
17965 LatexCommand ref
17966 reference "sec:slideQuirk"
17967
17968 \end_inset
17969
17970 ] tells \SpecialChar LyX
17971  to begin a new slide [duh].
17972  The label for this environment/
17973 \begin_inset Quotes erd
17974 \end_inset
17975
17976 pseudo-command
17977 \begin_inset Quotes erd
17978 \end_inset
17979
17980  is an 
17981 \begin_inset Quotes eld
17982 \end_inset
17983
17984 ASCII line,
17985 \begin_inset Quotes erd
17986 \end_inset
17987
17988  in cool blue, followed by the label, 
17989 \begin_inset Quotes eld
17990 \end_inset
17991
17992 NewSlide:
17993 \begin_inset Quotes erd
17994 \end_inset
17995
17996 .
17997  Any text or paragraph environments that follow this one go on the new slide.
17998  It's that simple.
17999 \end_layout
18000
18001 \begin_layout Standard
18002 Slides are probably the only time you'll need to forcibly end pages in \SpecialChar LyX
18003
18004  (this can be specified in the 
18005 \family sans
18006 Paragraph Layout
18007 \family default
18008  dialog).
18009  In fact, you'll want to, once you finish entering the contents of one slide.
18010  If you've entered more text than can physically fit on a slide, the extra
18011  overflows onto a new slide.
18012  I don't recommend doing this, however, since the overflow slide won't have
18013  any page number on it.
18014  Furthermore, it may interfere with any 
18015 \family sans
18016 Overlay
18017 \family default
18018  you've made to accompany the oversized 
18019 \family sans
18020 Slide
18021 \family default
18022 .
18023 \end_layout
18024
18025 \begin_layout Standard
18026 The 
18027 \family sans
18028 Overlay
18029 \family default
18030  and 
18031 \family sans
18032 Note
18033 \family default
18034  environments work the same way as the 
18035 \family sans
18036 Slide
18037 \family default
18038  environment.
18039  They both create an 
18040 \begin_inset Quotes eld
18041 \end_inset
18042
18043 ASCII line
18044 \begin_inset Quotes erd
18045 \end_inset
18046
18047  followed by a label [
18048 \begin_inset Quotes eld
18049 \end_inset
18050
18051 NewOverlay:
18052 \begin_inset Quotes erd
18053 \end_inset
18054
18055  and 
18056 \begin_inset Quotes eld
18057 \end_inset
18058
18059 NewNote:
18060 \begin_inset Quotes erd
18061 \end_inset
18062
18063 , respectively].
18064  The color is a stunning magenta instead of blue, and the 
18065 \begin_inset Quotes eld
18066 \end_inset
18067
18068 ASCII line
18069 \begin_inset Quotes erd
18070 \end_inset
18071
18072  will look different, in style and in length.
18073  The label fonts of all three also differ from one another.
18074 \end_layout
18075
18076 \begin_layout Standard
18077 As with a 
18078 \family sans
18079 Slide
18080 \family default
18081 , if the contents of a 
18082 \family sans
18083 Note
18084 \family default
18085  or 
18086 \family sans
18087 Overlay
18088 \family default
18089  exceed the physical size of a slide or sheet of paper, the extra will overflow
18090  onto a new sheet.
18091  Again, you should avoid this.
18092  It defeats the whole purpose of 
18093 \family sans
18094 Note
18095 \family default
18096 s and 
18097 \family sans
18098 Overlay
18099 \family default
18100 s.
18101 \end_layout
18102
18103 \begin_layout Subsubsection
18104 Using 
18105 \family sans
18106 Overlay
18107 \family default
18108  with 
18109 \family sans
18110 Slide
18111 \end_layout
18112
18113 \begin_layout Standard
18114 The idea behind an 
18115 \family sans
18116 Overlay
18117 \family default
18118  is a slide that sits atop another slide.
18119  Perhaps you wish to discuss a figure on the main 
18120 \family sans
18121 Slide
18122 \family default
18123  before displaying the text associated with it.
18124  One way to accomplish this is tape a flap of dark paper over the part of
18125  the 
18126 \family sans
18127 Slide
18128 \family default
18129  you want to display later.
18130  This method fails, however, if you wish to overlap one graph with another,
18131  for example.
18132  You would then have to fumble while speaking to align the two separate,
18133  overlapping 
18134 \family sans
18135 Slide
18136 \family default
18137 s to align the two graphs.
18138  The use of an 
18139 \family sans
18140 Overlay
18141 \family default
18142  environment in both cases makes life much easier.
18143 \end_layout
18144
18145 \begin_layout Standard
18146 Each 
18147 \family sans
18148 Overlay
18149 \family default
18150  receives the page number of its 
18151 \begin_inset Quotes eld
18152 \end_inset
18153
18154 parent
18155 \begin_inset Quotes erd
18156 \end_inset
18157
18158  
18159 \family sans
18160 Slide
18161 \family default
18162 , appended by 
18163 \begin_inset Quotes eld
18164 \end_inset
18165
18166
18167 \family typewriter
18168 -a
18169 \family default
18170
18171 \begin_inset Quotes erd
18172 \end_inset
18173
18174 .
18175 \begin_inset Foot
18176 status collapsed
18177
18178 \begin_layout Plain Layout
18179 Presumably, mutliple 
18180 \family sans
18181 Overlay
18182 \family default
18183 s would have 
18184 \begin_inset Quotes eld
18185 \end_inset
18186
18187
18188 \family typewriter
18189 -a
18190 \family default
18191
18192 \begin_inset Quotes erd
18193 \end_inset
18194
18195
18196 \begin_inset Quotes eld
18197 \end_inset
18198
18199
18200 \family typewriter
18201 -b
18202 \family default
18203
18204 \begin_inset Quotes erd
18205 \end_inset
18206
18207
18208 \begin_inset Quotes eld
18209 \end_inset
18210
18211
18212 \family typewriter
18213 -c
18214 \family default
18215
18216 \begin_inset Quotes erd
18217 \end_inset
18218
18219 , etc.
18220 \begin_inset space ~
18221 \end_inset
18222
18223 appended to the page number of the parent 
18224 \family sans
18225 Slide
18226 \family default
18227 .
18228  
18229 \end_layout
18230
18231 \end_inset
18232
18233  Clearly, you want the contents of both the 
18234 \family sans
18235 Slide
18236 \family default
18237  and the 
18238 \family sans
18239 Overlay
18240 \family default
18241  to each fit on a single physical slide! You should probably consider an
18242  
18243 \family sans
18244 Overlay
18245 \family default
18246  as 
18247 \begin_inset Quotes eld
18248 \end_inset
18249
18250 part of
18251 \begin_inset Quotes erd
18252 \end_inset
18253
18254  a 
18255 \family sans
18256 Slide
18257 \family default
18258 .
18259  Indeed, the \SpecialChar LyX
18260  
18261 \family sans
18262 slides
18263 \family default
18264  class provides a visual cue for this: the label at the start of an 
18265 \family sans
18266 Overlay
18267 \family default
18268  is shorter than that at the start of a 
18269 \family sans
18270 Slide
18271 \family default
18272 .
18273  Lastly, when you generate printable output, you'll find alignment markers
18274  in all four corners of both the 
18275 \family sans
18276 Overlay
18277 \family default
18278  page and its parent 
18279 \family sans
18280 Slide
18281 \family default
18282 .
18283  These will assist you in lining up the two physical slides.
18284 \end_layout
18285
18286 \begin_layout Standard
18287 The major problem in overlaying two slides is aligning the contents of the
18288  two transparencies.
18289  How much space should you leave for that graph on the second slide? Worse
18290  still, what if you want a graph and a sentence on second slide, but there
18291  is text on the main transparency that goes in between them? You could try
18292  and insert vertical space of the right size.
18293  The better way is to use 
18294 \family sans
18295 InvisibleText
18296 \family default
18297  and 
18298 \family sans
18299 VisibleText
18300 \family default
18301 .
18302 \end_layout
18303
18304 \begin_layout Standard
18305 As their names imply, 
18306 \family sans
18307 InvisibleText
18308 \family default
18309  and 
18310 \family sans
18311 VisibleText
18312 \family default
18313  are two command-like paragraph environments that make all subsequent text
18314  invisible and visible, respectively.
18315  Note from section
18316 \begin_inset space ~
18317 \end_inset
18318
18319
18320 \begin_inset CommandInset ref
18321 LatexCommand ref
18322 reference "sec:slideQuirk"
18323
18324 \end_inset
18325
18326  that you don't place anything 
18327 \emph on
18328 into
18329 \emph default
18330  these two environments, however.
18331  When you create an 
18332 \family sans
18333 InvisibleText
18334 \family default
18335 , it inserts a centered, sky-blue label into the page reading 
18336 \begin_inset Quotes eld
18337 \end_inset
18338
18339 <Invisible Text Follows>
18340 \begin_inset Quotes erd
18341 \end_inset
18342
18343 .
18344  For paragraphs following this label, the parts of the 
18345 \family sans
18346 Slide
18347 \family default
18348  [or 
18349 \family sans
18350 Overlay
18351 \family default
18352 ; it doesn't matter which] where they would be contain instead blank space.
18353  
18354 \end_layout
18355
18356 \begin_layout Standard
18357 For 
18358 \family sans
18359 VisibleText
18360 \family default
18361 , the corresponding centered label is 
18362 \begin_inset Quotes eld
18363 \end_inset
18364
18365 <Visible Text Follows>
18366 \begin_inset Quotes erd
18367 \end_inset
18368
18369  in blazing green.
18370  Paragraphs following this label behave normally.
18371  Note that the beginning of a new 
18372 \family sans
18373 Slide
18374 \family default
18375
18376 \family sans
18377 Overlay
18378 \family default
18379 , or 
18380 \family sans
18381 Note
18382 \family default
18383  automatically shuts off an 
18384 \family sans
18385 InvisibleText
18386 \family default
18387 .
18388  It's therefore not necessary to use 
18389 \family sans
18390 VisibleText
18391 \family default
18392  at the end of a 
18393 \family sans
18394 Slide
18395 \family default
18396 .
18397 \end_layout
18398
18399 \begin_layout Standard
18400 By now, it should be obvious how to create overlay transparencies using
18401  the proper combination of 
18402 \family sans
18403 InvisibleText
18404 \family default
18405  and 
18406 \family sans
18407 VisibleText
18408 \family default
18409  on a 
18410 \family sans
18411 Slide
18412 \family default
18413  and 
18414 \family sans
18415 Overlay
18416 \family default
18417 :
18418 \end_layout
18419
18420 \begin_layout Enumerate
18421 Create a 
18422 \family sans
18423 Slide
18424 \family default
18425 , including everything that will appear on it, whether on the main slide
18426  or on the 
18427 \family sans
18428 Overlay
18429 \family default
18430 .
18431 \end_layout
18432
18433 \begin_layout Enumerate
18434 Before each figure or paragraph that will appear only on the 
18435 \family sans
18436 Overlay
18437 \family default
18438 , insert an 
18439 \family sans
18440 InvisibleText
18441 \family default
18442  environment.
18443  If necessary, insert a 
18444 \family sans
18445 VisibleText
18446 \family default
18447  environment after the 
18448 \family sans
18449 Overlay
18450 \family default
18451 -only text.
18452 \end_layout
18453
18454 \begin_layout Enumerate
18455 Start an 
18456 \family sans
18457 Overlay
18458 \family default
18459  immediately following the 
18460 \family sans
18461 Slide
18462 \family default
18463 .
18464 \end_layout
18465
18466 \begin_layout Enumerate
18467 Copy the contents of this 
18468 \family sans
18469 Slide
18470 \family default
18471  into the 
18472 \family sans
18473 Overlay
18474 \family default
18475 .
18476 \end_layout
18477
18478 \begin_layout Enumerate
18479 Within the 
18480 \family sans
18481 Overlay
18482 \family default
18483 , change all of the 
18484 \family sans
18485 InvisibleText
18486 \family default
18487  lines to 
18488 \family sans
18489 VisibleText
18490 \family default
18491  and vice-versa.
18492 \end_layout
18493
18494 \begin_layout Standard
18495 That's it.
18496  You've just made an 
18497 \family sans
18498 Overlay
18499 \family default
18500 .
18501 \end_layout
18502
18503 \begin_layout Standard
18504 There's one problem with the way I've designed the \SpecialChar LyX
18505  
18506 \family sans
18507 slides
18508 \family default
18509  class: you can't make text in the middle of a paragraph invisible, nor
18510  make text in the middle of an invisible paragraph visible again.
18511  To accomplish this feat, you'll need to use some inlined \SpecialChar LaTeX
18512  codes.
18513 \begin_inset Foot
18514 status collapsed
18515
18516 \begin_layout Plain Layout
18517 The commands of interest are: 
18518 \end_layout
18519
18520 \begin_layout Itemize
18521
18522 \family typewriter
18523 {
18524 \backslash
18525 invisible \SpecialChar ldots
18526  }
18527 \end_layout
18528
18529 \begin_layout Itemize
18530
18531 \family typewriter
18532 {
18533 \backslash
18534 visible \SpecialChar ldots
18535  }
18536 \end_layout
18537
18538 \begin_layout Plain Layout
18539 \SpecialChar ldots
18540 and need to be marked as \SpecialChar TeX
18541 .
18542  The text whose 
18543 \begin_inset Quotes eld
18544 \end_inset
18545
18546 visibility
18547 \begin_inset Quotes erd
18548 \end_inset
18549
18550  you wish to change goes in between the brackets [and after the 
18551 \family typewriter
18552
18553 \backslash
18554 invisible
18555 \family default
18556  or 
18557 \family typewriter
18558
18559 \backslash
18560 visible
18561 \family default
18562  command].
18563  If you don't know how to mark text as \SpecialChar TeX
18564 , see the appropriate section of
18565  the 
18566 \emph on
18567 User's Guide
18568 \emph default
18569 .
18570 \end_layout
18571
18572 \end_inset
18573
18574
18575 \end_layout
18576
18577 \begin_layout Subsubsection
18578 Using 
18579 \family sans
18580 Note
18581 \family default
18582  with 
18583 \family sans
18584 Slide
18585 \family default
18586
18587 \begin_inset CommandInset label
18588 LatexCommand label
18589 name "sec:slideNote"
18590
18591 \end_inset
18592
18593
18594 \end_layout
18595
18596 \begin_layout Standard
18597 Like an 
18598 \family sans
18599 Overlay
18600 \family default
18601 , a 
18602 \family sans
18603 Note
18604 \family default
18605  is associated with a 
18606 \begin_inset Quotes eld
18607 \end_inset
18608
18609 parent
18610 \begin_inset Quotes erd
18611 \end_inset
18612
18613  
18614 \family sans
18615 Slide
18616 \family default
18617 .
18618  Here, too, the \SpecialChar LyX
18619  
18620 \family sans
18621 slides
18622 \family default
18623  class provides visual cues.
18624  The label for a 
18625 \family sans
18626 Note
18627 \family default
18628  is shorter than that of a 
18629 \family sans
18630 Slide
18631 \family default
18632  [yet longer than that of an 
18633 \family sans
18634 Overlay
18635 \family default
18636 ] and, like the label of an 
18637 \family sans
18638 Overlay
18639 \family default
18640  is shockingly magenta.
18641  Additionally, the printed 
18642 \family sans
18643 Note
18644 \family default
18645  has the page number of its 
18646 \begin_inset Quotes eld
18647 \end_inset
18648
18649 parent
18650 \begin_inset Quotes erd
18651 \end_inset
18652
18653  
18654 \family sans
18655 Slide
18656 \family default
18657 , appended by 
18658 \begin_inset Quotes eld
18659 \end_inset
18660
18661
18662 \family typewriter
18663 -
18664 \family default
18665 1
18666 \begin_inset Quotes erd
18667 \end_inset
18668
18669
18670 \begin_inset Quotes eld
18671 \end_inset
18672
18673
18674 \family typewriter
18675 -
18676 \family default
18677 2
18678 \begin_inset Quotes erd
18679 \end_inset
18680
18681
18682 \begin_inset Quotes eld
18683 \end_inset
18684
18685
18686 \family typewriter
18687 -
18688 \family default
18689 3
18690 \begin_inset Quotes erd
18691 \end_inset
18692
18693 , etc.
18694  You can have multiple 
18695 \family sans
18696 Note
18697 \family default
18698 s associated with a single 
18699 \family sans
18700 Slide
18701 \family default
18702 , and, as with 
18703 \family sans
18704 Slide
18705 \family default
18706  and 
18707 \family sans
18708 Overlay
18709 \family default
18710 , you'll probably want to break up long 
18711 \family sans
18712 Note
18713 \family default
18714 s so that they fit on a single sheet of paper.
18715 \end_layout
18716
18717 \begin_layout Standard
18718 The purpose of a 
18719 \family sans
18720 Note
18721 \family default
18722  is obvious: it contains anything additional you might want to say about
18723  a 
18724 \family sans
18725 Slide
18726 \family default
18727 .
18728  It could also be used as a sheet of reminders for a particular 
18729 \family sans
18730 Slide
18731 \family default
18732 .
18733  In the case of the latter, you might want to make use of time markers.
18734  Currently, the \SpecialChar LyX
18735  
18736 \family sans
18737 slides
18738 \family default
18739  class has no 
18740 \begin_inset Quotes eld
18741 \end_inset
18742
18743 native
18744 \begin_inset Quotes erd
18745 \end_inset
18746
18747  support for time markers, a 
18748 \noun on
18749 Sli\SpecialChar TeX
18750
18751 \noun default
18752  feature.
18753  So, you'll have to resort to using the \SpecialChar LaTeX
18754  codes.
18755 \end_layout
18756
18757 \begin_layout Standard
18758 To use time markers, you'll need to specify the extra class option 
18759 \begin_inset Quotes eld
18760 \end_inset
18761
18762
18763 \family typewriter
18764 clock
18765 \family default
18766
18767 \begin_inset Quotes erd
18768 \end_inset
18769
18770  [see section
18771 \begin_inset space ~
18772 \end_inset
18773
18774
18775 \begin_inset CommandInset ref
18776 LatexCommand ref
18777 reference "sec:slidesetup"
18778
18779 \end_inset
18780
18781 ].
18782  This option turns on timing marks, which will appear in the lower-left-hand
18783  corner of every 
18784 \family sans
18785 Note
18786 \family default
18787  you generate.
18788  To set what appears in the time marker, you use the \SpecialChar LaTeX
18789  commands 
18790 \begin_inset Quotes eld
18791 \end_inset
18792
18793
18794 \family typewriter
18795
18796 \backslash
18797 settime{}
18798 \family default
18799
18800 \begin_inset Quotes erd
18801 \end_inset
18802
18803  and 
18804 \begin_inset Quotes eld
18805 \end_inset
18806
18807
18808 \family typewriter
18809
18810 \backslash
18811 addtime{}
18812 \family default
18813
18814 \begin_inset Quotes erd
18815 \end_inset
18816
18817 .
18818  The arguments of both commands are time measured in seconds.
18819  
18820 \begin_inset Quotes eld
18821 \end_inset
18822
18823
18824 \family typewriter
18825
18826 \backslash
18827 settime{}
18828 \family default
18829
18830 \begin_inset Quotes erd
18831 \end_inset
18832
18833  sets the time marker to a given time.
18834  
18835 \begin_inset Quotes eld
18836 \end_inset
18837
18838
18839 \family typewriter
18840
18841 \backslash
18842 addtime{}
18843 \family default
18844
18845 \begin_inset Quotes erd
18846 \end_inset
18847
18848  increments the time marker by the specified amount.
18849  Using time markers and 
18850 \family sans
18851 Note
18852 \family default
18853 s in this fashion, you can remind yourself how much time to spend on a particula
18854
18855 \family sans
18856 Slide
18857 \family default
18858 .
18859 \end_layout
18860
18861 \begin_layout Standard
18862 There's one last feature to describe.
18863  Clearly, you'd like to print out all of your 
18864 \family sans
18865 Slide
18866 \family default
18867 s and 
18868 \family sans
18869 Overlay
18870 \family default
18871 s on transparencies while printing all of your 
18872 \family sans
18873 Note
18874 \family default
18875 s on plain paper.
18876  However, a 
18877 \family sans
18878 Note
18879 \family default
18880  
18881 \emph on
18882 must
18883 \emph default
18884  follow the 
18885 \family sans
18886 Slide
18887 \family default
18888  with which it is associated.
18889  What's a person to do?
18890 \end_layout
18891
18892 \begin_layout Standard
18893 Luckily, there are two \SpecialChar LaTeX
18894  commands that allow you to select what to print
18895  out.
18896  Both must be placed into the preamble of your document.
18897  The command 
18898 \begin_inset Quotes eld
18899 \end_inset
18900
18901
18902 \family typewriter
18903
18904 \backslash
18905 onlyslides{
18906 \backslash
18907 slides}
18908 \family default
18909
18910 \begin_inset Quotes erd
18911 \end_inset
18912
18913  will cause the output to contain only the 
18914 \family sans
18915 Slide
18916 \family default
18917 s and 
18918 \family sans
18919 Overlay
18920 \family default
18921 s.
18922  Correspondingly, the command 
18923 \begin_inset Quotes eld
18924 \end_inset
18925
18926
18927 \family typewriter
18928
18929 \backslash
18930 onlynotes{
18931 \backslash
18932 notes}
18933 \family default
18934
18935 \begin_inset Quotes erd
18936 \end_inset
18937
18938  prevents the output of anything but 
18939 \family sans
18940 Note
18941 \family default
18942 s.
18943  I'd advise placing both commands in the preamble and initially comment
18944  both out.
18945  You can then preview your entire presentation as you write.
18946  When you're done writing, you can then uncomment one of the two to select
18947  what you want to print.
18948  I like to uncomment 
18949 \begin_inset Quotes eld
18950 \end_inset
18951
18952
18953 \family typewriter
18954
18955 \backslash
18956 onlyslides{
18957 \backslash
18958 slides}
18959 \family default
18960
18961 \begin_inset Quotes erd
18962 \end_inset
18963
18964  , print to a file with 
18965 \begin_inset Quotes eld
18966 \end_inset
18967
18968
18969 \family typewriter
18970 -slides
18971 \family default
18972
18973 \begin_inset Quotes erd
18974 \end_inset
18975
18976  in its name, comment it back out, then uncomment 
18977 \begin_inset Quotes eld
18978 \end_inset
18979
18980
18981 \family typewriter
18982
18983 \backslash
18984 onlynotes{
18985 \backslash
18986 notes}
18987 \family default
18988
18989 \begin_inset Quotes erd
18990 \end_inset
18991
18992  and print to a 
18993 \begin_inset Quotes eld
18994 \end_inset
18995
18996
18997 \family typewriter
18998 *-notes.ps
18999 \family default
19000
19001 \begin_inset Quotes erd
19002 \end_inset
19003
19004  file.
19005  I can then send either file to a printer, loading transparencies or plain
19006  paper as appropriate.
19007 \end_layout
19008
19009 \begin_layout Standard
19010 You can also provide other arguments to the 
19011 \begin_inset Quotes eld
19012 \end_inset
19013
19014
19015 \family typewriter
19016
19017 \backslash
19018 onlyslides{}
19019 \family default
19020
19021 \begin_inset Quotes erd
19022 \end_inset
19023
19024  and 
19025 \begin_inset Quotes eld
19026 \end_inset
19027
19028
19029 \family typewriter
19030
19031 \backslash
19032 onlynotes{}
19033 \family default
19034
19035 \begin_inset Quotes erd
19036 \end_inset
19037
19038  commands.
19039  See a good \SpecialChar LaTeX
19040  book for details.
19041 \end_layout
19042
19043 \begin_layout Subsection
19044 The 
19045 \family sans
19046 slides
19047 \family default
19048  Class Template File
19049 \end_layout
19050
19051 \begin_layout Standard
19052 I have also provided a template file, 
19053 \begin_inset Quotes eld
19054 \end_inset
19055
19056
19057 \family typewriter
19058 slides.lyx
19059 \family default
19060
19061 \begin_inset Quotes erd
19062 \end_inset
19063
19064 , with the 
19065 \family sans
19066 slides
19067 \family default
19068  class.
19069  To use it, begin your new presentation with 
19070 \family sans
19071 File\SpecialChar menuseparator
19072 New
19073 \begin_inset space ~
19074 \end_inset
19075
19076 from
19077 \begin_inset space ~
19078 \end_inset
19079
19080 Template
19081 \family default
19082 .
19083  Your new \SpecialChar LyX
19084  presentation file will contain an example 
19085 \family sans
19086 Slide
19087 \family default
19088  – 
19089 \family sans
19090 Overlay
19091 \family default
19092  – 
19093 \family sans
19094 Note
19095 \family default
19096  triplet.
19097  The 
19098 \family sans
19099 Slide
19100 \family default
19101  and 
19102 \family sans
19103 Overlay
19104 \family default
19105  additionally contain an example of the use of 
19106 \family sans
19107 InvisibleText
19108 \family default
19109  and 
19110 \family sans
19111 VisibleText
19112 \family default
19113 .
19114  Lastly, the preamble will contain:
19115 \end_layout
19116
19117 \begin_layout LyX-Code
19118 % Uncomment to print out only slides and overlays
19119 \end_layout
19120
19121 \begin_layout LyX-Code
19122 %
19123 \end_layout
19124
19125 \begin_layout LyX-Code
19126 %
19127 \backslash
19128 onlyslides{
19129 \backslash
19130 slides}
19131 \begin_inset Newline newline
19132 \end_inset
19133
19134  
19135 \end_layout
19136
19137 \begin_layout LyX-Code
19138 % Uncomment to print out only notes
19139 \end_layout
19140
19141 \begin_layout LyX-Code
19142 %
19143 \end_layout
19144
19145 \begin_layout LyX-Code
19146 %
19147 \backslash
19148 onlynotes{
19149 \backslash
19150 notes}
19151 \end_layout
19152
19153 \begin_layout Standard
19154 One final thing: I created this class to support the \SpecialChar LaTeX2e
19155  
19156 \begin_inset Quotes eld
19157 \end_inset
19158
19159
19160 \noun on
19161 Sli\SpecialChar TeX
19162
19163 \noun default
19164  emulation
19165 \begin_inset Quotes erd
19166 \end_inset
19167
19168  class, one of the built-in \SpecialChar LaTeX2e
19169  classes.
19170  Neither I nor the rest of the \SpecialChar LyX
19171  Team endorse or oppose the use of this built-in
19172  slide class.
19173  It's here if you want it or need it.
19174  There exist other \SpecialChar LaTeX2e
19175  classes for creating presentations, such as the 
19176 \family sans
19177 Foils
19178 \family default
19179  class [see section
19180 \begin_inset space ~
19181 \end_inset
19182
19183
19184 \begin_inset CommandInset ref
19185 LatexCommand ref
19186 reference "sec:foiltex"
19187
19188 \end_inset
19189
19190 ] or the 
19191 \begin_inset Quotes eld
19192 \end_inset
19193
19194
19195 \family typewriter
19196 seminar
19197 \family default
19198
19199 \begin_inset Quotes erd
19200 \end_inset
19201
19202  package [present on some \SpecialChar TeX
19203  distributions].
19204  The latter is not yet supported under \SpecialChar LyX
19205 .
19206 \begin_inset Foot
19207 status collapsed
19208
19209 \begin_layout Plain Layout
19210 Perhaps you can take on the task\SpecialChar ldots
19211
19212 \end_layout
19213
19214 \end_inset
19215
19216  I know nothing about these other classes.
19217  Try them out to see what sort of alternative they provide.
19218 \end_layout
19219
19220 \begin_layout Chapter
19221 \SpecialChar LyX
19222  Features needing Extra Software
19223 \end_layout
19224
19225 \begin_layout Section
19226 Checking \SpecialChar TeX
19227
19228 \end_layout
19229
19230 \begin_layout Standard
19231 by 
19232 \noun on
19233 Asger Alstrup
19234 \end_layout
19235
19236 \begin_layout Subsection
19237 Introduction
19238 \end_layout
19239
19240 \begin_layout Standard
19241 If you have the 
19242 \family typewriter
19243 chktex
19244 \family default
19245  program installed
19246 \begin_inset Foot
19247 status collapsed
19248
19249 \begin_layout Plain Layout
19250
19251 \family typewriter
19252 chktex
19253 \family default
19254  is not yet available when you are using the \SpecialChar LaTeX
19255  distribution MiK\SpecialChar TeX
19256 .
19257 \end_layout
19258
19259 \end_inset
19260
19261 , you'll find in the 
19262 \family sans
19263 Tools
19264 \family default
19265  menu the entry: 
19266 \family sans
19267 Check
19268 \begin_inset space ~
19269 \end_inset
19270
19271 TeX
19272 \family default
19273 .
19274  You can get 
19275 \family typewriter
19276 chktex
19277 \family default
19278  from CTAN,
19279 \begin_inset Newline newline
19280 \end_inset
19281
19282
19283 \begin_inset CommandInset href
19284 LatexCommand href
19285 target "http://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
19286 literal "false"
19287
19288 \end_inset
19289
19290 .
19291 \end_layout
19292
19293 \begin_layout Standard
19294 The 
19295 \family sans
19296 Chk\SpecialChar TeX
19297
19298 \family default
19299  package is a program that was written by 
19300 \begin_inset Flex Noun
19301 status collapsed
19302
19303 \begin_layout Plain Layout
19304 Jens T.
19305 \begin_inset space ~
19306 \end_inset
19307
19308 Berger Thielemann
19309 \end_layout
19310
19311 \end_inset
19312
19313  in frustration because some constructs in \SpecialChar LaTeX
19314  are sometimes non-intuitive,
19315  and easy to forget.
19316  The program runs over your \SpecialChar LaTeX
19317  file, checks the integrity of the file, and
19318  flags some common errors.
19319  In other technical words, it is 
19320 \family typewriter
19321 lint
19322 \family default
19323  for \SpecialChar LaTeX
19324 .
19325 \end_layout
19326
19327 \begin_layout Standard
19328 Well, what is a syntax checker doing in \SpecialChar LyX
19329  which is supposed to produce correct
19330  \SpecialChar LaTeX
19331  anyways? The answer is simple: Just as 
19332 \family typewriter
19333 Lint
19334 \family default
19335  not only checks the 
19336 \emph on
19337 syntax
19338 \emph default
19339  of C programs, but also does 
19340 \emph on
19341 semantic
19342 \emph default
19343  checks for type-errors, 
19344 \family sans
19345 Chk\SpecialChar TeX
19346
19347 \family default
19348  catches some common 
19349 \emph on
19350 typographic
19351 \emph default
19352  errors, in addition to the syntactical ones.
19353  Specifically, 
19354 \family sans
19355 Chk\SpecialChar TeX
19356
19357 \family default
19358  is capable of detecting several common errors, such as
19359 \end_layout
19360
19361 \begin_layout Itemize
19362 Ellipsis detection:
19363 \begin_inset Newline newline
19364 \end_inset
19365
19366 Use \SpecialChar ldots
19367  instead of ...
19368 \end_layout
19369
19370 \begin_layout Itemize
19371 No space in front of/after parenthesis:
19372 \begin_inset Newline newline
19373 \end_inset
19374
19375 ( wrong spacing )
19376 \end_layout
19377
19378 \begin_layout Itemize
19379 Enforcement of normal space after common abbreviations:
19380 \begin_inset Newline newline
19381 \end_inset
19382
19383 e.
19384 \begin_inset space \thinspace{}
19385 \end_inset
19386
19387 g.
19388 \begin_inset space \space{}
19389 \end_inset
19390
19391 is too wide spacing.
19392 \end_layout
19393
19394 \begin_layout Itemize
19395 Enforcement of end-of-sentence space when the last sentence ends with a
19396  capital letter:
19397 \begin_inset Newline newline
19398 \end_inset
19399
19400 This is a TEST.
19401  And this is wrong spacing.
19402 \end_layout
19403
19404 \begin_layout Itemize
19405 Space in front of labels and similar commands:
19406 \begin_inset Newline newline
19407 \end_inset
19408
19409 The label should stick right up to the text to avoid falling to a wrong
19410  page.
19411  
19412 \begin_inset CommandInset label
19413 LatexCommand label
19414 name "sec:chktex"
19415
19416 \end_inset
19417
19418  
19419 \begin_inset Foot
19420 status collapsed
19421
19422 \begin_layout Plain Layout
19423 This footnote is in danger of falling off to a wrong page
19424 \end_layout
19425
19426 \end_inset
19427
19428  The label is separated too much.
19429 \end_layout
19430
19431 \begin_layout Itemize
19432 Space in front of references, instead of hard spaces:
19433 \begin_inset Newline newline
19434 \end_inset
19435
19436 If you have bad luck, the text will break right between the referenced text
19437  and reference number, and that's a pity.
19438  See section 
19439 \begin_inset CommandInset ref
19440 LatexCommand ref
19441 reference "sec:chktex"
19442
19443 \end_inset
19444
19445 .
19446 \end_layout
19447
19448 \begin_layout Itemize
19449 Use of 
19450 \begin_inset Quotes eld
19451 \end_inset
19452
19453 x
19454 \begin_inset Quotes erd
19455 \end_inset
19456
19457  instead of 
19458 \begin_inset Formula $\times$
19459 \end_inset
19460
19461  between numbers:
19462 \begin_inset Newline newline
19463 \end_inset
19464
19465 2x2 looks cheap compared to 
19466 \begin_inset Formula $2\times2$
19467 \end_inset
19468
19469 .
19470 \end_layout
19471
19472 \begin_layout Standard
19473 and more \SpecialChar ldots
19474  It is an invaluable tool when you are 
19475 \begin_inset Quotes eld
19476 \end_inset
19477
19478 finishing up
19479 \begin_inset Quotes erd
19480 \end_inset
19481
19482  your document before printing, and you should run it right after the obligatory
19483  spelling check, and before you go fine tuning the typesetting.
19484 \end_layout
19485
19486 \begin_layout Subsection
19487 How to use it
19488 \end_layout
19489
19490 \begin_layout Standard
19491 If you have the program installed, usage is as simple as choosing 
19492 \family sans
19493 Tools\SpecialChar menuseparator
19494 Check
19495 \begin_inset space ~
19496 \end_inset
19497
19498 TeX
19499 \family default
19500 .
19501  This will make \SpecialChar LyX
19502  generate a \SpecialChar LaTeX
19503  file of your document, start 
19504 \family sans
19505 Chk\SpecialChar TeX
19506
19507 \family default
19508  to check it, and then make \SpecialChar LyX
19509  insert 
19510 \begin_inset Quotes eld
19511 \end_inset
19512
19513 error boxes
19514 \begin_inset Quotes erd
19515 \end_inset
19516
19517  with the warnings from 
19518 \family sans
19519 Chk\SpecialChar TeX
19520
19521 \family default
19522 , if there were any.
19523  The warnings will be placed close to the point of the mistake, and you
19524  can quickly find them by using the 
19525 \family sans
19526 Navigate\SpecialChar menuseparator
19527 Error
19528 \family default
19529  menu item, or the shortcut key 
19530 \family sans
19531 C-g
19532 \family default
19533  from the default 
19534 \family typewriter
19535 cua
19536 \family default
19537  bind file.
19538  Open the error boxes by clicking on them with the mouse, or use the shortcut
19539  key 
19540 \family sans
19541 C-i
19542 \family default
19543  from 
19544 \family typewriter
19545 cua
19546 \family default
19547  bindings, or the corresponding 
19548 \family sans
19549 C-o
19550 \family default
19551  for the alternate 
19552 \family typewriter
19553 emacs
19554 \family default
19555  bind file.
19556  Read the warning and correct the mistake, if it is a mistake.
19557  If you have trouble understanding what the warning is about, you can safely
19558  ignore it.
19559  Remember that there is a hidden layer between the document on screen and
19560  the technical details in invoking 
19561 \family sans
19562 Chk\SpecialChar TeX
19563
19564 \family default
19565 , and this gap can make some warnings seem arcane or just plain silly.
19566 \end_layout
19567
19568 \begin_layout Standard
19569 This document is an excellent testing bed for the feature, and it should
19570  provide quite a few warnings for you to fiddle with.
19571  Since computers are only so smart, expect most of the warnings to be false
19572  alarms, though.
19573 \end_layout
19574
19575 \begin_layout Subsection
19576 How to fine tune it
19577 \end_layout
19578
19579 \begin_layout Standard
19580 Sometimes, you'll find that 
19581 \family sans
19582 Chk\SpecialChar TeX
19583
19584 \family default
19585  makes more noise than suits your mood.
19586  Then you can choose not to use it, wait until your mood changes, or try
19587  to customize 
19588 \family sans
19589 Chk\SpecialChar TeX
19590
19591 \family default
19592  to get better along with you.
19593 \end_layout
19594
19595 \begin_layout Standard
19596 Although 
19597 \family sans
19598 Chk\SpecialChar TeX
19599
19600 \family default
19601  
19602 \emph on
19603 is
19604 \emph default
19605  very configurable and extensible, you should not expect to solve all problems
19606  with 
19607 \family sans
19608 Chk\SpecialChar TeX
19609
19610 \family default
19611  in \SpecialChar LyX
19612  this way.
19613  Since \SpecialChar LyX
19614  has to generate a somewhat special \SpecialChar LaTeX
19615  file to be able to match the
19616  line numbers from the 
19617 \family sans
19618 Chk\SpecialChar TeX
19619
19620 \family default
19621  output
19622 \begin_inset Foot
19623 status collapsed
19624
19625 \begin_layout Plain Layout
19626 You can inspect the specific output from 
19627 \family sans
19628 chktex
19629 \family default
19630  by using 
19631 \family sans
19632 Document\SpecialChar menuseparator
19633 \SpecialChar LaTeX
19634
19635 \begin_inset space ~
19636 \end_inset
19637
19638 Log
19639 \family default
19640  right after a 
19641 \family sans
19642 chktex
19643 \family default
19644  run.
19645 \end_layout
19646
19647 \end_inset
19648
19649  to the internal document structure, some of the warnings will not appear
19650  correctly.
19651  There are two things you can do about this:
19652 \end_layout
19653
19654 \begin_layout Itemize
19655 Fine tune the 
19656 \family sans
19657 Chk\SpecialChar TeX
19658
19659 \family default
19660  invocation command line in 
19661 \begin_inset Flex Noun
19662 status collapsed
19663
19664 \begin_layout Plain Layout
19665 Tools\SpecialChar menuseparator
19666 Preferences\SpecialChar menuseparator
19667 Output\SpecialChar menuseparator
19668 LaTeX\SpecialChar menuseparator
19669 CheckTeX command
19670 \end_layout
19671
19672 \end_inset
19673
19674 , or the global 
19675 \family sans
19676 Chk\SpecialChar TeX
19677
19678 \family default
19679  installation configuration file (usually with the file 
19680 \family typewriter
19681 chktexrc
19682 \family default
19683 ).
19684  See below to learn what warnings can be enabled and disabled on the command
19685  line.
19686 \end_layout
19687
19688 \begin_layout Itemize
19689 Export your document as a raw \SpecialChar LaTeX
19690  file using 
19691 \family sans
19692 File\SpecialChar menuseparator
19693 Export\SpecialChar menuseparator
19694 \SpecialChar LaTeX
19695
19696 \family default
19697  and run 
19698 \family typewriter
19699 chktex
19700 \family default
19701  manually on that.
19702  Invoked in this way, it can be a hassle to find the corresponding place
19703  in the document inside \SpecialChar LyX
19704 , but with a little patience, you should be able
19705  to do it.
19706 \end_layout
19707
19708 \begin_layout Standard
19709 Here follows the warning messages that can be enabled and disabled in 
19710 \family sans
19711 Preferences
19712 \family default
19713 .
19714  Use 
19715 \family typewriter
19716 -n#
19717 \family default
19718  to disable a warning, and 
19719 \family typewriter
19720 -w#
19721 \family default
19722  to enable a warning.
19723  The emphasized entries are disabled by default, because the default is
19724  "
19725 \family typewriter
19726 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
19727 \family default
19728 ".
19729 \end_layout
19730
19731 \begin_layout Standard
19732 Notice that you should only use the options that enable and disable warnings,
19733  because \SpecialChar LyX
19734  relies on some of the other command line parameters to be set
19735  in a specific way to have a chance to communicate with 
19736 \family typewriter
19737 chktex
19738 \family default
19739 .
19740 \end_layout
19741
19742 \begin_layout Enumerate
19743
19744 \size small
19745 \emph on
19746 Command terminated with space.
19747 \end_layout
19748
19749 \begin_layout Enumerate
19750
19751 \size small
19752 Non-breaking space (
19753 \begin_inset Quotes eld
19754 \end_inset
19755
19756
19757 \family typewriter
19758 ~
19759 \family default
19760
19761 \begin_inset Quotes erd
19762 \end_inset
19763
19764 ) should have been used.
19765 \end_layout
19766
19767 \begin_layout Enumerate
19768
19769 \size small
19770 \emph on
19771 You should enclose the previous parenthesis with 
19772 \begin_inset Quotes eld
19773 \end_inset
19774
19775
19776 \family typewriter
19777 {}
19778 \family default
19779
19780 \begin_inset Quotes erd
19781 \end_inset
19782
19783 .
19784 \end_layout
19785
19786 \begin_layout Enumerate
19787
19788 \size small
19789 Italic correction (
19790 \begin_inset Quotes eld
19791 \end_inset
19792
19793
19794 \family typewriter
19795
19796 \backslash
19797 /
19798 \family default
19799
19800 \begin_inset Quotes erd
19801 \end_inset
19802
19803 ) found in non-italic buffer.
19804 \end_layout
19805
19806 \begin_layout Enumerate
19807
19808 \size small
19809 Italic correction (
19810 \begin_inset Quotes eld
19811 \end_inset
19812
19813
19814 \family typewriter
19815
19816 \backslash
19817 /
19818 \family default
19819
19820 \begin_inset Quotes erd
19821 \end_inset
19822
19823 ) found more than once.
19824 \end_layout
19825
19826 \begin_layout Enumerate
19827
19828 \size small
19829 \emph on
19830 No italic correction (
19831 \begin_inset Quotes eld
19832 \end_inset
19833
19834
19835 \family typewriter
19836
19837 \backslash
19838 /
19839 \family default
19840
19841 \begin_inset Quotes erd
19842 \end_inset
19843
19844 ) found.
19845 \end_layout
19846
19847 \begin_layout Enumerate
19848
19849 \size small
19850 Accent command 
19851 \begin_inset Quotes eld
19852 \end_inset
19853
19854
19855 \family typewriter
19856 cmd
19857 \family default
19858
19859 \begin_inset Quotes erd
19860 \end_inset
19861
19862  needs use of 
19863 \begin_inset Quotes eld
19864 \end_inset
19865
19866
19867 \family typewriter
19868 cmd
19869 \family default
19870
19871 \begin_inset Quotes erd
19872 \end_inset
19873
19874 .
19875 \end_layout
19876
19877 \begin_layout Enumerate
19878
19879 \size small
19880 Wrong length of dash may have been used.
19881 \end_layout
19882
19883 \begin_layout Enumerate
19884
19885 \size small
19886 \emph on
19887 \begin_inset Quotes eld
19888 \end_inset
19889
19890
19891 \family typewriter
19892 %s
19893 \family default
19894
19895 \begin_inset Quotes erd
19896 \end_inset
19897
19898  expected, found 
19899 \begin_inset Quotes eld
19900 \end_inset
19901
19902
19903 \family typewriter
19904 %s
19905 \family default
19906
19907 \begin_inset Quotes erd
19908 \end_inset
19909
19910 .
19911 \end_layout
19912
19913 \begin_layout Enumerate
19914
19915 \size small
19916 Solo 
19917 \begin_inset Quotes eld
19918 \end_inset
19919
19920
19921 \family typewriter
19922 %s
19923 \family default
19924
19925 \begin_inset Quotes erd
19926 \end_inset
19927
19928  found.
19929 \end_layout
19930
19931 \begin_layout Enumerate
19932
19933 \size small
19934 You should use 
19935 \begin_inset Quotes eld
19936 \end_inset
19937
19938
19939 \family typewriter
19940 %s
19941 \family default
19942
19943 \begin_inset Quotes erd
19944 \end_inset
19945
19946  to achieve an ellipsis.
19947 \end_layout
19948
19949 \begin_layout Enumerate
19950
19951 \size small
19952 Inter-word spacing (
19953 \begin_inset Quotes eld
19954 \end_inset
19955
19956
19957 \family typewriter
19958
19959 \backslash
19960
19961 \family default
19962  
19963 \begin_inset Quotes eld
19964 \end_inset
19965
19966 ) should perhaps be used.
19967 \end_layout
19968
19969 \begin_layout Enumerate
19970
19971 \size small
19972 Inter-sentence spacing (
19973 \begin_inset Quotes eld
19974 \end_inset
19975
19976
19977 \family typewriter
19978
19979 \backslash
19980 @
19981 \family default
19982
19983 \begin_inset Quotes erd
19984 \end_inset
19985
19986 ) should perhaps be used.
19987 \end_layout
19988
19989 \begin_layout Enumerate
19990
19991 \size small
19992 Could not find argument for command.
19993 \end_layout
19994
19995 \begin_layout Enumerate
19996
19997 \size small
19998 No match found for 
19999 \begin_inset Quotes eld
20000 \end_inset
20001
20002
20003 \family typewriter
20004 %s
20005 \family default
20006
20007 \begin_inset Quotes erd
20008 \end_inset
20009
20010 .
20011 \end_layout
20012
20013 \begin_layout Enumerate
20014
20015 \size small
20016 Math mode still on at end of \SpecialChar LaTeX
20017  file.
20018 \end_layout
20019
20020 \begin_layout Enumerate
20021
20022 \size small
20023 Number of 
20024 \begin_inset Quotes eld
20025 \end_inset
20026
20027
20028 \family typewriter
20029 char
20030 \family default
20031
20032 \begin_inset Quotes erd
20033 \end_inset
20034
20035  doesn't match the number of 
20036 \begin_inset Quotes eld
20037 \end_inset
20038
20039
20040 \family typewriter
20041 char
20042 \family default
20043
20044 \begin_inset Quotes erd
20045 \end_inset
20046
20047 .
20048 \end_layout
20049
20050 \begin_layout Enumerate
20051
20052 \size small
20053 You should use either 
20054 \family typewriter
20055
20056 \begin_inset Quotes eld
20057 \end_inset
20058
20059
20060 \family default
20061  or 
20062 \family typewriter
20063
20064 \begin_inset Quotes erd
20065 \end_inset
20066
20067
20068 \family default
20069  as an alternative to 
20070 \begin_inset Quotes eld
20071 \end_inset
20072
20073
20074 \family typewriter
20075 "
20076 \family default
20077
20078 \begin_inset Quotes erd
20079 \end_inset
20080
20081 .
20082 \end_layout
20083
20084 \begin_layout Enumerate
20085
20086 \size small
20087 You should use "
20088 \family typewriter
20089 '
20090 \family default
20091 " (ASCII 39) instead of "
20092 \family typewriter
20093 ´
20094 \family default
20095 " (ASCII 180).
20096 \end_layout
20097
20098 \begin_layout Enumerate
20099
20100 \size small
20101 User-specified pattern found.
20102 \end_layout
20103
20104 \begin_layout Enumerate
20105
20106 \size small
20107 This command might not be intended.
20108 \end_layout
20109
20110 \begin_layout Enumerate
20111
20112 \size small
20113 \emph on
20114 Comment displayed.
20115 \end_layout
20116
20117 \begin_layout Enumerate
20118
20119 \size small
20120 Either 
20121 \family typewriter
20122 ''
20123 \backslash
20124 ,'
20125 \family default
20126  or 
20127 \family typewriter
20128 '
20129 \backslash
20130 ,''
20131 \family default
20132  will look better.
20133 \end_layout
20134
20135 \begin_layout Enumerate
20136
20137 \size small
20138 Delete this space to maintain correct page references.
20139 \end_layout
20140
20141 \begin_layout Enumerate
20142
20143 \size small
20144 \emph on
20145 You might wish to put this between a pair of 
20146 \begin_inset Quotes eld
20147 \end_inset
20148
20149
20150 \family typewriter
20151 {}
20152 \family default
20153
20154 \begin_inset Quotes erd
20155 \end_inset
20156
20157 .
20158 \end_layout
20159
20160 \begin_layout Enumerate
20161
20162 \size small
20163 You ought to remove spaces in front of punctuation.
20164 \end_layout
20165
20166 \begin_layout Enumerate
20167
20168 \size small
20169 Could not execute \SpecialChar LaTeX
20170  command.
20171 \end_layout
20172
20173 \begin_layout Enumerate
20174
20175 \size small
20176 Don't use 
20177 \family typewriter
20178
20179 \backslash
20180 /
20181 \family default
20182  in front of small punctuation.
20183 \end_layout
20184
20185 \begin_layout Enumerate
20186
20187 \family typewriter
20188 \size small
20189 $
20190 \backslash
20191 times$
20192 \family default
20193  may look prettier here.
20194 \end_layout
20195
20196 \begin_layout Enumerate
20197
20198 \size small
20199 \emph on
20200 Multiple spaces detected in output.
20201 \end_layout
20202
20203 \begin_layout Enumerate
20204
20205 \size small
20206 This text may be ignored.
20207 \end_layout
20208
20209 \begin_layout Enumerate
20210
20211 \size small
20212 Use 
20213 \family typewriter
20214
20215 \begin_inset Quotes eld
20216 \end_inset
20217
20218
20219 \family default
20220  to begin quotation, not 
20221 \family typewriter
20222 '
20223 \family default
20224 .
20225 \end_layout
20226
20227 \begin_layout Enumerate
20228
20229 \size small
20230 Use 
20231 \family typewriter
20232 '
20233 \family default
20234  to end quotation, not 
20235 \family typewriter
20236
20237 \begin_inset Quotes eld
20238 \end_inset
20239
20240
20241 \family default
20242 .
20243 \end_layout
20244
20245 \begin_layout Enumerate
20246
20247 \size small
20248 Don't mix quotes.
20249 \end_layout
20250
20251 \begin_layout Enumerate
20252
20253 \size small
20254 You should perhaps use 
20255 \begin_inset Quotes eld
20256 \end_inset
20257
20258
20259 \family typewriter
20260 cmd
20261 \family default
20262
20263 \begin_inset Quotes erd
20264 \end_inset
20265
20266  instead.
20267 \end_layout
20268
20269 \begin_layout Enumerate
20270
20271 \size small
20272 You should put a space in front of/after parenthesis.
20273 \end_layout
20274
20275 \begin_layout Enumerate
20276
20277 \size small
20278 You should avoid spaces in front of/after parenthesis.
20279 \end_layout
20280
20281 \begin_layout Enumerate
20282
20283 \size small
20284 \emph on
20285 You should not use punctuation in front of/after quotes.
20286 \end_layout
20287
20288 \begin_layout Enumerate
20289
20290 \size small
20291 Double space found.
20292 \end_layout
20293
20294 \begin_layout Enumerate
20295
20296 \size small
20297 You should put punctuation outside inner/inside display math mode.
20298 \end_layout
20299
20300 \begin_layout Enumerate
20301
20302 \size small
20303 You ought to not use primitive \SpecialChar TeX
20304  in \SpecialChar LaTeX
20305  code.
20306 \end_layout
20307
20308 \begin_layout Enumerate
20309
20310 \size small
20311 You should remove spaces in front of 
20312 \begin_inset Quotes eld
20313 \end_inset
20314
20315
20316 \family typewriter
20317 %s
20318 \family default
20319
20320 \begin_inset Quotes erd
20321 \end_inset
20322
20323
20324 \end_layout
20325
20326 \begin_layout Enumerate
20327
20328 \size small
20329 \begin_inset Quotes eld
20330 \end_inset
20331
20332
20333 \family typewriter
20334 %s
20335 \family default
20336
20337 \begin_inset Quotes erd
20338 \end_inset
20339
20340  is normally not followed by 
20341 \begin_inset Quotes eld
20342 \end_inset
20343
20344
20345 \family typewriter
20346 %c
20347 \family default
20348
20349 \begin_inset Quotes erd
20350 \end_inset
20351
20352 .
20353 \end_layout
20354
20355 \begin_layout Standard
20356 In later versions of \SpecialChar LyX
20357 , we hope to provide a more complete interface to this
20358  tool (and it's smaller cousin 
20359 \family typewriter
20360 lacheck
20361 \family default
20362 ) to exploit the full power of it.
20363  But it's not exactly useless as it is now: go try it on one of your existing
20364  documents of a certain length and be surprised.
20365 \end_layout
20366
20367 \begin_layout Section
20368 Version Control in \SpecialChar LyX
20369
20370 \end_layout
20371
20372 \begin_layout Standard
20373 by
20374 \noun on
20375  Lars Gullik Bjønnes 
20376 \noun default
20377 and 
20378 \noun on
20379 Pavel Sanda
20380 \end_layout
20381
20382 \begin_layout Subsection
20383 Introduction
20384 \end_layout
20385
20386 \begin_layout Standard
20387 \SpecialChar LyX
20388  supports some of the most basic RCS/CVS/SVN/GIT commands.
20389  If you need something a bit more sophisticated you will have to do that
20390  manually in a terminal.
20391 \end_layout
20392
20393 \begin_layout Standard
20394 Also note that CVS support is not as good as subversion support so we advise
20395  using SVN instead.
20396  A good place to start learning Subversion is SVN Book
20397 \begin_inset Foot
20398 status collapsed
20399
20400 \begin_layout Plain Layout
20401 \begin_inset CommandInset href
20402 LatexCommand href
20403 target "http://svnbook.red-bean.com/"
20404 literal "false"
20405
20406 \end_inset
20407
20408
20409 \end_layout
20410
20411 \end_inset
20412
20413 .
20414  In the case of RCS you should read 
20415 \begin_inset Quotes eld
20416 \end_inset
20417
20418 rcsintro
20419 \begin_inset Quotes erd
20420 \end_inset
20421
20422  (a man file, read it with 
20423 \family typewriter
20424 man rcsintro
20425 \family default
20426 ).
20427  This file describes all the basic features of RCS.
20428  You should especially notice the comment about a RCS directory, and the
20429  notion of a master RCS file (the file ending in 
20430 \family typewriter
20431 ,v
20432 \family default
20433 ).
20434 \end_layout
20435
20436 \begin_layout Standard
20437 Before you begin to use the version control features in \SpecialChar LyX
20438 , you should be
20439  familiar with RCS/CVS/SVN/GIT usage.
20440  The implementation in \SpecialChar LyX
20441  assumes a recent version of the GNU RCS or CVS/SVN
20442  package — no guarantees are made for older versions.
20443  Most of the log messages are not currently displayed after operations —
20444  you can check them in the Messages pane if unsure.
20445  Regular users of version control will appreciate VC toolbar, which can
20446  be enabled via 
20447 \family sans
20448 View\SpecialChar menuseparator
20449 Toolbars\SpecialChar menuseparator
20450 Version
20451 \begin_inset space ~
20452 \end_inset
20453
20454 Control
20455 \family default
20456 .
20457 \end_layout
20458
20459 \begin_layout Standard
20460 For introducing your own external commands consult vc-command in the manual
20461  of \SpecialChar LyX
20462  functions.
20463 \end_layout
20464
20465 \begin_layout Standard
20466 It is strongly recommended to store documents in uncompressed format if
20467  using version control (uncheck 
20468 \family sans
20469 Document\SpecialChar menuseparator
20470 Compressed
20471 \family default
20472  if it is checked): Uncompressed LyX documents are text files and therefore
20473  for merging two different versions by version control systems.
20474  Compressed LyX documents are binary files, which cannot be merged by version
20475  control systems.
20476 \end_layout
20477
20478 \begin_layout Subsection
20479 RCS commands in \SpecialChar LyX
20480
20481 \end_layout
20482
20483 \begin_layout Standard
20484 The following sections describe the RCS commands supported by \SpecialChar LyX
20485 .
20486  You can find them in the 
20487 \family sans
20488 File\SpecialChar menuseparator
20489 Version
20490 \begin_inset space ~
20491 \end_inset
20492
20493 Control
20494 \family default
20495  submenu.
20496  \SpecialChar LyX
20497  was tested against RCS 5.7/5.8.
20498 \end_layout
20499
20500 \begin_layout Subsubsection
20501
20502 \family sans
20503 Register
20504 \end_layout
20505
20506 \begin_layout Standard
20507 If your document is not under revision control, this is the only item shown
20508  in the menu.
20509  And if it is under revision control, the 
20510 \family sans
20511 Register
20512 \family default
20513  item is not visible.
20514  
20515 \end_layout
20516
20517 \begin_layout Standard
20518 This command registers your document with RCS (unless you are under the
20519  directory managed by CVS)\SpecialChar endofsentence
20520  You are asked interactively to supply an initial
20521  description of the document.
20522  The document is now set in Read-Only mode and you have to 
20523 \family sans
20524 Check
20525 \begin_inset space ~
20526 \end_inset
20527
20528 Out
20529 \begin_inset space ~
20530 \end_inset
20531
20532 For
20533 \begin_inset space ~
20534 \end_inset
20535
20536 Edit
20537 \family default
20538 , before making any changes to it.
20539  A document under revision control has a 
20540 \begin_inset Quotes eld
20541 \end_inset
20542
20543 [RCS:<version> <locker>]
20544 \begin_inset Quotes erd
20545 \end_inset
20546
20547  item tagged to the filename in the minibuffer.
20548 \end_layout
20549
20550 \begin_layout Standard
20551 RCS command that is run: 
20552 \family typewriter
20553 ci -q -u -i -t-"<initial description>" <file-name>
20554 \end_layout
20555
20556 \begin_layout Standard
20557 Read 
20558 \family typewriter
20559 man ci
20560 \family default
20561  to understand the switches.
20562  
20563 \end_layout
20564
20565 \begin_layout Subsubsection
20566
20567 \family sans
20568 Check In Changes
20569 \end_layout
20570
20571 \begin_layout Standard
20572 When you are finished editing a file, you check in your changes.
20573  When you do this, you are asked for a description of the changes.
20574  This is stored in the history log.
20575  The version number is bumped, your changes are applied to the master RCS
20576  file, the document is unlocked and set to Read-Only mode.
20577 \end_layout
20578
20579 \begin_layout Standard
20580 RCS command: 
20581 \family typewriter
20582 ci -q -u -m"<description>" <file-name>
20583 \end_layout
20584
20585 \begin_layout Subsubsection
20586
20587 \family sans
20588 Check Out For Edit
20589 \end_layout
20590
20591 \begin_layout Standard
20592 By doing this you lock the document so that only you can edit it.
20593  This will also make the document Read-Write only for you.
20594  You will usually continue editing for a while and when you are finished
20595  you check in your changes.
20596  The status line is changed to reflect that you have locked the file.
20597 \end_layout
20598
20599 \begin_layout Standard
20600 RCS command: 
20601 \family typewriter
20602 co -q -l <file-name>
20603 \end_layout
20604
20605 \begin_layout Subsubsection
20606
20607 \family sans
20608 Revert To Repository Version
20609 \end_layout
20610
20611 \begin_layout Standard
20612 This will discard all changes made to the document since the last check
20613  in.
20614  You get a warning before changes are discarded.
20615 \end_layout
20616
20617 \begin_layout Standard
20618 RCS command: 
20619 \family typewriter
20620 co -f -u<version> <file-name>
20621 \end_layout
20622
20623 \begin_layout Subsubsection
20624
20625 \family sans
20626 Copy
20627 \end_layout
20628
20629 \begin_layout Standard
20630 This will create a copy of the current document.
20631  Since RCS does not support copy operations natively, the version history
20632  is not preserved, and the copy is added as a new file.
20633  It requires a clean document without any changes since the last checkin.
20634  You are asked for a file name and a description of the copy operation.
20635  After that the copy is created, both locally and in the repository.
20636  If the parent directories of the copied and original document differ, all
20637  relative paths of included files of the copy are adjusted (like in 
20638 \family sans
20639 File\SpecialChar menuseparator
20640 Save As
20641 \family default
20642 \SpecialChar ldots
20643 ).
20644  Finally, the copy is loaded instead of the original document.
20645 \end_layout
20646
20647 \begin_layout Labeling
20648 \labelwidthstring 00.00.0000
20649 RCS
20650 \begin_inset space ~
20651 \end_inset
20652
20653 commands: 
20654 \begin_inset space ~
20655 \end_inset
20656
20657
20658 \begin_inset Newline newline
20659 \end_inset
20660
20661 Copy 
20662 \begin_inset Flex Code
20663 status collapsed
20664
20665 \begin_layout Plain Layout
20666
20667 \family typewriter
20668 \begin_inset Quotes eld
20669 \end_inset
20670
20671 <file-name>
20672 \begin_inset Quotes erd
20673 \end_inset
20674
20675
20676 \end_layout
20677
20678 \end_inset
20679
20680  to 
20681 \begin_inset Flex Code
20682 status collapsed
20683
20684 \begin_layout Plain Layout
20685
20686 \family typewriter
20687 \begin_inset Quotes eld
20688 \end_inset
20689
20690 <new-file-name>
20691 \begin_inset Quotes erd
20692 \end_inset
20693
20694
20695 \end_layout
20696
20697 \end_inset
20698
20699
20700 \begin_inset Newline newline
20701 \end_inset
20702
20703
20704 \begin_inset Flex Code
20705 status collapsed
20706
20707 \begin_layout Plain Layout
20708 ci -q -u 
20709 \family typewriter
20710 -i 
20711 \begin_inset Quotes eld
20712 \end_inset
20713
20714 <new-file-name>
20715 \begin_inset Quotes erd
20716 \end_inset
20717
20718
20719 \end_layout
20720
20721 \end_inset
20722
20723
20724 \end_layout
20725
20726 \begin_layout Subsubsection
20727
20728 \family sans
20729 Undo Last Checkin
20730 \end_layout
20731
20732 \begin_layout Standard
20733 This makes as if the last check in never happened.
20734  No changes are made to the document loaded into \SpecialChar LyX
20735 , but the last version
20736  is removed from the master RCS file.
20737 \end_layout
20738
20739 \begin_layout Standard
20740 RCS command: 
20741 \family typewriter
20742 rcs -o<version> <file-name>
20743 \end_layout
20744
20745 \begin_layout Subsubsection
20746
20747 \family sans
20748 Show History
20749 \end_layout
20750
20751 \begin_layout Standard
20752 This shows the complete history of the RCS document.
20753  The output of 
20754 \family typewriter
20755 rlog <file-name>
20756 \family default
20757  is shown in a browser.
20758  See 
20759 \family typewriter
20760 man rlog
20761 \family default
20762  for more info.
20763 \end_layout
20764
20765 \begin_layout Subsubsection
20766 Revision info
20767 \end_layout
20768
20769 \begin_layout Standard
20770 \SpecialChar LyX
20771  supports RCS version number, author name, date and time of last commit.
20772  All those are extracted from 
20773 \family typewriter
20774 rlog -r <file-name>
20775 \family default
20776 .
20777  See 
20778 \begin_inset CommandInset ref
20779 LatexCommand ref
20780 reference "subsec:VCS-Revision-Information"
20781
20782 \end_inset
20783
20784  for details.
20785 \end_layout
20786
20787 \begin_layout Subsection
20788 CVS commands in \SpecialChar LyX
20789
20790 \end_layout
20791
20792 \begin_layout Standard
20793 A subset of CVS operations is supported by \SpecialChar LyX
20794 .
20795  You can find the commands in the 
20796 \family sans
20797 File\SpecialChar menuseparator
20798 Version
20799 \begin_inset space ~
20800 \end_inset
20801
20802 Control
20803 \family default
20804  submenu.
20805  The version control system SVN is more powerful, so please use it instead
20806  of CVS if possible.
20807 \end_layout
20808
20809 \begin_layout Subsubsection
20810
20811 \family sans
20812 General CVS usage
20813 \end_layout
20814
20815 \begin_layout Standard
20816 If you start from scratch with CVS you have to create your repository and
20817  checkout the working copy with external tools.
20818  If you're using a client-server setup you may need to login before doing
20819  the first repository checkout.
20820 \end_layout
20821
20822 \begin_layout Standard
20823 If your documents are under revision control and others are using the same
20824  repository problems arise when different changes to the same document at
20825  the same location happen.
20826  Standard CVS repositories don't operate with a file locking mechanism.
20827  This may be surprising, but conflicts only occur if people disagree on
20828  the proper content of the same part of a document.
20829  So, if co-workers are used to communicate regularly, these conflicts occur
20830  rarely.
20831  If they don't communicate they have a fundamental problem anyway.
20832  Nevertheless some people like to work with so called 
20833 \begin_inset Quotes eld
20834 \end_inset
20835
20836 reserved checkouts
20837 \begin_inset Quotes erd
20838 \end_inset
20839
20840 .
20841  If they do so the working copy of all files is readonly when checked out
20842  first and the user starts editing after using a special command to make
20843  the working copy writable.
20844  When the changes are checked in the working copy returns to readonly state.
20845  With \SpecialChar LyX
20846  one has to edit the 
20847 \begin_inset Flex Code
20848 status collapsed
20849
20850 \begin_layout Plain Layout
20851 .cvsrc
20852 \end_layout
20853
20854 \end_inset
20855
20856  file and add the line 
20857 \begin_inset Flex Code
20858 status collapsed
20859
20860 \begin_layout Plain Layout
20861 cvs -r
20862 \end_layout
20863
20864 \end_inset
20865
20866  to work with reserved checkouts.
20867  The benefit is the possibility to see who is using a writable copy of some
20868  document.
20869  It's not guaranteed only one user makes a copy writable.
20870 \end_layout
20871
20872 \begin_layout Standard
20873 \SpecialChar LyX
20874  tries to guess if you're using reserved or non-reserved checkouts.
20875  If your working copy is readonly or it is writable and an additional copy
20876  of your document exists in the CVS/Base sub-directory a reserved otherwise
20877  a non-reserved checkout is assumed.
20878  When a reserved checkout is detected you have to use 
20879 \begin_inset Flex Noun
20880 status collapsed
20881
20882 \begin_layout Plain Layout
20883 Check Out
20884 \end_layout
20885
20886 \end_inset
20887
20888  to make your working copy writable if it's readonly.
20889  After doing so the 
20890 \begin_inset Flex Noun
20891 status collapsed
20892
20893 \begin_layout Plain Layout
20894 Check In
20895 \end_layout
20896
20897 \end_inset
20898
20899  operation is possible and that makes your working copy readonly again after
20900  transferring your changes to the repository.
20901 \end_layout
20902
20903 \begin_layout Standard
20904 More information about CVS can be found here 
20905 \begin_inset Flex URL
20906 status collapsed
20907
20908 \begin_layout Plain Layout
20909
20910 http://www.nongnu.org/cvs
20911 \end_layout
20912
20913 \end_inset
20914
20915  and here 
20916 \begin_inset Flex URL
20917 status collapsed
20918
20919 \begin_layout Plain Layout
20920
20921 http://ximbiot.com/cvs
20922 \end_layout
20923
20924 \end_inset
20925
20926 .
20927 \end_layout
20928
20929 \begin_layout Standard
20930 Read 
20931 \family typewriter
20932 man cvs
20933 \family default
20934  to understand the sub-commands and the switches mentioned below.
20935 \end_layout
20936
20937 \begin_layout Subsubsection
20938
20939 \family sans
20940 Register
20941 \end_layout
20942
20943 \begin_layout Standard
20944 If your document is not under revision control, this is the only item shown
20945  in the menu.
20946  And if it is under revision control, the 
20947 \family sans
20948 Register
20949 \family default
20950  item is not visible.
20951  
20952 \end_layout
20953
20954 \begin_layout Standard
20955 This command registers in CVS your document 
20956 \begin_inset Flex Strong
20957 status collapsed
20958
20959 \begin_layout Plain Layout
20960
20961 \emph on
20962 only
20963 \end_layout
20964
20965 \end_inset
20966
20967  in the case you have already the documents directory under CVS control
20968  (in particular 
20969 \family typewriter
20970 CVS/Entries
20971 \family default
20972  file exists).
20973  This means you have to create or checkout the archive by yourself using
20974  external tools.
20975  (In case you forget that step \SpecialChar LyX
20976  registers the document with RCS.)
20977 \end_layout
20978
20979 \begin_layout Standard
20980 Then you are asked interactively to supply an initial description of the
20981  document.
20982  Don't forget that registered file is not yet checked in.
20983 \end_layout
20984
20985 \begin_layout Standard
20986 CVS command that is run: 
20987 \family typewriter
20988 cvs -q add -m"<entered message>" "<file-name>"
20989 \end_layout
20990
20991 \begin_layout Standard
20992 The term 
20993 \family typewriter
20994 "<file-name>"
20995 \family default
20996  above and for all other CVS commands is an abbreviation for 
20997 \begin_inset Quotes eld
20998 \end_inset
20999
21000 change the current working directory to file location and use the file name
21001  without path component as argument
21002 \begin_inset Quotes erd
21003 \end_inset
21004
21005 .
21006 \end_layout
21007
21008 \begin_layout Subsubsection
21009
21010 \family sans
21011 Check In Changes
21012 \end_layout
21013
21014 \begin_layout Standard
21015 When you are finished editing a file, you commit your changes.
21016  When you do this and you had changed the document, you are asked for a
21017  description of the changes.
21018  After that changes are written to the repository.
21019  In case you didn't change the document and a reserved checkout is detected
21020  the reservation made on 
21021 \begin_inset Flex Noun
21022 status collapsed
21023
21024 \begin_layout Plain Layout
21025 Check Out
21026 \end_layout
21027
21028 \end_inset
21029
21030  is undone.
21031 \end_layout
21032
21033 \begin_layout Labeling
21034 \labelwidthstring 00.00.0000
21035 CVS
21036 \begin_inset space ~
21037 \end_inset
21038
21039 command: 
21040 \begin_inset space ~
21041 \end_inset
21042
21043
21044 \begin_inset Newline newline
21045 \end_inset
21046
21047
21048 \begin_inset Flex Code
21049 status collapsed
21050
21051 \begin_layout Plain Layout
21052 cvs 
21053 \family typewriter
21054 -q commit -m"<description>" "<file-name>"
21055 \end_layout
21056
21057 \end_inset
21058
21059  or
21060 \begin_inset Newline newline
21061 \end_inset
21062
21063
21064 \begin_inset Flex Code
21065 status collapsed
21066
21067 \begin_layout Plain Layout
21068 cvs -q unedit 
21069 \family typewriter
21070 "<file-name>"
21071 \end_layout
21072
21073 \end_inset
21074
21075
21076 \end_layout
21077
21078 \begin_layout Subsubsection
21079
21080 \family sans
21081 Check Out Changes
21082 \end_layout
21083
21084 \begin_layout Standard
21085 When you are sharing a repository with others, you may have to incorporate
21086  their changes into your working copy.
21087 \end_layout
21088
21089 \begin_layout Standard
21090 CVS command: 
21091 \family typewriter
21092 cvs -q update "<file-name>"
21093 \end_layout
21094
21095 \begin_layout Standard
21096 If a readonly checkout is detected the working copy is made writable and
21097  reserved.
21098 \end_layout
21099
21100 \begin_layout Standard
21101 CVS command: 
21102 \family typewriter
21103 cvs -q edit "<file-name>"
21104 \end_layout
21105
21106 \begin_layout Subsubsection
21107
21108 \family sans
21109 Revert To Repository Version
21110 \end_layout
21111
21112 \begin_layout Standard
21113 This will discard all changes made to the document since the last check
21114  in.
21115  You get a warning before changes are discarded.
21116  Firstly the file is deleted, secondly CVS update command is run.
21117 \end_layout
21118
21119 \begin_layout Standard
21120 CVS command: 
21121 \family typewriter
21122 cvs -q update "<file-name>"
21123 \end_layout
21124
21125 \begin_layout Standard
21126 If a reserved checkout is detected and the working copy has no changes only
21127  the reservation is undone.
21128 \end_layout
21129
21130 \begin_layout Standard
21131 CVS command: 
21132 \family typewriter
21133 cvs -q unedit "<file-name>"
21134 \end_layout
21135
21136 \begin_layout Subsubsection
21137
21138 \family sans
21139 Copy
21140 \end_layout
21141
21142 \begin_layout Standard
21143 This will create a copy of the current document.
21144  Since CVS does not support copy operations natively, the version history
21145  is not preserved, and the copy is added as a new file.
21146  It requires a clean document without any changes since the last checkin.
21147  You are asked for a file name and a description of the copy operation.
21148  After that the copy is created, both locally and in the repository.
21149  If the parent directories of the copied and original document differ, all
21150  relative paths of included files of the copy are adjusted (like in 
21151 \family sans
21152 File\SpecialChar menuseparator
21153 Save As
21154 \family default
21155 \SpecialChar ldots
21156 ).
21157  Finally, the copy is loaded instead of the original document.
21158 \end_layout
21159
21160 \begin_layout Labeling
21161 \labelwidthstring 00.00.0000
21162 CVS
21163 \begin_inset space ~
21164 \end_inset
21165
21166 commands: 
21167 \begin_inset space ~
21168 \end_inset
21169
21170
21171 \begin_inset Newline newline
21172 \end_inset
21173
21174 Copy 
21175 \begin_inset Flex Code
21176 status collapsed
21177
21178 \begin_layout Plain Layout
21179
21180 \family typewriter
21181 \begin_inset Quotes eld
21182 \end_inset
21183
21184 <file-name>
21185 \begin_inset Quotes erd
21186 \end_inset
21187
21188
21189 \end_layout
21190
21191 \end_inset
21192
21193  to 
21194 \begin_inset Flex Code
21195 status collapsed
21196
21197 \begin_layout Plain Layout
21198
21199 \family typewriter
21200 \begin_inset Quotes eld
21201 \end_inset
21202
21203 <new-file-name>
21204 \begin_inset Quotes erd
21205 \end_inset
21206
21207
21208 \end_layout
21209
21210 \end_inset
21211
21212
21213 \begin_inset Newline newline
21214 \end_inset
21215
21216
21217 \begin_inset Flex Code
21218 status collapsed
21219
21220 \begin_layout Plain Layout
21221 cvs -q add 
21222 \family typewriter
21223
21224 \begin_inset Quotes eld
21225 \end_inset
21226
21227 <new-file-name>
21228 \begin_inset Quotes erd
21229 \end_inset
21230
21231
21232 \end_layout
21233
21234 \end_inset
21235
21236
21237 \end_layout
21238
21239 \begin_layout Subsubsection
21240
21241 \family sans
21242 Rename
21243 \end_layout
21244
21245 \begin_layout Standard
21246 This will rename the current document.
21247  Since CVS does not support rename operations natively, the version history
21248  is not preserved, the renamed document is added as a new file, and the
21249  original document is deleted.
21250  It requires a clean document without any changes since the last checkin.
21251  You are asked for a file name and a description of the rename operation.
21252  After that the document is renamed, both locally and in the repository.
21253  If the parent directories of the new and old file names differ, all relative
21254  paths of included files are adjusted (like in 
21255 \family sans
21256 File\SpecialChar menuseparator
21257 Save As
21258 \family default
21259 \SpecialChar ldots
21260 ).
21261  Finally, the document is reloaded using the new name.
21262 \end_layout
21263
21264 \begin_layout Labeling
21265 \labelwidthstring 00.00.0000
21266 CVS
21267 \begin_inset space ~
21268 \end_inset
21269
21270 commands: 
21271 \begin_inset space ~
21272 \end_inset
21273
21274
21275 \begin_inset Newline newline
21276 \end_inset
21277
21278 Rename 
21279 \begin_inset Flex Code
21280 status collapsed
21281
21282 \begin_layout Plain Layout
21283
21284 \family typewriter
21285 \begin_inset Quotes eld
21286 \end_inset
21287
21288 <file-name>
21289 \begin_inset Quotes erd
21290 \end_inset
21291
21292
21293 \end_layout
21294
21295 \end_inset
21296
21297  to 
21298 \begin_inset Flex Code
21299 status collapsed
21300
21301 \begin_layout Plain Layout
21302
21303 \family typewriter
21304 \begin_inset Quotes eld
21305 \end_inset
21306
21307 <new-file-name>
21308 \begin_inset Quotes erd
21309 \end_inset
21310
21311
21312 \end_layout
21313
21314 \end_inset
21315
21316
21317 \begin_inset Newline newline
21318 \end_inset
21319
21320
21321 \begin_inset Flex Code
21322 status collapsed
21323
21324 \begin_layout Plain Layout
21325 cvs -q add 
21326 \family typewriter
21327
21328 \begin_inset Quotes eld
21329 \end_inset
21330
21331 <new-file-name>
21332 \begin_inset Quotes erd
21333 \end_inset
21334
21335
21336 \end_layout
21337
21338 \end_inset
21339
21340
21341 \begin_inset Newline newline
21342 \end_inset
21343
21344
21345 \begin_inset Flex Code
21346 status collapsed
21347
21348 \begin_layout Plain Layout
21349 cvs -q remove 
21350 \family typewriter
21351
21352 \begin_inset Quotes eld
21353 \end_inset
21354
21355 <file-name>
21356 \begin_inset Quotes erd
21357 \end_inset
21358
21359
21360 \end_layout
21361
21362 \end_inset
21363
21364
21365 \end_layout
21366
21367 \begin_layout Subsubsection
21368 Update of the local directory checkout from repository
21369 \end_layout
21370
21371 \begin_layout Standard
21372 Once your documents gets more complex, containing sub-documents and pictures,
21373  including external 
21374 \begin_inset Flex Code
21375 status collapsed
21376
21377 \begin_layout Plain Layout
21378 .tex
21379 \end_layout
21380
21381 \end_inset
21382
21383  files and so on using version control becomes more complicated.
21384  \SpecialChar LyX
21385  supports updating the whole tree in which resides the document.
21386  This become especially useful once you cooperate with people which neither
21387  have detailed knowledge about CVS usage nor they have ambition to commit
21388  additional material to the repository.
21389  You have to organize the files structure so that all external files are
21390  in the same directory or subdirectories of the document.
21391  It's good practice anyway to store multipart documents in an extra directory.
21392 \end_layout
21393
21394 \begin_layout Standard
21395 The 
21396 \begin_inset Flex Code
21397 status collapsed
21398
21399 \begin_layout Plain Layout
21400 Update local directory from repository
21401 \end_layout
21402
21403 \end_inset
21404
21405  command updates the whole directory.
21406  If local changes are detected user is warned before update starts.
21407  In case of merge conflicts both versions of the conflicting document parts
21408  are placed in the final document.
21409  You have to review and correct the result of the merge.
21410  You'll find the conflicts enclosed in pairs of 
21411 \begin_inset Flex Code
21412 status collapsed
21413
21414 \begin_layout Plain Layout
21415 <<<<<<<
21416 \end_layout
21417
21418 \end_inset
21419
21420  and 
21421 \begin_inset Flex Code
21422 status collapsed
21423
21424 \begin_layout Plain Layout
21425 >>>>>>>
21426 \end_layout
21427
21428 \end_inset
21429
21430  separated by 
21431 \begin_inset Flex Code
21432 status collapsed
21433
21434 \begin_layout Plain Layout
21435 =======
21436 \end_layout
21437
21438 \end_inset
21439
21440 .
21441  The first part is your version as before the update operation with the
21442  document name prepended.
21443  The second one is the repository version with the version number after
21444  the sequence of 
21445 \begin_inset Flex Code
21446 status collapsed
21447
21448 \begin_layout Plain Layout
21449 >
21450 \end_layout
21451
21452 \end_inset
21453
21454  signs.
21455 \end_layout
21456
21457 \begin_layout Labeling
21458 \labelwidthstring 00.00.0000
21459 CVS
21460 \begin_inset space ~
21461 \end_inset
21462
21463 commands: 
21464 \begin_inset space ~
21465 \end_inset
21466
21467
21468 \begin_inset Newline newline
21469 \end_inset
21470
21471
21472 \begin_inset Flex Code
21473 status collapsed
21474
21475 \begin_layout Plain Layout
21476 cd $path; cvs diff 
21477 \family typewriter
21478 "."
21479 \end_layout
21480
21481 \end_inset
21482
21483  (Ask if changes are detected.)
21484 \begin_inset Newline newline
21485 \end_inset
21486
21487
21488 \begin_inset Flex Code
21489 status collapsed
21490
21491 \begin_layout Plain Layout
21492 cd $path; cvs -q update 
21493 \family typewriter
21494 "."
21495 \end_layout
21496
21497 \end_inset
21498
21499
21500 \end_layout
21501
21502 \begin_layout Standard
21503 where 
21504 \begin_inset Flex Code
21505 status collapsed
21506
21507 \begin_layout Plain Layout
21508 $path
21509 \end_layout
21510
21511 \end_inset
21512
21513  stands for the path to the document.
21514 \end_layout
21515
21516 \begin_layout Subsubsection
21517
21518 \family sans
21519 Show History
21520 \end_layout
21521
21522 \begin_layout Standard
21523 This shows the complete history of the CVS document.
21524  The output of 
21525 \family typewriter
21526 cvs log "<file-name>"
21527 \family default
21528  is shown in a browser.
21529 \end_layout
21530
21531 \begin_layout Subsubsection
21532 Revision info
21533 \end_layout
21534
21535 \begin_layout Standard
21536 \SpecialChar LyX
21537  supports CVS version number, author name, date and time of last commit.
21538  All those are extracted from 
21539 \family typewriter
21540 cvs log -r <file-name>
21541 \family default
21542 .
21543  See 
21544 \begin_inset CommandInset ref
21545 LatexCommand ref
21546 reference "subsec:VCS-Revision-Information"
21547
21548 \end_inset
21549
21550  for details.
21551 \end_layout
21552
21553 \begin_layout Subsection
21554 SVN commands in \SpecialChar LyX
21555
21556 \end_layout
21557
21558 \begin_layout Standard
21559 SVN is now partially supported by \SpecialChar LyX
21560 .
21561  You can find the commands in the 
21562 \family sans
21563 File\SpecialChar menuseparator
21564 Version
21565 \begin_inset space ~
21566 \end_inset
21567
21568 Control
21569 \family default
21570  submenu.
21571  Please note that if you use password protected access to repository via
21572  ssh, you will be asked in terminal window.
21573  \SpecialChar LyX
21574  was tested against SVN 1.5, 1.6, 1.7 and 1.8
21575 \begin_inset Foot
21576 status open
21577
21578 \begin_layout Plain Layout
21579 Most of the commands will work with 1.4 too, see 
21580 \begin_inset CommandInset ref
21581 LatexCommand ref
21582 reference "subsec:SVN-Repo-Update"
21583
21584 \end_inset
21585
21586 .
21587  There seems to be currently unresolved permissions problem under SVN 1.8
21588  with reverting changes when file is locked.
21589 \end_layout
21590
21591 \end_inset
21592
21593
21594 \end_layout
21595
21596 \begin_layout Subsubsection
21597
21598 \family sans
21599 Register
21600 \end_layout
21601
21602 \begin_layout Standard
21603 If your document is not under revision control, this is the only item shown
21604  in the menu.
21605  And if it is under revision control, the 
21606 \family sans
21607 Register
21608 \family default
21609  item is not visible.
21610 \end_layout
21611
21612 \begin_layout Standard
21613 This command registers in SVN your document ONLY in case you have already
21614  the documents directory under SVN control (in particular 
21615 \family typewriter
21616 .svn/entries
21617 \family default
21618  file exists).
21619  This means you have to checkout the archive by yourself.
21620 \end_layout
21621
21622 \begin_layout Standard
21623 Then you are asked interactively to supply an initial description of the
21624  document.
21625  Don't forget that registered file is not yet commited.
21626 \end_layout
21627
21628 \begin_layout Standard
21629 SVN command that is run: 
21630 \family typewriter
21631 svn add -q 
21632 \begin_inset Quotes eld
21633 \end_inset
21634
21635 <file-name>
21636 \begin_inset Quotes erd
21637 \end_inset
21638
21639
21640 \end_layout
21641
21642 \begin_layout Standard
21643 Read 
21644 \family typewriter
21645 man svn
21646 \family default
21647  to understand the switches.
21648 \end_layout
21649
21650 \begin_layout Subsubsection
21651
21652 \family sans
21653 Check In Changes
21654 \end_layout
21655
21656 \begin_layout Standard
21657 When you are finished editing a file, you commit your changes.
21658  When you do this, you are asked for a description of the changes.
21659  After that changes are commited.
21660 \end_layout
21661
21662 \begin_layout Standard
21663 SVN command:
21664 \begin_inset Foot
21665 status collapsed
21666
21667 \begin_layout Plain Layout
21668 In case locking is not enabled.
21669  See Section 
21670 \begin_inset CommandInset ref
21671 LatexCommand ref
21672 reference "subsec:SVN-File-Locking"
21673
21674 \end_inset
21675
21676 .
21677 \end_layout
21678
21679 \end_inset
21680
21681  
21682 \family typewriter
21683 svn commit -q -m"<description>" <file-name>
21684 \end_layout
21685
21686 \begin_layout Subsubsection
21687
21688 \family sans
21689 Check Out For Edit
21690 \end_layout
21691
21692 \begin_layout Standard
21693 Updates the changes of this file from the repository.
21694  Be sure you understand SVN merging and conflicts resolving before using
21695  this function, because all conflicts has to be resolved manually by you!
21696 \end_layout
21697
21698 \begin_layout Standard
21699 SVN command:
21700 \begin_inset Foot
21701 status collapsed
21702
21703 \begin_layout Plain Layout
21704 Ditto.
21705 \end_layout
21706
21707 \end_inset
21708
21709  
21710 \family typewriter
21711 svn update --non-interactive 
21712 \begin_inset Quotes eld
21713 \end_inset
21714
21715 <file-name>
21716 \begin_inset Quotes erd
21717 \end_inset
21718
21719
21720 \end_layout
21721
21722 \begin_layout Subsubsection
21723
21724 \family sans
21725 Revert To Repository Version
21726 \end_layout
21727
21728 \begin_layout Standard
21729 This will discard all changes made to the document since the last check
21730  in.
21731  You get a warning before changes are discarded.
21732 \end_layout
21733
21734 \begin_layout Standard
21735 SVN command: 
21736 \family typewriter
21737 svn revert -q 
21738 \begin_inset Quotes eld
21739 \end_inset
21740
21741 <file-name>
21742 \begin_inset Quotes erd
21743 \end_inset
21744
21745
21746 \end_layout
21747
21748 \begin_layout Subsubsection
21749
21750 \family sans
21751 Copy
21752 \end_layout
21753
21754 \begin_layout Standard
21755 This will create a copy of the current document including the version history.
21756  It requires a clean document without any changes since the last checkin.
21757  You are asked for a file name and a description of the copy operation.
21758  After that the copy is created, both locally and in the repository.
21759  If the parent directories of the copied and original document differ, all
21760  relative paths of included files of the copy are adjusted (like in 
21761 \family sans
21762 File\SpecialChar menuseparator
21763 Save As
21764 \family default
21765 \SpecialChar ldots
21766 ).
21767  Finally, the copy is loaded instead of the original document.
21768 \end_layout
21769
21770 \begin_layout Labeling
21771 \labelwidthstring 00.00.0000
21772 SVN
21773 \begin_inset space ~
21774 \end_inset
21775
21776 commands: 
21777 \begin_inset space ~
21778 \end_inset
21779
21780
21781 \begin_inset Newline newline
21782 \end_inset
21783
21784
21785 \begin_inset Flex Code
21786 status collapsed
21787
21788 \begin_layout Plain Layout
21789 svn copy -q 
21790 \family typewriter
21791
21792 \begin_inset Quotes eld
21793 \end_inset
21794
21795 <file-name>
21796 \begin_inset Quotes erd
21797 \end_inset
21798
21799  
21800 \begin_inset Quotes eld
21801 \end_inset
21802
21803 <new-file-name>
21804 \begin_inset Quotes erd
21805 \end_inset
21806
21807
21808 \end_layout
21809
21810 \end_inset
21811
21812
21813 \begin_inset Newline newline
21814 \end_inset
21815
21816
21817 \begin_inset Flex Code
21818 status collapsed
21819
21820 \begin_layout Plain Layout
21821 svn commit
21822 \end_layout
21823
21824 \end_inset
21825
21826
21827 \end_layout
21828
21829 \begin_layout Subsubsection
21830
21831 \family sans
21832 Rename
21833 \end_layout
21834
21835 \begin_layout Standard
21836 This will rename the current document including the version history.
21837  It requires a clean document without any changes since the last checkin.
21838  You are asked for a file name and a description of the rename operation.
21839  After that the document is renamed, both locally and in the repository.
21840  If the parent directories of the new and old file names differ, all relative
21841  paths of included files are adjusted (like in 
21842 \family sans
21843 File\SpecialChar menuseparator
21844 Save As
21845 \family default
21846 \SpecialChar ldots
21847 ).
21848  Finally, the document is reloaded using the new name.
21849 \end_layout
21850
21851 \begin_layout Labeling
21852 \labelwidthstring 00.00.0000
21853 SVN
21854 \begin_inset space ~
21855 \end_inset
21856
21857 commands: 
21858 \begin_inset space ~
21859 \end_inset
21860
21861
21862 \begin_inset Newline newline
21863 \end_inset
21864
21865
21866 \begin_inset Flex Code
21867 status collapsed
21868
21869 \begin_layout Plain Layout
21870 svn move -q 
21871 \family typewriter
21872
21873 \begin_inset Quotes eld
21874 \end_inset
21875
21876 <file-name>
21877 \begin_inset Quotes erd
21878 \end_inset
21879
21880  
21881 \begin_inset Quotes eld
21882 \end_inset
21883
21884 <new-file-name>
21885 \begin_inset Quotes erd
21886 \end_inset
21887
21888
21889 \end_layout
21890
21891 \end_inset
21892
21893
21894 \begin_inset Newline newline
21895 \end_inset
21896
21897
21898 \begin_inset Flex Code
21899 status collapsed
21900
21901 \begin_layout Plain Layout
21902 svn commit
21903 \end_layout
21904
21905 \end_inset
21906
21907
21908 \end_layout
21909
21910 \begin_layout Subsubsection
21911 \begin_inset CommandInset label
21912 LatexCommand label
21913 name "subsec:SVN-Repo-Update"
21914
21915 \end_inset
21916
21917 Update of the local directory checkout from repository
21918 \begin_inset Foot
21919 status collapsed
21920
21921 \begin_layout Plain Layout
21922 Note that this command will work only with subversion 
21923 \begin_inset Formula $\geqq1.5$
21924 \end_inset
21925
21926
21927 \end_layout
21928
21929 \end_inset
21930
21931
21932 \end_layout
21933
21934 \begin_layout Standard
21935 All the commands above have one shortcomming - they deal with the current
21936  document only.
21937  Once your document contains pictures, includes external 
21938 \begin_inset Flex Code
21939 status collapsed
21940
21941 \begin_layout Plain Layout
21942 .tex
21943 \end_layout
21944
21945 \end_inset
21946
21947  files and so on administration becomes more complicated.
21948  \SpecialChar LyX
21949  now supports updating the whole tree in which resides the document
21950 \begin_inset Foot
21951 status collapsed
21952
21953 \begin_layout Plain Layout
21954 One need to organize the files structure so that all external files are
21955  in the same directory or subdirectories of the document.
21956  
21957 \end_layout
21958
21959 \end_inset
21960
21961 .
21962  This become especially useful once you cooperate with people which neither
21963  know about subversion management nor they have ambition to commit additional
21964  material to the repository.
21965  
21966 \end_layout
21967
21968 \begin_layout Standard
21969 \begin_inset Flex Code
21970 status collapsed
21971
21972 \begin_layout Plain Layout
21973 Update local directory from repository
21974 \end_layout
21975
21976 \end_inset
21977
21978  command updates the whole directory and in case of merge conflicts local
21979  version of the files are left, so no unintended data loss occurs.
21980  If local changes are detected user is warned before update starts.
21981 \end_layout
21982
21983 \begin_layout Labeling
21984 \labelwidthstring 00.00.0000
21985 SVN
21986 \begin_inset space ~
21987 \end_inset
21988
21989 commands: 
21990 \begin_inset space ~
21991 \end_inset
21992
21993
21994 \begin_inset Newline newline
21995 \end_inset
21996
21997
21998 \begin_inset Flex Code
21999 status collapsed
22000
22001 \begin_layout Plain Layout
22002 svn diff $path
22003 \end_layout
22004
22005 \end_inset
22006
22007  (Ask if changes are detected.)
22008 \begin_inset Newline newline
22009 \end_inset
22010
22011
22012 \begin_inset Flex Code
22013 status collapsed
22014
22015 \begin_layout Plain Layout
22016 svn update –accept mine-full $path
22017 \end_layout
22018
22019 \end_inset
22020
22021
22022 \end_layout
22023
22024 \begin_layout Standard
22025 where 
22026 \begin_inset Flex Code
22027 status collapsed
22028
22029 \begin_layout Plain Layout
22030 $path
22031 \end_layout
22032
22033 \end_inset
22034
22035  stands for the path to the document.
22036 \end_layout
22037
22038 \begin_layout Subsubsection
22039
22040 \family sans
22041 Show History
22042 \end_layout
22043
22044 \begin_layout Standard
22045 This shows the complete history of the SVN document.
22046  The output of 
22047 \family typewriter
22048 svn log 
22049 \begin_inset Quotes eld
22050 \end_inset
22051
22052 <file-name>
22053 \begin_inset Quotes erd
22054 \end_inset
22055
22056
22057 \family default
22058  is shown in a browser.
22059 \end_layout
22060
22061 \begin_layout Subsubsection
22062 File Locking
22063 \begin_inset CommandInset label
22064 LatexCommand label
22065 name "subsec:SVN-File-Locking"
22066
22067 \end_inset
22068
22069
22070 \end_layout
22071
22072 \begin_layout Standard
22073 The file exchange through various revision control systems brings the problem
22074  of merge conflicts in case two different users try to edit the same (parts
22075  of) document.
22076  When such a conflict happens it needs manual resolving and one reasonable
22077  alternative is to provide some kind of locking mechanism, which guarantees
22078  that only one user is allowed to edit file at the given time.
22079 \end_layout
22080
22081 \begin_layout Standard
22082 SVN has two such mechanisms to provide mutual exclusivity for file access
22083  - locks and automatic setting of write permissions (see sec.
22084  
22085 \begin_inset CommandInset ref
22086 LatexCommand ref
22087 reference "subsec:Automatical-Locking-Property"
22088
22089 \end_inset
22090
22091 ) based on 
22092 \begin_inset Flex Code
22093 status collapsed
22094
22095 \begin_layout Plain Layout
22096 svn:needs-lock
22097 \end_layout
22098
22099 \end_inset
22100
22101  file svn property
22102 \begin_inset Foot
22103 status open
22104
22105 \begin_layout Plain Layout
22106 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
22107 \end_layout
22108
22109 \end_inset
22110
22111 .
22112  If this property is detected for a given document \SpecialChar LyX
22113  starts to use SVN locks
22114  for document editing automatically and the whole check-in/out mechanism
22115  switches to the same regimen as for RCS.
22116  This in particular means there are two different modes of file use in \SpecialChar LyX
22117 :
22118 \end_layout
22119
22120 \begin_layout Itemize
22121 Unlocked state.
22122  The loaded file is in the read-only mode.
22123  For editing on needs to check-out.
22124  
22125 \emph on
22126 Check-out
22127 \emph default
22128  consists of updating from the repository and gaining write lock.
22129  If the lock is not possible to obtain, we remain in unlocked state.
22130 \end_layout
22131
22132 \begin_layout Itemize
22133 Locked state.
22134  The loaded file is in the 'normal' edit mode.
22135  No other user is allowed to edit the file.
22136  
22137 \emph on
22138 Check-in
22139 \emph default
22140  consists of commiting changes and releasing write-lock.
22141  If no changes have been made to the document, no commit will be produced
22142 \begin_inset Foot
22143 status collapsed
22144
22145 \begin_layout Plain Layout
22146 Don't be puzzled by the fact that you will be asked for commit message anyway.
22147 \end_layout
22148
22149 \end_inset
22150
22151  and only the write-lock will be released.
22152 \end_layout
22153
22154 \begin_layout Standard
22155 SVN commands:
22156 \end_layout
22157
22158 \begin_layout Labeling
22159 \labelwidthstring 00.00.0000
22160 Check-in:
22161 \family typewriter
22162  svn commit -q -m"<description>" "<file-name>"
22163 \begin_inset Newline newline
22164 \end_inset
22165
22166 svn unlock "<file-name>"
22167 \end_layout
22168
22169 \begin_layout Labeling
22170 \labelwidthstring 00.00.0000
22171 Check-out: 
22172 \family typewriter
22173 svn update "<file-name>"
22174 \begin_inset Newline newline
22175 \end_inset
22176
22177 svn lock "<file-name>"
22178 \end_layout
22179
22180 \begin_layout Subsubsection
22181
22182 \family typewriter
22183 \begin_inset CommandInset label
22184 LatexCommand label
22185 name "subsec:Automatical-Locking-Property"
22186
22187 \end_inset
22188
22189
22190 \family default
22191 Automatic Locking Property
22192 \end_layout
22193
22194 \begin_layout Standard
22195 The above mentioned automatic setting of write permissions of the .lyx file
22196  can be set through
22197 \family sans
22198  File\SpecialChar menuseparator
22199 Version
22200 \begin_inset space ~
22201 \end_inset
22202
22203 Control\SpecialChar menuseparator
22204 Toggle locking property
22205 \family default
22206 .
22207  This command is active only when the file is not locked on the svn server
22208  (i.e.
22209  you need to check-out before proceeding).
22210 \end_layout
22211
22212 \begin_layout Labeling
22213 \labelwidthstring 00.00.0000
22214 SVN
22215 \begin_inset space ~
22216 \end_inset
22217
22218 commands:
22219 \end_layout
22220
22221 \begin_layout Labeling
22222 \labelwidthstring 00.00.0000
22223 Set:
22224 \family typewriter
22225  svn propset svn:needs-lock ON "<file-name>"
22226 \end_layout
22227
22228 \begin_layout Labeling
22229 \labelwidthstring 00.00.0000
22230 Unset: 
22231 \family typewriter
22232 svn propdel svn:needs-lock "<file-name>"
22233 \end_layout
22234
22235 \begin_layout Subsubsection
22236 \begin_inset CommandInset label
22237 LatexCommand label
22238 name "subsec:VCS-Revision-Information"
22239
22240 \end_inset
22241
22242 Revision Information in Documents
22243 \end_layout
22244
22245 \begin_layout Standard
22246 There are more possibilities how to activate revision information in our
22247  document.
22248 \end_layout
22249
22250 \begin_layout Itemize
22251 \SpecialChar LyX
22252  supports directly:
22253 \end_layout
22254
22255 \begin_deeper
22256 \begin_layout Itemize
22257 tree revision information (
22258 \begin_inset Flex Code
22259 status collapsed
22260
22261 \begin_layout Plain Layout
22262 vcs-tree-revision
22263 \end_layout
22264
22265 \end_inset
22266
22267 ).
22268  The result is the output of the 
22269 \begin_inset Flex Code
22270 status collapsed
22271
22272 \begin_layout Plain Layout
22273 svnversion
22274 \end_layout
22275
22276 \end_inset
22277
22278  command, the following table gives you an idea, how to read the results.
22279 \end_layout
22280
22281 \begin_layout Standard
22282 \align center
22283 \begin_inset Tabular
22284 <lyxtabular version="3" rows="6" columns="2">
22285 <features tabularvalignment="middle">
22286 <column alignment="center" valignment="top">
22287 <column alignment="center" valignment="top">
22288 <row>
22289 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22290 \begin_inset Text
22291
22292 \begin_layout Plain Layout
22293 Output
22294 \end_layout
22295
22296 \end_inset
22297 </cell>
22298 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22299 \begin_inset Text
22300
22301 \begin_layout Plain Layout
22302 Meaning
22303 \end_layout
22304
22305 \end_inset
22306 </cell>
22307 </row>
22308 <row>
22309 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22310 \begin_inset Text
22311
22312 \begin_layout Plain Layout
22313 4123:4168
22314 \end_layout
22315
22316 \end_inset
22317 </cell>
22318 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22319 \begin_inset Text
22320
22321 \begin_layout Plain Layout
22322 mixed revision working copy
22323 \end_layout
22324
22325 \end_inset
22326 </cell>
22327 </row>
22328 <row>
22329 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22330 \begin_inset Text
22331
22332 \begin_layout Plain Layout
22333 4168M
22334 \end_layout
22335
22336 \end_inset
22337 </cell>
22338 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22339 \begin_inset Text
22340
22341 \begin_layout Plain Layout
22342 modified working copy
22343 \end_layout
22344
22345 \end_inset
22346 </cell>
22347 </row>
22348 <row>
22349 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22350 \begin_inset Text
22351
22352 \begin_layout Plain Layout
22353 4123S
22354 \end_layout
22355
22356 \end_inset
22357 </cell>
22358 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22359 \begin_inset Text
22360
22361 \begin_layout Plain Layout
22362 switched working copy
22363 \end_layout
22364
22365 \end_inset
22366 </cell>
22367 </row>
22368 <row>
22369 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22370 \begin_inset Text
22371
22372 \begin_layout Plain Layout
22373 4123P
22374 \end_layout
22375
22376 \end_inset
22377 </cell>
22378 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22379 \begin_inset Text
22380
22381 \begin_layout Plain Layout
22382 partial working copy, from a sparse checkout
22383 \end_layout
22384
22385 \end_inset
22386 </cell>
22387 </row>
22388 <row>
22389 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22390 \begin_inset Text
22391
22392 \begin_layout Plain Layout
22393 4123:4168MS
22394 \end_layout
22395
22396 \end_inset
22397 </cell>
22398 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22399 \begin_inset Text
22400
22401 \begin_layout Plain Layout
22402 mixed revision, modified, switched working copy
22403 \end_layout
22404
22405 \end_inset
22406 </cell>
22407 </row>
22408 </lyxtabular>
22409
22410 \end_inset
22411
22412
22413 \end_layout
22414
22415 \begin_layout Itemize
22416 file revision information.
22417  The result comes from parsing the output of 
22418 \begin_inset Flex Code
22419 status collapsed
22420
22421 \begin_layout Plain Layout
22422 svn
22423 \begin_inset space ~
22424 \end_inset
22425
22426 info
22427 \begin_inset space ~
22428 \end_inset
22429
22430 –xml
22431 \begin_inset space ~
22432 \end_inset
22433
22434 file.lyx
22435 \end_layout
22436
22437 \end_inset
22438
22439 .
22440  Supported flags are:
22441 \end_layout
22442
22443 \begin_deeper
22444 \begin_layout Itemize
22445 version number of the last commit (
22446 \begin_inset Flex Code
22447 status collapsed
22448
22449 \begin_layout Plain Layout
22450 vcs-revision
22451 \end_layout
22452
22453 \end_inset
22454
22455 )
22456 \end_layout
22457
22458 \begin_layout Itemize
22459 author of the last commit (
22460 \begin_inset Flex Code
22461 status collapsed
22462
22463 \begin_layout Plain Layout
22464 vcs-author
22465 \end_layout
22466
22467 \end_inset
22468
22469 )
22470 \end_layout
22471
22472 \begin_layout Itemize
22473 date of the last commit (
22474 \begin_inset Flex Code
22475 status collapsed
22476
22477 \begin_layout Plain Layout
22478 vcs-date
22479 \end_layout
22480
22481 \end_inset
22482
22483 )
22484 \end_layout
22485
22486 \begin_layout Itemize
22487 time of the last commit (
22488 \begin_inset Flex Code
22489 status collapsed
22490
22491 \begin_layout Plain Layout
22492 vcs-time
22493 \end_layout
22494
22495 \end_inset
22496
22497 )
22498 \end_layout
22499
22500 \end_deeper
22501 \begin_layout Standard
22502 You can obtain this info via InsetInfo (e.g.
22503  
22504 \begin_inset Flex Code
22505 status collapsed
22506
22507 \begin_layout Plain Layout
22508 info-insert buffer vcs-date
22509 \end_layout
22510
22511 \end_inset
22512
22513 ).
22514  The information will be available only when you have the file stored under
22515  svn managment (i.e.
22516  the 
22517 \begin_inset Flex Code
22518 status collapsed
22519
22520 \begin_layout Plain Layout
22521 .svn
22522 \end_layout
22523
22524 \end_inset
22525
22526  directory is available with your document).
22527 \end_layout
22528
22529 \end_deeper
22530 \begin_layout Itemize
22531 Another—a hacking one—possibility is to use svn keywords
22532 \begin_inset Foot
22533 status collapsed
22534
22535 \begin_layout Plain Layout
22536 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
22537 \end_layout
22538
22539 \end_inset
22540
22541 .
22542  In short – you set file keywords property (e.g.
22543  
22544 \family sans
22545 svn propset svn:keywords 'Rev' file.lyx
22546 \family default
22547 ) and then paste keyword \SpecialChar TeX
22548  code
22549 \begin_inset Foot
22550 status collapsed
22551
22552 \begin_layout Plain Layout
22553 This is an easy way how to ensure that \SpecialChar LyX
22554  won't break the line in the middle
22555  of keyword tag.
22556 \end_layout
22557
22558 \end_inset
22559
22560  tag in your document (e.g.
22561  
22562 \begin_inset ERT
22563 status open
22564
22565 \begin_layout Plain Layout
22566
22567 $Rev$
22568 \end_layout
22569
22570 \end_inset
22571
22572 ).
22573  This way svn client will automatically substitute revision number (e.g.
22574  
22575 \begin_inset ERT
22576 status open
22577
22578 \begin_layout Plain Layout
22579
22580 $Rev: 59 $
22581 \end_layout
22582
22583 \end_inset
22584
22585 ) after each update and commit.
22586  There are more problems with this approach.
22587  Firstly, the '$' character is used in \SpecialChar TeX
22588  world for math equations, so any
22589  occurence of math formula 
22590 \begin_inset Formula $Rev$
22591 \end_inset
22592
22593  become 
22594 \begin_inset Formula $Rev:59$
22595 \end_inset
22596
22597  in your \SpecialChar LyX
22598  document.
22599  Similarly for other keywords like Id, Date, Author, etc.
22600  Secondly svn output is dependent on your locales, so its very easy that
22601  svn would produce some problematic strings once Date is used.
22602  Thirdly you get the whole 'Rev: 59' string in your document instead of
22603  the plain number.
22604  Until subversion implements user's custom keywords it will be hard to use
22605  this approach reliably or let \SpecialChar LyX
22606  to support it directly.
22607 \end_layout
22608
22609 \begin_layout Subsection
22610 SVN and Windows Environment
22611 \end_layout
22612
22613 \begin_layout Quote
22614 My inclination is to say that if the user cannot figure out the command
22615  line operations on their own fairly quickly, they would be well advised
22616  to use TortoiseSVN.
22617  —P.
22618  A.
22619  Rubin
22620 \end_layout
22621
22622 \begin_layout Subsubsection
22623 Preparation
22624 \end_layout
22625
22626 \begin_layout Standard
22627 In addition to installing \SpecialChar LyX
22628 , and having access to a Subversion repository,
22629  the user will need to install the Subversion client program.
22630  A Windows installer for the client program is available from 
22631 \begin_inset CommandInset href
22632 LatexCommand href
22633 name "CollabNet"
22634 target "http://www.collab.net/nonav/downloads/subversion/"
22635 literal "false"
22636
22637 \end_inset
22638
22639 .
22640  The user may also want to install 
22641 \begin_inset CommandInset href
22642 LatexCommand href
22643 name "TortoiseSVN"
22644 target "http://tortoisesvn.tigris.org/"
22645 literal "false"
22646
22647 \end_inset
22648
22649 , which integrates Subversion operations into the context (rightclick) menu
22650  of Windows Explorer.
22651  Operations done outside \SpecialChar LyX
22652  will typically be more convenient using the Explorer
22653  context menu.
22654  Note that TortoiseSVN is not a replacement for the client program, which
22655  is what \SpecialChar LyX
22656  itself will use.
22657 \end_layout
22658
22659 \begin_layout Subsubsection
22660 Bringing a document under Subversion control
22661 \end_layout
22662
22663 \begin_layout Standard
22664 Before a \SpecialChar LyX
22665  document can be brought under version control in Subversion, its
22666  parent directory needs to be under version control.
22667  If the document is being added to a project already in the repository,
22668  this is accomplished by checking the project out to the directory where
22669  the new document will be placed.
22670  If the project itself is not yet under version control (for instance, if
22671  this document starts a new project), the directory must be imported into
22672  the repository.
22673  This is done outside \SpecialChar LyX
22674 .
22675  Both import and checkout are easily accomplished from the Explorer context
22676  menu using TortoiseSVN, or alternatively can be done using the command
22677  line client at a DOS prompt.
22678  The procedure for importing the project using TortoiseSVN is described
22679  below, assuming an existing repository and a new project being started
22680  in 
22681 \family typewriter
22682 C:
22683 \backslash
22684 new project
22685 \family default
22686 .
22687  For information on using the Subversion client program, run 
22688 \family typewriter
22689 svn --help 
22690 \family default
22691 in a DOS shell.
22692 \end_layout
22693
22694 \begin_layout Enumerate
22695 Locate 
22696 \family typewriter
22697 C:
22698 \backslash
22699 new project 
22700 \family default
22701 in Windows Explorer, right click it, and select 
22702 \family sans
22703 TortoiseSVN\SpecialChar menuseparator
22704 Repo-browser
22705 \family default
22706 .
22707  If necessary, adjust the URL for the repository, then click OK.
22708 \end_layout
22709
22710 \begin_layout Enumerate
22711 Right click the level of the repository under which you want to place the
22712  new project folder (typically the top level) and click 
22713 \family sans
22714 Create folder
22715 \family default
22716  Supply a name for the project folder and click OK.
22717  Add a message for the log file if desired, then click OK again.
22718  The new project folder should appear in the repository.
22719  Finally, click OK again to exit the repository browser.
22720 \end_layout
22721
22722 \begin_layout Enumerate
22723 Once again right click 
22724 \family typewriter
22725 C:
22726 \backslash
22727 new project
22728 \family default
22729 , this time selecting SVN Checkout\SpecialChar ldots
22730  Select the URL of the project folder
22731  you just created in the repository, and set the checkout directory to 
22732 \family typewriter
22733 C:
22734 \backslash
22735 new project.
22736
22737 \family default
22738  Click OK.
22739  You will be warned about a non-empty folder; click OK to proceed.
22740  You should now have a 
22741 \family typewriter
22742 .svn
22743 \family default
22744  directory under 
22745 \family typewriter
22746 C:
22747 \backslash
22748 new project.
22749 \end_layout
22750
22751 \begin_layout Enumerate
22752 Create or open your document in \SpecialChar LyX
22753  and click 
22754 \family sans
22755 File\SpecialChar menuseparator
22756 Version
22757 \begin_inset space ~
22758 \end_inset
22759
22760 Control\SpecialChar menuseparator
22761 Register.
22762  
22763 \family default
22764 Add a log message and click OK to commit the document to version control.
22765 \end_layout
22766
22767 \begin_layout Standard
22768 From this point onward, you should have full functionality in the 
22769 \family sans
22770 File\SpecialChar menuseparator
22771 Version
22772 \begin_inset space ~
22773 \end_inset
22774
22775 Control
22776 \family default
22777  menu.
22778  You also have the option of checking the document in and out, viewing its
22779  history, etc.
22780  using the TortoiseSVN context menu in Windows Explorer or the Subversion
22781  client program from a command prompt.
22782 \end_layout
22783
22784 \begin_layout Subsubsection
22785 SSH tunnel used with SVN under Windows
22786 \end_layout
22787
22788 \begin_layout Standard
22789 Compared with Linux setting up an svn client to communicate over ssh under
22790  Windows is a rather troublesome task.
22791  We will at least offer some hints how to setup the client side but prior
22792  knowledge about ssh and the Windows command line is needed, also be prepared
22793  for a great deal of frustration\SpecialChar ldots
22794
22795 \end_layout
22796
22797 \begin_layout Enumerate
22798 Get an svn client for windows, as described in the previous sections.
22799  When it is a fresh install run some svn command (e.g.
22800  
22801 \begin_inset Flex Code
22802 status collapsed
22803
22804 \begin_layout Plain Layout
22805 svn –version
22806 \end_layout
22807
22808 \end_inset
22809
22810 ) to create config files, which you will need to change later on.
22811 \end_layout
22812
22813 \begin_layout Enumerate
22814 Choose an ssh client for Windows.
22815  There are several possibilities, we will use the one from Putty tools
22816 \begin_inset Foot
22817 status collapsed
22818
22819 \begin_layout Plain Layout
22820 \begin_inset Flex URL
22821 status collapsed
22822
22823 \begin_layout Plain Layout
22824
22825 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
22826 \end_layout
22827
22828 \end_inset
22829
22830
22831 \end_layout
22832
22833 \end_inset
22834
22835 .
22836  You will need to set the connection up so that the client doesn't ask for
22837  any password from you.
22838  To keep things easy we will use only keys without any additional password
22839  protection etc.
22840 \end_layout
22841
22842 \begin_deeper
22843 \begin_layout Enumerate
22844 Generate keys by 
22845 \begin_inset Flex Code
22846 status collapsed
22847
22848 \begin_layout Plain Layout
22849 puttygen
22850 \end_layout
22851
22852 \end_inset
22853
22854 .
22855  Save your private .ppk key file and put the public one on the server side.
22856  If the SVN server runs on Linux, note that the format of the public key
22857  is not compatible with Linux openssh and you will need to direcly copy-paste
22858  the key from the “
22859 \emph on
22860 Public key for pasting into OpenSSH authorized_keys file
22861 \emph default
22862 :” edit field into the server's 
22863 \begin_inset Flex Code
22864 status collapsed
22865
22866 \begin_layout Plain Layout
22867 ~/.ssh/authorized_keys
22868 \end_layout
22869
22870 \end_inset
22871
22872  / 
22873 \begin_inset Flex Code
22874 status collapsed
22875
22876 \begin_layout Plain Layout
22877 authorized_keys2
22878 \end_layout
22879
22880 \end_inset
22881
22882  file.
22883 \end_layout
22884
22885 \begin_layout Enumerate
22886 Get the Putty's 
22887 \begin_inset Flex Code
22888 status collapsed
22889
22890 \begin_layout Plain Layout
22891 plink
22892 \end_layout
22893
22894 \end_inset
22895
22896 .
22897  In the SVN config file
22898 \begin_inset Foot
22899 status collapsed
22900
22901 \begin_layout Plain Layout
22902 Exact path depends on Windows version, usually somewhere around 
22903 \begin_inset Flex Code
22904 status collapsed
22905
22906 \begin_layout Plain Layout
22907 c:
22908 \backslash
22909 Documents and Settings
22910 \backslash
22911 user
22912 \backslash
22913 Application Data
22914 \backslash
22915 Subversion
22916 \backslash
22917 config
22918 \end_layout
22919
22920 \end_inset
22921
22922  / 
22923 \begin_inset Flex Code
22924 status collapsed
22925
22926 \begin_layout Plain Layout
22927 AppData
22928 \backslash
22929 Roaming
22930 \backslash
22931 Subversion
22932 \end_layout
22933
22934 \end_inset
22935
22936 .
22937 \end_layout
22938
22939 \end_inset
22940
22941 , section [tunnels], setup ssh command, e.g.
22942  
22943 \begin_inset Flex Code
22944 status collapsed
22945
22946 \begin_layout Plain Layout
22947 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
22948 \end_layout
22949
22950 \end_inset
22951
22952 .
22953 \begin_inset Foot
22954 status collapsed
22955
22956 \begin_layout Plain Layout
22957 It will usually take a lot of time to get exact command right and it depends
22958  on many things.
22959  For example do not have some remote server saved as a default session in
22960  Putty etc.
22961  If things fail, try to connect via plink without SVN first.
22962 \end_layout
22963
22964 \end_inset
22965
22966
22967 \end_layout
22968
22969 \end_deeper
22970 \begin_layout Enumerate
22971 Checkout the SVN archive, e.
22972 \begin_inset space \thinspace{}
22973 \end_inset
22974
22975 g.
22976 \begin_inset Newline newline
22977 \end_inset
22978
22979
22980 \begin_inset Flex Code
22981 status collapsed
22982
22983 \begin_layout Plain Layout
22984 svn co svn+ssh://user@server/repository_path
22985 \end_layout
22986
22987 \end_inset
22988
22989 .
22990 \end_layout
22991
22992 \begin_layout Subsubsection
22993 End-of-Line Conversions
22994 \end_layout
22995
22996 \begin_layout Standard
22997 When the collaborators are mixing Linux and Windows environments, \SpecialChar LyX
22998  will
22999  use different line endings inside the .lyx files.
23000  This is not a problem as far as \SpecialChar LyX
23001  functionality is concerned, but the commit
23002  diffs will be huge and merge-conflicts prone.
23003  Fortunately SVN itself knows
23004 \begin_inset Foot
23005 status collapsed
23006
23007 \begin_layout Plain Layout
23008 \begin_inset Flex URL
23009 status collapsed
23010
23011 \begin_layout Plain Layout
23012
23013 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
23014 \end_layout
23015
23016 \end_inset
23017
23018
23019 \end_layout
23020
23021 \end_inset
23022
23023  how to deal with CR/LF problems when switching .lyx files to the 
23024 \begin_inset Flex Code
23025 status collapsed
23026
23027 \begin_layout Plain Layout
23028 native
23029 \end_layout
23030
23031 \end_inset
23032
23033  mode.
23034 \begin_inset Foot
23035 status collapsed
23036
23037 \begin_layout Plain Layout
23038 For the lazy guys: 
23039 \begin_inset Flex Code
23040 status collapsed
23041
23042 \begin_layout Plain Layout
23043 svn propset svn:eol-style native FILE_NAME
23044 \end_layout
23045
23046 \end_inset
23047
23048
23049 \end_layout
23050
23051 \end_inset
23052
23053
23054 \end_layout
23055
23056 \begin_layout Subsection
23057 GIT commands in \SpecialChar LyX
23058
23059 \end_layout
23060
23061 \begin_layout Standard
23062 A minimal subset of GIT commands is now supported by \SpecialChar LyX
23063 .
23064  You can find the commands in the 
23065 \family sans
23066 File\SpecialChar menuseparator
23067 Version
23068 \begin_inset space ~
23069 \end_inset
23070
23071 Control
23072 \family default
23073  submenu.
23074  Please note that if you use password protected access to repository via
23075  ssh, you will be asked in terminal window.
23076  \SpecialChar LyX
23077  was tested against GIT 1.7.
23078 \begin_inset Foot
23079 status open
23080
23081 \begin_layout Plain Layout
23082 Windows users please note that you need to ensure that git is on the path.
23083  This can be set from within \SpecialChar LyX
23084  at 
23085 \family sans
23086 Tools\SpecialChar menuseparator
23087 Preferences\SpecialChar menuseparator
23088 Paths\SpecialChar menuseparator
23089 PATH prefix
23090 \family default
23091 .
23092 \end_layout
23093
23094 \end_inset
23095
23096
23097 \end_layout
23098
23099 \begin_layout Standard
23100 One big difference of GIT and the other supported version control systems
23101  is the distributed nature of GIT: With traditional version control systems
23102  there is one central server which hosts the repository.
23103  Users commit their changes to the server, and get updates made by other
23104  users from it.
23105  With GIT, users commit to a local repository.
23106  The local repository can be synchronized with one or more remote repositories
23107  using the 
23108 \begin_inset Flex Code
23109 status collapsed
23110
23111 \begin_layout Plain Layout
23112 pull
23113 \end_layout
23114
23115 \end_inset
23116
23117  and 
23118 \begin_inset Flex Code
23119 status collapsed
23120
23121 \begin_layout Plain Layout
23122 push
23123 \end_layout
23124
23125 \end_inset
23126
23127  GIT commands.
23128  \SpecialChar LyX
23129  does not interact in any way with remote GIT repositories.
23130  It works exclusively with the local repository in a very similar way as
23131  with a central CVS or SVN repository.
23132  If you use remote GIT repositories you need to do the 
23133 \begin_inset Flex Code
23134 status collapsed
23135
23136 \begin_layout Plain Layout
23137 pull
23138 \end_layout
23139
23140 \end_inset
23141
23142  and 
23143 \begin_inset Flex Code
23144 status collapsed
23145
23146 \begin_layout Plain Layout
23147 push
23148 \end_layout
23149
23150 \end_inset
23151
23152  operations with your favourite GIT client.
23153 \end_layout
23154
23155 \begin_layout Subsubsection
23156
23157 \family sans
23158 Register
23159 \end_layout
23160
23161 \begin_layout Standard
23162 If your document is not under revision control, this is the only item shown
23163  in the menu.
23164  And if it is under revision control, the 
23165 \family sans
23166 Register
23167 \family default
23168  item is not visible.
23169 \end_layout
23170
23171 \begin_layout Standard
23172 This command registers in GIT your document ONLY in case you have already
23173  the documents directory under GIT control (in particular 
23174 \family typewriter
23175 .git/index
23176 \family default
23177  file exists).
23178  This means you have to checkout the archive by yourself.
23179 \end_layout
23180
23181 \begin_layout Standard
23182 Then you are asked interactively to supply an initial description of the
23183  document.
23184  Don't forget that registered file is not yet commited.
23185 \end_layout
23186
23187 \begin_layout Standard
23188 GIT command that is run: 
23189 \family typewriter
23190 git add 
23191 \begin_inset Quotes eld
23192 \end_inset
23193
23194 <file-name>
23195 \begin_inset Quotes erd
23196 \end_inset
23197
23198
23199 \end_layout
23200
23201 \begin_layout Standard
23202 Read 
23203 \family typewriter
23204 man git
23205 \family default
23206  to understand the switches.
23207 \end_layout
23208
23209 \begin_layout Subsubsection
23210
23211 \family sans
23212 Check In Changes
23213 \end_layout
23214
23215 \begin_layout Standard
23216 When you are finished editing a file, you commit your changes.
23217  When you do this, you are asked for a description of the changes.
23218  After that changes are commited.
23219 \end_layout
23220
23221 \begin_layout Standard
23222 GIT command: 
23223 \family typewriter
23224 git commit -q -m"<description>" <file-name>
23225 \end_layout
23226
23227 \begin_layout Subsubsection
23228
23229 \family sans
23230 Revert To Repository Version
23231 \end_layout
23232
23233 \begin_layout Standard
23234 This will discard all changes made to the document since the last check
23235  in.
23236  You get a warning before changes are discarded.
23237 \end_layout
23238
23239 \begin_layout Standard
23240 GIT command: 
23241 \family typewriter
23242 git checkout -q 
23243 \begin_inset Quotes eld
23244 \end_inset
23245
23246 <file-name>
23247 \begin_inset Quotes erd
23248 \end_inset
23249
23250
23251 \end_layout
23252
23253 \begin_layout Subsubsection
23254
23255 \family sans
23256 Rename
23257 \end_layout
23258
23259 \begin_layout Standard
23260 This will rename the current document including the version history.
23261  It requires a clean document without any changes since the last checkin.
23262  You are asked for a file name and a description of the rename operation.
23263  After that the document is renamed, both locally and in the repository.
23264  If the parent directories of the new and old file names differ, all relative
23265  paths of included files are adjusted (like in 
23266 \family sans
23267 File\SpecialChar menuseparator
23268 Save As
23269 \family default
23270 \SpecialChar ldots
23271 ).
23272  Finally, the document is reloaded using the new name.
23273 \end_layout
23274
23275 \begin_layout Labeling
23276 \labelwidthstring 00.00.0000
23277 GIT
23278 \begin_inset space ~
23279 \end_inset
23280
23281 commands: 
23282 \begin_inset space ~
23283 \end_inset
23284
23285
23286 \begin_inset Newline newline
23287 \end_inset
23288
23289
23290 \begin_inset Flex Code
23291 status collapsed
23292
23293 \begin_layout Plain Layout
23294 git mv 
23295 \family typewriter
23296
23297 \begin_inset Quotes eld
23298 \end_inset
23299
23300 <file-name>
23301 \begin_inset Quotes erd
23302 \end_inset
23303
23304  
23305 \begin_inset Quotes eld
23306 \end_inset
23307
23308 <new-file-name>
23309 \begin_inset Quotes erd
23310 \end_inset
23311
23312
23313 \end_layout
23314
23315 \end_inset
23316
23317
23318 \begin_inset Newline newline
23319 \end_inset
23320
23321
23322 \begin_inset Flex Code
23323 status collapsed
23324
23325 \begin_layout Plain Layout
23326 git commit
23327 \end_layout
23328
23329 \end_inset
23330
23331
23332 \end_layout
23333
23334 \begin_layout Subsubsection
23335
23336 \family sans
23337 Show History
23338 \end_layout
23339
23340 \begin_layout Standard
23341 This shows the complete history of the GIT document.
23342  The output of 
23343 \family typewriter
23344 git log 
23345 \begin_inset Quotes eld
23346 \end_inset
23347
23348 <file-name>
23349 \begin_inset Quotes erd
23350 \end_inset
23351
23352
23353 \family default
23354  is shown in a browser.
23355 \end_layout
23356
23357 \begin_layout Subsubsection
23358 Version Info
23359 \end_layout
23360
23361 \begin_layout Standard
23362 \SpecialChar LyX
23363  supports GIT hash number of the last commit to the file, author name, date
23364  and time of last commit.
23365  All those are extracted from 
23366 \family typewriter
23367 git log -n 1 --pretty=format:%H%n%an%n%ai
23368 \family default
23369 .
23370  Tree version information is obtained via 
23371 \family typewriter
23372 git describe --abbrev --dirty --long
23373 \family default
23374 .
23375  See 
23376 \begin_inset CommandInset ref
23377 LatexCommand ref
23378 reference "subsec:VCS-Revision-Information"
23379
23380 \end_inset
23381
23382  for other details.
23383 \end_layout
23384
23385 \begin_layout Subsection
23386 Further tuning
23387 \end_layout
23388
23389 \begin_layout Standard
23390 With the recent addition of the vc-command function \SpecialChar LyX
23391  power users are allowed
23392  to create their own commands for revision control.
23393 \end_layout
23394
23395 \begin_layout Standard
23396 As an example you can see how two TortoiseSVN commands could be integrated
23397  directly:
23398 \end_layout
23399
23400 \begin_layout Description
23401 Commit: 
23402 \begin_inset Flex Code
23403 status collapsed
23404
23405 \begin_layout Plain Layout
23406 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
23407 \end_layout
23408
23409 \end_inset
23410
23411
23412 \end_layout
23413
23414 \begin_layout Description
23415 Revert: 
23416 \begin_inset Flex Code
23417 status collapsed
23418
23419 \begin_layout Plain Layout
23420 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
23421 \end_layout
23422
23423 \end_inset
23424
23425
23426 \end_layout
23427
23428 \begin_layout Subsection
23429 Version control and Document comparison
23430 \end_layout
23431
23432 \begin_layout Standard
23433 One of the typical uses of version control is to inspect the changes between
23434  revisions, usually by creating 
23435 \begin_inset Flex Code
23436 status collapsed
23437
23438 \begin_layout Plain Layout
23439 diff
23440 \end_layout
23441
23442 \end_inset
23443
23444  dumps.
23445  While this is useful for plain text files, it is much less useful in the
23446  case of \SpecialChar LyX
23447  files, which have more a complicated structure.
23448  Hence we provide binding to the Document comparison feature.
23449  There are two ways of calling this feature - either by direct call of 
23450 \begin_inset Flex Code
23451 status collapsed
23452
23453 \begin_layout Plain Layout
23454 VC_COMPARE
23455 \end_layout
23456
23457 \end_inset
23458
23459  \SpecialChar LyX
23460  function (for details see \SpecialChar LyX
23461  functions manual) or by icon/menu item 
23462 \begin_inset Flex Noun
23463 status collapsed
23464
23465 \begin_layout Plain Layout
23466 Compare with older revision...
23467 \end_layout
23468
23469 \end_inset
23470
23471 .
23472  One can either compare two chosen revisions of the document or he can simply
23473  compare the current version of edited text with older revisions (where
23474  '
23475 \begin_inset Flex Noun
23476 status collapsed
23477
23478 \begin_layout Plain Layout
23479 0
23480 \end_layout
23481
23482 \end_inset
23483
23484 ' revisions back means comparison of the edited file with last commited
23485  revision).
23486  
23487 \end_layout
23488
23489 \begin_layout Standard
23490 This feature is supported for SVN and RCS though due to the more complicated
23491  versioning scheme of RCS there is a constraint – when addressing the revisions
23492  in dialog, numbers always point to the last number in RCS revision number,
23493  i.e.
23494  '35' in '1.2.35'.
23495  We don't currently support GIT addressing of revisions, one can just compare
23496  edited document with its revision X steps backs, where X is addressed as
23497  HEAD~X.
23498 \end_layout
23499
23500 \begin_layout Section
23501 Literate Programming
23502 \end_layout
23503
23504 \begin_layout Standard
23505 Updated by 
23506 \noun on
23507 Kayvan Sylvan 
23508 \noun default
23509 (kayvan@sylvan.com)
23510 \noun on
23511
23512 \noun default
23513 original documentation written by 
23514 \noun on
23515 Edmar Wienskoski Jr.
23516
23517 \noun default
23518  (edmar-w-jr@technologist.com)
23519 \end_layout
23520
23521 \begin_layout Subsection
23522 Introduction
23523 \end_layout
23524
23525 \begin_layout Standard
23526 The main purpose of this documentation is to show you how to use \SpecialChar LyX
23527  for literate
23528  programming, where it is assumed that you are familiar with this programming
23529  technique, and know what 
23530 \begin_inset Quotes eld
23531 \end_inset
23532
23533 tangling
23534 \begin_inset Quotes erd
23535 \end_inset
23536
23537  and 
23538 \begin_inset Quotes eld
23539 \end_inset
23540
23541 weaving
23542 \begin_inset Quotes erd
23543 \end_inset
23544
23545  means.
23546  If that is not the case, please follow the web links provided in the following
23547  sections.
23548  There is a lot of good documentation out there covering old development
23549  history to the latest tools tips.
23550 \end_layout
23551
23552 \begin_layout Standard
23553 It is also assumed that you are familiar with \SpecialChar LyX
23554  itself to a point that you
23555  are comfortable changing your \SpecialChar LyX
23556  preferences, and X resources file.
23557  If that is not the case please refer to other \SpecialChar LyX
23558  documentation to cover your
23559  specific needs.
23560 \end_layout
23561
23562 \begin_layout Subsection
23563 Literate Programming
23564 \end_layout
23565
23566 \begin_layout Standard
23567 From the Literate Programming FAQ: 
23568 \end_layout
23569
23570 \begin_layout Quotation
23571 Literate programming is the combination of documentation and source together
23572  in a fashion suited for reading by human beings.
23573  In fact, literate programs should be enjoyable reading, even inviting!
23574  (Sorry Bob, I couldn't resist!) In general, literate programs combine source
23575  and documentation in a single file.
23576  Literate programming tools then parse the file to produce either readable
23577  documentation or compilable source.
23578  The WEB style of literate programming was created by D.
23579 \begin_inset space \thinspace{}
23580 \end_inset
23581
23582 E.
23583  Knuth during the development of his \SpecialChar TeX
23584  typesetting software.
23585  
23586 \end_layout
23587
23588 \begin_layout Standard
23589 Another excerpt says:
23590 \end_layout
23591
23592 \begin_layout Quotation
23593
23594 \emph on
23595 How is literate programming different from verbose commenting?
23596 \end_layout
23597
23598 \begin_layout Quotation
23599 There are three distinguishing characteristics.
23600  In order of importance, they are: 
23601 \end_layout
23602
23603 \begin_deeper
23604 \begin_layout Itemize
23605 flexible order of elaboration 
23606 \end_layout
23607
23608 \begin_layout Itemize
23609 automatic support for browsing 
23610 \end_layout
23611
23612 \begin_layout Itemize
23613 typeset documentation, especially diagrams and mathematics 
23614 \end_layout
23615
23616 \end_deeper
23617 \begin_layout Standard
23618 Now that I sparked your curiosity, take a look in the references.
23619 \end_layout
23620
23621 \begin_layout Subsubsection
23622 References
23623 \end_layout
23624
23625 \begin_layout Standard
23626 The complete Literate Programming FAQ can be found at:
23627 \end_layout
23628
23629 \begin_layout Quote
23630 Literate Programming FAQ 
23631 \begin_inset Flex URL
23632 status collapsed
23633
23634 \begin_layout Plain Layout
23635
23636 http://www.literateprogramming.com/lpfaq.pdf
23637 \end_layout
23638
23639 \end_inset
23640
23641
23642 \end_layout
23643
23644 \begin_layout Standard
23645 The FAQ lists 23 (twenty three!) different literate programming tools.
23646  Where some are specialized or 
23647 \begin_inset Quotes eld
23648 \end_inset
23649
23650 tailored
23651 \begin_inset Quotes erd
23652 \end_inset
23653
23654  for particular programming languages, while other have general scope.
23655  I selected 
23656 \noun on
23657 Noweb
23658 \noun default
23659  for my own use for several reasons:
23660 \end_layout
23661
23662 \begin_layout Itemize
23663 It can generate the documentation either in \SpecialChar LaTeX
23664  or HTML.
23665 \end_layout
23666
23667 \begin_layout Itemize
23668 It has a open architecture, i.
23669 \begin_inset space \thinspace{}
23670 \end_inset
23671
23672 e.
23673 \begin_inset space \space{}
23674 \end_inset
23675
23676 it is easy to plug in new filters and to perform special processing that
23677  you may need.
23678  
23679 \end_layout
23680
23681 \begin_layout Itemize
23682 There is a good selection of filters available already (the HTML is one
23683  of them).
23684 \end_layout
23685
23686 \begin_layout Itemize
23687 It is free.
23688 \end_layout
23689
23690 \begin_layout Standard
23691 The Noweb web page can be found at: 
23692 \end_layout
23693
23694 \begin_layout Quote
23695 Noweb home page 
23696 \begin_inset Flex URL
23697 status collapsed
23698
23699 \begin_layout Plain Layout
23700
23701 http://www.cs.virginia.edu/~nr/noweb/
23702 \end_layout
23703
23704 \end_inset
23705
23706
23707 \end_layout
23708
23709 \begin_layout Standard
23710 Starting from there you can reach many other interesting links and even
23711  some literate program examples.
23712 \end_layout
23713
23714 \begin_layout Subsection
23715 \SpecialChar LyX
23716  and Literate Programming with Noweb
23717 \end_layout
23718
23719 \begin_layout Standard
23720 The \SpecialChar LyX
23721  support for Literate Programming is provided by using the generic \SpecialChar LyX
23722
23723  converters mechanism.
23724  This support is provided in a 
23725 \begin_inset Quotes eld
23726 \end_inset
23727
23728 Noweb independent
23729 \begin_inset Quotes erd
23730 \end_inset
23731
23732  way, i.
23733 \begin_inset space \thinspace{}
23734 \end_inset
23735
23736 e.
23737 \begin_inset space \space{}
23738 \end_inset
23739
23740 you will be able to use this new \SpecialChar LyX
23741  feature with some other literate programming
23742  tool of your choice by just changing your \SpecialChar LyX
23743  preferences.
23744 \end_layout
23745
23746 \begin_layout Subsubsection
23747 Generating documents and code (weaving and tangling)
23748 \end_layout
23749
23750 \begin_layout Paragraph
23751 Using the noweb module
23752 \end_layout
23753
23754 \begin_layout Standard
23755 If you have installed Noweb and \SpecialChar LyX
23756  successfully, whenever you open a new document,
23757  after you have chosen its document class, use the Document->Settings menu
23758  to add the 
23759 \begin_inset Quotes eld
23760 \end_inset
23761
23762 noweb
23763 \begin_inset Quotes erd
23764 \end_inset
23765
23766  module.
23767  If Noweb is correctly installed, when you click on the 
23768 \begin_inset Quotes eld
23769 \end_inset
23770
23771 Modules
23772 \begin_inset Quotes erd
23773 \end_inset
23774
23775  link, you will see the 
23776 \begin_inset Quotes eld
23777 \end_inset
23778
23779 noweb
23780 \begin_inset Quotes erd
23781 \end_inset
23782
23783  module in the available list and you can add it to your document.
23784 \end_layout
23785
23786 \begin_layout Paragraph
23787 Typing code in
23788 \end_layout
23789
23790 \begin_layout Standard
23791 \SpecialChar LyX
23792  enables you to write code with a layout named 
23793 \begin_inset Flex Noun
23794 status collapsed
23795
23796 \begin_layout Plain Layout
23797 Chunk
23798 \end_layout
23799
23800 \end_inset
23801
23802 .
23803  Noweb delimits chunks like this:
23804 \end_layout
23805
23806 \begin_layout LyX-Code
23807 <<My code>>=
23808 \end_layout
23809
23810 \begin_layout LyX-Code
23811   code
23812 \end_layout
23813
23814 \begin_layout LyX-Code
23815   more code
23816 \end_layout
23817
23818 \begin_layout LyX-Code
23819   even more code
23820 \end_layout
23821
23822 \begin_layout LyX-Code
23823   @
23824 \end_layout
23825
23826 \begin_layout Standard
23827 The problem is that whatever is written in between the << and the 
23828 \family typewriter
23829 @
23830 \family default
23831  must be taken literally, i.
23832 \begin_inset space \thinspace{}
23833 \end_inset
23834
23835 e.
23836 \begin_inset space \space{}
23837 \end_inset
23838
23839 \SpecialChar LyX
23840  should be prevented from making any special interpretation of what has
23841  been written.
23842  This is also handled by 
23843 \begin_inset Flex Noun
23844 status collapsed
23845
23846 \begin_layout Plain Layout
23847 Chunk
23848 \end_layout
23849
23850 \end_inset
23851
23852 , that works like a normal paragraph but has a free spacing capability.
23853 \end_layout
23854
23855 \begin_layout Standard
23856 As a special note, you can also use the 
23857 \begin_inset Quotes eld
23858 \end_inset
23859
23860 %def
23861 \begin_inset Quotes erd
23862 \end_inset
23863
23864  construct of Noweb in your chunks to add items to Noweb's identifier cross-refe
23865 rence:
23866 \end_layout
23867
23868 \begin_layout LyX-Code
23869 <<My chunk>>=
23870 \end_layout
23871
23872 \begin_layout LyX-Code
23873 def some_function(args):
23874 \end_layout
23875
23876 \begin_layout LyX-Code
23877    "This is the doc string for this function."
23878 \end_layout
23879
23880 \begin_layout LyX-Code
23881    print "My args: ", args
23882 \end_layout
23883
23884 \begin_layout LyX-Code
23885 @ %def some_function
23886 \end_layout
23887
23888 \begin_layout Standard
23889 For an example of this usage and the resulting cross-reference output, look
23890  at the Literate python program in 
23891 \emph on
23892 LIBDIR/examples/listerrors.lyx
23893 \emph default
23894  which should make this all clear.
23895 \end_layout
23896
23897 \begin_layout Paragraph
23898 Generating the documentation
23899 \end_layout
23900
23901 \begin_layout Standard
23902 At this point you already have a new document file with a proper document
23903  class, and with some code and text on it.
23904  How do I print it? The answer is simple, you select 
23905 \family sans
23906 View\SpecialChar menuseparator
23907 DVI,
23908 \family default
23909  etc.
23910  Just like you would do for a plain document.
23911  No special procedure is required.
23912 \end_layout
23913
23914 \begin_layout Standard
23915 To help orientate you, I will now explain what happens inside \SpecialChar LyX
23916 :
23917 \end_layout
23918
23919 \begin_layout Enumerate
23920 When the 
23921 \family sans
23922 Update\SpecialChar menuseparator
23923 DVI
23924 \family default
23925  menu option is chosen, a \SpecialChar LaTeX
23926  file is generated.
23927  
23928 \end_layout
23929
23930 \begin_deeper
23931 \begin_layout Standard
23932 If the document is of any literate class the generated file will be named
23933  with an extension name defined by the 
23934 \begin_inset Quotes eld
23935 \end_inset
23936
23937 literate
23938 \begin_inset Quotes erd
23939 \end_inset
23940
23941  format (defined in the Preferences panel), otherwise the file will have
23942  the usual 
23943 \family typewriter
23944 .tex
23945 \family default
23946  extension.
23947 \end_layout
23948
23949 \end_deeper
23950 \begin_layout Enumerate
23951 Note that the only difference so far is in the name of the file, no special
23952  processing is required by \SpecialChar LyX
23953 .
23954  Given that you formatted the code using the 
23955 \begin_inset Flex Noun
23956 status collapsed
23957
23958 \begin_layout Plain Layout
23959 Chunk
23960 \end_layout
23961
23962 \end_inset
23963
23964  layout that, by itself, takes care of the business.
23965 \end_layout
23966
23967 \begin_layout Enumerate
23968 If the document is of any literate class \SpecialChar LyX
23969  will then use the internal \SpecialChar LyX
23970  to
23971  Noweb converter, followed by the Noweb to \SpecialChar LaTeX
23972  converter
23973 \begin_inset Foot
23974 status collapsed
23975
23976 \begin_layout Plain Layout
23977 The converters are defined in the 
23978 \family sans
23979 Tools\SpecialChar menuseparator
23980 Preferences
23981 \family default
23982  panel, under the 
23983 \begin_inset Quotes eld
23984 \end_inset
23985
23986 Conversion
23987 \begin_inset Quotes erd
23988 \end_inset
23989
23990  tab.
23991  See section 
23992 \emph on
23993 Converters
23994 \emph default
23995  of the 
23996 \emph on
23997 Customization
23998 \emph default
23999  manual for general information about converters.
24000 \end_layout
24001
24002 \end_inset
24003
24004  to generate the \SpecialChar LaTeX
24005  file.
24006 \end_layout
24007
24008 \begin_deeper
24009 \begin_layout Standard
24010 Otherwise it will just skip this step.
24011 \end_layout
24012
24013 \end_deeper
24014 \begin_layout Enumerate
24015 Finally, \SpecialChar LaTeX
24016  is invoked and the regular post processing continues as in a plain
24017  document.
24018 \end_layout
24019
24020 \begin_layout Standard
24021 Independence from a particular 
24022 \begin_inset Quotes eld
24023 \end_inset
24024
24025 literate tool
24026 \begin_inset Quotes erd
24027 \end_inset
24028
24029  is easily achieved by changing the commands that are run by the various
24030  converters.
24031 \end_layout
24032
24033 \begin_layout Paragraph
24034 Generating the code
24035 \end_layout
24036
24037 \begin_layout Standard
24038 When the build menu option is chosen or the corresponding button in the
24039  toolbar is pressed, a \SpecialChar LaTeX
24040  file is generated just like step 1 above.
24041  Next, \SpecialChar LyX
24042  invokes the 
24043 \family typewriter
24044 Noweb->Program
24045 \family default
24046  converter.
24047  This converter needs to be defined by the user and is not installed by
24048  default, though the Program format is.
24049  This converter (like any other converter) will have two parts:
24050 \end_layout
24051
24052 \begin_layout Enumerate
24053 The converter program itself.
24054  This program performs the conversion from the one format to the other (in
24055  this case, from the Noweb format to the Program pseudo-format).
24056 \end_layout
24057
24058 \begin_layout Enumerate
24059 The error log parser.
24060  This is a program whose sole purpose is to rewrite error messages in a
24061  format that \SpecialChar LyX
24062  understands.
24063  This makes it possible for \SpecialChar LyX
24064  to place error boxes in the right places in
24065  the file buffer.
24066 \end_layout
24067
24068 \begin_layout Standard
24069 The first part, the 
24070 \begin_inset Quotes eld
24071 \end_inset
24072
24073 Converter
24074 \begin_inset Quotes erd
24075 \end_inset
24076
24077  setting, should be set to
24078 \begin_inset Newline newline
24079 \end_inset
24080
24081
24082 \begin_inset Quotes eld
24083 \end_inset
24084
24085
24086 \family typewriter
24087 build-script $$i
24088 \family default
24089  $$r
24090 \begin_inset Quotes erd
24091 \end_inset
24092
24093 .
24094 \begin_inset Newline newline
24095 \end_inset
24096
24097 This basically means that \SpecialChar LyX
24098  will call 
24099 \begin_inset Quotes eld
24100 \end_inset
24101
24102 build-script
24103 \begin_inset Quotes erd
24104 \end_inset
24105
24106  (a program or script) with the name of the Noweb file (normally a file
24107  in the \SpecialChar LyX
24108  temp directory) and the directory path of the original \SpecialChar LyX
24109  file.
24110  
24111 \end_layout
24112
24113 \begin_layout Standard
24114 This is an implementation of 
24115 \begin_inset Quotes eld
24116 \end_inset
24117
24118 build-script
24119 \begin_inset Quotes erd
24120 \end_inset
24121
24122  that you can place in a directory on your path:
24123 \end_layout
24124
24125 \begin_layout Standard
24126 \begin_inset VSpace defskip
24127 \end_inset
24128
24129
24130 \end_layout
24131
24132 \begin_layout Standard
24133 \begin_inset Newpage pagebreak
24134 \end_inset
24135
24136
24137 \end_layout
24138
24139 \begin_layout Standard
24140
24141 \family sans
24142 #!/bin/sh
24143 \end_layout
24144
24145 \begin_layout Standard
24146
24147 \family sans
24148 #
24149 \end_layout
24150
24151 \begin_layout Standard
24152
24153 \family sans
24154 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
24155 \end_layout
24156
24157 \begin_layout Standard
24158 \begin_inset VSpace defskip
24159 \end_inset
24160
24161
24162 \end_layout
24163
24164 \begin_layout Standard
24165 The next part of the converter setting is the 
24166 \begin_inset Quotes eld
24167 \end_inset
24168
24169 Flags
24170 \begin_inset Quotes erd
24171 \end_inset
24172
24173  which is to be set to
24174 \begin_inset Newline newline
24175 \end_inset
24176
24177
24178 \begin_inset Quotes eld
24179 \end_inset
24180
24181
24182 \family typewriter
24183 parselog=$$s/scripts/listerrors
24184 \family default
24185
24186 \begin_inset Quotes erd
24187 \end_inset
24188
24189 .
24190 \begin_inset Newline newline
24191 \end_inset
24192
24193 This will run any errors that are generated by the 
24194 \begin_inset Quotes eld
24195 \end_inset
24196
24197 build-script
24198 \begin_inset Quotes erd
24199 \end_inset
24200
24201  process through the 
24202 \begin_inset Quotes eld
24203 \end_inset
24204
24205 listerrors
24206 \begin_inset Quotes erd
24207 \end_inset
24208
24209  program.
24210 \end_layout
24211
24212 \begin_layout Standard
24213 The build will normally take place in \SpecialChar LyX
24214 's temporary directory, so the files
24215  produced by the conversion will be in that directory.
24216  \SpecialChar LyX
24217  will copy out what it regards as the `main' file, but the 
24218 \family typewriter
24219 Noweb->Program
24220 \family default
24221  conversion may produce several files, and so most of these would then be
24222  deleted when \SpecialChar LyX
24223  was closed.
24224  This is why we pass in the NOWEB_OUTPUT_DIR environment variable so that
24225  the build-script chunk can place the generated files in that location.
24226 \end_layout
24227
24228 \begin_layout Paragraph
24229 Build instructions in the document
24230 \end_layout
24231
24232 \begin_layout Standard
24233 The last piece of the integration between \SpecialChar LyX
24234  and noweb is the 
24235 \begin_inset Quotes eld
24236 \end_inset
24237
24238 build-script
24239 \begin_inset Quotes erd
24240 \end_inset
24241
24242  chunk.
24243  Generally, the instructions for building your program should be embedded
24244  in a chunk of its own.
24245  The noweb-specific 
24246 \begin_inset Quotes eld
24247 \end_inset
24248
24249 build-script
24250 \begin_inset Quotes erd
24251 \end_inset
24252
24253  above uses the notangle command to look for this chunk (called 
24254 \begin_inset Quotes eld
24255 \end_inset
24256
24257 build-script
24258 \begin_inset Quotes erd
24259 \end_inset
24260
24261 ) and runs its contents through 
24262 \begin_inset Quotes eld
24263 \end_inset
24264
24265 sh
24266 \begin_inset Quotes erd
24267 \end_inset
24268
24269 .
24270 \end_layout
24271
24272 \begin_layout Standard
24273 Typically, such a chunk would look something like this:
24274 \end_layout
24275
24276 \begin_layout LyX-Code
24277 <<build-script>>=
24278 \end_layout
24279
24280 \begin_layout LyX-Code
24281 #!/bin/sh
24282 \begin_inset Newline newline
24283 \end_inset
24284
24285 if [ -z "${NOWEB_SOURCE}" ]
24286 \begin_inset Newline newline
24287 \end_inset
24288
24289 then
24290 \end_layout
24291
24292 \begin_layout LyX-Code
24293 NOWEB_SOURCE=myfile.nw
24294 \begin_inset Newline newline
24295 \end_inset
24296
24297 fi
24298 \begin_inset Newline newline
24299 \end_inset
24300
24301 [...
24302  code to extract files ...
24303  use NOWEB_OUTPUT_DIR here ...]
24304 \begin_inset Newline newline
24305 \end_inset
24306
24307 [...
24308  code to compile files ...]
24309 \begin_inset Newline newline
24310 \end_inset
24311
24312 @
24313 \end_layout
24314
24315 \begin_layout Standard
24316 Look in 
24317 \emph on
24318 LIBDIR/examples/listerrors.lyx
24319 \emph default
24320  or in 
24321 \emph on
24322 LIBDIR/examples/Literate.lyx
24323 \emph default
24324  which implement two versions of the 
24325 \begin_inset Quotes eld
24326 \end_inset
24327
24328 listerrors
24329 \begin_inset Quotes erd
24330 \end_inset
24331
24332  program for some illustrations of how all of these pieces go together or
24333  in 
24334 \emph on
24335 LIBDIR/examples/noweb2lyx.lyx.
24336
24337 \emph default
24338  Interestingly, these three files show off the language-indepence of the
24339  \SpecialChar LyX
24340  literate programming support since they are written in Python, C and Perl
24341  respectively.
24342 \end_layout
24343
24344 \begin_layout Subsubsection
24345 Configuring \SpecialChar LyX
24346
24347 \end_layout
24348
24349 \begin_layout Standard
24350 All the Literate Programming support is configured by the 
24351 \family sans
24352 Tools\SpecialChar menuseparator
24353 Preferences
24354 \family default
24355  panel in the 
24356 \begin_inset Quotes eld
24357 \end_inset
24358
24359 File Handling
24360 \begin_inset Quotes erd
24361 \end_inset
24362
24363  tab.
24364  The important parts are:
24365 \end_layout
24366
24367 \begin_layout Description
24368 the
24369 \begin_inset space ~
24370 \end_inset
24371
24372
24373 \begin_inset Quotes eld
24374 \end_inset
24375
24376 NoWeb
24377 \begin_inset Quotes erd
24378 \end_inset
24379
24380
24381 \begin_inset space ~
24382 \end_inset
24383
24384 format Set up via the File Formats tab, this is where the Noweb-specific
24385  pieces are set up.
24386  The 
24387 \family sans
24388 GUI Name
24389 \family default
24390  is set to 
24391 \family typewriter
24392 NoWeb
24393 \family default
24394 , the file extension is set to 
24395 \family typewriter
24396 .nw
24397 \family default
24398 .
24399  This tells \SpecialChar LyX
24400  to create a file with a 
24401 \family typewriter
24402 .nw
24403 \family default
24404  extension in the first step of the conversion process.
24405 \end_layout
24406
24407 \begin_layout Description
24408 the
24409 \begin_inset space ~
24410 \end_inset
24411
24412
24413 \family sans
24414 Program
24415 \family default
24416
24417 \begin_inset space ~
24418 \end_inset
24419
24420 format This is an empty format whose sole purpose is to be the endpoint
24421  of a conversion (which then allows us to set up a converter for it).
24422 \end_layout
24423
24424 \begin_layout Description
24425
24426 \family sans
24427 NoWeb
24428 \family default
24429 ->
24430 \family sans
24431 \SpecialChar LaTeX
24432
24433 \family default
24434  This converter performs the 
24435 \begin_inset Quotes eld
24436 \end_inset
24437
24438 weaving
24439 \begin_inset Quotes erd
24440 \end_inset
24441
24442  of the literate document.
24443  For Noweb, it is set to 
24444 \begin_inset Quotes eld
24445 \end_inset
24446
24447
24448 \family typewriter
24449 noweave -delay -index $$i > $$o
24450 \family default
24451
24452 \begin_inset Quotes erd
24453 \end_inset
24454
24455
24456 \end_layout
24457
24458 \begin_layout Description
24459
24460 \family sans
24461 NoWeb
24462 \family default
24463 ->
24464 \family sans
24465 Program
24466 \family default
24467  This performs the 
24468 \begin_inset Quotes eld
24469 \end_inset
24470
24471 tangling step
24472 \begin_inset Quotes erd
24473 \end_inset
24474
24475 .
24476  As stated above, the Converter is set to 
24477 \begin_inset Quotes eld
24478 \end_inset
24479
24480
24481 \family typewriter
24482 build-script $$i
24483 \family default
24484  $$r
24485 \begin_inset Quotes erd
24486 \end_inset
24487
24488 , with Flags set to
24489 \begin_inset Newline newline
24490 \end_inset
24491
24492
24493 \begin_inset Quotes eld
24494 \end_inset
24495
24496
24497 \family typewriter
24498 parselog=$$s/scripts/listerrors
24499 \family default
24500
24501 \begin_inset Quotes erd
24502 \end_inset
24503
24504 .
24505 \end_layout
24506
24507 \begin_layout Subsubsection
24508 Debug extensions
24509 \end_layout
24510
24511 \begin_layout Standard
24512 There is also a new function implemented in the \SpecialChar LyX
24513  server, the 
24514 \begin_inset Quotes eld
24515 \end_inset
24516
24517 server-goto-file-row" function, to be used with ddd/gdb or other debugger.
24518  
24519 \end_layout
24520
24521 \begin_layout Standard
24522 When debugging code with ddd/gdb, it is possible to invoke a text editor
24523  at the current execution position with a single key stroke.
24524  The default ddd configuration for that is shift-ctrl-V.
24525  It happens that you can define the editor command line invocation in ddd
24526  by accessing the 
24527 \family sans
24528 Edit\SpecialChar menuseparator
24529 Preferences\SpecialChar menuseparator
24530 Helpers
24531 \family default
24532  dialog and changing the "Edit Sources" entry.
24533 \end_layout
24534
24535 \begin_layout Standard
24536 I take advantage of the newly created \SpecialChar LyX
24537  server function and this ddd feature,
24538  and set 
24539 \begin_inset Quotes eld
24540 \end_inset
24541
24542 Edit Sources
24543 \begin_inset Quotes erd
24544 \end_inset
24545
24546  to:
24547 \end_layout
24548
24549 \begin_layout Standard
24550 \begin_inset VSpace defskip
24551 \end_inset
24552
24553
24554 \end_layout
24555
24556 \begin_layout Standard
24557
24558 \family sans
24559 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
24560 \end_layout
24561
24562 \begin_layout Standard
24563 \begin_inset VSpace defskip
24564 \end_inset
24565
24566
24567 \end_layout
24568
24569 \begin_layout Standard
24570 With this, whenever you are using ddd and find a point in the program that
24571  you want to edit, you just press shift-ctrl-V (in the ddd window), and
24572  ddd will forward this information to \SpecialChar LyX
24573  through the \SpecialChar LyX
24574  server and then the
24575  \SpecialChar LyX
24576  window will show the same file with the cursor at the same position ddd
24577  was pointing to.
24578  No more guessing or long scrolling to locate a point in the program back
24579  from debugging !
24580 \end_layout
24581
24582 \begin_layout Standard
24583 Note however that you must enable the \SpecialChar LyX
24584  server to get this feature working
24585  (it is disabled by default).
24586  You can enable it in 
24587 \family sans
24588 Preferences
24589 \family default
24590  (tabs 
24591 \family sans
24592 Inputs
24593 \family default
24594
24595 \family sans
24596 Paths
24597 \family default
24598 ) by entering in the 
24599 \family sans
24600 \SpecialChar LyX
24601 server pipe
24602 \family default
24603  a path like 
24604 \begin_inset Quotes eld
24605 \end_inset
24606
24607
24608 \family typewriter
24609 /home/<your-home-directory>/.lyx/lyxpipe
24610 \family default
24611
24612 \begin_inset Quotes erd
24613 \end_inset
24614
24615
24616 \end_layout
24617
24618 \begin_layout Standard
24619 Read the \SpecialChar LyX
24620  server documentation in the 
24621 \emph on
24622 Customization Manual
24623 \emph default
24624  for further information.
24625 \end_layout
24626
24627 \begin_layout Subsubsection
24628 Toolbar extensions
24629 \end_layout
24630
24631 \begin_layout Standard
24632 There are six new buttons that can be added to your \SpecialChar LyX
24633  toolbar.
24634  Five of these buttons are short cuts to layout styles: 
24635 \family sans
24636 Standard
24637 \family default
24638
24639 \family sans
24640 Section
24641 \family default
24642
24643 \family sans
24644 \SpecialChar LaTeX
24645
24646 \family default
24647
24648 \family sans
24649 \SpecialChar LyX
24650 -Code
24651 \family default
24652 , and 
24653 \family sans
24654 Chunk
24655 \family default
24656 .
24657  The last one is a short cut to the 
24658 \begin_inset Quotes eld
24659 \end_inset
24660
24661 Build Program
24662 \begin_inset Quotes erd
24663 \end_inset
24664
24665  File menu entry.
24666  
24667 \end_layout
24668
24669 \begin_layout Standard
24670 \SpecialChar LyX
24671  has a range of buttons that are available for tool bar customization.
24672  In my toolbar I like to combine the six short cuts above with two more:
24673  One for 
24674 \family sans
24675 Document
24676 \family default
24677 \SpecialChar menuseparator
24678
24679 \family sans
24680 Update
24681 \family default
24682 \SpecialChar menuseparator
24683
24684 \family sans
24685 DVI
24686 \family default
24687  and the other for 
24688 \family sans
24689 Document\SpecialChar menuseparator
24690 View\SpecialChar menuseparator
24691 DVI
24692 \family default
24693  File menu entries.
24694  Here is how it looks like:
24695 \end_layout
24696
24697 \begin_layout LyX-Code
24698 Toolbar
24699 \end_layout
24700
24701 \begin_layout LyX-Code
24702   Layouts
24703 \end_layout
24704
24705 \begin_layout LyX-Code
24706   Icon "layout Standard"
24707 \end_layout
24708
24709 \begin_layout LyX-Code
24710   Icon "layout Section"
24711 \end_layout
24712
24713 \begin_layout LyX-Code
24714   Icon "layout \SpecialChar LaTeX
24715 "
24716 \end_layout
24717
24718 \begin_layout LyX-Code
24719   Icon "layout \SpecialChar LyX
24720 -Code"
24721 \end_layout
24722
24723 \begin_layout LyX-Code
24724   Icon "layout Chunk"
24725 \end_layout
24726
24727 \begin_layout LyX-Code
24728   Separator
24729 \end_layout
24730
24731 \begin_layout LyX-Code
24732   Icon "buffer-view"
24733 \end_layout
24734
24735 \begin_layout LyX-Code
24736   Icon "buffer-typeset"
24737 \end_layout
24738
24739 \begin_layout LyX-Code
24740   Icon "build-program"
24741 \end_layout
24742
24743 \begin_layout LyX-Code
24744   Separator
24745 \end_layout
24746
24747 \begin_layout LyX-Code
24748 .
24749 \end_layout
24750
24751 \begin_layout LyX-Code
24752 .
24753 \end_layout
24754
24755 \begin_layout LyX-Code
24756 .
24757 \end_layout
24758
24759 \begin_layout LyX-Code
24760 End
24761 \end_layout
24762
24763 \begin_layout Subsubsection
24764 Colors customization
24765 \end_layout
24766
24767 \begin_layout Standard
24768 There are a number of colors in \SpecialChar LyX
24769  that can be customized in 
24770 \family sans
24771 Preferences
24772 \family default
24773 .
24774  One of the things that bothers people is the \SpecialChar LaTeX
24775  font color.
24776  The default color is red, since the chunks uses \SpecialChar LaTeX
24777  font, and there is a lot
24778  of chunks in literate documents, you may get tired of seeing everything
24779  in red.
24780  You can change it by going to the tabs 
24781 \family sans
24782 Look&Feel
24783 \family default
24784
24785 \family sans
24786 Colors.
24787 \end_layout
24788
24789 \begin_layout Standard
24790 The next thing is the visible presence of the newline character in the screen.
24791  You can choose the color of this particular character and make it blend
24792  in the background.
24793  I recommend you choosing a color that is close to the background but not
24794  equal, that way you still can see it is there, but it is not bothering
24795  you anymore.
24796 \end_layout
24797
24798 \begin_layout Subsection
24799 \SpecialChar LyX
24800  and knitr/Sweave
24801 \end_layout
24802
24803 \begin_layout Standard
24804 Support for 
24805 \family sans
24806 knitr
24807 \family default
24808  and 
24809 \family sans
24810 Sweave
24811 \family default
24812  is documented in the 
24813 \emph on
24814 knitr.lyx
24815 \emph default
24816  example file and in the Sweave manual (menu 
24817 \family sans
24818 Help\SpecialChar menuseparator
24819 Specific Manuals
24820 \family default
24821 ).
24822 \end_layout
24823
24824 \begin_layout Chapter
24825 Special features
24826 \end_layout
24827
24828 \begin_layout Standard
24829 You can do everything with \SpecialChar LyX
24830  that you can do with \SpecialChar LaTeX
24831 .
24832  However, \SpecialChar LyX
24833  cannot support every \SpecialChar LaTeX
24834  feature directly.
24835  But you can always use \SpecialChar TeX
24836  Code.
24837  This chapter shows you some more special things you might want to use.
24838  For other special things you can do with figures, tables, floats, boxes
24839  and notes, have a look at the 
24840 \emph on
24841 Embedded
24842 \begin_inset space ~
24843 \end_inset
24844
24845 Objects
24846 \emph default
24847  manual.
24848 \end_layout
24849
24850 \begin_layout Section
24851 Multiple Text Columns
24852 \end_layout
24853
24854 \begin_layout Standard
24855 This feature is independent of the option 
24856 \family sans
24857 Two-column document
24858 \family default
24859  in the document settings under 
24860 \family sans
24861 Text Layout
24862 \family default
24863 .
24864  If you want to have 2
24865 \begin_inset space ~
24866 \end_inset
24867
24868 columns for the whole document, it is recommended to use the 
24869 \family sans
24870 Two-column document
24871 \family default
24872  option.
24873  For all other cases use this feature.
24874 \end_layout
24875
24876 \begin_layout Standard
24877 To use multiple text columns in your document, you have to load the module
24878  
24879 \family sans
24880 Multiple Columns
24881 \family default
24882  (menu 
24883 \family sans
24884 Document\SpecialChar menuseparator
24885 Settings\SpecialChar menuseparator
24886 Modules
24887 \family default
24888 ) and must have the \SpecialChar LaTeX
24889 -package 
24890 \series bold
24891 multicol
24892 \series default
24893  installed.
24894 \end_layout
24895
24896 \begin_layout Standard
24897 Footnotes within multiple columns will be placed at the bottom of the page
24898  and not under each column.
24899  Within the different columns you can use everything, with the limitation
24900  that for floats you need to use the float option 
24901 \family sans
24902 Span columns
24903 \family default
24904 .
24905 \end_layout
24906
24907 \begin_layout Subsection
24908 Basics
24909 \end_layout
24910
24911 \begin_layout Standard
24912 If you want to have 2
24913 \begin_inset space ~
24914 \end_inset
24915
24916 columns in your text, insert a multicolumn inset via the menu 
24917 \family sans
24918 Insert\SpecialChar menuseparator
24919 Custom
24920 \begin_inset space ~
24921 \end_inset
24922
24923 Insets\SpecialChar menuseparator
24924 Multiple
24925 \begin_inset space ~
24926 \end_inset
24927
24928 Columns
24929 \family default
24930  where the columns should start.
24931  Write all text that should be printed in 2
24932 \begin_inset space ~
24933 \end_inset
24934
24935 columns into this inset.
24936 \end_layout
24937
24938 \begin_layout Standard
24939 Here is an example:
24940 \end_layout
24941
24942 \begin_layout Standard
24943 \noindent
24944 \begin_inset Flex Multiple Columns
24945 status open
24946
24947 \begin_layout Plain Layout
24948 \noindent
24949
24950 \series bold
24951 \size small
24952 The Adventure of the Empty House
24953 \series default
24954
24955 \begin_inset Newline newline
24956 \end_inset
24957
24958 by Sir Arthur Conan Doyle
24959 \end_layout
24960
24961 \begin_layout Plain Layout
24962
24963 \size small
24964 It was in the spring of the year 1894 that all London was interested, and
24965  the fashionable world dismayed, by the murder of the Honourable Ronald
24966  Adair under most unusual and inexplicable circumstances.
24967  The public has already learned those particulars of the crime which came
24968  out in the police investigation, but a good deal was suppressed upon that
24969  occasion, since the case for the prosecution was so overwhelmingly strong
24970  that it was not necessary to bring forward all the facts.
24971  Only now, at the end of nearly ten years, am I allowed to supply those
24972  missing links which make up the whole of that remarkable chain.
24973  The crime was of interest in itself, but that interest was as nothing to
24974  me compared to the inconceivable sequel, which afforded me the greatest
24975  shock and surprise of any event in my adventurous life.
24976  Even now, after this long interval, I find myself thrilling as I think
24977  of it, and feeling once more that sudden flood of joy, amazement, and increduli
24978 ty which utterly submerged my mind.
24979  Let me say to that public, which has shown some interest in those glimpses
24980  which I have occasionally given them of the thoughts and actions of a very
24981  remarkable man, that they are not to blame me if I have not shared my knowledge
24982  with them, for I should have considered it my first duty to do so, had
24983  I not been barred by a positive prohibition from his own lips, which was
24984  only withdrawn upon the third of last month.
24985 \end_layout
24986
24987 \end_inset
24988
24989
24990 \end_layout
24991
24992 \begin_layout Standard
24993 To get 3 or more columns, set the cursor into the multicolumn inset and
24994  use the menu 
24995 \family sans
24996 Insert\SpecialChar menuseparator
24997 Number
24998 \begin_inset space ~
24999 \end_inset
25000
25001 of
25002 \begin_inset space ~
25003 \end_inset
25004
25005 Columns
25006 \family default
25007 .
25008  The number of the desired columns is written into that inset (for 3
25009 \begin_inset space ~
25010 \end_inset
25011
25012 columns write 
25013 \begin_inset Quotes eld
25014 \end_inset
25015
25016 3
25017 \begin_inset Quotes erd
25018 \end_inset
25019
25020 ).
25021 \begin_inset Newline newline
25022 \end_inset
25023
25024 Here is an example with 3
25025 \begin_inset space ~
25026 \end_inset
25027
25028 columns:
25029 \end_layout
25030
25031 \begin_layout Standard
25032 \begin_inset Flex Multiple Columns
25033 status open
25034
25035 \begin_layout Plain Layout
25036
25037 \size footnotesize
25038 \begin_inset Argument 1
25039 status open
25040
25041 \begin_layout Plain Layout
25042 3
25043 \end_layout
25044
25045 \end_inset
25046
25047 It can be imagined that my close intimacy with Sherlock Holmes had interested
25048  me deeply in crime, and that after his disappearance I never failed to
25049  read with care the various problems which came before the public.
25050  And I even attempted, more than once, for my own private satisfaction,
25051  to employ his methods in their solution, though with indifferent success.
25052  There was none, however, which appealed to me like this tragedy of Ronald
25053  Adair.
25054  As I read the evidence at the inquest, which led up to a verdict of willful
25055  murder against some person or persons unknown, I realized more clearly
25056  than I had ever done the loss which the community had sustained by the
25057  death of Sherlock Holmes.
25058  There were points about this strange business which would, I was sure,
25059  have specially appealed to him, and the efforts of the police would have
25060  been supplemented, or more probably anticipated, by the trained observation
25061  and the alert mind of the first criminal agent in Europe.
25062  All day, as I drove upon my round, I turned over the case in my mind and
25063  found no explanation which appeared to me to be adequate.
25064  At the risk of telling a twice-told tale, I will recapitulate the facts
25065  as they were known to the public at the conclusion of the inquest.
25066 \end_layout
25067
25068 \end_inset
25069
25070
25071 \end_layout
25072
25073 \begin_layout Standard
25074 You can have up to 10
25075 \begin_inset space ~
25076 \end_inset
25077
25078 columns if you want to, but that might not be very pleasant for the readers
25079  of your document.
25080 \end_layout
25081
25082 \begin_layout Standard
25083 \begin_inset Newpage newpage
25084 \end_inset
25085
25086
25087 \end_layout
25088
25089 \begin_layout Subsection
25090 Columns inside Columns
25091 \end_layout
25092
25093 \begin_layout Standard
25094 You can also have columns inside columns:
25095 \end_layout
25096
25097 \begin_layout Standard
25098 \begin_inset Flex Multiple Columns
25099 status open
25100
25101 \begin_layout Plain Layout
25102
25103 \size footnotesize
25104 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
25105  at that time governor of one of the Australian colonies.
25106  Adair's mother had returned from Australia to undergo the operation for
25107  cataract, and she, her son Ronald, and her daughter Hilda were living together
25108  at 427 Park Lane.
25109 \end_layout
25110
25111 \begin_layout Plain Layout
25112 \begin_inset Flex Multiple Columns
25113 status open
25114
25115 \begin_layout Plain Layout
25116
25117 \size footnotesize
25118 The youth moved in the best society–had, so far as was known, no enemies
25119  and no particular vices.
25120  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
25121  had been broken off by mutual consent some months before, and there was
25122  no sign that it had left any very profound feeling behind it.
25123  For the rest {sic} the man's life moved in a narrow and conventional circle,
25124  for his habits were quiet and his nature unemotional.
25125  Yet it was upon this easy-going young aristocrat that death came, in most
25126  strange and unexpected form, between the hours of ten and eleven-twenty
25127  on the night of March 30, 1894.
25128 \end_layout
25129
25130 \end_inset
25131
25132
25133 \end_layout
25134
25135 \begin_layout Plain Layout
25136
25137 \size footnotesize
25138 Ronald Adair was fond of cards–playing continually, but never for such stakes
25139  as would hurt him.
25140  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
25141  It was shown that, after dinner on the day of his death, he had played
25142  a rubber of whist at the latter club.
25143  He had also played there in the afternoon.
25144
25145 \size default
25146  
25147 \size footnotesize
25148 The evidence of those who had played with him– Mr.
25149  Murray, Sir John Hardy, and Colonel Moran–showed that the game was whist,
25150  and that there was a fairly equal fall of the cards.
25151  Adair might have lost five pounds, but not more.
25152  His fortune was a considerable one, and such a loss could not in any way
25153  affect him.
25154  He had played nearly every day at one club or other, but he was a cautious
25155  player, and usually rose a winner.
25156  It came out in evidence that, in partnership with Colonel Moran, he had
25157  actually won as much as four hundred and twenty pounds in a sitting, some
25158  weeks before, from Godfrey Milner and Lord Balmoral.
25159  So much for his recent history as it came out at the inquest.
25160 \end_layout
25161
25162 \end_inset
25163
25164
25165 \end_layout
25166
25167 \begin_layout Subsection
25168 Advanced Examples
25169 \end_layout
25170
25171 \begin_layout Standard
25172 The examples in this section show some more special features of multiple
25173  columns.
25174 \end_layout
25175
25176 \begin_layout Standard
25177 For more features of multiple columns, have a look at the documentation
25178  of the \SpecialChar LaTeX
25179 -package 
25180 \series bold
25181 multicol
25182 \series default
25183
25184 \begin_inset CommandInset citation
25185 LatexCommand cite
25186 key "multicol"
25187 literal "true"
25188
25189 \end_inset
25190
25191 .
25192 \end_layout
25193
25194 \begin_layout Subsubsection
25195 Preface
25196 \end_layout
25197
25198 \begin_layout Standard
25199 To add a preface text for multiple columns, set the cursor into the multicolumn
25200  inset and use the menu 
25201 \family sans
25202 Insert\SpecialChar menuseparator
25203 Preface
25204 \family default
25205 .
25206  Write your preface text into that inset.
25207 \begin_inset Newline newline
25208 \end_inset
25209
25210 This is an example with some preface text:
25211 \end_layout
25212
25213 \begin_layout Standard
25214 \begin_inset VSpace bigskip
25215 \end_inset
25216
25217
25218 \end_layout
25219
25220 \begin_layout Standard
25221 \begin_inset Flex Multiple Columns
25222 status open
25223
25224 \begin_layout Plain Layout
25225 \begin_inset Argument 2
25226 status open
25227
25228 \begin_layout Plain Layout
25229 And the story continues and continues and continues and continues\SpecialChar ldots
25230
25231 \end_layout
25232
25233 \end_inset
25234
25235
25236 \size small
25237 On the evening of the crime, he returned from the club exactly at ten.
25238  His mother and sister were out spending the evening with a relation.
25239  The servant deposed that she heard him enter the front room on the second
25240  floor, generally used as his sitting-room.
25241  She had lit a fire there, and as it smoked she had opened the window.
25242  No sound was heard from the room until eleven-twenty, the hour of the return
25243  of Lady Maynooth and her daughter.
25244  Desiring to say good-night, she attempted to enter her son's room.
25245  The door was locked on the inside, and no answer could be got to their
25246  cries and knocking.
25247  Help was obtained, and the door forced.
25248  The unfortunate young man was found lying near the table.
25249  His head had been horribly mutilated by an expanding revolver bullet, but
25250  no weapon of any sort was to be found in the room.
25251 \end_layout
25252
25253 \end_inset
25254
25255
25256 \end_layout
25257
25258 \begin_layout Standard
25259 You can also use a section heading as the preface if you use a section command
25260  as \SpecialChar TeX
25261  Code.
25262  For example the command
25263 \end_layout
25264
25265 \begin_layout Standard
25266
25267 \series bold
25268
25269 \backslash
25270 subsection{subsection title}
25271 \end_layout
25272
25273 \begin_layout Standard
25274 creates a subsection.
25275  In this example the preface is a subsubsection:
25276 \end_layout
25277
25278 \begin_layout Standard
25279 \begin_inset Flex Multiple Columns
25280 status open
25281
25282 \begin_layout Plain Layout
25283 \begin_inset Argument 2
25284 status open
25285
25286 \begin_layout Plain Layout
25287 \begin_inset ERT
25288 status collapsed
25289
25290 \begin_layout Plain Layout
25291
25292
25293 \backslash
25294 subsubsection{
25295 \end_layout
25296
25297 \end_inset
25298
25299 This is a subsubsection heading as a preface
25300 \begin_inset ERT
25301 status collapsed
25302
25303 \begin_layout Plain Layout
25304
25305 }
25306 \end_layout
25307
25308 \end_inset
25309
25310
25311 \end_layout
25312
25313 \end_inset
25314
25315
25316 \size small
25317 A minute examination of the circumstances served only to make the case more
25318  complex.
25319  In the first place, no reason could be given why the young man should have
25320  fastened the door upon the inside.
25321  There was the possibility that the murderer had done this, and had afterwards
25322  escaped by the window.
25323  The drop was at least twenty feet, however, and a bed of crocuses in full
25324  bloom lay beneath.
25325  Neither the flowers nor the earth showed any sign of having been disturbed,
25326  nor were there any marks upon the narrow strip of grass which separated
25327  the house from the road.
25328  Apparently, therefore, it was the young man himself who had fastened the
25329  door.
25330  But how did he come by his death? No one could have climbed up to the window
25331  without leaving traces.
25332  Suppose a man had fired through the window, he would indeed be a remarkable
25333  shot who could with a revolver inflict so deadly a wound.
25334  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
25335  a hundred yards of the house.
25336  No one had heard a shot.
25337 \end_layout
25338
25339 \end_inset
25340
25341
25342 \end_layout
25343
25344 \begin_layout Standard
25345 If there is less vertical space than 6
25346 \begin_inset space ~
25347 \end_inset
25348
25349 text lines is left on the page at the beginning of the multiple columns,
25350  a page break will be inserted before the multiple columns.
25351  Depending on the number of lines of the preface text, you might want to
25352  change this space.
25353  This is done by setting the cursor into the mulitcolumn inset behind the
25354  preface (if there is any) and using the menu 
25355 \family sans
25356 Insert\SpecialChar menuseparator
25357 Space
25358 \begin_inset space ~
25359 \end_inset
25360
25361 Before
25362 \begin_inset space ~
25363 \end_inset
25364
25365 Page
25366 \begin_inset space ~
25367 \end_inset
25368
25369 Break
25370 \family default
25371 .
25372  Insert into that inset the amount of space like e.
25373 \begin_inset space \thinspace{}
25374 \end_inset
25375
25376 g.
25377 \begin_inset space \space{}
25378 \end_inset
25379
25380
25381 \begin_inset Quotes eld
25382 \end_inset
25383
25384 5cm
25385 \begin_inset Quotes erd
25386 \end_inset
25387
25388 .
25389 \begin_inset Newline newline
25390 \end_inset
25391
25392 In this example the space is set to 7
25393 \begin_inset space ~
25394 \end_inset
25395
25396 text lines by using 
25397 \begin_inset Quotes eld
25398 \end_inset
25399
25400 7
25401 \backslash
25402 baselineskip
25403 \begin_inset Quotes erd
25404 \end_inset
25405
25406  (where the command 
25407 \series bold
25408
25409 \backslash
25410 baselineskip
25411 \series default
25412  needs to be inserted as \SpecialChar TeX
25413  code):
25414 \end_layout
25415
25416 \begin_layout Standard
25417 \begin_inset Flex Multiple Columns
25418 status open
25419
25420 \begin_layout Plain Layout
25421 \begin_inset Argument 3
25422 status open
25423
25424 \begin_layout Plain Layout
25425 7
25426 \begin_inset ERT
25427 status collapsed
25428
25429 \begin_layout Plain Layout
25430
25431
25432 \backslash
25433 baselineskip
25434 \end_layout
25435
25436 \end_inset
25437
25438
25439 \end_layout
25440
25441 \end_inset
25442
25443
25444 \size small
25445 On the evening of the crime, he returned from the club exactly at ten.
25446  His mother and sister were out spending the evening with a relation.
25447  The servant deposed that she heard him enter the front room on the second
25448  floor, generally used as his sitting-room.
25449  She had lit a fire there, and as it smoked she had opened the window.
25450  No sound was heard from the room until eleven-twenty, the hour of the return
25451  of Lady Maynooth and her daughter.
25452  Desiring to say good-night, she attempted to enter her son's room.
25453  The door was locked on the inside, and no answer could be got to their
25454  cries and knocking.
25455  Help was obtained, and the door forced.
25456  The unfortunate young man was found lying near the table.
25457  His head had been horribly mutilated by an expanding revolver bullet, but
25458  no weapon of any sort was to be found in the room.
25459 \end_layout
25460
25461 \end_inset
25462
25463
25464 \end_layout
25465
25466 \begin_layout Subsubsection
25467 Surrounding Space
25468 \end_layout
25469
25470 \begin_layout Standard
25471 The amount of space before and after multiple columns can be changed by
25472  changing the length 
25473 \series bold
25474
25475 \backslash
25476 multicolsep
25477 \series default
25478 .
25479  For example the command
25480 \end_layout
25481
25482 \begin_layout Standard
25483
25484 \series bold
25485
25486 \backslash
25487 setlength{
25488 \backslash
25489 multicolsep}{3cm}
25490 \end_layout
25491
25492 \begin_layout Standard
25493 in \SpecialChar TeX
25494  Code changes its value to 3
25495 \begin_inset space \thinspace{}
25496 \end_inset
25497
25498 cm.
25499  The change must be made before the multiple columns' start.
25500  The predefined value is 13
25501 \begin_inset space \thinspace{}
25502 \end_inset
25503
25504 pt.
25505 \end_layout
25506
25507 \begin_layout Standard
25508 For this example 
25509 \series bold
25510
25511 \backslash
25512 multicolsep
25513 \series default
25514  was set to 2.5
25515 \begin_inset space \thinspace{}
25516 \end_inset
25517
25518 cm:
25519 \end_layout
25520
25521 \begin_layout Standard
25522 \begin_inset ERT
25523 status open
25524
25525 \begin_layout Plain Layout
25526
25527
25528 \backslash
25529 setlength{
25530 \backslash
25531 multicolsep}{2.5cm}
25532 \end_layout
25533
25534 \end_inset
25535
25536
25537 \end_layout
25538
25539 \begin_layout Standard
25540 \begin_inset Flex Multiple Columns
25541 status open
25542
25543 \begin_layout Plain Layout
25544
25545 \size small
25546 All day I turned these facts over in my mind, endeavouring to hit upon some
25547  theory which could reconcile them all, and to find that line of least resistanc
25548 e which my poor friend had declared to be the starting-point of every investigat
25549 ion.
25550  I confess that I made little progress.
25551  In the evening I strolled across the Park, and found myself about six o'clock
25552  at the Oxford Street end of Park Lane.
25553  A group of loafers upon the pavements, all staring up at a particular window,
25554  directed me to the house which I had come to see.
25555  A tall, thin man with coloured glasses, whom I strongly suspected of being
25556  a plain-clothes detective, was pointing out some theory of his own, while
25557  the others crowded round to listen to what he said.
25558  I got as near him as I could, but his observations seemed to me to be absurd,
25559  so I withdrew again in some disgust.
25560  As I did so I struck against an elderly, deformed man, who had been behind
25561  me, and I knocked down several books which he was carrying.
25562 \end_layout
25563
25564 \end_inset
25565
25566
25567 \end_layout
25568
25569 \begin_layout Standard
25570 \begin_inset Note Greyedout
25571 status open
25572
25573 \begin_layout Plain Layout
25574
25575 \series bold
25576 Note:
25577 \series default
25578  The values you set with 
25579 \series bold
25580
25581 \backslash
25582 setlength
25583 \series default
25584  will be used for all following multiple columns until you change them again.
25585 \end_layout
25586
25587 \end_inset
25588
25589
25590 \end_layout
25591
25592 \begin_layout Standard
25593 \begin_inset ERT
25594 status collapsed
25595
25596 \begin_layout Plain Layout
25597
25598
25599 \backslash
25600 setlength{
25601 \backslash
25602 multicolsep}{13pt}
25603 \end_layout
25604
25605 \end_inset
25606
25607
25608 \begin_inset Note Note
25609 status collapsed
25610
25611 \begin_layout Plain Layout
25612 go back to the default
25613 \end_layout
25614
25615 \end_inset
25616
25617
25618 \end_layout
25619
25620 \begin_layout Standard
25621 \begin_inset Newpage newpage
25622 \end_inset
25623
25624
25625 \end_layout
25626
25627 \begin_layout Subsubsection
25628 Column Breaks
25629 \end_layout
25630
25631 \begin_layout Standard
25632 A column break can be forced by inserting the command 
25633 \series bold
25634
25635 \backslash
25636 columnbreak{}
25637 \series default
25638  as \SpecialChar TeX
25639  Code to that position in the text where the column should be broken.
25640  Note that this leads in most cases to whitespace in the text.
25641 \begin_inset Newline newline
25642 \end_inset
25643
25644 Here is an example:
25645 \end_layout
25646
25647 \begin_layout Standard
25648 \begin_inset Flex Multiple Columns
25649 status open
25650
25651 \begin_layout Plain Layout
25652
25653 \size small
25654 \begin_inset Quotes eld
25655 \end_inset
25656
25657 You're surprised to see me, sir,
25658 \begin_inset Quotes erd
25659 \end_inset
25660
25661  said he, in a strange, croaking voice.
25662 \end_layout
25663
25664 \begin_layout Plain Layout
25665
25666 \size small
25667 I acknowledged that I was.
25668 \end_layout
25669
25670 \begin_layout Plain Layout
25671
25672 \size small
25673 \begin_inset Quotes eld
25674 \end_inset
25675
25676 Well, I've a conscience, sir, and when I chanced to see you go into this
25677  house, as I came hobbling after you, I thought to myself, I'll just step
25678  in and see that kind gentleman, and tell him that if I was a bit gruff
25679  in my manner there was not any harm meant, and that I am much obliged to
25680  him for picking up my books.
25681 \begin_inset Quotes erd
25682 \end_inset
25683
25684
25685 \end_layout
25686
25687 \begin_layout Plain Layout
25688
25689 \size small
25690 \begin_inset Quotes eld
25691 \end_inset
25692
25693 You make too much of a trifle,
25694 \begin_inset Quotes erd
25695 \end_inset
25696
25697  said I.
25698  
25699 \begin_inset Quotes eld
25700 \end_inset
25701
25702 May I ask how you knew who I was?
25703 \begin_inset Quotes erd
25704 \end_inset
25705
25706  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
25707 \begin_inset ERT
25708 status collapsed
25709
25710 \begin_layout Plain Layout
25711
25712
25713 \backslash
25714 columnbreak{}
25715 \end_layout
25716
25717 \end_inset
25718
25719
25720 \end_layout
25721
25722 \begin_layout Plain Layout
25723
25724 \size small
25725 \begin_inset Quotes eld
25726 \end_inset
25727
25728 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25729  you'll find my little bookshop at the corner of Church Street, and very
25730  happy to see you, I am sure.
25731  Maybe you collect yourself, sir.
25732  Here's 
25733 \noun on
25734 British
25735 \begin_inset space ~
25736 \end_inset
25737
25738 Birds
25739 \noun default
25740 , and 
25741 \noun on
25742 Catullus
25743 \noun default
25744 , and 
25745 \noun on
25746 The Holy War
25747 \noun default
25748 –a bargain, every one of them.
25749  With five volumes you could just fill that gap on that second shelf.
25750  It looks untidy, does it not, sir?
25751 \begin_inset Quotes erd
25752 \end_inset
25753
25754
25755 \end_layout
25756
25757 \end_inset
25758
25759
25760 \end_layout
25761
25762 \begin_layout Subsubsection
25763 Column Separation
25764 \end_layout
25765
25766 \begin_layout Standard
25767 The width of the columns is automatically calculated, but you can modify
25768  the space between the columns.
25769  This is done by changing the length 
25770 \series bold
25771
25772 \backslash
25773 columnsep
25774 \series default
25775 .
25776  Its predefined value is 10
25777 \begin_inset space \thinspace{}
25778 \end_inset
25779
25780 pt.
25781  Here is an example where 
25782 \series bold
25783
25784 \backslash
25785 columnsep
25786 \series default
25787  is set to 3
25788 \begin_inset space \thinspace{}
25789 \end_inset
25790
25791 cm:
25792 \end_layout
25793
25794 \begin_layout Standard
25795 \begin_inset ERT
25796 status open
25797
25798 \begin_layout Plain Layout
25799
25800
25801 \backslash
25802 setlength{
25803 \backslash
25804 columnsep}{3cm}
25805 \end_layout
25806
25807 \end_inset
25808
25809
25810 \end_layout
25811
25812 \begin_layout Standard
25813 \begin_inset Flex Multiple Columns
25814 status open
25815
25816 \begin_layout Plain Layout
25817
25818 \size small
25819 My observations of No.
25820 \begin_inset space \space{}
25821 \end_inset
25822
25823 427 Park Lane did little to clear up the problem in which I was interested.
25824  The house was separated from the street by a low wall and railing, the
25825  whole not more than five feet high.
25826  It was perfectly easy, therefore, for anyone to get into the garden, but
25827  the window was entirely inaccessible, since there was no water pipe or
25828  anything which could help the most active man to climb it.
25829  More puzzled than ever, I retraced my steps to Kensington.
25830  I had not been in my study five minutes when the maid entered to say that
25831  a person desired to see me.
25832  To my astonishment it was none other than my strange old book collector,
25833  his sharp, wizened face peering out from a frame of white hair, and his
25834  precious volumes, a dozen of them at least, wedged under his right arm.
25835 \end_layout
25836
25837 \end_inset
25838
25839
25840 \end_layout
25841
25842 \begin_layout Standard
25843 \begin_inset ERT
25844 status collapsed
25845
25846 \begin_layout Plain Layout
25847
25848
25849 \backslash
25850 setlength{
25851 \backslash
25852 columnsep}{10pt}
25853 \end_layout
25854
25855 \end_inset
25856
25857
25858 \begin_inset Note Note
25859 status collapsed
25860
25861 \begin_layout Plain Layout
25862 go back to the default
25863 \end_layout
25864
25865 \end_inset
25866
25867
25868 \end_layout
25869
25870 \begin_layout Subsubsection
25871 Vertical Lines
25872 \end_layout
25873
25874 \begin_layout Standard
25875 Between the columns a rule with a width of the length 
25876 \series bold
25877
25878 \backslash
25879 columnseprule
25880 \series default
25881  is placed.
25882  If this rule width is set to 0
25883 \begin_inset space \thinspace{}
25884 \end_inset
25885
25886 pt (this is the default), the rule is suppressed.
25887  In the following example the rule is 2
25888 \begin_inset space \thinspace{}
25889 \end_inset
25890
25891 pt wide:
25892 \end_layout
25893
25894 \begin_layout Standard
25895 \begin_inset ERT
25896 status open
25897
25898 \begin_layout Plain Layout
25899
25900
25901 \backslash
25902 setlength{
25903 \backslash
25904 columnseprule}{2pt}
25905 \end_layout
25906
25907 \end_inset
25908
25909
25910 \end_layout
25911
25912 \begin_layout Standard
25913 \begin_inset Flex Multiple Columns
25914 status open
25915
25916 \begin_layout Plain Layout
25917
25918 \size small
25919 \begin_inset Quotes eld
25920 \end_inset
25921
25922 You're surprised to see me, sir,
25923 \begin_inset Quotes erd
25924 \end_inset
25925
25926  said he, in a strange, croaking voice.
25927 \end_layout
25928
25929 \begin_layout Plain Layout
25930
25931 \size small
25932 I acknowledged that I was.
25933 \end_layout
25934
25935 \begin_layout Plain Layout
25936
25937 \size small
25938 \begin_inset Quotes eld
25939 \end_inset
25940
25941 Well, I've a conscience, sir, and when I chanced to see you go into this
25942  house, as I came hobbling after you, I thought to myself, I'll just step
25943  in and see that kind gentleman, and tell him that if I was a bit gruff
25944  in my manner there was not any harm meant, and that I am much obliged to
25945  him for picking up my books.
25946 \begin_inset Quotes erd
25947 \end_inset
25948
25949
25950 \end_layout
25951
25952 \begin_layout Plain Layout
25953
25954 \size small
25955 \begin_inset Quotes eld
25956 \end_inset
25957
25958 You make too much of a trifle,
25959 \begin_inset Quotes erd
25960 \end_inset
25961
25962  said I.
25963  
25964 \begin_inset Quotes eld
25965 \end_inset
25966
25967 May I ask how you knew who I was?
25968 \begin_inset Quotes erd
25969 \end_inset
25970
25971
25972 \end_layout
25973
25974 \begin_layout Plain Layout
25975
25976 \size small
25977 \begin_inset Quotes eld
25978 \end_inset
25979
25980 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25981  you'll find my little bookshop at the corner of Church Street, and very
25982  happy to see you, I am sure.
25983  Maybe you collect yourself, sir.
25984  Here's 
25985 \noun on
25986 British
25987 \begin_inset space ~
25988 \end_inset
25989
25990 Birds
25991 \noun default
25992 , and 
25993 \noun on
25994 Catullus
25995 \noun default
25996 , and 
25997 \noun on
25998 The Holy War
25999 \noun default
26000 –a bargain, every one of them.
26001  With five volumes you could just fill that gap on that second shelf.
26002  It looks untidy, does it not, sir?
26003 \begin_inset Quotes erd
26004 \end_inset
26005
26006
26007 \end_layout
26008
26009 \end_inset
26010
26011
26012 \end_layout
26013
26014 \begin_layout Standard
26015 \begin_inset VSpace defskip
26016 \end_inset
26017
26018
26019 \end_layout
26020
26021 \begin_layout Standard
26022 The rule can be colored by redefining the command 
26023 \series bold
26024
26025 \backslash
26026 columnseprulecolor
26027 \series default
26028 .
26029  This is done by inserting the command
26030 \begin_inset Newline newline
26031 \end_inset
26032
26033
26034 \series bold
26035
26036 \backslash
26037 renewcommand{
26038 \backslash
26039 columnseprulecolor}{
26040 \backslash
26041 color{red}}
26042 \series default
26043
26044 \begin_inset Newline newline
26045 \end_inset
26046
26047 as \SpecialChar TeX
26048  Code before the multicolumn inset.
26049  Replace 
26050 \series bold
26051 red
26052 \series default
26053  in this command by a color of your choice.
26054  You can use all pre- and self-defined colors.
26055  See the 
26056 \emph on
26057 EmbeddedObjects
26058 \emph default
26059  manual, section 
26060 \emph on
26061 Colored
26062 \begin_inset space ~
26063 \end_inset
26064
26065 Tables
26066 \emph default
26067  for more information about pre- and self-defined colors.
26068  To go back to the default color insert the command
26069 \begin_inset Newline newline
26070 \end_inset
26071
26072
26073 \series bold
26074
26075 \backslash
26076 renewcommand{
26077 \backslash
26078 columnseprulecolor}{
26079 \backslash
26080 normalcolor}
26081 \series default
26082
26083 \begin_inset Newline newline
26084 \end_inset
26085
26086 Here is the example with a cyan rule and 1
26087 \begin_inset space \thinspace{}
26088 \end_inset
26089
26090 cm column separation:
26091 \end_layout
26092
26093 \begin_layout Standard
26094 \begin_inset ERT
26095 status open
26096
26097 \begin_layout Plain Layout
26098
26099
26100 \backslash
26101 setlength{
26102 \backslash
26103 columnsep}{1cm}
26104 \end_layout
26105
26106 \begin_layout Plain Layout
26107
26108
26109 \backslash
26110 renewcommand{
26111 \backslash
26112 columnseprulecolor}{
26113 \backslash
26114 color{cyan}}
26115 \end_layout
26116
26117 \end_inset
26118
26119
26120 \end_layout
26121
26122 \begin_layout Standard
26123 \begin_inset Flex Multiple Columns
26124 status open
26125
26126 \begin_layout Plain Layout
26127
26128 \size small
26129 \begin_inset Quotes eld
26130 \end_inset
26131
26132 You're surprised to see me, sir,
26133 \begin_inset Quotes erd
26134 \end_inset
26135
26136  said he, in a strange, croaking voice.
26137 \end_layout
26138
26139 \begin_layout Plain Layout
26140
26141 \size small
26142 I acknowledged that I was.
26143 \end_layout
26144
26145 \begin_layout Plain Layout
26146
26147 \size small
26148 \begin_inset Quotes eld
26149 \end_inset
26150
26151 Well, I've a conscience, sir, and when I chanced to see you go into this
26152  house, as I came hobbling after you, I thought to myself, I'll just step
26153  in and see that kind gentleman, and tell him that if I was a bit gruff
26154  in my manner there was not any harm meant, and that I am much obliged to
26155  him for picking up my books.
26156 \begin_inset Quotes erd
26157 \end_inset
26158
26159
26160 \end_layout
26161
26162 \begin_layout Plain Layout
26163
26164 \size small
26165 \begin_inset Quotes eld
26166 \end_inset
26167
26168 You make too much of a trifle,
26169 \begin_inset Quotes erd
26170 \end_inset
26171
26172  said I.
26173  
26174 \begin_inset Quotes eld
26175 \end_inset
26176
26177 May I ask how you knew who I was?
26178 \begin_inset Quotes erd
26179 \end_inset
26180
26181
26182 \end_layout
26183
26184 \begin_layout Plain Layout
26185
26186 \size small
26187 \begin_inset Quotes eld
26188 \end_inset
26189
26190 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
26191  you'll find my little bookshop at the corner of Church Street, and very
26192  happy to see you, I am sure.
26193  Maybe you collect yourself, sir.
26194  Here's 
26195 \noun on
26196 British
26197 \begin_inset space ~
26198 \end_inset
26199
26200 Birds
26201 \noun default
26202 , and 
26203 \noun on
26204 Catullus
26205 \noun default
26206 , and 
26207 \noun on
26208 The Holy War
26209 \noun default
26210 –a bargain, every one of them.
26211  With five volumes you could just fill that gap on that second shelf.
26212  It looks untidy, does it not, sir?
26213 \begin_inset Quotes erd
26214 \end_inset
26215
26216
26217 \end_layout
26218
26219 \end_inset
26220
26221
26222 \end_layout
26223
26224 \begin_layout Standard
26225 \begin_inset ERT
26226 status collapsed
26227
26228 \begin_layout Plain Layout
26229
26230
26231 \backslash
26232 setlength{
26233 \backslash
26234 columnseprule}{0pt}
26235 \end_layout
26236
26237 \begin_layout Plain Layout
26238
26239
26240 \backslash
26241 renewcommand{
26242 \backslash
26243 columnseprulecolor}{
26244 \backslash
26245 normalcolor}
26246 \end_layout
26247
26248 \end_inset
26249
26250
26251 \begin_inset Note Note
26252 status collapsed
26253
26254 \begin_layout Plain Layout
26255 go back to the default
26256 \end_layout
26257
26258 \end_inset
26259
26260
26261 \end_layout
26262
26263 \begin_layout Section
26264 Non-standard Paragraph Shapes
26265 \end_layout
26266
26267 \begin_layout Standard
26268 \noindent
26269 \SpecialChar LaTeX
26270  as well as any other text processor uses by default rectangular paragraphs.
26271  For special cases like for example posters, invitation cards or poems you
26272  can modify the paragraph shape to one of your choice.
26273  This can be done by using the \SpecialChar LaTeX
26274 -package 
26275 \series bold
26276 shapepar
26277 \series default
26278  which is loaded by using in the document settings the module 
26279 \family sans
26280 Custom paragraph shapes
26281 \family default
26282 .
26283 \end_layout
26284
26285 \begin_layout Subsection
26286 Predefined shapes
26287 \end_layout
26288
26289 \begin_layout Standard
26290
26291 \series bold
26292 shapepar
26293 \series default
26294  provides the following shapes:
26295 \end_layout
26296
26297 \begin_layout Standard
26298 \begin_inset Tabular
26299 <lyxtabular version="3" rows="13" columns="3">
26300 <features booktabs="true" islongtable="true" longtabularalignment="center">
26301 <column alignment="center" valignment="middle" width="16col%">
26302 <column alignment="center" valignment="middle" width="40col%">
26303 <column alignment="center" valignment="middle" width="35col%">
26304 <row endhead="true">
26305 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26306 \begin_inset Text
26307
26308 \begin_layout Plain Layout
26309 Name
26310 \end_layout
26311
26312 \end_inset
26313 </cell>
26314 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26315 \begin_inset Text
26316
26317 \begin_layout Plain Layout
26318 Description
26319 \end_layout
26320
26321 \end_inset
26322 </cell>
26323 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26324 \begin_inset Text
26325
26326 \begin_layout Plain Layout
26327 Annotation
26328 \end_layout
26329
26330 \end_inset
26331 </cell>
26332 </row>
26333 <row>
26334 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26335 \begin_inset Text
26336
26337 \begin_layout Plain Layout
26338 CDlabel
26339 \end_layout
26340
26341 \end_inset
26342 </cell>
26343 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26344 \begin_inset Text
26345
26346 \begin_layout Plain Layout
26347 Circle with circular hole (in the size of a CD/DVD)
26348 \end_layout
26349
26350 \end_inset
26351 </cell>
26352 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26353 \begin_inset Text
26354
26355 \begin_layout Plain Layout
26356 Cannot be scaled, take care there is not too much text
26357 \end_layout
26358
26359 \end_inset
26360 </cell>
26361 </row>
26362 <row>
26363 <cell alignment="center" valignment="top" topline="true" usebox="none">
26364 \begin_inset Text
26365
26366 \begin_layout Plain Layout
26367 Circle
26368 \end_layout
26369
26370 \end_inset
26371 </cell>
26372 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26373 \begin_inset Text
26374
26375 \begin_layout Plain Layout
26376 Circle
26377 \end_layout
26378
26379 \end_inset
26380 </cell>
26381 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26382 \begin_inset Text
26383
26384 \begin_layout Plain Layout
26385 Fragile, calculation might fail
26386 \end_layout
26387
26388 \end_inset
26389 </cell>
26390 </row>
26391 <row>
26392 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26393 \begin_inset Text
26394
26395 \begin_layout Plain Layout
26396 Diamond
26397 \end_layout
26398
26399 \end_inset
26400 </cell>
26401 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26402 \begin_inset Text
26403
26404 \begin_layout Plain Layout
26405 Rhomboid (symbolizing a 
26406 \begin_inset Quotes eld
26407 \end_inset
26408
26409 diamond
26410 \begin_inset Quotes erd
26411 \end_inset
26412
26413 )
26414 \end_layout
26415
26416 \end_inset
26417 </cell>
26418 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26419 \begin_inset Text
26420
26421 \begin_layout Plain Layout
26422 -
26423 \end_layout
26424
26425 \end_inset
26426 </cell>
26427 </row>
26428 <row>
26429 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26430 \begin_inset Text
26431
26432 \begin_layout Plain Layout
26433 Heart
26434 \end_layout
26435
26436 \end_inset
26437 </cell>
26438 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26439 \begin_inset Text
26440
26441 \begin_layout Plain Layout
26442 Heart-like shape
26443 \end_layout
26444
26445 \end_inset
26446 </cell>
26447 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26448 \begin_inset Text
26449
26450 \begin_layout Plain Layout
26451 -
26452 \end_layout
26453
26454 \end_inset
26455 </cell>
26456 </row>
26457 <row>
26458 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26459 \begin_inset Text
26460
26461 \begin_layout Plain Layout
26462 Hexagon
26463 \end_layout
26464
26465 \end_inset
26466 </cell>
26467 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26468 \begin_inset Text
26469
26470 \begin_layout Plain Layout
26471 Hexagon
26472 \end_layout
26473
26474 \end_inset
26475 </cell>
26476 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26477 \begin_inset Text
26478
26479 \begin_layout Plain Layout
26480 -
26481 \end_layout
26482
26483 \end_inset
26484 </cell>
26485 </row>
26486 <row>
26487 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26488 \begin_inset Text
26489
26490 \begin_layout Plain Layout
26491 Nut
26492 \end_layout
26493
26494 \end_inset
26495 </cell>
26496 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26497 \begin_inset Text
26498
26499 \begin_layout Plain Layout
26500 Nut for bolt (hexagon with circular hole)
26501 \end_layout
26502
26503 \end_inset
26504 </cell>
26505 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26506 \begin_inset Text
26507
26508 \begin_layout Plain Layout
26509 -
26510 \end_layout
26511
26512 \end_inset
26513 </cell>
26514 </row>
26515 <row>
26516 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26517 \begin_inset Text
26518
26519 \begin_layout Plain Layout
26520 Square
26521 \end_layout
26522
26523 \end_inset
26524 </cell>
26525 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26526 \begin_inset Text
26527
26528 \begin_layout Plain Layout
26529 Square
26530 \end_layout
26531
26532 \end_inset
26533 </cell>
26534 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26535 \begin_inset Text
26536
26537 \begin_layout Plain Layout
26538 -
26539 \end_layout
26540
26541 \end_inset
26542 </cell>
26543 </row>
26544 <row>
26545 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26546 \begin_inset Text
26547
26548 \begin_layout Plain Layout
26549 Star
26550 \end_layout
26551
26552 \end_inset
26553 </cell>
26554 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26555 \begin_inset Text
26556
26557 \begin_layout Plain Layout
26558 Five-point star
26559 \end_layout
26560
26561 \end_inset
26562 </cell>
26563 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26564 \begin_inset Text
26565
26566 \begin_layout Plain Layout
26567 -
26568 \end_layout
26569
26570 \end_inset
26571 </cell>
26572 </row>
26573 <row>
26574 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26575 \begin_inset Text
26576
26577 \begin_layout Plain Layout
26578 Candle
26579 \end_layout
26580
26581 \end_inset
26582 </cell>
26583 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26584 \begin_inset Text
26585
26586 \begin_layout Plain Layout
26587 Burning candle
26588 \end_layout
26589
26590 \end_inset
26591 </cell>
26592 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26593 \begin_inset Text
26594
26595 \begin_layout Plain Layout
26596 -
26597 \end_layout
26598
26599 \end_inset
26600 </cell>
26601 </row>
26602 <row>
26603 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26604 \begin_inset Text
26605
26606 \begin_layout Plain Layout
26607 Drop down/up
26608 \end_layout
26609
26610 \end_inset
26611 </cell>
26612 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26613 \begin_inset Text
26614
26615 \begin_layout Plain Layout
26616 Normal/reversed rain drop
26617 \end_layout
26618
26619 \end_inset
26620 </cell>
26621 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26622 \begin_inset Text
26623
26624 \begin_layout Plain Layout
26625 Fragile, calculation might fail
26626 \end_layout
26627
26628 \end_inset
26629 </cell>
26630 </row>
26631 <row>
26632 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26633 \begin_inset Text
26634
26635 \begin_layout Plain Layout
26636 \SpecialChar TeX
26637
26638 \end_layout
26639
26640 \end_inset
26641 </cell>
26642 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26643 \begin_inset Text
26644
26645 \begin_layout Plain Layout
26646 The \SpecialChar TeX
26647  logo
26648 \end_layout
26649
26650 \end_inset
26651 </cell>
26652 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26653 \begin_inset Text
26654
26655 \begin_layout Plain Layout
26656 -
26657 \end_layout
26658
26659 \end_inset
26660 </cell>
26661 </row>
26662 <row>
26663 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26664 \begin_inset Text
26665
26666 \begin_layout Plain Layout
26667 Triangle up/down/
26668 \begin_inset Newline newline
26669 \end_inset
26670
26671 left/right
26672 \end_layout
26673
26674 \end_inset
26675 </cell>
26676 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26677 \begin_inset Text
26678
26679 \begin_layout Plain Layout
26680 Triangles in different orientations
26681 \end_layout
26682
26683 \end_inset
26684 </cell>
26685 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26686 \begin_inset Text
26687
26688 \begin_layout Plain Layout
26689 -
26690 \end_layout
26691
26692 \end_inset
26693 </cell>
26694 </row>
26695 </lyxtabular>
26696
26697 \end_inset
26698
26699
26700 \end_layout
26701
26702 \begin_layout Standard
26703 To use a shape for your paragraph, simply select it in \SpecialChar LyX
26704 's pull-down box
26705  for environments in the toolbar.
26706 \end_layout
26707
26708 \begin_layout Standard
26709 \begin_inset Newpage newpage
26710 \end_inset
26711
26712
26713 \end_layout
26714
26715 \begin_layout Standard
26716 Here is an example paragraph in the shape of a nut:
26717 \end_layout
26718
26719 \begin_layout Standard
26720 \begin_inset VSpace bigskip
26721 \end_inset
26722
26723
26724 \end_layout
26725
26726 \begin_layout Nut
26727
26728 \lang latin
26729 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26730  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26731  voluptua.
26732  At vero eos et accusam et justo duo dolores et ea rebum.
26733  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26734  sit amet.
26735  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26736  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26737  voluptua.
26738 \end_layout
26739
26740 \begin_layout Standard
26741 \begin_inset VSpace bigskip
26742 \end_inset
26743
26744
26745 \end_layout
26746
26747 \begin_layout Standard
26748 \begin_inset Note Greyedout
26749 status open
26750
26751 \begin_layout Plain Layout
26752
26753 \series bold
26754 Note
26755 \series default
26756 : shapepar paragraphs cannot run over a page break.
26757 \end_layout
26758
26759 \end_inset
26760
26761
26762 \end_layout
26763
26764 \begin_layout Standard
26765 \begin_inset VSpace bigskip
26766 \end_inset
26767
26768
26769 \end_layout
26770
26771 \begin_layout Standard
26772
26773 \series bold
26774 shapepar
26775 \series default
26776  takes care that the shape will always be preserved, no matter how much
26777  text is in the paragraph.
26778  Therefore the paragraph size changes with the amount of contained text.
26779  This can lead to paragraph sizes exceeding the page margins.
26780  To demonstrate the size scaling, here is the same example paragraph but
26781  with twice as much text:
26782 \end_layout
26783
26784 \begin_layout Standard
26785 \begin_inset Newpage newpage
26786 \end_inset
26787
26788
26789 \end_layout
26790
26791 \begin_layout Nut
26792
26793 \lang latin
26794 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26795  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26796  voluptua.
26797  At vero eos et accusam et justo duo dolores et ea rebum.
26798  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26799  sit amet.
26800  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26801  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26802  voluptua.
26803  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26804  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26805  voluptua.
26806  At vero eos et accusam et justo duo dolores et ea rebum.
26807  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26808  sit amet.
26809  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26810  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26811  voluptua.
26812 \end_layout
26813
26814 \begin_layout Standard
26815 \begin_inset VSpace bigskip
26816 \end_inset
26817
26818
26819 \end_layout
26820
26821 \begin_layout Standard
26822 An exception is the shape 
26823 \family sans
26824 CDlabel
26825 \family default
26826 .
26827  It cannot be scaled because it must fit the size of a CD/DVD.
26828  Therefore the amount of text that fits into the shape is limited.
26829 \begin_inset Newline newline
26830 \end_inset
26831
26832 The 
26833 \family sans
26834 drop
26835 \family default
26836  shapes and the 
26837 \family sans
26838 circle
26839 \family default
26840  shape are fragile, meaning that the calculation of their size can fail,
26841  depending on the amount of text.
26842  You will then get the \SpecialChar LaTeX
26843  error 
26844 \begin_inset Quotes eld
26845 \end_inset
26846
26847 Arithmetic overflow
26848 \begin_inset Quotes erd
26849 \end_inset
26850
26851 .
26852  In this case one can try to remove or add some text; if nothing works one
26853  has to use another shape.
26854 \end_layout
26855
26856 \begin_layout Standard
26857 \begin_inset VSpace bigskip
26858 \end_inset
26859
26860
26861 \end_layout
26862
26863 \begin_layout Standard
26864 For shapes with tips you will maybe see that \SpecialChar LaTeX
26865 's hyphenation routine fails
26866  for text in the tips.
26867  Therefore it is often necessary to add hyphenation points 
26868 \family sans
26869 (
26870 \begin_inset Info
26871 type  "shortcut"
26872 arg   "specialchar-insert hyphenation"
26873 \end_inset
26874
26875
26876 \family default
26877 ) to the corresponding text parts.
26878 \end_layout
26879
26880 \begin_layout Standard
26881 \begin_inset VSpace bigskip
26882 \end_inset
26883
26884
26885 \end_layout
26886
26887 \begin_layout Standard
26888 Shapepar paragraphs are either always centered or placed on the page so
26889  that their left border touches the left page margin.
26890  You can therefore not use the paragraph dialog to align such paragraphs.
26891  A solution is to put the paragraph into a minipage or parbox and align
26892  the box.
26893  The problem is hereby to find the right width for the box.
26894  Because if it is too wide and you center the box, the paragraph is not
26895  centered too because it sticks at the left side of the box.
26896  So you might have to play a bit with the width until it fits.
26897  Here are two heart-shaped paragraphs, the first one is not aligned, the
26898  second one is right-aligned:
26899 \end_layout
26900
26901 \begin_layout Standard
26902 \begin_inset Newpage newpage
26903 \end_inset
26904
26905
26906 \end_layout
26907
26908 \begin_layout Heart
26909 \noindent
26910
26911 \lang latin
26912 Lo\SpecialChar softhyphen
26913 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26914  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26915  voluptua.
26916  At vero eos et accusam et justo duo dolores et ea rebum.
26917  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26918  sit amet.
26919 \end_layout
26920
26921 \begin_layout Standard
26922 \begin_inset VSpace bigskip
26923 \end_inset
26924
26925
26926 \end_layout
26927
26928 \begin_layout Standard
26929 \noindent
26930 \align right
26931 \begin_inset Box Frameless
26932 position "t"
26933 hor_pos "c"
26934 has_inner_box 1
26935 inner_pos "t"
26936 use_parbox 1
26937 use_makebox 0
26938 width "42col%"
26939 special "none"
26940 height "1in"
26941 height_special "totalheight"
26942 thickness "0.4pt"
26943 separation "3pt"
26944 shadowsize "4pt"
26945 framecolor "black"
26946 backgroundcolor "none"
26947 status open
26948
26949 \begin_layout Heart
26950 \noindent
26951
26952 \lang latin
26953 Lo\SpecialChar softhyphen
26954 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26955  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26956  voluptua.
26957  At vero eos et accusam et justo duo dolores et ea rebum.
26958  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26959  sit amet.
26960 \end_layout
26961
26962 \end_inset
26963
26964
26965 \end_layout
26966
26967 \begin_layout Subsection
26968 Custom shapes
26969 \end_layout
26970
26971 \begin_layout Standard
26972 You can define any shape you want.
26973  Doing this manually is a lot of work because every coordinate must be specified.
26974  But there is a way to let the computer calculate the coordinates:
26975 \end_layout
26976
26977 \begin_layout Enumerate
26978 Install the program 
26979 \begin_inset CommandInset href
26980 LatexCommand href
26981 name "Jpgfdraw"
26982 target "http://www.ctan.org/tex-archive/graphics/jpgfdraw"
26983 literal "false"
26984
26985 \end_inset
26986
26987 .
26988 \end_layout
26989
26990 \begin_layout Enumerate
26991 In 
26992 \family sans
26993 Jpgfdraw
26994 \family default
26995  go to the menu 
26996 \family sans
26997 TeX/LaTeX\SpecialChar menuseparator
26998 Settings\SpecialChar menuseparator
26999 Set Normal Size
27000 \family default
27001  and select the font size you are using in your document.
27002  For example this document uses the size 12
27003 \begin_inset space \thinspace{}
27004 \end_inset
27005
27006 pt.
27007 \end_layout
27008
27009 \begin_layout Enumerate
27010 Draw a shape.
27011 \end_layout
27012
27013 \begin_layout Enumerate
27014 Use the menu 
27015 \family sans
27016 TeX/LaTeX\SpecialChar menuseparator
27017 Shapepar
27018 \family default
27019  to export the shape to coordinates.
27020  In the appearing dialog use either the outline of your shape for the coordinate
27021 s or the path itself.
27022 \begin_inset Foot
27023 status collapsed
27024
27025 \begin_layout Plain Layout
27026 For more information see 
27027 \begin_inset CommandInset href
27028 LatexCommand href
27029 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
27030 literal "false"
27031
27032 \end_inset
27033
27034
27035 \end_layout
27036
27037 \end_inset
27038
27039
27040 \end_layout
27041
27042 \begin_layout Standard
27043 The coordinates are written into a \SpecialChar TeX
27044  file.
27045  To use it for your \SpecialChar LyX
27046  document
27047 \end_layout
27048
27049 \begin_layout Enumerate
27050 Place the cursor before the first character of your paragraph (or into a
27051  new empty one).
27052 \end_layout
27053
27054 \begin_layout Enumerate
27055 Open in \SpecialChar LyX
27056  the menu 
27057 \family sans
27058 Insert\SpecialChar menuseparator
27059 File\SpecialChar menuseparator
27060 Child
27061 \begin_inset space ~
27062 \end_inset
27063
27064 Document
27065 \family default
27066 , select the file and use 
27067 \family sans
27068 Input
27069 \family default
27070  as 
27071 \family sans
27072 Include Type.
27073 \end_layout
27074
27075 \begin_layout Standard
27076 \begin_inset VSpace defskip
27077 \end_inset
27078
27079
27080 \end_layout
27081
27082 \begin_layout Standard
27083 \begin_inset Note Greyedout
27084 status open
27085
27086 \begin_layout Plain Layout
27087
27088 \series bold
27089 Note
27090 \series default
27091 : The changed shape only applies to the current paragraph; everything is
27092  reset to normal for the next paragraph.
27093  Therefore the shape definition file must be input into every paragraph
27094  with the desired shape.
27095 \end_layout
27096
27097 \end_inset
27098
27099
27100 \end_layout
27101
27102 \begin_layout Standard
27103 \begin_inset VSpace bigskip
27104 \end_inset
27105
27106
27107 \end_layout
27108
27109 \begin_layout Standard
27110 Here is an example:
27111 \end_layout
27112
27113 \begin_layout Standard
27114 \begin_inset VSpace bigskip
27115 \end_inset
27116
27117
27118 \end_layout
27119
27120 \begin_layout Standard
27121 \begin_inset CommandInset include
27122 LatexCommand input
27123 filename "SpecialParagraphShape.tex"
27124
27125 \end_inset
27126
27127
27128 \lang latin
27129 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
27130  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
27131  voluptua.
27132  At vero eos et accusam et justo duo dolores et ea rebum.
27133  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
27134  sit amet.
27135  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
27136  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
27137  voluptua.
27138 \end_layout
27139
27140 \begin_layout Standard
27141 \begin_inset VSpace bigskip
27142 \end_inset
27143
27144
27145 \end_layout
27146
27147 \begin_layout Standard
27148
27149 \series bold
27150 A tip:
27151 \series default
27152  to draw complexer shapes in 
27153 \family sans
27154 Jpgfdraw
27155 \family default
27156  you can draw the shape in a program of your choice and import the resulting
27157  image to 
27158 \family sans
27159 Jpgfdraw
27160 \family default
27161 .
27162  Then you only need to draw a line or spline along the outline of the image.
27163 \end_layout
27164
27165 \begin_layout Standard
27166 \begin_inset VSpace bigskip
27167 \end_inset
27168
27169
27170 \end_layout
27171
27172 \begin_layout Standard
27173 The module 
27174 \family sans
27175 Custom paragraph shapes
27176 \family default
27177  also provides the two commands 
27178 \family sans
27179 shapepar
27180 \family default
27181  and 
27182 \family sans
27183 Shapepar
27184 \family default
27185  which can be used to define custom shapes coordinate by coordinate.
27186 \begin_inset Foot
27187 status collapsed
27188
27189 \begin_layout Plain Layout
27190 These commands are internally used for all shapes described here.
27191 \end_layout
27192
27193 \end_inset
27194
27195  For information how these styles are used and about further customization
27196  possibilities, have a look at the documentation of the package 
27197 \series bold
27198 shapepar
27199 \series default
27200
27201 \begin_inset CommandInset citation
27202 LatexCommand cite
27203 key "shapepar"
27204 literal "true"
27205
27206 \end_inset
27207
27208 .
27209 \end_layout
27210
27211 \begin_layout Bibliography
27212 \begin_inset CommandInset bibitem
27213 LatexCommand bibitem
27214 key "multicol"
27215 literal "true"
27216
27217 \end_inset
27218
27219 Documentation of the \SpecialChar LaTeX
27220 -package 
27221 \begin_inset CommandInset href
27222 LatexCommand href
27223 name "multicol"
27224 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
27225 literal "false"
27226
27227 \end_inset
27228
27229
27230 \end_layout
27231
27232 \begin_layout Bibliography
27233 \begin_inset CommandInset bibitem
27234 LatexCommand bibitem
27235 key "shapepar"
27236 literal "true"
27237
27238 \end_inset
27239
27240 Documentation of the \SpecialChar LaTeX
27241 -package 
27242 \begin_inset CommandInset href
27243 LatexCommand href
27244 name "shapepar"
27245 target "http://mirrors.ctan.org/macros/latex/contrib/shapepar/shapepar.pdf"
27246 literal "false"
27247
27248 \end_inset
27249
27250
27251 \end_layout
27252
27253 \end_body
27254 \end_document