]> git.lyx.org Git - lyx.git/blob - lib/doc/Additional.lyx
a43300f42667bf0d234350bb0d848ce91b4b52f5
[lyx.git] / lib / doc / Additional.lyx
1 #LyX 2.3 created this file. For more info see http://www.lyx.org/
2 \lyxformat 531
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
1033 \end_inset
1034
1035  for details.
1036 \end_layout
1037
1038 \begin_layout Standard
1039 If you do need to do some wild and fancy things within your document, be
1040  sure to check out a good \SpecialChar LaTeX
1041  book for assistance.
1042  There are a number of them listed in the bibliography of the 
1043 \emph on
1044 User's Guide
1045 \emph default
1046 .
1047 \end_layout
1048
1049 \begin_layout Section
1050 \SpecialChar LyX
1051  and the \SpecialChar LaTeX
1052  Preamble
1053 \end_layout
1054
1055 \begin_layout Subsection
1056 About the \SpecialChar LaTeX
1057  Preamble
1058 \end_layout
1059
1060 \begin_layout Standard
1061 If you already know \SpecialChar LaTeX
1062 , there is no need to explain here what the preamble
1063  is good for.
1064  If you don't, the following will give you some ideas—we recommend again
1065  that you consult a \SpecialChar LaTeX
1066  book for further information.
1067  In any case, you should read the points below, because they explain what
1068  you can do and what you don't need to do in the \SpecialChar LaTeX
1069  preamble of a \SpecialChar LyX
1070  document.
1071 \end_layout
1072
1073 \begin_layout Standard
1074 The \SpecialChar LaTeX
1075  preamble comes at the very beginning of a document, 
1076 \emph on
1077 before
1078 \emph default
1079  the text.
1080  It serves to:
1081 \end_layout
1082
1083 \begin_layout Itemize
1084 Declare the document class.
1085  
1086 \begin_inset Newline newline
1087 \end_inset
1088
1089 \SpecialChar LyX
1090  already does this for you.
1091  If you're a seasoned \SpecialChar LaTeX
1092 -nician, and you have a custom document class you
1093  want to use, check out the 
1094 \emph on
1095 Customization Manual
1096 \emph default
1097  for information on how to make \SpecialChar LyX
1098  interface to it.
1099 \end_layout
1100
1101 \begin_layout Itemize
1102 Declare the usage of packages.
1103  
1104 \begin_inset Newline newline
1105 \end_inset
1106
1107 \SpecialChar LaTeX
1108  packages provide special commands, which are only available within a document
1109  when the package has been declared in the preamble.
1110  In addition to providing special commands, the inclusion of a package can
1111  change the document.
1112  For example, the package 
1113 \begin_inset Flex Code
1114 status collapsed
1115
1116 \begin_layout Plain Layout
1117 indentfirst
1118 \end_layout
1119
1120 \end_inset
1121
1122  forces all paragraphs to be indented.
1123  There are other packages for labels, envelopes, margins, etc.
1124  
1125 \end_layout
1126
1127 \begin_layout Itemize
1128 Set counters, variables, lengths and widths.
1129  
1130 \begin_inset Newline newline
1131 \end_inset
1132
1133 There are several \SpecialChar LaTeX
1134  counters and variables that 
1135 \emph on
1136 must
1137 \emph default
1138  be set globally from within the preamble in order to have the desired effect.
1139  (There are variables that you can set and reset inside the document, too.)
1140  Margins are a good example of something that must be set in the preamble.
1141  Another example is the label format for lists.
1142  You can actually set these just about anywhere, but it's best to do it
1143  just once, inside the preamble.
1144 \end_layout
1145
1146 \begin_layout Itemize
1147 Declare user defined commands (with 
1148 \begin_inset Flex Code
1149 status collapsed
1150
1151 \begin_layout Plain Layout
1152
1153 \backslash
1154 newcommand
1155 \end_layout
1156
1157 \end_inset
1158
1159  or 
1160 \begin_inset Flex Code
1161 status collapsed
1162
1163 \begin_layout Plain Layout
1164
1165 \backslash
1166 renewcommand
1167 \end_layout
1168
1169 \end_inset
1170
1171 ).
1172 \begin_inset Newline newline
1173 \end_inset
1174
1175 These are abbreviations for \SpecialChar LaTeX
1176  commands which appear very often inside a document.
1177  Although the preamble is a good place to declare such commands, they 
1178 \emph on
1179 can
1180 \emph default
1181  be declared anywhere (before they are used for the first time, of course).
1182  This can be useful if there is a lot of raw \SpecialChar LaTeX
1183  code in your document, which
1184  normally should not be the case.
1185 \end_layout
1186
1187 \begin_layout Standard
1188 \SpecialChar LyX
1189  adds its own set of definitions to the preamble of the 
1190 \begin_inset Flex Code
1191 status collapsed
1192
1193 \begin_layout Plain Layout
1194 .tex
1195 \end_layout
1196
1197 \end_inset
1198
1199  file it produces.
1200  This makes \SpecialChar LaTeX
1201  files generated by \SpecialChar LyX
1202  portable.
1203 \end_layout
1204
1205 \begin_layout Subsection
1206 Changing the Preamble
1207 \end_layout
1208
1209 \begin_layout Standard
1210 The commands which \SpecialChar LyX
1211  adds to the preamble of a \SpecialChar LaTeX
1212  file are fixed; you can't
1213  change them without patching \SpecialChar LyX
1214  itself.
1215  You can, however, add your own stuff to the preamble by selecting 
1216 \begin_inset Flex Noun
1217 status collapsed
1218
1219 \begin_layout Plain Layout
1220 \SpecialChar LaTeX
1221
1222 \begin_inset space ~
1223 \end_inset
1224
1225 Preamble
1226 \end_layout
1227
1228 \end_inset
1229
1230  in the 
1231 \begin_inset Flex Noun
1232 status collapsed
1233
1234 \begin_layout Plain Layout
1235 Document\SpecialChar menuseparator
1236 Settings
1237 \end_layout
1238
1239 \end_inset
1240
1241  dialog.
1242  \SpecialChar LyX
1243  adds anything in the 
1244 \begin_inset Flex Noun
1245 status collapsed
1246
1247 \begin_layout Plain Layout
1248 Preamble
1249 \end_layout
1250
1251 \end_inset
1252
1253  dialog to its own built-in preamble.
1254  Before adding your own declarations in the preamble, you should make sure
1255  that \SpecialChar LyX
1256  doesn't already support what you want to do.
1257  (Remember what we said about reinventing the wheel?) Also, 
1258 \emph on
1259 make sure your preamble code is correct
1260 \emph default
1261 .
1262  \SpecialChar LyX
1263  doesn't check it for you.
1264  If there is an error, you're likely to get an error like 
1265 \begin_inset Quotes eld
1266 \end_inset
1267
1268
1269 \begin_inset Flex Code
1270 status collapsed
1271
1272 \begin_layout Plain Layout
1273 Missing 
1274 \backslash
1275 begin{document}
1276 \end_layout
1277
1278 \end_inset
1279
1280
1281 \begin_inset Quotes erd
1282 \end_inset
1283
1284 .
1285  If you see this error, check your preamble.
1286 \end_layout
1287
1288 \begin_layout Subsection
1289 Examples
1290 \end_layout
1291
1292 \begin_layout Standard
1293 Here are some examples of what you can add to a preamble, and what they
1294  do.
1295 \end_layout
1296
1297 \begin_layout Subsubsection
1298 Example #1: Offsets
1299 \end_layout
1300
1301 \begin_layout Standard
1302 There are two variables under \SpecialChar LaTeX
1303  that control page position: 
1304 \begin_inset Flex Code
1305 status collapsed
1306
1307 \begin_layout Plain Layout
1308
1309 \backslash
1310 hoffset
1311 \end_layout
1312
1313 \end_inset
1314
1315  and 
1316 \begin_inset Flex Code
1317 status collapsed
1318
1319 \begin_layout Plain Layout
1320
1321 \backslash
1322 voffset
1323 \end_layout
1324
1325 \end_inset
1326
1327 .
1328  Their names should be self-explanatory.
1329  These variables are useful if you think for a moment about computer labels.
1330  Sometimes, the size of a print medium and the area of the medium that you
1331  can actually print on aren't the same.
1332  This is where 
1333 \begin_inset Flex Code
1334 status collapsed
1335
1336 \begin_layout Plain Layout
1337
1338 \backslash
1339 hoffset
1340 \end_layout
1341
1342 \end_inset
1343
1344  and 
1345 \begin_inset Flex Code
1346 status collapsed
1347
1348 \begin_layout Plain Layout
1349
1350 \backslash
1351 voffset
1352 \end_layout
1353
1354 \end_inset
1355
1356  come in.
1357 \end_layout
1358
1359 \begin_layout Standard
1360 The default values for 
1361 \begin_inset Flex Code
1362 status collapsed
1363
1364 \begin_layout Plain Layout
1365
1366 \backslash
1367 hoffset
1368 \end_layout
1369
1370 \end_inset
1371
1372  and 
1373 \begin_inset Flex Code
1374 status collapsed
1375
1376 \begin_layout Plain Layout
1377
1378 \backslash
1379 voffset
1380 \end_layout
1381
1382 \end_inset
1383
1384  are both 0
1385 \begin_inset space \thinspace{}
1386 \end_inset
1387
1388 points, i.
1389 \begin_inset space \thinspace{}
1390 \end_inset
1391
1392 e.
1393 \begin_inset space \space{}
1394 \end_inset
1395
1396 the page isn't shifted.
1397  Unfortunately, some DVI drivers always seem to shift the page.
1398  We have no idea why, or why the sysadmin hasn't fixed such behavior.
1399  If you're using \SpecialChar LyX
1400  on a system that you don't personally maintain, and your
1401  sysadmin is a doofus, 
1402 \begin_inset Flex Code
1403 status collapsed
1404
1405 \begin_layout Plain Layout
1406
1407 \backslash
1408 hoffset
1409 \end_layout
1410
1411 \end_inset
1412
1413  and 
1414 \begin_inset Flex Code
1415 status collapsed
1416
1417 \begin_layout Plain Layout
1418
1419 \backslash
1420 voffset
1421 \end_layout
1422
1423 \end_inset
1424
1425  can save the day.
1426  Suppose your left and top margins are always 0.5
1427 \begin_inset space \thinspace{}
1428 \end_inset
1429
1430 inches too big.
1431  You can add this to the preamble:
1432 \end_layout
1433
1434 \begin_layout LyX-Code
1435
1436 \backslash
1437 setlength{
1438 \backslash
1439 hoffset}{-0.5 in}
1440 \end_layout
1441
1442 \begin_layout LyX-Code
1443
1444 \backslash
1445 setlength{
1446 \backslash
1447 voffset}{-0.5 in}
1448 \end_layout
1449
1450 \begin_layout Standard
1451 and your margins should now be correct.
1452 \end_layout
1453
1454 \begin_layout Subsubsection
1455 Example #2: Labels
1456 \end_layout
1457
1458 \begin_layout Standard
1459 Speaking of labels, suppose you wanted to print out a bunch of address labels.
1460  There's a rather nice package, available at your nearest CTAN archive,
1461  for printing sheets of labels: 
1462 \begin_inset Flex Code
1463 status collapsed
1464
1465 \begin_layout Plain Layout
1466 labels.sty
1467 \end_layout
1468
1469 \end_inset
1470
1471 .
1472  Now, your system may not have this package installed by default.
1473  We leave that up to you to check.
1474  You'll also want to read the documentation for it; we're not going to do
1475  that for you.
1476  Since this is an example, however, we'll give you an example of how you
1477  use this package.
1478 \end_layout
1479
1480 \begin_layout Standard
1481 First, make sure you're using the 
1482 \begin_inset Flex Code
1483 status collapsed
1484
1485 \begin_layout Plain Layout
1486 article
1487 \end_layout
1488
1489 \end_inset
1490
1491  document class.
1492  Next, you need to put the following in your preamble:
1493 \end_layout
1494
1495 \begin_layout LyX-Code
1496
1497 \backslash
1498 usepackage{labels}
1499 \end_layout
1500
1501 \begin_layout LyX-Code
1502
1503 \backslash
1504 LabelCols=3
1505 \end_layout
1506
1507 \begin_layout LyX-Code
1508
1509 \backslash
1510 LabelRows=7
1511 \end_layout
1512
1513 \begin_layout LyX-Code
1514
1515 \backslash
1516 LeftBorder=8mm
1517 \end_layout
1518
1519 \begin_layout LyX-Code
1520
1521 \backslash
1522 RightBorder=8mm
1523 \end_layout
1524
1525 \begin_layout LyX-Code
1526
1527 \backslash
1528 TopBorder=9mm
1529 \end_layout
1530
1531 \begin_layout LyX-Code
1532
1533 \backslash
1534 BottomBorder=2mm
1535 \end_layout
1536
1537 \begin_layout Standard
1538 This sets things up for Avery label sheets, stock #5360.
1539  You're now ready to print labels, but you'll need to insert \SpecialChar LaTeX
1540  code, placing
1541  the commands 
1542 \begin_inset Flex Code
1543 status collapsed
1544
1545 \begin_layout Plain Layout
1546
1547 \backslash
1548 begin{labels}
1549 \end_layout
1550
1551 \end_inset
1552
1553  and 
1554 \begin_inset Flex Code
1555 status collapsed
1556
1557 \begin_layout Plain Layout
1558
1559 \backslash
1560 end{labels}
1561 \end_layout
1562
1563 \end_inset
1564
1565  around each label text.
1566  This and other special features of 
1567 \begin_inset Flex Code
1568 status collapsed
1569
1570 \begin_layout Plain Layout
1571 labels.sty
1572 \end_layout
1573
1574 \end_inset
1575
1576  are explained in its documentation.
1577 \end_layout
1578
1579 \begin_layout Standard
1580 Someday, someone may write a \SpecialChar LyX
1581  layout file to support this package directly.
1582  Maybe that someone is you.
1583 \end_layout
1584
1585 \begin_layout Subsubsection
1586 Example #3: Paragraph Indentation
1587 \end_layout
1588
1589 \begin_layout Standard
1590 Americans are trained to indent the first line of 
1591 \emph on
1592 every
1593 \emph default
1594  paragraph.
1595  As with all of their other weird quirks, most Americans will whine and
1596  moan until they can have their way and indent the first line of all paragraphs.
1597  (Yes, we're joking.
1598  (We are?) 
1599 \emph on
1600 Yeah
1601 \emph default
1602 , we are.)
1603 \end_layout
1604
1605 \begin_layout Standard
1606 Of course, this behavior isn't standard typography.
1607  In books, you typically only indent the first line of a paragraph 
1608 \emph on
1609 if
1610 \emph default
1611  it follows another one.
1612  The idea behind indenting the first line of a paragraph is to distinguish
1613  neighboring paragraphs from one another.
1614  If there is no previous paragraph—for example, if it follows a figure or
1615  is the first paragraph in a section—then there is no need for indentation.
1616  
1617 \end_layout
1618
1619 \begin_layout Standard
1620 If you're a typical American (we're still joking!), though, you don't care
1621  about such esoteric things; you want your indentation! Add this to the
1622  preamble:
1623 \end_layout
1624
1625 \begin_layout LyX-Code
1626
1627 \backslash
1628 usepackage{indentfirst}
1629 \end_layout
1630
1631 \begin_layout Standard
1632 If your \SpecialChar TeX
1633  distribution isn't braindead, you'll have this package, and all
1634  of your paragraphs will get the indentation the Founding Fathers intended
1635  they should have.
1636 \end_layout
1637
1638 \begin_layout Subsubsection
1639 Example #4: This Document
1640 \end_layout
1641
1642 \begin_layout Standard
1643 You can also check out the preamble of this document to get an idea of some
1644  of the advanced things you can do.
1645 \end_layout
1646
1647 \begin_layout Section
1648 \SpecialChar LyX
1649  and \SpecialChar LaTeX
1650  Errors
1651 \end_layout
1652
1653 \begin_layout Standard
1654 When \SpecialChar LyX
1655  calls \SpecialChar LaTeX
1656 , it tells \SpecialChar LaTeX
1657  to blithely ignore any errors and keep going.
1658  It then uses the logfile from the \SpecialChar LaTeX
1659  run to do a post-mortem.
1660  After analyzing the logfile, \SpecialChar LyX
1661  displays a dialog listing the errors.
1662  Clicking on any one of them will take you to the position in your \SpecialChar LyX
1663  file
1664  where the error occurred.
1665 \begin_inset Foot
1666 status collapsed
1667
1668 \begin_layout Plain Layout
1669 Well, usually.
1670  Analyzing the logfile is a tough job, and \SpecialChar LyX
1671  doesn't always go to the right
1672  line.
1673  There are also cases where \SpecialChar LaTeX
1674  reports the error on one line, but the actual
1675  error is earlier.
1676  This is not unlike forgetting a closing brace in a program: You'll get
1677  an error, but only later.
1678 \end_layout
1679
1680 \end_inset
1681
1682
1683 \end_layout
1684
1685 \begin_layout Standard
1686 Some folks also like to look at the log file directly: It is available from
1687  
1688 \begin_inset Flex Noun
1689 status collapsed
1690
1691 \begin_layout Plain Layout
1692 Document\SpecialChar menuseparator
1693 LaTeX
1694 \begin_inset space ~
1695 \end_inset
1696
1697 Log
1698 \end_layout
1699
1700 \end_inset
1701
1702 .
1703  There are some fairly common error messages and warnings.
1704  We'll cover those here.
1705  You should look at a good \SpecialChar LaTeX
1706  book for a complete listing.
1707 \end_layout
1708
1709 \begin_layout Itemize
1710 \begin_inset Flex Code
1711 status collapsed
1712
1713 \begin_layout Plain Layout
1714 LaTeX Warning
1715 \end_layout
1716
1717 \end_inset
1718
1719
1720 \begin_inset Newline newline
1721 \end_inset
1722
1723 Anything beginning with these words is a warning message for the purpose
1724  of 
1725 \begin_inset Quotes eld
1726 \end_inset
1727
1728 debugging
1729 \begin_inset Quotes erd
1730 \end_inset
1731
1732  the \SpecialChar LaTeX
1733  code itself.
1734  You'll get messages like this if you added or changed cross-references
1735  or bibliography entries, in which case, \SpecialChar LaTeX
1736  is trying to tell you that you
1737  need to make another run.
1738  You can by-and-large ignore these.
1739 \end_layout
1740
1741 \begin_layout Itemize
1742 \begin_inset Flex Code
1743 status collapsed
1744
1745 \begin_layout Plain Layout
1746 LaTeX Font Warning
1747 \end_layout
1748
1749 \end_inset
1750
1751
1752 \begin_inset Newline newline
1753 \end_inset
1754
1755 Another warning message, this time about fonts which \SpecialChar LaTeX
1756  couldn't find.
1757  The rest of the message will often say something about a replacement font
1758  that \SpecialChar LaTeX
1759  used.
1760  You can safely ignore these, too.
1761 \end_layout
1762
1763 \begin_layout Itemize
1764 \begin_inset Flex Code
1765 status collapsed
1766
1767 \begin_layout Plain Layout
1768 Overfull 
1769 \backslash
1770 hbox
1771 \end_layout
1772
1773 \end_inset
1774
1775
1776 \begin_inset Newline newline
1777 \end_inset
1778
1779 \SpecialChar LaTeX
1780  absolutely 
1781 \emph on
1782 loves
1783 \emph default
1784  to spew these out.
1785  They are warnings about lines that were too long and run past the right
1786  margin.
1787  Almost always, this is unnoticeable in the final output.
1788  (It can be just a point or two.) Or, only one or two characters extend past
1789  the margin.
1790  \SpecialChar LaTeX
1791  seems to generate at least one of these messages for just about any document
1792  you write.
1793 \begin_inset Newline newline
1794 \end_inset
1795
1796 You can ignore these messages.
1797  Your eyes will tell you if there's a problem with something that's too
1798  wide; just look at the output.
1799 \begin_inset Foot
1800 status collapsed
1801
1802 \begin_layout Plain Layout
1803 You can also enable the `draft' option in 
1804 \begin_inset Flex Noun
1805 status collapsed
1806
1807 \begin_layout Plain Layout
1808 Document\SpecialChar menuseparator
1809 Settings
1810 \end_layout
1811
1812 \end_inset
1813
1814 , and then \SpecialChar LaTeX
1815  will draw a black box in the margin of lines that are overfull.
1816 \end_layout
1817
1818 \end_inset
1819
1820
1821 \end_layout
1822
1823 \begin_layout Itemize
1824 \begin_inset Flex Code
1825 status collapsed
1826
1827 \begin_layout Plain Layout
1828 Underfull 
1829 \backslash
1830 hbox
1831 \end_layout
1832
1833 \end_inset
1834
1835
1836 \begin_inset Newline newline
1837 \end_inset
1838
1839 Not quite as common as its cousin.
1840  \SpecialChar LaTeX
1841  seems to like to print lines that are a bit too wide as opposed to ones
1842  that are a bit too narrow.
1843  We have no idea why.
1844 \end_layout
1845
1846 \begin_layout Itemize
1847 \begin_inset Flex Code
1848 status collapsed
1849
1850 \begin_layout Plain Layout
1851 Overfull 
1852 \backslash
1853 vbox
1854 \end_layout
1855
1856 \end_inset
1857
1858  and 
1859 \begin_inset Flex Code
1860 status collapsed
1861
1862 \begin_layout Plain Layout
1863 Underfull 
1864 \backslash
1865 vbox
1866 \end_layout
1867
1868 \end_inset
1869
1870
1871 \begin_inset Newline newline
1872 \end_inset
1873
1874 Warnings about troubles breaking the page.
1875  Once again, just look at the output.
1876  Your eyes will tell you where something has gone wrong.
1877 \end_layout
1878
1879 \begin_layout Itemize
1880 \begin_inset Flex Code
1881 status collapsed
1882
1883 \begin_layout Plain Layout
1884 LaTeX Error: File 
1885 \begin_inset Quotes els
1886 \end_inset
1887
1888 Xxxx
1889 \begin_inset Quotes ers
1890 \end_inset
1891
1892  not found
1893 \end_layout
1894
1895 \end_inset
1896
1897
1898 \begin_inset Newline newline
1899 \end_inset
1900
1901 The file 
1902 \begin_inset Quotes eld
1903 \end_inset
1904
1905 Xxxx
1906 \begin_inset Quotes erd
1907 \end_inset
1908
1909  isn't installed on this system.
1910  This usually appears because some package your document needs isn't installed.
1911  If you didn't touch the preamble or didn't use the 
1912 \begin_inset Flex Code
1913 status collapsed
1914
1915 \begin_layout Plain Layout
1916
1917 \backslash
1918 usepackage{}
1919 \end_layout
1920
1921 \end_inset
1922
1923  command, then one of the packages \SpecialChar LyX
1924  tried to load is missing.
1925  Use 
1926 \begin_inset Flex Noun
1927 status collapsed
1928
1929 \begin_layout Plain Layout
1930 Help\SpecialChar menuseparator
1931 \SpecialChar LaTeX
1932  Configuration
1933 \end_layout
1934
1935 \end_inset
1936
1937  to get a list of packages that \SpecialChar LyX
1938  knows about.
1939  This file is updated whenever you reconfigure \SpecialChar LyX
1940  (using 
1941 \begin_inset Flex Noun
1942 status collapsed
1943
1944 \begin_layout Plain Layout
1945 Tools\SpecialChar menuseparator
1946 Reconfigure
1947 \end_layout
1948
1949 \end_inset
1950
1951 ) and tells you which packages have been detected and what they do.
1952 \begin_inset Newline newline
1953 \end_inset
1954
1955 If you did use the 
1956 \begin_inset Flex Code
1957 status collapsed
1958
1959 \begin_layout Plain Layout
1960
1961 \backslash
1962 usepackage{}
1963 \end_layout
1964
1965 \end_inset
1966
1967  command and the package in question isn't installed, then you'll need to
1968  install it yourself.
1969 \end_layout
1970
1971 \begin_layout Itemize
1972 \begin_inset Flex Code
1973 status collapsed
1974
1975 \begin_layout Plain Layout
1976 LaTeX Error: Unknown option
1977 \end_layout
1978
1979 \end_inset
1980
1981
1982 \begin_inset Newline newline
1983 \end_inset
1984
1985 Error messages beginning with this are trying to tell you that you specified
1986  a bad or undefined option to a package.
1987  Check the package's documentation.
1988 \end_layout
1989
1990 \begin_layout Itemize
1991 \begin_inset Flex Code
1992 status collapsed
1993
1994 \begin_layout Plain Layout
1995 Undefined control sequence
1996 \end_layout
1997
1998 \end_inset
1999
2000
2001 \begin_inset Newline newline
2002 \end_inset
2003
2004 If you've inserted \SpecialChar LaTeX
2005  code into your document, but made a typo, you'll get
2006  one of these.
2007  You may have forgotten to load a package.
2008  In any case, this error message usually means that you used an undefined
2009  command.
2010  
2011 \end_layout
2012
2013 \begin_layout Standard
2014 There are other error and warning messages.
2015  Some are self-explanatory.
2016  These are usually \SpecialChar LaTeX
2017  messages.
2018  Others are downright cryptic.
2019  These are usually \SpecialChar TeX
2020  error messages, and we really have 
2021 \emph on
2022 no clue
2023 \emph default
2024  what they mean or how to decipher them.
2025  No-one does.
2026 \end_layout
2027
2028 \begin_layout Standard
2029 There's a general sequence you should follow if you get error messages:
2030 \end_layout
2031
2032 \begin_layout Enumerate
2033 Look at the \SpecialChar LaTeX
2034  code you inserted for typos.
2035 \end_layout
2036
2037 \begin_layout Enumerate
2038 If there are no typos, check that you used the command(s) correctly.
2039 \end_layout
2040
2041 \begin_layout Enumerate
2042 If you get a bunch of error boxes piled up at the very top of the document—and
2043  especially if you see a 
2044 \begin_inset Quotes eld
2045 \end_inset
2046
2047
2048 \begin_inset Flex Code
2049 status collapsed
2050
2051 \begin_layout Plain Layout
2052 Missing 
2053 \backslash
2054 begin{document}
2055 \end_layout
2056
2057 \end_inset
2058
2059
2060 \begin_inset Quotes erd
2061 \end_inset
2062
2063  error—it means that there are errors in the preamble.
2064  Start debugging your preamble.
2065 \end_layout
2066
2067 \begin_layout Enumerate
2068 If you didn't add anything to the preamble and didn't add any \SpecialChar LaTeX
2069  code to the
2070  document, the first suspect is your \SpecialChar LaTeX
2071  distribution itself.
2072  Check for missing packages and install them.
2073 \end_layout
2074
2075 \begin_layout Enumerate
2076 Okay, so there are no missing packages.
2077  Did you use any of the fine-tuning options in \SpecialChar LyX
2078 ? Specifically, did you 
2079 \emph on
2080 misuse
2081 \emph default
2082  any of them, like trying to manually insert lots of 
2083 \begin_inset Flex Code
2084 status collapsed
2085
2086 \begin_layout Plain Layout
2087 Protected
2088 \begin_inset space ~
2089 \end_inset
2090
2091 Blanks
2092 \end_layout
2093
2094 \end_inset
2095
2096
2097 \begin_inset Flex Code
2098 status collapsed
2099
2100 \begin_layout Plain Layout
2101 Linebreaks
2102 \end_layout
2103
2104 \end_inset
2105
2106 , or 
2107 \begin_inset Flex Code
2108 status collapsed
2109
2110 \begin_layout Plain Layout
2111 Pagebreaks
2112 \end_layout
2113
2114 \end_inset
2115
2116 ? Did you try to kludge something together with these instead of using the
2117  appropriate paragraph environment?
2118 \end_layout
2119
2120 \begin_layout Enumerate
2121 All right, you didn't use any of the fine-tuning options, you played by
2122  the rules.
2123  Did you try to pull a fancy maneuver? Did you do something funky inside
2124  a table or an equation, like inserting a graphic into a table cell?
2125 \end_layout
2126
2127 \begin_layout Enumerate
2128 Do you have long sections of text where \SpecialChar LaTeX
2129  cannot find a place to break a
2130  line? By default, \SpecialChar LaTeX
2131  is rather strict about how much extra inter-word spacing
2132  it will add in order to break a line.
2133  Preferably, you should rework the paragraph to avoid the problem.
2134 \end_layout
2135
2136 \begin_layout Enumerate
2137 Did you go overboard with the nesting? \SpecialChar LyX
2138  (currently) doesn't check to make
2139  sure you're in the limits for nesting environments.
2140  If you nested a bunch of environments to the 
2141 \begin_inset Formula $17^{\mathrm{th}}$
2142 \end_inset
2143
2144  level, that's the problem.
2145  (The limit in \SpecialChar LaTeX
2146  is five.)
2147 \end_layout
2148
2149 \begin_layout Enumerate
2150 Okay, you didn't get any error messages, but your output looks awful.
2151  If you have a table or figure that's too wide or long for the page, you
2152  need to:
2153 \end_layout
2154
2155 \begin_deeper
2156 \begin_layout Enumerate
2157 rescale the figure so it fits.
2158 \end_layout
2159
2160 \begin_layout Enumerate
2161 trim down the table so it fits.
2162 \end_layout
2163
2164 \end_deeper
2165 \begin_layout Enumerate
2166 If something else is wrong with the output, and you didn't try to pull anything
2167  fancy or kludge the fine-tuning options, we're not sure what's wrong.
2168 \end_layout
2169
2170 \begin_layout Standard
2171 If all this doesn't help—well, then 
2172 \emph on
2173 perhaps
2174 \emph default
2175  you might have found a bug in \SpecialChar LyX
2176 \SpecialChar ldots
2177 .
2178 \end_layout
2179
2180 \begin_layout Chapter
2181 Supplemental Tools
2182 \end_layout
2183
2184 \begin_layout Section
2185 Customizing Bibliographies with Bib\SpecialChar TeX
2186
2187 \change_inserted -712698321 1485694846
2188  or Biblatex
2189 \change_unchanged
2190
2191 \end_layout
2192
2193 \begin_layout Standard
2194 The most basic information about how to use Bib\SpecialChar TeX
2195  
2196 \change_inserted -712698321 1485694851
2197 or 
2198 \family sans
2199 Biblatex
2200 \family default
2201  
2202 \change_unchanged
2203 with \SpecialChar LyX
2204  is contained in the section 
2205 \emph on
2206 Bibliography databases
2207 \change_deleted -712698321 1485694823
2208  (Bib\SpecialChar TeX
2209 )
2210 \change_unchanged
2211
2212 \emph default
2213  of the 
2214 \emph on
2215 User's Guide
2216 \emph default
2217 .
2218  The following subsections explain special bibliography features supported
2219  by \SpecialChar LyX
2220 .
2221 \end_layout
2222
2223 \begin_layout Subsection
2224 Alternative Citation Styles
2225 \end_layout
2226
2227 \begin_layout Standard
2228 Standard Bib\SpecialChar TeX
2229  uses numbers (e.
2230 \begin_inset space \thinspace{}
2231 \end_inset
2232
2233 g.
2234 \begin_inset space \space{}
2235 \end_inset
2236
2237
2238 \begin_inset Quotes eld
2239 \end_inset
2240
2241 [12]
2242 \begin_inset Quotes erd
2243 \end_inset
2244
2245 ) to refer to a cited work.
2246  However, in many scientific disciplines, other citation styles are in use.
2247  The most common one is the author-year style (e.
2248 \begin_inset space \thinspace{}
2249 \end_inset
2250
2251 g.
2252 \begin_inset space \space{}
2253 \end_inset
2254
2255
2256 \begin_inset Quotes eld
2257 \end_inset
2258
2259 Knuth 1984a
2260 \begin_inset Quotes erd
2261 \end_inset
2262
2263 ).
2264  \SpecialChar LyX
2265  supports 
2266 \change_deleted -712698321 1485694902
2267 two
2268 \change_inserted -712698321 1485694902
2269 three
2270 \change_unchanged
2271  packages that provide this style,
2272 \change_inserted -712698321 1485694917
2273  
2274 \begin_inset Flex Code
2275 status collapsed
2276
2277 \begin_layout Plain Layout
2278
2279 \change_inserted -712698321 1485694917
2280 biblatex
2281 \change_unchanged
2282
2283 \end_layout
2284
2285 \end_inset
2286
2287 ,
2288 \change_unchanged
2289  
2290 \begin_inset Flex Code
2291 status collapsed
2292
2293 \begin_layout Plain Layout
2294 natbib
2295 \end_layout
2296
2297 \end_inset
2298
2299
2300 \change_inserted -712698321 1485696751
2301 ,
2302 \change_unchanged
2303  and 
2304 \begin_inset Flex Code
2305 status collapsed
2306
2307 \begin_layout Plain Layout
2308 jurabib
2309 \end_layout
2310
2311 \end_inset
2312
2313 .
2314  
2315 \change_deleted -712698321 1485695091
2316 Both
2317 \change_inserted -712698321 1485695093
2318 Each of these
2319 \change_unchanged
2320  packages ha
2321 \change_deleted -712698321 1485695095
2322 ve
2323 \change_inserted -712698321 1485695095
2324 s
2325 \change_unchanged
2326  their pros and cons, which cannot be listed in detail.
2327  If you only want to have simple author-year (or author-numerical) style,
2328  or if you want to use one of the countless style files for 
2329 \begin_inset Flex Code
2330 status collapsed
2331
2332 \begin_layout Plain Layout
2333 natbib
2334 \end_layout
2335
2336 \end_inset
2337
2338 , then the established 
2339 \begin_inset Flex Code
2340 status collapsed
2341
2342 \begin_layout Plain Layout
2343 natbib
2344 \end_layout
2345
2346 \end_inset
2347
2348  package is probably your choice.
2349  If you 
2350 \change_inserted -712698321 1485695152
2351 look for specific citation styles common in law studies
2352 \change_deleted -712698321 1485695162
2353 need special features like short title references, ibidem etc.
2354 \change_unchanged
2355 , you might consider the 
2356 \begin_inset Flex Code
2357 status collapsed
2358
2359 \begin_layout Plain Layout
2360 jurabib
2361 \end_layout
2362
2363 \end_inset
2364
2365  package.
2366
2367 \change_inserted -712698321 1485695432
2368  If you want to have full control over the formatting or look for advanced
2369  features such as ibidem, footnote citations, full title citations, advanced
2370  date formats (such as 400 BC) or full localization to other languages than
2371  English, you should definitely consider 
2372 \begin_inset Flex Code
2373 status collapsed
2374
2375 \begin_layout Plain Layout
2376
2377 \change_inserted -712698321 1485695328
2378 biblatex
2379 \end_layout
2380
2381 \end_inset
2382
2383 , which exceeds all other packages in terms of features, but is also quite
2384  heavy and more resource-hungry.
2385 \change_unchanged
2386
2387 \end_layout
2388
2389 \begin_layout Standard
2390 The handling of 
2391 \change_deleted -712698321 1485695449
2392 both
2393 \change_inserted -712698321 1485695449
2394 these
2395 \change_unchanged
2396  packages in \SpecialChar LyX
2397  is basically the same.
2398  Go to 
2399 \begin_inset Flex Noun
2400 status collapsed
2401
2402 \begin_layout Plain Layout
2403 Document\SpecialChar menuseparator
2404 Settings
2405 \end_layout
2406
2407 \end_inset
2408
2409  and select under 
2410 \begin_inset Flex Noun
2411 status collapsed
2412
2413 \begin_layout Plain Layout
2414 Bibliography
2415 \end_layout
2416
2417 \end_inset
2418
2419  
2420 \change_deleted -712698321 1485695462
2421 the option
2422 \change_inserted -712698321 1485695559
2423 the 
2424 \begin_inset Flex Noun
2425 status collapsed
2426
2427 \begin_layout Plain Layout
2428
2429 \change_inserted -712698321 1485695499
2430 Style Format
2431 \end_layout
2432
2433 \end_inset
2434
2435  
2436 \begin_inset Flex Noun
2437 status collapsed
2438
2439 \begin_layout Plain Layout
2440
2441 \change_inserted -712698321 1485695527
2442 Biblatex
2443 \end_layout
2444
2445 \end_inset
2446
2447
2448 \begin_inset Flex Noun
2449 status collapsed
2450
2451 \begin_layout Plain Layout
2452
2453 \change_inserted -712698321 1485695554
2454 Biblatex (Natbib mode)
2455 \end_layout
2456
2457 \end_inset
2458
2459 ,
2460 \change_unchanged
2461  
2462 \begin_inset Flex Noun
2463 status collapsed
2464
2465 \begin_layout Plain Layout
2466 Natbib
2467 \change_inserted -712698321 1485695505
2468  (BibTeX)
2469 \change_unchanged
2470
2471 \end_layout
2472
2473 \end_inset
2474
2475  or 
2476 \begin_inset Flex Noun
2477 status collapsed
2478
2479 \begin_layout Plain Layout
2480 Jurabib
2481 \change_inserted -712698321 1485695511
2482  (BibTeX)
2483 \change_unchanged
2484
2485 \end_layout
2486
2487 \end_inset
2488
2489
2490 \change_inserted -712698321 1485695637
2491  (see sec.
2492 \begin_inset space ~
2493 \end_inset
2494
2495 6.5.3 in the User's Guide for more information on these choices)
2496 \change_unchanged
2497 .
2498  With 
2499 \change_deleted -712698321 1485695643
2500 both
2501 \change_inserted -712698321 1485695645
2502 all these
2503 \change_unchanged
2504  packages, you will get some extra features in the citation dialog and you
2505  can select the style of the reference (
2506 \begin_inset Quotes eld
2507 \end_inset
2508
2509 Knuth 1984
2510 \begin_inset Quotes erd
2511 \end_inset
2512
2513
2514 \begin_inset Quotes eld
2515 \end_inset
2516
2517 Knuth (1984)
2518 \begin_inset Quotes erd
2519 \end_inset
2520
2521
2522 \begin_inset Quotes eld
2523 \end_inset
2524
2525 Knuth, 1984
2526 \begin_inset Quotes erd
2527 \end_inset
2528
2529
2530 \begin_inset Quotes eld
2531 \end_inset
2532
2533 1984
2534 \begin_inset Quotes erd
2535 \end_inset
2536
2537  etc.).
2538  Note that 
2539 \change_deleted -712698321 1485695659
2540 both
2541 \change_inserted -712698321 1485695660
2542 either
2543 \change_unchanged
2544  package
2545 \change_deleted -712698321 1485695663
2546 s
2547 \change_unchanged
2548  need
2549 \change_inserted -712698321 1485695664
2550 s
2551 \change_unchanged
2552  specifically designed style files.
2553  They 
2554 \change_deleted -712698321 1485695676
2555 both
2556 \change_inserted -712698321 1485695676
2557 all
2558 \change_unchanged
2559  ship their own, but there are lots of additional style files, and there
2560  is even an interactive style file builder
2561 \begin_inset Foot
2562 status collapsed
2563
2564 \begin_layout Plain Layout
2565 See 
2566 \begin_inset Flex URL
2567 status open
2568
2569 \begin_layout Plain Layout
2570
2571 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
2572 \end_layout
2573
2574 \end_inset
2575
2576
2577 \end_layout
2578
2579 \end_inset
2580
2581  for 
2582 \begin_inset Flex Code
2583 status collapsed
2584
2585 \begin_layout Plain Layout
2586 natbib
2587 \end_layout
2588
2589 \end_inset
2590
2591 .
2592 \end_layout
2593
2594 \begin_layout Subsection
2595 Sectioned Bibliographies
2596 \end_layout
2597
2598 \begin_layout Standard
2599 Sometimes you might need to divide your bibliography into several sections.
2600  If you are for instance a historian, the possibility to separate sources
2601  and scientific works is most likely a 
2602 \begin_inset Quotes eld
2603 \end_inset
2604
2605 must have
2606 \begin_inset Quotes erd
2607 \end_inset
2608
2609 .
2610  Unfortunately, Bib\SpecialChar TeX
2611  itself does not allow you to do this.
2612  But with the help of some \SpecialChar LaTeX
2613  packages, Bib\SpecialChar TeX
2614  can be extended to fit your needs.
2615 \end_layout
2616
2617 \begin_layout Standard
2618 \SpecialChar LyX
2619  provides native support for one of these packages, 
2620 \family typewriter
2621 bibtopic
2622 \family default
2623 .
2624 \begin_inset Foot
2625 status collapsed
2626
2627 \begin_layout Plain Layout
2628 Available from 
2629 \begin_inset Flex URL
2630 status open
2631
2632 \begin_layout Plain Layout
2633
2634 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
2635 \end_layout
2636
2637 \end_inset
2638
2639
2640 \end_layout
2641
2642 \end_inset
2643
2644  The advantage of this package (compared to other packages 
2645 \change_deleted -712698321 1485695727
2646 like
2647 \change_inserted -712698321 1485695729
2648 such as
2649 \change_unchanged
2650  
2651 \family typewriter
2652 multibib
2653 \family default
2654 ) is that you don't need to define new citation commands.
2655  Instead, you need to prepare different bibliographic databases which include
2656  the entries for the different sections of the bibliography.
2657  For example: If you want to divide your bibliography into the sections
2658  
2659 \begin_inset Quotes eld
2660 \end_inset
2661
2662 Sources
2663 \begin_inset Quotes erd
2664 \end_inset
2665
2666  and 
2667 \begin_inset Quotes eld
2668 \end_inset
2669
2670 Scientific works
2671 \begin_inset Quotes erd
2672 \end_inset
2673
2674 , you first need to create two bibliographic databases, e.
2675 \begin_inset space \thinspace{}
2676 \end_inset
2677
2678 g.
2679 \begin_inset space \space{}
2680 \end_inset
2681
2682
2683 \begin_inset Flex Code
2684 status collapsed
2685
2686 \begin_layout Plain Layout
2687 sources.bib
2688 \end_layout
2689
2690 \end_inset
2691
2692  and 
2693 \begin_inset Flex Code
2694 status collapsed
2695
2696 \begin_layout Plain Layout
2697 scientific.bib
2698 \end_layout
2699
2700 \end_inset
2701
2702 .
2703  
2704 \end_layout
2705
2706 \begin_layout Standard
2707 Go to 
2708 \begin_inset Flex Noun
2709 status collapsed
2710
2711 \begin_layout Plain Layout
2712 Document\SpecialChar menuseparator
2713 Settings
2714 \end_layout
2715
2716 \end_inset
2717
2718  and check under 
2719 \begin_inset Flex Noun
2720 status collapsed
2721
2722 \begin_layout Plain Layout
2723 Bibliography
2724 \end_layout
2725
2726 \end_inset
2727
2728  the option 
2729 \begin_inset Flex Noun
2730 status collapsed
2731
2732 \begin_layout Plain Layout
2733 Sectioned bibliography
2734 \end_layout
2735
2736 \end_inset
2737
2738 .
2739  Now you can insert multiple Bib\SpecialChar TeX
2740  bibliographies, one for each section of
2741  your bibliography.
2742  Returning to our example: Insert the Bib\SpecialChar TeX
2743  bibliography 
2744 \begin_inset Flex Code
2745 status collapsed
2746
2747 \begin_layout Plain Layout
2748 sources.bib
2749 \end_layout
2750
2751 \end_inset
2752
2753  and a second one for the database 
2754 \begin_inset Flex Code
2755 status collapsed
2756
2757 \begin_layout Plain Layout
2758 scientific.bib
2759 \end_layout
2760
2761 \end_inset
2762
2763 .
2764  You are free to use the same or different styles for each section.
2765  Additionally, you can choose if the bibliography section should contain
2766  
2767 \begin_inset Quotes eld
2768 \end_inset
2769
2770 all cited references
2771 \begin_inset Quotes erd
2772 \end_inset
2773
2774  of the specified database(s) (which is the default), 
2775 \begin_inset Quotes eld
2776 \end_inset
2777
2778 all uncited references
2779 \begin_inset Quotes erd
2780 \end_inset
2781
2782  or even 
2783 \begin_inset Quotes eld
2784 \end_inset
2785
2786 all references
2787 \begin_inset Quotes erd
2788 \end_inset
2789
2790 .
2791  This might be useful if you would like to separate your bibliography into
2792  three sections: 
2793 \begin_inset Quotes eld
2794 \end_inset
2795
2796 Cited sources
2797 \begin_inset Quotes erd
2798 \end_inset
2799
2800
2801 \begin_inset Quotes eld
2802 \end_inset
2803
2804 Uncited sources
2805 \begin_inset Quotes erd
2806 \end_inset
2807
2808 , and 
2809 \begin_inset Quotes eld
2810 \end_inset
2811
2812 Scientific works
2813 \begin_inset Quotes erd
2814 \end_inset
2815
2816 .
2817  The titles for the sections can be added as ordinary sections or subsections.
2818  Since 
2819 \begin_inset Flex Code
2820 status collapsed
2821
2822 \begin_layout Plain Layout
2823 bibtopic
2824 \end_layout
2825
2826 \end_inset
2827
2828  removes the bibliography title, you have to manually re-add that, too (as
2829  a chapter* or section*, for instance).
2830 \change_inserted -712698321 1485695762
2831
2832 \end_layout
2833
2834 \begin_layout Standard
2835
2836 \change_inserted -712698321 1485696667
2837 With 
2838 \family sans
2839 Biblatex
2840 \family default
2841 , the procedure is a bit different.
2842  Since 
2843 \family typewriter
2844 bibtopic
2845 \family default
2846  does not work with 
2847 \family sans
2848 Biblatex
2849 \family default
2850 , the aforementioned 
2851 \begin_inset Flex Noun
2852 status collapsed
2853
2854 \begin_layout Plain Layout
2855
2856 \change_inserted -712698321 1485695841
2857 Sectioned bibliography
2858 \end_layout
2859
2860 \end_inset
2861
2862  option is disabled if you use 
2863 \family sans
2864 Biblatex
2865 \family default
2866 .
2867  However, 
2868 \family sans
2869 Biblatex
2870 \family default
2871  provides its own means to generate sectioned bibliographies.
2872  You can either add keywords to bibliography entries via the 
2873 \begin_inset Flex Code
2874 status collapsed
2875
2876 \begin_layout Plain Layout
2877
2878 \change_inserted -712698321 1485696318
2879 keywords
2880 \change_unchanged
2881
2882 \end_layout
2883
2884 \end_inset
2885
2886  entry option and then filter bibliography sections by keyword (by adding
2887  
2888 \begin_inset Flex Code
2889 status collapsed
2890
2891 \begin_layout Plain Layout
2892
2893 \change_inserted -712698321 1485696306
2894 keyword=mykeyword
2895 \change_unchanged
2896
2897 \end_layout
2898
2899 \end_inset
2900
2901  to the 
2902 \begin_inset Flex Noun
2903 status collapsed
2904
2905 \begin_layout Plain Layout
2906
2907 \change_inserted -712698321 1485696431
2908 Options
2909 \change_unchanged
2910
2911 \end_layout
2912
2913 \end_inset
2914
2915  field of the dialog that opens if you right-click on the 
2916 \begin_inset Flex Noun
2917 status collapsed
2918
2919 \begin_layout Plain Layout
2920
2921 \change_inserted -712698321 1485696518
2922 Biblatex Generated Bibliography
2923 \change_unchanged
2924
2925 \end_layout
2926
2927 \end_inset
2928
2929  button), or you can filter by entry types (such as 
2930 \emph on
2931 book
2932 \emph default
2933  or 
2934 \emph on
2935 article
2936 \emph default
2937 ) by entering e.
2938 \begin_inset space \thinspace{}
2939 \end_inset
2940
2941 g.
2942  
2943 \begin_inset Flex Code
2944 status collapsed
2945
2946 \begin_layout Plain Layout
2947
2948 \change_inserted -712698321 1485696628
2949 type=book
2950 \end_layout
2951
2952 \end_inset
2953
2954  or 
2955 \begin_inset Flex Code
2956 status collapsed
2957
2958 \begin_layout Plain Layout
2959
2960 \change_inserted -712698321 1485696643
2961 nottype=collection
2962 \end_layout
2963
2964 \end_inset
2965
2966  to the mentioned 
2967 \begin_inset Flex Noun
2968 status collapsed
2969
2970 \begin_layout Plain Layout
2971
2972 \change_inserted -712698321 1485696667
2973 Options
2974 \end_layout
2975
2976 \end_inset
2977
2978  field, or you can create so-called 
2979 \begin_inset Quotes eld
2980 \end_inset
2981
2982 Bibliography Categories
2983 \begin_inset Quotes erd
2984 \end_inset
2985
2986  to which you can assign individual entries.
2987  Please refer to the Biblatex manual, section 
2988 \emph on
2989 Subdivided Bibliographies
2990 \emph default
2991 , for details.
2992 \change_unchanged
2993
2994 \end_layout
2995
2996 \begin_layout Subsection
2997 Multiple Bibliographies
2998 \end_layout
2999
3000 \begin_layout Standard
3001 Multiple bibliographies, e.
3002 \begin_inset space \thinspace{}
3003 \end_inset
3004
3005 g.
3006 \begin_inset space \space{}
3007 \end_inset
3008
3009 a bibliography for each section or chapter of the document, are not supported
3010  by Bib\SpecialChar TeX
3011  itself.
3012  But the 
3013 \begin_inset Flex Code
3014 status collapsed
3015
3016 \begin_layout Plain Layout
3017 bibtopic
3018 \end_layout
3019
3020 \end_inset
3021
3022  package, which is used for the creation of sectioned bibliographies in
3023  \SpecialChar LyX
3024  (see the previous section), provides an easy way to solve this task, if
3025  you are willing to use some 
3026 \begin_inset Flex Noun
3027 status collapsed
3028
3029 \begin_layout Plain Layout
3030 \SpecialChar TeX
3031  Code
3032 \end_layout
3033
3034 \end_inset
3035
3036  (see section
3037 \begin_inset space ~
3038 \end_inset
3039
3040
3041 \begin_inset CommandInset ref
3042 LatexCommand ref
3043 reference "sec:Inserting-TeX-Code"
3044
3045 \end_inset
3046
3047 ).
3048 \begin_inset Foot
3049 status collapsed
3050
3051 \begin_layout Plain Layout
3052 An alternative approach is to use the 
3053 \begin_inset Flex Code
3054 status collapsed
3055
3056 \begin_layout Plain Layout
3057 chapterbib
3058 \end_layout
3059
3060 \end_inset
3061
3062  or 
3063 \begin_inset Flex Code
3064 status collapsed
3065
3066 \begin_layout Plain Layout
3067 bibunits
3068 \end_layout
3069
3070 \end_inset
3071
3072  package, respectively.
3073 \end_layout
3074
3075 \end_inset
3076
3077
3078 \end_layout
3079
3080 \begin_layout Standard
3081 First go to 
3082 \begin_inset Flex Noun
3083 status collapsed
3084
3085 \begin_layout Plain Layout
3086 Document\SpecialChar menuseparator
3087 Settings
3088 \end_layout
3089
3090 \end_inset
3091
3092  and under 
3093 \begin_inset Flex Noun
3094 status collapsed
3095
3096 \begin_layout Plain Layout
3097 Bibliography
3098 \end_layout
3099
3100 \end_inset
3101
3102  check 
3103 \begin_inset Flex Noun
3104 status collapsed
3105
3106 \begin_layout Plain Layout
3107 Sectioned bibliography
3108 \end_layout
3109
3110 \end_inset
3111
3112 .
3113  In the document, you have to enclose the sections, which shall contain
3114  their own bibliography (including the Bib\SpecialChar TeX
3115  bibliography itself), between
3116  
3117 \begin_inset Flex Code
3118 status collapsed
3119
3120 \begin_layout Plain Layout
3121
3122 \backslash
3123 begin{btUnit}
3124 \end_layout
3125
3126 \end_inset
3127
3128  and 
3129 \begin_inset Flex Code
3130 status collapsed
3131
3132 \begin_layout Plain Layout
3133
3134 \backslash
3135 end{btUnit}
3136 \end_layout
3137
3138 \end_inset
3139
3140  (those commands have to be inserted as \SpecialChar TeX
3141  code).
3142  The bibliography will contain all references that have been cited in the
3143  current 
3144 \begin_inset Flex Code
3145 status collapsed
3146
3147 \begin_layout Plain Layout
3148 btUnit
3149 \end_layout
3150
3151 \end_inset
3152
3153 .
3154  
3155 \series bold
3156 Note:
3157 \series default
3158  If you are using this approach, then every citation reference has to be
3159  inside some 
3160 \begin_inset Flex Code
3161 status collapsed
3162
3163 \begin_layout Plain Layout
3164 btUnit
3165 \end_layout
3166
3167 \end_inset
3168
3169 .
3170  Also, the 
3171 \begin_inset Flex Code
3172 status collapsed
3173
3174 \begin_layout Plain Layout
3175 btUnit
3176 \end_layout
3177
3178 \end_inset
3179
3180 s cannot be nested.
3181 \change_inserted -712698321 1485696937
3182
3183 \end_layout
3184
3185 \begin_layout Standard
3186
3187 \change_inserted -712698321 1485698355
3188 Again, with 
3189 \family sans
3190 Biblatex
3191 \family default
3192 , the procedure differs, since 
3193 \family typewriter
3194 bibtopic
3195 \family default
3196  does not work with 
3197 \family sans
3198 Biblatex
3199 \family default
3200 .
3201  Biblatex has its own commands to get multiple bibliographies.
3202  Generally, two different ways are differentiated: 
3203 \emph on
3204 refsections
3205 \emph default
3206  are fully self-enclosed sections containing their own bibliography, 
3207 \emph on
3208 refsegments
3209 \emph default
3210  are sections that contain their own bibliography, but maintain a global
3211  numbering scheme (so that if two different 
3212 \emph on
3213 refsegments
3214 \emph default
3215  contain references to two different papers by Miller published in 2016,
3216  they will be labeled as 
3217 \begin_inset Quotes eld
3218 \end_inset
3219
3220 Miller 2016a
3221 \begin_inset Quotes erd
3222 \end_inset
3223
3224  and 
3225 \begin_inset Quotes eld
3226 \end_inset
3227
3228 Miller 2016b
3229 \begin_inset Quotes erd
3230 \end_inset
3231
3232  in an author-year scheme, while with 
3233 \emph on
3234 refsections
3235 \emph default
3236 , they will both be labeled as 
3237 \begin_inset Quotes eld
3238 \end_inset
3239
3240 Miller 2016
3241 \begin_inset Quotes erd
3242 \end_inset
3243
3244 , as the two sections are considered to be independent).
3245 \end_layout
3246
3247 \begin_layout Standard
3248
3249 \change_inserted -712698321 1485698499
3250 If you need a 
3251 \emph on
3252 refsection
3253 \emph default
3254  or 
3255 \emph on
3256 refsegment
3257 \emph default
3258  per part, chapter, section or subsection, all you have to do is to enter,
3259  respectively, 
3260 \begin_inset Flex Code
3261 status collapsed
3262
3263 \begin_layout Plain Layout
3264
3265 \change_inserted -712698321 1485697458
3266 refsection=part
3267 \change_unchanged
3268
3269 \end_layout
3270
3271 \end_inset
3272
3273
3274 \begin_inset Flex Code
3275 status collapsed
3276
3277 \begin_layout Plain Layout
3278
3279 \change_inserted -712698321 1485697463
3280 refsection=chapter
3281 \change_unchanged
3282
3283 \end_layout
3284
3285 \end_inset
3286
3287
3288 \begin_inset Flex Code
3289 status collapsed
3290
3291 \begin_layout Plain Layout
3292
3293 \change_inserted -712698321 1485697469
3294 refsection=section
3295 \change_unchanged
3296
3297 \end_layout
3298
3299 \end_inset
3300
3301  or 
3302 \begin_inset Flex Code
3303 status collapsed
3304
3305 \begin_layout Plain Layout
3306
3307 \change_inserted -712698321 1485697474
3308 refsection=subsection
3309 \change_unchanged
3310
3311 \end_layout
3312
3313 \end_inset
3314
3315  (or 
3316 \begin_inset Flex Code
3317 status collapsed
3318
3319 \begin_layout Plain Layout
3320
3321 \change_inserted -712698321 1485697532
3322 refsegment=\SpecialChar ldots
3323
3324 \change_unchanged
3325
3326 \end_layout
3327
3328 \end_inset
3329
3330  for 
3331 \emph on
3332 refsegments
3333 \emph default
3334 ) to 
3335 \begin_inset Flex Noun
3336 status collapsed
3337
3338 \begin_layout Plain Layout
3339
3340 \change_inserted -712698321 1485697573
3341 Document\SpecialChar menuseparator
3342 Settings\SpecialChar menuseparator
3343 Bibliography\SpecialChar menuseparator
3344 Options
3345 \change_unchanged
3346
3347 \end_layout
3348
3349 \end_inset
3350
3351 .
3352  If you need specific 
3353 \emph on
3354 refsections
3355 \emph default
3356  or 
3357 \emph on
3358 refsegments
3359 \emph default
3360 , you can start them with the \SpecialChar TeX
3361  code 
3362 \begin_inset Flex Code
3363 status collapsed
3364
3365 \begin_layout Plain Layout
3366
3367 \change_inserted -712698321 1485697716
3368
3369 \backslash
3370 newrefsection
3371 \change_unchanged
3372
3373 \end_layout
3374
3375 \end_inset
3376
3377  or 
3378 \begin_inset Flex Code
3379 status collapsed
3380
3381 \begin_layout Plain Layout
3382
3383 \change_inserted -712698321 1485697724
3384
3385 \backslash
3386 newrefsegment
3387 \change_unchanged
3388
3389 \end_layout
3390
3391 \end_inset
3392
3393 , respectively.
3394  If you also want to control the end of the section\SpecialChar breakableslash
3395 segment, use the environment
3396  
3397 \begin_inset Flex Code
3398 status collapsed
3399
3400 \begin_layout Plain Layout
3401
3402 \change_inserted -712698321 1485697769
3403
3404 \backslash
3405 begin{refsection}
3406 \end_layout
3407
3408 \end_inset
3409
3410  \SpecialChar ldots
3411  
3412 \begin_inset Flex Code
3413 status collapsed
3414
3415 \begin_layout Plain Layout
3416
3417 \change_inserted -712698321 1485697780
3418
3419 \backslash
3420 end{refsection}
3421 \end_layout
3422
3423 \end_inset
3424
3425  or 
3426 \begin_inset Flex Code
3427 status collapsed
3428
3429 \begin_layout Plain Layout
3430
3431 \change_inserted -712698321 1485697791
3432
3433 \backslash
3434 begin{refsegment}
3435 \end_layout
3436
3437 \end_inset
3438
3439  \SpecialChar ldots
3440  
3441 \begin_inset Flex Code
3442 status collapsed
3443
3444 \begin_layout Plain Layout
3445
3446 \change_inserted -712698321 1485697797
3447
3448 \backslash
3449 end{refsegment}
3450 \end_layout
3451
3452 \end_inset
3453
3454  instead.
3455 \end_layout
3456
3457 \begin_layout Standard
3458
3459 \change_inserted -712698321 1485698580
3460 In order to actually output the bibliography of the respective section or
3461  segment, simply insert it at the place where it should appear via 
3462 \family sans
3463 Insert\SpecialChar menuseparator
3464 List
3465 \family default
3466 /
3467 \family sans
3468 TOC\SpecialChar menuseparator
3469 Bib(la)TeX
3470 \begin_inset space ~
3471 \end_inset
3472
3473 Bibliography
3474 \family default
3475  (within the given 
3476 \emph on
3477 refsection
3478 \emph default
3479  or 
3480 \emph on
3481 refsegment
3482 \emph default
3483 ).
3484  If you want to output all 
3485 \emph on
3486 refsections
3487 \emph default
3488  or 
3489 \emph on
3490 refsegments
3491 \emph default
3492  at one place (e.
3493 \begin_inset space \thinspace{}
3494 \end_inset
3495
3496 g., at the end of the document), 
3497 \family sans
3498 Biblatex
3499 \family default
3500  provides the commands 
3501 \begin_inset Flex Code
3502 status collapsed
3503
3504 \begin_layout Plain Layout
3505
3506 \change_inserted -712698321 1485698571
3507
3508 \backslash
3509 bibbysection
3510 \change_unchanged
3511
3512 \end_layout
3513
3514 \end_inset
3515
3516  and 
3517 \begin_inset Flex Code
3518 status collapsed
3519
3520 \begin_layout Plain Layout
3521
3522 \change_inserted -712698321 1485698580
3523
3524 \backslash
3525 bibbysegment
3526 \change_unchanged
3527
3528 \end_layout
3529
3530 \end_inset
3531
3532  which automatically loop over all sections/segments and output them subsequentl
3533 y.
3534  Currently, these commands need to be entered as \SpecialChar TeX
3535  code in \SpecialChar LyX
3536 .
3537  Please refer to the 
3538 \family sans
3539 Biblatex
3540 \family default
3541  manual for more information on this topic.
3542 \change_unchanged
3543
3544 \end_layout
3545
3546 \begin_layout Section
3547 Multipart Documents
3548 \end_layout
3549
3550 \begin_layout Subsection
3551 General Operation
3552 \end_layout
3553
3554 \begin_layout Standard
3555 When you are working on a large file with many sections, it is often convenient
3556  to break up the document into several files, or perhaps you have something
3557  where a table may change from time to time, but the preceding text does
3558  not.
3559  In these cases, you should seriously consider using multipart documents.
3560  For example, scientific papers often have five major sections: the introduction
3561 , observations, results, discussion, and conclusion.
3562  Each of these could be its own separate \SpecialChar LyX
3563  file, with one 
3564 \begin_inset Quotes eld
3565 \end_inset
3566
3567 master
3568 \begin_inset Quotes erd
3569 \end_inset
3570
3571  file which contains the title, authors, abstract, references, etc., plus
3572  the five included files.
3573  It is important to note that each of these files is a full \SpecialChar LyX
3574  file which
3575  can be formatted and printed on its own, as well as included in a master
3576  file.
3577  Each of these files must have the same document class, however—don't attempt
3578  to mix book classes with article classes.
3579  You may also include \SpecialChar LaTeX
3580  files; however, these files must not have their own
3581  preamble (i.
3582 \begin_inset space \thinspace{}
3583 \end_inset
3584
3585 e.
3586 \begin_inset space \space{}
3587 \end_inset
3588
3589 everything up to and including the 
3590 \begin_inset Flex Code
3591 status collapsed
3592
3593 \begin_layout Plain Layout
3594
3595 \backslash
3596 begin{document}
3597 \end_layout
3598
3599 \end_inset
3600
3601  line as well as the 
3602 \begin_inset Flex Code
3603 status collapsed
3604
3605 \begin_layout Plain Layout
3606
3607 \backslash
3608 end{document}
3609 \end_layout
3610
3611 \end_inset
3612
3613  line must be deleted) or else errors will be generated when you try to
3614  make a DVI file.
3615 \end_layout
3616
3617 \begin_layout Standard
3618 \SpecialChar LyX
3619  allows you to include files quite easily with 
3620 \begin_inset Flex Noun
3621 status collapsed
3622
3623 \begin_layout Plain Layout
3624 Insert\SpecialChar menuseparator
3625 ChiId
3626 \begin_inset space ~
3627 \end_inset
3628
3629 Document
3630 \end_layout
3631
3632 \end_inset
3633
3634 .
3635  When you click on this selection a small box is inserted into the file
3636  at the current cursor location.
3637  Clicking on the box raises a dialog which allows you to select the file
3638  to be included, and the method of its inclusion.
3639  
3640 \end_layout
3641
3642 \begin_layout Standard
3643 The file selection box should by now be obvious.
3644  The three inclusion methods are 
3645 \begin_inset Quotes eld
3646 \end_inset
3647
3648 include
3649 \begin_inset Quotes erd
3650 \end_inset
3651
3652
3653 \begin_inset Quotes eld
3654 \end_inset
3655
3656 input
3657 \begin_inset Quotes erd
3658 \end_inset
3659
3660 , and 
3661 \begin_inset Quotes eld
3662 \end_inset
3663
3664 verbatim
3665 \begin_inset Quotes erd
3666 \end_inset
3667
3668 .
3669  The difference between 
3670 \begin_inset Quotes eld
3671 \end_inset
3672
3673 include
3674 \begin_inset Quotes erd
3675 \end_inset
3676
3677  and 
3678 \begin_inset Quotes eld
3679 \end_inset
3680
3681 input
3682 \begin_inset Quotes erd
3683 \end_inset
3684
3685  is really only meaningful to \SpecialChar LaTeX
3686 perts, but the practical difference is that
3687  files that are 
3688 \begin_inset Quotes eld
3689 \end_inset
3690
3691 included
3692 \begin_inset Quotes erd
3693 \end_inset
3694
3695  are typeset beginning on a new page, while files that are 
3696 \begin_inset Quotes eld
3697 \end_inset
3698
3699 inputted
3700 \begin_inset Quotes erd
3701 \end_inset
3702
3703  are typeset starting on the current page.
3704 \end_layout
3705
3706 \begin_layout Standard
3707 Generally, the master file is converted into a full \SpecialChar LaTeX
3708  file before typesetting,
3709  while the included files are converted to \SpecialChar LaTeX
3710  files that do not have all the
3711  preamble information.
3712 \end_layout
3713
3714 \begin_layout Standard
3715
3716 \begin_inset Quotes eld
3717 \end_inset
3718
3719 verbatim
3720 \begin_inset Quotes erd
3721 \end_inset
3722
3723  included file allows you to include a file typeset exactly as it appears
3724  in the file, i.
3725 \begin_inset space \thinspace{}
3726 \end_inset
3727
3728 e.
3729 \begin_inset space \space{}
3730 \end_inset
3731
3732 in 
3733 \begin_inset Flex Code
3734 status collapsed
3735
3736 \begin_layout Plain Layout
3737 verbatim
3738 \end_layout
3739
3740 \end_inset
3741
3742  mode, with the characters set in a fixed-width typewriter font.
3743  Normally, spaces in this file are invisible, though two consecutive spaces
3744  are conserved, unlike \SpecialChar LyX
3745 's normal treatment of spaces.
3746  However, setting the 
3747 \begin_inset Flex Noun
3748 status collapsed
3749
3750 \begin_layout Plain Layout
3751 Mark
3752 \begin_inset space ~
3753 \end_inset
3754
3755 spaces
3756 \begin_inset space ~
3757 \end_inset
3758
3759 in
3760 \begin_inset space ~
3761 \end_inset
3762
3763 output
3764 \end_layout
3765
3766 \end_inset
3767
3768  checkbox typesets a mark to unambiguously define the presence of a space.
3769  
3770 \end_layout
3771
3772 \begin_layout Subsection
3773 Cross-References Between Files
3774 \end_layout
3775
3776 \begin_layout Standard
3777 \begin_inset Box Shadowbox
3778 position "t"
3779 hor_pos "c"
3780 has_inner_box 1
3781 inner_pos "t"
3782 use_parbox 0
3783 use_makebox 0
3784 width "100col%"
3785 special "none"
3786 height "1in"
3787 height_special "totalheight"
3788 thickness "0.4pt"
3789 separation "3pt"
3790 shadowsize "4pt"
3791 framecolor "black"
3792 backgroundcolor "none"
3793 status open
3794
3795 \begin_layout Plain Layout
3796 This section is somewhat out of date.
3797  Need to describe default master documents and how children are opened when
3798  the master is.
3799  [[FIXME]]
3800 \end_layout
3801
3802 \end_inset
3803
3804
3805 \end_layout
3806
3807 \begin_layout Standard
3808 It is possible to set up cross-references between the different files.
3809  First, open all the files in question: let's call them A and B in a two
3810  file example, where B is included in A.
3811  Let's say you insert a label in A, then want to reference it in B.
3812  Open the cross-reference dialog whilst in document B, and you can select
3813  the 
3814 \begin_inset Quotes eld
3815 \end_inset
3816
3817 buffer
3818 \begin_inset Quotes erd
3819 \end_inset
3820
3821  to use.
3822 \end_layout
3823
3824 \begin_layout Subsection
3825 Bibliography Lists in all Subdocuments
3826 \end_layout
3827
3828 \begin_layout Standard
3829 \begin_inset Box Frameless
3830 position "t"
3831 hor_pos "c"
3832 has_inner_box 1
3833 inner_pos "t"
3834 use_parbox 0
3835 use_makebox 0
3836 width "100col%"
3837 special "none"
3838 height "1in"
3839 height_special "totalheight"
3840 thickness "0.4pt"
3841 separation "3pt"
3842 shadowsize "4pt"
3843 framecolor "black"
3844 backgroundcolor "none"
3845 status open
3846
3847 \begin_layout Plain Layout
3848 This section also needs updating.
3849  There is now material about this on the wiki, and it could be copied here.
3850 \end_layout
3851
3852 \end_inset
3853
3854
3855 \end_layout
3856
3857 \begin_layout Standard
3858 Copy the bibliography list with all entries to all subdocuments and transform
3859  them to a comment.
3860  This way \SpecialChar LyX
3861  will find the 
3862 \begin_inset Flex Code
3863 status collapsed
3864
3865 \begin_layout Plain Layout
3866 .bib
3867 \end_layout
3868
3869 \end_inset
3870
3871 -files and you can easily insert references without making the bibliography
3872  list visible.
3873 \end_layout
3874
3875 \begin_layout Standard
3876 As the bibliography list is in a comment, \SpecialChar LaTeX
3877  won't use it and the references
3878  will look like this: [?], instead of like this: [1].
3879  One solution is to use the \SpecialChar LaTeX
3880 -package 
3881 \begin_inset Flex Code
3882 status collapsed
3883
3884 \begin_layout Plain Layout
3885 comment
3886 \end_layout
3887
3888 \end_inset
3889
3890  that will only include comments by processing the files separately.
3891  To do this, add in the \SpecialChar LaTeX
3892  preamble of every subdocument the following:
3893 \end_layout
3894
3895 \begin_layout LyX-Code
3896
3897 \backslash
3898 usepackage{comment}
3899 \end_layout
3900
3901 \begin_layout LyX-Code
3902
3903 \backslash
3904 includecomment{comment}
3905 \end_layout
3906
3907 \begin_layout Standard
3908 See also 
3909 \begin_inset Flex URL
3910 status collapsed
3911
3912 \begin_layout Plain Layout
3913
3914 http://wiki.lyx.org/FAQ/Unsorted#toc31
3915 \end_layout
3916
3917 \end_inset
3918
3919 .
3920 \end_layout
3921
3922 \begin_layout Section
3923 \SpecialChar LyX
3924  Archives
3925 \end_layout
3926
3927 \begin_layout Standard
3928 Users sometimes need to be able to 
3929 \begin_inset Quotes eld
3930 \end_inset
3931
3932 bundle
3933 \begin_inset Quotes erd
3934 \end_inset
3935
3936  a \SpecialChar LyX
3937  file together with all the images (and other files) on which it depends,
3938  either for sending to a publisher or for sharing with a co-author.
3939  \SpecialChar LyX
3940  2.0 includes a Python script (
3941 \begin_inset Flex Code
3942 status collapsed
3943
3944 \begin_layout Plain Layout
3945 lyxpak.py
3946 \end_layout
3947
3948 \end_inset
3949
3950 ) that automates this process.
3951  To use it, you must have either the 
3952 \begin_inset Flex Code
3953 status collapsed
3954
3955 \begin_layout Plain Layout
3956 zipfile
3957 \end_layout
3958
3959 \end_inset
3960
3961  or 
3962 \begin_inset Flex Code
3963 status collapsed
3964
3965 \begin_layout Plain Layout
3966 tarfile
3967 \end_layout
3968
3969 \end_inset
3970
3971  python modules installed on your system.
3972  By default, the script prefers the 
3973 \begin_inset Flex Code
3974 status collapsed
3975
3976 \begin_layout Plain Layout
3977 gzip
3978 \end_layout
3979
3980 \end_inset
3981
3982 -compressed 
3983 \begin_inset Flex Code
3984 status collapsed
3985
3986 \begin_layout Plain Layout
3987 tar
3988 \end_layout
3989
3990 \end_inset
3991
3992  format on Unix-like systems and the 
3993 \begin_inset Flex Code
3994 status collapsed
3995
3996 \begin_layout Plain Layout
3997 zip
3998 \end_layout
3999
4000 \end_inset
4001
4002  format on Windows.
4003 \end_layout
4004
4005 \begin_layout Standard
4006 \SpecialChar LyX
4007 's configuration process will set the script up to export a `\SpecialChar LyX
4008  Archive',
4009  and this format will then be available under 
4010 \begin_inset Flex Code
4011 status collapsed
4012
4013 \begin_layout Plain Layout
4014 File\SpecialChar menuseparator
4015 Export
4016 \end_layout
4017
4018 \end_inset
4019
4020 .
4021 \end_layout
4022
4023 \begin_layout Standard
4024 Independently of the platform, the generation of a particular archive format
4025  can be forced by adding either the 
4026 \begin_inset Flex Code
4027 status collapsed
4028
4029 \begin_layout Plain Layout
4030 -t
4031 \end_layout
4032
4033 \end_inset
4034
4035  (for the 
4036 \begin_inset Flex Code
4037 status collapsed
4038
4039 \begin_layout Plain Layout
4040 tar
4041 \end_layout
4042
4043 \end_inset
4044
4045  format) or 
4046 \begin_inset Flex Code
4047 status collapsed
4048
4049 \begin_layout Plain Layout
4050 -z
4051 \end_layout
4052
4053 \end_inset
4054
4055  (for the 
4056 \begin_inset Flex Code
4057 status collapsed
4058
4059 \begin_layout Plain Layout
4060 zip
4061 \end_layout
4062
4063 \end_inset
4064
4065  format) switch to the 
4066 \begin_inset Flex Code
4067 status collapsed
4068
4069 \begin_layout Plain Layout
4070 \SpecialChar LyX
4071 \SpecialChar menuseparator
4072 \SpecialChar LyX
4073  Archive
4074 \end_layout
4075
4076 \end_inset
4077
4078  converter in 
4079 \begin_inset Flex Code
4080 status collapsed
4081
4082 \begin_layout Plain Layout
4083 Tools\SpecialChar menuseparator
4084 Preferences\SpecialChar menuseparator
4085 File Handling\SpecialChar menuseparator
4086 Converters
4087 \end_layout
4088
4089 \end_inset
4090
4091 .
4092  (Make sure you add the switch after the script name, not before it.)
4093 \end_layout
4094
4095 \begin_layout Section
4096 Fancy Headers and Footers
4097 \end_layout
4098
4099 \begin_layout Standard
4100 The default page layout is rather plain; for an 
4101 \begin_inset Flex Code
4102 status collapsed
4103
4104 \begin_layout Plain Layout
4105 article
4106 \end_layout
4107
4108 \end_inset
4109
4110  document class, all you get is a centered page number at the bottom of
4111  the page.
4112  This document uses KOMA-script's book class, so it appears to be a bit
4113  fancier.
4114  But to really put on a show, you need to set the document page style to
4115  
4116 \begin_inset Quotes eld
4117 \end_inset
4118
4119 fancy
4120 \begin_inset Quotes erd
4121 \end_inset
4122
4123 , as mentioned in the 
4124 \emph on
4125 User Guide
4126 \emph default
4127 .
4128  This section describes the \SpecialChar LaTeX
4129  code you need to insert in your \SpecialChar LaTeX
4130  preamble in
4131  order to get the desired effects.
4132 \end_layout
4133
4134 \begin_layout Standard
4135 For more information on fancy headers, see the 
4136 \begin_inset Flex Code
4137 status collapsed
4138
4139 \begin_layout Plain Layout
4140 fancyhdr
4141 \end_layout
4142
4143 \end_inset
4144
4145  package documentation.
4146  (
4147 \begin_inset Flex URL
4148 status collapsed
4149
4150 \begin_layout Plain Layout
4151
4152 http://www.ctan.org/tex-archive/help/Catalogue/entries/fancyhdr.html
4153 \end_layout
4154
4155 \end_inset
4156
4157 )
4158 \end_layout
4159
4160 \begin_layout Standard
4161 The page header is divided into three fields, not surprisingly labeled 
4162 \begin_inset Quotes eld
4163 \end_inset
4164
4165 left
4166 \begin_inset Quotes erd
4167 \end_inset
4168
4169
4170 \begin_inset Quotes eld
4171 \end_inset
4172
4173 center
4174 \begin_inset Quotes erd
4175 \end_inset
4176
4177 , and 
4178 \begin_inset Quotes eld
4179 \end_inset
4180
4181 right
4182 \begin_inset Quotes erd
4183 \end_inset
4184
4185 .
4186  The footer is also divided into these three fields.
4187  The \SpecialChar LaTeX
4188  commands to set these fields in the simplest manner are 
4189 \begin_inset Flex Code
4190 status collapsed
4191
4192 \begin_layout Plain Layout
4193
4194 \backslash
4195 lhead
4196 \end_layout
4197
4198 \end_inset
4199
4200
4201 \begin_inset Flex Code
4202 status collapsed
4203
4204 \begin_layout Plain Layout
4205
4206 \backslash
4207 chead
4208 \end_layout
4209
4210 \end_inset
4211
4212
4213 \begin_inset Flex Code
4214 status collapsed
4215
4216 \begin_layout Plain Layout
4217
4218 \backslash
4219 rhead
4220 \end_layout
4221
4222 \end_inset
4223
4224
4225 \begin_inset Flex Code
4226 status collapsed
4227
4228 \begin_layout Plain Layout
4229
4230 \backslash
4231 lfoot
4232 \end_layout
4233
4234 \end_inset
4235
4236 , etc.
4237  Suppose you wish to put your name in the upper left hand corner of each
4238  page.
4239  Simply insert the following command in the preamble: 
4240 \end_layout
4241
4242 \begin_layout Standard
4243
4244 \family typewriter
4245
4246 \backslash
4247 lhead{John Q.
4248  DocWriter}
4249 \end_layout
4250
4251 \begin_layout Standard
4252 You will now see your name in the upper left.
4253  If a field has a default entry that you would like to get rid of (often
4254  the page number appears in the central footer) simply include a command
4255  with a blank argument, e.
4256 \begin_inset space \thinspace{}
4257 \end_inset
4258
4259 g.:
4260 \end_layout
4261
4262 \begin_layout Standard
4263
4264 \family typewriter
4265
4266 \backslash
4267 cfoot{}
4268 \end_layout
4269
4270 \begin_layout Standard
4271 Let's get really fancy: lets put the section number with the word 
4272 \begin_inset Quotes eld
4273 \end_inset
4274
4275 Section
4276 \begin_inset Quotes erd
4277 \end_inset
4278
4279  (e.
4280 \begin_inset space \thinspace{}
4281 \end_inset
4282
4283 g.
4284 \begin_inset space \space{}
4285 \end_inset
4286
4287 Section 3) in the upper left, the page number (e.
4288 \begin_inset space \thinspace{}
4289 \end_inset
4290
4291 g.
4292 \begin_inset space \space{}
4293 \end_inset
4294
4295 Page 4) in the upper right, your name in the lower left, and the date in
4296  the lower right.
4297  The following commands should now appear in the preamble:
4298 \end_layout
4299
4300 \begin_layout Standard
4301
4302 \family typewriter
4303
4304 \backslash
4305 lhead{Section 
4306 \backslash
4307 thesection}
4308 \end_layout
4309
4310 \begin_layout Standard
4311
4312 \family typewriter
4313
4314 \backslash
4315 chead{}
4316 \end_layout
4317
4318 \begin_layout Standard
4319
4320 \family typewriter
4321
4322 \backslash
4323 rhead{Page 
4324 \backslash
4325 thepage}
4326 \end_layout
4327
4328 \begin_layout Standard
4329
4330 \family typewriter
4331
4332 \backslash
4333 lfoot{John Q.
4334  DocWriter}
4335 \end_layout
4336
4337 \begin_layout Standard
4338
4339 \family typewriter
4340
4341 \backslash
4342 cfoot{}
4343 \end_layout
4344
4345 \begin_layout Standard
4346
4347 \family typewriter
4348
4349 \backslash
4350 rfoot{
4351 \backslash
4352 today}
4353 \end_layout
4354
4355 \begin_layout Standard
4356 The commands 
4357 \begin_inset Flex Code
4358 status collapsed
4359
4360 \begin_layout Plain Layout
4361
4362 \backslash
4363 thesection
4364 \end_layout
4365
4366 \end_inset
4367
4368  and 
4369 \begin_inset Flex Code
4370 status collapsed
4371
4372 \begin_layout Plain Layout
4373
4374 \backslash
4375 thepage
4376 \end_layout
4377
4378 \end_inset
4379
4380  access \SpecialChar LaTeX
4381 's section and page counters, and so print out the current section
4382  and page numbers.
4383  
4384 \begin_inset Flex Code
4385 status collapsed
4386
4387 \begin_layout Plain Layout
4388
4389 \backslash
4390 today
4391 \end_layout
4392
4393 \end_inset
4394
4395  simply prints out today's date.
4396 \end_layout
4397
4398 \begin_layout Standard
4399 The thicknesses of the horizontal rules drawn beneath the header and above
4400  the footer can also be modified.
4401  If you don't want one of the rules, set its thickness to 0.
4402  The header rule has a default thickness of 0.4pt, the footer rule is 0pt.
4403  Use commands
4404 \family typewriter
4405  
4406 \family default
4407 like 
4408 \begin_inset Flex Code
4409 status collapsed
4410
4411 \begin_layout Plain Layout
4412
4413 \backslash
4414 renewcommand{
4415 \backslash
4416 headrulewidth}{0.4pt}
4417 \end_layout
4418
4419 \end_inset
4420
4421  and 
4422 \begin_inset Flex Code
4423 status collapsed
4424
4425 \begin_layout Plain Layout
4426
4427 \backslash
4428 renewcommand{
4429 \backslash
4430 footrulewidth}{0.4pt}
4431 \end_layout
4432
4433 \end_inset
4434
4435  to set the thicknesses.
4436 \end_layout
4437
4438 \begin_layout Standard
4439 You can switch the header/footer settings on and off for individual pages
4440  using commands like 
4441 \begin_inset Flex Code
4442 status collapsed
4443
4444 \begin_layout Plain Layout
4445
4446 \backslash
4447 thispagestyle{empty}
4448 \end_layout
4449
4450 \end_inset
4451
4452
4453 \begin_inset Flex Code
4454 status collapsed
4455
4456 \begin_layout Plain Layout
4457
4458 \backslash
4459 thispagestyle{plain}
4460 \end_layout
4461
4462 \end_inset
4463
4464 , and 
4465 \begin_inset Flex Code
4466 status collapsed
4467
4468 \begin_layout Plain Layout
4469
4470 \backslash
4471 thispagestyle{fancy}
4472 \end_layout
4473
4474 \end_inset
4475
4476 .
4477  Simply insert them in the text on the page you want changed and mark them
4478  as \SpecialChar TeX
4479  code.
4480  In fact, title pages are marked as plain by default, while following pages
4481  are marked fancy when using the global fancy setting.
4482 \end_layout
4483
4484 \begin_layout Standard
4485 As a final example, it is possible to include an image in the header or
4486  footer.
4487  Suppose you want to put a company logo in the upper lefthand corner.
4488  You might try something like
4489 \end_layout
4490
4491 \begin_layout Standard
4492
4493 \family typewriter
4494
4495 \backslash
4496 lhead{
4497 \backslash
4498 resizebox{1in}{!}{
4499 \backslash
4500 includegraphics{logo.eps}}}
4501 \end_layout
4502
4503 \begin_layout Standard
4504 \noindent
4505 (you may need to preface this with 
4506 \begin_inset Flex Code
4507 status collapsed
4508
4509 \begin_layout Plain Layout
4510 \noindent
4511
4512 \backslash
4513 usepackage{graphics}
4514 \end_layout
4515
4516 \end_inset
4517
4518  if you don't include graphics elsewhere in your document).
4519 \end_layout
4520
4521 \begin_layout Section
4522 Itemize Bullet Selection
4523 \begin_inset CommandInset label
4524 LatexCommand label
4525 name "sec:bullet"
4526
4527 \end_inset
4528
4529
4530 \end_layout
4531
4532 \begin_layout Standard
4533 by
4534 \noun on
4535  Allan Rae
4536 \end_layout
4537
4538 \begin_layout Subsection
4539 Introduction
4540 \end_layout
4541
4542 \begin_layout Standard
4543 \SpecialChar LyX
4544  provides 216 bullet shapes that can be accessed from a simple dialog.
4545  Using this dialog you can easily specify what bullet shape to use at each
4546  level of an itemized list.
4547  These settings are document-wide so you won't be able to specify different
4548  sets of bullets for different paragraphs.
4549 \begin_inset Foot
4550 status collapsed
4551
4552 \begin_layout Plain Layout
4553 Well, actually you can but you'll have to do it by hand.
4554 \end_layout
4555
4556 \end_inset
4557
4558
4559 \end_layout
4560
4561 \begin_layout Subsection
4562 How it looks
4563 \end_layout
4564
4565 \begin_layout Standard
4566 Open the dialog by selecting the 
4567 \begin_inset Flex Noun
4568 status collapsed
4569
4570 \begin_layout Plain Layout
4571 Document\SpecialChar menuseparator
4572 Settings
4573 \end_layout
4574
4575 \end_inset
4576
4577  menu item and then select the 
4578 \begin_inset Flex Noun
4579 status collapsed
4580
4581 \begin_layout Plain Layout
4582 Bullets
4583 \end_layout
4584
4585 \end_inset
4586
4587  tab.
4588 \end_layout
4589
4590 \begin_layout Standard
4591 The dialog provides you with a table of bullet shapes.
4592  A column of buttons on the left of the table provides access to the six
4593  different panels of bullet shapes.
4594  The row of buttons across the top is used to select which bullet depth
4595  you are changing.
4596  A text entry under the table shows the currently selected bullet shape's
4597  \SpecialChar LaTeX
4598  equivalent and this can be edited if desired.
4599  If you do modify the text you will also need to specify any needed packages
4600  in the \SpecialChar LaTeX
4601  preamble.
4602 \end_layout
4603
4604 \begin_layout Standard
4605 The six panels are divided up by the packages they require.
4606  The following table shows the mappings from button name to \SpecialChar LaTeX
4607  package.
4608 \end_layout
4609
4610 \begin_layout Standard
4611 \align center
4612 \begin_inset Tabular
4613 <lyxtabular version="3" rows="7" columns="2">
4614 <features tabularvalignment="middle">
4615 <column alignment="center" valignment="top" width="0pt">
4616 <column alignment="center" valignment="top" width="0pt">
4617 <row>
4618 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4619 \begin_inset Text
4620
4621 \begin_layout Plain Layout
4622
4623 \family roman
4624 \series medium
4625 \shape up
4626 \size normal
4627 \emph off
4628 \bar no
4629 \noun off
4630 \color none
4631 Button
4632 \end_layout
4633
4634 \end_inset
4635 </cell>
4636 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4637 \begin_inset Text
4638
4639 \begin_layout Plain Layout
4640
4641 \family roman
4642 \series medium
4643 \shape up
4644 \size normal
4645 \emph off
4646 \bar no
4647 \noun off
4648 \color none
4649 Packages Required
4650 \end_layout
4651
4652 \end_inset
4653 </cell>
4654 </row>
4655 <row>
4656 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4657 \begin_inset Text
4658
4659 \begin_layout Plain Layout
4660
4661 \family sans
4662 \series medium
4663 \shape up
4664 \size normal
4665 \emph off
4666 \bar no
4667 \noun off
4668 \color none
4669 Standard
4670 \end_layout
4671
4672 \end_inset
4673 </cell>
4674 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4675 \begin_inset Text
4676
4677 \begin_layout Plain Layout
4678
4679 \series medium
4680 \shape up
4681 \size normal
4682 \emph off
4683 \bar no
4684 \noun off
4685 \color none
4686 base \SpecialChar LaTeX
4687
4688 \end_layout
4689
4690 \end_inset
4691 </cell>
4692 </row>
4693 <row>
4694 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4695 \begin_inset Text
4696
4697 \begin_layout Plain Layout
4698
4699 \family sans
4700 \series medium
4701 \shape up
4702 \size normal
4703 \emph off
4704 \bar no
4705 \noun off
4706 \color none
4707 Maths
4708 \end_layout
4709
4710 \end_inset
4711 </cell>
4712 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4713 \begin_inset Text
4714
4715 \begin_layout Plain Layout
4716
4717 \family typewriter
4718 \series medium
4719 \shape up
4720 \size normal
4721 \emph off
4722 \bar no
4723 \noun off
4724 \color none
4725 amssymb.sty
4726 \end_layout
4727
4728 \end_inset
4729 </cell>
4730 </row>
4731 <row>
4732 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4733 \begin_inset Text
4734
4735 \begin_layout Plain Layout
4736
4737 \family sans
4738 \series medium
4739 \shape up
4740 \size normal
4741 \emph off
4742 \bar no
4743 \noun off
4744 \color none
4745 Ding1
4746 \end_layout
4747
4748 \end_inset
4749 </cell>
4750 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4751 \begin_inset Text
4752
4753 \begin_layout Plain Layout
4754
4755 \family typewriter
4756 \series medium
4757 \shape up
4758 \size normal
4759 \emph off
4760 \bar no
4761 \noun off
4762 \color none
4763 pifont.sty
4764 \end_layout
4765
4766 \end_inset
4767 </cell>
4768 </row>
4769 <row>
4770 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4771 \begin_inset Text
4772
4773 \begin_layout Plain Layout
4774
4775 \family sans
4776 \series medium
4777 \shape up
4778 \size normal
4779 \emph off
4780 \bar no
4781 \noun off
4782 \color none
4783 Ding2
4784 \end_layout
4785
4786 \end_inset
4787 </cell>
4788 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4789 \begin_inset Text
4790
4791 \begin_layout Plain Layout
4792
4793 \family typewriter
4794 \series medium
4795 \shape up
4796 \size normal
4797 \emph off
4798 \bar no
4799 \noun off
4800 \color none
4801 pifont.sty
4802 \end_layout
4803
4804 \end_inset
4805 </cell>
4806 </row>
4807 <row>
4808 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4809 \begin_inset Text
4810
4811 \begin_layout Plain Layout
4812
4813 \family sans
4814 \series medium
4815 \shape up
4816 \size normal
4817 \emph off
4818 \bar no
4819 \noun off
4820 \color none
4821 Ding3
4822 \end_layout
4823
4824 \end_inset
4825 </cell>
4826 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4827 \begin_inset Text
4828
4829 \begin_layout Plain Layout
4830
4831 \family typewriter
4832 \series medium
4833 \shape up
4834 \size normal
4835 \emph off
4836 \bar no
4837 \noun off
4838 \color none
4839 pifont.sty
4840 \end_layout
4841
4842 \end_inset
4843 </cell>
4844 </row>
4845 <row>
4846 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4847 \begin_inset Text
4848
4849 \begin_layout Plain Layout
4850
4851 \family sans
4852 \series medium
4853 \shape up
4854 \size normal
4855 \emph off
4856 \bar no
4857 \noun off
4858 \color none
4859 Ding4
4860 \end_layout
4861
4862 \end_inset
4863 </cell>
4864 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4865 \begin_inset Text
4866
4867 \begin_layout Plain Layout
4868
4869 \family typewriter
4870 \series medium
4871 \shape up
4872 \size normal
4873 \emph off
4874 \bar no
4875 \noun off
4876 \color none
4877 pifont.sty
4878 \end_layout
4879
4880 \end_inset
4881 </cell>
4882 </row>
4883 </lyxtabular>
4884
4885 \end_inset
4886
4887
4888 \end_layout
4889
4890 \begin_layout Standard
4891 \SpecialChar LyX
4892  doesn't stop you using bullets from packages you don't have.
4893  If you get errors from \SpecialChar LaTeX
4894  when you try to view or print the file, then it
4895  is likely you are missing a package.
4896 \begin_inset Foot
4897 status collapsed
4898
4899 \begin_layout Plain Layout
4900 \SpecialChar LyX
4901  doesn't restrict your use since you may be editing locally and exporting
4902  elsewhere.
4903 \end_layout
4904
4905 \end_inset
4906
4907
4908 \end_layout
4909
4910 \begin_layout Subsection
4911 How to use it
4912 \end_layout
4913
4914 \begin_layout Standard
4915 Select which bullet depth you want to change then select the bullet shape
4916  and size.
4917  Any changes will not be visible in \SpecialChar LyX
4918 , but are visible when viewing the document.
4919 \end_layout
4920
4921 \begin_layout Standard
4922 You can reset a bullet shape to the default simply by clicking your right
4923  mouse button on the appropriate bullet depth button.
4924 \begin_inset Foot
4925 status collapsed
4926
4927 \begin_layout Plain Layout
4928 If you 
4929 \emph on
4930 really
4931 \emph default
4932  want to have multiple sets of paragraphs with different sets of bullets
4933  in each, then you're going to have to get your hands dirty with \SpecialChar TeX
4934  code.
4935  The bullet selection dialog can help though because it provides you with
4936  the \SpecialChar LaTeX
4937  code for a wide range of bullet shapes.
4938  To make your own custom paragraphs you have the following options:
4939 \end_layout
4940
4941 \begin_layout Plain Layout
4942 \begin_inset ERT
4943 status open
4944
4945 \begin_layout Plain Layout
4946
4947
4948 \backslash
4949 let
4950 \backslash
4951 savelabelitemi=
4952 \backslash
4953 labelitemi
4954 \end_layout
4955
4956 \end_inset
4957
4958
4959 \end_layout
4960
4961 \begin_layout Plain Layout
4962 \begin_inset ERT
4963 status open
4964
4965 \begin_layout Plain Layout
4966
4967
4968 \backslash
4969 renewcommand
4970 \backslash
4971 labelitemi[0]{
4972 \backslash
4973 small
4974 \backslash
4975 (
4976 \backslash
4977 sharp
4978 \backslash
4979 )}
4980 \end_layout
4981
4982 \end_inset
4983
4984
4985 \end_layout
4986
4987 \begin_layout Itemize
4988 Use the \SpecialChar LaTeX
4989  command 
4990 \begin_inset Flex Code
4991 status collapsed
4992
4993 \begin_layout Plain Layout
4994
4995 \backslash
4996 renewcommand{}{}
4997 \end_layout
4998
4999 \end_inset
5000
5001  to specify a new bullet shape for a given depth.
5002  You'll also need to save the current bullet shape so you can restore it
5003  again afterwards.
5004  In this itemized list the following \SpecialChar LaTeX
5005  code was used to change the bullet
5006  used for the first depth.
5007 \end_layout
5008
5009 \begin_deeper
5010 \begin_layout LyX-Code
5011
5012 \backslash
5013 let
5014 \backslash
5015 savelabelitemi=
5016 \backslash
5017 labelitemi 
5018 \end_layout
5019
5020 \begin_layout LyX-Code
5021
5022 \backslash
5023 renewcommand
5024 \backslash
5025 labelitemi[0]{
5026 \backslash
5027 small
5028 \backslash
5029 (
5030 \backslash
5031 sharp
5032 \backslash
5033 )}
5034 \end_layout
5035
5036 \end_deeper
5037 \begin_layout Itemize
5038 Note that the itemize depth is specified in Roman numerals as part of the
5039  
5040 \family typewriter
5041
5042 \backslash
5043 labelitem
5044 \family default
5045  command.
5046 \end_layout
5047
5048 \begin_layout Itemize
5049 \begin_inset ERT
5050 status open
5051
5052 \begin_layout Plain Layout
5053
5054 [
5055 \backslash
5056 (
5057 \backslash
5058 star
5059 \backslash
5060 )]
5061 \end_layout
5062
5063 \end_inset
5064
5065  Specify each individual entry by starting each item with the bullet shape
5066  enclosed in square brackets and set as 
5067 \begin_inset Flex Noun
5068 status collapsed
5069
5070 \begin_layout Plain Layout
5071 \SpecialChar TeX
5072  Code
5073 \end_layout
5074
5075 \end_inset
5076
5077 .
5078  For example, this item was started with 
5079 \begin_inset Flex Code
5080 status collapsed
5081
5082 \begin_layout Plain Layout
5083 [
5084 \backslash
5085 (
5086 \backslash
5087 star
5088 \backslash
5089 )]
5090 \end_layout
5091
5092 \end_inset
5093
5094 .
5095 \end_layout
5096
5097 \begin_layout Plain Layout
5098 \begin_inset ERT
5099 status open
5100
5101 \begin_layout Plain Layout
5102
5103
5104 \backslash
5105 renewcommand
5106 \backslash
5107 labelitemi[0]{
5108 \backslash
5109 savelabelitemi}
5110 \end_layout
5111
5112 \end_inset
5113
5114
5115 \end_layout
5116
5117 \begin_layout Plain Layout
5118 You'll also need to revert the labelitem back to its previous setting for
5119  the global bullet shape settings to remain in effect.
5120  The way used here was:
5121 \end_layout
5122
5123 \begin_layout LyX-Code
5124
5125 \backslash
5126 renewcommand
5127 \backslash
5128 labelitemi[0]{
5129 \backslash
5130 savelabelitemi}
5131 \end_layout
5132
5133 \end_inset
5134
5135
5136 \end_layout
5137
5138 \begin_layout Chapter
5139 \SpecialChar LyX
5140  and the World Wide Web
5141 \end_layout
5142
5143 \begin_layout Standard
5144 \SpecialChar LyX
5145  has long supported the export of documents to various web-friendly formats,
5146  such as HTML.
5147  Before verson 2.0, however, HTML export was always accomplished by the use
5148  of external converters.
5149 \begin_inset Foot
5150 status collapsed
5151
5152 \begin_layout Plain Layout
5153 For details on the use of external converters with \SpecialChar LyX
5154 , see the 
5155 \emph on
5156 Converters
5157 \emph default
5158  section of the Customization manual.
5159 \end_layout
5160
5161 \end_inset
5162
5163  These fall into two large groups: there are converters that use \SpecialChar LaTeX
5164  as an
5165  intermediate format, such as 
5166 \begin_inset Flex Code
5167 status collapsed
5168
5169 \begin_layout Plain Layout
5170 htlatex
5171 \end_layout
5172
5173 \end_inset
5174
5175
5176 \begin_inset Flex Code
5177 status collapsed
5178
5179 \begin_layout Plain Layout
5180 html2latex
5181 \end_layout
5182
5183 \end_inset
5184
5185 , and 
5186 \begin_inset Flex Code
5187 status collapsed
5188
5189 \begin_layout Plain Layout
5190 plastex
5191 \end_layout
5192
5193 \end_inset
5194
5195 , relying upon \SpecialChar LyX
5196  to produce the \SpecialChar LaTeX
5197 ; and there is a converter that works directly
5198  on \SpecialChar LyX
5199  files, 
5200 \begin_inset Flex Code
5201 status collapsed
5202
5203 \begin_layout Plain Layout
5204 e\SpecialChar LyX
5205 er
5206 \end_layout
5207
5208 \end_inset
5209
5210 .
5211  All of these have different advantages and disadvantages.
5212  
5213 \end_layout
5214
5215 \begin_layout Standard
5216 The \SpecialChar LaTeX
5217 -based converters have the advantage that, in principle, they know everythin
5218 g about the exported document that \SpecialChar LaTeX
5219  does.
5220  Such converters do not care, for example, if a certain block of code was
5221  produced by \SpecialChar LyX
5222  or was Evil Red Text.
5223  These converters know about 
5224 \begin_inset Flex Code
5225 status collapsed
5226
5227 \begin_layout Plain Layout
5228 aux
5229 \end_layout
5230
5231 \end_inset
5232
5233  files, counters, and references, and can often make use of the 
5234 \begin_inset Flex Code
5235 status collapsed
5236
5237 \begin_layout Plain Layout
5238 bbl
5239 \end_layout
5240
5241 \end_inset
5242
5243  files generated by Bib\SpecialChar TeX
5244 .
5245  On the other hand, \SpecialChar LaTeX
5246  is a very hard language to parse—it is sometimes said
5247  that only \SpecialChar TeX
5248  itself understands \SpecialChar TeX
5249 —and \SpecialChar LaTeX
5250 -based converters will often choke on
5251  what seem to be quite simple constructs; complex ones can throw them completely
5252 , and as of this writing, for example, the 
5253 \emph on
5254 Embedded Objects
5255 \emph default
5256  manual will not export with 
5257 \begin_inset Flex Code
5258 status collapsed
5259
5260 \begin_layout Plain Layout
5261 htlatex
5262 \end_layout
5263
5264 \end_inset
5265
5266 , though the others will.
5267  The other issue concerns how math is handled.
5268  These converters typically convert the formulae into little pictures that
5269  are then linked from the HTML document.
5270  Since these are actually generated by \SpecialChar LaTeX
5271 , they are accurate.
5272  But they do not scale well, and just getting them to look as if they are
5273  actually meant to be in your document—so that the font sizes seem to be
5274  roughly the same—can be a challenge.
5275 \end_layout
5276
5277 \begin_layout Standard
5278 Alex Fernandez's 
5279 \begin_inset Flex Code
5280 status collapsed
5281
5282 \begin_layout Plain Layout
5283 e\SpecialChar LyX
5284 er
5285 \end_layout
5286
5287 \end_inset
5288
5289  (
5290 \begin_inset CommandInset href
5291 LatexCommand href
5292 name "http://elyxer.nongnu.org/"
5293 target "http://elyxer.nongnu.org/"
5294
5295 \end_inset
5296
5297 ) solves some of these problems.
5298  In particular, the formulae it produces scale perfectly, since it renders
5299  math using a combination of HTML and CSS rather than converting the formulae
5300  to images.
5301  But even moderately complex formula are rendered less well than with 
5302 \begin_inset Flex Code
5303 status collapsed
5304
5305 \begin_layout Plain Layout
5306 htlatex
5307 \end_layout
5308
5309 \end_inset
5310
5311 ; this reflects the limitations of HTML.
5312 \begin_inset Foot
5313 status collapsed
5314
5315 \begin_layout Plain Layout
5316 That said, 
5317 \begin_inset Flex Code
5318 status collapsed
5319
5320 \begin_layout Plain Layout
5321 e\SpecialChar LyX
5322 er
5323 \end_layout
5324
5325 \end_inset
5326
5327  can also use jsMath and MathJax for equations, but this setting is only
5328  available globally and requires one to have access to a server that runs
5329  the backend.
5330 \end_layout
5331
5332 \end_inset
5333
5334  More importantly (as of version 1.1.1, at least), 
5335 \begin_inset Flex Code
5336 status collapsed
5337
5338 \begin_layout Plain Layout
5339 e\SpecialChar LyX
5340 er
5341 \end_layout
5342
5343 \end_inset
5344
5345  has limited support for math macros and no support for user-defined paragraph
5346  or character styles.
5347  These limitations make 
5348 \begin_inset Flex Code
5349 status collapsed
5350
5351 \begin_layout Plain Layout
5352 e\SpecialChar LyX
5353 er
5354 \end_layout
5355
5356 \end_inset
5357
5358  unsuitable for many of the documents \SpecialChar LyX
5359  users produce.
5360  In principle, of course, these problems could be solved, but the \SpecialChar LyX
5361  developers
5362  have decided to follow a different path and have made \SpecialChar LyX
5363  itself capable of
5364  writing XHTML, just as it is capable of writing \SpecialChar LaTeX
5365 , DocBook, and plaintext.
5366 \end_layout
5367
5368 \begin_layout Standard
5369 As of this writing, XHTML output remains under development and should probably
5370  be regarded as 
5371 \begin_inset Quotes eld
5372 \end_inset
5373
5374 experimental
5375 \begin_inset Quotes erd
5376 \end_inset
5377
5378 .
5379 \begin_inset Foot
5380 status collapsed
5381
5382 \begin_layout Plain Layout
5383 The file 
5384 \begin_inset Flex Code
5385 status collapsed
5386
5387 \begin_layout Plain Layout
5388 development/HTML.notes
5389 \end_layout
5390
5391 \end_inset
5392
5393 , which can be found in the \SpecialChar LyX
5394  source tree or 
5395 \begin_inset CommandInset href
5396 LatexCommand href
5397 name "accessed online"
5398 target "http://www.lyx.org/trac/browser/lyxgit/development/HTML/HTML.notes?rev=master"
5399
5400 \end_inset
5401
5402 , usually contains up-to-date information about the state of XHTML output.
5403  See also the list of XHTML bugs on 
5404 \begin_inset CommandInset href
5405 LatexCommand href
5406 name "the bug tracker"
5407 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"
5408
5409 \end_inset
5410
5411 .
5412 \end_layout
5413
5414 \end_inset
5415
5416  Still, the developers have chosen this approach because it has several
5417  potential advantages over the other two.
5418 \end_layout
5419
5420 \begin_layout Standard
5421 These advantages are primarily due to the fact that the XHTML output routines,
5422  since they are part of \SpecialChar LyX
5423 , know everything \SpecialChar LyX
5424  knows about the document being
5425  exported.
5426 \begin_inset Foot
5427 status collapsed
5428
5429 \begin_layout Plain Layout
5430 Another advantage is that, since these routines are internal to \SpecialChar LyX
5431 , they are
5432  immune to changes in \SpecialChar LyX
5433 's file format, or to changes in the semantics of
5434  existing insets.
5435 \end_layout
5436
5437 \end_inset
5438
5439  So they know about the table of contents (as displayed in the outline),
5440  about the counters associated with different paragraph styles, and about
5441  user-defined styles.
5442  The XHTML output routines know what \SpecialChar LyX
5443  knows about internationalization,
5444  too, so they will output 
5445 \begin_inset Quotes eld
5446 \end_inset
5447
5448 Chapter 1
5449 \begin_inset Quotes erd
5450 \end_inset
5451
5452  or 
5453 \begin_inset Quotes eld
5454 \end_inset
5455
5456
5457 \lang ngerman
5458 Kapitel
5459 \lang english
5460  1
5461 \begin_inset Quotes erd
5462 \end_inset
5463
5464 , depending upon the language in effect at the time.
5465  
5466 \end_layout
5467
5468 \begin_layout Standard
5469 Quite generally, the output routines know what \SpecialChar LyX
5470  knows about document layout,
5471  that is, about how the document is to be rendered on screen.
5472  We use this information when we output the document as XHTML.
5473  In particular, \SpecialChar LyX
5474  
5475 \emph on
5476 automatically
5477 \emph default
5478  generates CSS style information corresponding to the layout information
5479  it uses to render the document on screen: if section headings are supposed
5480  to be sans-serif and bold as seen in \SpecialChar LyX
5481 , then (by default) they will be sans-seri
5482 f and bold when viewed in a web browser, too.
5483  And this is true not just for pre-defined styles, like Section, but for
5484  any style, including user-defined styles.
5485  Indeed, the XHTML output routines make no distinction between user-defined
5486  paragraph and character styles and \SpecialChar LyX
5487 's own pre-defined styles: in each case,
5488  everything \SpecialChar LyX
5489  knows about the styles is contained in the layout files.
5490  And much the same is true as regards pre-defined textual insets, such as
5491  footnotes, and various custom insets.
5492  
5493 \end_layout
5494
5495 \begin_layout Standard
5496 The result is that XHTML output can be customized and extended in exactly
5497  the same way \SpecialChar LaTeX
5498  output can be customized and extended: through layout files
5499  and modules.
5500  See chapter five of the 
5501 \emph on
5502 Customization 
5503 \emph default
5504 manual for the details.
5505 \end_layout
5506
5507 \begin_layout Standard
5508 The remainder of this chapter contains more detailed information on XHTML
5509  output, its limitations, and ways to work around those limitations.
5510 \end_layout
5511
5512 \begin_layout Section
5513 Math Output in XHTML
5514 \end_layout
5515
5516 \begin_layout Standard
5517 \SpecialChar LyX
5518  offers four choices for how math is rendered.
5519  These have various advantages and disadvantages:
5520 \end_layout
5521
5522 \begin_layout Itemize
5523 MathML
5524 \begin_inset Newline newline
5525 \end_inset
5526
5527 MathML is a dialect of XML designed specifically for mathematics on the
5528  web, and it typically renders very well in browsers that support it.
5529  The disadvantage is that not all browsers support MathML, and support is
5530  not complete even in the Gecko-based browsers, such as Firefox.
5531 \begin_inset Newline newline
5532 \end_inset
5533
5534 If \SpecialChar LyX
5535  is unable to render a formula as MathML—for example, if the formula
5536  uses the 
5537 \begin_inset Flex Code
5538 status collapsed
5539
5540 \begin_layout Plain Layout
5541 xymatrix
5542 \end_layout
5543
5544 \end_inset
5545
5546  package or ERT—then it will instead output the formula as an image.
5547  
5548 \end_layout
5549
5550 \begin_layout Itemize
5551 HTML
5552 \begin_inset Newline newline
5553 \end_inset
5554
5555 As mentioned above, 
5556 \begin_inset Flex Code
5557 status collapsed
5558
5559 \begin_layout Plain Layout
5560 elyxer
5561 \end_layout
5562
5563 \end_inset
5564
5565  outputs math as HTML, styled by CSS.
5566 \begin_inset Foot
5567 status collapsed
5568
5569 \begin_layout Plain Layout
5570 \SpecialChar LyX
5571  has borrowed some of the CSS for its HTML output from 
5572 \begin_inset Flex Code
5573 status collapsed
5574
5575 \begin_layout Plain Layout
5576 elyxer
5577 \end_layout
5578
5579 \end_inset
5580
5581 .
5582 \end_layout
5583
5584 \end_inset
5585
5586  For simple formulae, this can work quite well, though with more complicated
5587  formulae it tends to break down.
5588  Still, this method has the advantage that it is very widely supported and
5589  so it may be appropriate for documents that contain only a little, fairly
5590  simple math.
5591 \begin_inset Newline newline
5592 \end_inset
5593
5594 If Lyx is unable to render a formula as HTML—for example, if the formula
5595  uses the 
5596 \begin_inset Flex Code
5597 status collapsed
5598
5599 \begin_layout Plain Layout
5600 xymatrix
5601 \end_layout
5602
5603 \end_inset
5604
5605  package or ERT—then it will instead output the formula as an image.
5606  
5607 \end_layout
5608
5609 \begin_layout Itemize
5610 Images
5611 \begin_inset Newline newline
5612 \end_inset
5613
5614 Like 
5615 \begin_inset Flex Code
5616 status collapsed
5617
5618 \begin_layout Plain Layout
5619 htlatex
5620 \end_layout
5621
5622 \end_inset
5623
5624 , \SpecialChar LyX
5625  will output formulae as images, the very same images, in fact, that are
5626  used for instant preview.
5627 \begin_inset Foot
5628 status collapsed
5629
5630 \begin_layout Plain Layout
5631 Instant preview does 
5632 \emph on
5633 not 
5634 \emph default
5635 have to be on for images to be output, however.
5636 \end_layout
5637
5638 \end_inset
5639
5640  The advantage to this method is that the images are simply generated by
5641  \SpecialChar LaTeX
5642 , so they are very accurate.
5643  The disadvantage, as mentioned earlier, is that these are bitmapped images,
5644  so they do not scale terribly well, and one cannot copy them, etc.
5645  (As of this writing, there are also problems about equation numbering.
5646  See 
5647 \begin_inset CommandInset href
5648 LatexCommand href
5649 name "bug 6894"
5650 target "http://www.lyx.org/trac/ticket/6894"
5651
5652 \end_inset
5653
5654 .)
5655 \begin_inset Newline newline
5656 \end_inset
5657
5658 The size of the images can be controlled by setting the 
5659 \begin_inset Quotes eld
5660 \end_inset
5661
5662 Math Images Scaling
5663 \begin_inset Quotes erd
5664 \end_inset
5665
5666  parameter under 
5667 \begin_inset Flex Noun
5668 status collapsed
5669
5670 \begin_layout Plain Layout
5671 Document\SpecialChar menuseparator
5672 Settings\SpecialChar menuseparator
5673 Output
5674 \end_layout
5675
5676 \end_inset
5677
5678 .
5679 \begin_inset Foot
5680 status collapsed
5681
5682 \begin_layout Plain Layout
5683 For those who want to know, this controls the resolution of the image in
5684  dots per inch and is based upon a default of 75 dpi.
5685 \end_layout
5686
5687 \end_inset
5688
5689
5690 \begin_inset Newline newline
5691 \end_inset
5692
5693 If \SpecialChar LyX
5694  for some reason fails to create an image for a formula (e.g., if a required
5695  \SpecialChar LaTeX
5696  package is not installed), then it will fall back to outputing the raw
5697  \SpecialChar LaTeX
5698 .
5699 \end_layout
5700
5701 \begin_layout Itemize
5702 \SpecialChar LaTeX
5703
5704 \begin_inset Newline newline
5705 \end_inset
5706
5707 Finally, \SpecialChar LyX
5708  will happily output math as \SpecialChar LaTeX
5709 .
5710  As well as being the output of last resort, this method can be used with
5711  such tools as 
5712 \begin_inset CommandInset href
5713 LatexCommand href
5714 name "jsMath"
5715 target "http://www.math.union.edu/~dpvc/jsMath/"
5716
5717 \end_inset
5718
5719 , which uses JavaScript to render \SpecialChar LaTeX
5720  embedded in HTML documents.
5721  \SpecialChar LyX
5722  wraps the \SpecialChar LaTeX
5723  in either a 
5724 \begin_inset Flex Code
5725 status collapsed
5726
5727 \begin_layout Plain Layout
5728 span
5729 \end_layout
5730
5731 \end_inset
5732
5733  (for inline formulas) or 
5734 \begin_inset Flex Code
5735 status collapsed
5736
5737 \begin_layout Plain Layout
5738 div
5739 \end_layout
5740
5741 \end_inset
5742
5743  (for displayed formulas) with 
5744 \begin_inset Flex Code
5745 status collapsed
5746
5747 \begin_layout Plain Layout
5748 class='math'
5749 \end_layout
5750
5751 \end_inset
5752
5753 , as is required for jsMath.
5754 \end_layout
5755
5756 \begin_layout Standard
5757 One of these output methods must be selected under 
5758 \begin_inset Flex Noun
5759 status collapsed
5760
5761 \begin_layout Plain Layout
5762 Document\SpecialChar menuseparator
5763 Settings\SpecialChar menuseparator
5764 Output
5765 \end_layout
5766
5767 \end_inset
5768
5769 .
5770  By default, \SpecialChar LyX
5771  outputs MathML.
5772  This is a document-wide setting, therefore.
5773 \end_layout
5774
5775 \begin_layout Standard
5776 Eventually, \SpecialChar LyX
5777  will offer the user the option to select an alternate output
5778  method for a particular inset, say, one that isn't being rendered very
5779  well by MathML.
5780 \begin_inset Foot
5781 status collapsed
5782
5783 \begin_layout Plain Layout
5784 That said, since \SpecialChar LyX
5785  falls back to images if the inset contains ERT, then one
5786  can force output as an image by putting some harmless ERT into the math,
5787  for example: 
5788 \begin_inset Formula $a=b\relax$
5789 \end_inset
5790
5791 .
5792 \end_layout
5793
5794 \end_inset
5795
5796
5797 \end_layout
5798
5799 \begin_layout Section
5800 Bibliography and Citations
5801 \end_layout
5802
5803 \begin_layout Standard
5804 XHTML output fully supports bibliographies and citations.
5805  
5806 \end_layout
5807
5808 \begin_layout Standard
5809 Citation labels are generated by the same machinery that generates \SpecialChar LyX
5810 's on-screen
5811  labels, so the labels will look in the output much as they do in \SpecialChar LyX
5812 , though
5813  better.
5814  If you are using numerical citations, then \SpecialChar LyX
5815  will output numerical labels,
5816  such as [1] or [17], rather than simply showing the citation key in square
5817  brackets, as it does on-screen.
5818  If you are using author-year citations, then \SpecialChar LyX
5819  will add lowercase letters
5820  to the years, just as Bib\SpecialChar TeX
5821  does, if it finds more than one citation for
5822  a given author-year combination.
5823  The labels will be printed with the bibliography entries.
5824  Note that there is, at present, no way to customize the appearance of the
5825  labels, for example, to choose between square brackets and parentheses.
5826 \end_layout
5827
5828 \begin_layout Standard
5829 Bibliography output is handled by the same machinery that handles the presentati
5830 on of reference information in the citation dialog, so you will see in the
5831  XHTML output pretty much what you would see if you were to look at a given
5832  entry in the citation dialog.
5833  The formatting can be customized in your layout file or, preferably, in
5834  a module.
5835  See the 
5836 \emph on
5837 Customization
5838 \emph default
5839  manual for the details.
5840 \end_layout
5841
5842 \begin_layout Standard
5843 The main defect at present is that cross-referenced information is printed
5844  with every entry with which it is associated.
5845  So you can see things like this:
5846 \end_layout
5847
5848 \begin_layout Quote
5849 Jason Stanley, 
5850 \begin_inset Quotes eld
5851 \end_inset
5852
5853 Context and Logical Form
5854 \begin_inset Quotes erd
5855 \end_inset
5856
5857 , in 
5858 \emph on
5859 Language in Context: Selected Essays
5860 \emph default
5861  (Oxford: Oxford University Press, 2007), pp.
5862  30–68.
5863 \end_layout
5864
5865 \begin_layout Quote
5866 Jason Stanley, 
5867 \begin_inset Quotes eld
5868 \end_inset
5869
5870 Semantics in Context
5871 \begin_inset Quotes erd
5872 \end_inset
5873
5874 , in 
5875 \emph on
5876 Language in Context: Selected Essays
5877 \emph default
5878  (Oxford: Oxford University Press, 2007), pp.
5879  201–30.
5880 \end_layout
5881
5882 \begin_layout Standard
5883 This should be fixed before long.
5884 \end_layout
5885
5886 \begin_layout Standard
5887 There is no support at present for sectioned bibliographies.
5888  If you have multiple bibliographies, then \SpecialChar LyX
5889  will print the same bibliography
5890  over and over.
5891 \end_layout
5892
5893 \begin_layout Section
5894 Indexes
5895 \end_layout
5896
5897 \begin_layout Standard
5898 \SpecialChar LyX
5899  will happily export indexes as XHTML, but with certain limitations at the
5900  moment.
5901 \end_layout
5902
5903 \begin_layout Standard
5904 Index export will be most reliable when you do not attempt to use the fancy
5905  constructs that are described in the section on indexes in the 
5906 \emph on
5907 User's Guide
5908 \emph default
5909 .
5910 \begin_inset Foot
5911 status collapsed
5912
5913 \begin_layout Plain Layout
5914 The main issue here is that \SpecialChar LyX
5915  itself does not really handle these.
5916  It just lets you enter what you would have to enter in raw \SpecialChar LaTeX
5917 .
5918 \end_layout
5919
5920 \end_inset
5921
5922  We'll describe how they are handled using the subsection headings from
5923  that section.
5924 \end_layout
5925
5926 \begin_layout Itemize
5927 Grouping Index Entries (aka, sub-entries): \SpecialChar LyX
5928  makes an effort to support these,
5929  but the entries must be separated by 
5930 \begin_inset Quotes eld
5931 \end_inset
5932
5933  ! 
5934 \begin_inset Quotes erd
5935 \end_inset
5936
5937 , that is, there must be spaces around the exclamation point.
5938  This is because it is otherwise too difficult to check for escaped exclamation
5939  points, ones in math, and so forth.
5940 \end_layout
5941
5942 \begin_layout Itemize
5943 Page Ranges: There is no support at all for page ranges, since these make
5944  no sense with XHMTL.
5945  Instead, you will just get two index entries, one at either end.
5946 \end_layout
5947
5948 \begin_layout Itemize
5949 Cross-referencing: There is no support for cross-referencing.
5950  If \SpecialChar LyX
5951  finds an entry containing the 
5952 \begin_inset Quotes eld
5953 \end_inset
5954
5955 |see\SpecialChar ldots
5956
5957 \begin_inset Quotes erd
5958 \end_inset
5959
5960  construct, it is just dropped, and the rest is treated as an ordinary index
5961  entry.
5962 \end_layout
5963
5964 \begin_layout Itemize
5965 Index Entry Order: \SpecialChar LyX
5966  does support attempts to fix the sorting order.
5967  It will take what is before the first `@' it finds and use that for sorting,
5968  taking what follows the first `@' to be the actual entry.
5969  At present, \SpecialChar LyX
5970  does not check for escaped `@', so do not try to index email
5971  addresses.
5972 \end_layout
5973
5974 \begin_layout Itemize
5975 Index Entry Layout: You can format entries by using the text style dialog,
5976  or by using any other method available within \SpecialChar LyX
5977  itself.
5978  There is no support for constructs like: 
5979 \begin_inset Quotes eld
5980 \end_inset
5981
5982 entry|textbf
5983 \begin_inset Quotes erd
5984 \end_inset
5985
5986 .
5987  Indeed, if \SpecialChar LyX
5988  finds a pipe symbol, `|', in an entry, it will delete it and
5989  everything that follows it.
5990 \end_layout
5991
5992 \begin_layout Itemize
5993 Multiple Indexes: There is no support for multiple indexes.
5994  Rather, all index entries will be printed as one large index.
5995  To avoid our printing several versions of the index, we print only the
5996  main index, so make sure you have one.
5997 \end_layout
5998
5999 \begin_layout Section
6000 Nomenclature and Glossary
6001 \end_layout
6002
6003 \begin_layout Standard
6004 There is at present no support for glossaries.
6005  Adding it would be fairly trivial, and welcome.
6006 \end_layout
6007
6008 \begin_layout Chapter
6009 The \SpecialChar LyX
6010  Server
6011 \end_layout
6012
6013 \begin_layout Section
6014 Introduction
6015 \end_layout
6016
6017 \begin_layout Standard
6018 The `\SpecialChar LyX
6019  server' allows other programs to talk to \SpecialChar LyX
6020 , invoke \SpecialChar LyX
6021  commands, and retrieve
6022  information about the \SpecialChar LyX
6023  internal state.
6024  This is only intended for advanced users, but they should find it useful.
6025  It is by writing to the \SpecialChar LyX
6026  server, for example, that bibliography managers,
6027  such as JabRef, are able to 
6028 \begin_inset Quotes eld
6029 \end_inset
6030
6031 push
6032 \begin_inset Quotes erd
6033 \end_inset
6034
6035  citations to \SpecialChar LyX
6036 .
6037 \end_layout
6038
6039 \begin_layout Section
6040 Starting the \SpecialChar LyX
6041  Server
6042 \end_layout
6043
6044 \begin_layout Standard
6045 The \SpecialChar LyX
6046  server works through the use of a pair of named pipes.
6047  These are usually located in 
6048 \begin_inset Flex Code
6049 status collapsed
6050
6051 \begin_layout Plain Layout
6052 UserDir
6053 \end_layout
6054
6055 \end_inset
6056
6057 , (except on Windows, where 
6058 \emph on
6059 local
6060 \emph default
6061  named pipes are special objects located in 
6062 \begin_inset Flex Code
6063 status collapsed
6064
6065 \begin_layout Plain Layout
6066
6067 \backslash
6068
6069 \backslash
6070 .
6071 \backslash
6072 pipe
6073 \end_layout
6074
6075 \end_inset
6076
6077 ) and have the names 
6078 \begin_inset Quotes eld
6079 \end_inset
6080
6081
6082 \begin_inset Flex Code
6083 status collapsed
6084
6085 \begin_layout Plain Layout
6086 lyxpipe.in
6087 \end_layout
6088
6089 \end_inset
6090
6091
6092 \begin_inset Quotes erd
6093 \end_inset
6094
6095  and 
6096 \begin_inset Quotes eld
6097 \end_inset
6098
6099
6100 \begin_inset Flex Code
6101 status collapsed
6102
6103 \begin_layout Plain Layout
6104 lyxpipe.out
6105 \end_layout
6106
6107 \end_inset
6108
6109
6110 \begin_inset Quotes erd
6111 \end_inset
6112
6113 .
6114  External programs write into 
6115 \begin_inset Flex Code
6116 status collapsed
6117
6118 \begin_layout Plain Layout
6119 lyxpipe.in
6120 \end_layout
6121
6122 \end_inset
6123
6124  and read back data from 
6125 \begin_inset Flex Code
6126 status collapsed
6127
6128 \begin_layout Plain Layout
6129 lyxpipe.out
6130 \end_layout
6131
6132 \end_inset
6133
6134 .
6135  The stem of the pipe names can be defined in the 
6136 \begin_inset Flex Noun
6137 status collapsed
6138
6139 \begin_layout Plain Layout
6140 Tools\SpecialChar menuseparator
6141 Preferences
6142 \end_layout
6143
6144 \end_inset
6145
6146  dialog, for example 
6147 \begin_inset Flex Code
6148 status collapsed
6149
6150 \begin_layout Plain Layout
6151 "/home/myhome/lyxpipe"
6152 \end_layout
6153
6154 \end_inset
6155
6156 , or 
6157 \begin_inset Flex Code
6158 status collapsed
6159
6160 \begin_layout Plain Layout
6161 "
6162 \backslash
6163
6164 \backslash
6165 .
6166 \backslash
6167 pipe
6168 \backslash
6169 lyxpipe"
6170 \end_layout
6171
6172 \end_inset
6173
6174  on Windows (where any working path instead of lyxpipe can be used, for
6175  example 
6176 \begin_inset Flex Code
6177 status collapsed
6178
6179 \begin_layout Plain Layout
6180 "
6181 \backslash
6182
6183 \backslash
6184 .
6185 \backslash
6186 pipe
6187 \backslash
6188 my
6189 \backslash
6190 lyx
6191 \backslash
6192 pipe"
6193 \end_layout
6194
6195 \end_inset
6196
6197  would also work).
6198  You 
6199 \emph on
6200 must
6201 \emph default
6202  configure this manually in order for the server to start.
6203 \end_layout
6204
6205 \begin_layout Standard
6206 \SpecialChar LyX
6207  will add the '
6208 \begin_inset Flex Code
6209 status collapsed
6210
6211 \begin_layout Plain Layout
6212 .in
6213 \end_layout
6214
6215 \end_inset
6216
6217 ' and '
6218 \begin_inset Flex Code
6219 status collapsed
6220
6221 \begin_layout Plain Layout
6222 .out
6223 \end_layout
6224
6225 \end_inset
6226
6227 ' to create the pipes.
6228  If one of the pipes already exists, \SpecialChar LyX
6229  will assume that another \SpecialChar LyX
6230  process
6231  is already running and will not start the server.
6232  On POSIX (Unix like) systems, if for some other reason, an unused 
6233 \begin_inset Quotes eld
6234 \end_inset
6235
6236 stale
6237 \begin_inset Quotes erd
6238 \end_inset
6239
6240  pipe is left in existence when \SpecialChar LyX
6241  closes, then \SpecialChar LyX
6242  will try to delete it.
6243  If this fails for some reason, you will need to delete the pipes manually
6244  and then restart \SpecialChar LyX
6245 .
6246  On Windows, pipes are deleted by the OS on program termination or crash,
6247  so 
6248 \begin_inset Quotes eld
6249 \end_inset
6250
6251 stale
6252 \begin_inset Quotes erd
6253 \end_inset
6254
6255  pipes should not be possible.
6256 \end_layout
6257
6258 \begin_layout Standard
6259 To have several \SpecialChar LyX
6260  processes with servers at the same time, you have to use
6261  different configurations, perhaps by using separate user directories, each
6262  with its own 
6263 \begin_inset Flex Code
6264 status collapsed
6265
6266 \begin_layout Plain Layout
6267 preferences
6268 \end_layout
6269
6270 \end_inset
6271
6272  file, for each process.
6273 \end_layout
6274
6275 \begin_layout Standard
6276 If you are developing a client program, you might find it useful to enable
6277  debugging information from the \SpecialChar LyX
6278  server.
6279  Do this by starting \SpecialChar LyX
6280  as 
6281 \begin_inset Flex Code
6282 status collapsed
6283
6284 \begin_layout Plain Layout
6285 lyx -dbg lyxserver
6286 \end_layout
6287
6288 \end_inset
6289
6290 .
6291 \end_layout
6292
6293 \begin_layout Standard
6294 You can find a complete example client written in C++ in the source distribution
6295  as 
6296 \begin_inset Flex Code
6297 status collapsed
6298
6299 \begin_layout Plain Layout
6300 development/lyxserver/server_monitor.cpp
6301 \end_layout
6302
6303 \end_inset
6304
6305 .
6306 \end_layout
6307
6308 \begin_layout Standard
6309 Another useful tool is the command-line based client found in 
6310 \begin_inset Flex Code
6311 status collapsed
6312
6313 \begin_layout Plain Layout
6314 src/client/lyxclient
6315 \end_layout
6316
6317 \end_inset
6318
6319 .
6320 \end_layout
6321
6322 \begin_layout Section
6323 Normal communication
6324 \end_layout
6325
6326 \begin_layout Standard
6327 To issue a \SpecialChar LyX
6328  call, the client writes a line of ASCII text into the input
6329  pipe.
6330  This line has the following format:
6331 \end_layout
6332
6333 \begin_layout Quote
6334 LYXCMD:
6335 \emph on
6336 clientname
6337 \emph default
6338 :
6339 \emph on
6340 function
6341 \emph default
6342 :
6343 \emph on
6344 argument
6345 \end_layout
6346
6347 \begin_layout Description
6348 clientname is a name that the client can choose arbitrarily.
6349  Its only use is that \SpecialChar LyX
6350  will echo it if it sends an answer—so a client can
6351  dispatch results from different requesters.
6352 \end_layout
6353
6354 \begin_layout Description
6355 function is the function you want \SpecialChar LyX
6356  to perform.
6357  It is the same as the commands you'd use in the minibuffer.
6358 \end_layout
6359
6360 \begin_layout Description
6361 argument is an optional argument which is meaningful only to some functions
6362  (for instance, the 
6363 \begin_inset Quotes eld
6364 \end_inset
6365
6366 self-insert
6367 \begin_inset Quotes erd
6368 \end_inset
6369
6370  LFUN will insert the argument as text at the cursor position).
6371 \end_layout
6372
6373 \begin_layout Standard
6374 The answer from \SpecialChar LyX
6375  will arrive in the output pipe and be of the form
6376 \end_layout
6377
6378 \begin_layout Quote
6379 INFO:
6380 \emph on
6381 clientname
6382 \emph default
6383 :
6384 \emph on
6385 function
6386 \emph default
6387 :
6388 \emph on
6389 data
6390 \end_layout
6391
6392 \begin_layout Standard
6393 where 
6394 \emph on
6395 clientname
6396 \emph default
6397  and 
6398 \emph on
6399 function
6400 \emph default
6401  are just echoed from the command request, while 
6402 \emph on
6403 data
6404 \emph default
6405  is more or less useful information filled according to how the command
6406  execution worked out.
6407  Some commands, such as 
6408 \begin_inset Quotes eld
6409 \end_inset
6410
6411 font-state
6412 \begin_inset Quotes erd
6413 \end_inset
6414
6415 , will return information about the internal state of \SpecialChar LyX
6416 , while other will
6417  return an empty data-response.
6418  This means that the command execution went fine.
6419 \end_layout
6420
6421 \begin_layout Standard
6422 In case of errors, the response from \SpecialChar LyX
6423  will have this form
6424 \end_layout
6425
6426 \begin_layout Quote
6427 ERROR:
6428 \emph on
6429 clientname
6430 \emph default
6431 :
6432 \emph on
6433 function
6434 \emph default
6435 :
6436 \emph on
6437 error message
6438 \end_layout
6439
6440 \begin_layout Standard
6441 where the 
6442 \emph on
6443 error message
6444 \emph default
6445  should contain an explanation of why the command failed.
6446 \end_layout
6447
6448 \begin_layout Standard
6449 Examples:
6450 \end_layout
6451
6452 \begin_layout LyX-Code
6453 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
6454 \begin_inset Newline newline
6455 \end_inset
6456
6457 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
6458 \begin_inset Newline newline
6459 \end_inset
6460
6461 read a <~/.lyxpipe.out
6462 \begin_inset Newline newline
6463 \end_inset
6464
6465 echo $a
6466 \end_layout
6467
6468 \begin_layout Subsection
6469 AppleScript (Mac OS X)
6470 \end_layout
6471
6472 \begin_layout Standard
6473 Since \SpecialChar LyX
6474  2.1, \SpecialChar LyX
6475  supports basic interactions with AppleScript for normal communicatio
6476 n through the command run.
6477  This command takes a direct argument (the 
6478 \series bold
6479 function
6480 \series default
6481  to perform) and an optional argument.
6482  It either returns the output of the function or triggers an error with
6483  the error message and code.
6484 \end_layout
6485
6486 \begin_layout Standard
6487 Example:
6488 \end_layout
6489
6490 \begin_layout LyX-Code
6491 tell application "\SpecialChar LyX
6492 "
6493 \end_layout
6494
6495 \begin_layout LyX-Code
6496   try
6497 \end_layout
6498
6499 \begin_layout LyX-Code
6500     -- Stores the current file name into f
6501 \end_layout
6502
6503 \begin_layout LyX-Code
6504     set f to (run "server-get-filename" with argument "")
6505 \end_layout
6506
6507 \begin_layout LyX-Code
6508     on error the error_message number the error_number
6509 \end_layout
6510
6511 \begin_layout LyX-Code
6512       display dialog "Error: " & the error_number & ".
6513  " ¬
6514 \end_layout
6515
6516 \begin_layout LyX-Code
6517               & the error_message buttons {"OK"} default button 1
6518 \end_layout
6519
6520 \begin_layout LyX-Code
6521   end try
6522 \end_layout
6523
6524 \begin_layout LyX-Code
6525 end tell
6526 \end_layout
6527
6528 \begin_layout Section
6529 Notification
6530 \end_layout
6531
6532 \begin_layout Standard
6533 \SpecialChar LyX
6534  can notify clients of events going on asynchronously.
6535  Currently it will only do this if the user binds a key sequence with the
6536  function 
6537 \begin_inset Quotes eld
6538 \end_inset
6539
6540 notify
6541 \begin_inset Quotes erd
6542 \end_inset
6543
6544 .
6545  The format of the string \SpecialChar LyX
6546  sends is as follows:
6547 \end_layout
6548
6549 \begin_layout Quote
6550 \begin_inset Flex Code
6551 status collapsed
6552
6553 \begin_layout Plain Layout
6554 NOTIFY:
6555 \end_layout
6556
6557 \end_inset
6558
6559
6560 \emph on
6561 key-sequence
6562 \end_layout
6563
6564 \begin_layout Standard
6565 where 
6566 \emph on
6567 key-sequence
6568 \emph default
6569  is the printed representation of the key sequence that was actually typed
6570  by the user.
6571 \end_layout
6572
6573 \begin_layout Standard
6574 This mechanism can be used to extend \SpecialChar LyX
6575 's command set and implement macros.
6576  Bind some key sequence to 
6577 \begin_inset Quotes eld
6578 \end_inset
6579
6580 notify
6581 \begin_inset Quotes erd
6582 \end_inset
6583
6584 .
6585  Then start a client that listens on the output pipe, dispatches the command
6586  according to the sequence, and starts a function that may use \SpecialChar LyX
6587  calls and
6588  \SpecialChar LyX
6589  requests to issue a command or a series of commands to \SpecialChar LyX
6590 .
6591 \end_layout
6592
6593 \begin_layout Section
6594 The simple \SpecialChar LyX
6595  Server Protocol
6596 \end_layout
6597
6598 \begin_layout Standard
6599 \SpecialChar LyX
6600  implements a simple protocol that can be used for session management.
6601  All messages are of the form
6602 \end_layout
6603
6604 \begin_layout Quote
6605 LYXSRV:
6606 \emph on
6607 clientname
6608 \emph default
6609 :
6610 \emph on
6611 protocol message
6612 \end_layout
6613
6614 \begin_layout Standard
6615 where 
6616 \emph on
6617 protocol message
6618 \emph default
6619  can be 
6620 \begin_inset Quotes eld
6621 \end_inset
6622
6623 hello
6624 \begin_inset Quotes erd
6625 \end_inset
6626
6627  or 
6628 \begin_inset Quotes eld
6629 \end_inset
6630
6631 bye
6632 \begin_inset Quotes erd
6633 \end_inset
6634
6635 .
6636  If 
6637 \begin_inset Quotes eld
6638 \end_inset
6639
6640 hello
6641 \begin_inset Quotes erd
6642 \end_inset
6643
6644  is received from a client, \SpecialChar LyX
6645  will report back to inform the client that
6646  it's listening to it's messages, while 
6647 \begin_inset Quotes eld
6648 \end_inset
6649
6650 bye
6651 \begin_inset Quotes erd
6652 \end_inset
6653
6654  sent from \SpecialChar LyX
6655  will inform clients that \SpecialChar LyX
6656  is closing.
6657 \end_layout
6658
6659 \begin_layout Section
6660 Reverse DVI/PDF search
6661 \end_layout
6662
6663 \begin_layout Standard
6664 Some DVI/PDF viewers
6665 \begin_inset Foot
6666 status collapsed
6667
6668 \begin_layout Plain Layout
6669 The following viewers offer the reverse PDF search feature: Okular on KDE/Linux,
6670  Qpdfview on Unix, Skim on Mac OSX and SumatraPDF on Windows.
6671 \end_layout
6672
6673 \end_inset
6674
6675  provide 
6676 \emph on
6677 reverse search
6678 \emph default
6679  facility (also called 
6680 \emph on
6681 inverse search
6682 \emph default
6683 ).
6684  This means that you can tell \SpecialChar LyX
6685  to put the cursor to a specific line in the
6686  document by clicking at the respective position in the DVI/PDF output.
6687  To achieve this, the viewer must be able to communicate with \SpecialChar LyX
6688 .
6689  This is done via the \SpecialChar LyX
6690  server either by using the named pipe (
6691 \emph on
6692 lyxpipe
6693 \emph default
6694 ), or the UNIX domain socket (
6695 \emph on
6696 lyxsocket
6697 \emph default
6698 ) that \SpecialChar LyX
6699  creates in its temporary directory (this is the way the 
6700 \begin_inset Flex Code
6701 status collapsed
6702
6703 \begin_layout Plain Layout
6704 lyxclient
6705 \end_layout
6706
6707 \end_inset
6708
6709  program communicates with \SpecialChar LyX
6710 ).
6711  In some cases, you need a helper script that mediates between the viewer
6712  and \SpecialChar LyX
6713 , in others, the viewer can communicate with \SpecialChar LyX
6714  directly.
6715  This depends on the selected viewer and on your operating system.
6716  The same applies to the way viewers need to be configured and the way the
6717  reverse search is actually performed.
6718  In what follows, we will thus describe how to setup reverse search for
6719  specific viewers.
6720  Before we turn to this, though, we will explain what needs to be done generally
6721  to enable reverse search in the DVI/PDF output.
6722 \end_layout
6723
6724 \begin_layout Subsection
6725 Automatic setup
6726 \begin_inset CommandInset label
6727 LatexCommand label
6728 name "subsec:rev-search"
6729
6730 \end_inset
6731
6732
6733 \end_layout
6734
6735 \begin_layout Standard
6736 In most cases \SpecialChar LyX
6737  will do the work for you by enabling the option 
6738 \begin_inset Flex Noun
6739 status collapsed
6740
6741 \begin_layout Plain Layout
6742 Synchronize with Output
6743 \end_layout
6744
6745 \end_inset
6746
6747  in the menu 
6748 \begin_inset Flex Noun
6749 status collapsed
6750
6751 \begin_layout Plain Layout
6752 Document\SpecialChar menuseparator
6753 Settings\SpecialChar menuseparator
6754 Output
6755 \end_layout
6756
6757 \end_inset
6758
6759 .
6760  In such a case \SpecialChar LyX
6761  will automatically insert the necessary Sync\SpecialChar TeX
6762  macro (for
6763  PDF) or load the srcltx package (for DVI) respectively.
6764  This option can be easily reached also on 
6765 \begin_inset Flex Code
6766 status collapsed
6767
6768 \begin_layout Plain Layout
6769 View/Update
6770 \end_layout
6771
6772 \end_inset
6773
6774  Toolbar.
6775 \end_layout
6776
6777 \begin_layout Standard
6778 If you need a different setting, you can select or input a custom macro
6779  from the drop down box just below 
6780 \begin_inset Flex Noun
6781 status collapsed
6782
6783 \begin_layout Plain Layout
6784 Document\SpecialChar menuseparator
6785 Settings\SpecialChar menuseparator
6786 Output\SpecialChar menuseparator
6787 Synchronize with Output
6788 \end_layout
6789
6790 \end_inset
6791
6792 .
6793 \end_layout
6794
6795 \begin_layout Standard
6796 Note that the method 
6797 \begin_inset Flex Code
6798 status collapsed
6799
6800 \begin_layout Plain Layout
6801
6802 \backslash
6803 synctex=1
6804 \end_layout
6805
6806 \end_inset
6807
6808  enables gzip compression.
6809  If your viewer does not support it, you should instead use 
6810 \begin_inset Flex Code
6811 status collapsed
6812
6813 \begin_layout Plain Layout
6814
6815 \backslash
6816 synctex=-1
6817 \end_layout
6818
6819 \end_inset
6820
6821 .
6822 \end_layout
6823
6824 \begin_layout Standard
6825 Please also note that including the 
6826 \begin_inset Flex Code
6827 status collapsed
6828
6829 \begin_layout Plain Layout
6830 srcltx
6831 \end_layout
6832
6833 \end_inset
6834
6835  package or 
6836 \begin_inset Flex Code
6837 status collapsed
6838
6839 \begin_layout Plain Layout
6840 src-specials
6841 \end_layout
6842
6843 \end_inset
6844
6845  sometimes has an undesired impact on the typesetting.
6846  Thus, you should switch output synchronization off for the final typesetting
6847  if you use the 
6848 \begin_inset Flex Code
6849 status collapsed
6850
6851 \begin_layout Plain Layout
6852 srcltx
6853 \end_layout
6854
6855 \end_inset
6856
6857  package or 
6858 \begin_inset Flex Code
6859 status collapsed
6860
6861 \begin_layout Plain Layout
6862 src-specials
6863 \end_layout
6864
6865 \end_inset
6866
6867 .
6868  
6869 \end_layout
6870
6871 \begin_layout Standard
6872 In case you need some more special settings that are not covered by the
6873  automatic settings, read the next section about how to set up output synchroniz
6874 ation manually.
6875  If the automatic setup suits your needs, you can readily jump to section
6876 \begin_inset space ~
6877 \end_inset
6878
6879
6880 \begin_inset CommandInset ref
6881 LatexCommand ref
6882 reference "subsec:configuring-viewers"
6883
6884 \end_inset
6885
6886 , where the necessary configuration steps in your viewer – needed both with
6887  the automatic and the manual setup – are described.
6888 \end_layout
6889
6890 \begin_layout Subsection
6891 Manual setup
6892 \end_layout
6893
6894 \begin_layout Standard
6895 \SpecialChar LaTeX
6896  provides several different methods for reverse search.
6897  Some are built-in in the 
6898 \begin_inset Flex Code
6899 status collapsed
6900
6901 \begin_layout Plain Layout
6902 latex/pdflatex
6903 \end_layout
6904
6905 \end_inset
6906
6907  program, some are provided by external packages.
6908  Your choice depends on whether your \SpecialChar LaTeX
6909  distribution already provides a given
6910  method (the built-in methods are rather new) and whether your viewer can
6911  cope with it.
6912  The available methods are described in the following.
6913 \end_layout
6914
6915 \begin_layout Subsubsection*
6916 Built-in DVI-search via src-specials (DVI only) 
6917 \end_layout
6918
6919 \begin_layout Standard
6920 This method provides the DVI file with the necessary information for reverse
6921  search.
6922  It is available in \SpecialChar LaTeX
6923  since quite some time (any somewhat recent \SpecialChar LaTeX
6924  distribution
6925  should include it), and it works reliably.
6926  To enable it, change the 
6927 \begin_inset Flex Noun
6928 status collapsed
6929
6930 \begin_layout Plain Layout
6931 La
6932 \family sans
6933 TeX
6934 \family default
6935  (plain)->DVI
6936 \end_layout
6937
6938 \end_inset
6939
6940  or 
6941 \begin_inset Flex Noun
6942 status collapsed
6943
6944 \begin_layout Plain Layout
6945 La
6946 \family sans
6947 TeX
6948 \family default
6949  (plain)->DraftDVI
6950 \end_layout
6951
6952 \end_inset
6953
6954  converter in 
6955 \begin_inset Flex Noun
6956 status collapsed
6957
6958 \begin_layout Plain Layout
6959 Preferences\SpecialChar menuseparator
6960 File Handling\SpecialChar menuseparator
6961 Converters
6962 \end_layout
6963
6964 \end_inset
6965
6966  to 
6967 \begin_inset Flex Code
6968 status collapsed
6969
6970 \begin_layout Plain Layout
6971 latex -src-specials $$i
6972 \end_layout
6973
6974 \end_inset
6975
6976 .
6977  If this doesn't work, check if your \SpecialChar TeX
6978  engine needs different options (the
6979  syntax might differ in some distributions).
6980 \end_layout
6981
6982 \begin_layout Subsubsection*
6983 External Packages (PDFSync and scrltx) 
6984 \end_layout
6985
6986 \begin_layout Standard
6987 The packages 
6988 \emph on
6989 pdfsync
6990 \emph default
6991  and 
6992 \emph on
6993 scrltx
6994 \emph default
6995  provide reverse search facility for PDF output (via pdflatex) and DVI output,
6996  respectively.
6997  In order to enable it, load the packages in the \SpecialChar LyX
6998  preamble: 
6999 \end_layout
7000
7001 \begin_layout Itemize
7002 \begin_inset Flex Code
7003 status collapsed
7004
7005 \begin_layout Plain Layout
7006
7007 \backslash
7008 usepackage{pdfsync}
7009 \end_layout
7010
7011 \end_inset
7012
7013  for reverse PDF search,
7014 \end_layout
7015
7016 \begin_layout Itemize
7017 \begin_inset Flex Code
7018 status collapsed
7019
7020 \begin_layout Plain Layout
7021
7022 \backslash
7023 usepackage[active]{srcltx}
7024 \end_layout
7025
7026 \end_inset
7027
7028  for reverse DVI search.
7029 \end_layout
7030
7031 \begin_layout Standard
7032 If you want to be able to perform both DVI and PDF reverse searches, you
7033  can also insert in the preamble the following lines
7034 \end_layout
7035
7036 \begin_layout LyX-Code
7037
7038 \backslash
7039 usepackage{ifpdf}
7040 \begin_inset Newline newline
7041 \end_inset
7042
7043
7044 \backslash
7045 ifpdf
7046 \begin_inset Newline newline
7047 \end_inset
7048
7049   
7050 \backslash
7051 usepackage{pdfsync}
7052 \begin_inset Newline newline
7053 \end_inset
7054
7055
7056 \backslash
7057 else
7058 \begin_inset Newline newline
7059 \end_inset
7060
7061   
7062 \backslash
7063 usepackage[active]{srcltx}
7064 \begin_inset Newline newline
7065 \end_inset
7066
7067
7068 \backslash
7069 fi
7070 \end_layout
7071
7072 \begin_layout Standard
7073 This way, you can preview the file as either DVI or PDF (pdflatex) and the
7074  right package will be used.
7075 \end_layout
7076
7077 \begin_layout Standard
7078 Note that PDFSync might affect the output layout of your document.
7079  It is therefore advised to disable PDFsync for final documents.
7080 \end_layout
7081
7082 \begin_layout Subsubsection*
7083 Built-in reverse search via Sync\SpecialChar TeX
7084  (DVI and PDF) 
7085 \end_layout
7086
7087 \begin_layout Standard
7088 Recent versions of 
7089 \begin_inset Flex Code
7090 status collapsed
7091
7092 \begin_layout Plain Layout
7093 (pdf)latex
7094 \end_layout
7095
7096 \end_inset
7097
7098  have built-in support for both PDF and DVI reverse search.
7099  This so-called 
7100 \emph on
7101 Sync\SpecialChar TeX
7102
7103 \emph default
7104  facility is basically the result of the integration of the PDFSync package
7105  to the pdftex program and its merge with the 
7106 \emph on
7107 scr-specials
7108 \emph default
7109  approach.
7110  You need at least \SpecialChar TeX
7111 Live 2008 or a recent Mik\SpecialChar TeX
7112  distribution in order to use
7113  it.
7114 \begin_inset Foot
7115 status collapsed
7116
7117 \begin_layout Plain Layout
7118 For some reason, Mik\SpecialChar TeX
7119  does not understand/obey the command \SpecialChar LyX
7120  inserts into
7121  the preamble when you check the "Enable Forward/Reverse Search" button
7122  in the toolbar and does not generate the necessary info.
7123 \end_layout
7124
7125 \begin_layout Plain Layout
7126 The generation of the required info can be forced by changing the converter
7127  "\SpecialChar LaTeX
7128  (pdflatex) -> PDF (pdflatex)" in Preferences->File handling->Converters
7129  from the default "pdflatex $$i" to "pdflatex -synctex=1 $$i" (i.e., by adding
7130  the -synctex=1 switch).
7131 \end_layout
7132
7133 \end_inset
7134
7135  Also note that only a few PDF viewers (Okular and Qpdfview on Unix, Skim
7136  on the Mac, SumatraPDF on Windows) already provide Sync\SpecialChar TeX
7137  support.
7138 \end_layout
7139
7140 \begin_layout Standard
7141 To enable Sync\SpecialChar TeX
7142  for DVI output, change the 
7143 \begin_inset Flex Noun
7144 status collapsed
7145
7146 \begin_layout Plain Layout
7147 La
7148 \family sans
7149 TeX
7150 \family default
7151  (plain) -> DVI
7152 \end_layout
7153
7154 \end_inset
7155
7156  or 
7157 \begin_inset Flex Noun
7158 status collapsed
7159
7160 \begin_layout Plain Layout
7161 La
7162 \family sans
7163 TeX
7164 \family default
7165  (plain) -> DraftDVI
7166 \end_layout
7167
7168 \end_inset
7169
7170  converter in 
7171 \begin_inset Flex Noun
7172 status collapsed
7173
7174 \begin_layout Plain Layout
7175 Preferences\SpecialChar menuseparator
7176 File Handling\SpecialChar menuseparator
7177 Converters
7178 \end_layout
7179
7180 \end_inset
7181
7182  to 
7183 \begin_inset Flex Code
7184 status collapsed
7185
7186 \begin_layout Plain Layout
7187 latex -synctex=1 $$i
7188 \end_layout
7189
7190 \end_inset
7191
7192 , and for PDF output, change the 
7193 \begin_inset Flex Noun
7194 status collapsed
7195
7196 \begin_layout Plain Layout
7197 La
7198 \family sans
7199 TeX
7200 \family default
7201  (pdflatex) -> PDF (pdflatex)
7202 \end_layout
7203
7204 \end_inset
7205
7206  or converter to 
7207 \begin_inset Flex Code
7208 status collapsed
7209
7210 \begin_layout Plain Layout
7211 pdflatex -synctex=1 $$i
7212 \end_layout
7213
7214 \end_inset
7215
7216 .
7217  Check the documentation of your viewer whether the viewer needs to be configure
7218 d for the use with Sync\SpecialChar TeX
7219 .
7220 \begin_inset Foot
7221 status collapsed
7222
7223 \begin_layout Plain Layout
7224 Note that the option 
7225 \begin_inset Flex Code
7226 status collapsed
7227
7228 \begin_layout Plain Layout
7229 -synctex=1
7230 \end_layout
7231
7232 \end_inset
7233
7234  option enables gzip compression.
7235  If your viewer does not support it, you should instead use 
7236 \begin_inset Flex Code
7237 status collapsed
7238
7239 \begin_layout Plain Layout
7240 -synctex=-1
7241 \end_layout
7242
7243 \end_inset
7244
7245 .
7246 \end_layout
7247
7248 \end_inset
7249
7250
7251 \end_layout
7252
7253 \begin_layout Subsection
7254 Configuring and using specific viewers
7255 \begin_inset CommandInset label
7256 LatexCommand label
7257 name "subsec:configuring-viewers"
7258
7259 \end_inset
7260
7261
7262 \end_layout
7263
7264 \begin_layout Subsubsection*
7265 Xdvi (all platforms)
7266 \end_layout
7267
7268 \begin_layout Standard
7269 If you use 
7270 \begin_inset Flex Code
7271 status collapsed
7272
7273 \begin_layout Plain Layout
7274 xdvi
7275 \end_layout
7276
7277 \end_inset
7278
7279 , you don't need to do anything else for performing a reverse DVI search,
7280  as \SpecialChar LyX
7281  already provides the necessary hooks for automatically using the 
7282 \begin_inset Flex Code
7283 status collapsed
7284
7285 \begin_layout Plain Layout
7286 lyxclient
7287 \end_layout
7288
7289 \end_inset
7290
7291  program.
7292  Just setup your document as described above (reverse search is triggered
7293  by Ctrl-click or Alt-click on Mac OSX, respectively).
7294 \end_layout
7295
7296 \begin_layout Standard
7297 However, if for whatever reason you want to use the named pipe instead of
7298  the socket for communicating with \SpecialChar LyX
7299 , simply change the DVI viewer in 
7300 \begin_inset Flex Noun
7301 status collapsed
7302
7303 \begin_layout Plain Layout
7304 Preferences\SpecialChar menuseparator
7305 File Handling\SpecialChar menuseparator
7306 File formats
7307 \end_layout
7308
7309 \end_inset
7310
7311  to
7312 \begin_inset Foot
7313 status collapsed
7314
7315 \begin_layout Plain Layout
7316 On Mac OSX you have to use 
7317 \begin_inset Flex Code
7318 status collapsed
7319
7320 \begin_layout Plain Layout
7321 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
7322 \end_layout
7323
7324 \end_inset
7325
7326
7327 \end_layout
7328
7329 \end_inset
7330
7331  
7332 \begin_inset Flex Code
7333 status collapsed
7334
7335 \begin_layout Plain Layout
7336 xdvi -editor "lyxeditor.sh %f %l"
7337 \end_layout
7338
7339 \end_inset
7340
7341 , where 
7342 \begin_inset Flex Code
7343 status collapsed
7344
7345 \begin_layout Plain Layout
7346 lyxeditor.sh
7347 \end_layout
7348
7349 \end_inset
7350
7351  is a suitable script.
7352  For example, a minimal shell script is the following one:
7353 \end_layout
7354
7355 \begin_layout LyX-Code
7356 #!/bin/sh
7357 \begin_inset Newline newline
7358 \end_inset
7359
7360 LYXPIPE="/path/to/lyxpipe"
7361 \begin_inset Newline newline
7362 \end_inset
7363
7364 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
7365 \begin_inset Newline newline
7366 \end_inset
7367
7368 echo "$COMMAND" > "${LYXPIPE}".in || exit
7369 \begin_inset Newline newline
7370 \end_inset
7371
7372 read TMP < "${LYXPIPE}".out || exit
7373 \end_layout
7374
7375 \begin_layout Standard
7376 where 
7377 \begin_inset Flex Code
7378 status collapsed
7379
7380 \begin_layout Plain Layout
7381 /path/to/lyxpipe
7382 \end_layout
7383
7384 \end_inset
7385
7386  is the LyXServer pipe path specified in 
7387 \begin_inset Flex Noun
7388 status collapsed
7389
7390 \begin_layout Plain Layout
7391 Preferences\SpecialChar menuseparator
7392 Paths
7393 \end_layout
7394
7395 \end_inset
7396
7397 .
7398 \begin_inset Foot
7399 status collapsed
7400
7401 \begin_layout Plain Layout
7402 In the 
7403 \begin_inset Flex Code
7404 status collapsed
7405
7406 \begin_layout Plain Layout
7407 development/tools
7408 \end_layout
7409
7410 \end_inset
7411
7412  folder of a source distribution you can find a 
7413 \begin_inset Flex Code
7414 status collapsed
7415
7416 \begin_layout Plain Layout
7417 lyxeditor
7418 \end_layout
7419
7420 \end_inset
7421
7422  script which is able to locate the 
7423 \emph on
7424 lyxpipe
7425 \emph default
7426  based on your preferences.
7427 \end_layout
7428
7429 \end_inset
7430
7431
7432 \end_layout
7433
7434 \begin_layout Subsubsection*
7435 MacDviX (Mac OSX)
7436 \end_layout
7437
7438 \begin_layout Standard
7439 At the end of 
7440 \begin_inset Flex Code
7441 status collapsed
7442
7443 \begin_layout Plain Layout
7444 /Applications/MacDviX_Folder/calleditor.script
7445 \end_layout
7446
7447 \end_inset
7448
7449 , add the following lines:
7450 \end_layout
7451
7452 \begin_layout LyX-Code
7453 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
7454 \begin_inset Newline newline
7455 \end_inset
7456
7457 exit 1
7458 \end_layout
7459
7460 \begin_layout Standard
7461 Modify the lines accordingly if you install \SpecialChar LyX
7462  somewhere else than in the
7463  Applications folder.
7464 \end_layout
7465
7466 \begin_layout Standard
7467 Reverse search is triggered by Alt-click (OPTION-click).
7468 \end_layout
7469
7470 \begin_layout Subsubsection*
7471 Skim (Mac OSX)
7472 \end_layout
7473
7474 \begin_layout Standard
7475 Enter 
7476 \begin_inset Flex Code
7477 status collapsed
7478
7479 \begin_layout Plain Layout
7480 open -a Skim.app $$i
7481 \end_layout
7482
7483 \end_inset
7484
7485  to the viewer setting in 
7486 \begin_inset Flex Noun
7487 status collapsed
7488
7489 \begin_layout Plain Layout
7490 Preferences\SpecialChar menuseparator
7491 File Handling\SpecialChar menuseparator
7492 File formats\SpecialChar menuseparator
7493 PDF (pdflatex)
7494 \end_layout
7495
7496 \end_inset
7497
7498 , and then in 
7499 \begin_inset Flex Noun
7500 status collapsed
7501
7502 \begin_layout Plain Layout
7503 Skim\SpecialChar menuseparator
7504 Preferences\SpecialChar menuseparator
7505 Sync
7506 \end_layout
7507
7508 \end_inset
7509
7510  choose 
7511 \begin_inset Flex Noun
7512 status collapsed
7513
7514 \begin_layout Plain Layout
7515 custom
7516 \end_layout
7517
7518 \end_inset
7519
7520  preset and enter command 
7521 \begin_inset Flex Noun
7522 status collapsed
7523
7524 \begin_layout Plain Layout
7525 /Applications/\SpecialChar LyX
7526 .app/Contents/MacOS/lyxeditor
7527 \end_layout
7528
7529 \end_inset
7530
7531 .
7532 \end_layout
7533
7534 \begin_layout Standard
7535 Reverse search is triggered by COMMAND-SHIFT-click
7536 \end_layout
7537
7538 \begin_layout Subsubsection*
7539 Okular (KDE)
7540 \end_layout
7541
7542 \begin_layout Standard
7543 Go to 
7544 \begin_inset Flex Noun
7545 status collapsed
7546
7547 \begin_layout Plain Layout
7548 Settings\SpecialChar menuseparator
7549 Configure Okular\SpecialChar menuseparator
7550 Editor
7551 \end_layout
7552
7553 \end_inset
7554
7555 , select 
7556 \begin_inset Quotes eld
7557 \end_inset
7558
7559 Custom Text Editor
7560 \begin_inset Quotes erd
7561 \end_inset
7562
7563  and add the command 
7564 \begin_inset Flex Code
7565 status collapsed
7566
7567 \begin_layout Plain Layout
7568 lyxclient -g %f %l
7569 \end_layout
7570
7571 \end_inset
7572
7573 .
7574 \end_layout
7575
7576 \begin_layout Standard
7577 Reverse search is triggered by SHIFT-click.
7578 \end_layout
7579
7580 \begin_layout Subsubsection*
7581 Qpdfview (Unix)
7582 \end_layout
7583
7584 \begin_layout Standard
7585 Qpdfview supports Sync\SpecialChar TeX
7586  since version 0.3.5.
7587  Go to 
7588 \begin_inset Flex Noun
7589 status collapsed
7590
7591 \begin_layout Plain Layout
7592 Edit\SpecialChar menuseparator
7593 Settings\SpecialChar menuseparator
7594 Behavior
7595 \end_layout
7596
7597 \end_inset
7598
7599 , click on the input field of the 
7600 \begin_inset Quotes eld
7601 \end_inset
7602
7603 Source editor
7604 \begin_inset Quotes erd
7605 \end_inset
7606
7607  item and add the command 
7608 \begin_inset Flex Code
7609 status collapsed
7610
7611 \begin_layout Plain Layout
7612 lyxclient -g %1 %2
7613 \end_layout
7614
7615 \end_inset
7616
7617 .
7618 \end_layout
7619
7620 \begin_layout Standard
7621 Reverse search is triggered by double-click or, in more recent versions,
7622  by context menu.
7623 \end_layout
7624
7625 \begin_layout Subsubsection*
7626 YAP (Windows)
7627 \end_layout
7628
7629 \begin_layout Standard
7630 Launch yap, choose its 
7631 \begin_inset Flex Noun
7632 status collapsed
7633
7634 \begin_layout Plain Layout
7635 View\SpecialChar menuseparator
7636 Options
7637 \end_layout
7638
7639 \end_inset
7640
7641  menu and select the 
7642 \begin_inset Quotes eld
7643 \end_inset
7644
7645 Inverse DVI Search
7646 \begin_inset Quotes erd
7647 \end_inset
7648
7649  tab.
7650  Click on the 
7651 \begin_inset Quotes eld
7652 \end_inset
7653
7654 New\SpecialChar ldots
7655
7656 \begin_inset Quotes erd
7657 \end_inset
7658
7659  button and, in the window that opens, enter 
7660 \begin_inset Quotes eld
7661 \end_inset
7662
7663 \SpecialChar LyX
7664  Editor
7665 \begin_inset Quotes erd
7666 \end_inset
7667
7668  (or any other name you like) in the 
7669 \begin_inset Quotes eld
7670 \end_inset
7671
7672 Name:
7673 \begin_inset Quotes erd
7674 \end_inset
7675
7676  field.
7677  Now click on the button labeled 
7678 \begin_inset Quotes eld
7679 \end_inset
7680
7681 \SpecialChar ldots
7682
7683 \begin_inset Quotes erd
7684 \end_inset
7685
7686  to open a file dialog and navigate to the directory containing the batch
7687  file 
7688 \begin_inset Flex Code
7689 status collapsed
7690
7691 \begin_layout Plain Layout
7692 lyxeditor.bat
7693 \end_layout
7694
7695 \end_inset
7696
7697  (see below).
7698  Select 
7699 \begin_inset Flex Code
7700 status collapsed
7701
7702 \begin_layout Plain Layout
7703 lyxeditor.bat
7704 \end_layout
7705
7706 \end_inset
7707
7708  and then specify the program arguments as 
7709 \begin_inset Flex Code
7710 status collapsed
7711
7712 \begin_layout Plain Layout
7713 %f %l
7714 \end_layout
7715
7716 \end_inset
7717
7718 .
7719  The 
7720 \begin_inset Flex Code
7721 status collapsed
7722
7723 \begin_layout Plain Layout
7724 lyxeditor.bat
7725 \end_layout
7726
7727 \end_inset
7728
7729  wrapper is used for communicating with \SpecialChar LyX
7730  through the 
7731 \emph on
7732 lyxpipe
7733 \emph default
7734  and is as follows:
7735 \end_layout
7736
7737 \begin_layout LyX-Code
7738 @echo off
7739 \begin_inset Newline newline
7740 \end_inset
7741
7742 echo LYXCMD:revdvi:server-goto-file-row:%1 %2> 
7743 \backslash
7744
7745 \backslash
7746 .
7747 \backslash
7748 pipe
7749 \backslash
7750 lyxpipe.in
7751 \begin_inset Newline newline
7752 \end_inset
7753
7754 type 
7755 \backslash
7756
7757 \backslash
7758 .
7759 \backslash
7760 pipe
7761 \backslash
7762 lyxpipe.out
7763 \end_layout
7764
7765 \begin_layout Standard
7766 Make sure that the \SpecialChar LyX
7767 Server pipe path you specified in \SpecialChar LyX
7768  is 
7769 \begin_inset Flex Code
7770 status collapsed
7771
7772 \begin_layout Plain Layout
7773
7774 \backslash
7775
7776 \backslash
7777 .
7778 \backslash
7779 pipe
7780 \backslash
7781 lyxpipe
7782 \end_layout
7783
7784 \end_inset
7785
7786 , otherwise change the 
7787 \begin_inset Flex Code
7788 status collapsed
7789
7790 \begin_layout Plain Layout
7791 lyxeditor.bat
7792 \end_layout
7793
7794 \end_inset
7795
7796  wrapper accordingly.
7797 \end_layout
7798
7799 \begin_layout Standard
7800 In yap, reverse search is triggered by double-click.
7801 \end_layout
7802
7803 \begin_layout Subsubsection*
7804 SumatraPDF (Windows)
7805 \end_layout
7806
7807 \begin_layout Standard
7808 In order to use SumatraPDF for inverse search, enter 
7809 \begin_inset Flex Code
7810 status collapsed
7811
7812 \begin_layout Plain Layout
7813 SumatraPDF -inverse-search "lyxeditor.bat %f %l"
7814 \end_layout
7815
7816 \end_inset
7817
7818  in the viewer setting in 
7819 \begin_inset Flex Noun
7820 status collapsed
7821
7822 \begin_layout Plain Layout
7823 Preferences\SpecialChar menuseparator
7824 File Handling\SpecialChar menuseparator
7825 File formats\SpecialChar menuseparator
7826 PDF (pdflatex)
7827 \end_layout
7828
7829 \end_inset
7830
7831 , where 
7832 \begin_inset Flex Code
7833 status collapsed
7834
7835 \begin_layout Plain Layout
7836 lyxeditor.bat
7837 \end_layout
7838
7839 \end_inset
7840
7841  is the previous wrapper.
7842  If SumatraPDF.exe is not in your command PATH, use its full file name.
7843 \end_layout
7844
7845 \begin_layout Standard
7846 Reverse search is triggered by double-click.
7847 \end_layout
7848
7849 \begin_layout Subsubsection*
7850 YAP (Cygwin)
7851 \end_layout
7852
7853 \begin_layout Standard
7854 First of all, make sure that yap is your default DVI viewer in the Windows
7855  environment, then launch it, choose its 
7856 \begin_inset Flex Noun
7857 status collapsed
7858
7859 \begin_layout Plain Layout
7860 View\SpecialChar menuseparator
7861 Options
7862 \end_layout
7863
7864 \end_inset
7865
7866  menu and select the 
7867 \begin_inset Quotes eld
7868 \end_inset
7869
7870 Inverse DVI Search
7871 \begin_inset Quotes erd
7872 \end_inset
7873
7874  tab.
7875  Click on the 
7876 \begin_inset Quotes eld
7877 \end_inset
7878
7879 New\SpecialChar ldots
7880
7881 \begin_inset Quotes erd
7882 \end_inset
7883
7884  button and, in the window that opens, enter 
7885 \begin_inset Quotes eld
7886 \end_inset
7887
7888 \SpecialChar LyX
7889  Editor
7890 \begin_inset Quotes erd
7891 \end_inset
7892
7893  (or any other name you like) in the 
7894 \begin_inset Quotes eld
7895 \end_inset
7896
7897 Name:
7898 \begin_inset Quotes erd
7899 \end_inset
7900
7901  field.
7902  Now click on the button labeled 
7903 \begin_inset Quotes eld
7904 \end_inset
7905
7906 \SpecialChar ldots
7907
7908 \begin_inset Quotes erd
7909 \end_inset
7910
7911  to open a file dialog and navigate to the directory containing the 
7912 \begin_inset Flex Code
7913 status collapsed
7914
7915 \begin_layout Plain Layout
7916 lyxeditor.exe
7917 \end_layout
7918
7919 \end_inset
7920
7921  program (which is installed by default on Cygwin along with the \SpecialChar LyX
7922  executable).
7923  Select 
7924 \begin_inset Flex Code
7925 status collapsed
7926
7927 \begin_layout Plain Layout
7928 lyxeditor.exe
7929 \end_layout
7930
7931 \end_inset
7932
7933  and then specify the program arguments as 
7934 \begin_inset Flex Code
7935 status collapsed
7936
7937 \begin_layout Plain Layout
7938 -g %f %l
7939 \end_layout
7940
7941 \end_inset
7942
7943 .
7944  In this way, you will be using the 
7945 \emph on
7946 lyxsocket
7947 \emph default
7948  for communicating with \SpecialChar LyX
7949 .
7950  If, for whatever reason, you want to use the 
7951 \emph on
7952 lyxpipe
7953 \emph default
7954 , omit the 
7955 \begin_inset Flex Code
7956 status collapsed
7957
7958 \begin_layout Plain Layout
7959 -g
7960 \end_layout
7961
7962 \end_inset
7963
7964  option and be sure to specify the \SpecialChar LyX
7965 Server pipe path in the \SpecialChar LyX
7966  preferences.
7967 \end_layout
7968
7969 \begin_layout Standard
7970 In yap, reverse search is triggered by double-click.
7971 \end_layout
7972
7973 \begin_layout Subsubsection*
7974 SumatraPDF (Cygwin)
7975 \end_layout
7976
7977 \begin_layout Standard
7978 In order to use SumatraPDF for inverse search, enter 
7979 \begin_inset Flex Code
7980 status collapsed
7981
7982 \begin_layout Plain Layout
7983 SumatraPDF -inverse-search "lyxeditor -g %f %l"
7984 \end_layout
7985
7986 \end_inset
7987
7988  in the viewer setting in 
7989 \begin_inset Flex Noun
7990 status collapsed
7991
7992 \begin_layout Plain Layout
7993 Preferences\SpecialChar menuseparator
7994 File Handling\SpecialChar menuseparator
7995 File formats\SpecialChar menuseparator
7996 PDF (pdflatex)
7997 \end_layout
7998
7999 \end_inset
8000
8001 .
8002  If SumatraPDF.exe is not in your command PATH, use its full posix path.
8003  The 
8004 \begin_inset Flex Code
8005 status collapsed
8006
8007 \begin_layout Plain Layout
8008 -g
8009 \end_layout
8010
8011 \end_inset
8012
8013  enables communication via the 
8014 \emph on
8015 lyxsocket
8016 \emph default
8017 .
8018  Again, omit the 
8019 \begin_inset Flex Code
8020 status collapsed
8021
8022 \begin_layout Plain Layout
8023 -g
8024 \end_layout
8025
8026 \end_inset
8027
8028  option if you want to use the 
8029 \emph on
8030 lyxpipe
8031 \emph default
8032 , and be sure to specify the \SpecialChar LyX
8033 Server pipe path in the \SpecialChar LyX
8034  preferences.
8035 \end_layout
8036
8037 \begin_layout Standard
8038 Reverse search is triggered by double-click.
8039 \end_layout
8040
8041 \begin_layout Section
8042 Forward search
8043 \end_layout
8044
8045 \begin_layout Standard
8046 Forward search is, as the name implies, in a sense the 
8047 \begin_inset Quotes eld
8048 \end_inset
8049
8050 opposite
8051 \begin_inset Quotes erd
8052 \end_inset
8053
8054  of reverse search.
8055  It allows you to let the viewer jump to a given position from within \SpecialChar LyX
8056 .
8057  If forward search is set up (as described in what follows), you can put
8058  the cursor anywhere in your \SpecialChar LyX
8059  document, and hit 
8060 \begin_inset Flex Noun
8061 status collapsed
8062
8063 \begin_layout Plain Layout
8064 Navigate\SpecialChar menuseparator
8065 Forward search
8066 \end_layout
8067
8068 \end_inset
8069
8070  (or select 
8071 \begin_inset Flex Noun
8072 status collapsed
8073
8074 \begin_layout Plain Layout
8075 Forward search
8076 \end_layout
8077
8078 \end_inset
8079
8080  in the context menu via right mouse click), and then the viewer will jump
8081  to that position as well.
8082  This implies, of course, that your viewer supports this function.
8083 \end_layout
8084
8085 \begin_layout Standard
8086 To make forward search possible, you first need to provide the generated
8087  output PDF/DVI file with additional information about the \SpecialChar TeX
8088  sources.
8089  This can be done via the methods described in the section 
8090 \begin_inset CommandInset ref
8091 LatexCommand ref
8092 reference "subsec:rev-search"
8093
8094 \end_inset
8095
8096 .
8097 \end_layout
8098
8099 \begin_layout Standard
8100 Additionally, you need to configure \SpecialChar LyX
8101  for using your viewers in 
8102 \begin_inset Flex Noun
8103 status collapsed
8104
8105 \begin_layout Plain Layout
8106 Tools\SpecialChar menuseparator
8107 Preferences\SpecialChar menuseparator
8108 Output\SpecialChar menuseparator
8109 General
8110 \end_layout
8111
8112 \end_inset
8113
8114 .
8115  We provide a range of tested configurations for some viewers, which you
8116  can select from the drop down list.
8117  If none of these configurations suits you, you have to find out and enter
8118  a suitable configuration yourself.
8119  The definition syntax uses the following placeholders:
8120 \end_layout
8121
8122 \begin_layout Itemize
8123 \noindent
8124 \begin_inset Flex Code
8125 status collapsed
8126
8127 \begin_layout Plain Layout
8128 $$n
8129 \end_layout
8130
8131 \end_inset
8132
8133 : row number
8134 \end_layout
8135
8136 \begin_layout Itemize
8137 \noindent
8138 \begin_inset Flex Code
8139 status collapsed
8140
8141 \begin_layout Plain Layout
8142 $$t
8143 \end_layout
8144
8145 \end_inset
8146
8147 : name of the (temporary) exported .tex file (without path)
8148 \end_layout
8149
8150 \begin_layout Itemize
8151 \noindent
8152 \begin_inset Flex Code
8153 status collapsed
8154
8155 \begin_layout Plain Layout
8156 $$f
8157 \end_layout
8158
8159 \end_inset
8160
8161 : name of the (temporary) exported .tex file (including path)
8162 \end_layout
8163
8164 \begin_layout Itemize
8165 \noindent
8166 \begin_inset Flex Code
8167 status collapsed
8168
8169 \begin_layout Plain Layout
8170 $$o
8171 \end_layout
8172
8173 \end_inset
8174
8175 : name of the exported output file (either dvi or pdf, depending on which
8176  one exists in the temporary directory)
8177 \end_layout
8178
8179 \begin_layout Standard
8180 Note that only some of the viewers provide full forward search functionality,
8181  among them yap, xdvi, okular
8182 \begin_inset Foot
8183 status collapsed
8184
8185 \begin_layout Plain Layout
8186 You might want to set 
8187 \begin_inset Flex Code
8188 status collapsed
8189
8190 \begin_layout Plain Layout
8191 okular –unique
8192 \end_layout
8193
8194 \end_inset
8195
8196  in 
8197 \begin_inset Flex Noun
8198 status collapsed
8199
8200 \begin_layout Plain Layout
8201 Tools\SpecialChar menuseparator
8202 Preferences\SpecialChar menuseparator
8203 File Handling\SpecialChar menuseparator
8204 File
8205 \begin_inset space ~
8206 \end_inset
8207
8208 Formats
8209 \end_layout
8210
8211 \end_inset
8212
8213
8214 \end_layout
8215
8216 \end_inset
8217
8218 , qpdfview and SumatraPDF
8219 \begin_inset Foot
8220 status collapsed
8221
8222 \begin_layout Plain Layout
8223 SumatraPDF can also use DDE commands through the external program CMCDDE
8224  — downloadable from 
8225 \begin_inset CommandInset href
8226 LatexCommand href
8227 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
8228
8229 \end_inset
8230
8231
8232 \end_layout
8233
8234 \end_inset
8235
8236 .
8237  While many of the widespread PDF viewers (most notably Adobe Reader) do
8238  not support forward search at all, some other viewers – e.
8239 \begin_inset space \thinspace{}
8240 \end_inset
8241
8242 g.
8243  evince and xpdf – allow at least to reload the document and jump to a specific
8244  page of the file, so you can at least navigate 
8245 \begin_inset Quotes eld
8246 \end_inset
8247
8248 near
8249 \begin_inset Quotes erd
8250 \end_inset
8251
8252 .
8253  This latter functionality is provided by an external call of synctex (see
8254  the predefined example configurations).
8255  
8256 \end_layout
8257
8258 \begin_layout Standard
8259 Forward search works both with DVI and PDF output.
8260  \SpecialChar LyX
8261  simply checks which preview format you have used before (i.
8262 \begin_inset space \thinspace{}
8263 \end_inset
8264
8265 e., which format is already there in the temporary directory) and chooses
8266  the appropriate configuration for the respective format.
8267 \end_layout
8268
8269 \begin_layout Chapter
8270 Special Document Classes
8271 \end_layout
8272
8273 \begin_layout Section
8274 A&A Paper
8275 \end_layout
8276
8277 \begin_layout Standard
8278 by 
8279 \noun on
8280 Peter Sütterlin
8281 \end_layout
8282
8283 \begin_layout Subsection
8284 Introduction
8285 \end_layout
8286
8287 \begin_layout Standard
8288 This section describes how \SpecialChar LyX
8289  can be used to write articles for submission
8290  to the scientific journal 
8291 \emph on
8292 Astronomy and Astrophysics
8293 \emph default
8294  (
8295 \begin_inset Flex URL
8296 status collapsed
8297
8298 \begin_layout Plain Layout
8299
8300 http://www.edpsciences.fr/aa/
8301 \end_layout
8302
8303 \end_inset
8304
8305 ) using Version 5.01 of the document class 
8306 \family typewriter
8307 aa.cls
8308 \family default
8309 .
8310  This package can be downloaded from the ftp site
8311 \end_layout
8312
8313 \begin_layout Standard
8314 \begin_inset VSpace medskip
8315 \end_inset
8316
8317
8318 \end_layout
8319
8320 \begin_layout Standard
8321 \align center
8322 \begin_inset Flex URL
8323 status collapsed
8324
8325 \begin_layout Plain Layout
8326
8327 ftp://ftp.edpsciences.org/pub/aa/readme.html
8328 \end_layout
8329
8330 \end_inset
8331
8332
8333 \end_layout
8334
8335 \begin_layout Standard
8336 \begin_inset VSpace medskip
8337 \end_inset
8338
8339
8340 \end_layout
8341
8342 \begin_layout Standard
8343 A manual comes together with that package, and this text is not meant to
8344  replace the original manual but is merely a short guide in how to realize
8345  the correct form of your paper.
8346  
8347 \end_layout
8348
8349 \begin_layout Standard
8350 Please note that the publisher of the journal was changed from Springer
8351  to EDP Sciences starting January 1, 2001.
8352  That change involved also some slight changes to the style files, namely
8353  the removal of the thesaurus command.
8354  The \SpecialChar LyX
8355  class aa supports the newest version of these style files, V 5.01.
8356  If you have an older version installed, please upgrade.
8357  For compatibility, the old (version 4) layout has been kept as 
8358 \family sans
8359 article (A&A V4)
8360 \family default
8361 .
8362  Please refer to the comments in 
8363 \family typewriter
8364 \SpecialChar LyX
8365 Dir/layouts/aapaper.layout
8366 \family default
8367 .
8368 \end_layout
8369
8370 \begin_layout Subsection
8371 Getting started
8372 \end_layout
8373
8374 \begin_layout Standard
8375 It is recommended you start from the example template distributed with \SpecialChar LyX
8376 .
8377  If you are not using a template, note the following settings:
8378 \end_layout
8379
8380 \begin_layout Itemize
8381 Select 
8382 \family sans
8383 article (A&A)
8384 \family default
8385  in the 
8386 \family sans
8387 Document\SpecialChar menuseparator
8388 Settings
8389 \family default
8390  dialog (OK, that one was obvious).
8391 \end_layout
8392
8393 \begin_layout Itemize
8394 Don't change the option 
8395 \family sans
8396 Page
8397 \begin_inset space ~
8398 \end_inset
8399
8400 style
8401 \family default
8402 : Leave it set to 
8403 \family sans
8404 default
8405 \family default
8406 .
8407  The whole layout is done by the macros, you shouldn't change anything.
8408 \end_layout
8409
8410 \begin_layout Subsection
8411 The header block
8412 \end_layout
8413
8414 \begin_layout Standard
8415 First thing to enter is the header information.
8416  It consists of seven entries, of which some are optional.
8417  They are
8418 \end_layout
8419
8420 \begin_layout Itemize
8421
8422 \family sans
8423 Title
8424 \family default
8425 : [required] 
8426 \end_layout
8427
8428 \begin_layout Itemize
8429
8430 \family sans
8431 Subtitle
8432 \family default
8433 : [optional] 
8434 \end_layout
8435
8436 \begin_layout Itemize
8437
8438 \family sans
8439 Author
8440 \family default
8441 : [required]
8442 \end_layout
8443
8444 \begin_layout Itemize
8445
8446 \family sans
8447 Address
8448 \family default
8449 : [required]
8450 \end_layout
8451
8452 \begin_layout Itemize
8453
8454 \family sans
8455 Offprints
8456 \family default
8457 : [optional] if more than one author: whom to contact for offprint requests.
8458 \end_layout
8459
8460 \begin_layout Itemize
8461
8462 \family sans
8463 Mail
8464 \family default
8465 : [optional] mail address for contacts.
8466 \end_layout
8467
8468 \begin_layout Itemize
8469
8470 \family sans
8471 Date
8472 \family default
8473 : [required].
8474  Suggested format is 
8475 \family typewriter
8476 Received: <date>; Accepted <date> 
8477 \end_layout
8478
8479 \begin_layout Standard
8480 There is no need to issue the 
8481 \family typewriter
8482
8483 \backslash
8484 maketitle
8485 \family default
8486  command, this is done automatically by \SpecialChar LyX
8487  when the header is finished.
8488  Although the order of the single header entries doesn't matter it is advised
8489  to keep the above sequence, just to get the best optics and meets the layout
8490  of the real document.
8491 \end_layout
8492
8493 \begin_layout Standard
8494 If you want to place footnotes in the header block, e.
8495 \begin_inset space \thinspace{}
8496 \end_inset
8497
8498 g.
8499 \begin_inset space \space{}
8500 \end_inset
8501
8502 to state your present address, just use the standard footnote via the menu
8503  
8504 \family sans
8505 Insert\SpecialChar menuseparator
8506 Footnote.
8507
8508 \family default
8509  \SpecialChar LyX
8510  will automagically use the term 
8511 \family typewriter
8512
8513 \backslash
8514 thanks{}
8515 \family default
8516  in that case.
8517 \end_layout
8518
8519 \begin_layout Standard
8520 In addition to these topics, the macros use three additional \SpecialChar LaTeX
8521  commands that
8522  have no counterpart in \SpecialChar LyX
8523 :
8524 \end_layout
8525
8526 \begin_layout Itemize
8527
8528 \family typewriter
8529
8530 \backslash
8531 and
8532 \family default
8533  to separate different names for more than one author and institute, respectivel
8534 y.
8535 \end_layout
8536
8537 \begin_layout Itemize
8538
8539 \family typewriter
8540
8541 \backslash
8542 inst{<nr>}
8543 \family default
8544 to mark corresponding author/institute pairs.
8545  The institutes are numbered sequentially as they appear in the 
8546 \family sans
8547 Address
8548 \family default
8549  field, so you have to put a marker to each author.
8550 \end_layout
8551
8552 \begin_layout Itemize
8553
8554 \family typewriter
8555
8556 \backslash
8557 email{address}
8558 \family default
8559  to supply an email address for fast contact.
8560 \end_layout
8561
8562 \begin_layout Standard
8563 In all cases, the appropriate command has to be entered in \SpecialChar LyX
8564  and marked as
8565  \SpecialChar LaTeX
8566  code.
8567  See the examples.
8568  
8569 \end_layout
8570
8571 \begin_layout Subsection
8572 The abstract
8573 \end_layout
8574
8575 \begin_layout Standard
8576 The abstract should immediately follow the header block.
8577  With version 5 the abstract environment was changed to a command, and there
8578  is now a resctriction to only one paragraph.
8579  In addition, it should contain an entry with the keywords.
8580  This is not yet implemented for \SpecialChar LyX
8581 , therefore you have to enter the \SpecialChar LaTeX
8582  command
8583  
8584 \family typewriter
8585
8586 \backslash
8587 keywords{}
8588 \family default
8589  by hand and mark it as \SpecialChar LaTeX
8590  code.
8591  Refer to the example paper.
8592 \end_layout
8593
8594 \begin_layout Subsection
8595 Supported environments
8596 \end_layout
8597
8598 \begin_layout Standard
8599 The A&A paper layout supports the following environments for structuring
8600  your text:
8601 \end_layout
8602
8603 \begin_layout Itemize
8604
8605 \family sans
8606 Standard
8607 \end_layout
8608
8609 \begin_layout Itemize
8610
8611 \family sans
8612 Section
8613 \end_layout
8614
8615 \begin_layout Itemize
8616
8617 \family sans
8618 Subsection
8619 \end_layout
8620
8621 \begin_layout Itemize
8622
8623 \family sans
8624 Subsubsection
8625 \end_layout
8626
8627 \begin_layout Itemize
8628
8629 \family sans
8630 Itemize
8631 \end_layout
8632
8633 \begin_layout Itemize
8634
8635 \family sans
8636 Enumerate
8637 \end_layout
8638
8639 \begin_layout Itemize
8640
8641 \family sans
8642 Description
8643 \end_layout
8644
8645 \begin_layout Itemize
8646
8647 \family sans
8648 Caption
8649 \end_layout
8650
8651 \begin_layout Itemize
8652
8653 \family sans
8654 Abstract
8655 \end_layout
8656
8657 \begin_layout Itemize
8658
8659 \family sans
8660 Acknowledgment
8661 \end_layout
8662
8663 \begin_layout Itemize
8664
8665 \family sans
8666 Bibliography
8667 \end_layout
8668
8669 \begin_layout Itemize
8670
8671 \family sans
8672 \SpecialChar LaTeX
8673
8674 \end_layout
8675
8676 \begin_layout Subsection
8677 Commands not supported by \SpecialChar LyX
8678
8679 \end_layout
8680
8681 \begin_layout Standard
8682 Some commands are not yet supported by the 
8683 \family sans
8684 paper (A&A)
8685 \family default
8686  layout for \SpecialChar LyX
8687 .
8688  Some have already been mentioned.
8689  For the sake of completeness, they are listed all together here:
8690 \end_layout
8691
8692 \begin_layout Itemize
8693
8694 \family typewriter
8695
8696 \backslash
8697 and
8698 \end_layout
8699
8700 \begin_layout Itemize
8701
8702 \family typewriter
8703
8704 \backslash
8705 email
8706 \end_layout
8707
8708 \begin_layout Itemize
8709
8710 \family typewriter
8711
8712 \backslash
8713 appendix
8714 \end_layout
8715
8716 \begin_layout Itemize
8717
8718 \family typewriter
8719
8720 \backslash
8721 authorrunning
8722 \end_layout
8723
8724 \begin_layout Itemize
8725
8726 \family typewriter
8727
8728 \backslash
8729 inst{}
8730 \end_layout
8731
8732 \begin_layout Itemize
8733
8734 \family typewriter
8735
8736 \backslash
8737 keywords{}
8738 \end_layout
8739
8740 \begin_layout Itemize
8741
8742 \family typewriter
8743
8744 \backslash
8745 object{}
8746 \end_layout
8747
8748 \begin_layout Itemize
8749
8750 \family typewriter
8751
8752 \backslash
8753 titlerunning{}
8754 \end_layout
8755
8756 \begin_layout Standard
8757 If you want to use any of these commands, you have to enter them yourself.
8758  
8759 \series bold
8760 Do not forget to mark them as \SpecialChar LaTeX
8761  code!
8762 \end_layout
8763
8764 \begin_layout Subsection
8765 Figure and Table Floats
8766 \end_layout
8767
8768 \begin_layout Standard
8769 \SpecialChar LyX
8770  provides support for the necessary float environments 
8771 \family sans
8772 figure, figure*, table
8773 \family default
8774  and 
8775 \family sans
8776 table*
8777 \family default
8778 , therefore we won't tell much about it here.
8779  Refer to the 
8780 \emph on
8781 User's
8782 \begin_inset space ~
8783 \end_inset
8784
8785 Guide
8786 \emph default
8787 .
8788  Just remember that tables should be left-aligned.
8789  For that, select the table and change the alignment in 
8790 \family sans
8791 Edit\SpecialChar menuseparator
8792 Paragraph
8793 \begin_inset space ~
8794 \end_inset
8795
8796 Settings.
8797 \end_layout
8798
8799 \begin_layout Standard
8800 There is only one special thing: the figures with caption besides the figure.
8801  To create such a figure, you have to do the following:
8802 \end_layout
8803
8804 \begin_layout Enumerate
8805 Create a wide figure float: 
8806 \family sans
8807 Insert\SpecialChar menuseparator
8808 Float\SpecialChar menuseparator
8809 Figure
8810 \family default
8811 , then right click in the figure and select 
8812 \family sans
8813 Span
8814 \begin_inset space ~
8815 \end_inset
8816
8817 columns
8818 \family default
8819 .
8820 \end_layout
8821
8822 \begin_layout Enumerate
8823 Enter your caption text.
8824 \end_layout
8825
8826 \begin_layout Enumerate
8827 Press 
8828 \family sans
8829 Return
8830 \family default
8831  to move the cursor above the caption.
8832 \end_layout
8833
8834 \begin_layout Enumerate
8835 Insert your figure
8836 \end_layout
8837
8838 \begin_layout Enumerate
8839 Position the cursor behind the figure and insert a horizontal fill: 
8840 \family sans
8841 Insert\SpecialChar menuseparator
8842 Special
8843 \begin_inset space ~
8844 \end_inset
8845
8846 Character\SpecialChar menuseparator
8847 Horizontal
8848 \begin_inset space ~
8849 \end_inset
8850
8851 Fill
8852 \family default
8853 .
8854 \end_layout
8855
8856 \begin_layout Enumerate
8857 Switch to \SpecialChar LaTeX
8858  mode: 
8859 \family sans
8860 M-c
8861 \begin_inset space ~
8862 \end_inset
8863
8864 t
8865 \family default
8866 .
8867 \end_layout
8868
8869 \begin_layout Enumerate
8870 Enter 
8871 \family typewriter
8872
8873 \backslash
8874 parbox[b]{55mm}{
8875 \family default
8876 .
8877  
8878 \series bold
8879 Do not close the brace!
8880 \end_layout
8881
8882 \begin_layout Enumerate
8883 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
8884  mode and insert
8885  the closing brace: 
8886 \family sans
8887 M-c
8888 \begin_inset space ~
8889 \end_inset
8890
8891 t
8892 \family default
8893  
8894 \family typewriter
8895 }
8896 \family default
8897 .
8898 \end_layout
8899
8900 \begin_layout Standard
8901 Also, refer to the figures in the example paper.
8902 \end_layout
8903
8904 \begin_layout Subsection
8905 Referee layout
8906 \end_layout
8907
8908 \begin_layout Standard
8909 For submission, the paper has to be formated in a special double-spacing
8910  layout.
8911  For this purpose, you have to give the option 
8912 \family typewriter
8913 referee
8914 \family default
8915  to the documentclass.
8916  This must be done using the extra class options field in the 
8917 \family sans
8918 Document\SpecialChar menuseparator
8919 Settings
8920 \family default
8921  dialog.
8922  Just enter the string 
8923 \family typewriter
8924 referee
8925 \family default
8926  there.
8927 \end_layout
8928
8929 \begin_layout Subsection
8930 The example paper
8931 \end_layout
8932
8933 \begin_layout Standard
8934 The 
8935 \family sans
8936 Examples
8937 \family default
8938  directory contains an example paper written with \SpecialChar LyX
8939 .
8940  It is the example paper from the original macro package, translated to
8941  \SpecialChar LyX
8942 .
8943  Use it for inspiration, and compare the original \SpecialChar LaTeX
8944  code with \SpecialChar LyX
8945  way of writing.
8946 \end_layout
8947
8948 \begin_layout Section
8949 AAS\SpecialChar TeX
8950
8951 \end_layout
8952
8953 \begin_layout Standard
8954 by 
8955 \noun on
8956 Mike Ressler
8957 \end_layout
8958
8959 \begin_layout Subsection
8960 Introduction
8961 \end_layout
8962
8963 \begin_layout Standard
8964 AAS\SpecialChar TeX
8965  is a set of macros produced by the American Astronomical Society to
8966  facilitate electronic manuscript submission to the three journals they
8967  publish: the Astrophysical Journal (including the Letters and Supplement),
8968  the Astronomical Journal, and the Publications of the Astronomical Society
8969  of the Pacific.
8970  \SpecialChar LyX
8971  has proven to be an excellent tool for generating these documents, especially
8972  given its equation, citation, and figure handling capabilities.
8973  \SpecialChar LyX
8974  requires version 5.0 (or higher) of these macros; preferably 5.2, which
8975  is the version described here, or higher.
8976  Versions prior to 5.0 are intended for use with \SpecialChar LaTeX
8977 2.09 and are fundamentally
8978  incompatible with \SpecialChar LyX
8979 .
8980  The AAS\SpecialChar TeX
8981  package may be downloaded from the AAS\SpecialChar TeX
8982  Web site
8983 \end_layout
8984
8985 \begin_layout Standard
8986 \begin_inset VSpace medskip
8987 \end_inset
8988
8989
8990 \end_layout
8991
8992 \begin_layout Standard
8993 \align center
8994 \begin_inset Flex URL
8995 status collapsed
8996
8997 \begin_layout Plain Layout
8998
8999 https://aas.org/aastex/aastex-downloads
9000 \end_layout
9001
9002 \end_inset
9003
9004
9005 \end_layout
9006
9007 \begin_layout Standard
9008 \begin_inset VSpace medskip
9009 \end_inset
9010
9011
9012 \end_layout
9013
9014 \begin_layout Standard
9015 A complete user guide is contained in that package and you should familiarize
9016  yourself with it thoroughly before embarking on writing a paper in \SpecialChar LyX
9017 .
9018  \SpecialChar LyX
9019  will not reduce the need to figure out all the AAS\SpecialChar TeX
9020  commands, it will only
9021  reduce the drudgery of typing everything in.
9022  It is your responsibility to ensure that the final exported \SpecialChar LaTeX
9023  document conforms
9024  completely to the requirements of the journal to which you are submitting
9025  your paper.
9026 \end_layout
9027
9028 \begin_layout Subsection
9029 Starting a New Paper
9030 \end_layout
9031
9032 \begin_layout Standard
9033 I strongly suggest that you start with the AAS\SpecialChar TeX
9034  template file.
9035  Click on 
9036 \family sans
9037 File\SpecialChar menuseparator
9038 New from
9039 \family default
9040  
9041 \family sans
9042 Template
9043 \family default
9044 , enter the new file name, then choose the 
9045 \family typewriter
9046 aastex.lyx
9047 \family default
9048  template.
9049  This will show the most common fields found in a manuscript.
9050  Simply overwrite the existing text (including the brackets, 
9051 \family typewriter
9052 <>
9053 \family default
9054 ) with the correct information.
9055  Many of the AAS\SpecialChar TeX
9056  commands and environments can be implemented directly in
9057  \SpecialChar LyX
9058 , but some cannot: most noticeably 
9059 \family typewriter
9060
9061 \backslash
9062 altaffilmark
9063 \family default
9064  and 
9065 \family typewriter
9066
9067 \backslash
9068 altaffiltext
9069 \family default
9070 , which should stick out like a sore thumb if you actually just opened the
9071  template file.
9072  For commands such as these, the \SpecialChar LaTeX
9073  code must be entered directly and marked
9074  as such.
9075  Such commands are referred to as \SpecialChar TeX
9076  code, or Evil Red Text.
9077  I tried to minimize the amount of \SpecialChar TeX
9078  code needed in an AAS\SpecialChar TeX
9079  document, but
9080  there is still a bit more required than any of us would like.
9081 \end_layout
9082
9083 \begin_layout Subsection
9084 Finishing Your Paper
9085 \end_layout
9086
9087 \begin_layout Standard
9088 When the paper is finished to your satisfaction and previews/prints correctly,
9089  there are a few 
9090 \begin_inset Quotes eld
9091 \end_inset
9092
9093 postprocessing
9094 \begin_inset Quotes erd
9095 \end_inset
9096
9097  actions which need to be done before you submit it to the journals.
9098  
9099 \end_layout
9100
9101 \begin_layout Enumerate
9102 Export your paper as a \SpecialChar LaTeX
9103  file (
9104 \family sans
9105 File\SpecialChar menuseparator
9106 Export\SpecialChar menuseparator
9107 \SpecialChar LaTeX
9108
9109 \family default
9110 ).
9111  
9112 \end_layout
9113
9114 \begin_layout Enumerate
9115 Edit the resulting 
9116 \family typewriter
9117 .tex
9118 \family default
9119  file with your favorite text editor
9120 \end_layout
9121
9122 \begin_deeper
9123 \begin_layout Enumerate
9124 remove the comment lines before the 
9125 \family typewriter
9126
9127 \backslash
9128 documentclass
9129 \family default
9130  command
9131 \end_layout
9132
9133 \begin_layout Enumerate
9134 remove the 
9135 \family typewriter
9136
9137 \backslash
9138 usepackage...{fontenc}
9139 \family default
9140  line if it appears (usually just after 
9141 \family typewriter
9142
9143 \backslash
9144 documentclass
9145 \family default
9146 }; also remove the 
9147 \family typewriter
9148
9149 \backslash
9150 secnumdepth
9151 \family default
9152  line if it appears.
9153 \end_layout
9154
9155 \begin_layout Enumerate
9156 remove everything between (and including) the 
9157 \family typewriter
9158
9159 \backslash
9160 makeatletter
9161 \family default
9162  and 
9163 \family typewriter
9164
9165 \backslash
9166 makeatother
9167 \family default
9168  commands, except for any commands you specifically put into the \SpecialChar LaTeX
9169  preamble
9170  (which should appear immediately after the 
9171 \begin_inset Quotes eld
9172 \end_inset
9173
9174 User specified \SpecialChar LaTeX
9175  commands
9176 \begin_inset Quotes erd
9177 \end_inset
9178
9179  comment in the 
9180 \family typewriter
9181 .tex
9182 \family default
9183  file).
9184 \end_layout
9185
9186 \end_deeper
9187 \begin_layout Enumerate
9188 Run the resulting file through \SpecialChar LaTeX
9189  to make sure it still processes correctly.
9190 \end_layout
9191
9192 \begin_layout Enumerate
9193 Reread the journal requirements to make sure your filenames and formats
9194  are correct.
9195 \end_layout
9196
9197 \begin_layout Enumerate
9198 Submit it.
9199 \end_layout
9200
9201 \begin_layout Subsection
9202 Comments On Specific Commands
9203 \end_layout
9204
9205 \begin_layout Standard
9206 I will not describe the detailed usage of the individual AAS\SpecialChar TeX
9207  commands: the
9208  AAS\SpecialChar TeX
9209  User Guide (
9210 \family typewriter
9211 aasguide.tex
9212 \family default
9213 ) gives a good description of each.
9214  Thus it's probably easiest for me to go down the list as found in the guide
9215  and offer comments where necessary.
9216  So let's begin \SpecialChar ldots
9217
9218 \end_layout
9219
9220 \begin_layout Subsubsection
9221 Things that work as expected
9222 \end_layout
9223
9224 \begin_layout Standard
9225 Because they work as you might expect, I simply list them and the section
9226  they are found in: 
9227 \family typewriter
9228
9229 \backslash
9230 documentclass
9231 \family default
9232  (2.1.1), 
9233 \family typewriter
9234
9235 \backslash
9236 begin{document}
9237 \family default
9238  (2.2), 
9239 \family typewriter
9240
9241 \backslash
9242 title
9243 \family default
9244  (2.3), 
9245 \family typewriter
9246
9247 \backslash
9248 author
9249 \family default
9250  (2.3), 
9251 \family typewriter
9252
9253 \backslash
9254 affil
9255 \family default
9256  (2.3), 
9257 \family typewriter
9258
9259 \backslash
9260 abstract
9261 \family default
9262  (2.4), 
9263 \family typewriter
9264
9265 \backslash
9266 keywords
9267 \family default
9268  (2.5), 
9269 \family typewriter
9270
9271 \backslash
9272 section
9273 \family default
9274  (2.7), 
9275 \family typewriter
9276
9277 \backslash
9278 subsection
9279 \family default
9280  (2.7), 
9281 \family typewriter
9282
9283 \backslash
9284 subsubsection
9285 \family default
9286  (2.7), 
9287 \family typewriter
9288
9289 \backslash
9290 paragraph
9291 \family default
9292  (2.7), 
9293 \family typewriter
9294
9295 \backslash
9296 facility
9297 \family default
9298  (2.10), 
9299 \family typewriter
9300
9301 \backslash
9302 begin{displaymath}
9303 \family default
9304  (2.12), 
9305 \family typewriter
9306
9307 \backslash
9308 begin{equation}
9309 \family default
9310  (2.12), 
9311 \family typewriter
9312
9313 \backslash
9314 begin{eqnarray}
9315 \family default
9316  (2.12), 
9317 \family typewriter
9318
9319 \backslash
9320 begin{mathletters}
9321 \family default
9322  (2.12), 
9323 \family typewriter
9324
9325 \backslash
9326 begin{thebibliography}
9327 \family default
9328  (2.13.1), 
9329 \family typewriter
9330
9331 \backslash
9332 bibitem
9333 \family default
9334  (2.13.2), all the cite commands and their variations (2.13.2), the generic
9335  graphicx figure commands (2.14.1), 
9336 \family typewriter
9337
9338 \backslash
9339 begin{table}
9340 \family default
9341  (2.15.4), 
9342 \family typewriter
9343
9344 \backslash
9345 begin{tabular}
9346 \family default
9347  (2.15.4), 
9348 \family typewriter
9349
9350 \backslash
9351 caption
9352 \family default
9353  (2.15.4), 
9354 \family typewriter
9355
9356 \backslash
9357 label
9358 \family default
9359  (2.15.4, amongst other places), 
9360 \family typewriter
9361
9362 \backslash
9363 tablerefs
9364 \family default
9365  (2.15.5), 
9366 \family typewriter
9367
9368 \backslash
9369 tablecomments
9370 \family default
9371  (2.15.5), 
9372 \family typewriter
9373
9374 \backslash
9375 url
9376 \family default
9377  (2.17.4), 
9378 \family typewriter
9379
9380 \backslash
9381 end{document}
9382 \family default
9383  (2.18).
9384 \end_layout
9385
9386 \begin_layout Standard
9387 The following style options also work correctly: 
9388 \family typewriter
9389 longabstract
9390 \family default
9391  (2.4), 
9392 \family typewriter
9393 preprint
9394 \family default
9395  (3.2.1), 
9396 \family typewriter
9397 preprint2
9398 \family default
9399  (3.2.2), 
9400 \family typewriter
9401 eqsecnum
9402 \family default
9403  (3.3), 
9404 \family typewriter
9405 flushrt
9406 \family default
9407  (3.4).
9408  Simply put them in the 
9409 \family sans
9410 Options
9411 \family default
9412  box in 
9413 \family sans
9414 Layout\SpecialChar menuseparator
9415 Document
9416 \family default
9417 .
9418 \end_layout
9419
9420 \begin_layout Subsubsection
9421 Things that work, but require more comment
9422 \end_layout
9423
9424 \begin_layout Standard
9425 The following items work, but require a little more discussion:
9426 \end_layout
9427
9428 \begin_layout Itemize
9429 These items are reserved for use by the journal editors, but you can put
9430  them into the \SpecialChar LaTeX
9431  preamble if you feel compelled to do so: 
9432 \family typewriter
9433
9434 \backslash
9435 received
9436 \family default
9437
9438 \family typewriter
9439
9440 \backslash
9441 revised
9442 \family default
9443
9444 \family typewriter
9445
9446 \backslash
9447 accepted
9448 \family default
9449
9450 \family typewriter
9451
9452 \backslash
9453 ccc
9454 \family default
9455
9456 \family typewriter
9457
9458 \backslash
9459 cpright
9460 \family default
9461  (all from 2.1.3)
9462 \end_layout
9463
9464 \begin_layout Itemize
9465 These items may be placed in the \SpecialChar LaTeX
9466  preamble, and are included as blanks in
9467  the template file: 
9468 \family typewriter
9469
9470 \backslash
9471 slugcomment
9472 \family default
9473  (2.1.4), 
9474 \family typewriter
9475
9476 \backslash
9477 shorttitle
9478 \family default
9479  (2.1.5), 
9480 \family typewriter
9481
9482 \backslash
9483 shortauthors
9484 \family default
9485  (2.1.5)
9486 \end_layout
9487
9488 \begin_layout Itemize
9489
9490 \family typewriter
9491
9492 \backslash
9493 email
9494 \family default
9495  (2.3) – can only be used 
9496 \begin_inset Quotes eld
9497 \end_inset
9498
9499 standalone
9500 \begin_inset Quotes erd
9501 \end_inset
9502
9503 , not in the middle of a paragraph.
9504  Use \SpecialChar TeX
9505  code if you need to embed it.
9506 \end_layout
9507
9508 \begin_layout Itemize
9509
9510 \family typewriter
9511
9512 \backslash
9513 and
9514 \family default
9515  (2.3) – will have extra {} after it.
9516  This should not cause an error.
9517 \end_layout
9518
9519 \begin_layout Itemize
9520
9521 \family typewriter
9522
9523 \backslash
9524 notetoeditor
9525 \family default
9526  (2.6) – can only be used 
9527 \begin_inset Quotes eld
9528 \end_inset
9529
9530 standalone
9531 \begin_inset Quotes erd
9532 \end_inset
9533
9534 , not in the middle of a paragraph.
9535  Use \SpecialChar TeX
9536  code if you need to embed it.
9537 \end_layout
9538
9539 \begin_layout Itemize
9540
9541 \family typewriter
9542
9543 \backslash
9544 placetable
9545 \family default
9546  (2.8) – can't insert a cross-reference tag, you must type the tag name by
9547  hand
9548 \end_layout
9549
9550 \begin_layout Itemize
9551
9552 \family typewriter
9553
9554 \backslash
9555 placefigure
9556 \family default
9557  (2.8) – same as for 
9558 \family typewriter
9559
9560 \backslash
9561 placetable
9562 \end_layout
9563
9564 \begin_layout Itemize
9565
9566 \family typewriter
9567
9568 \backslash
9569 acknowledgements
9570 \family default
9571  (2.9) – will have extra {} after it.
9572  This should not cause an error.
9573 \end_layout
9574
9575 \begin_layout Itemize
9576
9577 \family typewriter
9578
9579 \backslash
9580 appendix
9581 \family default
9582  (2.11) – will have extra {} after it.
9583  This should not cause an error.
9584 \end_layout
9585
9586 \begin_layout Itemize
9587
9588 \family typewriter
9589
9590 \backslash
9591 figcaption
9592 \family default
9593  (2.14.2) – you can insert an optional filename argument by placing the cursor
9594  at the beginning of the text and selecting 
9595 \family sans
9596 Insert\SpecialChar menuseparator
9597 Short Title
9598 \family default
9599 .
9600  
9601 \begin_inset Quotes eld
9602 \end_inset
9603
9604 Short Title
9605 \begin_inset Quotes erd
9606 \end_inset
9607
9608  inserts an optional argument of the type needed by 
9609 \family typewriter
9610
9611 \backslash
9612 figcaption
9613 \family default
9614 .
9615  Hopefully it will be renamed someday.
9616 \end_layout
9617
9618 \begin_layout Itemize
9619
9620 \family typewriter
9621
9622 \backslash
9623 objectname
9624 \family default
9625  (2.17.1) – same as 
9626 \family typewriter
9627
9628 \backslash
9629 figcaption
9630 \family default
9631  for the catalog ID optional parameter
9632 \end_layout
9633
9634 \begin_layout Itemize
9635
9636 \family typewriter
9637
9638 \backslash
9639 dataset
9640 \family default
9641  (2.17.1) – same as 
9642 \family typewriter
9643
9644 \backslash
9645 figcaption
9646 \family default
9647  for the catalog ID optional parameter
9648 \end_layout
9649
9650 \begin_layout Subsubsection
9651 Things not implemented, use \SpecialChar TeX
9652  code
9653 \end_layout
9654
9655 \begin_layout Standard
9656
9657 \family typewriter
9658
9659 \backslash
9660 altaffilmark
9661 \family default
9662  (2.3), 
9663 \family typewriter
9664
9665 \backslash
9666 altaffiltext
9667 \family default
9668  (2.3), 
9669 \family typewriter
9670
9671 \backslash
9672 eqnum
9673 \family default
9674  (2.12), 
9675 \family typewriter
9676
9677 \backslash
9678 setcounter{equation}
9679 \family default
9680  (2.12), Journal name abbreviations (2.13.4), 
9681 \family typewriter
9682
9683 \backslash
9684 figurenum
9685 \family default
9686  (2.14.1), 
9687 \family typewriter
9688
9689 \backslash
9690 epsscale
9691 \family default
9692  (2.14.1), 
9693 \family typewriter
9694
9695 \backslash
9696 plotone
9697 \family default
9698  (2.14.1), 
9699 \family typewriter
9700
9701 \backslash
9702 plottwo
9703 \family default
9704  (2.14.1), 
9705 \family typewriter
9706
9707 \backslash
9708 tablenum
9709 \family default
9710  (2.15.4), 
9711 \family typewriter
9712
9713 \backslash
9714 tableline
9715 \family default
9716  (2.15.4, insert it as the first element in the lefthand cell after where
9717  you want it.
9718  Don't use any of \SpecialChar LyX
9719 's rules in the table), 
9720 \family typewriter
9721
9722 \backslash
9723 tablenotemark
9724 \family default
9725  (2.15.5), 
9726 \family typewriter
9727
9728 \backslash
9729 tablenotetext
9730 \family default
9731  (2.15.5), much of Misc (2.17, except 
9732 \family typewriter
9733
9734 \backslash
9735 objectname
9736 \family default
9737
9738 \family typewriter
9739
9740 \backslash
9741 dataset
9742 \family default
9743
9744 \family typewriter
9745
9746 \backslash
9747 url
9748 \family default
9749 , and 
9750 \family typewriter
9751
9752 \backslash
9753 email
9754 \family default
9755 ; see above), 
9756 \family typewriter
9757
9758 \backslash
9759 singlespace
9760 \family default
9761  (3.1), 
9762 \family typewriter
9763
9764 \backslash
9765 doublespace
9766 \family default
9767  (3.1), 
9768 \family typewriter
9769
9770 \backslash
9771 onecolumn
9772 \family default
9773  (3.2), 
9774 \family typewriter
9775
9776 \backslash
9777 twocolumn
9778 \family default
9779  (3.2)
9780 \end_layout
9781
9782 \begin_layout Subsubsection
9783 Things that cannot be implemented
9784 \end_layout
9785
9786 \begin_layout Standard
9787 \SpecialChar ldots
9788  at least in any meaningful sort of way, so I suggest ignoring them.
9789  They are the references environment (2.13.3), and the deluxetable environment
9790  (2.15).
9791  If you really, really need to use deluxetable, I suggest editing it in
9792  a separate file with a text editor, then using 
9793 \family sans
9794 Insert\SpecialChar menuseparator
9795 Child
9796 \begin_inset space ~
9797 \end_inset
9798
9799 Document
9800 \family default
9801  to include it in your \SpecialChar LyX
9802  document.
9803  See the 
9804 \family typewriter
9805 aas_sample.lyx
9806 \family default
9807  file to see an example of this.
9808 \end_layout
9809
9810 \begin_layout Subsection
9811 FAQs, Tips, Tricks, and Other Ruminations
9812 \end_layout
9813
9814 \begin_layout Subsubsection
9815 Getting \SpecialChar LyX
9816  and AAS\SpecialChar TeX
9817  to cooperate
9818 \end_layout
9819
9820 \begin_layout Standard
9821 It can be a bit tricky to get \SpecialChar LyX
9822  to recognize a new layout and document class.
9823  When all else fails, do this:
9824 \end_layout
9825
9826 \begin_layout Enumerate
9827 Make certain that \SpecialChar LaTeX
9828  can find AAS\SpecialChar TeX
9829 .
9830  Copy sample.tex (and perhaps table.tex) from the AAS\SpecialChar TeX
9831  distribution into a
9832  directory completely unrelated to \SpecialChar LaTeX
9833  or AAS\SpecialChar TeX
9834  and run \SpecialChar LaTeX
9835  on 
9836 \family typewriter
9837 sample.tex
9838 \family default
9839 .
9840 \end_layout
9841
9842 \begin_layout Enumerate
9843 Make certain that 
9844 \family typewriter
9845 aastex.layout
9846 \family default
9847  appears in \SpecialChar LyX
9848 's 
9849 \family typewriter
9850 layouts
9851 \family default
9852  folder
9853 \end_layout
9854
9855 \begin_layout Enumerate
9856 Rerun 
9857 \family sans
9858 Tools\SpecialChar menuseparator
9859 Reconfigure
9860 \family default
9861  in \SpecialChar LyX
9862 , then restart \SpecialChar LyX
9863 .
9864 \end_layout
9865
9866 \begin_layout Enumerate
9867 Open a regular new file, not from a template.
9868  Does AAS\SpecialChar TeX
9869  appear in the class list in 
9870 \family sans
9871 Document\SpecialChar menuseparator
9872 Settings
9873 \family default
9874 ?
9875 \end_layout
9876
9877 \begin_layout Standard
9878 If you get a warning from an existing AAS\SpecialChar TeX
9879  document about not being able
9880  to find the AAS\SpecialChar TeX
9881  layout or a message about 
9882 \begin_inset Quotes eld
9883 \end_inset
9884
9885 You should not mix title layouts with normal ones
9886 \begin_inset Quotes erd
9887 \end_inset
9888
9889 , things haven't been installed correctly.
9890 \end_layout
9891
9892 \begin_layout Subsubsection
9893 \SpecialChar LaTeX
9894  error processing a table 
9895 \end_layout
9896
9897 \begin_layout Standard
9898 \SpecialChar LyX
9899 , by default, attempts to center the table caption/title.
9900  This seems to produce a bad interaction in AAS\SpecialChar TeX
9901  so you should click somewhere
9902  in the caption/title, then select 
9903 \family sans
9904 Edit\SpecialChar menuseparator
9905 Paragraph
9906 \begin_inset space ~
9907 \end_inset
9908
9909 Settings
9910 \family default
9911 , then set the 
9912 \family sans
9913 Alignment
9914 \family default
9915  to 
9916 \family sans
9917 Block
9918 \family default
9919 .
9920  This took care of it for me.
9921 \end_layout
9922
9923 \begin_layout Subsubsection
9924 References
9925 \end_layout
9926
9927 \begin_layout Standard
9928 A couple of things: 1) I have noticed some funny spacing in the reference
9929  entries in the text.
9930  When you enter the bibliography item data, make sure their is 
9931 \emph on
9932 no
9933 \emph default
9934  space between the last author and the parenthesis setting off the year;
9935  
9936 \emph on
9937 e.
9938 \begin_inset space \thinspace{}
9939 \end_inset
9940
9941 g.
9942 \begin_inset space \space{}
9943 \end_inset
9944
9945
9946 \emph default
9947 type 
9948 \family typewriter
9949 Ressler(1992)
9950 \family default
9951 , not 
9952 \family typewriter
9953 Ressler (1992)
9954 \family default
9955 .
9956  2) Entering the references at all is not obvious.
9957  The easiest thing is to start typing your first reference at the end of
9958  the document, then mark it as type 
9959 \family sans
9960 References
9961 \family default
9962 .
9963  That will put a small gray box in front of what you just typed.
9964  Click on the box to fill in the rest of the information.
9965  For new references, go to the end of an existing reference and press return.
9966  That will create a new line with its own box, etc.
9967 \end_layout
9968
9969 \begin_layout Subsubsection
9970 Including EPS files
9971 \end_layout
9972
9973 \begin_layout Standard
9974 Even though AAS\SpecialChar TeX
9975  provides its own figure commands (
9976 \family typewriter
9977
9978 \backslash
9979 plotone
9980 \family default
9981 , for example), I much prefer \SpecialChar LaTeX
9982 's standard figure commands (with the default
9983  graphicx).
9984  You can insert the 
9985 \family typewriter
9986
9987 \backslash
9988 plotone
9989 \family default
9990 , etc.
9991 \begin_inset space ~
9992 \end_inset
9993
9994 commands as \SpecialChar TeX
9995  code into a Figure Float box if you desire, but I never have
9996  much luck getting the layout right.
9997  With the standard graphics, \SpecialChar LyX
9998  will insert a 
9999 \family typewriter
10000
10001 \backslash
10002 usepackage{graphicx}
10003 \family default
10004  command into the \SpecialChar LaTeX
10005  preamble and handle the figures in the standard \SpecialChar LaTeX2e
10006  way,
10007  interspersing the figures in the text.
10008  I believe ApJ accepts figures exactly this way now; AJ might still use
10009  the 
10010 \begin_inset Quotes eld
10011 \end_inset
10012
10013 stack everything at the end
10014 \begin_inset Quotes erd
10015 \end_inset
10016
10017  technique.
10018 \end_layout
10019
10020 \begin_layout Subsubsection
10021 Things I could have done, but didn't
10022 \end_layout
10023
10024 \begin_layout Standard
10025 There are a few 
10026 \begin_inset Quotes eld
10027 \end_inset
10028
10029 pretty
10030 \begin_inset Quotes erd
10031 \end_inset
10032
10033  things I could have implemented, but chose not to.
10034  For instance, I saw no point in double-spacing the text in the \SpecialChar LyX
10035  window,
10036  even though it is double-spaced in the paper manuscript.
10037  Also, I chose not to make separate layouts for the preprint and preprint2
10038  styles.
10039  Since I assume you will spend most of your time in the plain manuscript
10040  mode anyway, I decided not to chew up more disk space with this.
10041  
10042 \end_layout
10043
10044 \begin_layout Subsection
10045 Final Caveat
10046 \end_layout
10047
10048 \begin_layout Standard
10049 Your mileage may vary.
10050  I've now had papers published by both ApJ and AJ that have had 98% of the
10051  effort done in \SpecialChar LyX
10052 ; the last 2% was the \SpecialChar LaTeX
10053  post-processing and a few cleanups.
10054  I have had no trouble with the submission process, and I'm sure the journals
10055  were never aware that there might be a difference.
10056  So, go forth and publish!
10057 \end_layout
10058
10059 \begin_layout Section
10060 AMS \SpecialChar LaTeX
10061
10062 \end_layout
10063
10064 \begin_layout Standard
10065 by 
10066 \noun on
10067 David Johnson
10068 \noun default
10069 ; updated by 
10070 \noun on
10071 Richard Heck
10072 \end_layout
10073
10074 \begin_layout Standard
10075 \begin_inset VSpace bigskip
10076 \end_inset
10077
10078
10079 \end_layout
10080
10081 \begin_layout Standard
10082 \noindent
10083 The AMS \SpecialChar LaTeX
10084  layouts are set up to conform to suggested styles for mathematical
10085  papers to be submitted to American Mathematical Society publications.
10086  The layouts are not tailored to a specific journal, but easily can be.
10087  You should refer to the AMS documentation for specific instructions for
10088  each journal (usually it will entail only changing a single line in the
10089  \SpecialChar TeX
10090  output).
10091  That documentation is available on the Web at 
10092 \begin_inset Flex URL
10093 status open
10094
10095 \begin_layout Plain Layout
10096
10097 http://www.ams.org
10098 \end_layout
10099
10100 \end_inset
10101
10102  or by ftp at 
10103 \begin_inset Flex URL
10104 status open
10105
10106 \begin_layout Plain Layout
10107
10108 ftp://ftp.ams.org/pub/tex/amslatex/
10109 \end_layout
10110
10111 \end_inset
10112
10113 .
10114  These layouts are appropriate, and useful, for any mathematical writing.
10115  
10116 \end_layout
10117
10118 \begin_layout Standard
10119 There are two basic AMS \SpecialChar LaTeX
10120  layouts: 
10121 \end_layout
10122
10123 \begin_layout Itemize
10124 amsart: The standard AMS article format.
10125 \end_layout
10126
10127 \begin_layout Itemize
10128 amsbook: the standard AMS book (really, monograph) format.
10129  
10130 \end_layout
10131
10132 \begin_layout Standard
10133 The layouts themselves contain only the minimum necessary to use the AMS
10134  classes.
10135  They do not, in particular, contain any of the `theorem' environments used
10136  for setting theorems, lemmas, and the like.
10137  These are contained, instead, in the 
10138 \begin_inset Flex Code
10139 status collapsed
10140
10141 \begin_layout Plain Layout
10142 Theorems (AMS)
10143 \end_layout
10144
10145 \end_inset
10146
10147  module, which is loaded by default when you select one of the AMS classes.
10148  (It can also be used with other classes and can be removed, if you would
10149  rather use something else.) Less commonly used environments are in the 
10150 \begin_inset Flex Code
10151 status collapsed
10152
10153 \begin_layout Plain Layout
10154 Theorems (AMS-Extended)
10155 \end_layout
10156
10157 \end_inset
10158
10159  module, which must be loaded manually.
10160 \end_layout
10161
10162 \begin_layout Standard
10163 By default, theorems and the like are numbered consecutively throughout
10164  the document, but this may be modified by loading the module 
10165 \begin_inset Flex Code
10166 status collapsed
10167
10168 \begin_layout Plain Layout
10169 Theorems (Order by Section)
10170 \end_layout
10171
10172 \end_inset
10173
10174  or, if you are using 
10175 \begin_inset Flex Code
10176 status collapsed
10177
10178 \begin_layout Plain Layout
10179 book (AMS)
10180 \end_layout
10181
10182 \end_inset
10183
10184 , the module 
10185 \begin_inset Flex Code
10186 status collapsed
10187
10188 \begin_layout Plain Layout
10189 Theorems (Order by Chapter)
10190 \end_layout
10191
10192 \end_inset
10193
10194 .
10195  These will number the results as 
10196 \begin_inset Formula $n.m$
10197 \end_inset
10198
10199 , where the first number refers to the section (or chapter) and the second
10200  refers to the total number of results so far in that section (or chapter).
10201  Many environments are also available unnumbered.
10202  These are indicated by an asterisk at the end.
10203  If you happen to want 
10204 \emph on
10205 only
10206 \emph default
10207  unnumbered results, the module 
10208 \begin_inset Flex Code
10209 status collapsed
10210
10211 \begin_layout Plain Layout
10212 Theorems (Starred)
10213 \end_layout
10214
10215 \end_inset
10216
10217  provides that option.
10218 \end_layout
10219
10220 \begin_layout Standard
10221 Note that these modules do not 
10222 \emph on
10223 have
10224 \emph default
10225  to be used with the AMS classes.
10226  It is perfectly possible to use the 
10227 \begin_inset Flex Code
10228 status collapsed
10229
10230 \begin_layout Plain Layout
10231 Theorems (AMS)
10232 \end_layout
10233
10234 \end_inset
10235
10236  module, and the others mentioned, with other classes, such as 
10237 \begin_inset Flex Code
10238 status collapsed
10239
10240 \begin_layout Plain Layout
10241 article
10242 \end_layout
10243
10244 \end_inset
10245
10246
10247 \begin_inset Flex Code
10248 status collapsed
10249
10250 \begin_layout Plain Layout
10251 report
10252 \end_layout
10253
10254 \end_inset
10255
10256
10257 \begin_inset Flex Code
10258 status collapsed
10259
10260 \begin_layout Plain Layout
10261 book (KOMA-script)
10262 \end_layout
10263
10264 \end_inset
10265
10266 , and so forth.
10267 \end_layout
10268
10269 \begin_layout Subsection
10270 What these layouts provide
10271 \end_layout
10272
10273 \begin_layout Standard
10274 There is a long list of included environments provided by these layouts.
10275  In AMS-\SpecialChar LaTeX
10276 , there is, in fact, an opportunity to define an unlimited variety
10277  of `theorem' environments.
10278  However, the AMS recommends the environments that are available in \SpecialChar LyX
10279 .
10280  
10281 \end_layout
10282
10283 \begin_layout Standard
10284 The following environments—as well as the standard environments, such as
10285  
10286 \begin_inset Flex Noun
10287 status collapsed
10288
10289 \begin_layout Plain Layout
10290 section
10291 \end_layout
10292
10293 \end_inset
10294
10295
10296 \begin_inset Flex Noun
10297 status collapsed
10298
10299 \begin_layout Plain Layout
10300 bibliography
10301 \end_layout
10302
10303 \end_inset
10304
10305
10306 \begin_inset Flex Noun
10307 status collapsed
10308
10309 \begin_layout Plain Layout
10310 title
10311 \end_layout
10312
10313 \end_inset
10314
10315
10316 \begin_inset Flex Noun
10317 status collapsed
10318
10319 \begin_layout Plain Layout
10320 author
10321 \end_layout
10322
10323 \end_inset
10324
10325 , and 
10326 \begin_inset Flex Noun
10327 status collapsed
10328
10329 \begin_layout Plain Layout
10330 date
10331 \end_layout
10332
10333 \end_inset
10334
10335 —are provided by 
10336 \begin_inset Flex Code
10337 status collapsed
10338
10339 \begin_layout Plain Layout
10340 article (AMS)
10341 \end_layout
10342
10343 \end_inset
10344
10345  and 
10346 \begin_inset Flex Code
10347 status collapsed
10348
10349 \begin_layout Plain Layout
10350 book (AMS)
10351 \end_layout
10352
10353 \end_inset
10354
10355 :
10356 \end_layout
10357
10358 \begin_layout Description
10359 Address This should be the author's permanent address.
10360 \end_layout
10361
10362 \begin_layout Description
10363 Current
10364 \begin_inset space ~
10365 \end_inset
10366
10367 Address This should be the author's temporary address at the time of submission,
10368  if different from the Address.
10369 \end_layout
10370
10371 \begin_layout Description
10372 Email Author's e-mail address
10373 \end_layout
10374
10375 \begin_layout Description
10376 URL Author's Web address, if desired.
10377 \end_layout
10378
10379 \begin_layout Description
10380 Keywords Key words or phrases used to identify specific topics discussed
10381  in the paper.
10382 \end_layout
10383
10384 \begin_layout Description
10385 Subjectclass These refer to the AMS Subject Classifications, published and
10386  described in 
10387 \emph on
10388 Mathematical Reviews
10389 \emph default
10390 .
10391  These are also available online at the AMS cites listed above.
10392 \end_layout
10393
10394 \begin_layout Description
10395 Thanks
10396 \end_layout
10397
10398 \begin_layout Description
10399 Dedicatory
10400 \end_layout
10401
10402 \begin_layout Description
10403 Translator
10404 \end_layout
10405
10406 \begin_layout Standard
10407 The following environments are provided by both the 
10408 \begin_inset Flex Code
10409 status collapsed
10410
10411 \begin_layout Plain Layout
10412 Theorems
10413 \end_layout
10414
10415 \end_inset
10416
10417  and 
10418 \begin_inset Flex Code
10419 status collapsed
10420
10421 \begin_layout Plain Layout
10422 Theorems (AMS)
10423 \end_layout
10424
10425 \end_inset
10426
10427  modules, in the latter case in both starred (unnumbered) and unstarred
10428  (numbered) versions.
10429  These same environments are provided only in the starred versions by the
10430  
10431 \begin_inset Flex Code
10432 status collapsed
10433
10434 \begin_layout Plain Layout
10435 Theorems (Starred)
10436 \end_layout
10437
10438 \end_inset
10439
10440  module:
10441 \end_layout
10442
10443 \begin_layout Theorem
10444 This is typically used for the statements of major results.
10445  
10446 \end_layout
10447
10448 \begin_layout Corollary*
10449 This is used for statements which follow fairly directly from previous statement
10450 s.
10451  Again, these can be major results.
10452  
10453 \end_layout
10454
10455 \begin_layout Lemma
10456 These are smaller results needed to prove other statements.
10457 \end_layout
10458
10459 \begin_layout Proposition
10460 These are less major results which (hopefully) add to the general theory
10461  being discussed.
10462 \end_layout
10463
10464 \begin_layout Conjecture
10465 These are statements provided without justification, which the author does
10466  not know how to prove, but which seem to be true (to the author, at least).
10467 \end_layout
10468
10469 \begin_layout Definition*
10470 Guess what this is for.
10471  The font is different for this environment than for the previous ones.
10472  
10473 \end_layout
10474
10475 \begin_layout Example*
10476 Used for examples illustrating proven results.
10477 \end_layout
10478
10479 \begin_layout Problem
10480 It's not really known what this is for.
10481  You should figure it out.
10482 \end_layout
10483
10484 \begin_layout Exercise*
10485 Write a description for this one.
10486 \end_layout
10487
10488 \begin_layout Remark
10489 This environment is also a type of theorem, usually a lesser sort of observation.
10490 \end_layout
10491
10492 \begin_layout Claim*
10493 Often used in the course of giving a proof of a larger result.
10494 \end_layout
10495
10496 \begin_layout Case
10497 Generally, these are used to break up long arguments, using specific instances
10498  of some condition.
10499  
10500 \end_layout
10501
10502 \begin_layout Case
10503 The numbering scheme for cases is on its own, not together with other numbered
10504  statements.
10505  
10506 \end_layout
10507
10508 \begin_layout Proof
10509 At the end of this environment, a QED symbol (usually a square, but it can
10510  vary with different styles) is placed.
10511  If you want to have other environments within this one—for example, Case
10512  environments—and have the QED symbol appear only after them, then the other
10513  environments need to be nested within the proof environment.
10514  See the section 
10515 \emph on
10516 Nesting Environments
10517 \emph default
10518  of the 
10519 \emph on
10520 User's Guide
10521 \emph default
10522  for information on nesting.
10523 \end_layout
10524
10525 \begin_layout Standard
10526 And these environments are provided by 
10527 \begin_inset Flex Code
10528 status collapsed
10529
10530 \begin_layout Plain Layout
10531 Theorems (AMS-Extended)
10532 \end_layout
10533
10534 \end_inset
10535
10536 :
10537 \end_layout
10538
10539 \begin_layout Criterion*
10540 A required condition.
10541 \end_layout
10542
10543 \begin_layout Algorithm*
10544 A general procedure to be used.
10545 \end_layout
10546
10547 \begin_layout Axiom*
10548 This is a property or statement taken as true within the system being discussed.
10549 \end_layout
10550
10551 \begin_layout Condition*
10552 Sometimes used to state a condition assumed within the present context of
10553  discussion.
10554 \end_layout
10555
10556 \begin_layout Note*
10557 Similar to a Remark.
10558 \end_layout
10559
10560 \begin_layout Notation*
10561 Used for the explanation of, yes, notation.
10562 \end_layout
10563
10564 \begin_layout Summary
10565 Do we really need to tell you? 
10566 \end_layout
10567
10568 \begin_layout Acknowledgement*
10569 Acknowledgement.
10570 \end_layout
10571
10572 \begin_layout Conclusion*
10573 Sometimes used at the end of a long train of argument.
10574 \end_layout
10575
10576 \begin_layout Fact
10577 Used in a way similar to Proposition, though perhaps lower on the scale.
10578 \end_layout
10579
10580 \begin_layout Standard
10581 In addition, the AMS classes automatically provide the AMS \SpecialChar LaTeX
10582  and AMS fonts
10583  packages.
10584  They need to be available on your system in order to use these environments.
10585 \end_layout
10586
10587 \begin_layout Section
10588 AGU journals (
10589 \family sans
10590 aguplus
10591 \family default
10592 )
10593 \end_layout
10594
10595 \begin_layout Standard
10596 by 
10597 \shape smallcaps
10598 Martin Vermeer
10599 \end_layout
10600
10601 \begin_layout Subsection
10602 Description
10603 \end_layout
10604
10605 \begin_layout Standard
10606 These are the layout files for some of the journals of the American Geophysical
10607  Society.
10608  It is assumed that you have both the AGU's own class files and AGUplus
10609  installed (everything to be found at
10610 \begin_inset Flex URL
10611 status collapsed
10612
10613 \begin_layout Plain Layout
10614
10615 http://publications.agu.org/files/2013/08/AGU-LaTeX.zip
10616 \end_layout
10617
10618 \end_inset
10619
10620 ).
10621 \end_layout
10622
10623 \begin_layout Subsection
10624 New styles
10625 \end_layout
10626
10627 \begin_layout Standard
10628 Redefined are 
10629 \family sans
10630 Paragraph
10631 \family default
10632
10633 \family sans
10634 Paragraph*
10635 \family default
10636 .
10637  They are still called this in the \SpecialChar LyX
10638  GUI, though their \SpecialChar LaTeX
10639  equivalents in the
10640  AGU classes are 
10641 \family sans
10642 Subsubsubsection
10643 \family default
10644  and 
10645 \family sans
10646 Subsubsubsection*
10647 \family default
10648 .
10649 \end_layout
10650
10651 \begin_layout Standard
10652 Newly defined styles are 
10653 \family sans
10654 Left_Header
10655 \family default
10656
10657 \family sans
10658 Right_Header
10659 \family default
10660
10661 \family sans
10662 Received
10663 \family default
10664
10665 \family sans
10666 Revised
10667 \family default
10668
10669 \family sans
10670 Accepted
10671 \family default
10672
10673 \family sans
10674 CCC
10675 \family default
10676
10677 \family sans
10678 PaperId
10679 \family default
10680
10681 \family sans
10682 AuthorAddr
10683 \family default
10684
10685 \family sans
10686 SlugComment
10687 \family default
10688 .
10689  These are mostly manuscript attributes and defined in the AGU class documentati
10690 on.
10691 \end_layout
10692
10693 \begin_layout Standard
10694 I suspect this is still badly incomplete.
10695 \end_layout
10696
10697 \begin_layout Subsection
10698 New floats
10699 \end_layout
10700
10701 \begin_layout Standard
10702
10703 \family sans
10704 Planotable
10705 \family default
10706  and 
10707 \family sans
10708 Plate
10709 \family default
10710 .
10711  We also have a new 
10712 \family sans
10713 Table_Caption
10714 \family default
10715 .
10716 \end_layout
10717
10718 \begin_layout Subsection
10719 Supported journals
10720 \end_layout
10721
10722 \begin_layout Itemize
10723
10724 \emph on
10725 Journal of Geophysical Research
10726 \emph default
10727
10728 \family typewriter
10729 jgrga.layout
10730 \family default
10731  — Martin Vermeer
10732 \end_layout
10733
10734 \begin_layout Standard
10735 Add your own, it isn't so hard! Look at the 
10736 \family typewriter
10737 jgrga.layout
10738 \family default
10739  example and 
10740 \family typewriter
10741 aguplus.inc
10742 \family default
10743 .
10744 \end_layout
10745
10746 \begin_layout Subsection
10747 Bugs and things to remember
10748 \end_layout
10749
10750 \begin_layout Standard
10751 In order to use the new layouts, you must remember to do the following for
10752  a new document:
10753 \end_layout
10754
10755 \begin_layout Enumerate
10756
10757 \emph on
10758 Turn off babel
10759 \emph default
10760 .
10761  This can be done in the 
10762 \family sans
10763 Layout\SpecialChar menuseparator
10764 Document
10765 \family default
10766  or 
10767 \family sans
10768 Document\SpecialChar menuseparator
10769 Settings
10770 \family default
10771  menu item.
10772  (AGU articles are always in English, right? So 
10773 \emph on
10774 don't
10775 \emph default
10776  choose a language.)
10777 \end_layout
10778
10779 \begin_layout Enumerate
10780 Enter 
10781 \family typewriter
10782 jgrga
10783 \family default
10784  into the document's 
10785 \family sans
10786 Extra Options
10787 \family default
10788  field.
10789  (Yes, this is a bug.)
10790 \end_layout
10791
10792 \begin_layout Enumerate
10793 Make sure you use the 
10794 \family typewriter
10795 agu.bst
10796 \family default
10797  bibliography style, by entering 
10798 \family sans
10799 agu
10800 \family default
10801  into the second field of the Bib\SpecialChar TeX
10802  inset.
10803  None of the standard styles will do.
10804 \end_layout
10805
10806 \begin_layout Section
10807 Broadway
10808 \end_layout
10809
10810 \begin_layout Standard
10811 by 
10812 \shape smallcaps
10813 Garst Reese
10814 \end_layout
10815
10816 \begin_layout Subsection
10817 Introduction
10818 \end_layout
10819
10820 \begin_layout Standard
10821 Broadway is for writing plays.
10822  The format is more decorative than Hollywood, and much less standardized.
10823  This format should be suitable for workshops.
10824 \end_layout
10825
10826 \begin_layout Subsection
10827 Special problems
10828 \end_layout
10829
10830 \begin_layout Standard
10831 The same as in Hollywood.
10832 \end_layout
10833
10834 \begin_layout Subsection
10835 Special features
10836 \end_layout
10837
10838 \begin_layout Standard
10839 Insert the 
10840 \family sans
10841 Speaker
10842 \family default
10843  names as labels then cross-reference the label to insert the name.
10844  The cross-reference dialog will show the current cast of characters.
10845 \end_layout
10846
10847 \begin_layout Subsection
10848 Paper size and Margins
10849 \end_layout
10850
10851 \begin_layout Standard
10852 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
10853 \end_layout
10854
10855 \begin_layout Subsection
10856 Environments
10857 \end_layout
10858
10859 \begin_layout Standard
10860 The following environments are available.
10861  You can use broadway.bind to get the bind keys shown at the right.
10862 \end_layout
10863
10864 \begin_layout Itemize
10865
10866 \family sans
10867 Standard
10868 \begin_inset Newline newline
10869 \end_inset
10870
10871
10872 \family default
10873 You should not have to use this, but it is here for anything that does not
10874  fit otherwise.
10875 \end_layout
10876
10877 \begin_layout Itemize
10878
10879 \family sans
10880 Narrative
10881 \begin_inset space \hfill{}
10882 \end_inset
10883
10884 M-z n
10885 \begin_inset Newline newline
10886 \end_inset
10887
10888
10889 \family default
10890 Used to describe stage setting and the action.
10891  First use of speaker names in all CAPs.
10892 \end_layout
10893
10894 \begin_layout Itemize
10895
10896 \family sans
10897 ACT
10898 \begin_inset space \hfill{}
10899 \end_inset
10900
10901 M-z a
10902 \begin_inset Newline newline
10903 \end_inset
10904
10905
10906 \family default
10907 Automatically numbered.
10908  On screen it will be arabic, but will print as Roman.
10909 \end_layout
10910
10911 \begin_layout Itemize
10912
10913 \family sans
10914 ACT*
10915 \begin_inset space \hfill{}
10916 \end_inset
10917
10918 M-z S at
10919 \begin_inset Newline newline
10920 \end_inset
10921
10922
10923 \family default
10924 Subtitle for 
10925 \family sans
10926 ACT.
10927
10928 \family default
10929  It is just centered text.
10930 \end_layout
10931
10932 \begin_layout Itemize
10933
10934 \family sans
10935 SCENE
10936 \begin_inset space \hfill{}
10937 \end_inset
10938
10939 M-z S-S
10940 \begin_inset Newline newline
10941 \end_inset
10942
10943
10944 \family default
10945 Not automatically numbered.
10946  You supply the number.
10947  This is because I couldn't figure out how.
10948 \end_layout
10949
10950 \begin_layout Itemize
10951
10952 \family sans
10953 AT_RISE:
10954 \begin_inset space \hfill{}
10955 \end_inset
10956
10957 M-z S-R
10958 \begin_inset Newline newline
10959 \end_inset
10960
10961
10962 \family default
10963 A special case of Narrative to describe the setting and action as the curtain
10964  rises.
10965 \end_layout
10966
10967 \begin_layout Itemize
10968
10969 \family sans
10970 Speaker
10971 \begin_inset space \hfill{}
10972 \end_inset
10973
10974 M-z s
10975 \begin_inset Newline newline
10976 \end_inset
10977
10978
10979 \family default
10980 The speaker's (actor's) title, centered in all CAPS.
10981 \end_layout
10982
10983 \begin_layout Itemize
10984
10985 \family sans
10986 Parenthetical
10987 \begin_inset space \hfill{}
10988 \end_inset
10989
10990 M-z p
10991 \begin_inset Newline newline
10992 \end_inset
10993
10994
10995 \family default
10996 Instructions to the speaker.
10997  The parentheses are automatically inserted.
10998  The ( will appear on screen, but both will be in the printed play.
10999  This environment is only used within 
11000 \family sans
11001 Dialogue
11002 \family default
11003 .
11004 \end_layout
11005
11006 \begin_layout Itemize
11007
11008 \family sans
11009 Dialogue
11010 \begin_inset space \hfill{}
11011 \end_inset
11012
11013 M-z d
11014 \begin_inset Newline newline
11015 \end_inset
11016
11017
11018 \family default
11019 What the Speaker says.
11020 \end_layout
11021
11022 \begin_layout Itemize
11023
11024 \family sans
11025 CURTAIN
11026 \begin_inset space \hfill{}
11027 \end_inset
11028
11029 M-z S-C
11030 \begin_inset Newline newline
11031 \end_inset
11032
11033
11034 \family default
11035 The curtain comes down.
11036 \end_layout
11037
11038 \begin_layout Itemize
11039
11040 \family sans
11041 Title
11042 \begin_inset space \hfill{}
11043 \end_inset
11044
11045 M-z S-T
11046 \end_layout
11047
11048 \begin_layout Itemize
11049
11050 \family sans
11051 Author
11052 \begin_inset space \hfill{}
11053 \end_inset
11054
11055 M-z S-A
11056 \end_layout
11057
11058 \begin_layout Itemize
11059
11060 \family sans
11061 Right_Address
11062 \begin_inset space \hfill{}
11063 \end_inset
11064
11065 M-z r
11066 \end_layout
11067
11068 \begin_layout Standard
11069 Hello there.
11070 \end_layout
11071
11072 \begin_layout Section
11073 Dinbrief
11074 \end_layout
11075
11076 \begin_layout Standard
11077 The document class 
11078 \family sans
11079 dinbrief
11080 \family default
11081  can be used to type letters according to German conventions.
11082  A template file is included in 
11083 \family typewriter
11084 .../lyx/share/templates
11085 \family default
11086  for you to use as a starting point.
11087 \end_layout
11088
11089 \begin_layout Section
11090 EGS journals (
11091 \family sans
11092 egs
11093 \family default
11094 )
11095 \end_layout
11096
11097 \begin_layout Standard
11098 by 
11099 \shape smallcaps
11100 Martin Vermeer
11101 \end_layout
11102
11103 \begin_layout Subsection
11104 Description
11105 \end_layout
11106
11107 \begin_layout Standard
11108 This is the layout file for the European Geophysical Society journals.
11109  The needed 
11110 \family typewriter
11111 egs.cls
11112 \family default
11113  can be downloaded from the web site of the EGS under 
11114 \begin_inset Flex URL
11115 status collapsed
11116
11117 \begin_layout Plain Layout
11118
11119 www.copernicus.org
11120 \end_layout
11121
11122 \end_inset
11123
11124 .
11125 \end_layout
11126
11127 \begin_layout Subsection
11128 New styles
11129 \end_layout
11130
11131 \begin_layout Standard
11132
11133 \family sans
11134 Right_address, Latex_Title, Affil, Journal, msnumber, FirstAuthor, Received,
11135  Accepted
11136 \family default
11137
11138 \family sans
11139 Offsets
11140 \family default
11141 .
11142  The current layout file is unfortunately very unmodular and would benefit
11143  from using the various 
11144 \family typewriter
11145 std*.inc
11146 \family default
11147  file inclusions.
11148 \end_layout
11149
11150 \begin_layout Section
11151 Elsevier Journals
11152 \end_layout
11153
11154 \begin_layout Standard
11155 See the \SpecialChar LyX
11156  template file 
11157 \family typewriter
11158 elsarticle.lyx
11159 \family default
11160 .
11161  It contains all infos you need.
11162 \end_layout
11163
11164 \begin_layout Section
11165 Foils [aka 
11166 \family sans
11167 Foil\SpecialChar TeX
11168
11169 \family default
11170 ]
11171 \begin_inset CommandInset label
11172 LatexCommand label
11173 name "sec:foiltex"
11174
11175 \end_inset
11176
11177
11178 \end_layout
11179
11180 \begin_layout Standard
11181 by 
11182 \noun on
11183 Allan Rae
11184 \end_layout
11185
11186 \begin_layout Subsection
11187 Introduction
11188 \end_layout
11189
11190 \begin_layout Standard
11191 This section describes how to use \SpecialChar LyX
11192  to make slides for overhead projectors.
11193  There are two document classes that can do this: the default slides class
11194  and the 
11195 \family sans
11196 Foil\SpecialChar TeX
11197
11198 \family default
11199  slides class.
11200  This section documents the latter.
11201 \end_layout
11202
11203 \begin_layout Standard
11204 I'm going to say this again, nice and clear, so that there's no misunderstanding
11205 :
11206 \end_layout
11207
11208 \begin_layout Standard
11209 \begin_inset VSpace bigskip
11210 \end_inset
11211
11212
11213 \end_layout
11214
11215 \begin_layout Standard
11216 \align center
11217
11218 \size large
11219 This section documents the class 
11220 \begin_inset Quotes eld
11221 \end_inset
11222
11223
11224 \family sans
11225 FoilTeX
11226 \family default
11227
11228 \begin_inset Quotes erd
11229 \end_inset
11230
11231  
11232 \emph on
11233 only.
11234 \end_layout
11235
11236 \begin_layout Standard
11237 \begin_inset VSpace bigskip
11238 \end_inset
11239
11240
11241 \end_layout
11242
11243 \begin_layout Standard
11244 If you're looking for the documentation for 
11245 \begin_inset Quotes eld
11246 \end_inset
11247
11248
11249 \family sans
11250 slides (default)
11251 \family default
11252
11253 \begin_inset Quotes erd
11254 \end_inset
11255
11256 , check out section
11257 \begin_inset space ~
11258 \end_inset
11259
11260
11261 \begin_inset CommandInset ref
11262 LatexCommand ref
11263 reference "sec:slitex"
11264
11265 \end_inset
11266
11267 .
11268  If your machine doesn't have the 
11269 \family sans
11270 foils
11271 \family default
11272  class 
11273 \family sans
11274 FoilTeX
11275 \family default
11276  installed, you'll probably have to use the default 
11277 \family sans
11278 slides
11279 \family default
11280  class, which isn't quite as good as 
11281 \family sans
11282 foils.
11283 \end_layout
11284
11285 \begin_layout Standard
11286 The 
11287 \family sans
11288 foils
11289 \family default
11290  class is designed for use with version
11291 \begin_inset space ~
11292 \end_inset
11293
11294 2.1 of the 
11295 \family sans
11296 foils.cls
11297 \family default
11298  \SpecialChar LaTeX
11299  class file which is now an integral part of \SpecialChar LaTeX2e
11300 .
11301 \end_layout
11302
11303 \begin_layout Subsection
11304 Getting Started
11305 \end_layout
11306
11307 \begin_layout Standard
11308 Obviously, to use this document class, you need to select 
11309 \family sans
11310 FoilTeX
11311 \family default
11312  from the 
11313 \family sans
11314 Class
11315 \family default
11316  entry in the 
11317 \family sans
11318 Document
11319 \begin_inset space ~
11320 \end_inset
11321
11322 Layout
11323 \family default
11324  dialog.
11325  There are some settings in the 
11326 \family sans
11327 Document
11328 \begin_inset space ~
11329 \end_inset
11330
11331 Layout
11332 \family default
11333  dialog that you should know about that are specific to this class:
11334 \end_layout
11335
11336 \begin_layout Itemize
11337 Don't change the options 
11338 \family sans
11339 Sides
11340 \family default
11341  and 
11342 \family sans
11343 Columns
11344 \family default
11345  on the 
11346 \family sans
11347 Document
11348 \begin_inset space ~
11349 \end_inset
11350
11351 Layout
11352 \family default
11353  dialog.
11354  They're ignored by the 
11355 \family sans
11356 foils
11357 \family default
11358  class.
11359 \end_layout
11360
11361 \begin_layout Itemize
11362 The default font size is 20
11363 \begin_inset space \thinspace{}
11364 \end_inset
11365
11366 pt with the other options being 17
11367 \begin_inset space \thinspace{}
11368 \end_inset
11369
11370 pt, 25
11371 \begin_inset space \thinspace{}
11372 \end_inset
11373
11374 pt and 30
11375 \begin_inset space \thinspace{}
11376 \end_inset
11377
11378 pt.
11379 \end_layout
11380
11381 \begin_layout Itemize
11382 The default font is 
11383 \family sans
11384 sans
11385 \family default
11386  
11387 \family sans
11388 serif
11389 \family default
11390  but all math equations are still typeset in the usual roman font.
11391 \end_layout
11392
11393 \begin_layout Itemize
11394
11395 \family sans
11396 Foil\SpecialChar TeX
11397
11398 \family default
11399  supports A4 and Letter paper sizes as well as a special size for working
11400  with 35
11401 \begin_inset space \thinspace{}
11402 \end_inset
11403
11404 mm slides.
11405  It doesn't support A5, B5, legal or executive paper sizes.
11406 \end_layout
11407
11408 \begin_layout Itemize
11409 Don't bother changing the 
11410 \family sans
11411 Float Placement
11412 \family default
11413  settings because they are ignored anyway.
11414  All floats appear where they are defined in the text.
11415 \end_layout
11416
11417 \begin_layout Itemize
11418 The 
11419 \family sans
11420 Pagestyle
11421 \family default
11422  setting behaves a bit differently for this class.
11423  
11424 \family sans
11425 Foil\SpecialChar TeX
11426
11427 \family default
11428  provides extensive footer and header capabilities including a user-defined
11429  logo.
11430  See section
11431 \begin_inset space ~
11432 \end_inset
11433
11434
11435 \begin_inset CommandInset ref
11436 LatexCommand ref
11437 reference "sec:foilfoot"
11438
11439 \end_inset
11440
11441  for more details.
11442  The title page is treated differently to all other pages in the document
11443  and is 
11444 \emph on
11445 always
11446 \emph default
11447  unnumbered and 
11448 \emph on
11449 always
11450 \emph default
11451  has the logo centered at the bottom of the page (if one is defined).
11452  The possible page style choices and what they do are as follows:
11453 \end_layout
11454
11455 \begin_deeper
11456 \begin_layout Labeling
11457 \labelwidthstring MMMMMMM
11458
11459 \family sans
11460 \series bold
11461 empty
11462 \family default
11463 \series default
11464  The final output contains no page numbers, or other headers or footers
11465  (except footnotes of course).
11466  
11467 \end_layout
11468
11469 \begin_layout Labeling
11470 \labelwidthstring MMMMMMM
11471
11472 \family sans
11473 \series bold
11474 plain
11475 \family default
11476 \series default
11477  The final output contains page numbers centered at the bottom of the page.
11478  No other headings or footers (other than footnotes).
11479 \end_layout
11480
11481 \begin_layout Labeling
11482 \labelwidthstring MMMMMMM
11483
11484 \series bold
11485 foilheadings
11486 \series default
11487  Page numbers in lower right corner.
11488  Additional headers and footers are also shown.
11489  This is also the default.
11490 \end_layout
11491
11492 \begin_layout Labeling
11493 \labelwidthstring MMMMMMM
11494
11495 \series bold
11496 fancy
11497 \series default
11498  Gives you access to the 
11499 \family sans
11500 fancyheadings
11501 \family default
11502  package although its use with 
11503 \family sans
11504 Foil\SpecialChar TeX
11505
11506 \family default
11507  is discouraged by the writer of the 
11508 \family sans
11509 Foil\SpecialChar TeX
11510
11511 \family default
11512  package because of some potential page layout clashes.
11513 \end_layout
11514
11515 \end_deeper
11516 \begin_layout Subsubsection
11517 Extra Options
11518 \end_layout
11519
11520 \begin_layout Standard
11521 The following options may be used in the extra class options in the 
11522 \family sans
11523 Document\SpecialChar menuseparator
11524 Settings
11525 \family default
11526  dialog.
11527 \end_layout
11528
11529 \begin_layout Labeling
11530 \labelwidthstring MMMMMMx
11531
11532 \series bold
11533 35mmSlide
11534 \series default
11535  This sets up the page layout for 7.33
11536 \begin_inset space \thinspace{}
11537 \end_inset
11538
11539 in by 11
11540 \begin_inset space \thinspace{}
11541 \end_inset
11542
11543 in paper, which is about the same aspect ratio as a 35
11544 \begin_inset space \thinspace{}
11545 \end_inset
11546
11547 mm slide, making it a bit easier to work with this medium.
11548 \end_layout
11549
11550 \begin_layout Labeling
11551 \labelwidthstring MMMMMMx
11552
11553 \series bold
11554 headrule
11555 \series default
11556  Places a rule across the page below the header on every page except the
11557  title page.
11558 \end_layout
11559
11560 \begin_layout Labeling
11561 \labelwidthstring MMMMMMx
11562
11563 \series bold
11564 footrule
11565 \series default
11566  Places a rule across the page above the footer on every page except the
11567  title page.
11568 \end_layout
11569
11570 \begin_layout Labeling
11571 \labelwidthstring MMMMMMx
11572
11573 \series bold
11574 dvips
11575 \series default
11576  This is automatically set each time you create a new 
11577 \family sans
11578 foils
11579 \family default
11580  document.
11581  This option tells 
11582 \family sans
11583 Foil\SpecialChar TeX
11584
11585 \family default
11586  to use the dvips driver to rotate those pages that are set as landscape
11587  foils.
11588 \end_layout
11589
11590 \begin_layout Labeling
11591 \labelwidthstring MMMMMMx
11592
11593 \series bold
11594 landscape
11595 \series default
11596  Simply changes the page dimensions to those of a landscape page but doesn't
11597  do any rotation.
11598  Thus if you use this option you need to use an external program to rotate
11599  each page or feed your paper through your printer as landscape.
11600  Note that this option effectively reverses the roles of the 
11601 \family sans
11602 Foilhead
11603 \family default
11604  and 
11605 \family sans
11606 Rotatefoilhead
11607 \family default
11608  environments (don't worry these are described in the next section).
11609 \end_layout
11610
11611 \begin_layout Labeling
11612 \labelwidthstring MMMMMMx
11613
11614 \series bold
11615 leqno
11616 \series default
11617  Equation numbers on the left.
11618 \end_layout
11619
11620 \begin_layout Labeling
11621 \labelwidthstring MMMMMMx
11622
11623 \series bold
11624 fleqn
11625 \series default
11626  Flush-left equations.
11627 \end_layout
11628
11629 \begin_layout Subsection
11630 Supported Environments
11631 \end_layout
11632
11633 \begin_layout Standard
11634 Most of the environments commonly supported in other classes are also supported
11635  by the 
11636 \family sans
11637 foils
11638 \family default
11639  class.
11640  There are several additional environments provided by 
11641 \family sans
11642 Foil\SpecialChar TeX
11643
11644 \family default
11645  as well as a couple added by \SpecialChar LyX
11646 .
11647  The following environments are shared with other classes:
11648 \end_layout
11649
11650 \begin_layout Standard
11651 \begin_inset Flex Multiple Columns
11652 status open
11653
11654 \begin_layout Itemize
11655
11656 \family sans
11657 Standard
11658 \end_layout
11659
11660 \begin_layout Itemize
11661
11662 \family sans
11663 Itemize
11664 \end_layout
11665
11666 \begin_layout Itemize
11667
11668 \family sans
11669 Enumerate
11670 \end_layout
11671
11672 \begin_layout Itemize
11673
11674 \family sans
11675 Description
11676 \end_layout
11677
11678 \begin_layout Itemize
11679
11680 \family sans
11681 List
11682 \end_layout
11683
11684 \begin_layout Itemize
11685
11686 \family sans
11687 \SpecialChar LyX
11688 -Code
11689 \end_layout
11690
11691 \begin_layout Itemize
11692
11693 \family sans
11694 Verse
11695 \end_layout
11696
11697 \begin_layout Itemize
11698
11699 \family sans
11700 Quote
11701 \end_layout
11702
11703 \begin_layout Itemize
11704
11705 \family sans
11706 Quotation
11707 \end_layout
11708
11709 \begin_layout Itemize
11710
11711 \family sans
11712 Title
11713 \end_layout
11714
11715 \begin_layout Itemize
11716
11717 \family sans
11718 Author
11719 \end_layout
11720
11721 \begin_layout Itemize
11722
11723 \family sans
11724 Date
11725 \end_layout
11726
11727 \begin_layout Itemize
11728
11729 \family sans
11730 Abstract
11731 \end_layout
11732
11733 \begin_layout Itemize
11734
11735 \family sans
11736 Bibliography
11737 \end_layout
11738
11739 \begin_layout Itemize
11740
11741 \family sans
11742 Address
11743 \end_layout
11744
11745 \begin_layout Itemize
11746
11747 \family sans
11748 RightAddress
11749 \end_layout
11750
11751 \begin_layout Itemize
11752
11753 \family sans
11754 Caption
11755 \end_layout
11756
11757 \begin_layout Itemize
11758
11759 \family sans
11760 Comment
11761 \end_layout
11762
11763 \end_inset
11764
11765
11766 \end_layout
11767
11768 \begin_layout Standard
11769 That is, all the major environments apart from the sectioning environments.
11770  Since foils are essentially self-contained sections, with a title and body,
11771  
11772 \family sans
11773 Foil\SpecialChar TeX
11774
11775 \family default
11776  provides specific commands for starting new foils and these are:
11777 \end_layout
11778
11779 \begin_layout Itemize
11780
11781 \family sans
11782 Foilhead
11783 \end_layout
11784
11785 \begin_layout Itemize
11786
11787 \family sans
11788 Rotatefoilhead
11789 \end_layout
11790
11791 \begin_layout Standard
11792 \SpecialChar LyX
11793  also provides slightly modified versions of these two environments called:
11794 \end_layout
11795
11796 \begin_layout Itemize
11797
11798 \family sans
11799 ShortFoilhead
11800 \end_layout
11801
11802 \begin_layout Itemize
11803
11804 \family sans
11805 ShortRotatefoilhead
11806 \end_layout
11807
11808 \begin_layout Standard
11809 and the differences will be explained in the next section.
11810 \end_layout
11811
11812 \begin_layout Standard
11813 Since foils are often used in presenting ideas or new theorems and such
11814  
11815 \family sans
11816 Foil\SpecialChar TeX
11817
11818 \family default
11819  also provides a comprehensive box of goodies for presenting them:
11820 \end_layout
11821
11822 \begin_layout Standard
11823 \begin_inset Flex Multiple Columns
11824 status open
11825
11826 \begin_layout Itemize
11827
11828 \family sans
11829 Theorem
11830 \end_layout
11831
11832 \begin_layout Itemize
11833
11834 \family sans
11835 Lemma
11836 \end_layout
11837
11838 \begin_layout Itemize
11839
11840 \family sans
11841 Corollary
11842 \end_layout
11843
11844 \begin_layout Itemize
11845
11846 \family sans
11847 Proposition
11848 \end_layout
11849
11850 \begin_layout Itemize
11851
11852 \family sans
11853 Definition
11854 \end_layout
11855
11856 \begin_layout Itemize
11857
11858 \family sans
11859 Proof
11860 \end_layout
11861
11862 \begin_layout Itemize
11863
11864 \family sans
11865 Theorem*
11866 \end_layout
11867
11868 \begin_layout Itemize
11869
11870 \family sans
11871 Lemma*
11872 \end_layout
11873
11874 \begin_layout Itemize
11875
11876 \family sans
11877 Corollary*
11878 \end_layout
11879
11880 \begin_layout Itemize
11881
11882 \family sans
11883 Proposition*
11884 \end_layout
11885
11886 \begin_layout Itemize
11887
11888 \family sans
11889 Definition*
11890 \end_layout
11891
11892 \end_inset
11893
11894
11895 \end_layout
11896
11897 \begin_layout Standard
11898 The starred versions are unnumbered while the unstarred versions are numbered.
11899  There are also two list environments added by \SpecialChar LyX
11900  and these are:
11901 \end_layout
11902
11903 \begin_layout Itemize
11904
11905 \family sans
11906 TickList
11907 \end_layout
11908
11909 \begin_layout Itemize
11910
11911 \family sans
11912 CrossList
11913 \end_layout
11914
11915 \begin_layout Standard
11916
11917 \family sans
11918 Foil\SpecialChar TeX
11919
11920 \family default
11921  provides some powerful header and footer capabilities that are best set
11922  in the preamble although they may be set at any point in a document.
11923  If you want to change these settings in your document the best place to
11924  do so is at the very top of a foil, i.
11925 \begin_inset space \thinspace{}
11926 \end_inset
11927
11928 e.
11929 \emph on
11930
11931 \begin_inset space \space{}
11932 \end_inset
11933
11934
11935 \emph default
11936 straight after the foilhead.
11937 \end_layout
11938
11939 \begin_layout Standard
11940 For this purpose, the following command styles are provided [
11941 \shape smallcaps
11942 Martin Vermeer
11943 \shape default
11944 ]:
11945 \end_layout
11946
11947 \begin_layout Standard
11948 \begin_inset Flex Multiple Columns
11949 status open
11950
11951 \begin_layout Itemize
11952
11953 \family sans
11954 My
11955 \begin_inset space ~
11956 \end_inset
11957
11958 Logo
11959 \end_layout
11960
11961 \begin_layout Itemize
11962
11963 \family sans
11964 Restriction
11965 \end_layout
11966
11967 \begin_layout Itemize
11968
11969 \family sans
11970 Right
11971 \begin_inset space ~
11972 \end_inset
11973
11974 Footer
11975 \end_layout
11976
11977 \begin_layout Itemize
11978
11979 \family sans
11980 Right
11981 \begin_inset space ~
11982 \end_inset
11983
11984 Header
11985 \end_layout
11986
11987 \begin_layout Itemize
11988
11989 \family sans
11990 Left
11991 \begin_inset space ~
11992 \end_inset
11993
11994 Header
11995 \end_layout
11996
11997 \begin_deeper
11998 \begin_layout Plain Layout
11999 \begin_inset space ~
12000 \end_inset
12001
12002
12003 \end_layout
12004
12005 \end_deeper
12006 \end_inset
12007
12008
12009 \end_layout
12010
12011 \begin_layout Standard
12012 There are also a few commands provided by 
12013 \family sans
12014 Foil\SpecialChar TeX
12015
12016 \family default
12017  that aren't directly supported by \SpecialChar LyX
12018  but I'll tell you what they do and how
12019  to use them in section
12020 \begin_inset space ~
12021 \end_inset
12022
12023
12024 \begin_inset CommandInset ref
12025 LatexCommand ref
12026 reference "sec:unsuppfoils"
12027
12028 \end_inset
12029
12030 .
12031 \end_layout
12032
12033 \begin_layout Subsection
12034 Building a Set of Foils
12035 \end_layout
12036
12037 \begin_layout Standard
12038 This section will give a simple introduction to using the different environments
12039  to build a set of foils.
12040  If you want to see an example set of foils, take a look at the 
12041 \family typewriter
12042 Foils.lyx
12043 \family default
12044  file you find in \SpecialChar LyX
12045 's 
12046 \family typewriter
12047 examples
12048 \family default
12049  folder.
12050 \end_layout
12051
12052 \begin_layout Subsubsection
12053 Give It a Title Page
12054 \end_layout
12055
12056 \begin_layout Standard
12057 Unlike other classes that provide 
12058 \family sans
12059 Title
12060 \family default
12061
12062 \family sans
12063 Author
12064 \family default
12065
12066 \family sans
12067 Date
12068 \family default
12069  and 
12070 \family sans
12071 Abstract
12072 \family default
12073  environments, 
12074 \family sans
12075 foils
12076 \family default
12077  creates the title on a page of its own.
12078  If you leave out the 
12079 \family sans
12080 Date
12081 \family default
12082  environment \SpecialChar LaTeX
12083  will substitute the current date (every time you regenerate
12084  the output).
12085 \end_layout
12086
12087 \begin_layout Subsubsection
12088 Start a New Foil
12089 \end_layout
12090
12091 \begin_layout Standard
12092 As I mentioned earlier, there are four ways of starting a new foil.
12093  For portrait foils you should use 
12094 \family sans
12095 Foilhead
12096 \family default
12097  or 
12098 \family sans
12099 ShortFoilhead.
12100
12101 \family default
12102  The difference between these two environments is the amount of space between
12103  the title of the foil (the foilhead) and the body of the foil.
12104 \end_layout
12105
12106 \begin_layout Standard
12107 Landscape foils are generated using the 
12108 \family sans
12109 Rotatefoilhead
12110 \family default
12111  and 
12112 \family sans
12113 ShortRotatefoilhead
12114 \family default
12115  environments.
12116  Again the only difference is the spacing between foilhead and body.
12117  Both of the short versions have 0.5
12118 \begin_inset space ~
12119 \end_inset
12120
12121 inches less separation between the foilhead and the body.
12122  
12123 \end_layout
12124
12125 \begin_layout Standard
12126 One problem with the support for landscape foils is the requirement that
12127  you have to use the 
12128 \family typewriter
12129 dvips
12130 \family default
12131  driver to generate the PostScript output otherwise the foils won't be rotated.
12132  It is possible to get landscape foils even if you haven't got the 
12133 \family typewriter
12134 dvips
12135 \family default
12136  driver provided you can feed your foils sideways through your printer ;-)
12137 \end_layout
12138
12139 \begin_layout Subsubsection
12140 Theorems, Lemmas, Proofs and more
12141 \end_layout
12142
12143 \begin_layout Standard
12144 Due to a small bug in \SpecialChar LyX
12145  you can't have two of the same type of these environments
12146  directly following each other.
12147  They must be separated by something.
12148  If you try, you will just be extending the previous environment as if you
12149  had merged the two environments together.
12150  So, how do you get around this problem? The simplest option is to insert
12151  some text between the two environments or add a 
12152 \family sans
12153 \SpecialChar LaTeX
12154
12155 \family default
12156  environment between the two with just a 
12157 \begin_inset Quotes eld
12158 \end_inset
12159
12160
12161 \family typewriter
12162 %
12163 \family default
12164
12165 \begin_inset Quotes erd
12166 \end_inset
12167
12168  in it.
12169  This will force \SpecialChar LyX
12170  to produce two separate environments and hence the correct
12171  \SpecialChar LaTeX
12172  output.
12173  An example is provided in the example file included with the \SpecialChar LyX
12174  distribution.
12175  Remember, this problem only occurs if you are trying to place two of the
12176  same type of theorem-like environments one directly after the other.
12177 \end_layout
12178
12179 \begin_layout Subsubsection
12180 Lists
12181 \end_layout
12182
12183 \begin_layout Standard
12184 You get all the commonly supported list styles found in other classes as
12185  well as two new ones.
12186  I'll only describe the new ones here.
12187  If you want to find out more about the other list environments check out
12188  the 
12189 \emph on
12190 User's Guide.
12191
12192 \emph default
12193  If you intend to use itemized lists you might also want to read about the
12194  
12195 \family sans
12196 Itemize
12197 \begin_inset space ~
12198 \end_inset
12199
12200 Bullet
12201 \begin_inset space ~
12202 \end_inset
12203
12204 Selection
12205 \family default
12206  dialog described above in section
12207 \begin_inset space ~
12208 \end_inset
12209
12210
12211 \begin_inset CommandInset ref
12212 LatexCommand ref
12213 reference "sec:bullet"
12214
12215 \end_inset
12216
12217 .
12218 \end_layout
12219
12220 \begin_layout Standard
12221 The two new list styles, 
12222 \family sans
12223 TickList
12224 \family default
12225  and 
12226 \family sans
12227 CrossList
12228 \family default
12229 , are designed to make it easier for you to create lists of do's and don'ts
12230  or right and wrong by providing dedicated environments that use a tick
12231  or a cross as the label of the list.
12232  These lists are in fact dedicated variants of the 
12233 \family sans
12234 Itemize
12235 \family default
12236  environment.
12237  They do however require that you have the 
12238 \family typewriter
12239 psnfss
12240 \family default
12241  packages installed.
12242 \end_layout
12243
12244 \begin_layout Subsubsection
12245 Figures and Tables
12246 \end_layout
12247
12248 \begin_layout Standard
12249
12250 \family sans
12251 Foil\SpecialChar TeX
12252
12253 \family default
12254  redefines the floating tables and figures so that they appear exactly where
12255  they are in the text rather than pushing them to the top of the page or
12256  to some user specified location.
12257  In fact if you change the float placement settings they are simply ignored.
12258 \end_layout
12259
12260 \begin_layout Subsubsection
12261 Page Headers and Footers
12262 \begin_inset CommandInset label
12263 LatexCommand label
12264 name "sec:foilfoot"
12265
12266 \end_inset
12267
12268
12269 \end_layout
12270
12271 \begin_layout Standard
12272
12273 \family sans
12274 My
12275 \begin_inset space ~
12276 \end_inset
12277
12278 Logo
12279 \family default
12280  and 
12281 \family sans
12282 Restriction
12283 \family default
12284  are two commands used to control the left-footer text string.
12285  The first is meant to allow you to include a graphic logo on your foils
12286  and defaults to 
12287 \begin_inset Quotes eld
12288 \end_inset
12289
12290 -Typeset by 
12291 \family sans
12292 Foil\SpecialChar TeX
12293
12294 \family default
12295 -
12296 \begin_inset Quotes erd
12297 \end_inset
12298
12299 .
12300  While the second is meant to provide a classification for the audience,
12301  
12302 \emph on
12303 e.
12304 \begin_inset space \thinspace{}
12305 \end_inset
12306
12307 g.
12308 \emph default
12309
12310 \begin_inset space \space{}
12311 \end_inset
12312
12313 Confidential.
12314  It is empty by default.
12315 \end_layout
12316
12317 \begin_layout Standard
12318 The remaining page corners can be filled by 
12319 \family sans
12320 Right
12321 \begin_inset space ~
12322 \end_inset
12323
12324 Footer
12325 \family default
12326  (which defaults to page numbers), 
12327 \family sans
12328 Right
12329 \begin_inset space ~
12330 \end_inset
12331
12332 Header
12333 \family default
12334  (top right) and 
12335 \family sans
12336 Left
12337 \begin_inset space ~
12338 \end_inset
12339
12340 Header
12341 \family default
12342  (top left).
12343 \end_layout
12344
12345 \begin_layout Subsection
12346 Unsupported 
12347 \family sans
12348 Foil\SpecialChar TeX
12349
12350 \family default
12351  Goodies
12352 \begin_inset CommandInset label
12353 LatexCommand label
12354 name "sec:unsuppfoils"
12355
12356 \end_inset
12357
12358
12359 \end_layout
12360
12361 \begin_layout Standard
12362 All the commands mentioned below need to be set in a 
12363 \family sans
12364 \SpecialChar LaTeX
12365
12366 \family default
12367  environment or as 
12368 \family sans
12369 \SpecialChar TeX
12370
12371 \family default
12372  within another environment.
12373 \end_layout
12374
12375 \begin_layout Subsubsection
12376 Lengths
12377 \end_layout
12378
12379 \begin_layout Standard
12380 All lengths are adjusted using the 
12381 \family typewriter
12382
12383 \backslash
12384 setlength{
12385 \family default
12386 \emph on
12387 lengthname
12388 \family typewriter
12389 \emph default
12390 }{
12391 \family default
12392 \emph on
12393 newlength
12394 \family typewriter
12395 \emph default
12396 }
12397 \family default
12398  command.
12399  Where 
12400 \emph on
12401 lengthname
12402 \emph default
12403  should be replaced by the name given to the length you want to change and
12404  
12405 \emph on
12406 newlength
12407 \emph default
12408  is the length value.
12409  All lengths should be specified in units of length such as inches (
12410 \family typewriter
12411 in
12412 \family default
12413 ), millimeters (
12414 \family typewriter
12415 mm
12416 \family default
12417 ) or points (
12418 \family typewriter
12419 pt
12420 \family default
12421 ) or relative to some document or font-based length such as 
12422 \family typewriter
12423
12424 \backslash
12425 textwidth
12426 \family default
12427 .
12428  
12429 \end_layout
12430
12431 \begin_layout Standard
12432 It's possible to change the spacing between a foilhead and the body of the
12433  foil by adjusting the length specified by 
12434 \family typewriter
12435
12436 \backslash
12437 foilheadskip
12438 \family default
12439 .
12440  For example, to make 
12441 \emph on
12442 all
12443 \emph default
12444  foilheads 0.5
12445 \begin_inset space \space{}
12446 \end_inset
12447
12448 in closer to their bodies put the following in the preamble: 
12449 \family typewriter
12450
12451 \backslash
12452 setlength{
12453 \backslash
12454 foilheadskip}{-0.5in}
12455 \end_layout
12456
12457 \begin_layout Standard
12458 The spacings around floats can be adjusted by setting these lengths:
12459 \end_layout
12460
12461 \begin_layout Labeling
12462 \labelwidthstring MMMMMMMMMMM
12463
12464 \family typewriter
12465
12466 \backslash
12467 abovefloatskip
12468 \family default
12469  Separation between the text and the top of the float
12470 \end_layout
12471
12472 \begin_layout Labeling
12473 \labelwidthstring MMMMMMMMMMM
12474
12475 \family typewriter
12476
12477 \backslash
12478 abovecaptionskip
12479 \family default
12480  Separation between the float and the caption
12481 \end_layout
12482
12483 \begin_layout Labeling
12484 \labelwidthstring MMMMMMMMMMM
12485
12486 \family typewriter
12487
12488 \backslash
12489 belowcaptionskip
12490 \family default
12491  Separation between the caption and the following text
12492 \end_layout
12493
12494 \begin_layout Labeling
12495 \labelwidthstring MMMMMMMMMMM
12496
12497 \family typewriter
12498
12499 \backslash
12500 captionwidth
12501 \family default
12502  You can make the captions narrower than the surrounding text by adjusting
12503  this length.
12504  Best done relative to 
12505 \family typewriter
12506
12507 \backslash
12508 textwidth
12509 \family default
12510 .
12511 \end_layout
12512
12513 \begin_layout Standard
12514 There are also several title page related lengths that you may find useful
12515  if you have a long title or several authors:
12516 \end_layout
12517
12518 \begin_layout Labeling
12519 \labelwidthstring MMMMMMMMMMM
12520
12521 \family typewriter
12522
12523 \backslash
12524 abovetitleskip
12525 \family default
12526  Separation from headers to 
12527 \family sans
12528 Title
12529 \end_layout
12530
12531 \begin_layout Labeling
12532 \labelwidthstring MMMMMMMMMMM
12533
12534 \family typewriter
12535
12536 \backslash
12537 titleauthorskip
12538 \family default
12539  between 
12540 \family sans
12541 Title
12542 \family default
12543  and 
12544 \family sans
12545 Author
12546 \family default
12547  environments
12548 \end_layout
12549
12550 \begin_layout Labeling
12551 \labelwidthstring MMMMMMMMMMM
12552
12553 \family typewriter
12554
12555 \backslash
12556 authorauthorskip
12557 \family default
12558  between multiple 
12559 \family sans
12560 Author
12561 \family default
12562  lines
12563 \end_layout
12564
12565 \begin_layout Labeling
12566 \labelwidthstring MMMMMMMMMMM
12567
12568 \family typewriter
12569
12570 \backslash
12571 authordateskip
12572 \family default
12573  between the 
12574 \family sans
12575 Author
12576 \family default
12577  and the 
12578 \family sans
12579 Date
12580 \end_layout
12581
12582 \begin_layout Labeling
12583 \labelwidthstring MMMMMMMMMMM
12584
12585 \family typewriter
12586
12587 \backslash
12588 dateabstractskip
12589 \family default
12590  between the 
12591 \family sans
12592 Date
12593 \family default
12594  and the 
12595 \family sans
12596 Abstract
12597 \end_layout
12598
12599 \begin_layout Standard
12600 The last length related command affects all the list environments.
12601  If you place 
12602 \family typewriter
12603
12604 \backslash
12605 zerolistvertdimens
12606 \family default
12607  
12608 \emph on
12609 inside
12610 \emph default
12611  a list environment then all the vertical spacing between the list items
12612  is removed.
12613  Note that this is a command not a length so it doesn't require 
12614 \family typewriter
12615
12616 \backslash
12617 setlength
12618 \family default
12619  like the stuff mentioned above.
12620 \end_layout
12621
12622 \begin_layout Subsubsection
12623 Headers and Footers
12624 \end_layout
12625
12626 \begin_layout Standard
12627 The 
12628 \family typewriter
12629
12630 \backslash
12631 LogoOn
12632 \family default
12633  and 
12634 \family typewriter
12635
12636 \backslash
12637 LogoOff
12638 \family default
12639  commands control whether the logo in the 
12640 \family sans
12641 MyLogo
12642 \family default
12643  definition appear on a given page.
12644  If you put 
12645 \family typewriter
12646
12647 \backslash
12648 LogoOff
12649 \family default
12650  in the preamble then none of the foils will have the logo on them.
12651  If you don't want the logo on a particular page place the 
12652 \family typewriter
12653
12654 \backslash
12655 LogoOff
12656 \family default
12657  directly after the foilhead of that page and the 
12658 \family typewriter
12659
12660 \backslash
12661 LogoOn
12662 \family default
12663  directly after the next foilhead.
12664 \end_layout
12665
12666 \begin_layout Standard
12667 If you decide to use the 
12668 \family sans
12669 fancy
12670 \family default
12671  page style setting in the 
12672 \family sans
12673 Document
12674 \begin_inset space ~
12675 \end_inset
12676
12677 Layout
12678 \family default
12679  dialog you should probably add 
12680 \family typewriter
12681
12682 \backslash
12683 let
12684 \backslash
12685 headwidth
12686 \backslash
12687 textwidth
12688 \family default
12689  to your preamble so headers and footers on landscape pages are correctly
12690  placed when rotated.
12691  This is due to some clashes between the page layouts provided by the 
12692 \family sans
12693 fancyheadings
12694 \family default
12695  package and the 
12696 \family sans
12697 foils
12698 \family default
12699  class.
12700 \end_layout
12701
12702 \begin_layout Section
12703 Hollywood (Hollywood spec scripts)
12704 \end_layout
12705
12706 \begin_layout Standard
12707 by 
12708 \shape smallcaps
12709 Garst Reese
12710 \end_layout
12711
12712 \begin_layout Subsection
12713 Introduction
12714 \end_layout
12715
12716 \begin_layout Standard
12717 Getting the format of a Hollywood script right is a 
12718 \begin_inset Quotes eld
12719 \end_inset
12720
12721 rite of passage.
12722 \begin_inset Quotes erd
12723 \end_inset
12724
12725  It is designed to make the readers focus on content and to be easy and
12726  familiar for the actors to read.
12727  Each page of a script should be one minute of film.
12728  Nothing goes in a script that you cannot see or hear on screen.
12729  The courier 12 pt font should be used throughout.
12730  No italics.
12731 \end_layout
12732
12733 \begin_layout Subsection
12734 Special problems
12735 \end_layout
12736
12737 \begin_layout Standard
12738 Speakers' lines should NEVER break in mid-sentence.
12739  If a speaker's lines continue over a page break, repeat the 
12740 \family sans
12741 Speaker
12742 \family default
12743  title followed by (Cont'd).
12744 \end_layout
12745
12746 \begin_layout Subsection
12747 Special features
12748 \end_layout
12749
12750 \begin_layout Standard
12751 Insert the 
12752 \family sans
12753 Speaker
12754 \family default
12755  names as labels then cross-reference the label to insert the name.
12756  The cross-reference dialog will show the current cast of characters.
12757  You can use this to insert the speaker name in narratives also.
12758 \end_layout
12759
12760 \begin_layout Subsection
12761 Paper size and Margins
12762 \end_layout
12763
12764 \begin_layout Standard
12765 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
12766 \end_layout
12767
12768 \begin_layout Subsection
12769 Environments
12770 \end_layout
12771
12772 \begin_layout Standard
12773 The following environments are available.
12774  You can use hollywood.bind to get the bind keys shown at the right.
12775 \end_layout
12776
12777 \begin_layout Itemize
12778
12779 \family sans
12780 Standard
12781 \begin_inset Newline newline
12782 \end_inset
12783
12784
12785 \family default
12786 Used where nothing else works.
12787  Try to avoid it.
12788 \end_layout
12789
12790 \begin_layout Itemize
12791
12792 \family sans
12793 FADE_IN
12794 \family default
12795 :
12796 \begin_inset space \hfill{}
12797 \end_inset
12798
12799
12800 \family sans
12801 M-z S-I
12802 \family default
12803
12804 \begin_inset Newline newline
12805 \end_inset
12806
12807 Usually followed by something like 
12808 \begin_inset Quotes eld
12809 \end_inset
12810
12811 on Sally waking up.
12812 \begin_inset Quotes erd
12813 \end_inset
12814
12815
12816 \end_layout
12817
12818 \begin_layout Itemize
12819
12820 \family sans
12821 INT:
12822 \begin_inset space \hfill{}
12823 \end_inset
12824
12825 M-z i
12826 \begin_inset Newline newline
12827 \end_inset
12828
12829
12830 \family default
12831 Introduces a new INTERIOR camera set-up.
12832  Always followed by DAY or NIGHT, or something similar to define the lighting
12833  required.
12834  Everthing on this line in CAPS.
12835 \end_layout
12836
12837 \begin_layout Itemize
12838
12839 \family sans
12840 EXT:
12841 \begin_inset space \hfill{}
12842 \end_inset
12843
12844 M-z e
12845 \begin_inset Newline newline
12846 \end_inset
12847
12848
12849 \family default
12850 Introduces a new EXTERIOR camera set-up.
12851  Everthing on this line in CAPS.
12852 \end_layout
12853
12854 \begin_layout Itemize
12855
12856 \family sans
12857 Speaker
12858 \begin_inset space \hfill{}
12859 \end_inset
12860
12861 M-z s
12862 \begin_inset Newline newline
12863 \end_inset
12864
12865
12866 \family default
12867 The character speaking.
12868 \end_layout
12869
12870 \begin_layout Itemize
12871
12872 \family sans
12873 Parenthetical
12874 \begin_inset space \hfill{}
12875 \end_inset
12876
12877 M-z p
12878 \begin_inset Newline newline
12879 \end_inset
12880
12881
12882 \family default
12883 Instructions to the speaker.
12884  The () are automatically inserted, but only the ( will show in \SpecialChar LyX
12885 .
12886  Both will be printed.
12887 \end_layout
12888
12889 \begin_layout Itemize
12890
12891 \family sans
12892 Dialogue
12893 \begin_inset space \hfill{}
12894 \end_inset
12895
12896 M-z d
12897 \begin_inset Newline newline
12898 \end_inset
12899
12900
12901 \family default
12902 What the 
12903 \family sans
12904 Speaker
12905 \family default
12906  says.
12907 \end_layout
12908
12909 \begin_layout Itemize
12910
12911 \family sans
12912 Transition
12913 \begin_inset space \hfill{}
12914 \end_inset
12915
12916 M-z t
12917 \begin_inset Newline newline
12918 \end_inset
12919
12920
12921 \family default
12922 Camera movement instruction.
12923  e.
12924 \begin_inset space \thinspace{}
12925 \end_inset
12926
12927 g.
12928 \begin_inset space \space{}
12929 \end_inset
12930
12931 CUT TO:
12932 \end_layout
12933
12934 \begin_layout Itemize
12935
12936 \family sans
12937 FADE OUT:
12938 \begin_inset space \hfill{}
12939 \end_inset
12940
12941 M-z S-I
12942 \end_layout
12943
12944 \begin_layout Itemize
12945
12946 \family sans
12947 Author
12948 \begin_inset space \hfill{}
12949 \end_inset
12950
12951 M-z S-A
12952 \end_layout
12953
12954 \begin_layout Itemize
12955
12956 \family sans
12957 Title
12958 \begin_inset space \hfill{}
12959 \end_inset
12960
12961 M-z S-T
12962 \end_layout
12963
12964 \begin_layout Itemize
12965
12966 \family sans
12967 Right_Address
12968 \begin_inset space \hfill{}
12969 \end_inset
12970
12971 M-z r
12972 \end_layout
12973
12974 \begin_layout Subsection
12975 Script jargon
12976 \end_layout
12977
12978 \begin_layout Itemize
12979 (O.S) — off screen
12980 \end_layout
12981
12982 \begin_layout Itemize
12983 (V.0) — voice over
12984 \end_layout
12985
12986 \begin_layout Itemize
12987 b.
12988 \begin_inset space \thinspace{}
12989 \end_inset
12990
12991 g.
12992  — background
12993 \end_layout
12994
12995 \begin_layout Itemize
12996 C.U.
12997  — close-up
12998 \end_layout
12999
13000 \begin_layout Itemize
13001 PAN — camera movement
13002 \end_layout
13003
13004 \begin_layout Itemize
13005 INSERT — cut to close-up of
13006 \end_layout
13007
13008 \begin_layout Section
13009 ijmpc and ijmpd
13010 \end_layout
13011
13012 \begin_layout Standard
13013 by 
13014 \noun on
13015 Panayotis Papasotiriou
13016 \end_layout
13017
13018 \begin_layout Subsection
13019 Overview
13020 \end_layout
13021
13022 \begin_layout Standard
13023 The ijmpc package is a set of macros that facilitates electronic manuscript
13024  submission to the 
13025 \emph on
13026 International Journal of Modern Physics C
13027 \emph default
13028 .
13029  Similarly, the ijmpd package is for creating manuscripts to be submitted
13030  to the 
13031 \emph on
13032 International Journal of Modern Physics D
13033 \emph default
13034 .
13035  Both journals are published by World Scientific.
13036  The corresponding document classes are named 
13037 \family typewriter
13038 ws-ijmpc.cls
13039 \family default
13040  and 
13041 \family typewriter
13042 ws-ijmpd.cls
13043 \family default
13044 , respectively.
13045  These files, together with instructions for the authors, can be downloaded
13046  from the sites 
13047 \begin_inset Flex URL
13048 status collapsed
13049
13050 \begin_layout Plain Layout
13051
13052 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
13053 \end_layout
13054
13055 \end_inset
13056
13057  and 
13058 \begin_inset Flex URL
13059 status collapsed
13060
13061 \begin_layout Plain Layout
13062
13063 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
13064 \end_layout
13065
13066 \end_inset
13067
13068 .
13069  Both packages are modified versions of the standard 
13070 \begin_inset Quotes eld
13071 \end_inset
13072
13073 article
13074 \begin_inset Quotes erd
13075 \end_inset
13076
13077  package, and they are almost (but not exactly) identical.
13078  Most of their features are supported by \SpecialChar LyX
13079 .
13080  I have used \SpecialChar LyX
13081  successfully to write articles submitted to both journals
13082  without any problem.
13083 \end_layout
13084
13085 \begin_layout Subsection
13086 Writing a paper
13087 \end_layout
13088
13089 \begin_layout Standard
13090 As usual, the easiest way to write a paper is to start with a template.
13091  Click on 
13092 \family sans
13093 File\SpecialChar menuseparator
13094 New from
13095 \family default
13096  
13097 \family sans
13098 Template
13099 \family default
13100 , then choose the 
13101 \family typewriter
13102 ijmpc.lyx
13103 \family default
13104  or 
13105 \family typewriter
13106 ijmpd.lyx
13107 \family default
13108  template.
13109  This will give an (almost) empty document that includes the most common
13110  fields found in a manuscript.
13111  Simply overwrite the existing text (including the brackets, 
13112 \family typewriter
13113 <>
13114 \family default
13115 ) with your text.
13116  You should keep in mind the following remarks.
13117 \end_layout
13118
13119 \begin_layout Enumerate
13120 \SpecialChar LyX
13121  won't let you change the font size and the page style of the document,
13122  because such modifications are not allowed by both packages.
13123 \end_layout
13124
13125 \begin_layout Enumerate
13126 The language of the document should not be changed.
13127  Before previewing your paper, be sure that the babel package is not used.
13128  To do this, click on 
13129 \family sans
13130 Tools\SpecialChar menuseparator
13131 Preferences
13132 \family default
13133 , select the 
13134 \family sans
13135 Lang Opts
13136 \family default
13137  tab, deselect the 
13138 \family sans
13139 Use babel
13140 \family default
13141  checkbox in the language settings, and click on 
13142 \family sans
13143 Apply
13144 \family default
13145  (or 
13146 \family sans
13147 Save
13148 \family default
13149 , if you wish to make this change permanent).
13150 \end_layout
13151
13152 \begin_layout Enumerate
13153 The 
13154 \begin_inset Quotes eld
13155 \end_inset
13156
13157 Keywords
13158 \begin_inset Quotes erd
13159 \end_inset
13160
13161  style must be used to define keywords.
13162 \end_layout
13163
13164 \begin_layout Enumerate
13165 The ijmpc package provides a style named 
13166 \begin_inset Quotes eld
13167 \end_inset
13168
13169 Classification Codes
13170 \begin_inset Quotes erd
13171 \end_inset
13172
13173 , which can be used to define classification codes, such as PACS numbers.
13174  Note that this facility is not supported by the ijmpd package.
13175 \end_layout
13176
13177 \begin_layout Enumerate
13178 Several new environments are available: 
13179 \begin_inset Quotes eld
13180 \end_inset
13181
13182 Definition
13183 \begin_inset Quotes erd
13184 \end_inset
13185
13186
13187 \begin_inset Quotes eld
13188 \end_inset
13189
13190 Step
13191 \begin_inset Quotes erd
13192 \end_inset
13193
13194
13195 \begin_inset Quotes eld
13196 \end_inset
13197
13198 Example
13199 \begin_inset Quotes erd
13200 \end_inset
13201
13202
13203 \begin_inset Quotes eld
13204 \end_inset
13205
13206 Remark
13207 \begin_inset Quotes erd
13208 \end_inset
13209
13210
13211 \begin_inset Quotes eld
13212 \end_inset
13213
13214 Notation
13215 \begin_inset Quotes erd
13216 \end_inset
13217
13218
13219 \begin_inset Quotes eld
13220 \end_inset
13221
13222 Theorem
13223 \begin_inset Quotes erd
13224 \end_inset
13225
13226
13227 \begin_inset Quotes eld
13228 \end_inset
13229
13230 Proof
13231 \begin_inset Quotes erd
13232 \end_inset
13233
13234
13235 \begin_inset Quotes eld
13236 \end_inset
13237
13238 Corollary
13239 \begin_inset Quotes erd
13240 \end_inset
13241
13242
13243 \begin_inset Quotes eld
13244 \end_inset
13245
13246 Lemma
13247 \begin_inset Quotes erd
13248 \end_inset
13249
13250
13251 \begin_inset Quotes eld
13252 \end_inset
13253
13254 Proposition
13255 \begin_inset Quotes erd
13256 \end_inset
13257
13258
13259 \begin_inset Quotes eld
13260 \end_inset
13261
13262 Prop
13263 \begin_inset Quotes erd
13264 \end_inset
13265
13266
13267 \begin_inset Quotes eld
13268 \end_inset
13269
13270 Question
13271 \begin_inset Quotes erd
13272 \end_inset
13273
13274
13275 \begin_inset Quotes eld
13276 \end_inset
13277
13278 Claim
13279 \begin_inset Quotes erd
13280 \end_inset
13281
13282 , and 
13283 \begin_inset Quotes eld
13284 \end_inset
13285
13286 Conjecture
13287 \begin_inset Quotes erd
13288 \end_inset
13289
13290 .
13291  Their use is more or less obvious.
13292  \SpecialChar LyX
13293  supports all these environments; it will use the proper label, text style,
13294  and numbering scheme for each of them.
13295 \end_layout
13296
13297 \begin_layout Enumerate
13298 Both packages use basic citations; the natbib package should not be used.
13299  In \SpecialChar LyX
13300 , citation references are shown as usual; in the output, citations are
13301  shown as superscripts.
13302  If you want to use a citation as normal text, you should use the 
13303 \family typewriter
13304 refcite
13305 \family default
13306  command, e.
13307 \begin_inset space \thinspace{}
13308 \end_inset
13309
13310 g.
13311 \begin_inset space \space{}
13312 \end_inset
13313
13314
13315 \begin_inset Quotes eld
13316 \end_inset
13317
13318 See Ref.
13319 \begin_inset space \space{}
13320 \end_inset
13321
13322
13323 \family typewriter
13324
13325 \backslash
13326 refcite{key}
13327 \family default
13328
13329 \begin_inset Quotes erd
13330 \end_inset
13331
13332 .
13333 \end_layout
13334
13335 \begin_layout Enumerate
13336 There is no 
13337 \begin_inset Quotes eld
13338 \end_inset
13339
13340 Acknowledgments
13341 \begin_inset Quotes erd
13342 \end_inset
13343
13344  section in both packages.
13345  To put acknowledgments, just use the 
13346 \begin_inset Quotes eld
13347 \end_inset
13348
13349 Section*
13350 \begin_inset Quotes erd
13351 \end_inset
13352
13353  environment.
13354 \end_layout
13355
13356 \begin_layout Enumerate
13357 Appendices may be added to the paper, 
13358 \emph on
13359 after
13360 \emph default
13361  the Acknowledgments and 
13362 \shape italic
13363 before
13364 \shape default
13365  the References.
13366  \SpecialChar LyX
13367  provides a special environment, called 
13368 \begin_inset Quotes eld
13369 \end_inset
13370
13371 Appendices Section
13372 \begin_inset Quotes erd
13373 \end_inset
13374
13375  which marks the beginning of the appendices.
13376  This environment should be left blank; it just sends a \SpecialChar LaTeX
13377  command, but nothing
13378  is really printed.
13379  In \SpecialChar LyX
13380 , the word 
13381 \begin_inset Quotes eld
13382 \end_inset
13383
13384 Appendix
13385 \begin_inset Quotes erd
13386 \end_inset
13387
13388  is printed with blue letters, as a signal that all sections after that
13389  point are appendices.
13390  To write an appendix, use the 
13391 \begin_inset Quotes eld
13392 \end_inset
13393
13394 Appendix
13395 \begin_inset Quotes erd
13396 \end_inset
13397
13398  environment.
13399  \SpecialChar LyX
13400  will number each appendix with capital letters, as required by both journals.
13401  Note that 
13402 \begin_inset Quotes eld
13403 \end_inset
13404
13405 Appendices Section
13406 \begin_inset Quotes erd
13407 \end_inset
13408
13409  
13410 \emph on
13411 must
13412 \emph default
13413  be present before the first appendix; if not, all appendices will be numbered
13414  as normal sections in the output.
13415 \end_layout
13416
13417 \begin_layout Enumerate
13418 The ijmpc and the ijmpd packages use the 
13419 \family typewriter
13420 tbl
13421 \family default
13422  command to implement table captions.
13423  As a result, a table created by \SpecialChar LyX
13424  is printed correctly, but its caption
13425  is ignored.
13426  However, you can use some \SpecialChar TeX
13427  code to overcome this problem, so that captions
13428  are printed as expected.
13429  To do so, create a float table as usual, remove the caption, and replace
13430  it with the \SpecialChar TeX
13431  code 
13432 \family typewriter
13433
13434 \backslash
13435 tbl{
13436 \emph on
13437 your table caption
13438 \emph default
13439 }{
13440 \family default
13441  (sic); you must also the \SpecialChar TeX
13442  code 
13443 \family typewriter
13444 }
13445 \family default
13446  immediately after the tabular material.
13447  Study the example table included in the template files to see how this
13448  trick is implemented.
13449  Alternatively, If you need table captions, you should implement the whole
13450  table float in a 
13451 \family typewriter
13452 .tex
13453 \family default
13454  file, then include this file to the \SpecialChar LyX
13455  document (
13456 \family sans
13457 Insert\SpecialChar menuseparator
13458 File\SpecialChar menuseparator
13459 Child
13460 \begin_inset space ~
13461 \end_inset
13462
13463 Document
13464 \family default
13465 ).
13466  Details on how to create a table float can be found in the files 
13467 \family typewriter
13468 ws-ijmpc.tex
13469 \family default
13470  and 
13471 \family typewriter
13472 ws-ijmpd.tex
13473 \family default
13474 , included in the corresponding packages.
13475 \end_layout
13476
13477 \begin_layout Subsection
13478 Preparing a paper for submission
13479 \end_layout
13480
13481 \begin_layout Standard
13482 Before you submit your paper you must export the \SpecialChar LyX
13483  document as a \SpecialChar LaTeX
13484  file (
13485 \family sans
13486 File\SpecialChar menuseparator
13487 Export\SpecialChar menuseparator
13488 \SpecialChar LaTeX
13489
13490 \family default
13491 )
13492 \begin_inset Foot
13493 status open
13494
13495 \begin_layout Plain Layout
13496 Actually you have the choice between \SpecialChar LaTeX
13497  (plain) and pdflatex.
13498  If you intend to use pdflatex to prepare the paper, you should use the
13499  pdflatex option so that included graphics are converted to PDF format,
13500  ready for use by pdflatex.
13501 \end_layout
13502
13503 \end_inset
13504
13505 , then make the following changes to the resulting 
13506 \family typewriter
13507 .tex
13508 \family default
13509  file.
13510 \end_layout
13511
13512 \begin_layout Enumerate
13513 Remove the comment lines before the 
13514 \family typewriter
13515
13516 \backslash
13517 documentclass
13518 \family default
13519  command.
13520 \end_layout
13521
13522 \begin_layout Enumerate
13523 Remove everything between (and including) the 
13524 \family typewriter
13525
13526 \backslash
13527 makeatletter
13528 \family default
13529  and 
13530 \family typewriter
13531
13532 \backslash
13533 makeatother
13534 \family default
13535  commands, except for any commands you specifically put into the \SpecialChar LaTeX
13536  preamble.
13537 \end_layout
13538
13539 \begin_layout Standard
13540 The modified 
13541 \family typewriter
13542 .tex
13543 \family default
13544  file should be saved and processed through \SpecialChar LaTeX
13545  as many times as necessary.
13546  You may also want to check the resulting 
13547 \family typewriter
13548 .dvi
13549 \family default
13550  document.
13551 \end_layout
13552
13553 \begin_layout Subsection
13554 Use of \SpecialChar TeX
13555  code
13556 \end_layout
13557
13558 \begin_layout Standard
13559 The use of \SpecialChar TeX
13560  code is reduced to two commands, which must be placed at the
13561  top of the document.
13562  If you started writing your paper by using the 
13563 \family typewriter
13564 ijmpc.lyx
13565 \family default
13566  or the 
13567 \family typewriter
13568 ijmpd.lyx
13569 \family default
13570  template, the \SpecialChar TeX
13571  code needed is already in its place; you usually don't need
13572  to delete it.
13573  You may only modify the first \SpecialChar TeX
13574  code to specify the information printed
13575  to the top of odd and even pages (authors' names and short paper's title,
13576  respectively).
13577  This \SpecialChar TeX
13578  code must have the form 
13579 \family typewriter
13580
13581 \backslash
13582 markboth{Authors' Names}{Short Paper's Title}
13583 \family default
13584 .
13585 \end_layout
13586
13587 \begin_layout Section
13588 iopart
13589 \end_layout
13590
13591 \begin_layout Standard
13592 by 
13593 \noun on
13594 Uwe Stöhr
13595 \end_layout
13596
13597 \begin_layout Subsection
13598 Overview
13599 \end_layout
13600
13601 \begin_layout Standard
13602 The iopart package provides a document class to create electronic manuscript
13603  submission to the journals published by the Institute of Physics.
13604  Instructions for the authors how to create a paper using the iopart class
13605  can be downloaded together with the iopart package from the site 
13606 \begin_inset Flex URL
13607 status collapsed
13608
13609 \begin_layout Plain Layout
13610
13611 ftp://ftp.iop.org/pub/journals/latex2e
13612 \end_layout
13613
13614 \end_inset
13615
13616 .
13617 \end_layout
13618
13619 \begin_layout Subsection
13620 Writing a paper
13621 \end_layout
13622
13623 \begin_layout Standard
13624 The easiest way to write a paper is to start with the file 
13625 \emph on
13626 IOP-article.lyx
13627 \emph default
13628  that is available in \SpecialChar LyX
13629 's examples files folder.
13630  Open this file, save it under a new name, and start writing.
13631  The example file explains how to use the special text environments.
13632  Here are the most important advices:
13633 \end_layout
13634
13635 \begin_layout Itemize
13636 To be able to compile your document to a PDF, PS, or DVI, ensure that the
13637  two options 
13638 \family sans
13639 Use AMS math package
13640 \family default
13641  in the document settings under 
13642 \family sans
13643 Math Options
13644 \family default
13645  are not used!
13646 \end_layout
13647
13648 \begin_layout Itemize
13649
13650 \size normal
13651 The title environment defines the kind of your paper.
13652  So use one of the following environments for the title:
13653 \end_layout
13654
13655 \begin_deeper
13656 \begin_layout Itemize
13657
13658 \family sans
13659 \size normal
13660 Title
13661 \family default
13662  for a Paper
13663 \end_layout
13664
13665 \begin_layout Itemize
13666
13667 \family sans
13668 \size normal
13669 Review
13670 \family default
13671  for a Review
13672 \end_layout
13673
13674 \begin_layout Itemize
13675
13676 \family sans
13677 \size normal
13678 Topical
13679 \family default
13680  for a Topical review
13681 \end_layout
13682
13683 \begin_layout Itemize
13684
13685 \family sans
13686 \size normal
13687 Comment
13688 \family default
13689  for a Comment
13690 \end_layout
13691
13692 \begin_layout Itemize
13693
13694 \family sans
13695 \size normal
13696 Note
13697 \family default
13698  for a Note
13699 \end_layout
13700
13701 \begin_layout Itemize
13702
13703 \family sans
13704 \size normal
13705 Paper
13706 \family default
13707  for a Paper (same as Title)
13708 \end_layout
13709
13710 \begin_layout Itemize
13711
13712 \family sans
13713 \size normal
13714 Prelim
13715 \family default
13716  for a Preliminary communication
13717 \end_layout
13718
13719 \begin_layout Itemize
13720
13721 \family sans
13722 \size normal
13723 Rapid
13724 \family default
13725  for a Rapid communication
13726 \end_layout
13727
13728 \begin_layout Itemize
13729
13730 \family sans
13731 \size normal
13732 Letter
13733 \family default
13734  for a Letter to the editor
13735 \end_layout
13736
13737 \end_deeper
13738 \begin_layout Itemize
13739
13740 \size normal
13741 All title environments except of 
13742 \family sans
13743 Letter
13744 \family default
13745  can have an optional short title.
13746 \end_layout
13747
13748 \begin_layout Itemize
13749 There is a general title environment 
13750 \family sans
13751 Article
13752 \family default
13753  which is not directly supported by the \SpecialChar LyX
13754 .
13755  This can be used as \SpecialChar TeX
13756  code when your document doesn't fit into one of the
13757  other title types.
13758 \end_layout
13759
13760 \begin_layout Standard
13761 For more informations like hints for special table and formula formatting,
13762  look at the IOP author guidelines.
13763 \end_layout
13764
13765 \begin_layout Section
13766 Kluwer
13767 \end_layout
13768
13769 \begin_layout Standard
13770 by 
13771 \noun on
13772 Panayotis Papasotiriou
13773 \end_layout
13774
13775 \begin_layout Subsection
13776 Overview
13777 \end_layout
13778
13779 \begin_layout Standard
13780 The Kluwer package is a set of macros produced by Kluwer Academic Publishers
13781  that facilitates electronic manuscript submission to the journals they
13782  publish.
13783  Most known of them (at least in my domain of interest) are 
13784 \emph on
13785 Astrophysics and Space Science
13786 \emph default
13787  and 
13788 \emph on
13789 Solar Physics
13790 \emph default
13791 , but there are many others (see a complete list at 
13792 \begin_inset Flex URL
13793 status open
13794
13795 \begin_layout Plain Layout
13796
13797 http://www.wkap.nl/jrnllist.htm/JRNLHOME
13798 \end_layout
13799
13800 \end_inset
13801
13802 ).
13803  The Kluwer package may be downloaded from the site 
13804 \begin_inset Flex URL
13805 status collapsed
13806
13807 \begin_layout Plain Layout
13808
13809 http://www.wkap.nl/kaphtml.htm/STYLEFILES
13810 \end_layout
13811
13812 \end_inset
13813
13814 .
13815  A complete user guide is contained in that package (but it can also be
13816  downloaded separately).
13817 \end_layout
13818
13819 \begin_layout Standard
13820 \SpecialChar LyX
13821  supports many features of the package but not everything.
13822  However, the \SpecialChar TeX
13823  code needed is reduced to some 
13824 \begin_inset Quotes eld
13825 \end_inset
13826
13827 peculiar
13828 \begin_inset Quotes erd
13829 \end_inset
13830
13831  commands of the package (see
13832 \begin_inset space ~
13833 \end_inset
13834
13835
13836 \begin_inset CommandInset ref
13837 LatexCommand ref
13838 reference "subsec:kluwer_peculiarities"
13839
13840 \end_inset
13841
13842 ).
13843  I have recently used \SpecialChar LyX
13844  to write an article submitted to the 
13845 \emph on
13846 Astrophysics and Space Science
13847 \emph default
13848  without any problem.
13849 \end_layout
13850
13851 \begin_layout Subsection
13852 Writing a paper
13853 \end_layout
13854
13855 \begin_layout Standard
13856 The easiest way to write a paper is to start with the Kluwer template file.
13857  Click on 
13858 \family sans
13859 File\SpecialChar menuseparator
13860 New from
13861 \family default
13862  
13863 \family sans
13864 Template
13865 \family default
13866 , then choose the 
13867 \family typewriter
13868 kluwer.lyx
13869 \family default
13870  template.
13871  This will give an (almost) empty document that includes the most common
13872  fields found in a manuscript and a short description of their use.
13873  As in most templates, simply overwrite the existing text (including the
13874  brackets, 
13875 \family typewriter
13876 <>
13877 \family default
13878 ) with the correct information.
13879 \end_layout
13880
13881 \begin_layout Subsection
13882 Preparing a paper for submission
13883 \end_layout
13884
13885 \begin_layout Standard
13886 As in the AAS\SpecialChar TeX
13887  package, before you submit your paper to a journal you must
13888  
13889 \begin_inset Quotes eld
13890 \end_inset
13891
13892 postprocess
13893 \begin_inset Quotes erd
13894 \end_inset
13895
13896  it as follows.
13897 \end_layout
13898
13899 \begin_layout Enumerate
13900 Export your paper as a \SpecialChar LaTeX
13901  file.
13902  To do this, click on 
13903 \family sans
13904 File\SpecialChar menuseparator
13905 Export\SpecialChar menuseparator
13906 \SpecialChar LaTeX
13907
13908 \family default
13909 .
13910  
13911 \end_layout
13912
13913 \begin_layout Enumerate
13914 Edit the resulting 
13915 \family typewriter
13916 .tex
13917 \family default
13918  file with a text editor and make the following changes
13919 \end_layout
13920
13921 \begin_deeper
13922 \begin_layout Enumerate
13923 remove the comment lines before the 
13924 \family typewriter
13925
13926 \backslash
13927 documentclass
13928 \family default
13929  command,
13930 \end_layout
13931
13932 \begin_layout Enumerate
13933 remove everything between (and including) the 
13934 \family typewriter
13935
13936 \backslash
13937 makeatletter
13938 \family default
13939  and 
13940 \family typewriter
13941
13942 \backslash
13943 makeatother
13944 \family default
13945  commands, except for any commands you specifically put into the \SpecialChar LaTeX
13946  preamble.
13947 \end_layout
13948
13949 \begin_layout Standard
13950 Save the resulting 
13951 \family typewriter
13952 .tex
13953 \family default
13954  file.
13955 \end_layout
13956
13957 \end_deeper
13958 \begin_layout Enumerate
13959 Run the 
13960 \family typewriter
13961 .tex
13962 \family default
13963  file through \SpecialChar LaTeX
13964  as many times as necessary (usually up to three).
13965 \end_layout
13966
13967 \begin_layout Enumerate
13968 View the resulting 
13969 \family typewriter
13970 .dvi
13971 \family default
13972  document using, e.
13973 \begin_inset space \thinspace{}
13974 \end_inset
13975
13976 g.
13977 \begin_inset space \space{}
13978 \end_inset
13979
13980
13981 \family sans
13982 xdvi
13983 \family default
13984 , and check if everything is OK (it should, if you didn't make any mistake).
13985 \end_layout
13986
13987 \begin_layout Subsection
13988 \begin_inset Quotes eld
13989 \end_inset
13990
13991 Peculiarities
13992 \begin_inset Quotes erd
13993 \end_inset
13994
13995  of the Kluwer package
13996 \begin_inset CommandInset label
13997 LatexCommand label
13998 name "subsec:kluwer_peculiarities"
13999
14000 \end_inset
14001
14002
14003 \end_layout
14004
14005 \begin_layout Standard
14006 The Kluwer package has the following 
14007 \begin_inset Quotes eld
14008 \end_inset
14009
14010 peculiarities
14011 \begin_inset Quotes erd
14012 \end_inset
14013
14014 .
14015 \end_layout
14016
14017 \begin_layout Enumerate
14018 It is possible to write multiple articles in the same \SpecialChar LaTeX
14019  file
14020 \begin_inset Foot
14021 status collapsed
14022
14023 \begin_layout Plain Layout
14024 I can't imagine any good reason to do this.
14025 \end_layout
14026
14027 \end_inset
14028
14029 .
14030  Each article must be included in the environment 
14031 \begin_inset Quotes eld
14032 \end_inset
14033
14034 article
14035 \begin_inset Quotes erd
14036 \end_inset
14037
14038 .
14039  Unfortunately, this environment cannot be omitted, even if you write just
14040  one article.
14041  Therefore, each article starts with the command 
14042 \family typewriter
14043
14044 \backslash
14045 begin{article}
14046 \family default
14047  and, obviously, ends with the command 
14048 \family typewriter
14049
14050 \backslash
14051 end{article}
14052 \family default
14053 .
14054  Although this can be implemented in \SpecialChar LyX
14055 , I didn't included it, since it looks
14056  ugly and can confuse the novice user.
14057  Therefore, you need to enter them directly and mark them as \SpecialChar LaTeX
14058  code (the
14059  well-known 
14060 \begin_inset Quotes eld
14061 \end_inset
14062
14063 \SpecialChar TeX
14064  code
14065 \begin_inset Quotes erd
14066 \end_inset
14067
14068 ).
14069 \end_layout
14070
14071 \begin_layout Enumerate
14072 Information given at the beginning of the article (i.
14073 \begin_inset space \thinspace{}
14074 \end_inset
14075
14076 e.
14077 \begin_inset space \space{}
14078 \end_inset
14079
14080 title, subtitle, author, institution, running title, running author, abstract
14081  and keywords) must be included in an environment called 
14082 \begin_inset Quotes eld
14083 \end_inset
14084
14085 opening
14086 \begin_inset Quotes erd
14087 \end_inset
14088
14089 .
14090  This is not implemented in \SpecialChar LyX
14091 , so you must enter title, subtitle etc.
14092 \begin_inset space ~
14093 \end_inset
14094
14095 between two \SpecialChar TeX
14096  code lines (
14097 \family typewriter
14098
14099 \backslash
14100 begin{opening}
14101 \family default
14102  and 
14103 \family typewriter
14104
14105 \backslash
14106 end{opening}
14107 \family default
14108 ).
14109 \end_layout
14110
14111 \begin_layout Enumerate
14112 According to the user manual, the label of each bibliography item must be
14113  written as 
14114 \family typewriter
14115
14116 \backslash
14117 protect
14118 \backslash
14119 citeauthoryear{
14120 \family default
14121 \emph on
14122 author(s)
14123 \family typewriter
14124 \emph default
14125 }{
14126 \family default
14127 \emph on
14128 year
14129 \family typewriter
14130 \emph default
14131 }
14132 \family default
14133 .
14134 \end_layout
14135
14136 \begin_layout Standard
14137 The 
14138 \family typewriter
14139 kluwer.lyx
14140 \family default
14141  template takes care of all these 
14142 \begin_inset Quotes eld
14143 \end_inset
14144
14145 peculiarities
14146 \begin_inset Quotes erd
14147 \end_inset
14148
14149 .
14150  If you start a new paper using this template you don't need to do anything
14151  special.
14152  Just 
14153 \end_layout
14154
14155 \begin_layout Enumerate
14156 don't delete the \SpecialChar TeX
14157  code included in the template, and
14158 \end_layout
14159
14160 \begin_layout Enumerate
14161 copy the example bibliography item included in the template and modify it
14162  as necessary to enter new bibliography items.
14163 \end_layout
14164
14165 \begin_layout Section
14166 Koma-Script
14167 \end_layout
14168
14169 \begin_layout Standard
14170 by 
14171 \noun on
14172 Bernd Rellermeyer
14173 \end_layout
14174
14175 \begin_layout Subsection
14176 Overview
14177 \end_layout
14178
14179 \begin_layout Standard
14180 The \SpecialChar LyX
14181  document classes 
14182 \emph on
14183 article (koma-script)
14184 \emph default
14185
14186 \emph on
14187 report (koma-script)
14188 \emph default
14189
14190 \emph on
14191 book
14192 \emph default
14193  
14194 \emph on
14195 (koma-script)
14196 \emph default
14197 , and 
14198 \emph on
14199 letter
14200 \emph default
14201  
14202 \emph on
14203 (koma-script)
14204 \emph default
14205  correspond to the \SpecialChar LaTeX
14206  document classes 
14207 \family typewriter
14208 scrartcl.cls
14209 \family default
14210
14211 \family typewriter
14212 scrreprt.cls
14213 \family default
14214
14215 \family typewriter
14216 scrbook.cls
14217 \family default
14218 , and 
14219 \family typewriter
14220 scrlettr.cls
14221 \family default
14222 , resp.
14223 \begin_inset space ~
14224 \end_inset
14225
14226 of the Koma-Script family.
14227  They are replacements for the standard document classes 
14228 \family typewriter
14229 article.cls
14230 \family default
14231
14232 \family typewriter
14233 report.cls
14234 \family default
14235
14236 \family typewriter
14237 book.cls
14238 \family default
14239  and 
14240 \family typewriter
14241 letter.cls
14242 \family default
14243 , resp., and fit better to European typography conventions in a number of
14244  points.
14245 \end_layout
14246
14247 \begin_layout Itemize
14248 Standard character size is 11pt in 
14249 \emph on
14250 article (koma-script)
14251 \emph default
14252
14253 \emph on
14254 report (koma-script)
14255 \emph default
14256 , and 
14257 \emph on
14258 book (koma-script)
14259 \emph default
14260 , and 12pt in 
14261 \emph on
14262 letter (koma-script)
14263 \emph default
14264 .
14265 \end_layout
14266
14267 \begin_layout Itemize
14268 Headings, labels of the description environment, and a number of elements
14269  of the 
14270 \emph on
14271 letter (koma-script)
14272 \emph default
14273  document class are set in a bold sans serif font.
14274 \begin_inset Foot
14275 status collapsed
14276
14277 \begin_layout Plain Layout
14278 There is a big difference between the bold sans serif old cm fonts and new
14279  ec fonts, especially in the appearance of headings.
14280  In comparison, the ec bold sans serif fonts look a bit thin.
14281  Here the \SpecialChar LaTeX
14282  package 
14283 \family typewriter
14284 cmsd.sty by
14285 \family default
14286  
14287 \shape smallcaps
14288 Walter Schmidt
14289 \shape default
14290  helps to produce the 
14291 \begin_inset Quotes eld
14292 \end_inset
14293
14294 usual
14295 \begin_inset Quotes erd
14296 \end_inset
14297
14298  appearance when using the ec fonts.
14299 \end_layout
14300
14301 \end_inset
14302
14303  The numbering of chapter headings is made in the same way as the numbering
14304  of section headings, that is without the extra line 
14305 \begin_inset Quotes eld
14306 \end_inset
14307
14308 Chapter\SpecialChar ldots
14309
14310 \begin_inset Quotes erd
14311 \end_inset
14312
14313 .
14314  In addition, the appearance of the headings can be modified by using a
14315  number of options (in \SpecialChar LyX
14316  to be entered in the field 
14317 \family sans
14318 Extra
14319 \begin_inset space ~
14320 \end_inset
14321
14322 Options
14323 \family default
14324  of the dialog 
14325 \family sans
14326 Layout\SpecialChar menuseparator
14327 Document
14328 \family default
14329 ).
14330  
14331 \end_layout
14332
14333 \begin_layout Itemize
14334 The main means in the Koma-Script document classes to design the type area
14335  are the options 
14336 \family sans
14337 BCOR
14338 \family default
14339  and 
14340 \family sans
14341 DIV
14342 \family default
14343  (in \SpecialChar LyX
14344  to be entered in the extra class options field in the dialog 
14345 \family sans
14346 Document\SpecialChar menuseparator
14347 Settings
14348 \family default
14349 ).
14350  They make a clearer modification of page margins possible as do the options
14351  of the dialog 
14352 \family sans
14353 Document\SpecialChar menuseparator
14354 Settings
14355 \family default
14356 .
14357  
14358 \end_layout
14359
14360 \begin_layout Itemize
14361 The \SpecialChar LaTeX
14362  document classes of the Koma-Script family define a number of additional
14363  commands.
14364  Those part of it which makes sense in \SpecialChar LyX
14365  is implemented in corresponding
14366  paragraph types.
14367 \end_layout
14368
14369 \begin_layout Standard
14370 Detailed descriptions of the \SpecialChar LaTeX
14371  document classes of the Koma-Script family
14372  can be found in the Koma-Script documentation 
14373 \emph on
14374 scrguide
14375 \emph default
14376  (German) and 
14377 \emph on
14378 scrguien
14379 \emph default
14380  (English).
14381 \end_layout
14382
14383 \begin_layout Subsection
14384 article (koma-script), report (koma-script), and book (koma-script)
14385 \end_layout
14386
14387 \begin_layout Standard
14388 The document classes 
14389 \emph on
14390 article (koma-script)
14391 \emph default
14392
14393 \emph on
14394 report (koma-script)
14395 \emph default
14396 , and 
14397 \emph on
14398 book
14399 \emph default
14400  
14401 \emph on
14402 (koma-script)
14403 \emph default
14404  are implemented in the layout files 
14405 \family typewriter
14406 scrartcl.layout
14407 \family default
14408
14409 \family typewriter
14410 scrreprt.layout
14411 \family default
14412 , and 
14413 \family typewriter
14414 scrbook.layout
14415 \family default
14416 , resp.
14417  They contain all the paragraph types of the corresponding standard document
14418  classes 
14419 \emph on
14420 article
14421 \emph default
14422
14423 \emph on
14424 report
14425 \emph default
14426 , and 
14427 \emph on
14428 book
14429 \emph default
14430 , resp., partly modified, with the exception of the \SpecialChar LyX
14431  specific 
14432 \family sans
14433 List
14434 \family default
14435 -type, which is replaced by the new 
14436 \family sans
14437 Labeling
14438 \family default
14439 -type having the same functionality.
14440  Beside the 
14441 \family sans
14442 Labeling
14443 \family default
14444 -Type there is a number of new paragraph types added.
14445  They are 
14446 \emph on
14447 not
14448 \emph default
14449  part of 
14450 \emph on
14451 letter (koma-script)
14452 \emph default
14453 .
14454 \end_layout
14455
14456 \begin_layout Itemize
14457
14458 \family sans
14459 Addpart, Addchap
14460 \family default
14461
14462 \family sans
14463 Addsec
14464 \family default
14465 : are equivalents to 
14466 \family sans
14467 Part*, Chapter*
14468 \family default
14469  and 
14470 \family sans
14471 Section*
14472 \family default
14473 , resp., additionally inserting an entry in the table of contents.
14474  
14475 \family sans
14476 Addpart
14477 \family default
14478  and 
14479 \family sans
14480 Addchap
14481 \family default
14482  are not contained in 
14483 \emph on
14484 article (koma-script)
14485 \emph default
14486 .
14487 \end_layout
14488
14489 \begin_layout Itemize
14490
14491 \family sans
14492 Addchap*
14493 \family default
14494
14495 \family sans
14496 Addsec*
14497 \family default
14498 : behave exactly as 
14499 \family sans
14500 Addchap
14501 \family default
14502  and 
14503 \family sans
14504 Addsec
14505 \family default
14506 , resp., additionally clearing running heads.
14507  
14508 \family sans
14509 Addchap*
14510 \family default
14511  is not contained in 
14512 \emph on
14513 article (koma-script)
14514 \emph default
14515 .
14516 \begin_inset Foot
14517 status collapsed
14518
14519 \begin_layout Plain Layout
14520 There is also an 
14521 \family typewriter
14522
14523 \backslash
14524 addpart*
14525 \family default
14526  command in 
14527 \emph on
14528 book (koma-script)
14529 \emph default
14530  and in 
14531 \emph on
14532 report (koma-script)
14533 \emph default
14534 , but since this is identical to 
14535 \family sans
14536 Part*
14537 \family default
14538 , is has not been implemented in \SpecialChar LyX
14539 .
14540 \end_layout
14541
14542 \end_inset
14543
14544
14545 \end_layout
14546
14547 \begin_layout Itemize
14548
14549 \family sans
14550 Minisec
14551 \family default
14552 : generates a heading directly above the following paragraph in the standard
14553  character size without affecting the structure of the document.
14554 \end_layout
14555
14556 \begin_layout Itemize
14557
14558 \family sans
14559 Captionabove
14560 \family default
14561  and 
14562 \family sans
14563 Captionbelow
14564 \family default
14565  are special captions which respect the different space settings needed
14566  for captions placed above or below an element (if you follow strict typographic
14567  rules, you might want to place table captions always above the table).
14568  You can also use the class option 
14569 \family typewriter
14570 tablecaptionsabove
14571 \family default
14572 , which will switch 
14573 \family sans
14574 caption
14575 \family default
14576  to 
14577 \family sans
14578 captionabove
14579 \family default
14580  for tables and 
14581 \family sans
14582 captionbelow
14583 \family default
14584  for figures.
14585  You need at least Koma-Script version 2.8q to use this.
14586 \end_layout
14587
14588 \begin_layout Itemize
14589
14590 \family sans
14591 Dictum
14592 \family default
14593 : can be used to set a bonmot, e.
14594 \begin_inset space \thinspace{}
14595 \end_inset
14596
14597 g.
14598 \begin_inset space \space{}
14599 \end_inset
14600
14601 at the beginning of a chapter.
14602  If you use the optional argument (
14603 \family sans
14604 Insert\SpecialChar menuseparator
14605 Short
14606 \begin_inset space ~
14607 \end_inset
14608
14609 Title
14610 \family default
14611 ), you can insert the dictum's author there.
14612  Dictum and author are separated by a line.
14613  You need at least Koma-Script version 2.8q to use this.
14614  
14615 \family sans
14616 Dictum
14617 \family default
14618  is not contained in 
14619 \emph on
14620 article (koma-script)
14621 \emph default
14622 .
14623 \end_layout
14624
14625 \begin_layout Standard
14626 The following types, together with the standard types 
14627 \family sans
14628 Title
14629 \family default
14630
14631 \family sans
14632 Author
14633 \family default
14634 , and 
14635 \family sans
14636 Date
14637 \family default
14638 , form the title area of the document.
14639  They must be entered ahead of the first 
14640 \begin_inset Quotes eld
14641 \end_inset
14642
14643 ordinary
14644 \begin_inset Quotes erd
14645 \end_inset
14646
14647  paragraph.
14648 \begin_inset Foot
14649 status collapsed
14650
14651 \begin_layout Plain Layout
14652 The corresponding \SpecialChar LaTeX
14653  commands must appear before the 
14654 \family typewriter
14655
14656 \backslash
14657 maketitle
14658 \family default
14659  command.
14660 \end_layout
14661
14662 \end_inset
14663
14664  When such a type is used more than once, the latter usage overwrites the
14665  former one, that means, for every type only the latest usage is valid.
14666  The order of the different types however has, like 
14667 \family sans
14668 Title
14669 \family default
14670
14671 \family sans
14672 Author
14673 \family default
14674 , and 
14675 \family sans
14676 Date
14677 \family default
14678 , no effect on the appearance of the produced document.
14679 \end_layout
14680
14681 \begin_layout Itemize
14682
14683 \family sans
14684 Subject
14685 \family default
14686 : produces a centered paragraph above the ordinary title (
14687 \family sans
14688 Title
14689 \family default
14690
14691 \family sans
14692 Author
14693 \family default
14694
14695 \family sans
14696 Date
14697 \family default
14698 ) for the subject of the document.
14699 \end_layout
14700
14701 \begin_layout Itemize
14702
14703 \family sans
14704 Publishers
14705 \family default
14706 : produces a centered paragraph below the ordinary title (
14707 \family sans
14708 Title
14709 \family default
14710
14711 \family sans
14712 Author
14713 \family default
14714
14715 \family sans
14716 Date
14717 \family default
14718 ) for the publishers' name.
14719 \end_layout
14720
14721 \begin_layout Itemize
14722
14723 \family sans
14724 Dedication
14725 \family default
14726 : in 
14727 \emph on
14728 report (koma-script)
14729 \emph default
14730  and 
14731 \emph on
14732 book (koma-script)
14733 \emph default
14734  produces a centered paragraph on its own page behind the title page, or
14735  in 
14736 \emph on
14737 article (koma-script)
14738 \emph default
14739  produces a centered paragraph below the ordinary title (
14740 \family sans
14741 Title
14742 \family default
14743
14744 \family sans
14745 Author
14746 \family default
14747
14748 \family sans
14749 Date
14750 \family default
14751
14752 \family sans
14753 Publishers
14754 \family default
14755 ) for a dedication.
14756 \end_layout
14757
14758 \begin_layout Itemize
14759
14760 \family sans
14761 Titlehead
14762 \family default
14763 : produces a left aligned paragraph above the ordinary title (
14764 \family sans
14765 Title
14766 \family default
14767
14768 \family sans
14769 Author
14770 \family default
14771
14772 \family sans
14773 Date
14774 \family default
14775
14776 \family sans
14777 Subject
14778 \family default
14779 ) for a document`s head.
14780 \end_layout
14781
14782 \begin_layout Itemize
14783
14784 \family sans
14785 Uppertitleback
14786 \family default
14787 : produces in a double-sided print in 
14788 \emph on
14789 report (koma-script)
14790 \emph default
14791  and 
14792 \emph on
14793 book (koma-script)
14794 \emph default
14795  a left-aligned paragraph at the top of the title page`s back or has no
14796  effect in a single-sided print or in 
14797 \emph on
14798 article (koma-script)
14799 \emph default
14800 .
14801 \end_layout
14802
14803 \begin_layout Itemize
14804
14805 \family sans
14806 Lowertitleback
14807 \family default
14808 : produces in a double-sided print in 
14809 \emph on
14810 report (koma-script)
14811 \emph default
14812  and 
14813 \emph on
14814 book (koma-script)
14815 \emph default
14816  a left-aligned paragraph at the bottom of the title page`s back or has
14817  no effect in a single-sided print or in 
14818 \emph on
14819 article (koma-script)
14820 \emph default
14821 .
14822 \end_layout
14823
14824 \begin_layout Itemize
14825
14826 \family sans
14827 Extratitle
14828 \family default
14829 : produces a special 
14830 \begin_inset Quotes eld
14831 \end_inset
14832
14833 dirty
14834 \begin_inset Quotes erd
14835 \end_inset
14836
14837  page ahead of the actual document containing a paragraph without special
14838  formatting.
14839 \end_layout
14840
14841 \begin_layout Standard
14842 The layout files for the document classes 
14843 \emph on
14844 article (koma-script)
14845 \emph default
14846
14847 \emph on
14848 report (koma-script)
14849 \emph default
14850 , and 
14851 \emph on
14852 book (koma-script)
14853 \emph default
14854  do include the file 
14855 \family typewriter
14856 scrmacros.inc
14857 \family default
14858 .
14859  This is thought of as a place to define your own types.
14860  Copy scrmacros
14861 \family typewriter
14862 .inc
14863 \family default
14864  in your personal layout directory and edit the file!
14865 \end_layout
14866
14867 \begin_layout Subsection
14868 letter (koma-script)
14869 \end_layout
14870
14871 \begin_layout Standard
14872 \noindent
14873 The document class 
14874 \emph on
14875 letter (koma-script)
14876 \emph default
14877  is implemented in the layout file 
14878 \family typewriter
14879 scrlettr.layout
14880 \family default
14881 .
14882  It contains all the paragraph types of the corresponding standard document
14883  class 
14884 \emph on
14885 letter
14886 \emph default
14887 , partly modified, with the exception of the \SpecialChar LyX
14888  specific types 
14889 \family sans
14890 \SpecialChar LyX
14891 -Code
14892 \family default
14893  and 
14894 \family sans
14895 Comment
14896 \family default
14897  and the 
14898 \family sans
14899 List
14900 \family default
14901  type, which is replaced by the new 
14902 \family sans
14903 Labeling
14904 \family default
14905  type.
14906  In addition, it contains, in contrast to the standard document class, the
14907  standard types 
14908 \family sans
14909 \SpecialChar LaTeX
14910
14911 \family default
14912
14913 \family sans
14914 Quotation
14915 \family default
14916
14917 \family sans
14918 Quote
14919 \family default
14920 , and 
14921 \family sans
14922 Verse
14923 \family default
14924 .
14925  Furthermore, there are a number of new letter specific types.
14926 \end_layout
14927
14928 \begin_layout Standard
14929 The appearance of the letter produced by this document class can be controlled
14930  by a number of \SpecialChar LaTeX
14931  commands, which you can put in the \SpecialChar LaTeX
14932  preamble.
14933 \begin_inset Foot
14934 status collapsed
14935
14936 \begin_layout Plain Layout
14937 For example, the standard appearance of the letter`s heading, consisting
14938  of name and address, is quite self-willed.
14939  An 
14940 \begin_inset Quotes eld
14941 \end_inset
14942
14943 ordinary
14944 \begin_inset Quotes erd
14945 \end_inset
14946
14947  heading is produced by the following \SpecialChar LaTeX
14948  commands in the preamble:
14949 \end_layout
14950
14951 \begin_layout LyX-Code
14952
14953 \backslash
14954 firsthead{
14955 \backslash
14956 parbox[b]{
14957 \backslash
14958 textwidth}
14959 \end_layout
14960
14961 \begin_layout LyX-Code
14962   {
14963 \backslash
14964 ignorespaces 
14965 \backslash
14966 fromname
14967 \backslash
14968
14969 \backslash
14970  
14971 \backslash
14972 ignorespaces 
14973 \backslash
14974 fromaddress}} 
14975 \end_layout
14976
14977 \begin_layout LyX-Code
14978
14979 \backslash
14980 nexthead{
14981 \backslash
14982 parbox[b]{
14983 \backslash
14984 textwidth}
14985 \end_layout
14986
14987 \begin_layout LyX-Code
14988   {
14989 \backslash
14990 ignorespaces 
14991 \backslash
14992 fromname 
14993 \backslash
14994 hfill 
14995 \backslash
14996 ignorespaces 
14997 \backslash
14998 pagename
14999 \backslash
15000  
15001 \backslash
15002 thepage}}
15003 \end_layout
15004
15005 \end_inset
15006
15007  A detailed German description of such \SpecialChar LaTeX
15008  commands can be found in the Koma-Script
15009  documentation 
15010 \emph on
15011 scrguide
15012 \emph default
15013 .
15014  With it, the letter's author can produce his personal letter layout.
15015 \end_layout
15016
15017 \begin_layout Standard
15018 The types 
15019 \family sans
15020 Letter
15021 \family default
15022  and 
15023 \family sans
15024 Opening
15025 \family default
15026  define the beginning of the letter and must be used in every letter.
15027  To emphasize them in the \SpecialChar LyX
15028  document class, they are marked with the letter
15029  
15030 \shape italic
15031 L
15032 \shape default
15033  or 
15034 \shape italic
15035 O
15036 \shape default
15037 , resp.
15038 \begin_inset space ~
15039 \end_inset
15040
15041 in the left margin.
15042  It is possible to write any number of letters in one file.
15043  An 
15044 \family sans
15045 Opening
15046 \family default
15047  type produces a new letter using the same addressee and a 
15048 \family sans
15049 Letter
15050 \family default
15051  type produces a new addressee.
15052  The types 
15053 \family sans
15054 Closing
15055 \family default
15056
15057 \family sans
15058 PS
15059 \family default
15060
15061 \family sans
15062 CC
15063 \family default
15064 , and 
15065 \family sans
15066 Encl
15067 \family default
15068  are ordinary paragraph types and can also be used several times in one
15069  and the same letter.
15070 \end_layout
15071
15072 \begin_layout Itemize
15073
15074 \family sans
15075 Letter
15076 \family default
15077 : produces a paragraph for the addressee and implicitly defines the beginning
15078  of the letter.
15079 \end_layout
15080
15081 \begin_layout Itemize
15082
15083 \family sans
15084 Opening
15085 \family default
15086 : produces a paragraph for the form of address and implicitly produces a
15087  new letter.
15088 \end_layout
15089
15090 \begin_layout Itemize
15091
15092 \family sans
15093 Closing
15094 \family default
15095 : produces a paragraph for a close.
15096 \end_layout
15097
15098 \begin_layout Itemize
15099
15100 \family sans
15101 PS
15102 \family default
15103 : produces a paragraph for a postscript.
15104 \end_layout
15105
15106 \begin_layout Itemize
15107
15108 \family sans
15109 CC
15110 \family default
15111 : produces a paragraph for a distribution list.
15112 \end_layout
15113
15114 \begin_layout Itemize
15115
15116 \family sans
15117 Encl
15118 \family default
15119 : produces a paragraph for enclosures.
15120 \end_layout
15121
15122 \begin_layout Standard
15123 The types 
15124 \family sans
15125 Name
15126 \family default
15127
15128 \family sans
15129 Signature
15130 \family default
15131
15132 \family sans
15133 Address
15134 \family default
15135
15136 \family sans
15137 Telephone
15138 \family default
15139
15140 \family sans
15141 Place
15142 \family default
15143
15144 \family sans
15145 Backaddress
15146 \family default
15147
15148 \family sans
15149 Specialmail
15150 \family default
15151
15152 \family sans
15153 Location
15154 \family default
15155
15156 \family sans
15157 Title
15158 \family default
15159 , and 
15160 \family sans
15161 Subject
15162 \family default
15163  are input types provided with a label to enter information, which will
15164  be processed by the document class.
15165 \begin_inset Foot
15166 status open
15167
15168 \begin_layout Plain Layout
15169 It could be seen as a matter of inconsequence, that the types 
15170 \family sans
15171 Letter
15172 \family default
15173  and 
15174 \family sans
15175 Opening
15176 \family default
15177  described above are not such input types as well.
15178  Because of the special meaning of those types, however, I have implemented
15179  them as ordinary paragraph types with a one letter mark in the left margin.
15180  Moreover, it would affect my feeling of symmetry, if the 
15181 \family sans
15182 Opening
15183 \family default
15184  type and the 
15185 \family sans
15186 Closing
15187 \family default
15188  type had such a serious different appearance.
15189 \end_layout
15190
15191 \end_inset
15192
15193  The types must be used ahead of the corresponding 
15194 \family sans
15195 Opening
15196 \family default
15197  type.
15198 \end_layout
15199
15200 \begin_layout Standard
15201 An implementation of these types in a WYSIWYG fashion does not seem to make
15202  sense, because the real appearance of the produced letter does not only
15203  depend on the usage of the particular type, but also on other factors.
15204  For example, a signature entered in the 
15205 \family sans
15206 Signature
15207 \family default
15208  type will in the standard behavior appear in the produced letter only,
15209  when in the same letter also a 
15210 \family sans
15211 Closing
15212 \family default
15213  type is used.
15214  The entered value of the 
15215 \family sans
15216 Telephone
15217 \family default
15218  type will in the standard behavior not appear in the produced letter at
15219  all.
15220  The possibility to design the letter`s heading freely is already indicated
15221  in a footnote above.
15222 \end_layout
15223
15224 \begin_layout Standard
15225 The input types can also be used as empty paragraphs.
15226  This makes sense e.
15227 \begin_inset space \thinspace{}
15228 \end_inset
15229
15230 g.
15231 \begin_inset space \space{}
15232 \end_inset
15233
15234 for the 
15235 \family sans
15236 Signature
15237 \family default
15238  type.
15239  If the 
15240 \family sans
15241 Signature
15242 \family default
15243  type is not used at all, in the standard behavior the value of the 
15244 \family sans
15245 Name
15246 \family default
15247  type is used as signature, whereas if an empty 
15248 \family sans
15249 Signature
15250 \family default
15251  type is used, no signature value is defined.
15252 \end_layout
15253
15254 \begin_layout Standard
15255 By using the input types it is possible to write a letter template, containing
15256  filled input types with your personal dates (name, address, etc.) and empty
15257  input types for other dates you want to enter.
15258 \end_layout
15259
15260 \begin_layout Itemize
15261
15262 \family sans
15263 Name
15264 \family default
15265 : sender's name, in the standard behavior appears as a centered paragraph
15266  in small caps in the letter`s heading.
15267 \end_layout
15268
15269 \begin_layout Itemize
15270
15271 \family sans
15272 Signature
15273 \family default
15274 : sender's signature, in the standard behavior appears below the 
15275 \family sans
15276 Closing
15277 \family default
15278  type.
15279  If no 
15280 \family sans
15281 Signature
15282 \family default
15283  type is used, the value of the 
15284 \family sans
15285 Name
15286 \family default
15287  type appears instead.
15288 \end_layout
15289
15290 \begin_layout Itemize
15291
15292 \family sans
15293 Address
15294 \family default
15295 : sender's address, in the standard behavior appears in a centered paragraph
15296  in the letter`s heading below the sender's name.
15297 \end_layout
15298
15299 \begin_layout Itemize
15300
15301 \family sans
15302 Telephone
15303 \family default
15304 : sender's telephone number, in the standard behavior only sets the \SpecialChar LaTeX
15305  variable
15306  
15307 \family typewriter
15308
15309 \backslash
15310 telephonenum
15311 \family default
15312 .
15313 \end_layout
15314
15315 \begin_layout Itemize
15316
15317 \family sans
15318 Place
15319 \family default
15320 : place of the letter`s making.
15321 \end_layout
15322
15323 \begin_layout Itemize
15324
15325 \family sans
15326 Date
15327 \family default
15328 : date of the letter`s making.
15329  
15330 \family sans
15331 Place
15332 \family default
15333  and 
15334 \family sans
15335 Date
15336 \family default
15337 , in the standard behavior, produce the place and the date in a right-aligned
15338  line below the addressee's field.
15339  If an empty 
15340 \family sans
15341 Date
15342 \family default
15343  type is used, neither place nor date appear, independent of the value of
15344  the 
15345 \family sans
15346 Place
15347 \family default
15348  type.
15349  If no 
15350 \family sans
15351 Date
15352 \family default
15353  type is used, the date of the letter `s production is used.
15354 \end_layout
15355
15356 \begin_layout Itemize
15357
15358 \family sans
15359 Backaddress
15360 \family default
15361 : sender`s back address, in the standard behavior appears above the addressee's
15362  field in a small sans serif font.
15363 \end_layout
15364
15365 \begin_layout Itemize
15366
15367 \family sans
15368 Specialmail
15369 \family default
15370 : special mail information, in the standard behavior appears underlined
15371  above the addressee's field below the back address.
15372 \end_layout
15373
15374 \begin_layout Itemize
15375
15376 \family sans
15377 Location
15378 \family default
15379 : additional information, in the standard behavior appears on right side
15380  below the addressee`s field.
15381 \end_layout
15382
15383 \begin_layout Itemize
15384
15385 \family sans
15386 Title
15387 \family default
15388 : the letter's title, in the standard behavior appears in a big, bold, sans
15389  serif font above the subject.
15390 \end_layout
15391
15392 \begin_layout Itemize
15393
15394 \family sans
15395 Subject
15396 \family default
15397 : the letter's subject, in the standard behavior appears in a bold font
15398  above the 
15399 \family sans
15400 Opening
15401 \family default
15402  paragraph.
15403 \end_layout
15404
15405 \begin_layout Standard
15406 The types 
15407 \family sans
15408 Yourref
15409 \family default
15410
15411 \family sans
15412 Yourmail
15413 \family default
15414
15415 \family sans
15416 Myref
15417 \family default
15418
15419 \family sans
15420 Customer
15421 \family default
15422 , and 
15423 \family sans
15424 Invoice
15425 \family default
15426  produce a business letter like line above the 
15427 \family sans
15428 Title
15429 \family default
15430  line containing the fields 
15431 \begin_inset Quotes eld
15432 \end_inset
15433
15434 Your ref.
15435 \begin_inset Quotes erd
15436 \end_inset
15437
15438
15439 \begin_inset Quotes eld
15440 \end_inset
15441
15442 Your letter of
15443 \begin_inset Quotes erd
15444 \end_inset
15445
15446
15447 \begin_inset Quotes eld
15448 \end_inset
15449
15450 Our ref.
15451 \begin_inset Quotes erd
15452 \end_inset
15453
15454
15455 \begin_inset Quotes eld
15456 \end_inset
15457
15458 Customer no.
15459 \begin_inset Quotes erd
15460 \end_inset
15461
15462
15463 \begin_inset Quotes eld
15464 \end_inset
15465
15466 Invoice no.
15467 \begin_inset Quotes erd
15468 \end_inset
15469
15470 , and 
15471 \begin_inset Quotes eld
15472 \end_inset
15473
15474 Date
15475 \begin_inset Quotes erd
15476 \end_inset
15477
15478 .
15479  For the date field, the value of the 
15480 \family sans
15481 Date
15482 \family default
15483  type is used.
15484  If one of these 
15485 \begin_inset Quotes eld
15486 \end_inset
15487
15488 business letter types
15489 \begin_inset Quotes erd
15490 \end_inset
15491
15492  is used, the value of the 
15493 \family sans
15494 Place
15495 \family default
15496  type however does not appear, but only the \SpecialChar LaTeX
15497  variable 
15498 \family typewriter
15499
15500 \backslash
15501 fromplace
15502 \family default
15503  is set.
15504  The ordinary output of place and date in a right-aligned line below the
15505  addressee`s field is suppressed.
15506  The types are implemented as input types provided with a label and must
15507  be used ahead of the corresponding 
15508 \family sans
15509 Opening
15510 \family default
15511  type.
15512 \end_layout
15513
15514 \begin_layout Itemize
15515
15516 \family sans
15517 Yourref
15518 \family default
15519 : Your ref.
15520 \end_layout
15521
15522 \begin_layout Itemize
15523
15524 \family sans
15525 Yourmail
15526 \family default
15527 : Your letter of.
15528 \end_layout
15529
15530 \begin_layout Itemize
15531
15532 \family sans
15533 Myref
15534 \family default
15535 : Our ref.
15536 \end_layout
15537
15538 \begin_layout Itemize
15539
15540 \family sans
15541 Customer
15542 \family default
15543 : Customer no.
15544 \end_layout
15545
15546 \begin_layout Itemize
15547
15548 \family sans
15549 Invoice
15550 \family default
15551 : Invoice no.
15552 \end_layout
15553
15554 \begin_layout Subsection
15555 The new letter class: letter (koma-script v.2)
15556 \end_layout
15557
15558 \begin_layout Standard
15559 by 
15560 \noun on
15561 Jürgen Spitzmüller
15562 \end_layout
15563
15564 \begin_layout Standard
15565 \begin_inset VSpace medskip
15566 \end_inset
15567
15568
15569 \end_layout
15570
15571 \begin_layout Standard
15572 \noindent
15573 Koma-Script version 2.8 has introduced a new letter class 
15574 \family typewriter
15575 scrlttr2
15576 \family default
15577  which supersedes the now unsupported 
15578 \family typewriter
15579 scrlettr
15580 \family default
15581 .
15582  It has — on the \SpecialChar LaTeX
15583  side — a completely new interface and is not compatible
15584  with the old class.
15585  Therefore, \SpecialChar LyX
15586  supports both, though it is recommended you use the new class.
15587 \end_layout
15588
15589 \begin_layout Standard
15590 This class covers the same functionality as 
15591 \emph on
15592 letter (koma-script),
15593 \emph default
15594  and a few more.
15595  The basic items are 
15596 \family sans
15597 Address
15598 \family default
15599  (receiver's address, same as 
15600 \family sans
15601 Letter
15602 \family default
15603  in the old layout), 
15604 \family sans
15605 Opening
15606 \family default
15607 , and 
15608 \family sans
15609 Closing
15610 \family default
15611 .
15612  
15613 \family sans
15614 NextAddress
15615 \family default
15616  will start a new letter (i.
15617 \begin_inset space \thinspace{}
15618 \end_inset
15619
15620 e.
15621 \begin_inset space \space{}
15622 \end_inset
15623
15624 you can write several letters per document).
15625  New elements are sender's 
15626 \family sans
15627 E-Mail
15628 \family default
15629
15630 \family sans
15631 URL
15632 \family default
15633
15634 \family sans
15635 Fax
15636 \family default
15637
15638 \family sans
15639 Bank
15640 \family default
15641  and the possibility to use a 
15642 \family sans
15643 Logo
15644 \family default
15645  (via 
15646 \family sans
15647 Insert\SpecialChar menuseparator
15648 Graphics
15649 \family default
15650 ) in the header.
15651 \end_layout
15652
15653 \begin_layout Standard
15654 The biggest improvement is, though, that the letter's layout is configurable
15655  to meet almost any needs.
15656  This can be done via the preamble or with a special style file (Letter
15657  Class Option, extension 
15658 \family typewriter
15659 *.lco
15660 \family default
15661 ), that will be read in as a class option.
15662 \begin_inset Foot
15663 status collapsed
15664
15665 \begin_layout Plain Layout
15666 The KOMA package comes with some default 
15667 \family typewriter
15668 *.lco
15669 \family default
15670  files.
15671  There is, for instance, a 
15672 \family typewriter
15673 DIN.lco
15674 \family default
15675  file that follows german typesetting rules, or a 
15676 \family typewriter
15677 KOMAold.lco
15678 \family default
15679  that provides the default layout of the old 
15680 \family typewriter
15681 scrlettr
15682 \family default
15683  class.
15684  The latter can be loaded with the class option 
15685 \family typewriter
15686 KOMAold
15687 \family default
15688 , inserted via the 
15689 \family sans
15690 Layout\SpecialChar menuseparator
15691 Document\SpecialChar menuseparator
15692 Extra Options
15693 \family default
15694  field.
15695 \end_layout
15696
15697 \end_inset
15698
15699  Have a look at the 
15700 \emph on
15701 koma-letter2
15702 \emph default
15703  template that is included in \SpecialChar LyX
15704  for examples.
15705  A detailed description is to be found in the Koma-Script documentation
15706  (
15707 \emph on
15708 scrguide
15709 \emph default
15710 ).
15711 \end_layout
15712
15713 \begin_layout Subsection
15714 Problems
15715 \end_layout
15716
15717 \begin_layout Standard
15718 Visualizing the Koma-Script document classes in \SpecialChar LyX
15719 , the \SpecialChar LyX
15720  internals cause some
15721  problems.
15722 \end_layout
15723
15724 \begin_layout Itemize
15725 The chapter number of a 
15726 \family sans
15727 Chapter
15728 \family default
15729  type appears on a line of its own above the chapter heading instead of
15730  appearing in the same line ahead of it.
15731  The cause for that is the \SpecialChar LyX
15732  internal behavior for the labeltype 
15733 \family sans
15734 Counter_Chapter
15735 \family default
15736  in the layout file.
15737 \end_layout
15738
15739 \begin_layout Itemize
15740 The headings of the types 
15741 \family sans
15742 Addchap
15743 \family default
15744  and 
15745 \family sans
15746 Addsec
15747 \family default
15748  are only put in the 
15749 \begin_inset Quotes eld
15750 \end_inset
15751
15752 true
15753 \begin_inset Quotes erd
15754 \end_inset
15755
15756  \SpecialChar LaTeX
15757  table of contents, but not in the \SpecialChar LyX
15758  table of contents (
15759 \family sans
15760 Document\SpecialChar menuseparator
15761 Table
15762 \begin_inset space ~
15763 \end_inset
15764
15765 of
15766 \begin_inset space ~
15767 \end_inset
15768
15769 Contents
15770 \family default
15771 ).
15772 \end_layout
15773
15774 \begin_layout Itemize
15775 The paragraphs in a 
15776 \emph on
15777 letter
15778 \emph default
15779  document class appear in a skip separation mode, not indented.
15780  This is the standard behavior, no special \SpecialChar LaTeX
15781  commands are needed for that.
15782  But in the 
15783 \family sans
15784 Document\SpecialChar menuseparator
15785 Settings
15786 \family default
15787  dialog the corresponding radio button indicates 
15788 \family sans
15789 Indent
15790 \family default
15791 .
15792  A 
15793 \family sans
15794 Skip
15795 \family default
15796  value always has the effect that extra \SpecialChar LaTeX
15797  commands are inserted in the document
15798  to produce the gap, which is not what is wanted in this case.
15799 \end_layout
15800
15801 \begin_layout Section
15802 Memoir
15803 \end_layout
15804
15805 \begin_layout Standard
15806 By 
15807 \noun on
15808 Jürgen Spitzmüller
15809 \end_layout
15810
15811 \begin_layout Subsection
15812 Overview
15813 \end_layout
15814
15815 \begin_layout Standard
15816 Memoir is a very powerful and constantly evolving class.
15817  It has been designed with regard to fictional and non-fictional literature.
15818  Its aim is to let the user have maximum control over the typesetting of
15819  his document.
15820  Memoir is based on the standard book class, but it can also emulate the
15821  article class (see below).
15822 \end_layout
15823
15824 \begin_layout Standard
15825 Peter Wilson, the developer of Memoir, is known as the author of lots of
15826  useful packages in the \SpecialChar LaTeX
15827  world.
15828  Most of them have been merged with Memoir.
15829  Therefore, it is much easier to layout the table of contents, appendices,
15830  chapter designs and such.
15831  \SpecialChar LyX
15832 , though, does not support all of these goodies natively.
15833  Some of them might be added to forthcoming releases
15834 \begin_inset Foot
15835 status collapsed
15836
15837 \begin_layout Plain Layout
15838 You are invited to send suggestions to 
15839 \begin_inset Flex URL
15840 status collapsed
15841
15842 \begin_layout Plain Layout
15843
15844 lyx-devel@lists.lyx.org
15845 \end_layout
15846
15847 \end_inset
15848
15849 .
15850 \end_layout
15851
15852 \end_inset
15853
15854 , lots will probably never be supported, due to the limitations of \SpecialChar LyX
15855 's framework.
15856  Of course you can still use all features with the help of some native \SpecialChar LaTeX
15857
15858  commands (\SpecialChar TeX
15859  code
15860 \begin_inset Foot
15861 status collapsed
15862
15863 \begin_layout Plain Layout
15864 Cf.
15865 \begin_inset ERT
15866 status collapsed
15867
15868 \begin_layout Plain Layout
15869
15870
15871 \backslash
15872  
15873 \end_layout
15874
15875 \end_inset
15876
15877 section
15878 \begin_inset space ~
15879 \end_inset
15880
15881
15882 \begin_inset CommandInset ref
15883 LatexCommand ref
15884 reference "sec:Inserting-TeX-Code"
15885
15886 \end_inset
15887
15888  for details.
15889 \end_layout
15890
15891 \end_inset
15892
15893 ).
15894  In this section, we can only list those features that are natively supported
15895  by \SpecialChar LyX
15896 .
15897  For detailed descriptions (and for the rest of features) we recommend you
15898  have a look at the detailed manual of the Memoir class
15899 \begin_inset Foot
15900 status collapsed
15901
15902 \begin_layout Plain Layout
15903 Cf.
15904 \begin_inset ERT
15905 status collapsed
15906
15907 \begin_layout Plain Layout
15908
15909
15910 \backslash
15911  
15912 \end_layout
15913
15914 \end_inset
15915
15916
15917 \begin_inset Flex URL
15918 status collapsed
15919
15920 \begin_layout Plain Layout
15921
15922 CTAN:/macros/latex/memoir/memman.pdf
15923 \end_layout
15924
15925 \end_inset
15926
15927 .
15928 \end_layout
15929
15930 \end_inset
15931
15932 , which is not only a user guide for the class, but also both a comprehensive
15933  description on good typesetting and a superb example for good typesetting
15934  itself.
15935 \end_layout
15936
15937 \begin_layout Subsection
15938 Basic features and restrictions
15939 \end_layout
15940
15941 \begin_layout Standard
15942 Memoir supports basically all features of the standard book classes.
15943  There are, however, some differences, as follows:
15944 \end_layout
15945
15946 \begin_layout Description
15947 Font
15948 \begin_inset space ~
15949 \end_inset
15950
15951 sizes: Memoir has a broader range of font sizes: 9, 10, 11, 12, 14, 17
15952 \end_layout
15953
15954 \begin_layout Description
15955 Page
15956 \begin_inset space ~
15957 \end_inset
15958
15959 style: The fancy page style is not supported, due to a command clash between
15960  Memoir and the fancyhdr package (they both define a command with the same
15961  name, which confuses \SpecialChar LaTeX
15962 ).
15963  Instead, Memoir comes with a number of its own page styles (see 
15964 \family sans
15965 Layout\SpecialChar menuseparator
15966 Document\SpecialChar menuseparator
15967 Page
15968 \begin_inset space ~
15969 \end_inset
15970
15971 Style
15972 \family default
15973 ).
15974  If you want to use these for the chapter pages, you have to use the command
15975  
15976 \family typewriter
15977
15978 \backslash
15979 chapterstyle
15980 \family default
15981  in the main text or in preamble (e.
15982 \begin_inset space \thinspace{}
15983 \end_inset
15984
15985 g.
15986 \begin_inset space \space{}
15987 \end_inset
15988
15989
15990 \family typewriter
15991
15992 \backslash
15993 chapterstyle{companion}
15994 \family default
15995 ).
15996 \end_layout
15997
15998 \begin_layout Description
15999 Sectioning: Sectionings (chapter, section, subsection etc.) come with an
16000  optional argument in the standard classes.
16001  With this, you can specify an alternative version of the title for the
16002  table of contents and the headers (for instance, if the title is too long).
16003  In \SpecialChar LyX
16004 , you can do this via 
16005 \family sans
16006 Insert\SpecialChar menuseparator
16007 Short
16008 \begin_inset space ~
16009 \end_inset
16010
16011 Title
16012 \family default
16013  at the beginning of a chapter/section.
16014  Memoir features a second optional argument and thus separates the table
16015  of contents from the header.
16016  You can define three variants of a title with this: one for the main text,
16017  one for the table of contents, and one for the headers.
16018  Simply insert two optional arguments if you need this feature, the first
16019  one containing the short title for the Table of Contents, the second one
16020  containing an alternative short title for the headers.
16021 \end_layout
16022
16023 \begin_layout Description
16024 TOC/LOT/LOF: In the standard classes (and in many other classes), the table
16025  of contents, the list of figures and the list of table start a new page
16026  automatically.
16027  Memoir does not follow this route.
16028  You have to insert a page break yourself, if you want to have one.
16029 \end_layout
16030
16031 \begin_layout Description
16032 Titlepage: For some unknown reason, Memoir uses pagination on the title
16033  page (in the standard classes, title pages are 
16034 \begin_inset Quotes eld
16035 \end_inset
16036
16037 empty
16038 \begin_inset Quotes erd
16039 \end_inset
16040
16041 ).
16042  If you want an empty title page, type 
16043 \family typewriter
16044
16045 \backslash
16046 aliaspagestyle{title}{empty}
16047 \family default
16048  in the preamble.
16049 \end_layout
16050
16051 \begin_layout Description
16052 Article: With the class option 
16053 \emph on
16054 article
16055 \emph default
16056  (to be inserted in 
16057 \family sans
16058 Layout\SpecialChar menuseparator
16059 Document\SpecialChar menuseparator
16060 Extra
16061 \begin_inset space ~
16062 \end_inset
16063
16064 Options
16065 \family default
16066 ), you can emulate article style.
16067  That is, counters (footnotes, figures, tables etc.) will not be reset on
16068  new chapters, chapters don't start a new page (but are—in contrary to 
16069 \begin_inset Quotes eld
16070 \end_inset
16071
16072 real
16073 \begin_inset Quotes erd
16074 \end_inset
16075
16076  article classes—still allowed), parts, though, use their own page, as in
16077  book.
16078 \end_layout
16079
16080 \begin_layout Description
16081 Oldfontcommands: By default, Memoir does not allow the use of the deprecated
16082  font commands, which have been used in the old \SpecialChar LaTeX
16083  version 2.09 (e.
16084 \begin_inset space \thinspace{}
16085 \end_inset
16086
16087 g.
16088 \begin_inset space \space{}
16089 \end_inset
16090
16091
16092 \family typewriter
16093
16094 \backslash
16095 rm
16096 \family default
16097
16098 \family typewriter
16099
16100 \backslash
16101 it
16102 \family default
16103 ).
16104  It produces an error and stops \SpecialChar LaTeX
16105  whenever such a command appears.
16106  The class option 
16107 \emph on
16108 oldfontcommands
16109 \emph default
16110  reallows the commands and spits out warnings instead (which does at least
16111  not stop \SpecialChar LaTeX
16112 ).
16113  Since a lot of packages and particularly Bib\SpecialChar TeX
16114  style files are still using
16115  those commands, we have decided to use this option by default.
16116 \end_layout
16117
16118 \begin_layout Subsection
16119 Extra features
16120 \end_layout
16121
16122 \begin_layout Standard
16123 We will only describe the features supported by \SpecialChar LyX
16124  (which is not much currently).
16125  Please consult the Memoir manual
16126 \begin_inset Foot
16127 status collapsed
16128
16129 \begin_layout Plain Layout
16130 Cf.
16131 \begin_inset ERT
16132 status collapsed
16133
16134 \begin_layout Plain Layout
16135
16136
16137 \backslash
16138  
16139 \end_layout
16140
16141 \end_inset
16142
16143
16144 \begin_inset Flex URL
16145 status collapsed
16146
16147 \begin_layout Plain Layout
16148
16149 CTAN:/macros/latex/memoir/memman.pdf
16150 \end_layout
16151
16152 \end_inset
16153
16154 .
16155 \end_layout
16156
16157 \end_inset
16158
16159  for details.
16160 \end_layout
16161
16162 \begin_layout Description
16163 Abstract: You may wonder why an abstract is an extra feature.
16164  Well, it is in book class.
16165  Usually books don't have abstracts.
16166  Memoir, however, has.
16167  You can use it wherever and how often you like.
16168 \end_layout
16169
16170 \begin_layout Description
16171 Chapterprecis: You may know this older typesetting style: The contents of
16172  a chapter are summarized below the title and also in the table of contents
16173  (e.
16174 \begin_inset space \thinspace{}
16175 \end_inset
16176
16177 g.
16178 \begin_inset space \space{}
16179 \end_inset
16180
16181
16182 \emph on
16183 Our hero arrives in Troia; he loses some friends; he finds others
16184 \emph default
16185 ).
16186  Chapterprecis does exactly this.
16187  It is therefore only sensible below a chapter.
16188 \end_layout
16189
16190 \begin_layout Description
16191 Epigraph: An epigraph is a smart slogan or motto at the beginning of a chapter.
16192  The epigraph environment provides an elegant way of typesetting such a
16193  motto.
16194  The motto itself (text) and its author (source) are divided by a short
16195  line.
16196  Unfortunately, we have to fool \SpecialChar LyX
16197  a bit here again, since the environment
16198  needs two arguments (text and source).
16199  In this case, we have to use curly brackets (in \SpecialChar TeX
16200  mode) between the two
16201  arguments: 
16202 \emph on
16203 <smart slogan>
16204 \emph default
16205  
16206 \family typewriter
16207 }{
16208 \family default
16209  
16210 \emph on
16211 <author of the slogan>.
16212 \end_layout
16213
16214 \begin_layout Description
16215 Poemtitle: Memoir has lots of possibilities to typeset poetry (up to very
16216  complex figurative poems).
16217  \SpecialChar LyX
16218  can only support a few of them.
16219  One is poemtitle, which is a centered title for poems, which will also
16220  be added to the table of contents (verse is the standard environment for
16221  poems.
16222  Memoir has some enhanced versions of verse, but you need to use \SpecialChar TeX
16223  code,
16224  because they have to be nested inside regular verse environments, which
16225  is not possible with \SpecialChar LyX
16226 ).
16227 \end_layout
16228
16229 \begin_layout Description
16230 Poemtitle*: Same as poemtitle, but it adds no entry to the table of contents.
16231 \end_layout
16232
16233 \begin_layout Section
16234 Article (mwart), book (mwbk) and report (mwrep)
16235 \begin_inset Argument status
16236 status collapsed
16237
16238 \begin_layout Plain Layout
16239 The 
16240 \family typewriter
16241 mw
16242 \family default
16243  Classes
16244 \end_layout
16245
16246 \end_inset
16247
16248
16249 \end_layout
16250
16251 \begin_layout Standard
16252 by 
16253 \noun on
16254 Tomasz Luczak
16255 \end_layout
16256
16257 \begin_layout Standard
16258 The \SpecialChar LyX
16259  document classes 
16260 \emph on
16261 article (mwart)
16262 \emph default
16263
16264 \emph on
16265 report (mwrep)
16266 \emph default
16267  and 
16268 \emph on
16269 book
16270 \emph default
16271  
16272 \emph on
16273 (mwbk)
16274 \emph default
16275  correspond to the \SpecialChar LaTeX
16276  document classes 
16277 \family typewriter
16278 mwart.cls
16279 \family default
16280
16281 \family typewriter
16282 mwrep.cls
16283 \family default
16284  and 
16285 \family typewriter
16286 mwbk.cls
16287 \family default
16288 , resp.
16289  They are replacements for the standard document classes 
16290 \family typewriter
16291 article.cls
16292 \family default
16293
16294 \family typewriter
16295 report.cls
16296 \family default
16297  and 
16298 \family typewriter
16299 book.cls
16300 \family default
16301 , resp., and fit better to Polish typography conventions in a number of points.
16302  
16303 \end_layout
16304
16305 \begin_layout Standard
16306 Basic differences:
16307 \end_layout
16308
16309 \begin_layout Itemize
16310 Unnumbered titles (with star, e.
16311 \begin_inset space \thinspace{}
16312 \end_inset
16313
16314 g.
16315 \begin_inset space \space{}
16316 \end_inset
16317
16318
16319 \family sans
16320 Section*
16321 \family default
16322 ) are added into table of contents,
16323 \end_layout
16324
16325 \begin_layout Itemize
16326 Additional page styles:
16327 \end_layout
16328
16329 \begin_deeper
16330 \begin_layout Description
16331 uheadings header with separated lines,
16332 \end_layout
16333
16334 \begin_layout Description
16335 myheadings custom header, contents headers via commands: 
16336 \family typewriter
16337
16338 \backslash
16339 markright
16340 \family default
16341  and 
16342 \family typewriter
16343
16344 \backslash
16345 markboth
16346 \family default
16347 ,
16348 \end_layout
16349
16350 \begin_layout Description
16351 myuheadings custom header with separated lines,
16352 \end_layout
16353
16354 \begin_layout Description
16355 outer page number is placed on outer side of page
16356 \end_layout
16357
16358 \end_deeper
16359 \begin_layout Itemize
16360 Options 
16361 \end_layout
16362
16363 \begin_deeper
16364 \begin_layout Description
16365 rmheadings serif titles — default,
16366 \end_layout
16367
16368 \begin_layout Description
16369 sfheadings sansserif titles,
16370 \end_layout
16371
16372 \begin_layout Description
16373 authortitle on title page first placed is author next title — default,
16374 \end_layout
16375
16376 \begin_layout Description
16377 titleauthor on title page first placed is title next author,
16378 \end_layout
16379
16380 \begin_layout Description
16381 withmarginpar reserve place on page for margins.
16382 \end_layout
16383
16384 \end_deeper
16385 \begin_layout Section
16386 Paper
16387 \end_layout
16388
16389 \begin_layout Standard
16390 The document class 
16391 \family sans
16392 paper
16393 \family default
16394  provides an alternative to the standard 
16395 \family sans
16396 article
16397 \family default
16398  class.
16399  It provides similar functionality, but you might prefer this layout with
16400  sans serif sections, headings, and more.
16401 \end_layout
16402
16403 \begin_layout Section
16404 Rev\SpecialChar TeX
16405 4
16406 \end_layout
16407
16408 \begin_layout Standard
16409 by 
16410 \noun on
16411 Amir Karger
16412 \end_layout
16413
16414 \begin_layout Standard
16415 \begin_inset VSpace bigskip
16416 \end_inset
16417
16418
16419 \end_layout
16420
16421 \begin_layout Standard
16422 \noindent
16423 The 
16424 \family sans
16425 Revtex
16426 \begin_inset space ~
16427 \end_inset
16428
16429 4
16430 \family default
16431  textclass works with the American Physical Sociey's Rev\SpecialChar TeX
16432  4.0 (the 
16433 \begin_inset Formula $\beta$
16434 \end_inset
16435
16436  release of May, 1999) class.
16437 \end_layout
16438
16439 \begin_layout Standard
16440 \SpecialChar LyX
16441  has a 
16442 \family sans
16443 Revtex
16444 \family default
16445  textclass, which works with Rev\SpecialChar TeX
16446  3.1.
16447  However, v3.1 is basically obsolete, as it works with \SpecialChar LaTeX
16448  2.09.
16449  That means that it doesn't interact very well with \SpecialChar LyX
16450 , which requires \SpecialChar LaTeX2e
16451 , although
16452  it has been kludged to work.
16453  Since Rev\SpecialChar TeX
16454  4.0 has been designed to work much more cleanly with \SpecialChar LaTeX2e
16455 , \SpecialChar LyX
16456  with the
16457  
16458 \family sans
16459 Rev\SpecialChar TeX
16460
16461 \begin_inset space ~
16462 \end_inset
16463
16464 4
16465 \family default
16466  textclass should also be pretty easy to use.
16467 \end_layout
16468
16469 \begin_layout Standard
16470 These documents are supposed to be used in 
16471 \emph on
16472 addition
16473 \emph default
16474  to the Rev\SpecialChar TeX
16475  4.0 documents, so we don't describe any of the special Rev\SpecialChar TeX
16476  macros,
16477  and assume you'll know what to put in the preamble if necessary.
16478 \end_layout
16479
16480 \begin_layout Subsection
16481 Installation
16482 \end_layout
16483
16484 \begin_layout Standard
16485 All you need to do is install Rev\SpecialChar TeX
16486  4, as described in the package's README
16487  file.
16488  The package can be found at The Rev\SpecialChar TeX
16489  4 Web Site 
16490 \begin_inset Flex URL
16491 status collapsed
16492
16493 \begin_layout Plain Layout
16494
16495 http://publish.aps.org/revtex4/
16496 \end_layout
16497
16498 \end_inset
16499
16500 .
16501  Install it somewhere that \SpecialChar LaTeX
16502  can see it.
16503  Test it by trying to \SpecialChar LaTeX
16504  a short Rev\SpecialChar TeX
16505  4 document in some random directory (i.
16506 \begin_inset space \thinspace{}
16507 \end_inset
16508
16509 e.
16510 \begin_inset space \space{}
16511 \end_inset
16512
16513 not the directory where you installed the class file.) Then, if you reconfigure
16514  \SpecialChar LyX
16515 , it will find the class file and let you use the Rev\SpecialChar TeX
16516 4 textclass.
16517 \end_layout
16518
16519 \begin_layout Standard
16520 Probably the easiest way to get started is either to import a Rev\SpecialChar TeX
16521  4 document
16522  using 
16523 \family typewriter
16524 tex2lyx
16525 \family default
16526 , or to use the 
16527 \family sans
16528 Revtex
16529 \begin_inset space ~
16530 \end_inset
16531
16532 4
16533 \family default
16534  template, found in the templates directory.
16535 \end_layout
16536
16537 \begin_layout Subsection
16538 Preamble Matter
16539 \end_layout
16540
16541 \begin_layout Standard
16542 Optional arguments to 
16543 \family typewriter
16544
16545 \backslash
16546 documentclass
16547 \family default
16548 , like 
16549 \begin_inset Quotes eld
16550 \end_inset
16551
16552 preprint
16553 \begin_inset Quotes erd
16554 \end_inset
16555
16556  and 
16557 \begin_inset Quotes eld
16558 \end_inset
16559
16560 aps
16561 \begin_inset Quotes erd
16562 \end_inset
16563
16564 , go in the 
16565 \family sans
16566 Extra
16567 \begin_inset space ~
16568 \end_inset
16569
16570 Options
16571 \family default
16572  field in the 
16573 \family sans
16574 Document
16575 \begin_inset space ~
16576 \end_inset
16577
16578 Layout
16579 \family default
16580  dialog, as usual.
16581  Remember that in Rev\SpecialChar TeX
16582 , at least one optional argument is required! 
16583 \end_layout
16584
16585 \begin_layout Standard
16586 Other preamble matter, like 
16587 \family typewriter
16588
16589 \backslash
16590 draft
16591 \family default
16592  etc.
16593 \begin_inset space ~
16594 \end_inset
16595
16596 goes in the 
16597 \family sans
16598 \SpecialChar LaTeX
16599
16600 \begin_inset space ~
16601 \end_inset
16602
16603 Preamble
16604 \family default
16605  dialog, also as usual.
16606 \end_layout
16607
16608 \begin_layout Subsection
16609 Layouts
16610 \end_layout
16611
16612 \begin_layout Standard
16613 The layouts basically correspond to the commands in Rev\SpecialChar TeX
16614 4.0.
16615  For example, the Email layout corresponds to 
16616 \family typewriter
16617
16618 \backslash
16619 email{}
16620 \family default
16621 .
16622  Note that (at least as of Rev\SpecialChar TeX
16623  4.0 Beta), the 
16624 \family sans
16625 Address
16626 \family default
16627  and 
16628 \family sans
16629 Affiliation
16630 \family default
16631  layouts are exactly equivalent, so you shouldn't need to use both.
16632 \begin_inset Foot
16633 status collapsed
16634
16635 \begin_layout Plain Layout
16636 In case you're curious, both were included so that 
16637 \family typewriter
16638 tex2lyx
16639 \family default
16640  would be able to translate both 
16641 \family typewriter
16642
16643 \backslash
16644 address
16645 \family default
16646  and 
16647 \family typewriter
16648
16649 \backslash
16650 affiliation
16651 \family default
16652 .
16653 \end_layout
16654
16655 \end_inset
16656
16657
16658 \end_layout
16659
16660 \begin_layout Subsection
16661 Important Notes
16662 \end_layout
16663
16664 \begin_layout Standard
16665 There are a couple of important unique aspects of Rev\SpecialChar TeX
16666  4 which might cause
16667  bugs that will be even more confusing in \SpecialChar LyX
16668 .
16669 \end_layout
16670
16671 \begin_layout Standard
16672 In Rev\SpecialChar TeX
16673 , the 
16674 \family typewriter
16675
16676 \backslash
16677 thanks
16678 \family default
16679  command goes 
16680 \emph on
16681 outside
16682 \emph default
16683  the 
16684 \family typewriter
16685
16686 \backslash
16687 author
16688 \family default
16689  command.
16690  The \SpecialChar LyX
16691  equivalent is that there is a separate Thanks layout.
16692  Do 
16693 \emph on
16694 not
16695 \emph default
16696  write footnotes in the 
16697 \family sans
16698 Author
16699 \family default
16700  layout, or weird things may happen.
16701  See the Rev\SpecialChar TeX
16702  4 documentation for more details.
16703 \end_layout
16704
16705 \begin_layout Standard
16706 Also, the 
16707 \family sans
16708 Author
16709 \begin_inset space ~
16710 \end_inset
16711
16712 Email
16713 \family default
16714
16715 \family sans
16716 Author
16717 \begin_inset space ~
16718 \end_inset
16719
16720 URL
16721 \family default
16722 , and 
16723 \family sans
16724 Thanks
16725 \family default
16726  layouts must be placed 
16727 \emph on
16728 in between
16729 \emph default
16730  the 
16731 \family sans
16732 Author
16733 \family default
16734  layout and the corresponding 
16735 \family sans
16736 Address
16737 \family default
16738  (or equivalent 
16739 \family sans
16740 Affiliation
16741 \family default
16742 ) layout.
16743  If you put the 
16744 \family sans
16745 Thanks
16746 \family default
16747  after the 
16748 \family sans
16749 Address
16750 \family default
16751 , the \SpecialChar LaTeX
16752  won't compile.
16753 \end_layout
16754
16755 \begin_layout Subsection
16756 Drawbacks
16757 \end_layout
16758
16759 \begin_layout Standard
16760 The main problem with this layout is that you can't use the optional arguments
16761  to layouts like Email and Title.
16762  (The problem is not unique to this layout; you can't use optional arguments
16763  to the Section layouts either.) This means that after you export that file
16764  to \SpecialChar LaTeX
16765  (which you'll need to do eventually to send it in to APS), you'll need
16766  to edit the \SpecialChar LaTeX
16767  file with a text editor to add the optional arguments to set,
16768  e.
16769 \begin_inset space \thinspace{}
16770 \end_inset
16771
16772 g.
16773 \begin_inset space \space{}
16774 \end_inset
16775
16776 the running title for the page headers.
16777  Lacking these layouts makes the 
16778 \family typewriter
16779
16780 \backslash
16781 altaffiliation
16782 \family default
16783  (and the equivalent 
16784 \family typewriter
16785
16786 \backslash
16787 altaddress
16788 \family default
16789 ) useless, so the corresponding layouts don't exist, and will have to be
16790  added by hand.
16791 \begin_inset Foot
16792 status collapsed
16793
16794 \begin_layout Plain Layout
16795
16796 \emph on
16797 Note from JMarc:
16798 \emph default
16799  actually, \SpecialChar LyX
16800  1.3.0 supports some forms of optional arguments, but this layout
16801  has not been updated yet to take advantage of it.
16802 \end_layout
16803
16804 \end_inset
16805
16806  
16807 \end_layout
16808
16809 \begin_layout Section
16810 Springer Journals (
16811 \family sans
16812 svjour
16813 \family default
16814 )
16815 \end_layout
16816
16817 \begin_layout Standard
16818 by 
16819 \noun on
16820 Martin Vermeer
16821 \end_layout
16822
16823 \begin_layout Subsection
16824 Description
16825 \end_layout
16826
16827 \begin_layout Standard
16828 These are the layout files for some of the journal formats used by Springer
16829  Verlag and listed on 
16830 \begin_inset Flex URL
16831 status collapsed
16832
16833 \begin_layout Plain Layout
16834
16835 http://www.springer.de/author/tex/help-journals.html
16836 \end_layout
16837
16838 \end_inset
16839
16840 , where you should also go to fetch the class files (yes, these are \SpecialChar LaTeX2e
16841  now!).
16842  It is a modular system: the things common to all journals are implemented
16843  in 
16844 \family typewriter
16845 svjour.inc
16846 \family default
16847 , which journal-specific layout files (such as, e.
16848 \begin_inset space \thinspace{}
16849 \end_inset
16850
16851 g.
16852 \begin_inset space \space{}
16853 \end_inset
16854
16855
16856 \family typewriter
16857 svjog.layout
16858 \family default
16859  for Journal of Geodesy) can include.
16860 \end_layout
16861
16862 \begin_layout Standard
16863 This means that implementing support for any other Springer journal on this
16864  list is as simple as writing your own 
16865 \family typewriter
16866 sv
16867 \family default
16868 <myjournal>
16869 \family typewriter
16870 .layout
16871 \family default
16872  file following the outline given in 
16873 \family typewriter
16874 svjog.layout
16875 \family default
16876 .
16877  
16878 \end_layout
16879
16880 \begin_layout Standard
16881 It is reasonably well tested only for the Journal of Geodesy.
16882  
16883 \family typewriter
16884 svjour
16885 \family default
16886  and 
16887 \family typewriter
16888 svjog
16889 \family default
16890  come with the standard \SpecialChar LyX
16891  distribution.
16892  Install the relevant class file (downloaded from Springer) in a proper
16893  directory, reconfigure \SpecialChar LaTeX
16894  (in the te\SpecialChar TeX
16895  case by running 
16896 \family typewriter
16897 texhash
16898 \family default
16899 , as root if necessary — doesn't \SpecialChar LyX
16900  take care of this?), reconfigure \SpecialChar LyX
16901  and
16902  it should work.
16903 \end_layout
16904
16905 \begin_layout Subsection
16906 New styles
16907 \end_layout
16908
16909 \begin_layout Standard
16910 A large number of theorem-like styles — 
16911 \family sans
16912 Claim, Conjecture,
16913 \family default
16914  
16915 \family sans
16916 \SpecialChar ldots
16917 Theorem
16918 \family default
16919 .
16920 \end_layout
16921
16922 \begin_layout Standard
16923
16924 \family sans
16925 Headnote, Dedication, Subtitle, Running_\SpecialChar LaTeX
16926 _Title, Author_Running, Institute,
16927  Mail, Offprints, Keywords, Acknowledgements, Acknowledgement
16928 \family default
16929 .
16930  See the Springer class file documentation for details.
16931 \end_layout
16932
16933 \begin_layout Subsection
16934 Supported journals
16935 \end_layout
16936
16937 \begin_layout Itemize
16938
16939 \emph on
16940 Journal of Geodesy
16941 \emph default
16942
16943 \family typewriter
16944 svjog.layout
16945 \family default
16946  — Martin Vermeer
16947 \end_layout
16948
16949 \begin_layout Itemize
16950
16951 \emph on
16952 Probability Theory and Related Fields
16953 \emph default
16954
16955 \family typewriter
16956 svprobth.layout
16957 \family default
16958  — Jean-Marc Lasgouttes
16959 \end_layout
16960
16961 \begin_layout Standard
16962 Add your own, it isn't so hard!
16963 \end_layout
16964
16965 \begin_layout Subsection
16966 Credits
16967 \end_layout
16968
16969 \begin_layout Standard
16970 These files are partly based on the older 
16971 \family typewriter
16972 ejour2.layout
16973 \family default
16974 , which was again based on a tinkered-with version of an old \SpecialChar LaTeX
16975  2.09 style
16976  file from Springer.
16977  All this, and the 
16978 \family typewriter
16979 ejour2
16980 \family default
16981  layout, are now defunct.
16982  Jean-Marc Lasgouttes helped out big in making me find my way around the
16983  \SpecialChar LyX
16984  layout file mechanism.
16985 \end_layout
16986
16987 \begin_layout Subsection
16988 Bugs
16989 \end_layout
16990
16991 \begin_layout Standard
16992 Probably.
16993  But probably less than in the old hacked-\SpecialChar LaTeX
16994  
16995 \family typewriter
16996 ejour2
16997 \family default
16998 .
16999 \end_layout
17000
17001 \begin_layout Standard
17002 Limitations e.
17003 \begin_inset space \thinspace{}
17004 \end_inset
17005
17006 g.: does not display the number for theorem-like layouts, just #.
17007 \end_layout
17008
17009 \begin_layout Section
17010 Slides [aka 
17011 \noun on
17012 Sli\SpecialChar TeX
17013
17014 \noun default
17015 ]
17016 \begin_inset CommandInset label
17017 LatexCommand label
17018 name "sec:slitex"
17019
17020 \end_inset
17021
17022
17023 \end_layout
17024
17025 \begin_layout Standard
17026 by 
17027 \noun on
17028 John Weiss
17029 \noun default
17030  
17031 \end_layout
17032
17033 \begin_layout Subsection
17034 Introduction
17035 \end_layout
17036
17037 \begin_layout Standard
17038 This section describes how to use \SpecialChar LyX
17039  to make slides for overhead projectors.
17040  There are two document classes that can do this: the default slides class
17041  and the 
17042 \family sans
17043 Foil\SpecialChar TeX
17044
17045 \family default
17046  slides class.
17047  This section documents the former.
17048 \end_layout
17049
17050 \begin_layout Standard
17051 I'm going to say this again, nice and clear, so that there's no misunderstanding
17052 :
17053 \end_layout
17054
17055 \begin_layout Standard
17056 \begin_inset VSpace bigskip
17057 \end_inset
17058
17059
17060 \end_layout
17061
17062 \begin_layout Standard
17063 \align center
17064
17065 \size large
17066 This section documents the class 
17067 \begin_inset Quotes eld
17068 \end_inset
17069
17070
17071 \family sans
17072 slides (default)
17073 \family default
17074
17075 \begin_inset Quotes erd
17076 \end_inset
17077
17078  
17079 \emph on
17080 only.
17081 \end_layout
17082
17083 \begin_layout Standard
17084 \begin_inset VSpace bigskip
17085 \end_inset
17086
17087
17088 \end_layout
17089
17090 \begin_layout Standard
17091 If you're looking for the documentation for 
17092 \begin_inset Quotes eld
17093 \end_inset
17094
17095
17096 \family sans
17097 slides (Foil\SpecialChar TeX
17098 )
17099 \family default
17100
17101 \begin_inset Quotes erd
17102 \end_inset
17103
17104 , check out section
17105 \begin_inset space ~
17106 \end_inset
17107
17108
17109 \begin_inset CommandInset ref
17110 LatexCommand ref
17111 reference "sec:foiltex"
17112
17113 \end_inset
17114
17115 .
17116  The 
17117 \family sans
17118 foils
17119 \family default
17120  class [
17121 \begin_inset Quotes eld
17122 \end_inset
17123
17124
17125 \family sans
17126 slides (Foil\SpecialChar TeX
17127 )
17128 \family default
17129
17130 \begin_inset Quotes erd
17131 \end_inset
17132
17133 ] is actually somewhat better than the default 
17134 \family sans
17135 slides
17136 \family default
17137  class,
17138 \begin_inset Foot
17139 status collapsed
17140
17141 \begin_layout Plain Layout
17142 \SpecialChar ldots
17143 or so I've been told repeatedly by its advocates.
17144  Having never used it, I have no idea if this claim is true or not.
17145 \end_layout
17146
17147 \end_inset
17148
17149  which this section documents.
17150 \end_layout
17151
17152 \begin_layout Standard
17153 This class is the \SpecialChar LaTeX2e
17154  improvement of the old 
17155 \noun on
17156 Sli\SpecialChar TeX
17157
17158 \noun default
17159  package.
17160  Every \SpecialChar LaTeX2e
17161  distribution includes this class [which I'll just refer to as 
17162 \begin_inset Quotes eld
17163 \end_inset
17164
17165
17166 \family sans
17167 slides
17168 \family default
17169
17170 \begin_inset Quotes erd
17171 \end_inset
17172
17173  from now on], so you're bound to have it.
17174  As I noted earlier, there are other classes, such as 
17175 \family sans
17176 foils
17177 \family default
17178 , which also produce slides for overhead projectors and do a better job
17179  at it.
17180  However, there are some things which 
17181 \family sans
17182 slides
17183 \family default
17184  can do which the others can't, such as generate overlays.
17185  Read on to learn more!
17186 \end_layout
17187
17188 \begin_layout Subsection
17189 Getting Started
17190 \begin_inset CommandInset label
17191 LatexCommand label
17192 name "sec:slidesetup"
17193
17194 \end_inset
17195
17196
17197 \end_layout
17198
17199 \begin_layout Standard
17200 Obviously, to use this document class, you need to select 
17201 \begin_inset Quotes eld
17202 \end_inset
17203
17204
17205 \family sans
17206 slides (default)
17207 \family default
17208
17209 \begin_inset Quotes erd
17210 \end_inset
17211
17212  from the class list in the 
17213 \family sans
17214 Document\SpecialChar menuseparator
17215 Settings
17216 \family default
17217  dialog.
17218  There are some other special things you should know about this class:
17219 \end_layout
17220
17221 \begin_layout Itemize
17222 Don't bother changing the options 
17223 \family sans
17224 Sides and Columns
17225 \family default
17226 .
17227  They're not supported by the 
17228 \family sans
17229 slides
17230 \family default
17231  class, anyways.
17232 \end_layout
17233
17234 \begin_layout Itemize
17235 The option 
17236 \family sans
17237 Page
17238 \begin_inset space ~
17239 \end_inset
17240
17241 style
17242 \family default
17243  behaves a bit differently for this class.
17244  The possible choices and what they do are as follows:
17245 \end_layout
17246
17247 \begin_deeper
17248 \begin_layout Description
17249
17250 \family sans
17251 plain
17252 \family default
17253  The final output contains page numbers in the lower right corner.
17254 \end_layout
17255
17256 \begin_layout Description
17257
17258 \family sans
17259 headings
17260 \family default
17261  Like 
17262 \family sans
17263 plain
17264 \family default
17265 , but also prints out any time markers you've put in.
17266  This is the default.
17267 \end_layout
17268
17269 \begin_layout Description
17270
17271 \family sans
17272 empty
17273 \family default
17274  The final output contains no page numbers, time markers, or alignment markers.
17275 \end_layout
17276
17277 \end_deeper
17278 \begin_layout Itemize
17279 The 
17280 \family sans
17281 slides
17282 \family default
17283  class has an extra option: 
17284 \family typewriter
17285 clock
17286 \family default
17287 .
17288  To use it, put 
17289 \begin_inset Quotes eld
17290 \end_inset
17291
17292
17293 \family typewriter
17294 clock
17295 \family default
17296
17297 \begin_inset Quotes erd
17298 \end_inset
17299
17300  in the extra class options.
17301 \end_layout
17302
17303 \begin_deeper
17304 \begin_layout Standard
17305 Using this options allows you to add time markers to 
17306 \family sans
17307 Note
17308 \family default
17309 s.
17310  See section
17311 \begin_inset space ~
17312 \end_inset
17313
17314
17315 \begin_inset CommandInset ref
17316 LatexCommand ref
17317 reference "sec:slideNote"
17318
17319 \end_inset
17320
17321  for more details.
17322 \end_layout
17323
17324 \end_deeper
17325 \begin_layout Standard
17326 You can also use the template file 
17327 \begin_inset Quotes eld
17328 \end_inset
17329
17330
17331 \family typewriter
17332 slides.lyx
17333 \family default
17334
17335 \begin_inset Quotes erd
17336 \end_inset
17337
17338  to automatically set up a document to use the 
17339 \family sans
17340 slides
17341 \family default
17342  class [using 
17343 \family sans
17344 File\SpecialChar menuseparator
17345 New
17346 \begin_inset space ~
17347 \end_inset
17348
17349 from
17350 \begin_inset space ~
17351 \end_inset
17352
17353 Template
17354 \family default
17355  to open your new document].
17356  The template file also contains some examples of the special paragraph
17357  environments used by this class.
17358  I'll describe those next.
17359 \end_layout
17360
17361 \begin_layout Subsection
17362 Paragraph Environments
17363 \end_layout
17364
17365 \begin_layout Subsubsection
17366 Supported Environments
17367 \end_layout
17368
17369 \begin_layout Standard
17370 The first thing you'll notice when you start up a new 
17371 \family sans
17372 slides
17373 \family default
17374  document is the font size and type: it's the equivalent of the size 
17375 \begin_inset Quotes eld
17376 \end_inset
17377
17378
17379 \family sans
17380 Largest
17381 \family default
17382
17383 \begin_inset Quotes erd
17384 \end_inset
17385
17386  in the 
17387 \family sans
17388 Sans
17389 \begin_inset space ~
17390 \end_inset
17391
17392 Serif
17393 \family default
17394  font.
17395  This is also what's used in the output.
17396  Think of this as a 
17397 \begin_inset Quotes eld
17398 \end_inset
17399
17400 visual cue
17401 \begin_inset Quotes erd
17402 \end_inset
17403
17404  to remind you that this is a slide.
17405  Your final slides will use a larger font; ergo, you'll have less space.
17406  Of course, the larger default screen font isn't WYSIWYG, only a reminder.
17407 \end_layout
17408
17409 \begin_layout Standard
17410 The next thing that becomes obvious is the changes to the paragraph environment
17411  pull-down box [at the far-left end of the toolbar].
17412  Most of the paragraph environments you're used to seeing are missing.
17413  There are also five new ones.
17414  That's because the 
17415 \family sans
17416 slides
17417 \family default
17418  class itself only supports certain paragraph environments:
17419 \end_layout
17420
17421 \begin_layout Itemize
17422
17423 \family sans
17424 Standard
17425 \end_layout
17426
17427 \begin_layout Itemize
17428
17429 \family sans
17430 Itemize
17431 \end_layout
17432
17433 \begin_layout Itemize
17434
17435 \family sans
17436 Enumerate
17437 \end_layout
17438
17439 \begin_layout Itemize
17440
17441 \family sans
17442 Description
17443 \end_layout
17444
17445 \begin_layout Itemize
17446
17447 \family sans
17448 List
17449 \end_layout
17450
17451 \begin_layout Itemize
17452
17453 \family sans
17454 Quotation
17455 \end_layout
17456
17457 \begin_layout Itemize
17458
17459 \family sans
17460 Quote
17461 \end_layout
17462
17463 \begin_layout Itemize
17464
17465 \family sans
17466 Verse
17467 \end_layout
17468
17469 \begin_layout Itemize
17470
17471 \family sans
17472 Caption
17473 \end_layout
17474
17475 \begin_layout Itemize
17476
17477 \family sans
17478 \SpecialChar LyX
17479 -Code
17480 \end_layout
17481
17482 \begin_layout Itemize
17483
17484 \family sans
17485 Comment
17486 \end_layout
17487
17488 \begin_layout Standard
17489 All of the other standard environments, including the section-heading environmen
17490 ts, aren't used in the 
17491 \family sans
17492 slides
17493 \family default
17494  class.
17495 \end_layout
17496
17497 \begin_layout Standard
17498 On the other hand, you'll notice the following new environments:
17499 \end_layout
17500
17501 \begin_layout Itemize
17502
17503 \family sans
17504 Slide
17505 \end_layout
17506
17507 \begin_layout Itemize
17508
17509 \family sans
17510 Overlay
17511 \end_layout
17512
17513 \begin_layout Itemize
17514
17515 \family sans
17516 Note
17517 \end_layout
17518
17519 \begin_layout Itemize
17520
17521 \family sans
17522 InvisibleText
17523 \end_layout
17524
17525 \begin_layout Itemize
17526
17527 \family sans
17528 VisibleText
17529 \end_layout
17530
17531 \begin_layout Standard
17532 These five are kind of quirky, due to a 
17533 \begin_inset Quotes eld
17534 \end_inset
17535
17536 feature
17537 \begin_inset Quotes erd
17538 \end_inset
17539
17540  in \SpecialChar LyX
17541 .
17542  You see, \SpecialChar LyX
17543  doesn't permit you to nest any other paragraph environment into
17544  an empty environment.
17545  Now, that's fine and dandy, but it means that you wouldn't be able to start
17546  a slide with anything except plain text.
17547  To deal with this, I've performed a little 
17548 \begin_inset Quotes eld
17549 \end_inset
17550
17551 \SpecialChar LaTeX
17552  magic.
17553 \begin_inset Quotes erd
17554 \end_inset
17555
17556  
17557 \end_layout
17558
17559 \begin_layout Subsubsection
17560 Quirks of the New Environments
17561 \begin_inset CommandInset label
17562 LatexCommand label
17563 name "sec:slideQuirk"
17564
17565 \end_inset
17566
17567
17568 \end_layout
17569
17570 \begin_layout Standard
17571 All five of the new paragraph environments are somewhat quirky due to inherent
17572  limitiations in the current version of \SpecialChar LyX
17573 .
17574  As I just mentioned, \SpecialChar LyX
17575  forbids environments that begin with another environment.
17576  To get around this, the 
17577 \family sans
17578 Slide
17579 \family default
17580  environment isn't a paragraph environment as described in the 
17581 \emph on
17582 User's Guide
17583 \emph default
17584 .
17585  
17586 \end_layout
17587
17588 \begin_layout Standard
17589 You should consider 
17590 \family sans
17591 Slide
17592 \family default
17593
17594 \family sans
17595 Overlay
17596 \family default
17597 , and 
17598 \family sans
17599 Note
17600 \family default
17601  to be 
17602 \begin_inset Quotes eld
17603 \end_inset
17604
17605 pseudo-environments.
17606 \begin_inset Quotes erd
17607 \end_inset
17608
17609  They look like a section heading or a 
17610 \begin_inset Quotes eld
17611 \end_inset
17612
17613
17614 \family sans
17615 Caption
17616 \family default
17617 ,
17618 \begin_inset Quotes erd
17619 \end_inset
17620
17621  but really begin a [and, if necessary, end the previous] paragraph environment.
17622  Likewise, treat 
17623 \family sans
17624 InvisibleText
17625 \family default
17626  and 
17627 \family sans
17628 VisibleText
17629 \family default
17630  as 
17631 \begin_inset Quotes eld
17632 \end_inset
17633
17634 pseudo-commands.
17635 \begin_inset Quotes erd
17636 \end_inset
17637
17638  These two perform some action.
17639 \end_layout
17640
17641 \begin_layout Standard
17642 A common feature of all five environments, 
17643 \family sans
17644 Slide
17645 \family default
17646
17647 \family sans
17648 Overlay
17649 \family default
17650
17651 \family sans
17652 Note
17653 \family default
17654
17655 \family sans
17656 InvisibleText
17657 \family default
17658  and 
17659 \family sans
17660 VisibleText
17661 \family default
17662 , is a rather long-ish label.
17663  The text following this label — ordinarily the contents of the paragraph
17664  environment — is utterly irrelevant for 
17665 \family sans
17666 Slide
17667 \family default
17668
17669 \family sans
17670 Overlay
17671 \family default
17672
17673 \family sans
17674 Note
17675 \family default
17676
17677 \family sans
17678 InvisibleText
17679 \family default
17680  and 
17681 \family sans
17682 VisibleText
17683 \family default
17684 .
17685  \SpecialChar LyX
17686  completely ignores it.
17687  In fact, you can leave these five environments completely empty.
17688  
17689 \end_layout
17690
17691 \begin_layout Standard
17692 While you don't 
17693 \emph on
17694 have
17695 \emph default
17696  to put any text after the rather long-ish label, you might want to.
17697  This could be a short description of the contents of the 
17698 \family sans
17699 Slide
17700 \family default
17701 , for example.
17702  In that case, enter your descriptive comment and hit 
17703 \family sans
17704 Return
17705 \family default
17706  as you normally would.
17707 \end_layout
17708
17709 \begin_layout Standard
17710 If, on the other hand, you don't want to enter any descriptive text, you'll
17711  hit another \SpecialChar LyX
17712  quirk.
17713  \SpecialChar LyX
17714 , like nature, abhors a vacuum, and will not let you start a new paragraph
17715  environment until you put something in the old one.
17716  So, do this:
17717 \end_layout
17718
17719 \begin_layout Itemize
17720 Start entering the text that will 
17721 \emph on
17722 follow
17723 \emph default
17724  the new 
17725 \family sans
17726 Slide
17727 \family default
17728
17729 \family sans
17730 Overlay
17731 \family default
17732
17733 \family sans
17734 Note
17735 \family default
17736
17737 \family sans
17738 InvisibleText
17739 \family default
17740  or 
17741 \family sans
17742 VisibleText
17743 \family default
17744 .
17745  
17746 \end_layout
17747
17748 \begin_layout Itemize
17749 Now move to the beginning of that paragraph.
17750  
17751 \end_layout
17752
17753 \begin_layout Itemize
17754 Next, hit 
17755 \family sans
17756 Return
17757 \family default
17758 .
17759  
17760 \end_layout
17761
17762 \begin_layout Itemize
17763 Finally, change this new, empty paragraph to a 
17764 \family sans
17765 Slide
17766 \family default
17767
17768 \family sans
17769 Overlay
17770 \family default
17771
17772 \family sans
17773 Note
17774 \family default
17775
17776 \family sans
17777 InvisibleText
17778 \family default
17779  or 
17780 \family sans
17781 VisibleText
17782 \family default
17783 .
17784  
17785 \end_layout
17786
17787 \begin_layout Standard
17788 Some future version of \SpecialChar LyX
17789  will, hopefully, resolve this quirkiness\SpecialChar ldots
17790
17791 \end_layout
17792
17793 \begin_layout Subsection
17794 Making a Presentation with 
17795 \family sans
17796 Slide
17797 \family default
17798
17799 \family sans
17800 Overlay
17801 \family default
17802  and 
17803 \family sans
17804 Note
17805 \end_layout
17806
17807 \begin_layout Subsubsection
17808 Using the 
17809 \family sans
17810 Slide
17811 \family default
17812  Environment
17813 \end_layout
17814
17815 \begin_layout Standard
17816 If you're expecting this section to teach you how to actually make a presentatio
17817 n, you'll be sorely disappointed.
17818  Naturally, I'll describe all of the ways the 
17819 \family sans
17820 slides
17821 \family default
17822  class can assist you in preparing the materials for a presentation.
17823  Filling in the contents, however, is up to you.
17824  [Then again, that 
17825 \emph on
17826 is
17827 \emph default
17828  the \SpecialChar LyX
17829  philosophy.]
17830 \end_layout
17831
17832 \begin_layout Standard
17833 Choosing the 
17834 \family sans
17835 Slide
17836 \family default
17837  environment [in the manner described in section
17838 \begin_inset space ~
17839 \end_inset
17840
17841
17842 \begin_inset CommandInset ref
17843 LatexCommand ref
17844 reference "sec:slideQuirk"
17845
17846 \end_inset
17847
17848 ] tells \SpecialChar LyX
17849  to begin a new slide [duh].
17850  The label for this environment/
17851 \begin_inset Quotes erd
17852 \end_inset
17853
17854 pseudo-command
17855 \begin_inset Quotes erd
17856 \end_inset
17857
17858  is an 
17859 \begin_inset Quotes eld
17860 \end_inset
17861
17862 ASCII line,
17863 \begin_inset Quotes erd
17864 \end_inset
17865
17866  in cool blue, followed by the label, 
17867 \begin_inset Quotes eld
17868 \end_inset
17869
17870 NewSlide:
17871 \begin_inset Quotes erd
17872 \end_inset
17873
17874 .
17875  Any text or paragraph environments that follow this one go on the new slide.
17876  It's that simple.
17877 \end_layout
17878
17879 \begin_layout Standard
17880 Slides are probably the only time you'll need to forcibly end pages in \SpecialChar LyX
17881
17882  (this can be specified in the 
17883 \family sans
17884 Paragraph Layout
17885 \family default
17886  dialog).
17887  In fact, you'll want to, once you finish entering the contents of one slide.
17888  If you've entered more text than can physically fit on a slide, the extra
17889  overflows onto a new slide.
17890  I don't recommend doing this, however, since the overflow slide won't have
17891  any page number on it.
17892  Furthermore, it may interfere with any 
17893 \family sans
17894 Overlay
17895 \family default
17896  you've made to accompany the oversized 
17897 \family sans
17898 Slide
17899 \family default
17900 .
17901 \end_layout
17902
17903 \begin_layout Standard
17904 The 
17905 \family sans
17906 Overlay
17907 \family default
17908  and 
17909 \family sans
17910 Note
17911 \family default
17912  environments work the same way as the 
17913 \family sans
17914 Slide
17915 \family default
17916  environment.
17917  They both create an 
17918 \begin_inset Quotes eld
17919 \end_inset
17920
17921 ASCII line
17922 \begin_inset Quotes erd
17923 \end_inset
17924
17925  followed by a label [
17926 \begin_inset Quotes eld
17927 \end_inset
17928
17929 NewOverlay:
17930 \begin_inset Quotes erd
17931 \end_inset
17932
17933  and 
17934 \begin_inset Quotes eld
17935 \end_inset
17936
17937 NewNote:
17938 \begin_inset Quotes erd
17939 \end_inset
17940
17941 , respectively].
17942  The color is a stunning magenta instead of blue, and the 
17943 \begin_inset Quotes eld
17944 \end_inset
17945
17946 ASCII line
17947 \begin_inset Quotes erd
17948 \end_inset
17949
17950  will look different, in style and in length.
17951  The label fonts of all three also differ from one another.
17952 \end_layout
17953
17954 \begin_layout Standard
17955 As with a 
17956 \family sans
17957 Slide
17958 \family default
17959 , if the contents of a 
17960 \family sans
17961 Note
17962 \family default
17963  or 
17964 \family sans
17965 Overlay
17966 \family default
17967  exceed the physical size of a slide or sheet of paper, the extra will overflow
17968  onto a new sheet.
17969  Again, you should avoid this.
17970  It defeats the whole purpose of 
17971 \family sans
17972 Note
17973 \family default
17974 s and 
17975 \family sans
17976 Overlay
17977 \family default
17978 s.
17979 \end_layout
17980
17981 \begin_layout Subsubsection
17982 Using 
17983 \family sans
17984 Overlay
17985 \family default
17986  with 
17987 \family sans
17988 Slide
17989 \end_layout
17990
17991 \begin_layout Standard
17992 The idea behind an 
17993 \family sans
17994 Overlay
17995 \family default
17996  is a slide that sits atop another slide.
17997  Perhaps you wish to discuss a figure on the main 
17998 \family sans
17999 Slide
18000 \family default
18001  before displaying the text associated with it.
18002  One way to accomplish this is tape a flap of dark paper over the part of
18003  the 
18004 \family sans
18005 Slide
18006 \family default
18007  you want to display later.
18008  This method fails, however, if you wish to overlap one graph with another,
18009  for example.
18010  You would then have to fumble while speaking to align the two separate,
18011  overlapping 
18012 \family sans
18013 Slide
18014 \family default
18015 s to align the two graphs.
18016  The use of an 
18017 \family sans
18018 Overlay
18019 \family default
18020  environment in both cases makes life much easier.
18021 \end_layout
18022
18023 \begin_layout Standard
18024 Each 
18025 \family sans
18026 Overlay
18027 \family default
18028  receives the page number of its 
18029 \begin_inset Quotes eld
18030 \end_inset
18031
18032 parent
18033 \begin_inset Quotes erd
18034 \end_inset
18035
18036  
18037 \family sans
18038 Slide
18039 \family default
18040 , appended by 
18041 \begin_inset Quotes eld
18042 \end_inset
18043
18044
18045 \family typewriter
18046 -a
18047 \family default
18048
18049 \begin_inset Quotes erd
18050 \end_inset
18051
18052 .
18053 \begin_inset Foot
18054 status collapsed
18055
18056 \begin_layout Plain Layout
18057 Presumably, mutliple 
18058 \family sans
18059 Overlay
18060 \family default
18061 s would have 
18062 \begin_inset Quotes eld
18063 \end_inset
18064
18065
18066 \family typewriter
18067 -a
18068 \family default
18069
18070 \begin_inset Quotes erd
18071 \end_inset
18072
18073
18074 \begin_inset Quotes eld
18075 \end_inset
18076
18077
18078 \family typewriter
18079 -b
18080 \family default
18081
18082 \begin_inset Quotes erd
18083 \end_inset
18084
18085
18086 \begin_inset Quotes eld
18087 \end_inset
18088
18089
18090 \family typewriter
18091 -c
18092 \family default
18093
18094 \begin_inset Quotes erd
18095 \end_inset
18096
18097 , etc.
18098 \begin_inset space ~
18099 \end_inset
18100
18101 appended to the page number of the parent 
18102 \family sans
18103 Slide
18104 \family default
18105 .
18106  
18107 \end_layout
18108
18109 \end_inset
18110
18111  Clearly, you want the contents of both the 
18112 \family sans
18113 Slide
18114 \family default
18115  and the 
18116 \family sans
18117 Overlay
18118 \family default
18119  to each fit on a single physical slide! You should probably consider an
18120  
18121 \family sans
18122 Overlay
18123 \family default
18124  as 
18125 \begin_inset Quotes eld
18126 \end_inset
18127
18128 part of
18129 \begin_inset Quotes erd
18130 \end_inset
18131
18132  a 
18133 \family sans
18134 Slide
18135 \family default
18136 .
18137  Indeed, the \SpecialChar LyX
18138  
18139 \family sans
18140 slides
18141 \family default
18142  class provides a visual cue for this: the label at the start of an 
18143 \family sans
18144 Overlay
18145 \family default
18146  is shorter than that at the start of a 
18147 \family sans
18148 Slide
18149 \family default
18150 .
18151  Lastly, when you generate printable output, you'll find alignment markers
18152  in all four corners of both the 
18153 \family sans
18154 Overlay
18155 \family default
18156  page and its parent 
18157 \family sans
18158 Slide
18159 \family default
18160 .
18161  These will assist you in lining up the two physical slides.
18162 \end_layout
18163
18164 \begin_layout Standard
18165 The major problem in overlaying two slides is aligning the contents of the
18166  two transparencies.
18167  How much space should you leave for that graph on the second slide? Worse
18168  still, what if you want a graph and a sentence on second slide, but there
18169  is text on the main transparency that goes in between them? You could try
18170  and insert vertical space of the right size.
18171  The better way is to use 
18172 \family sans
18173 InvisibleText
18174 \family default
18175  and 
18176 \family sans
18177 VisibleText
18178 \family default
18179 .
18180 \end_layout
18181
18182 \begin_layout Standard
18183 As their names imply, 
18184 \family sans
18185 InvisibleText
18186 \family default
18187  and 
18188 \family sans
18189 VisibleText
18190 \family default
18191  are two command-like paragraph environments that make all subsequent text
18192  invisible and visible, respectively.
18193  Note from section
18194 \begin_inset space ~
18195 \end_inset
18196
18197
18198 \begin_inset CommandInset ref
18199 LatexCommand ref
18200 reference "sec:slideQuirk"
18201
18202 \end_inset
18203
18204  that you don't place anything 
18205 \emph on
18206 into
18207 \emph default
18208  these two environments, however.
18209  When you create an 
18210 \family sans
18211 InvisibleText
18212 \family default
18213 , it inserts a centered, sky-blue label into the page reading 
18214 \begin_inset Quotes eld
18215 \end_inset
18216
18217 <Invisible Text Follows>
18218 \begin_inset Quotes erd
18219 \end_inset
18220
18221 .
18222  For paragraphs following this label, the parts of the 
18223 \family sans
18224 Slide
18225 \family default
18226  [or 
18227 \family sans
18228 Overlay
18229 \family default
18230 ; it doesn't matter which] where they would be contain instead blank space.
18231  
18232 \end_layout
18233
18234 \begin_layout Standard
18235 For 
18236 \family sans
18237 VisibleText
18238 \family default
18239 , the corresponding centered label is 
18240 \begin_inset Quotes eld
18241 \end_inset
18242
18243 <Visible Text Follows>
18244 \begin_inset Quotes erd
18245 \end_inset
18246
18247  in blazing green.
18248  Paragraphs following this label behave normally.
18249  Note that the beginning of a new 
18250 \family sans
18251 Slide
18252 \family default
18253
18254 \family sans
18255 Overlay
18256 \family default
18257 , or 
18258 \family sans
18259 Note
18260 \family default
18261  automatically shuts off an 
18262 \family sans
18263 InvisibleText
18264 \family default
18265 .
18266  It's therefore not necessary to use 
18267 \family sans
18268 VisibleText
18269 \family default
18270  at the end of a 
18271 \family sans
18272 Slide
18273 \family default
18274 .
18275 \end_layout
18276
18277 \begin_layout Standard
18278 By now, it should be obvious how to create overlay transparencies using
18279  the proper combination of 
18280 \family sans
18281 InvisibleText
18282 \family default
18283  and 
18284 \family sans
18285 VisibleText
18286 \family default
18287  on a 
18288 \family sans
18289 Slide
18290 \family default
18291  and 
18292 \family sans
18293 Overlay
18294 \family default
18295 :
18296 \end_layout
18297
18298 \begin_layout Enumerate
18299 Create a 
18300 \family sans
18301 Slide
18302 \family default
18303 , including everything that will appear on it, whether on the main slide
18304  or on the 
18305 \family sans
18306 Overlay
18307 \family default
18308 .
18309 \end_layout
18310
18311 \begin_layout Enumerate
18312 Before each figure or paragraph that will appear only on the 
18313 \family sans
18314 Overlay
18315 \family default
18316 , insert an 
18317 \family sans
18318 InvisibleText
18319 \family default
18320  environment.
18321  If necessary, insert a 
18322 \family sans
18323 VisibleText
18324 \family default
18325  environment after the 
18326 \family sans
18327 Overlay
18328 \family default
18329 -only text.
18330 \end_layout
18331
18332 \begin_layout Enumerate
18333 Start an 
18334 \family sans
18335 Overlay
18336 \family default
18337  immediately following the 
18338 \family sans
18339 Slide
18340 \family default
18341 .
18342 \end_layout
18343
18344 \begin_layout Enumerate
18345 Copy the contents of this 
18346 \family sans
18347 Slide
18348 \family default
18349  into the 
18350 \family sans
18351 Overlay
18352 \family default
18353 .
18354 \end_layout
18355
18356 \begin_layout Enumerate
18357 Within the 
18358 \family sans
18359 Overlay
18360 \family default
18361 , change all of the 
18362 \family sans
18363 InvisibleText
18364 \family default
18365  lines to 
18366 \family sans
18367 VisibleText
18368 \family default
18369  and vice-versa.
18370 \end_layout
18371
18372 \begin_layout Standard
18373 That's it.
18374  You've just made an 
18375 \family sans
18376 Overlay
18377 \family default
18378 .
18379 \end_layout
18380
18381 \begin_layout Standard
18382 There's one problem with the way I've designed the \SpecialChar LyX
18383  
18384 \family sans
18385 slides
18386 \family default
18387  class: you can't make text in the middle of a paragraph invisible, nor
18388  make text in the middle of an invisible paragraph visible again.
18389  To accomplish this feat, you'll need to use some inlined \SpecialChar LaTeX
18390  codes.
18391 \begin_inset Foot
18392 status collapsed
18393
18394 \begin_layout Plain Layout
18395 The commands of interest are: 
18396 \end_layout
18397
18398 \begin_layout Itemize
18399
18400 \family typewriter
18401 {
18402 \backslash
18403 invisible \SpecialChar ldots
18404  }
18405 \end_layout
18406
18407 \begin_layout Itemize
18408
18409 \family typewriter
18410 {
18411 \backslash
18412 visible \SpecialChar ldots
18413  }
18414 \end_layout
18415
18416 \begin_layout Plain Layout
18417 \SpecialChar ldots
18418 and need to be marked as \SpecialChar TeX
18419 .
18420  The text whose 
18421 \begin_inset Quotes eld
18422 \end_inset
18423
18424 visibility
18425 \begin_inset Quotes erd
18426 \end_inset
18427
18428  you wish to change goes in between the brackets [and after the 
18429 \family typewriter
18430
18431 \backslash
18432 invisible
18433 \family default
18434  or 
18435 \family typewriter
18436
18437 \backslash
18438 visible
18439 \family default
18440  command].
18441  If you don't know how to mark text as \SpecialChar TeX
18442 , see the appropriate section of
18443  the 
18444 \emph on
18445 User's Guide
18446 \emph default
18447 .
18448 \end_layout
18449
18450 \end_inset
18451
18452
18453 \end_layout
18454
18455 \begin_layout Subsubsection
18456 Using 
18457 \family sans
18458 Note
18459 \family default
18460  with 
18461 \family sans
18462 Slide
18463 \family default
18464
18465 \begin_inset CommandInset label
18466 LatexCommand label
18467 name "sec:slideNote"
18468
18469 \end_inset
18470
18471
18472 \end_layout
18473
18474 \begin_layout Standard
18475 Like an 
18476 \family sans
18477 Overlay
18478 \family default
18479 , a 
18480 \family sans
18481 Note
18482 \family default
18483  is associated with a 
18484 \begin_inset Quotes eld
18485 \end_inset
18486
18487 parent
18488 \begin_inset Quotes erd
18489 \end_inset
18490
18491  
18492 \family sans
18493 Slide
18494 \family default
18495 .
18496  Here, too, the \SpecialChar LyX
18497  
18498 \family sans
18499 slides
18500 \family default
18501  class provides visual cues.
18502  The label for a 
18503 \family sans
18504 Note
18505 \family default
18506  is shorter than that of a 
18507 \family sans
18508 Slide
18509 \family default
18510  [yet longer than that of an 
18511 \family sans
18512 Overlay
18513 \family default
18514 ] and, like the label of an 
18515 \family sans
18516 Overlay
18517 \family default
18518  is shockingly magenta.
18519  Additionally, the printed 
18520 \family sans
18521 Note
18522 \family default
18523  has the page number of its 
18524 \begin_inset Quotes eld
18525 \end_inset
18526
18527 parent
18528 \begin_inset Quotes erd
18529 \end_inset
18530
18531  
18532 \family sans
18533 Slide
18534 \family default
18535 , appended by 
18536 \begin_inset Quotes eld
18537 \end_inset
18538
18539
18540 \family typewriter
18541 -
18542 \family default
18543 1
18544 \begin_inset Quotes erd
18545 \end_inset
18546
18547
18548 \begin_inset Quotes eld
18549 \end_inset
18550
18551
18552 \family typewriter
18553 -
18554 \family default
18555 2
18556 \begin_inset Quotes erd
18557 \end_inset
18558
18559
18560 \begin_inset Quotes eld
18561 \end_inset
18562
18563
18564 \family typewriter
18565 -
18566 \family default
18567 3
18568 \begin_inset Quotes erd
18569 \end_inset
18570
18571 , etc.
18572  You can have multiple 
18573 \family sans
18574 Note
18575 \family default
18576 s associated with a single 
18577 \family sans
18578 Slide
18579 \family default
18580 , and, as with 
18581 \family sans
18582 Slide
18583 \family default
18584  and 
18585 \family sans
18586 Overlay
18587 \family default
18588 , you'll probably want to break up long 
18589 \family sans
18590 Note
18591 \family default
18592 s so that they fit on a single sheet of paper.
18593 \end_layout
18594
18595 \begin_layout Standard
18596 The purpose of a 
18597 \family sans
18598 Note
18599 \family default
18600  is obvious: it contains anything additional you might want to say about
18601  a 
18602 \family sans
18603 Slide
18604 \family default
18605 .
18606  It could also be used as a sheet of reminders for a particular 
18607 \family sans
18608 Slide
18609 \family default
18610 .
18611  In the case of the latter, you might want to make use of time markers.
18612  Currently, the \SpecialChar LyX
18613  
18614 \family sans
18615 slides
18616 \family default
18617  class has no 
18618 \begin_inset Quotes eld
18619 \end_inset
18620
18621 native
18622 \begin_inset Quotes erd
18623 \end_inset
18624
18625  support for time markers, a 
18626 \noun on
18627 Sli\SpecialChar TeX
18628
18629 \noun default
18630  feature.
18631  So, you'll have to resort to using the \SpecialChar LaTeX
18632  codes.
18633 \end_layout
18634
18635 \begin_layout Standard
18636 To use time markers, you'll need to specify the extra class option 
18637 \begin_inset Quotes eld
18638 \end_inset
18639
18640
18641 \family typewriter
18642 clock
18643 \family default
18644
18645 \begin_inset Quotes erd
18646 \end_inset
18647
18648  [see section
18649 \begin_inset space ~
18650 \end_inset
18651
18652
18653 \begin_inset CommandInset ref
18654 LatexCommand ref
18655 reference "sec:slidesetup"
18656
18657 \end_inset
18658
18659 ].
18660  This option turns on timing marks, which will appear in the lower-left-hand
18661  corner of every 
18662 \family sans
18663 Note
18664 \family default
18665  you generate.
18666  To set what appears in the time marker, you use the \SpecialChar LaTeX
18667  commands 
18668 \begin_inset Quotes eld
18669 \end_inset
18670
18671
18672 \family typewriter
18673
18674 \backslash
18675 settime{}
18676 \family default
18677
18678 \begin_inset Quotes erd
18679 \end_inset
18680
18681  and 
18682 \begin_inset Quotes eld
18683 \end_inset
18684
18685
18686 \family typewriter
18687
18688 \backslash
18689 addtime{}
18690 \family default
18691
18692 \begin_inset Quotes erd
18693 \end_inset
18694
18695 .
18696  The arguments of both commands are time measured in seconds.
18697  
18698 \begin_inset Quotes eld
18699 \end_inset
18700
18701
18702 \family typewriter
18703
18704 \backslash
18705 settime{}
18706 \family default
18707
18708 \begin_inset Quotes erd
18709 \end_inset
18710
18711  sets the time marker to a given time.
18712  
18713 \begin_inset Quotes eld
18714 \end_inset
18715
18716
18717 \family typewriter
18718
18719 \backslash
18720 addtime{}
18721 \family default
18722
18723 \begin_inset Quotes erd
18724 \end_inset
18725
18726  increments the time marker by the specified amount.
18727  Using time markers and 
18728 \family sans
18729 Note
18730 \family default
18731 s in this fashion, you can remind yourself how much time to spend on a particula
18732
18733 \family sans
18734 Slide
18735 \family default
18736 .
18737 \end_layout
18738
18739 \begin_layout Standard
18740 There's one last feature to describe.
18741  Clearly, you'd like to print out all of your 
18742 \family sans
18743 Slide
18744 \family default
18745 s and 
18746 \family sans
18747 Overlay
18748 \family default
18749 s on transparencies while printing all of your 
18750 \family sans
18751 Note
18752 \family default
18753 s on plain paper.
18754  However, a 
18755 \family sans
18756 Note
18757 \family default
18758  
18759 \emph on
18760 must
18761 \emph default
18762  follow the 
18763 \family sans
18764 Slide
18765 \family default
18766  with which it is associated.
18767  What's a person to do?
18768 \end_layout
18769
18770 \begin_layout Standard
18771 Luckily, there are two \SpecialChar LaTeX
18772  commands that allow you to select what to print
18773  out.
18774  Both must be placed into the preamble of your document.
18775  The command 
18776 \begin_inset Quotes eld
18777 \end_inset
18778
18779
18780 \family typewriter
18781
18782 \backslash
18783 onlyslides{
18784 \backslash
18785 slides}
18786 \family default
18787
18788 \begin_inset Quotes erd
18789 \end_inset
18790
18791  will cause the output to contain only the 
18792 \family sans
18793 Slide
18794 \family default
18795 s and 
18796 \family sans
18797 Overlay
18798 \family default
18799 s.
18800  Correspondingly, the command 
18801 \begin_inset Quotes eld
18802 \end_inset
18803
18804
18805 \family typewriter
18806
18807 \backslash
18808 onlynotes{
18809 \backslash
18810 notes}
18811 \family default
18812
18813 \begin_inset Quotes erd
18814 \end_inset
18815
18816  prevents the output of anything but 
18817 \family sans
18818 Note
18819 \family default
18820 s.
18821  I'd advise placing both commands in the preamble and initially comment
18822  both out.
18823  You can then preview your entire presentation as you write.
18824  When you're done writing, you can then uncomment one of the two to select
18825  what you want to print.
18826  I like to uncomment 
18827 \begin_inset Quotes eld
18828 \end_inset
18829
18830
18831 \family typewriter
18832
18833 \backslash
18834 onlyslides{
18835 \backslash
18836 slides}
18837 \family default
18838
18839 \begin_inset Quotes erd
18840 \end_inset
18841
18842  , print to a file with 
18843 \begin_inset Quotes eld
18844 \end_inset
18845
18846
18847 \family typewriter
18848 -slides
18849 \family default
18850
18851 \begin_inset Quotes erd
18852 \end_inset
18853
18854  in its name, comment it back out, then uncomment 
18855 \begin_inset Quotes eld
18856 \end_inset
18857
18858
18859 \family typewriter
18860
18861 \backslash
18862 onlynotes{
18863 \backslash
18864 notes}
18865 \family default
18866
18867 \begin_inset Quotes erd
18868 \end_inset
18869
18870  and print to a 
18871 \begin_inset Quotes eld
18872 \end_inset
18873
18874
18875 \family typewriter
18876 *-notes.ps
18877 \family default
18878
18879 \begin_inset Quotes erd
18880 \end_inset
18881
18882  file.
18883  I can then send either file to a printer, loading transparencies or plain
18884  paper as appropriate.
18885 \end_layout
18886
18887 \begin_layout Standard
18888 You can also provide other arguments to the 
18889 \begin_inset Quotes eld
18890 \end_inset
18891
18892
18893 \family typewriter
18894
18895 \backslash
18896 onlyslides{}
18897 \family default
18898
18899 \begin_inset Quotes erd
18900 \end_inset
18901
18902  and 
18903 \begin_inset Quotes eld
18904 \end_inset
18905
18906
18907 \family typewriter
18908
18909 \backslash
18910 onlynotes{}
18911 \family default
18912
18913 \begin_inset Quotes erd
18914 \end_inset
18915
18916  commands.
18917  See a good \SpecialChar LaTeX
18918  book for details.
18919 \end_layout
18920
18921 \begin_layout Subsection
18922 The 
18923 \family sans
18924 slides
18925 \family default
18926  Class Template File
18927 \end_layout
18928
18929 \begin_layout Standard
18930 I have also provided a template file, 
18931 \begin_inset Quotes eld
18932 \end_inset
18933
18934
18935 \family typewriter
18936 slides.lyx
18937 \family default
18938
18939 \begin_inset Quotes erd
18940 \end_inset
18941
18942 , with the 
18943 \family sans
18944 slides
18945 \family default
18946  class.
18947  To use it, begin your new presentation with 
18948 \family sans
18949 File\SpecialChar menuseparator
18950 New
18951 \begin_inset space ~
18952 \end_inset
18953
18954 from
18955 \begin_inset space ~
18956 \end_inset
18957
18958 Template
18959 \family default
18960 .
18961  Your new \SpecialChar LyX
18962  presentation file will contain an example 
18963 \family sans
18964 Slide
18965 \family default
18966  – 
18967 \family sans
18968 Overlay
18969 \family default
18970  – 
18971 \family sans
18972 Note
18973 \family default
18974  triplet.
18975  The 
18976 \family sans
18977 Slide
18978 \family default
18979  and 
18980 \family sans
18981 Overlay
18982 \family default
18983  additionally contain an example of the use of 
18984 \family sans
18985 InvisibleText
18986 \family default
18987  and 
18988 \family sans
18989 VisibleText
18990 \family default
18991 .
18992  Lastly, the preamble will contain:
18993 \end_layout
18994
18995 \begin_layout LyX-Code
18996 % Uncomment to print out only slides and overlays
18997 \end_layout
18998
18999 \begin_layout LyX-Code
19000 %
19001 \end_layout
19002
19003 \begin_layout LyX-Code
19004 %
19005 \backslash
19006 onlyslides{
19007 \backslash
19008 slides}
19009 \begin_inset Newline newline
19010 \end_inset
19011
19012  
19013 \end_layout
19014
19015 \begin_layout LyX-Code
19016 % Uncomment to print out only notes
19017 \end_layout
19018
19019 \begin_layout LyX-Code
19020 %
19021 \end_layout
19022
19023 \begin_layout LyX-Code
19024 %
19025 \backslash
19026 onlynotes{
19027 \backslash
19028 notes}
19029 \end_layout
19030
19031 \begin_layout Standard
19032 One final thing: I created this class to support the \SpecialChar LaTeX2e
19033  
19034 \begin_inset Quotes eld
19035 \end_inset
19036
19037
19038 \noun on
19039 Sli\SpecialChar TeX
19040
19041 \noun default
19042  emulation
19043 \begin_inset Quotes erd
19044 \end_inset
19045
19046  class, one of the built-in \SpecialChar LaTeX2e
19047  classes.
19048  Neither I nor the rest of the \SpecialChar LyX
19049  Team endorse or oppose the use of this built-in
19050  slide class.
19051  It's here if you want it or need it.
19052  There exist other \SpecialChar LaTeX2e
19053  classes for creating presentations, such as the 
19054 \family sans
19055 Foils
19056 \family default
19057  class [see section
19058 \begin_inset space ~
19059 \end_inset
19060
19061
19062 \begin_inset CommandInset ref
19063 LatexCommand ref
19064 reference "sec:foiltex"
19065
19066 \end_inset
19067
19068 ] or the 
19069 \begin_inset Quotes eld
19070 \end_inset
19071
19072
19073 \family typewriter
19074 seminar
19075 \family default
19076
19077 \begin_inset Quotes erd
19078 \end_inset
19079
19080  package [present on some \SpecialChar TeX
19081  distributions].
19082  The latter is not yet supported under \SpecialChar LyX
19083 .
19084 \begin_inset Foot
19085 status collapsed
19086
19087 \begin_layout Plain Layout
19088 Perhaps you can take on the task\SpecialChar ldots
19089
19090 \end_layout
19091
19092 \end_inset
19093
19094  I know nothing about these other classes.
19095  Try them out to see what sort of alternative they provide.
19096 \end_layout
19097
19098 \begin_layout Chapter
19099 \SpecialChar LyX
19100  Features needing Extra Software
19101 \end_layout
19102
19103 \begin_layout Section
19104 Checking \SpecialChar TeX
19105
19106 \end_layout
19107
19108 \begin_layout Standard
19109 by 
19110 \noun on
19111 Asger Alstrup
19112 \end_layout
19113
19114 \begin_layout Subsection
19115 Introduction
19116 \end_layout
19117
19118 \begin_layout Standard
19119 If you have the 
19120 \family typewriter
19121 chktex
19122 \family default
19123  program installed
19124 \begin_inset Foot
19125 status collapsed
19126
19127 \begin_layout Plain Layout
19128
19129 \family typewriter
19130 chktex
19131 \family default
19132  is not yet available when you are using the \SpecialChar LaTeX
19133  distribution MiK\SpecialChar TeX
19134 .
19135 \end_layout
19136
19137 \end_inset
19138
19139 , you'll find in the 
19140 \family sans
19141 Tools
19142 \family default
19143  menu the entry: 
19144 \family sans
19145 Check
19146 \begin_inset space ~
19147 \end_inset
19148
19149 TeX
19150 \family default
19151 .
19152  You can get 
19153 \family typewriter
19154 chktex
19155 \family default
19156  from CTAN,
19157 \begin_inset Newline newline
19158 \end_inset
19159
19160
19161 \begin_inset CommandInset href
19162 LatexCommand href
19163 target "http://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
19164
19165 \end_inset
19166
19167 .
19168 \end_layout
19169
19170 \begin_layout Standard
19171 The 
19172 \family sans
19173 Chk\SpecialChar TeX
19174
19175 \family default
19176  package is a program that was written by 
19177 \begin_inset Flex Noun
19178 status collapsed
19179
19180 \begin_layout Plain Layout
19181 Jens T.
19182 \begin_inset space ~
19183 \end_inset
19184
19185 Berger Thielemann
19186 \end_layout
19187
19188 \end_inset
19189
19190  in frustration because some constructs in \SpecialChar LaTeX
19191  are sometimes non-intuitive,
19192  and easy to forget.
19193  The program runs over your \SpecialChar LaTeX
19194  file, checks the integrity of the file, and
19195  flags some common errors.
19196  In other technical words, it is 
19197 \family typewriter
19198 lint
19199 \family default
19200  for \SpecialChar LaTeX
19201 .
19202 \end_layout
19203
19204 \begin_layout Standard
19205 Well, what is a syntax checker doing in \SpecialChar LyX
19206  which is supposed to produce correct
19207  \SpecialChar LaTeX
19208  anyways? The answer is simple: Just as 
19209 \family typewriter
19210 Lint
19211 \family default
19212  not only checks the 
19213 \emph on
19214 syntax
19215 \emph default
19216  of C programs, but also does 
19217 \emph on
19218 semantic
19219 \emph default
19220  checks for type-errors, 
19221 \family sans
19222 Chk\SpecialChar TeX
19223
19224 \family default
19225  catches some common 
19226 \emph on
19227 typographic
19228 \emph default
19229  errors, in addition to the syntactical ones.
19230  Specifically, 
19231 \family sans
19232 Chk\SpecialChar TeX
19233
19234 \family default
19235  is capable of detecting several common errors, such as
19236 \end_layout
19237
19238 \begin_layout Itemize
19239 Ellipsis detection:
19240 \begin_inset Newline newline
19241 \end_inset
19242
19243 Use \SpecialChar ldots
19244  instead of ...
19245 \end_layout
19246
19247 \begin_layout Itemize
19248 No space in front of/after parenthesis:
19249 \begin_inset Newline newline
19250 \end_inset
19251
19252 ( wrong spacing )
19253 \end_layout
19254
19255 \begin_layout Itemize
19256 Enforcement of normal space after common abbreviations:
19257 \begin_inset Newline newline
19258 \end_inset
19259
19260 e.
19261 \begin_inset space \thinspace{}
19262 \end_inset
19263
19264 g.
19265 \begin_inset space \space{}
19266 \end_inset
19267
19268 is too wide spacing.
19269 \end_layout
19270
19271 \begin_layout Itemize
19272 Enforcement of end-of-sentence space when the last sentence ends with a
19273  capital letter:
19274 \begin_inset Newline newline
19275 \end_inset
19276
19277 This is a TEST.
19278  And this is wrong spacing.
19279 \end_layout
19280
19281 \begin_layout Itemize
19282 Space in front of labels and similar commands:
19283 \begin_inset Newline newline
19284 \end_inset
19285
19286 The label should stick right up to the text to avoid falling to a wrong
19287  page.
19288  
19289 \begin_inset CommandInset label
19290 LatexCommand label
19291 name "sec:chktex"
19292
19293 \end_inset
19294
19295  
19296 \begin_inset Foot
19297 status collapsed
19298
19299 \begin_layout Plain Layout
19300 This footnote is in danger of falling off to a wrong page
19301 \end_layout
19302
19303 \end_inset
19304
19305  The label is separated too much.
19306 \end_layout
19307
19308 \begin_layout Itemize
19309 Space in front of references, instead of hard spaces:
19310 \begin_inset Newline newline
19311 \end_inset
19312
19313 If you have bad luck, the text will break right between the referenced text
19314  and reference number, and that's a pity.
19315  See section 
19316 \begin_inset CommandInset ref
19317 LatexCommand ref
19318 reference "sec:chktex"
19319
19320 \end_inset
19321
19322 .
19323 \end_layout
19324
19325 \begin_layout Itemize
19326 Use of 
19327 \begin_inset Quotes eld
19328 \end_inset
19329
19330 x
19331 \begin_inset Quotes erd
19332 \end_inset
19333
19334  instead of 
19335 \begin_inset Formula $\times$
19336 \end_inset
19337
19338  between numbers:
19339 \begin_inset Newline newline
19340 \end_inset
19341
19342 2x2 looks cheap compared to 
19343 \begin_inset Formula $2\times2$
19344 \end_inset
19345
19346 .
19347 \end_layout
19348
19349 \begin_layout Standard
19350 and more \SpecialChar ldots
19351  It is an invaluable tool when you are 
19352 \begin_inset Quotes eld
19353 \end_inset
19354
19355 finishing up
19356 \begin_inset Quotes erd
19357 \end_inset
19358
19359  your document before printing, and you should run it right after the obligatory
19360  spelling check, and before you go fine tuning the typesetting.
19361 \end_layout
19362
19363 \begin_layout Subsection
19364 How to use it
19365 \end_layout
19366
19367 \begin_layout Standard
19368 If you have the program installed, usage is as simple as choosing 
19369 \family sans
19370 Tools\SpecialChar menuseparator
19371 Check
19372 \begin_inset space ~
19373 \end_inset
19374
19375 TeX
19376 \family default
19377 .
19378  This will make \SpecialChar LyX
19379  generate a \SpecialChar LaTeX
19380  file of your document, start 
19381 \family sans
19382 Chk\SpecialChar TeX
19383
19384 \family default
19385  to check it, and then make \SpecialChar LyX
19386  insert 
19387 \begin_inset Quotes eld
19388 \end_inset
19389
19390 error boxes
19391 \begin_inset Quotes erd
19392 \end_inset
19393
19394  with the warnings from 
19395 \family sans
19396 Chk\SpecialChar TeX
19397
19398 \family default
19399 , if there were any.
19400  The warnings will be placed close to the point of the mistake, and you
19401  can quickly find them by using the 
19402 \family sans
19403 Navigate\SpecialChar menuseparator
19404 Error
19405 \family default
19406  menu item, or the shortcut key 
19407 \family sans
19408 C-g
19409 \family default
19410  from the default 
19411 \family typewriter
19412 cua
19413 \family default
19414  bind file.
19415  Open the error boxes by clicking on them with the mouse, or use the shortcut
19416  key 
19417 \family sans
19418 C-i
19419 \family default
19420  from 
19421 \family typewriter
19422 cua
19423 \family default
19424  bindings, or the corresponding 
19425 \family sans
19426 C-o
19427 \family default
19428  for the alternate 
19429 \family typewriter
19430 emacs
19431 \family default
19432  bind file.
19433  Read the warning and correct the mistake, if it is a mistake.
19434  If you have trouble understanding what the warning is about, you can safely
19435  ignore it.
19436  Remember that there is a hidden layer between the document on screen and
19437  the technical details in invoking 
19438 \family sans
19439 Chk\SpecialChar TeX
19440
19441 \family default
19442 , and this gap can make some warnings seem arcane or just plain silly.
19443 \end_layout
19444
19445 \begin_layout Standard
19446 This document is an excellent testing bed for the feature, and it should
19447  provide quite a few warnings for you to fiddle with.
19448  Since computers are only so smart, expect most of the warnings to be false
19449  alarms, though.
19450 \end_layout
19451
19452 \begin_layout Subsection
19453 How to fine tune it
19454 \end_layout
19455
19456 \begin_layout Standard
19457 Sometimes, you'll find that 
19458 \family sans
19459 Chk\SpecialChar TeX
19460
19461 \family default
19462  makes more noise than suits your mood.
19463  Then you can choose not to use it, wait until your mood changes, or try
19464  to customize 
19465 \family sans
19466 Chk\SpecialChar TeX
19467
19468 \family default
19469  to get better along with you.
19470 \end_layout
19471
19472 \begin_layout Standard
19473 Although 
19474 \family sans
19475 Chk\SpecialChar TeX
19476
19477 \family default
19478  
19479 \emph on
19480 is
19481 \emph default
19482  very configurable and extensible, you should not expect to solve all problems
19483  with 
19484 \family sans
19485 Chk\SpecialChar TeX
19486
19487 \family default
19488  in \SpecialChar LyX
19489  this way.
19490  Since \SpecialChar LyX
19491  has to generate a somewhat special \SpecialChar LaTeX
19492  file to be able to match the
19493  line numbers from the 
19494 \family sans
19495 Chk\SpecialChar TeX
19496
19497 \family default
19498  output
19499 \begin_inset Foot
19500 status collapsed
19501
19502 \begin_layout Plain Layout
19503 You can inspect the specific output from 
19504 \family sans
19505 chktex
19506 \family default
19507  by using 
19508 \family sans
19509 Document\SpecialChar menuseparator
19510 \SpecialChar LaTeX
19511
19512 \begin_inset space ~
19513 \end_inset
19514
19515 Log
19516 \family default
19517  right after a 
19518 \family sans
19519 chktex
19520 \family default
19521  run.
19522 \end_layout
19523
19524 \end_inset
19525
19526  to the internal document structure, some of the warnings will not appear
19527  correctly.
19528  There are two things you can do about this:
19529 \end_layout
19530
19531 \begin_layout Itemize
19532 Fine tune the 
19533 \family sans
19534 Chk\SpecialChar TeX
19535
19536 \family default
19537  invocation command line in 
19538 \begin_inset Flex Noun
19539 status collapsed
19540
19541 \begin_layout Plain Layout
19542 Tools\SpecialChar menuseparator
19543 Preferences\SpecialChar menuseparator
19544 Output\SpecialChar menuseparator
19545 LaTeX\SpecialChar menuseparator
19546 CheckTeX command
19547 \end_layout
19548
19549 \end_inset
19550
19551 , or the global 
19552 \family sans
19553 Chk\SpecialChar TeX
19554
19555 \family default
19556  installation configuration file (usually with the file 
19557 \family typewriter
19558 chktexrc
19559 \family default
19560 ).
19561  See below to learn what warnings can be enabled and disabled on the command
19562  line.
19563 \end_layout
19564
19565 \begin_layout Itemize
19566 Export your document as a raw \SpecialChar LaTeX
19567  file using 
19568 \family sans
19569 File\SpecialChar menuseparator
19570 Export\SpecialChar menuseparator
19571 \SpecialChar LaTeX
19572
19573 \family default
19574  and run 
19575 \family typewriter
19576 chktex
19577 \family default
19578  manually on that.
19579  Invoked in this way, it can be a hassle to find the corresponding place
19580  in the document inside \SpecialChar LyX
19581 , but with a little patience, you should be able
19582  to do it.
19583 \end_layout
19584
19585 \begin_layout Standard
19586 Here follows the warning messages that can be enabled and disabled in 
19587 \family sans
19588 Preferences
19589 \family default
19590 .
19591  Use 
19592 \family typewriter
19593 -n#
19594 \family default
19595  to disable a warning, and 
19596 \family typewriter
19597 -w#
19598 \family default
19599  to enable a warning.
19600  The emphasized entries are disabled by default, because the default is
19601  "
19602 \family typewriter
19603 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
19604 \family default
19605 ".
19606 \end_layout
19607
19608 \begin_layout Standard
19609 Notice that you should only use the options that enable and disable warnings,
19610  because \SpecialChar LyX
19611  relies on some of the other command line parameters to be set
19612  in a specific way to have a chance to communicate with 
19613 \family typewriter
19614 chktex
19615 \family default
19616 .
19617 \end_layout
19618
19619 \begin_layout Enumerate
19620
19621 \size small
19622 \emph on
19623 Command terminated with space.
19624 \end_layout
19625
19626 \begin_layout Enumerate
19627
19628 \size small
19629 Non-breaking space (
19630 \begin_inset Quotes eld
19631 \end_inset
19632
19633
19634 \family typewriter
19635 ~
19636 \family default
19637
19638 \begin_inset Quotes erd
19639 \end_inset
19640
19641 ) should have been used.
19642 \end_layout
19643
19644 \begin_layout Enumerate
19645
19646 \size small
19647 \emph on
19648 You should enclose the previous parenthesis with 
19649 \begin_inset Quotes eld
19650 \end_inset
19651
19652
19653 \family typewriter
19654 {}
19655 \family default
19656
19657 \begin_inset Quotes erd
19658 \end_inset
19659
19660 .
19661 \end_layout
19662
19663 \begin_layout Enumerate
19664
19665 \size small
19666 Italic correction (
19667 \begin_inset Quotes eld
19668 \end_inset
19669
19670
19671 \family typewriter
19672
19673 \backslash
19674 /
19675 \family default
19676
19677 \begin_inset Quotes erd
19678 \end_inset
19679
19680 ) found in non-italic buffer.
19681 \end_layout
19682
19683 \begin_layout Enumerate
19684
19685 \size small
19686 Italic correction (
19687 \begin_inset Quotes eld
19688 \end_inset
19689
19690
19691 \family typewriter
19692
19693 \backslash
19694 /
19695 \family default
19696
19697 \begin_inset Quotes erd
19698 \end_inset
19699
19700 ) found more than once.
19701 \end_layout
19702
19703 \begin_layout Enumerate
19704
19705 \size small
19706 \emph on
19707 No italic correction (
19708 \begin_inset Quotes eld
19709 \end_inset
19710
19711
19712 \family typewriter
19713
19714 \backslash
19715 /
19716 \family default
19717
19718 \begin_inset Quotes erd
19719 \end_inset
19720
19721 ) found.
19722 \end_layout
19723
19724 \begin_layout Enumerate
19725
19726 \size small
19727 Accent command 
19728 \begin_inset Quotes eld
19729 \end_inset
19730
19731
19732 \family typewriter
19733 cmd
19734 \family default
19735
19736 \begin_inset Quotes erd
19737 \end_inset
19738
19739  needs use of 
19740 \begin_inset Quotes eld
19741 \end_inset
19742
19743
19744 \family typewriter
19745 cmd
19746 \family default
19747
19748 \begin_inset Quotes erd
19749 \end_inset
19750
19751 .
19752 \end_layout
19753
19754 \begin_layout Enumerate
19755
19756 \size small
19757 Wrong length of dash may have been used.
19758 \end_layout
19759
19760 \begin_layout Enumerate
19761
19762 \size small
19763 \emph on
19764 \begin_inset Quotes eld
19765 \end_inset
19766
19767
19768 \family typewriter
19769 %s
19770 \family default
19771
19772 \begin_inset Quotes erd
19773 \end_inset
19774
19775  expected, found 
19776 \begin_inset Quotes eld
19777 \end_inset
19778
19779
19780 \family typewriter
19781 %s
19782 \family default
19783
19784 \begin_inset Quotes erd
19785 \end_inset
19786
19787 .
19788 \end_layout
19789
19790 \begin_layout Enumerate
19791
19792 \size small
19793 Solo 
19794 \begin_inset Quotes eld
19795 \end_inset
19796
19797
19798 \family typewriter
19799 %s
19800 \family default
19801
19802 \begin_inset Quotes erd
19803 \end_inset
19804
19805  found.
19806 \end_layout
19807
19808 \begin_layout Enumerate
19809
19810 \size small
19811 You should use 
19812 \begin_inset Quotes eld
19813 \end_inset
19814
19815
19816 \family typewriter
19817 %s
19818 \family default
19819
19820 \begin_inset Quotes erd
19821 \end_inset
19822
19823  to achieve an ellipsis.
19824 \end_layout
19825
19826 \begin_layout Enumerate
19827
19828 \size small
19829 Inter-word spacing (
19830 \begin_inset Quotes eld
19831 \end_inset
19832
19833
19834 \family typewriter
19835
19836 \backslash
19837
19838 \family default
19839  
19840 \begin_inset Quotes eld
19841 \end_inset
19842
19843 ) should perhaps be used.
19844 \end_layout
19845
19846 \begin_layout Enumerate
19847
19848 \size small
19849 Inter-sentence spacing (
19850 \begin_inset Quotes eld
19851 \end_inset
19852
19853
19854 \family typewriter
19855
19856 \backslash
19857 @
19858 \family default
19859
19860 \begin_inset Quotes erd
19861 \end_inset
19862
19863 ) should perhaps be used.
19864 \end_layout
19865
19866 \begin_layout Enumerate
19867
19868 \size small
19869 Could not find argument for command.
19870 \end_layout
19871
19872 \begin_layout Enumerate
19873
19874 \size small
19875 No match found for 
19876 \begin_inset Quotes eld
19877 \end_inset
19878
19879
19880 \family typewriter
19881 %s
19882 \family default
19883
19884 \begin_inset Quotes erd
19885 \end_inset
19886
19887 .
19888 \end_layout
19889
19890 \begin_layout Enumerate
19891
19892 \size small
19893 Math mode still on at end of \SpecialChar LaTeX
19894  file.
19895 \end_layout
19896
19897 \begin_layout Enumerate
19898
19899 \size small
19900 Number of 
19901 \begin_inset Quotes eld
19902 \end_inset
19903
19904
19905 \family typewriter
19906 char
19907 \family default
19908
19909 \begin_inset Quotes erd
19910 \end_inset
19911
19912  doesn't match the number of 
19913 \begin_inset Quotes eld
19914 \end_inset
19915
19916
19917 \family typewriter
19918 char
19919 \family default
19920
19921 \begin_inset Quotes erd
19922 \end_inset
19923
19924 .
19925 \end_layout
19926
19927 \begin_layout Enumerate
19928
19929 \size small
19930 You should use either 
19931 \family typewriter
19932
19933 \begin_inset Quotes eld
19934 \end_inset
19935
19936
19937 \family default
19938  or 
19939 \family typewriter
19940
19941 \begin_inset Quotes erd
19942 \end_inset
19943
19944
19945 \family default
19946  as an alternative to 
19947 \begin_inset Quotes eld
19948 \end_inset
19949
19950
19951 \family typewriter
19952 "
19953 \family default
19954
19955 \begin_inset Quotes erd
19956 \end_inset
19957
19958 .
19959 \end_layout
19960
19961 \begin_layout Enumerate
19962
19963 \size small
19964 You should use "
19965 \family typewriter
19966 '
19967 \family default
19968 " (ASCII 39) instead of "
19969 \family typewriter
19970 ´
19971 \family default
19972 " (ASCII 180).
19973 \end_layout
19974
19975 \begin_layout Enumerate
19976
19977 \size small
19978 User-specified pattern found.
19979 \end_layout
19980
19981 \begin_layout Enumerate
19982
19983 \size small
19984 This command might not be intended.
19985 \end_layout
19986
19987 \begin_layout Enumerate
19988
19989 \size small
19990 \emph on
19991 Comment displayed.
19992 \end_layout
19993
19994 \begin_layout Enumerate
19995
19996 \size small
19997 Either 
19998 \family typewriter
19999 ''
20000 \backslash
20001 ,'
20002 \family default
20003  or 
20004 \family typewriter
20005 '
20006 \backslash
20007 ,''
20008 \family default
20009  will look better.
20010 \end_layout
20011
20012 \begin_layout Enumerate
20013
20014 \size small
20015 Delete this space to maintain correct page references.
20016 \end_layout
20017
20018 \begin_layout Enumerate
20019
20020 \size small
20021 \emph on
20022 You might wish to put this between a pair of 
20023 \begin_inset Quotes eld
20024 \end_inset
20025
20026
20027 \family typewriter
20028 {}
20029 \family default
20030
20031 \begin_inset Quotes erd
20032 \end_inset
20033
20034 .
20035 \end_layout
20036
20037 \begin_layout Enumerate
20038
20039 \size small
20040 You ought to remove spaces in front of punctuation.
20041 \end_layout
20042
20043 \begin_layout Enumerate
20044
20045 \size small
20046 Could not execute \SpecialChar LaTeX
20047  command.
20048 \end_layout
20049
20050 \begin_layout Enumerate
20051
20052 \size small
20053 Don't use 
20054 \family typewriter
20055
20056 \backslash
20057 /
20058 \family default
20059  in front of small punctuation.
20060 \end_layout
20061
20062 \begin_layout Enumerate
20063
20064 \family typewriter
20065 \size small
20066 $
20067 \backslash
20068 times$
20069 \family default
20070  may look prettier here.
20071 \end_layout
20072
20073 \begin_layout Enumerate
20074
20075 \size small
20076 \emph on
20077 Multiple spaces detected in output.
20078 \end_layout
20079
20080 \begin_layout Enumerate
20081
20082 \size small
20083 This text may be ignored.
20084 \end_layout
20085
20086 \begin_layout Enumerate
20087
20088 \size small
20089 Use 
20090 \family typewriter
20091
20092 \begin_inset Quotes eld
20093 \end_inset
20094
20095
20096 \family default
20097  to begin quotation, not 
20098 \family typewriter
20099 '
20100 \family default
20101 .
20102 \end_layout
20103
20104 \begin_layout Enumerate
20105
20106 \size small
20107 Use 
20108 \family typewriter
20109 '
20110 \family default
20111  to end quotation, not 
20112 \family typewriter
20113
20114 \begin_inset Quotes eld
20115 \end_inset
20116
20117
20118 \family default
20119 .
20120 \end_layout
20121
20122 \begin_layout Enumerate
20123
20124 \size small
20125 Don't mix quotes.
20126 \end_layout
20127
20128 \begin_layout Enumerate
20129
20130 \size small
20131 You should perhaps use 
20132 \begin_inset Quotes eld
20133 \end_inset
20134
20135
20136 \family typewriter
20137 cmd
20138 \family default
20139
20140 \begin_inset Quotes erd
20141 \end_inset
20142
20143  instead.
20144 \end_layout
20145
20146 \begin_layout Enumerate
20147
20148 \size small
20149 You should put a space in front of/after parenthesis.
20150 \end_layout
20151
20152 \begin_layout Enumerate
20153
20154 \size small
20155 You should avoid spaces in front of/after parenthesis.
20156 \end_layout
20157
20158 \begin_layout Enumerate
20159
20160 \size small
20161 \emph on
20162 You should not use punctuation in front of/after quotes.
20163 \end_layout
20164
20165 \begin_layout Enumerate
20166
20167 \size small
20168 Double space found.
20169 \end_layout
20170
20171 \begin_layout Enumerate
20172
20173 \size small
20174 You should put punctuation outside inner/inside display math mode.
20175 \end_layout
20176
20177 \begin_layout Enumerate
20178
20179 \size small
20180 You ought to not use primitive \SpecialChar TeX
20181  in \SpecialChar LaTeX
20182  code.
20183 \end_layout
20184
20185 \begin_layout Enumerate
20186
20187 \size small
20188 You should remove spaces in front of 
20189 \begin_inset Quotes eld
20190 \end_inset
20191
20192
20193 \family typewriter
20194 %s
20195 \family default
20196
20197 \begin_inset Quotes erd
20198 \end_inset
20199
20200
20201 \end_layout
20202
20203 \begin_layout Enumerate
20204
20205 \size small
20206 \begin_inset Quotes eld
20207 \end_inset
20208
20209
20210 \family typewriter
20211 %s
20212 \family default
20213
20214 \begin_inset Quotes erd
20215 \end_inset
20216
20217  is normally not followed by 
20218 \begin_inset Quotes eld
20219 \end_inset
20220
20221
20222 \family typewriter
20223 %c
20224 \family default
20225
20226 \begin_inset Quotes erd
20227 \end_inset
20228
20229 .
20230 \end_layout
20231
20232 \begin_layout Standard
20233 In later versions of \SpecialChar LyX
20234 , we hope to provide a more complete interface to this
20235  tool (and it's smaller cousin 
20236 \family typewriter
20237 lacheck
20238 \family default
20239 ) to exploit the full power of it.
20240  But it's not exactly useless as it is now: go try it on one of your existing
20241  documents of a certain length and be surprised.
20242 \end_layout
20243
20244 \begin_layout Section
20245 Version Control in \SpecialChar LyX
20246
20247 \end_layout
20248
20249 \begin_layout Standard
20250 by
20251 \noun on
20252  Lars Gullik Bjønnes 
20253 \noun default
20254 and 
20255 \noun on
20256 Pavel Sanda
20257 \end_layout
20258
20259 \begin_layout Subsection
20260 Introduction
20261 \end_layout
20262
20263 \begin_layout Standard
20264 \SpecialChar LyX
20265  supports some of the most basic RCS/CVS/SVN/GIT commands.
20266  If you need something a bit more sophisticated you will have to do that
20267  manually in a terminal.
20268 \end_layout
20269
20270 \begin_layout Standard
20271 Also note that CVS support is not as good as subversion support so we advise
20272  using SVN instead.
20273  A good place to start learning Subversion is SVN Book
20274 \begin_inset Foot
20275 status collapsed
20276
20277 \begin_layout Plain Layout
20278 \begin_inset CommandInset href
20279 LatexCommand href
20280 target "http://svnbook.red-bean.com/"
20281
20282 \end_inset
20283
20284
20285 \end_layout
20286
20287 \end_inset
20288
20289 .
20290  In the case of RCS you should read 
20291 \begin_inset Quotes eld
20292 \end_inset
20293
20294 rcsintro
20295 \begin_inset Quotes erd
20296 \end_inset
20297
20298  (a man file, read it with 
20299 \family typewriter
20300 man rcsintro
20301 \family default
20302 ).
20303  This file describes all the basic features of RCS.
20304  You should especially notice the comment about a RCS directory, and the
20305  notion of a master RCS file (the file ending in 
20306 \family typewriter
20307 ,v
20308 \family default
20309 ).
20310 \end_layout
20311
20312 \begin_layout Standard
20313 Before you begin to use the version control features in \SpecialChar LyX
20314 , you should be
20315  familiar with RCS/CVS/SVN/GIT usage.
20316  The implementation in \SpecialChar LyX
20317  assumes a recent version of the GNU RCS or CVS/SVN
20318  package — no guarantees are made for older versions.
20319  Most of the log messages are not currently displayed after operations —
20320  you can check them in the Messages pane if unsure.
20321  Regular users of version control will appreciate VC toolbar, which can
20322  be enabled via 
20323 \family sans
20324 View\SpecialChar menuseparator
20325 Toolbars\SpecialChar menuseparator
20326 Version
20327 \begin_inset space ~
20328 \end_inset
20329
20330 Control
20331 \family default
20332 .
20333 \end_layout
20334
20335 \begin_layout Standard
20336 For introducing your own external commands consult vc-command in the manual
20337  of \SpecialChar LyX
20338  functions.
20339 \end_layout
20340
20341 \begin_layout Standard
20342 It is strongly recommended to store documents in uncompressed format if
20343  using version control (uncheck 
20344 \family sans
20345 Document\SpecialChar menuseparator
20346 Compressed
20347 \family default
20348  if it is checked): Uncompressed LyX documents are text files and therefore
20349  for merging two different versions by version control systems.
20350  Compressed LyX documents are binary files, which cannot be merged by version
20351  control systems.
20352 \end_layout
20353
20354 \begin_layout Subsection
20355 RCS commands in \SpecialChar LyX
20356
20357 \end_layout
20358
20359 \begin_layout Standard
20360 The following sections describe the RCS commands supported by \SpecialChar LyX
20361 .
20362  You can find them in the 
20363 \family sans
20364 File\SpecialChar menuseparator
20365 Version
20366 \begin_inset space ~
20367 \end_inset
20368
20369 Control
20370 \family default
20371  submenu.
20372  \SpecialChar LyX
20373  was tested against RCS 5.7/5.8.
20374 \end_layout
20375
20376 \begin_layout Subsubsection
20377
20378 \family sans
20379 Register
20380 \end_layout
20381
20382 \begin_layout Standard
20383 If your document is not under revision control, this is the only item shown
20384  in the menu.
20385  And if it is under revision control, the 
20386 \family sans
20387 Register
20388 \family default
20389  item is not visible.
20390  
20391 \end_layout
20392
20393 \begin_layout Standard
20394 This command registers your document with RCS (unless you are under the
20395  directory managed by CVS)\SpecialChar endofsentence
20396  You are asked interactively to supply an initial
20397  description of the document.
20398  The document is now set in Read-Only mode and you have to 
20399 \family sans
20400 Check
20401 \begin_inset space ~
20402 \end_inset
20403
20404 Out
20405 \begin_inset space ~
20406 \end_inset
20407
20408 For
20409 \begin_inset space ~
20410 \end_inset
20411
20412 Edit
20413 \family default
20414 , before making any changes to it.
20415  A document under revision control has a 
20416 \begin_inset Quotes eld
20417 \end_inset
20418
20419 [RCS:<version> <locker>]
20420 \begin_inset Quotes erd
20421 \end_inset
20422
20423  item tagged to the filename in the minibuffer.
20424 \end_layout
20425
20426 \begin_layout Standard
20427 RCS command that is run: 
20428 \family typewriter
20429 ci -q -u -i -t-"<initial description>" <file-name>
20430 \end_layout
20431
20432 \begin_layout Standard
20433 Read 
20434 \family typewriter
20435 man ci
20436 \family default
20437  to understand the switches.
20438  
20439 \end_layout
20440
20441 \begin_layout Subsubsection
20442
20443 \family sans
20444 Check In Changes
20445 \end_layout
20446
20447 \begin_layout Standard
20448 When you are finished editing a file, you check in your changes.
20449  When you do this, you are asked for a description of the changes.
20450  This is stored in the history log.
20451  The version number is bumped, your changes are applied to the master RCS
20452  file, the document is unlocked and set to Read-Only mode.
20453 \end_layout
20454
20455 \begin_layout Standard
20456 RCS command: 
20457 \family typewriter
20458 ci -q -u -m"<description>" <file-name>
20459 \end_layout
20460
20461 \begin_layout Subsubsection
20462
20463 \family sans
20464 Check Out For Edit
20465 \end_layout
20466
20467 \begin_layout Standard
20468 By doing this you lock the document so that only you can edit it.
20469  This will also make the document Read-Write only for you.
20470  You will usually continue editing for a while and when you are finished
20471  you check in your changes.
20472  The status line is changed to reflect that you have locked the file.
20473 \end_layout
20474
20475 \begin_layout Standard
20476 RCS command: 
20477 \family typewriter
20478 co -q -l <file-name>
20479 \end_layout
20480
20481 \begin_layout Subsubsection
20482
20483 \family sans
20484 Revert To Repository Version
20485 \end_layout
20486
20487 \begin_layout Standard
20488 This will discard all changes made to the document since the last check
20489  in.
20490  You get a warning before changes are discarded.
20491 \end_layout
20492
20493 \begin_layout Standard
20494 RCS command: 
20495 \family typewriter
20496 co -f -u<version> <file-name>
20497 \end_layout
20498
20499 \begin_layout Subsubsection
20500
20501 \family sans
20502 Copy
20503 \end_layout
20504
20505 \begin_layout Standard
20506 This will create a copy of the current document.
20507  Since RCS does not support copy operations natively, the version history
20508  is not preserved, and the copy is added as a new file.
20509  It requires a clean document without any changes since the last checkin.
20510  You are asked for a file name and a description of the copy operation.
20511  After that the copy is created, both locally and in the repository.
20512  If the parent directories of the copied and original document differ, all
20513  relative paths of included files of the copy are adjusted (like in 
20514 \family sans
20515 File\SpecialChar menuseparator
20516 Save As
20517 \family default
20518 \SpecialChar ldots
20519 ).
20520  Finally, the copy is loaded instead of the original document.
20521 \end_layout
20522
20523 \begin_layout Labeling
20524 \labelwidthstring 00.00.0000
20525 RCS
20526 \begin_inset space ~
20527 \end_inset
20528
20529 commands: 
20530 \begin_inset space ~
20531 \end_inset
20532
20533
20534 \begin_inset Newline newline
20535 \end_inset
20536
20537 Copy 
20538 \begin_inset Flex Code
20539 status collapsed
20540
20541 \begin_layout Plain Layout
20542
20543 \family typewriter
20544 \begin_inset Quotes eld
20545 \end_inset
20546
20547 <file-name>
20548 \begin_inset Quotes erd
20549 \end_inset
20550
20551
20552 \end_layout
20553
20554 \end_inset
20555
20556  to 
20557 \begin_inset Flex Code
20558 status collapsed
20559
20560 \begin_layout Plain Layout
20561
20562 \family typewriter
20563 \begin_inset Quotes eld
20564 \end_inset
20565
20566 <new-file-name>
20567 \begin_inset Quotes erd
20568 \end_inset
20569
20570
20571 \end_layout
20572
20573 \end_inset
20574
20575
20576 \begin_inset Newline newline
20577 \end_inset
20578
20579
20580 \begin_inset Flex Code
20581 status collapsed
20582
20583 \begin_layout Plain Layout
20584 ci -q -u 
20585 \family typewriter
20586 -i 
20587 \begin_inset Quotes eld
20588 \end_inset
20589
20590 <new-file-name>
20591 \begin_inset Quotes erd
20592 \end_inset
20593
20594
20595 \end_layout
20596
20597 \end_inset
20598
20599
20600 \end_layout
20601
20602 \begin_layout Subsubsection
20603
20604 \family sans
20605 Undo Last Checkin
20606 \end_layout
20607
20608 \begin_layout Standard
20609 This makes as if the last check in never happened.
20610  No changes are made to the document loaded into \SpecialChar LyX
20611 , but the last version
20612  is removed from the master RCS file.
20613 \end_layout
20614
20615 \begin_layout Standard
20616 RCS command: 
20617 \family typewriter
20618 rcs -o<version> <file-name>
20619 \end_layout
20620
20621 \begin_layout Subsubsection
20622
20623 \family sans
20624 Show History
20625 \end_layout
20626
20627 \begin_layout Standard
20628 This shows the complete history of the RCS document.
20629  The output of 
20630 \family typewriter
20631 rlog <file-name>
20632 \family default
20633  is shown in a browser.
20634  See 
20635 \family typewriter
20636 man rlog
20637 \family default
20638  for more info.
20639 \end_layout
20640
20641 \begin_layout Subsubsection
20642 Revision info
20643 \end_layout
20644
20645 \begin_layout Standard
20646 \SpecialChar LyX
20647  supports RCS version number, author name, date and time of last commit.
20648  All those are extracted from 
20649 \family typewriter
20650 rlog -r <file-name>
20651 \family default
20652 .
20653  See 
20654 \begin_inset CommandInset ref
20655 LatexCommand ref
20656 reference "subsec:VCS-Revision-Information"
20657
20658 \end_inset
20659
20660  for details.
20661 \end_layout
20662
20663 \begin_layout Subsection
20664 CVS commands in \SpecialChar LyX
20665
20666 \end_layout
20667
20668 \begin_layout Standard
20669 A subset of CVS operations is supported by \SpecialChar LyX
20670 .
20671  You can find the commands in the 
20672 \family sans
20673 File\SpecialChar menuseparator
20674 Version
20675 \begin_inset space ~
20676 \end_inset
20677
20678 Control
20679 \family default
20680  submenu.
20681  The version control system SVN is more powerful, so please use it instead
20682  of CVS if possible.
20683 \end_layout
20684
20685 \begin_layout Subsubsection
20686
20687 \family sans
20688 General CVS usage
20689 \end_layout
20690
20691 \begin_layout Standard
20692 If you start from scratch with CVS you have to create your repository and
20693  checkout the working copy with external tools.
20694  If you're using a client-server setup you may need to login before doing
20695  the first repository checkout.
20696 \end_layout
20697
20698 \begin_layout Standard
20699 If your documents are under revision control and others are using the same
20700  repository problems arise when different changes to the same document at
20701  the same location happen.
20702  Standard CVS repositories don't operate with a file locking mechanism.
20703  This may be surprising, but conflicts only occur if people disagree on
20704  the proper content of the same part of a document.
20705  So, if co-workers are used to communicate regularly, these conflicts occur
20706  rarely.
20707  If they don't communicate they have a fundamental problem anyway.
20708  Nevertheless some people like to work with so called 
20709 \begin_inset Quotes eld
20710 \end_inset
20711
20712 reserved checkouts
20713 \begin_inset Quotes erd
20714 \end_inset
20715
20716 .
20717  If they do so the working copy of all files is readonly when checked out
20718  first and the user starts editing after using a special command to make
20719  the working copy writable.
20720  When the changes are checked in the working copy returns to readonly state.
20721  With \SpecialChar LyX
20722  one has to edit the 
20723 \begin_inset Flex Code
20724 status collapsed
20725
20726 \begin_layout Plain Layout
20727 .cvsrc
20728 \end_layout
20729
20730 \end_inset
20731
20732  file and add the line 
20733 \begin_inset Flex Code
20734 status collapsed
20735
20736 \begin_layout Plain Layout
20737 cvs -r
20738 \end_layout
20739
20740 \end_inset
20741
20742  to work with reserved checkouts.
20743  The benefit is the possibility to see who is using a writable copy of some
20744  document.
20745  It's not guaranteed only one user makes a copy writable.
20746 \end_layout
20747
20748 \begin_layout Standard
20749 \SpecialChar LyX
20750  tries to guess if you're using reserved or non-reserved checkouts.
20751  If your working copy is readonly or it is writable and an additional copy
20752  of your document exists in the CVS/Base sub-directory a reserved otherwise
20753  a non-reserved checkout is assumed.
20754  When a reserved checkout is detected you have to use 
20755 \begin_inset Flex Noun
20756 status collapsed
20757
20758 \begin_layout Plain Layout
20759 Check Out
20760 \end_layout
20761
20762 \end_inset
20763
20764  to make your working copy writable if it's readonly.
20765  After doing so the 
20766 \begin_inset Flex Noun
20767 status collapsed
20768
20769 \begin_layout Plain Layout
20770 Check In
20771 \end_layout
20772
20773 \end_inset
20774
20775  operation is possible and that makes your working copy readonly again after
20776  transferring your changes to the repository.
20777 \end_layout
20778
20779 \begin_layout Standard
20780 More information about CVS can be found here 
20781 \begin_inset Flex URL
20782 status collapsed
20783
20784 \begin_layout Plain Layout
20785
20786 http://www.nongnu.org/cvs
20787 \end_layout
20788
20789 \end_inset
20790
20791  and here 
20792 \begin_inset Flex URL
20793 status collapsed
20794
20795 \begin_layout Plain Layout
20796
20797 http://ximbiot.com/cvs
20798 \end_layout
20799
20800 \end_inset
20801
20802 .
20803 \end_layout
20804
20805 \begin_layout Standard
20806 Read 
20807 \family typewriter
20808 man cvs
20809 \family default
20810  to understand the sub-commands and the switches mentioned below.
20811 \end_layout
20812
20813 \begin_layout Subsubsection
20814
20815 \family sans
20816 Register
20817 \end_layout
20818
20819 \begin_layout Standard
20820 If your document is not under revision control, this is the only item shown
20821  in the menu.
20822  And if it is under revision control, the 
20823 \family sans
20824 Register
20825 \family default
20826  item is not visible.
20827  
20828 \end_layout
20829
20830 \begin_layout Standard
20831 This command registers in CVS your document 
20832 \begin_inset Flex Strong
20833 status collapsed
20834
20835 \begin_layout Plain Layout
20836
20837 \emph on
20838 only
20839 \end_layout
20840
20841 \end_inset
20842
20843  in the case you have already the documents directory under CVS control
20844  (in particular 
20845 \family typewriter
20846 CVS/Entries
20847 \family default
20848  file exists).
20849  This means you have to create or checkout the archive by yourself using
20850  external tools.
20851  (In case you forget that step \SpecialChar LyX
20852  registers the document with RCS.)
20853 \end_layout
20854
20855 \begin_layout Standard
20856 Then you are asked interactively to supply an initial description of the
20857  document.
20858  Don't forget that registered file is not yet checked in.
20859 \end_layout
20860
20861 \begin_layout Standard
20862 CVS command that is run: 
20863 \family typewriter
20864 cvs -q add -m"<entered message>" "<file-name>"
20865 \end_layout
20866
20867 \begin_layout Standard
20868 The term 
20869 \family typewriter
20870 "<file-name>"
20871 \family default
20872  above and for all other CVS commands is an abbreviation for 
20873 \begin_inset Quotes eld
20874 \end_inset
20875
20876 change the current working directory to file location and use the file name
20877  without path component as argument
20878 \begin_inset Quotes erd
20879 \end_inset
20880
20881 .
20882 \end_layout
20883
20884 \begin_layout Subsubsection
20885
20886 \family sans
20887 Check In Changes
20888 \end_layout
20889
20890 \begin_layout Standard
20891 When you are finished editing a file, you commit your changes.
20892  When you do this and you had changed the document, you are asked for a
20893  description of the changes.
20894  After that changes are written to the repository.
20895  In case you didn't change the document and a reserved checkout is detected
20896  the reservation made on 
20897 \begin_inset Flex Noun
20898 status collapsed
20899
20900 \begin_layout Plain Layout
20901 Check Out
20902 \end_layout
20903
20904 \end_inset
20905
20906  is undone.
20907 \end_layout
20908
20909 \begin_layout Labeling
20910 \labelwidthstring 00.00.0000
20911 CVS
20912 \begin_inset space ~
20913 \end_inset
20914
20915 command: 
20916 \begin_inset space ~
20917 \end_inset
20918
20919
20920 \begin_inset Newline newline
20921 \end_inset
20922
20923
20924 \begin_inset Flex Code
20925 status collapsed
20926
20927 \begin_layout Plain Layout
20928 cvs 
20929 \family typewriter
20930 -q commit -m"<description>" "<file-name>"
20931 \end_layout
20932
20933 \end_inset
20934
20935  or
20936 \begin_inset Newline newline
20937 \end_inset
20938
20939
20940 \begin_inset Flex Code
20941 status collapsed
20942
20943 \begin_layout Plain Layout
20944 cvs -q unedit 
20945 \family typewriter
20946 "<file-name>"
20947 \end_layout
20948
20949 \end_inset
20950
20951
20952 \end_layout
20953
20954 \begin_layout Subsubsection
20955
20956 \family sans
20957 Check Out Changes
20958 \end_layout
20959
20960 \begin_layout Standard
20961 When you are sharing a repository with others, you may have to incorporate
20962  their changes into your working copy.
20963 \end_layout
20964
20965 \begin_layout Standard
20966 CVS command: 
20967 \family typewriter
20968 cvs -q update "<file-name>"
20969 \end_layout
20970
20971 \begin_layout Standard
20972 If a readonly checkout is detected the working copy is made writable and
20973  reserved.
20974 \end_layout
20975
20976 \begin_layout Standard
20977 CVS command: 
20978 \family typewriter
20979 cvs -q edit "<file-name>"
20980 \end_layout
20981
20982 \begin_layout Subsubsection
20983
20984 \family sans
20985 Revert To Repository Version
20986 \end_layout
20987
20988 \begin_layout Standard
20989 This will discard all changes made to the document since the last check
20990  in.
20991  You get a warning before changes are discarded.
20992  Firstly the file is deleted, secondly CVS update command is run.
20993 \end_layout
20994
20995 \begin_layout Standard
20996 CVS command: 
20997 \family typewriter
20998 cvs -q update "<file-name>"
20999 \end_layout
21000
21001 \begin_layout Standard
21002 If a reserved checkout is detected and the working copy has no changes only
21003  the reservation is undone.
21004 \end_layout
21005
21006 \begin_layout Standard
21007 CVS command: 
21008 \family typewriter
21009 cvs -q unedit "<file-name>"
21010 \end_layout
21011
21012 \begin_layout Subsubsection
21013
21014 \family sans
21015 Copy
21016 \end_layout
21017
21018 \begin_layout Standard
21019 This will create a copy of the current document.
21020  Since CVS does not support copy operations natively, the version history
21021  is not preserved, and the copy is added as a new file.
21022  It requires a clean document without any changes since the last checkin.
21023  You are asked for a file name and a description of the copy operation.
21024  After that the copy is created, both locally and in the repository.
21025  If the parent directories of the copied and original document differ, all
21026  relative paths of included files of the copy are adjusted (like in 
21027 \family sans
21028 File\SpecialChar menuseparator
21029 Save As
21030 \family default
21031 \SpecialChar ldots
21032 ).
21033  Finally, the copy is loaded instead of the original document.
21034 \end_layout
21035
21036 \begin_layout Labeling
21037 \labelwidthstring 00.00.0000
21038 CVS
21039 \begin_inset space ~
21040 \end_inset
21041
21042 commands: 
21043 \begin_inset space ~
21044 \end_inset
21045
21046
21047 \begin_inset Newline newline
21048 \end_inset
21049
21050 Copy 
21051 \begin_inset Flex Code
21052 status collapsed
21053
21054 \begin_layout Plain Layout
21055
21056 \family typewriter
21057 \begin_inset Quotes eld
21058 \end_inset
21059
21060 <file-name>
21061 \begin_inset Quotes erd
21062 \end_inset
21063
21064
21065 \end_layout
21066
21067 \end_inset
21068
21069  to 
21070 \begin_inset Flex Code
21071 status collapsed
21072
21073 \begin_layout Plain Layout
21074
21075 \family typewriter
21076 \begin_inset Quotes eld
21077 \end_inset
21078
21079 <new-file-name>
21080 \begin_inset Quotes erd
21081 \end_inset
21082
21083
21084 \end_layout
21085
21086 \end_inset
21087
21088
21089 \begin_inset Newline newline
21090 \end_inset
21091
21092
21093 \begin_inset Flex Code
21094 status collapsed
21095
21096 \begin_layout Plain Layout
21097 cvs -q add 
21098 \family typewriter
21099
21100 \begin_inset Quotes eld
21101 \end_inset
21102
21103 <new-file-name>
21104 \begin_inset Quotes erd
21105 \end_inset
21106
21107
21108 \end_layout
21109
21110 \end_inset
21111
21112
21113 \end_layout
21114
21115 \begin_layout Subsubsection
21116
21117 \family sans
21118 Rename
21119 \end_layout
21120
21121 \begin_layout Standard
21122 This will rename the current document.
21123  Since CVS does not support rename operations natively, the version history
21124  is not preserved, the renamed document is added as a new file, and the
21125  original document is deleted.
21126  It requires a clean document without any changes since the last checkin.
21127  You are asked for a file name and a description of the rename operation.
21128  After that the document is renamed, both locally and in the repository.
21129  If the parent directories of the new and old file names differ, all relative
21130  paths of included files are adjusted (like in 
21131 \family sans
21132 File\SpecialChar menuseparator
21133 Save As
21134 \family default
21135 \SpecialChar ldots
21136 ).
21137  Finally, the document is reloaded using the new name.
21138 \end_layout
21139
21140 \begin_layout Labeling
21141 \labelwidthstring 00.00.0000
21142 CVS
21143 \begin_inset space ~
21144 \end_inset
21145
21146 commands: 
21147 \begin_inset space ~
21148 \end_inset
21149
21150
21151 \begin_inset Newline newline
21152 \end_inset
21153
21154 Rename 
21155 \begin_inset Flex Code
21156 status collapsed
21157
21158 \begin_layout Plain Layout
21159
21160 \family typewriter
21161 \begin_inset Quotes eld
21162 \end_inset
21163
21164 <file-name>
21165 \begin_inset Quotes erd
21166 \end_inset
21167
21168
21169 \end_layout
21170
21171 \end_inset
21172
21173  to 
21174 \begin_inset Flex Code
21175 status collapsed
21176
21177 \begin_layout Plain Layout
21178
21179 \family typewriter
21180 \begin_inset Quotes eld
21181 \end_inset
21182
21183 <new-file-name>
21184 \begin_inset Quotes erd
21185 \end_inset
21186
21187
21188 \end_layout
21189
21190 \end_inset
21191
21192
21193 \begin_inset Newline newline
21194 \end_inset
21195
21196
21197 \begin_inset Flex Code
21198 status collapsed
21199
21200 \begin_layout Plain Layout
21201 cvs -q add 
21202 \family typewriter
21203
21204 \begin_inset Quotes eld
21205 \end_inset
21206
21207 <new-file-name>
21208 \begin_inset Quotes erd
21209 \end_inset
21210
21211
21212 \end_layout
21213
21214 \end_inset
21215
21216
21217 \begin_inset Newline newline
21218 \end_inset
21219
21220
21221 \begin_inset Flex Code
21222 status collapsed
21223
21224 \begin_layout Plain Layout
21225 cvs -q remove 
21226 \family typewriter
21227
21228 \begin_inset Quotes eld
21229 \end_inset
21230
21231 <file-name>
21232 \begin_inset Quotes erd
21233 \end_inset
21234
21235
21236 \end_layout
21237
21238 \end_inset
21239
21240
21241 \end_layout
21242
21243 \begin_layout Subsubsection
21244 Update of the local directory checkout from repository
21245 \end_layout
21246
21247 \begin_layout Standard
21248 Once your documents gets more complex, containing sub-documents and pictures,
21249  including external 
21250 \begin_inset Flex Code
21251 status collapsed
21252
21253 \begin_layout Plain Layout
21254 .tex
21255 \end_layout
21256
21257 \end_inset
21258
21259  files and so on using version control becomes more complicated.
21260  \SpecialChar LyX
21261  supports updating the whole tree in which resides the document.
21262  This become especially useful once you cooperate with people which neither
21263  have detailed knowledge about CVS usage nor they have ambition to commit
21264  additional material to the repository.
21265  You have to organize the files structure so that all external files are
21266  in the same directory or subdirectories of the document.
21267  It's good practice anyway to store multipart documents in an extra directory.
21268 \end_layout
21269
21270 \begin_layout Standard
21271 The 
21272 \begin_inset Flex Code
21273 status collapsed
21274
21275 \begin_layout Plain Layout
21276 Update local directory from repository
21277 \end_layout
21278
21279 \end_inset
21280
21281  command updates the whole directory.
21282  If local changes are detected user is warned before update starts.
21283  In case of merge conflicts both versions of the conflicting document parts
21284  are placed in the final document.
21285  You have to review and correct the result of the merge.
21286  You'll find the conflicts enclosed in pairs of 
21287 \begin_inset Flex Code
21288 status collapsed
21289
21290 \begin_layout Plain Layout
21291 <<<<<<<
21292 \end_layout
21293
21294 \end_inset
21295
21296  and 
21297 \begin_inset Flex Code
21298 status collapsed
21299
21300 \begin_layout Plain Layout
21301 >>>>>>>
21302 \end_layout
21303
21304 \end_inset
21305
21306  separated by 
21307 \begin_inset Flex Code
21308 status collapsed
21309
21310 \begin_layout Plain Layout
21311 =======
21312 \end_layout
21313
21314 \end_inset
21315
21316 .
21317  The first part is your version as before the update operation with the
21318  document name prepended.
21319  The second one is the repository version with the version number after
21320  the sequence of 
21321 \begin_inset Flex Code
21322 status collapsed
21323
21324 \begin_layout Plain Layout
21325 >
21326 \end_layout
21327
21328 \end_inset
21329
21330  signs.
21331 \end_layout
21332
21333 \begin_layout Labeling
21334 \labelwidthstring 00.00.0000
21335 CVS
21336 \begin_inset space ~
21337 \end_inset
21338
21339 commands: 
21340 \begin_inset space ~
21341 \end_inset
21342
21343
21344 \begin_inset Newline newline
21345 \end_inset
21346
21347
21348 \begin_inset Flex Code
21349 status collapsed
21350
21351 \begin_layout Plain Layout
21352 cd $path; cvs diff 
21353 \family typewriter
21354 "."
21355 \end_layout
21356
21357 \end_inset
21358
21359  (Ask if changes are detected.)
21360 \begin_inset Newline newline
21361 \end_inset
21362
21363
21364 \begin_inset Flex Code
21365 status collapsed
21366
21367 \begin_layout Plain Layout
21368 cd $path; cvs -q update 
21369 \family typewriter
21370 "."
21371 \end_layout
21372
21373 \end_inset
21374
21375
21376 \end_layout
21377
21378 \begin_layout Standard
21379 where 
21380 \begin_inset Flex Code
21381 status collapsed
21382
21383 \begin_layout Plain Layout
21384 $path
21385 \end_layout
21386
21387 \end_inset
21388
21389  stands for the path to the document.
21390 \end_layout
21391
21392 \begin_layout Subsubsection
21393
21394 \family sans
21395 Show History
21396 \end_layout
21397
21398 \begin_layout Standard
21399 This shows the complete history of the CVS document.
21400  The output of 
21401 \family typewriter
21402 cvs log "<file-name>"
21403 \family default
21404  is shown in a browser.
21405 \end_layout
21406
21407 \begin_layout Subsubsection
21408 Revision info
21409 \end_layout
21410
21411 \begin_layout Standard
21412 \SpecialChar LyX
21413  supports CVS version number, author name, date and time of last commit.
21414  All those are extracted from 
21415 \family typewriter
21416 cvs log -r <file-name>
21417 \family default
21418 .
21419  See 
21420 \begin_inset CommandInset ref
21421 LatexCommand ref
21422 reference "subsec:VCS-Revision-Information"
21423
21424 \end_inset
21425
21426  for details.
21427 \end_layout
21428
21429 \begin_layout Subsection
21430 SVN commands in \SpecialChar LyX
21431
21432 \end_layout
21433
21434 \begin_layout Standard
21435 SVN is now partially supported by \SpecialChar LyX
21436 .
21437  You can find the commands in the 
21438 \family sans
21439 File\SpecialChar menuseparator
21440 Version
21441 \begin_inset space ~
21442 \end_inset
21443
21444 Control
21445 \family default
21446  submenu.
21447  Please note that if you use password protected access to repository via
21448  ssh, you will be asked in terminal window.
21449  \SpecialChar LyX
21450  was tested against SVN 1.5, 1.6, 1.7 and 1.8
21451 \begin_inset Foot
21452 status open
21453
21454 \begin_layout Plain Layout
21455 Most of the commands will work with 1.4 too, see 
21456 \begin_inset CommandInset ref
21457 LatexCommand ref
21458 reference "subsec:SVN-Repo-Update"
21459
21460 \end_inset
21461
21462 .
21463  There seems to be currently unresolved permissions problem under SVN 1.8
21464  with reverting changes when file is locked.
21465 \end_layout
21466
21467 \end_inset
21468
21469
21470 \end_layout
21471
21472 \begin_layout Subsubsection
21473
21474 \family sans
21475 Register
21476 \end_layout
21477
21478 \begin_layout Standard
21479 If your document is not under revision control, this is the only item shown
21480  in the menu.
21481  And if it is under revision control, the 
21482 \family sans
21483 Register
21484 \family default
21485  item is not visible.
21486 \end_layout
21487
21488 \begin_layout Standard
21489 This command registers in SVN your document ONLY in case you have already
21490  the documents directory under SVN control (in particular 
21491 \family typewriter
21492 .svn/entries
21493 \family default
21494  file exists).
21495  This means you have to checkout the archive by yourself.
21496 \end_layout
21497
21498 \begin_layout Standard
21499 Then you are asked interactively to supply an initial description of the
21500  document.
21501  Don't forget that registered file is not yet commited.
21502 \end_layout
21503
21504 \begin_layout Standard
21505 SVN command that is run: 
21506 \family typewriter
21507 svn add -q 
21508 \begin_inset Quotes eld
21509 \end_inset
21510
21511 <file-name>
21512 \begin_inset Quotes erd
21513 \end_inset
21514
21515
21516 \end_layout
21517
21518 \begin_layout Standard
21519 Read 
21520 \family typewriter
21521 man svn
21522 \family default
21523  to understand the switches.
21524 \end_layout
21525
21526 \begin_layout Subsubsection
21527
21528 \family sans
21529 Check In Changes
21530 \end_layout
21531
21532 \begin_layout Standard
21533 When you are finished editing a file, you commit your changes.
21534  When you do this, you are asked for a description of the changes.
21535  After that changes are commited.
21536 \end_layout
21537
21538 \begin_layout Standard
21539 SVN command:
21540 \begin_inset Foot
21541 status collapsed
21542
21543 \begin_layout Plain Layout
21544 In case locking is not enabled.
21545  See Section 
21546 \begin_inset CommandInset ref
21547 LatexCommand ref
21548 reference "subsec:SVN-File-Locking"
21549
21550 \end_inset
21551
21552 .
21553 \end_layout
21554
21555 \end_inset
21556
21557  
21558 \family typewriter
21559 svn commit -q -m"<description>" <file-name>
21560 \end_layout
21561
21562 \begin_layout Subsubsection
21563
21564 \family sans
21565 Check Out For Edit
21566 \end_layout
21567
21568 \begin_layout Standard
21569 Updates the changes of this file from the repository.
21570  Be sure you understand SVN merging and conflicts resolving before using
21571  this function, because all conflicts has to be resolved manually by you!
21572 \end_layout
21573
21574 \begin_layout Standard
21575 SVN command:
21576 \begin_inset Foot
21577 status collapsed
21578
21579 \begin_layout Plain Layout
21580 Ditto.
21581 \end_layout
21582
21583 \end_inset
21584
21585  
21586 \family typewriter
21587 svn update --non-interactive 
21588 \begin_inset Quotes eld
21589 \end_inset
21590
21591 <file-name>
21592 \begin_inset Quotes erd
21593 \end_inset
21594
21595
21596 \end_layout
21597
21598 \begin_layout Subsubsection
21599
21600 \family sans
21601 Revert To Repository Version
21602 \end_layout
21603
21604 \begin_layout Standard
21605 This will discard all changes made to the document since the last check
21606  in.
21607  You get a warning before changes are discarded.
21608 \end_layout
21609
21610 \begin_layout Standard
21611 SVN command: 
21612 \family typewriter
21613 svn revert -q 
21614 \begin_inset Quotes eld
21615 \end_inset
21616
21617 <file-name>
21618 \begin_inset Quotes erd
21619 \end_inset
21620
21621
21622 \end_layout
21623
21624 \begin_layout Subsubsection
21625
21626 \family sans
21627 Copy
21628 \end_layout
21629
21630 \begin_layout Standard
21631 This will create a copy of the current document including the version history.
21632  It requires a clean document without any changes since the last checkin.
21633  You are asked for a file name and a description of the copy operation.
21634  After that the copy is created, both locally and in the repository.
21635  If the parent directories of the copied and original document differ, all
21636  relative paths of included files of the copy are adjusted (like in 
21637 \family sans
21638 File\SpecialChar menuseparator
21639 Save As
21640 \family default
21641 \SpecialChar ldots
21642 ).
21643  Finally, the copy is loaded instead of the original document.
21644 \end_layout
21645
21646 \begin_layout Labeling
21647 \labelwidthstring 00.00.0000
21648 SVN
21649 \begin_inset space ~
21650 \end_inset
21651
21652 commands: 
21653 \begin_inset space ~
21654 \end_inset
21655
21656
21657 \begin_inset Newline newline
21658 \end_inset
21659
21660
21661 \begin_inset Flex Code
21662 status collapsed
21663
21664 \begin_layout Plain Layout
21665 svn copy -q 
21666 \family typewriter
21667
21668 \begin_inset Quotes eld
21669 \end_inset
21670
21671 <file-name>
21672 \begin_inset Quotes erd
21673 \end_inset
21674
21675  
21676 \begin_inset Quotes eld
21677 \end_inset
21678
21679 <new-file-name>
21680 \begin_inset Quotes erd
21681 \end_inset
21682
21683
21684 \end_layout
21685
21686 \end_inset
21687
21688
21689 \begin_inset Newline newline
21690 \end_inset
21691
21692
21693 \begin_inset Flex Code
21694 status collapsed
21695
21696 \begin_layout Plain Layout
21697 svn commit
21698 \end_layout
21699
21700 \end_inset
21701
21702
21703 \end_layout
21704
21705 \begin_layout Subsubsection
21706
21707 \family sans
21708 Rename
21709 \end_layout
21710
21711 \begin_layout Standard
21712 This will rename the current document including the version history.
21713  It requires a clean document without any changes since the last checkin.
21714  You are asked for a file name and a description of the rename operation.
21715  After that the document is renamed, both locally and in the repository.
21716  If the parent directories of the new and old file names differ, all relative
21717  paths of included files are adjusted (like in 
21718 \family sans
21719 File\SpecialChar menuseparator
21720 Save As
21721 \family default
21722 \SpecialChar ldots
21723 ).
21724  Finally, the document is reloaded using the new name.
21725 \end_layout
21726
21727 \begin_layout Labeling
21728 \labelwidthstring 00.00.0000
21729 SVN
21730 \begin_inset space ~
21731 \end_inset
21732
21733 commands: 
21734 \begin_inset space ~
21735 \end_inset
21736
21737
21738 \begin_inset Newline newline
21739 \end_inset
21740
21741
21742 \begin_inset Flex Code
21743 status collapsed
21744
21745 \begin_layout Plain Layout
21746 svn move -q 
21747 \family typewriter
21748
21749 \begin_inset Quotes eld
21750 \end_inset
21751
21752 <file-name>
21753 \begin_inset Quotes erd
21754 \end_inset
21755
21756  
21757 \begin_inset Quotes eld
21758 \end_inset
21759
21760 <new-file-name>
21761 \begin_inset Quotes erd
21762 \end_inset
21763
21764
21765 \end_layout
21766
21767 \end_inset
21768
21769
21770 \begin_inset Newline newline
21771 \end_inset
21772
21773
21774 \begin_inset Flex Code
21775 status collapsed
21776
21777 \begin_layout Plain Layout
21778 svn commit
21779 \end_layout
21780
21781 \end_inset
21782
21783
21784 \end_layout
21785
21786 \begin_layout Subsubsection
21787 \begin_inset CommandInset label
21788 LatexCommand label
21789 name "subsec:SVN-Repo-Update"
21790
21791 \end_inset
21792
21793 Update of the local directory checkout from repository
21794 \begin_inset Foot
21795 status collapsed
21796
21797 \begin_layout Plain Layout
21798 Note that this command will work only with subversion 
21799 \begin_inset Formula $\geqq1.5$
21800 \end_inset
21801
21802
21803 \end_layout
21804
21805 \end_inset
21806
21807
21808 \end_layout
21809
21810 \begin_layout Standard
21811 All the commands above have one shortcomming - they deal with the current
21812  document only.
21813  Once your document contains pictures, includes external 
21814 \begin_inset Flex Code
21815 status collapsed
21816
21817 \begin_layout Plain Layout
21818 .tex
21819 \end_layout
21820
21821 \end_inset
21822
21823  files and so on administration becomes more complicated.
21824  \SpecialChar LyX
21825  now supports updating the whole tree in which resides the document
21826 \begin_inset Foot
21827 status collapsed
21828
21829 \begin_layout Plain Layout
21830 One need to organize the files structure so that all external files are
21831  in the same directory or subdirectories of the document.
21832  
21833 \end_layout
21834
21835 \end_inset
21836
21837 .
21838  This become especially useful once you cooperate with people which neither
21839  know about subversion management nor they have ambition to commit additional
21840  material to the repository.
21841  
21842 \end_layout
21843
21844 \begin_layout Standard
21845 \begin_inset Flex Code
21846 status collapsed
21847
21848 \begin_layout Plain Layout
21849 Update local directory from repository
21850 \end_layout
21851
21852 \end_inset
21853
21854  command updates the whole directory and in case of merge conflicts local
21855  version of the files are left, so no unintended data loss occurs.
21856  If local changes are detected user is warned before update starts.
21857 \end_layout
21858
21859 \begin_layout Labeling
21860 \labelwidthstring 00.00.0000
21861 SVN
21862 \begin_inset space ~
21863 \end_inset
21864
21865 commands: 
21866 \begin_inset space ~
21867 \end_inset
21868
21869
21870 \begin_inset Newline newline
21871 \end_inset
21872
21873
21874 \begin_inset Flex Code
21875 status collapsed
21876
21877 \begin_layout Plain Layout
21878 svn diff $path
21879 \end_layout
21880
21881 \end_inset
21882
21883  (Ask if changes are detected.)
21884 \begin_inset Newline newline
21885 \end_inset
21886
21887
21888 \begin_inset Flex Code
21889 status collapsed
21890
21891 \begin_layout Plain Layout
21892 svn update –accept mine-full $path
21893 \end_layout
21894
21895 \end_inset
21896
21897
21898 \end_layout
21899
21900 \begin_layout Standard
21901 where 
21902 \begin_inset Flex Code
21903 status collapsed
21904
21905 \begin_layout Plain Layout
21906 $path
21907 \end_layout
21908
21909 \end_inset
21910
21911  stands for the path to the document.
21912 \end_layout
21913
21914 \begin_layout Subsubsection
21915
21916 \family sans
21917 Show History
21918 \end_layout
21919
21920 \begin_layout Standard
21921 This shows the complete history of the SVN document.
21922  The output of 
21923 \family typewriter
21924 svn log 
21925 \begin_inset Quotes eld
21926 \end_inset
21927
21928 <file-name>
21929 \begin_inset Quotes erd
21930 \end_inset
21931
21932
21933 \family default
21934  is shown in a browser.
21935 \end_layout
21936
21937 \begin_layout Subsubsection
21938 File Locking
21939 \begin_inset CommandInset label
21940 LatexCommand label
21941 name "subsec:SVN-File-Locking"
21942
21943 \end_inset
21944
21945
21946 \end_layout
21947
21948 \begin_layout Standard
21949 The file exchange through various revision control systems brings the problem
21950  of merge conflicts in case two different users try to edit the same (parts
21951  of) document.
21952  When such a conflict happens it needs manual resolving and one reasonable
21953  alternative is to provide some kind of locking mechanism, which guarantees
21954  that only one user is allowed to edit file at the given time.
21955 \end_layout
21956
21957 \begin_layout Standard
21958 SVN has two such mechanisms to provide mutual exclusivity for file access
21959  - locks and automatic setting of write permissions (see sec.
21960  
21961 \begin_inset CommandInset ref
21962 LatexCommand ref
21963 reference "subsec:Automatical-Locking-Property"
21964
21965 \end_inset
21966
21967 ) based on 
21968 \begin_inset Flex Code
21969 status collapsed
21970
21971 \begin_layout Plain Layout
21972 svn:needs-lock
21973 \end_layout
21974
21975 \end_inset
21976
21977  file svn property
21978 \begin_inset Foot
21979 status open
21980
21981 \begin_layout Plain Layout
21982 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
21983 \end_layout
21984
21985 \end_inset
21986
21987 .
21988  If this property is detected for a given document \SpecialChar LyX
21989  starts to use SVN locks
21990  for document editing automatically and the whole check-in/out mechanism
21991  switches to the same regimen as for RCS.
21992  This in particular means there are two different modes of file use in \SpecialChar LyX
21993 :
21994 \end_layout
21995
21996 \begin_layout Itemize
21997 Unlocked state.
21998  The loaded file is in the read-only mode.
21999  For editing on needs to check-out.
22000  
22001 \emph on
22002 Check-out
22003 \emph default
22004  consists of updating from the repository and gaining write lock.
22005  If the lock is not possible to obtain, we remain in unlocked state.
22006 \end_layout
22007
22008 \begin_layout Itemize
22009 Locked state.
22010  The loaded file is in the 'normal' edit mode.
22011  No other user is allowed to edit the file.
22012  
22013 \emph on
22014 Check-in
22015 \emph default
22016  consists of commiting changes and releasing write-lock.
22017  If no changes have been made to the document, no commit will be produced
22018 \begin_inset Foot
22019 status collapsed
22020
22021 \begin_layout Plain Layout
22022 Don't be puzzled by the fact that you will be asked for commit message anyway.
22023 \end_layout
22024
22025 \end_inset
22026
22027  and only the write-lock will be released.
22028 \end_layout
22029
22030 \begin_layout Standard
22031 SVN commands:
22032 \end_layout
22033
22034 \begin_layout Labeling
22035 \labelwidthstring 00.00.0000
22036 Check-in:
22037 \family typewriter
22038  svn commit -q -m"<description>" "<file-name>"
22039 \begin_inset Newline newline
22040 \end_inset
22041
22042 svn unlock "<file-name>"
22043 \end_layout
22044
22045 \begin_layout Labeling
22046 \labelwidthstring 00.00.0000
22047 Check-out: 
22048 \family typewriter
22049 svn update "<file-name>"
22050 \begin_inset Newline newline
22051 \end_inset
22052
22053 svn lock "<file-name>"
22054 \end_layout
22055
22056 \begin_layout Subsubsection
22057
22058 \family typewriter
22059 \begin_inset CommandInset label
22060 LatexCommand label
22061 name "subsec:Automatical-Locking-Property"
22062
22063 \end_inset
22064
22065
22066 \family default
22067 Automatic Locking Property
22068 \end_layout
22069
22070 \begin_layout Standard
22071 The above mentioned automatic setting of write permissions of the .lyx file
22072  can be set through
22073 \family sans
22074  File\SpecialChar menuseparator
22075 Version
22076 \begin_inset space ~
22077 \end_inset
22078
22079 Control\SpecialChar menuseparator
22080 Toggle locking property
22081 \family default
22082 .
22083  This command is active only when the file is not locked on the svn server
22084  (i.e.
22085  you need to check-out before proceeding).
22086 \end_layout
22087
22088 \begin_layout Labeling
22089 \labelwidthstring 00.00.0000
22090 SVN
22091 \begin_inset space ~
22092 \end_inset
22093
22094 commands:
22095 \end_layout
22096
22097 \begin_layout Labeling
22098 \labelwidthstring 00.00.0000
22099 Set:
22100 \family typewriter
22101  svn propset svn:needs-lock ON "<file-name>"
22102 \end_layout
22103
22104 \begin_layout Labeling
22105 \labelwidthstring 00.00.0000
22106 Unset: 
22107 \family typewriter
22108 svn propdel svn:needs-lock "<file-name>"
22109 \end_layout
22110
22111 \begin_layout Subsubsection
22112 \begin_inset CommandInset label
22113 LatexCommand label
22114 name "subsec:VCS-Revision-Information"
22115
22116 \end_inset
22117
22118 Revision Information in Documents
22119 \end_layout
22120
22121 \begin_layout Standard
22122 There are more possibilities how to activate revision information in our
22123  document.
22124 \end_layout
22125
22126 \begin_layout Itemize
22127 \SpecialChar LyX
22128  supports directly:
22129 \end_layout
22130
22131 \begin_deeper
22132 \begin_layout Itemize
22133 tree revision information (
22134 \begin_inset Flex Code
22135 status collapsed
22136
22137 \begin_layout Plain Layout
22138 vcs-tree-revision
22139 \end_layout
22140
22141 \end_inset
22142
22143 ).
22144  The result is the output of the 
22145 \begin_inset Flex Code
22146 status collapsed
22147
22148 \begin_layout Plain Layout
22149 svnversion
22150 \end_layout
22151
22152 \end_inset
22153
22154  command, the following table gives you an idea, how to read the results.
22155 \end_layout
22156
22157 \begin_layout Standard
22158 \align center
22159 \begin_inset Tabular
22160 <lyxtabular version="3" rows="6" columns="2">
22161 <features tabularvalignment="middle">
22162 <column alignment="center" valignment="top">
22163 <column alignment="center" valignment="top">
22164 <row>
22165 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22166 \begin_inset Text
22167
22168 \begin_layout Plain Layout
22169 Output
22170 \end_layout
22171
22172 \end_inset
22173 </cell>
22174 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22175 \begin_inset Text
22176
22177 \begin_layout Plain Layout
22178 Meaning
22179 \end_layout
22180
22181 \end_inset
22182 </cell>
22183 </row>
22184 <row>
22185 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22186 \begin_inset Text
22187
22188 \begin_layout Plain Layout
22189 4123:4168
22190 \end_layout
22191
22192 \end_inset
22193 </cell>
22194 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22195 \begin_inset Text
22196
22197 \begin_layout Plain Layout
22198 mixed revision working copy
22199 \end_layout
22200
22201 \end_inset
22202 </cell>
22203 </row>
22204 <row>
22205 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22206 \begin_inset Text
22207
22208 \begin_layout Plain Layout
22209 4168M
22210 \end_layout
22211
22212 \end_inset
22213 </cell>
22214 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22215 \begin_inset Text
22216
22217 \begin_layout Plain Layout
22218 modified working copy
22219 \end_layout
22220
22221 \end_inset
22222 </cell>
22223 </row>
22224 <row>
22225 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22226 \begin_inset Text
22227
22228 \begin_layout Plain Layout
22229 4123S
22230 \end_layout
22231
22232 \end_inset
22233 </cell>
22234 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22235 \begin_inset Text
22236
22237 \begin_layout Plain Layout
22238 switched working copy
22239 \end_layout
22240
22241 \end_inset
22242 </cell>
22243 </row>
22244 <row>
22245 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22246 \begin_inset Text
22247
22248 \begin_layout Plain Layout
22249 4123P
22250 \end_layout
22251
22252 \end_inset
22253 </cell>
22254 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22255 \begin_inset Text
22256
22257 \begin_layout Plain Layout
22258 partial working copy, from a sparse checkout
22259 \end_layout
22260
22261 \end_inset
22262 </cell>
22263 </row>
22264 <row>
22265 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22266 \begin_inset Text
22267
22268 \begin_layout Plain Layout
22269 4123:4168MS
22270 \end_layout
22271
22272 \end_inset
22273 </cell>
22274 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22275 \begin_inset Text
22276
22277 \begin_layout Plain Layout
22278 mixed revision, modified, switched working copy
22279 \end_layout
22280
22281 \end_inset
22282 </cell>
22283 </row>
22284 </lyxtabular>
22285
22286 \end_inset
22287
22288
22289 \end_layout
22290
22291 \begin_layout Itemize
22292 file revision information.
22293  The result comes from parsing the output of 
22294 \begin_inset Flex Code
22295 status collapsed
22296
22297 \begin_layout Plain Layout
22298 svn
22299 \begin_inset space ~
22300 \end_inset
22301
22302 info
22303 \begin_inset space ~
22304 \end_inset
22305
22306 –xml
22307 \begin_inset space ~
22308 \end_inset
22309
22310 file.lyx
22311 \end_layout
22312
22313 \end_inset
22314
22315 .
22316  Supported flags are:
22317 \end_layout
22318
22319 \begin_deeper
22320 \begin_layout Itemize
22321 version number of the last commit (
22322 \begin_inset Flex Code
22323 status collapsed
22324
22325 \begin_layout Plain Layout
22326 vcs-revision
22327 \end_layout
22328
22329 \end_inset
22330
22331 )
22332 \end_layout
22333
22334 \begin_layout Itemize
22335 author of the last commit (
22336 \begin_inset Flex Code
22337 status collapsed
22338
22339 \begin_layout Plain Layout
22340 vcs-author
22341 \end_layout
22342
22343 \end_inset
22344
22345 )
22346 \end_layout
22347
22348 \begin_layout Itemize
22349 date of the last commit (
22350 \begin_inset Flex Code
22351 status collapsed
22352
22353 \begin_layout Plain Layout
22354 vcs-date
22355 \end_layout
22356
22357 \end_inset
22358
22359 )
22360 \end_layout
22361
22362 \begin_layout Itemize
22363 time of the last commit (
22364 \begin_inset Flex Code
22365 status collapsed
22366
22367 \begin_layout Plain Layout
22368 vcs-time
22369 \end_layout
22370
22371 \end_inset
22372
22373 )
22374 \end_layout
22375
22376 \end_deeper
22377 \begin_layout Standard
22378 You can obtain this info via InsetInfo (e.g.
22379  
22380 \begin_inset Flex Code
22381 status collapsed
22382
22383 \begin_layout Plain Layout
22384 info-insert buffer vcs-date
22385 \end_layout
22386
22387 \end_inset
22388
22389 ).
22390  The information will be available only when you have the file stored under
22391  svn managment (i.e.
22392  the 
22393 \begin_inset Flex Code
22394 status collapsed
22395
22396 \begin_layout Plain Layout
22397 .svn
22398 \end_layout
22399
22400 \end_inset
22401
22402  directory is available with your document).
22403 \end_layout
22404
22405 \end_deeper
22406 \begin_layout Itemize
22407 Another—a hacking one—possibility is to use svn keywords
22408 \begin_inset Foot
22409 status collapsed
22410
22411 \begin_layout Plain Layout
22412 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
22413 \end_layout
22414
22415 \end_inset
22416
22417 .
22418  In short – you set file keywords property (e.g.
22419  
22420 \family sans
22421 svn propset svn:keywords 'Rev' file.lyx
22422 \family default
22423 ) and then paste keyword \SpecialChar TeX
22424  code
22425 \begin_inset Foot
22426 status collapsed
22427
22428 \begin_layout Plain Layout
22429 This is an easy way how to ensure that \SpecialChar LyX
22430  won't break the line in the middle
22431  of keyword tag.
22432 \end_layout
22433
22434 \end_inset
22435
22436  tag in your document (e.g.
22437  
22438 \begin_inset ERT
22439 status open
22440
22441 \begin_layout Plain Layout
22442
22443 $Rev$
22444 \end_layout
22445
22446 \end_inset
22447
22448 ).
22449  This way svn client will automatically substitute revision number (e.g.
22450  
22451 \begin_inset ERT
22452 status open
22453
22454 \begin_layout Plain Layout
22455
22456 $Rev: 59 $
22457 \end_layout
22458
22459 \end_inset
22460
22461 ) after each update and commit.
22462  There are more problems with this approach.
22463  Firstly, the '$' character is used in \SpecialChar TeX
22464  world for math equations, so any
22465  occurence of math formula 
22466 \begin_inset Formula $Rev$
22467 \end_inset
22468
22469  become 
22470 \begin_inset Formula $Rev:59$
22471 \end_inset
22472
22473  in your \SpecialChar LyX
22474  document.
22475  Similarly for other keywords like Id, Date, Author, etc.
22476  Secondly svn output is dependent on your locales, so its very easy that
22477  svn would produce some problematic strings once Date is used.
22478  Thirdly you get the whole 'Rev: 59' string in your document instead of
22479  the plain number.
22480  Until subversion implements user's custom keywords it will be hard to use
22481  this approach reliably or let \SpecialChar LyX
22482  to support it directly.
22483 \end_layout
22484
22485 \begin_layout Subsection
22486 SVN and Windows Environment
22487 \end_layout
22488
22489 \begin_layout Quote
22490 My inclination is to say that if the user cannot figure out the command
22491  line operations on their own fairly quickly, they would be well advised
22492  to use TortoiseSVN.
22493  —P.
22494  A.
22495  Rubin
22496 \end_layout
22497
22498 \begin_layout Subsubsection
22499 Preparation
22500 \end_layout
22501
22502 \begin_layout Standard
22503 In addition to installing \SpecialChar LyX
22504 , and having access to a Subversion repository,
22505  the user will need to install the Subversion client program.
22506  A Windows installer for the client program is available from 
22507 \begin_inset CommandInset href
22508 LatexCommand href
22509 name "CollabNet"
22510 target "http://www.collab.net/nonav/downloads/subversion/"
22511
22512 \end_inset
22513
22514 .
22515  The user may also want to install 
22516 \begin_inset CommandInset href
22517 LatexCommand href
22518 name "TortoiseSVN"
22519 target "http://tortoisesvn.tigris.org/"
22520
22521 \end_inset
22522
22523 , which integrates Subversion operations into the context (rightclick) menu
22524  of Windows Explorer.
22525  Operations done outside \SpecialChar LyX
22526  will typically be more convenient using the Explorer
22527  context menu.
22528  Note that TortoiseSVN is not a replacement for the client program, which
22529  is what \SpecialChar LyX
22530  itself will use.
22531 \end_layout
22532
22533 \begin_layout Subsubsection
22534 Bringing a document under Subversion control
22535 \end_layout
22536
22537 \begin_layout Standard
22538 Before a \SpecialChar LyX
22539  document can be brought under version control in Subversion, its
22540  parent directory needs to be under version control.
22541  If the document is being added to a project already in the repository,
22542  this is accomplished by checking the project out to the directory where
22543  the new document will be placed.
22544  If the project itself is not yet under version control (for instance, if
22545  this document starts a new project), the directory must be imported into
22546  the repository.
22547  This is done outside \SpecialChar LyX
22548 .
22549  Both import and checkout are easily accomplished from the Explorer context
22550  menu using TortoiseSVN, or alternatively can be done using the command
22551  line client at a DOS prompt.
22552  The procedure for importing the project using TortoiseSVN is described
22553  below, assuming an existing repository and a new project being started
22554  in 
22555 \family typewriter
22556 C:
22557 \backslash
22558 new project
22559 \family default
22560 .
22561  For information on using the Subversion client program, run 
22562 \family typewriter
22563 svn --help 
22564 \family default
22565 in a DOS shell.
22566 \end_layout
22567
22568 \begin_layout Enumerate
22569 Locate 
22570 \family typewriter
22571 C:
22572 \backslash
22573 new project 
22574 \family default
22575 in Windows Explorer, right click it, and select 
22576 \family sans
22577 TortoiseSVN\SpecialChar menuseparator
22578 Repo-browser
22579 \family default
22580 .
22581  If necessary, adjust the URL for the repository, then click OK.
22582 \end_layout
22583
22584 \begin_layout Enumerate
22585 Right click the level of the repository under which you want to place the
22586  new project folder (typically the top level) and click 
22587 \family sans
22588 Create folder
22589 \family default
22590  Supply a name for the project folder and click OK.
22591  Add a message for the log file if desired, then click OK again.
22592  The new project folder should appear in the repository.
22593  Finally, click OK again to exit the repository browser.
22594 \end_layout
22595
22596 \begin_layout Enumerate
22597 Once again right click 
22598 \family typewriter
22599 C:
22600 \backslash
22601 new project
22602 \family default
22603 , this time selecting SVN Checkout\SpecialChar ldots
22604  Select the URL of the project folder
22605  you just created in the repository, and set the checkout directory to 
22606 \family typewriter
22607 C:
22608 \backslash
22609 new project.
22610
22611 \family default
22612  Click OK.
22613  You will be warned about a non-empty folder; click OK to proceed.
22614  You should now have a 
22615 \family typewriter
22616 .svn
22617 \family default
22618  directory under 
22619 \family typewriter
22620 C:
22621 \backslash
22622 new project.
22623 \end_layout
22624
22625 \begin_layout Enumerate
22626 Create or open your document in \SpecialChar LyX
22627  and click 
22628 \family sans
22629 File\SpecialChar menuseparator
22630 Version
22631 \begin_inset space ~
22632 \end_inset
22633
22634 Control\SpecialChar menuseparator
22635 Register.
22636  
22637 \family default
22638 Add a log message and click OK to commit the document to version control.
22639 \end_layout
22640
22641 \begin_layout Standard
22642 From this point onward, you should have full functionality in the 
22643 \family sans
22644 File\SpecialChar menuseparator
22645 Version
22646 \begin_inset space ~
22647 \end_inset
22648
22649 Control
22650 \family default
22651  menu.
22652  You also have the option of checking the document in and out, viewing its
22653  history, etc.
22654  using the TortoiseSVN context menu in Windows Explorer or the Subversion
22655  client program from a command prompt.
22656 \end_layout
22657
22658 \begin_layout Subsubsection
22659 SSH tunnel used with SVN under Windows
22660 \end_layout
22661
22662 \begin_layout Standard
22663 Compared with Linux setting up an svn client to communicate over ssh under
22664  Windows is a rather troublesome task.
22665  We will at least offer some hints how to setup the client side but prior
22666  knowledge about ssh and the Windows command line is needed, also be prepared
22667  for a great deal of frustration\SpecialChar ldots
22668
22669 \end_layout
22670
22671 \begin_layout Enumerate
22672 Get an svn client for windows, as described in the previous sections.
22673  When it is a fresh install run some svn command (e.g.
22674  
22675 \begin_inset Flex Code
22676 status collapsed
22677
22678 \begin_layout Plain Layout
22679 svn –version
22680 \end_layout
22681
22682 \end_inset
22683
22684 ) to create config files, which you will need to change later on.
22685 \end_layout
22686
22687 \begin_layout Enumerate
22688 Choose an ssh client for Windows.
22689  There are several possibilities, we will use the one from Putty tools
22690 \begin_inset Foot
22691 status collapsed
22692
22693 \begin_layout Plain Layout
22694 \begin_inset Flex URL
22695 status collapsed
22696
22697 \begin_layout Plain Layout
22698
22699 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
22700 \end_layout
22701
22702 \end_inset
22703
22704
22705 \end_layout
22706
22707 \end_inset
22708
22709 .
22710  You will need to set the connection up so that the client doesn't ask for
22711  any password from you.
22712  To keep things easy we will use only keys without any additional password
22713  protection etc.
22714 \end_layout
22715
22716 \begin_deeper
22717 \begin_layout Enumerate
22718 Generate keys by 
22719 \begin_inset Flex Code
22720 status collapsed
22721
22722 \begin_layout Plain Layout
22723 puttygen
22724 \end_layout
22725
22726 \end_inset
22727
22728 .
22729  Save your private .ppk key file and put the public one on the server side.
22730  If the SVN server runs on Linux, note that the format of the public key
22731  is not compatible with Linux openssh and you will need to direcly copy-paste
22732  the key from the “
22733 \emph on
22734 Public key for pasting into OpenSSH authorized_keys file
22735 \emph default
22736 :” edit field into the server's 
22737 \begin_inset Flex Code
22738 status collapsed
22739
22740 \begin_layout Plain Layout
22741 ~/.ssh/authorized_keys
22742 \end_layout
22743
22744 \end_inset
22745
22746  / 
22747 \begin_inset Flex Code
22748 status collapsed
22749
22750 \begin_layout Plain Layout
22751 authorized_keys2
22752 \end_layout
22753
22754 \end_inset
22755
22756  file.
22757 \end_layout
22758
22759 \begin_layout Enumerate
22760 Get the Putty's 
22761 \begin_inset Flex Code
22762 status collapsed
22763
22764 \begin_layout Plain Layout
22765 plink
22766 \end_layout
22767
22768 \end_inset
22769
22770 .
22771  In the SVN config file
22772 \begin_inset Foot
22773 status collapsed
22774
22775 \begin_layout Plain Layout
22776 Exact path depends on Windows version, usually somewhere around 
22777 \begin_inset Flex Code
22778 status collapsed
22779
22780 \begin_layout Plain Layout
22781 c:
22782 \backslash
22783 Documents and Settings
22784 \backslash
22785 user
22786 \backslash
22787 Application Data
22788 \backslash
22789 Subversion
22790 \backslash
22791 config
22792 \end_layout
22793
22794 \end_inset
22795
22796  / 
22797 \begin_inset Flex Code
22798 status collapsed
22799
22800 \begin_layout Plain Layout
22801 AppData
22802 \backslash
22803 Roaming
22804 \backslash
22805 Subversion
22806 \end_layout
22807
22808 \end_inset
22809
22810 .
22811 \end_layout
22812
22813 \end_inset
22814
22815 , section [tunnels], setup ssh command, e.g.
22816  
22817 \begin_inset Flex Code
22818 status collapsed
22819
22820 \begin_layout Plain Layout
22821 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
22822 \end_layout
22823
22824 \end_inset
22825
22826 .
22827 \begin_inset Foot
22828 status collapsed
22829
22830 \begin_layout Plain Layout
22831 It will usually take a lot of time to get exact command right and it depends
22832  on many things.
22833  For example do not have some remote server saved as a default session in
22834  Putty etc.
22835  If things fail, try to connect via plink without SVN first.
22836 \end_layout
22837
22838 \end_inset
22839
22840
22841 \end_layout
22842
22843 \end_deeper
22844 \begin_layout Enumerate
22845 Checkout the SVN archive, e.
22846 \begin_inset space \thinspace{}
22847 \end_inset
22848
22849 g.
22850 \begin_inset Newline newline
22851 \end_inset
22852
22853
22854 \begin_inset Flex Code
22855 status collapsed
22856
22857 \begin_layout Plain Layout
22858 svn co svn+ssh://user@server/repository_path
22859 \end_layout
22860
22861 \end_inset
22862
22863 .
22864 \end_layout
22865
22866 \begin_layout Subsubsection
22867 End-of-Line Conversions
22868 \end_layout
22869
22870 \begin_layout Standard
22871 When the collaborators are mixing Linux and Windows environments, \SpecialChar LyX
22872  will
22873  use different line endings inside the .lyx files.
22874  This is not a problem as far as \SpecialChar LyX
22875  functionality is concerned, but the commit
22876  diffs will be huge and merge-conflicts prone.
22877  Fortunately SVN itself knows
22878 \begin_inset Foot
22879 status collapsed
22880
22881 \begin_layout Plain Layout
22882 \begin_inset Flex URL
22883 status collapsed
22884
22885 \begin_layout Plain Layout
22886
22887 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
22888 \end_layout
22889
22890 \end_inset
22891
22892
22893 \end_layout
22894
22895 \end_inset
22896
22897  how to deal with CR/LF problems when switching .lyx files to the 
22898 \begin_inset Flex Code
22899 status collapsed
22900
22901 \begin_layout Plain Layout
22902 native
22903 \end_layout
22904
22905 \end_inset
22906
22907  mode.
22908 \begin_inset Foot
22909 status collapsed
22910
22911 \begin_layout Plain Layout
22912 For the lazy guys: 
22913 \begin_inset Flex Code
22914 status collapsed
22915
22916 \begin_layout Plain Layout
22917 svn propset svn:eol-style native FILE_NAME
22918 \end_layout
22919
22920 \end_inset
22921
22922
22923 \end_layout
22924
22925 \end_inset
22926
22927
22928 \end_layout
22929
22930 \begin_layout Subsection
22931 GIT commands in \SpecialChar LyX
22932
22933 \end_layout
22934
22935 \begin_layout Standard
22936 A minimal subset of GIT commands is now supported by \SpecialChar LyX
22937 .
22938  You can find the commands in the 
22939 \family sans
22940 File\SpecialChar menuseparator
22941 Version
22942 \begin_inset space ~
22943 \end_inset
22944
22945 Control
22946 \family default
22947  submenu.
22948  Please note that if you use password protected access to repository via
22949  ssh, you will be asked in terminal window.
22950  \SpecialChar LyX
22951  was tested against GIT 1.7.
22952 \begin_inset Foot
22953 status open
22954
22955 \begin_layout Plain Layout
22956 Windows users please note that you need to ensure that git is on the path.
22957  This can be set from within \SpecialChar LyX
22958  at 
22959 \family sans
22960 Tools\SpecialChar menuseparator
22961 Preferences\SpecialChar menuseparator
22962 Paths\SpecialChar menuseparator
22963 PATH prefix
22964 \family default
22965 .
22966 \end_layout
22967
22968 \end_inset
22969
22970
22971 \end_layout
22972
22973 \begin_layout Standard
22974 One big difference of GIT and the other supported version control systems
22975  is the distributed nature of GIT: With traditional version control systems
22976  there is one central server which hosts the repository.
22977  Users commit their changes to the server, and get updates made by other
22978  users from it.
22979  With GIT, users commit to a local repository.
22980  The local repository can be synchronized with one or more remote repositories
22981  using the 
22982 \begin_inset Flex Code
22983 status collapsed
22984
22985 \begin_layout Plain Layout
22986 pull
22987 \end_layout
22988
22989 \end_inset
22990
22991  and 
22992 \begin_inset Flex Code
22993 status collapsed
22994
22995 \begin_layout Plain Layout
22996 push
22997 \end_layout
22998
22999 \end_inset
23000
23001  GIT commands.
23002  \SpecialChar LyX
23003  does not interact in any way with remote GIT repositories.
23004  It works exclusively with the local repository in a very similar way as
23005  with a central CVS or SVN repository.
23006  If you use remote GIT repositories you need to do the 
23007 \begin_inset Flex Code
23008 status collapsed
23009
23010 \begin_layout Plain Layout
23011 pull
23012 \end_layout
23013
23014 \end_inset
23015
23016  and 
23017 \begin_inset Flex Code
23018 status collapsed
23019
23020 \begin_layout Plain Layout
23021 push
23022 \end_layout
23023
23024 \end_inset
23025
23026  operations with your favourite GIT client.
23027 \end_layout
23028
23029 \begin_layout Subsubsection
23030
23031 \family sans
23032 Register
23033 \end_layout
23034
23035 \begin_layout Standard
23036 If your document is not under revision control, this is the only item shown
23037  in the menu.
23038  And if it is under revision control, the 
23039 \family sans
23040 Register
23041 \family default
23042  item is not visible.
23043 \end_layout
23044
23045 \begin_layout Standard
23046 This command registers in GIT your document ONLY in case you have already
23047  the documents directory under GIT control (in particular 
23048 \family typewriter
23049 .git/index
23050 \family default
23051  file exists).
23052  This means you have to checkout the archive by yourself.
23053 \end_layout
23054
23055 \begin_layout Standard
23056 Then you are asked interactively to supply an initial description of the
23057  document.
23058  Don't forget that registered file is not yet commited.
23059 \end_layout
23060
23061 \begin_layout Standard
23062 GIT command that is run: 
23063 \family typewriter
23064 git add 
23065 \begin_inset Quotes eld
23066 \end_inset
23067
23068 <file-name>
23069 \begin_inset Quotes erd
23070 \end_inset
23071
23072
23073 \end_layout
23074
23075 \begin_layout Standard
23076 Read 
23077 \family typewriter
23078 man git
23079 \family default
23080  to understand the switches.
23081 \end_layout
23082
23083 \begin_layout Subsubsection
23084
23085 \family sans
23086 Check In Changes
23087 \end_layout
23088
23089 \begin_layout Standard
23090 When you are finished editing a file, you commit your changes.
23091  When you do this, you are asked for a description of the changes.
23092  After that changes are commited.
23093 \end_layout
23094
23095 \begin_layout Standard
23096 GIT command: 
23097 \family typewriter
23098 git commit -q -m"<description>" <file-name>
23099 \end_layout
23100
23101 \begin_layout Subsubsection
23102
23103 \family sans
23104 Revert To Repository Version
23105 \end_layout
23106
23107 \begin_layout Standard
23108 This will discard all changes made to the document since the last check
23109  in.
23110  You get a warning before changes are discarded.
23111 \end_layout
23112
23113 \begin_layout Standard
23114 GIT command: 
23115 \family typewriter
23116 git checkout -q 
23117 \begin_inset Quotes eld
23118 \end_inset
23119
23120 <file-name>
23121 \begin_inset Quotes erd
23122 \end_inset
23123
23124
23125 \end_layout
23126
23127 \begin_layout Subsubsection
23128
23129 \family sans
23130 Rename
23131 \end_layout
23132
23133 \begin_layout Standard
23134 This will rename the current document including the version history.
23135  It requires a clean document without any changes since the last checkin.
23136  You are asked for a file name and a description of the rename operation.
23137  After that the document is renamed, both locally and in the repository.
23138  If the parent directories of the new and old file names differ, all relative
23139  paths of included files are adjusted (like in 
23140 \family sans
23141 File\SpecialChar menuseparator
23142 Save As
23143 \family default
23144 \SpecialChar ldots
23145 ).
23146  Finally, the document is reloaded using the new name.
23147 \end_layout
23148
23149 \begin_layout Labeling
23150 \labelwidthstring 00.00.0000
23151 GIT
23152 \begin_inset space ~
23153 \end_inset
23154
23155 commands: 
23156 \begin_inset space ~
23157 \end_inset
23158
23159
23160 \begin_inset Newline newline
23161 \end_inset
23162
23163
23164 \begin_inset Flex Code
23165 status collapsed
23166
23167 \begin_layout Plain Layout
23168 git mv 
23169 \family typewriter
23170
23171 \begin_inset Quotes eld
23172 \end_inset
23173
23174 <file-name>
23175 \begin_inset Quotes erd
23176 \end_inset
23177
23178  
23179 \begin_inset Quotes eld
23180 \end_inset
23181
23182 <new-file-name>
23183 \begin_inset Quotes erd
23184 \end_inset
23185
23186
23187 \end_layout
23188
23189 \end_inset
23190
23191
23192 \begin_inset Newline newline
23193 \end_inset
23194
23195
23196 \begin_inset Flex Code
23197 status collapsed
23198
23199 \begin_layout Plain Layout
23200 git commit
23201 \end_layout
23202
23203 \end_inset
23204
23205
23206 \end_layout
23207
23208 \begin_layout Subsubsection
23209
23210 \family sans
23211 Show History
23212 \end_layout
23213
23214 \begin_layout Standard
23215 This shows the complete history of the GIT document.
23216  The output of 
23217 \family typewriter
23218 git log 
23219 \begin_inset Quotes eld
23220 \end_inset
23221
23222 <file-name>
23223 \begin_inset Quotes erd
23224 \end_inset
23225
23226
23227 \family default
23228  is shown in a browser.
23229 \end_layout
23230
23231 \begin_layout Subsubsection
23232 Version Info
23233 \end_layout
23234
23235 \begin_layout Standard
23236 \SpecialChar LyX
23237  supports GIT hash number of the last commit to the file, author name, date
23238  and time of last commit.
23239  All those are extracted from 
23240 \family typewriter
23241 git log -n 1 --pretty=format:%H%n%an%n%ai
23242 \family default
23243 .
23244  Tree version information is obtained via 
23245 \family typewriter
23246 git describe --abbrev --dirty --long
23247 \family default
23248 .
23249  See 
23250 \begin_inset CommandInset ref
23251 LatexCommand ref
23252 reference "subsec:VCS-Revision-Information"
23253
23254 \end_inset
23255
23256  for other details.
23257 \end_layout
23258
23259 \begin_layout Subsection
23260 Further tuning
23261 \end_layout
23262
23263 \begin_layout Standard
23264 With the recent addition of the vc-command function \SpecialChar LyX
23265  power users are allowed
23266  to create their own commands for revision control.
23267 \end_layout
23268
23269 \begin_layout Standard
23270 As an example you can see how two TortoiseSVN commands could be integrated
23271  directly:
23272 \end_layout
23273
23274 \begin_layout Description
23275 Commit: 
23276 \begin_inset Flex Code
23277 status collapsed
23278
23279 \begin_layout Plain Layout
23280 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
23281 \end_layout
23282
23283 \end_inset
23284
23285
23286 \end_layout
23287
23288 \begin_layout Description
23289 Revert: 
23290 \begin_inset Flex Code
23291 status collapsed
23292
23293 \begin_layout Plain Layout
23294 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
23295 \end_layout
23296
23297 \end_inset
23298
23299
23300 \end_layout
23301
23302 \begin_layout Subsection
23303 Version control and Document comparison
23304 \end_layout
23305
23306 \begin_layout Standard
23307 One of the typical uses of version control is to inspect the changes between
23308  revisions, usually by creating 
23309 \begin_inset Flex Code
23310 status collapsed
23311
23312 \begin_layout Plain Layout
23313 diff
23314 \end_layout
23315
23316 \end_inset
23317
23318  dumps.
23319  While this is useful for plain text files, it is much less useful in the
23320  case of \SpecialChar LyX
23321  files, which have more a complicated structure.
23322  Hence we provide binding to the Document comparison feature.
23323  There are two ways of calling this feature - either by direct call of 
23324 \begin_inset Flex Code
23325 status collapsed
23326
23327 \begin_layout Plain Layout
23328 VC_COMPARE
23329 \end_layout
23330
23331 \end_inset
23332
23333  \SpecialChar LyX
23334  function (for details see \SpecialChar LyX
23335  functions manual) or by icon/menu item 
23336 \begin_inset Flex Noun
23337 status collapsed
23338
23339 \begin_layout Plain Layout
23340 Compare with older revision...
23341 \end_layout
23342
23343 \end_inset
23344
23345 .
23346  One can either compare two chosen revisions of the document or he can simply
23347  compare the current version of edited text with older revisions (where
23348  '
23349 \begin_inset Flex Noun
23350 status collapsed
23351
23352 \begin_layout Plain Layout
23353 0
23354 \end_layout
23355
23356 \end_inset
23357
23358 ' revisions back means comparison of the edited file with last commited
23359  revision).
23360  
23361 \end_layout
23362
23363 \begin_layout Standard
23364 This feature is supported for SVN and RCS though due to the more complicated
23365  versioning scheme of RCS there is a constraint – when addressing the revisions
23366  in dialog, numbers always point to the last number in RCS revision number,
23367  i.e.
23368  '35' in '1.2.35'.
23369  We don't currently support GIT addressing of revisions, one can just compare
23370  edited document with its revision X steps backs, where X is addressed as
23371  HEAD~X.
23372 \end_layout
23373
23374 \begin_layout Section
23375 Literate Programming
23376 \end_layout
23377
23378 \begin_layout Standard
23379 Updated by 
23380 \noun on
23381 Kayvan Sylvan 
23382 \noun default
23383 (kayvan@sylvan.com)
23384 \noun on
23385
23386 \noun default
23387 original documentation written by 
23388 \noun on
23389 Edmar Wienskoski Jr.
23390
23391 \noun default
23392  (edmar-w-jr@technologist.com)
23393 \end_layout
23394
23395 \begin_layout Subsection
23396 Introduction
23397 \end_layout
23398
23399 \begin_layout Standard
23400 The main purpose of this documentation is to show you how to use \SpecialChar LyX
23401  for literate
23402  programming, where it is assumed that you are familiar with this programming
23403  technique, and know what 
23404 \begin_inset Quotes eld
23405 \end_inset
23406
23407 tangling
23408 \begin_inset Quotes erd
23409 \end_inset
23410
23411  and 
23412 \begin_inset Quotes eld
23413 \end_inset
23414
23415 weaving
23416 \begin_inset Quotes erd
23417 \end_inset
23418
23419  means.
23420  If that is not the case, please follow the web links provided in the following
23421  sections.
23422  There is a lot of good documentation out there covering old development
23423  history to the latest tools tips.
23424 \end_layout
23425
23426 \begin_layout Standard
23427 It is also assumed that you are familiar with \SpecialChar LyX
23428  itself to a point that you
23429  are comfortable changing your \SpecialChar LyX
23430  preferences, and X resources file.
23431  If that is not the case please refer to other \SpecialChar LyX
23432  documentation to cover your
23433  specific needs.
23434 \end_layout
23435
23436 \begin_layout Subsection
23437 Literate Programming
23438 \end_layout
23439
23440 \begin_layout Standard
23441 From the Literate Programming FAQ: 
23442 \end_layout
23443
23444 \begin_layout Quotation
23445 Literate programming is the combination of documentation and source together
23446  in a fashion suited for reading by human beings.
23447  In fact, literate programs should be enjoyable reading, even inviting!
23448  (Sorry Bob, I couldn't resist!) In general, literate programs combine source
23449  and documentation in a single file.
23450  Literate programming tools then parse the file to produce either readable
23451  documentation or compilable source.
23452  The WEB style of literate programming was created by D.
23453 \begin_inset space \thinspace{}
23454 \end_inset
23455
23456 E.
23457  Knuth during the development of his \SpecialChar TeX
23458  typesetting software.
23459  
23460 \end_layout
23461
23462 \begin_layout Standard
23463 Another excerpt says:
23464 \end_layout
23465
23466 \begin_layout Quotation
23467
23468 \emph on
23469 How is literate programming different from verbose commenting?
23470 \end_layout
23471
23472 \begin_layout Quotation
23473 There are three distinguishing characteristics.
23474  In order of importance, they are: 
23475 \end_layout
23476
23477 \begin_deeper
23478 \begin_layout Itemize
23479 flexible order of elaboration 
23480 \end_layout
23481
23482 \begin_layout Itemize
23483 automatic support for browsing 
23484 \end_layout
23485
23486 \begin_layout Itemize
23487 typeset documentation, especially diagrams and mathematics 
23488 \end_layout
23489
23490 \end_deeper
23491 \begin_layout Standard
23492 Now that I sparked your curiosity, take a look in the references.
23493 \end_layout
23494
23495 \begin_layout Subsubsection
23496 References
23497 \end_layout
23498
23499 \begin_layout Standard
23500 The complete Literate Programming FAQ can be found at:
23501 \end_layout
23502
23503 \begin_layout Quote
23504 Literate Programming FAQ 
23505 \begin_inset Flex URL
23506 status collapsed
23507
23508 \begin_layout Plain Layout
23509
23510 http://www.literateprogramming.com/lpfaq.pdf
23511 \end_layout
23512
23513 \end_inset
23514
23515
23516 \end_layout
23517
23518 \begin_layout Standard
23519 The FAQ lists 23 (twenty three!) different literate programming tools.
23520  Where some are specialized or 
23521 \begin_inset Quotes eld
23522 \end_inset
23523
23524 tailored
23525 \begin_inset Quotes erd
23526 \end_inset
23527
23528  for particular programming languages, while other have general scope.
23529  I selected 
23530 \noun on
23531 Noweb
23532 \noun default
23533  for my own use for several reasons:
23534 \end_layout
23535
23536 \begin_layout Itemize
23537 It can generate the documentation either in \SpecialChar LaTeX
23538  or HTML.
23539 \end_layout
23540
23541 \begin_layout Itemize
23542 It has a open architecture, i.
23543 \begin_inset space \thinspace{}
23544 \end_inset
23545
23546 e.
23547 \begin_inset space \space{}
23548 \end_inset
23549
23550 it is easy to plug in new filters and to perform special processing that
23551  you may need.
23552  
23553 \end_layout
23554
23555 \begin_layout Itemize
23556 There is a good selection of filters available already (the HTML is one
23557  of them).
23558 \end_layout
23559
23560 \begin_layout Itemize
23561 It is free.
23562 \end_layout
23563
23564 \begin_layout Standard
23565 The Noweb web page can be found at: 
23566 \end_layout
23567
23568 \begin_layout Quote
23569 Noweb home page 
23570 \begin_inset Flex URL
23571 status collapsed
23572
23573 \begin_layout Plain Layout
23574
23575 http://www.cs.virginia.edu/~nr/noweb/
23576 \end_layout
23577
23578 \end_inset
23579
23580
23581 \end_layout
23582
23583 \begin_layout Standard
23584 Starting from there you can reach many other interesting links and even
23585  some literate program examples.
23586 \end_layout
23587
23588 \begin_layout Subsection
23589 \SpecialChar LyX
23590  and Literate Programming with Noweb
23591 \end_layout
23592
23593 \begin_layout Standard
23594 The \SpecialChar LyX
23595  support for Literate Programming is provided by using the generic \SpecialChar LyX
23596
23597  converters mechanism.
23598  This support is provided in a 
23599 \begin_inset Quotes eld
23600 \end_inset
23601
23602 Noweb independent
23603 \begin_inset Quotes erd
23604 \end_inset
23605
23606  way, i.
23607 \begin_inset space \thinspace{}
23608 \end_inset
23609
23610 e.
23611 \begin_inset space \space{}
23612 \end_inset
23613
23614 you will be able to use this new \SpecialChar LyX
23615  feature with some other literate programming
23616  tool of your choice by just changing your \SpecialChar LyX
23617  preferences.
23618 \end_layout
23619
23620 \begin_layout Subsubsection
23621 Generating documents and code (weaving and tangling)
23622 \end_layout
23623
23624 \begin_layout Paragraph
23625 Using the noweb module
23626 \end_layout
23627
23628 \begin_layout Standard
23629 If you have installed Noweb and \SpecialChar LyX
23630  successfully, whenever you open a new document,
23631  after you have chosen its document class, use the Document->Settings menu
23632  to add the 
23633 \begin_inset Quotes eld
23634 \end_inset
23635
23636 noweb
23637 \begin_inset Quotes erd
23638 \end_inset
23639
23640  module.
23641  If Noweb is correctly installed, when you click on the 
23642 \begin_inset Quotes eld
23643 \end_inset
23644
23645 Modules
23646 \begin_inset Quotes erd
23647 \end_inset
23648
23649  link, you will see the 
23650 \begin_inset Quotes eld
23651 \end_inset
23652
23653 noweb
23654 \begin_inset Quotes erd
23655 \end_inset
23656
23657  module in the available list and you can add it to your document.
23658 \end_layout
23659
23660 \begin_layout Paragraph
23661 Typing code in
23662 \end_layout
23663
23664 \begin_layout Standard
23665 \SpecialChar LyX
23666  enables you to write code with a layout named 
23667 \begin_inset Flex Noun
23668 status collapsed
23669
23670 \begin_layout Plain Layout
23671 Chunk
23672 \end_layout
23673
23674 \end_inset
23675
23676 .
23677  Noweb delimits chunks like this:
23678 \end_layout
23679
23680 \begin_layout LyX-Code
23681 <<My code>>=
23682 \end_layout
23683
23684 \begin_layout LyX-Code
23685   code
23686 \end_layout
23687
23688 \begin_layout LyX-Code
23689   more code
23690 \end_layout
23691
23692 \begin_layout LyX-Code
23693   even more code
23694 \end_layout
23695
23696 \begin_layout LyX-Code
23697   @
23698 \end_layout
23699
23700 \begin_layout Standard
23701 The problem is that whatever is written in between the << and the 
23702 \family typewriter
23703 @
23704 \family default
23705  must be taken literally, i.
23706 \begin_inset space \thinspace{}
23707 \end_inset
23708
23709 e.
23710 \begin_inset space \space{}
23711 \end_inset
23712
23713 \SpecialChar LyX
23714  should be prevented from making any special interpretation of what has
23715  been written.
23716  This is also handled by 
23717 \begin_inset Flex Noun
23718 status collapsed
23719
23720 \begin_layout Plain Layout
23721 Chunk
23722 \end_layout
23723
23724 \end_inset
23725
23726 , that works like a normal paragraph but has a free spacing capability.
23727 \end_layout
23728
23729 \begin_layout Standard
23730 As a special note, you can also use the 
23731 \begin_inset Quotes eld
23732 \end_inset
23733
23734 %def
23735 \begin_inset Quotes erd
23736 \end_inset
23737
23738  construct of Noweb in your chunks to add items to Noweb's identifier cross-refe
23739 rence:
23740 \end_layout
23741
23742 \begin_layout LyX-Code
23743 <<My chunk>>=
23744 \end_layout
23745
23746 \begin_layout LyX-Code
23747 def some_function(args):
23748 \end_layout
23749
23750 \begin_layout LyX-Code
23751    "This is the doc string for this function."
23752 \end_layout
23753
23754 \begin_layout LyX-Code
23755    print "My args: ", args
23756 \end_layout
23757
23758 \begin_layout LyX-Code
23759 @ %def some_function
23760 \end_layout
23761
23762 \begin_layout Standard
23763 For an example of this usage and the resulting cross-reference output, look
23764  at the Literate python program in 
23765 \emph on
23766 LIBDIR/examples/listerrors.lyx
23767 \emph default
23768  which should make this all clear.
23769 \end_layout
23770
23771 \begin_layout Paragraph
23772 Generating the documentation
23773 \end_layout
23774
23775 \begin_layout Standard
23776 At this point you already have a new document file with a proper document
23777  class, and with some code and text on it.
23778  How do I print it? The answer is simple, you select 
23779 \family sans
23780 View\SpecialChar menuseparator
23781 DVI,
23782 \family default
23783  etc.
23784  Just like you would do for a plain document.
23785  No special procedure is required.
23786 \end_layout
23787
23788 \begin_layout Standard
23789 To help orientate you, I will now explain what happens inside \SpecialChar LyX
23790 :
23791 \end_layout
23792
23793 \begin_layout Enumerate
23794 When the 
23795 \family sans
23796 Update\SpecialChar menuseparator
23797 DVI
23798 \family default
23799  menu option is chosen, a \SpecialChar LaTeX
23800  file is generated.
23801  
23802 \end_layout
23803
23804 \begin_deeper
23805 \begin_layout Standard
23806 If the document is of any literate class the generated file will be named
23807  with an extension name defined by the 
23808 \begin_inset Quotes eld
23809 \end_inset
23810
23811 literate
23812 \begin_inset Quotes erd
23813 \end_inset
23814
23815  format (defined in the Preferences panel), otherwise the file will have
23816  the usual 
23817 \family typewriter
23818 .tex
23819 \family default
23820  extension.
23821 \end_layout
23822
23823 \end_deeper
23824 \begin_layout Enumerate
23825 Note that the only difference so far is in the name of the file, no special
23826  processing is required by \SpecialChar LyX
23827 .
23828  Given that you formatted the code using the 
23829 \begin_inset Flex Noun
23830 status collapsed
23831
23832 \begin_layout Plain Layout
23833 Chunk
23834 \end_layout
23835
23836 \end_inset
23837
23838  layout that, by itself, takes care of the business.
23839 \end_layout
23840
23841 \begin_layout Enumerate
23842 If the document is of any literate class \SpecialChar LyX
23843  will then use the internal \SpecialChar LyX
23844  to
23845  Noweb converter, followed by the Noweb to \SpecialChar LaTeX
23846  converter
23847 \begin_inset Foot
23848 status collapsed
23849
23850 \begin_layout Plain Layout
23851 The converters are defined in the 
23852 \family sans
23853 Tools\SpecialChar menuseparator
23854 Preferences
23855 \family default
23856  panel, under the 
23857 \begin_inset Quotes eld
23858 \end_inset
23859
23860 Conversion
23861 \begin_inset Quotes erd
23862 \end_inset
23863
23864  tab.
23865  See section 
23866 \emph on
23867 Converters
23868 \emph default
23869  of the 
23870 \emph on
23871 Customization
23872 \emph default
23873  manual for general information about converters.
23874 \end_layout
23875
23876 \end_inset
23877
23878  to generate the \SpecialChar LaTeX
23879  file.
23880 \end_layout
23881
23882 \begin_deeper
23883 \begin_layout Standard
23884 Otherwise it will just skip this step.
23885 \end_layout
23886
23887 \end_deeper
23888 \begin_layout Enumerate
23889 Finally, \SpecialChar LaTeX
23890  is invoked and the regular post processing continues as in a plain
23891  document.
23892 \end_layout
23893
23894 \begin_layout Standard
23895 Independence from a particular 
23896 \begin_inset Quotes eld
23897 \end_inset
23898
23899 literate tool
23900 \begin_inset Quotes erd
23901 \end_inset
23902
23903  is easily achieved by changing the commands that are run by the various
23904  converters.
23905 \end_layout
23906
23907 \begin_layout Paragraph
23908 Generating the code
23909 \end_layout
23910
23911 \begin_layout Standard
23912 When the build menu option is chosen or the corresponding button in the
23913  toolbar is pressed, a \SpecialChar LaTeX
23914  file is generated just like step 1 above.
23915  Next, \SpecialChar LyX
23916  invokes the 
23917 \family typewriter
23918 Noweb->Program
23919 \family default
23920  converter.
23921  This converter needs to be defined by the user and is not installed by
23922  default, though the Program format is.
23923  This converter (like any other converter) will have two parts:
23924 \end_layout
23925
23926 \begin_layout Enumerate
23927 The converter program itself.
23928  This program performs the conversion from the one format to the other (in
23929  this case, from the Noweb format to the Program pseudo-format).
23930 \end_layout
23931
23932 \begin_layout Enumerate
23933 The error log parser.
23934  This is a program whose sole purpose is to rewrite error messages in a
23935  format that \SpecialChar LyX
23936  understands.
23937  This makes it possible for \SpecialChar LyX
23938  to place error boxes in the right places in
23939  the file buffer.
23940 \end_layout
23941
23942 \begin_layout Standard
23943 The first part, the 
23944 \begin_inset Quotes eld
23945 \end_inset
23946
23947 Converter
23948 \begin_inset Quotes erd
23949 \end_inset
23950
23951  setting, should be set to
23952 \begin_inset Newline newline
23953 \end_inset
23954
23955
23956 \begin_inset Quotes eld
23957 \end_inset
23958
23959
23960 \family typewriter
23961 build-script $$i
23962 \family default
23963  $$r
23964 \begin_inset Quotes erd
23965 \end_inset
23966
23967 .
23968 \begin_inset Newline newline
23969 \end_inset
23970
23971 This basically means that \SpecialChar LyX
23972  will call 
23973 \begin_inset Quotes eld
23974 \end_inset
23975
23976 build-script
23977 \begin_inset Quotes erd
23978 \end_inset
23979
23980  (a program or script) with the name of the Noweb file (normally a file
23981  in the \SpecialChar LyX
23982  temp directory) and the directory path of the original \SpecialChar LyX
23983  file.
23984  
23985 \end_layout
23986
23987 \begin_layout Standard
23988 This is an implementation of 
23989 \begin_inset Quotes eld
23990 \end_inset
23991
23992 build-script
23993 \begin_inset Quotes erd
23994 \end_inset
23995
23996  that you can place in a directory on your path:
23997 \end_layout
23998
23999 \begin_layout Standard
24000 \begin_inset VSpace defskip
24001 \end_inset
24002
24003
24004 \end_layout
24005
24006 \begin_layout Standard
24007 \begin_inset Newpage pagebreak
24008 \end_inset
24009
24010
24011 \end_layout
24012
24013 \begin_layout Standard
24014
24015 \family sans
24016 #!/bin/sh
24017 \end_layout
24018
24019 \begin_layout Standard
24020
24021 \family sans
24022 #
24023 \end_layout
24024
24025 \begin_layout Standard
24026
24027 \family sans
24028 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
24029 \end_layout
24030
24031 \begin_layout Standard
24032 \begin_inset VSpace defskip
24033 \end_inset
24034
24035
24036 \end_layout
24037
24038 \begin_layout Standard
24039 The next part of the converter setting is the 
24040 \begin_inset Quotes eld
24041 \end_inset
24042
24043 Flags
24044 \begin_inset Quotes erd
24045 \end_inset
24046
24047  which is to be set to
24048 \begin_inset Newline newline
24049 \end_inset
24050
24051
24052 \begin_inset Quotes eld
24053 \end_inset
24054
24055
24056 \family typewriter
24057 parselog=$$s/scripts/listerrors
24058 \family default
24059
24060 \begin_inset Quotes erd
24061 \end_inset
24062
24063 .
24064 \begin_inset Newline newline
24065 \end_inset
24066
24067 This will run any errors that are generated by the 
24068 \begin_inset Quotes eld
24069 \end_inset
24070
24071 build-script
24072 \begin_inset Quotes erd
24073 \end_inset
24074
24075  process through the 
24076 \begin_inset Quotes eld
24077 \end_inset
24078
24079 listerrors
24080 \begin_inset Quotes erd
24081 \end_inset
24082
24083  program.
24084 \end_layout
24085
24086 \begin_layout Standard
24087 The build will normally take place in \SpecialChar LyX
24088 's temporary directory, so the files
24089  produced by the conversion will be in that directory.
24090  \SpecialChar LyX
24091  will copy out what it regards as the `main' file, but the 
24092 \family typewriter
24093 Noweb->Program
24094 \family default
24095  conversion may produce several files, and so most of these would then be
24096  deleted when \SpecialChar LyX
24097  was closed.
24098  This is why we pass in the NOWEB_OUTPUT_DIR environment variable so that
24099  the build-script chunk can place the generated files in that location.
24100 \end_layout
24101
24102 \begin_layout Paragraph
24103 Build instructions in the document
24104 \end_layout
24105
24106 \begin_layout Standard
24107 The last piece of the integration between \SpecialChar LyX
24108  and noweb is the 
24109 \begin_inset Quotes eld
24110 \end_inset
24111
24112 build-script
24113 \begin_inset Quotes erd
24114 \end_inset
24115
24116  chunk.
24117  Generally, the instructions for building your program should be embedded
24118  in a chunk of its own.
24119  The noweb-specific 
24120 \begin_inset Quotes eld
24121 \end_inset
24122
24123 build-script
24124 \begin_inset Quotes erd
24125 \end_inset
24126
24127  above uses the notangle command to look for this chunk (called 
24128 \begin_inset Quotes eld
24129 \end_inset
24130
24131 build-script
24132 \begin_inset Quotes erd
24133 \end_inset
24134
24135 ) and runs its contents through 
24136 \begin_inset Quotes eld
24137 \end_inset
24138
24139 sh
24140 \begin_inset Quotes erd
24141 \end_inset
24142
24143 .
24144 \end_layout
24145
24146 \begin_layout Standard
24147 Typically, such a chunk would look something like this:
24148 \end_layout
24149
24150 \begin_layout LyX-Code
24151 <<build-script>>=
24152 \end_layout
24153
24154 \begin_layout LyX-Code
24155 #!/bin/sh
24156 \begin_inset Newline newline
24157 \end_inset
24158
24159 if [ -z "${NOWEB_SOURCE}" ]
24160 \begin_inset Newline newline
24161 \end_inset
24162
24163 then
24164 \end_layout
24165
24166 \begin_layout LyX-Code
24167 NOWEB_SOURCE=myfile.nw
24168 \begin_inset Newline newline
24169 \end_inset
24170
24171 fi
24172 \begin_inset Newline newline
24173 \end_inset
24174
24175 [...
24176  code to extract files ...
24177  use NOWEB_OUTPUT_DIR here ...]
24178 \begin_inset Newline newline
24179 \end_inset
24180
24181 [...
24182  code to compile files ...]
24183 \begin_inset Newline newline
24184 \end_inset
24185
24186 @
24187 \end_layout
24188
24189 \begin_layout Standard
24190 Look in 
24191 \emph on
24192 LIBDIR/examples/listerrors.lyx
24193 \emph default
24194  or in 
24195 \emph on
24196 LIBDIR/examples/Literate.lyx
24197 \emph default
24198  which implement two versions of the 
24199 \begin_inset Quotes eld
24200 \end_inset
24201
24202 listerrors
24203 \begin_inset Quotes erd
24204 \end_inset
24205
24206  program for some illustrations of how all of these pieces go together or
24207  in 
24208 \emph on
24209 LIBDIR/examples/noweb2lyx.lyx.
24210
24211 \emph default
24212  Interestingly, these three files show off the language-indepence of the
24213  \SpecialChar LyX
24214  literate programming support since they are written in Python, C and Perl
24215  respectively.
24216 \end_layout
24217
24218 \begin_layout Subsubsection
24219 Configuring \SpecialChar LyX
24220
24221 \end_layout
24222
24223 \begin_layout Standard
24224 All the Literate Programming support is configured by the 
24225 \family sans
24226 Tools\SpecialChar menuseparator
24227 Preferences
24228 \family default
24229  panel in the 
24230 \begin_inset Quotes eld
24231 \end_inset
24232
24233 File Handling
24234 \begin_inset Quotes erd
24235 \end_inset
24236
24237  tab.
24238  The important parts are:
24239 \end_layout
24240
24241 \begin_layout Description
24242 the
24243 \begin_inset space ~
24244 \end_inset
24245
24246
24247 \begin_inset Quotes eld
24248 \end_inset
24249
24250 NoWeb
24251 \begin_inset Quotes erd
24252 \end_inset
24253
24254
24255 \begin_inset space ~
24256 \end_inset
24257
24258 format Set up via the File Formats tab, this is where the Noweb-specific
24259  pieces are set up.
24260  The 
24261 \family sans
24262 GUI Name
24263 \family default
24264  is set to 
24265 \family typewriter
24266 NoWeb
24267 \family default
24268 , the file extension is set to 
24269 \family typewriter
24270 .nw
24271 \family default
24272 .
24273  This tells \SpecialChar LyX
24274  to create a file with a 
24275 \family typewriter
24276 .nw
24277 \family default
24278  extension in the first step of the conversion process.
24279 \end_layout
24280
24281 \begin_layout Description
24282 the
24283 \begin_inset space ~
24284 \end_inset
24285
24286
24287 \family sans
24288 Program
24289 \family default
24290
24291 \begin_inset space ~
24292 \end_inset
24293
24294 format This is an empty format whose sole purpose is to be the endpoint
24295  of a conversion (which then allows us to set up a converter for it).
24296 \end_layout
24297
24298 \begin_layout Description
24299
24300 \family sans
24301 NoWeb
24302 \family default
24303 ->
24304 \family sans
24305 \SpecialChar LaTeX
24306
24307 \family default
24308  This converter performs the 
24309 \begin_inset Quotes eld
24310 \end_inset
24311
24312 weaving
24313 \begin_inset Quotes erd
24314 \end_inset
24315
24316  of the literate document.
24317  For Noweb, it is set to 
24318 \begin_inset Quotes eld
24319 \end_inset
24320
24321
24322 \family typewriter
24323 noweave -delay -index $$i > $$o
24324 \family default
24325
24326 \begin_inset Quotes erd
24327 \end_inset
24328
24329
24330 \end_layout
24331
24332 \begin_layout Description
24333
24334 \family sans
24335 NoWeb
24336 \family default
24337 ->
24338 \family sans
24339 Program
24340 \family default
24341  This performs the 
24342 \begin_inset Quotes eld
24343 \end_inset
24344
24345 tangling step
24346 \begin_inset Quotes erd
24347 \end_inset
24348
24349 .
24350  As stated above, the Converter is set to 
24351 \begin_inset Quotes eld
24352 \end_inset
24353
24354
24355 \family typewriter
24356 build-script $$i
24357 \family default
24358  $$r
24359 \begin_inset Quotes erd
24360 \end_inset
24361
24362 , with Flags set to
24363 \begin_inset Newline newline
24364 \end_inset
24365
24366
24367 \begin_inset Quotes eld
24368 \end_inset
24369
24370
24371 \family typewriter
24372 parselog=$$s/scripts/listerrors
24373 \family default
24374
24375 \begin_inset Quotes erd
24376 \end_inset
24377
24378 .
24379 \end_layout
24380
24381 \begin_layout Subsubsection
24382 Debug extensions
24383 \end_layout
24384
24385 \begin_layout Standard
24386 There is also a new function implemented in the \SpecialChar LyX
24387  server, the 
24388 \begin_inset Quotes eld
24389 \end_inset
24390
24391 server-goto-file-row" function, to be used with ddd/gdb or other debugger.
24392  
24393 \end_layout
24394
24395 \begin_layout Standard
24396 When debugging code with ddd/gdb, it is possible to invoke a text editor
24397  at the current execution position with a single key stroke.
24398  The default ddd configuration for that is shift-ctrl-V.
24399  It happens that you can define the editor command line invocation in ddd
24400  by accessing the 
24401 \family sans
24402 Edit\SpecialChar menuseparator
24403 Preferences\SpecialChar menuseparator
24404 Helpers
24405 \family default
24406  dialog and changing the "Edit Sources" entry.
24407 \end_layout
24408
24409 \begin_layout Standard
24410 I take advantage of the newly created \SpecialChar LyX
24411  server function and this ddd feature,
24412  and set 
24413 \begin_inset Quotes eld
24414 \end_inset
24415
24416 Edit Sources
24417 \begin_inset Quotes erd
24418 \end_inset
24419
24420  to:
24421 \end_layout
24422
24423 \begin_layout Standard
24424 \begin_inset VSpace defskip
24425 \end_inset
24426
24427
24428 \end_layout
24429
24430 \begin_layout Standard
24431
24432 \family sans
24433 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
24434 \end_layout
24435
24436 \begin_layout Standard
24437 \begin_inset VSpace defskip
24438 \end_inset
24439
24440
24441 \end_layout
24442
24443 \begin_layout Standard
24444 With this, whenever you are using ddd and find a point in the program that
24445  you want to edit, you just press shift-ctrl-V (in the ddd window), and
24446  ddd will forward this information to \SpecialChar LyX
24447  through the \SpecialChar LyX
24448  server and then the
24449  \SpecialChar LyX
24450  window will show the same file with the cursor at the same position ddd
24451  was pointing to.
24452  No more guessing or long scrolling to locate a point in the program back
24453  from debugging !
24454 \end_layout
24455
24456 \begin_layout Standard
24457 Note however that you must enable the \SpecialChar LyX
24458  server to get this feature working
24459  (it is disabled by default).
24460  You can enable it in 
24461 \family sans
24462 Preferences
24463 \family default
24464  (tabs 
24465 \family sans
24466 Inputs
24467 \family default
24468
24469 \family sans
24470 Paths
24471 \family default
24472 ) by entering in the 
24473 \family sans
24474 \SpecialChar LyX
24475 server pipe
24476 \family default
24477  a path like 
24478 \begin_inset Quotes eld
24479 \end_inset
24480
24481
24482 \family typewriter
24483 /home/<your-home-directory>/.lyx/lyxpipe
24484 \family default
24485
24486 \begin_inset Quotes erd
24487 \end_inset
24488
24489
24490 \end_layout
24491
24492 \begin_layout Standard
24493 Read the \SpecialChar LyX
24494  server documentation in the 
24495 \emph on
24496 Customization Manual
24497 \emph default
24498  for further information.
24499 \end_layout
24500
24501 \begin_layout Subsubsection
24502 Toolbar extensions
24503 \end_layout
24504
24505 \begin_layout Standard
24506 There are six new buttons that can be added to your \SpecialChar LyX
24507  toolbar.
24508  Five of these buttons are short cuts to layout styles: 
24509 \family sans
24510 Standard
24511 \family default
24512
24513 \family sans
24514 Section
24515 \family default
24516
24517 \family sans
24518 \SpecialChar LaTeX
24519
24520 \family default
24521
24522 \family sans
24523 \SpecialChar LyX
24524 -Code
24525 \family default
24526 , and 
24527 \family sans
24528 Chunk
24529 \family default
24530 .
24531  The last one is a short cut to the 
24532 \begin_inset Quotes eld
24533 \end_inset
24534
24535 Build Program
24536 \begin_inset Quotes erd
24537 \end_inset
24538
24539  File menu entry.
24540  
24541 \end_layout
24542
24543 \begin_layout Standard
24544 \SpecialChar LyX
24545  has a range of buttons that are available for tool bar customization.
24546  In my toolbar I like to combine the six short cuts above with two more:
24547  One for 
24548 \family sans
24549 Document
24550 \family default
24551 \SpecialChar menuseparator
24552
24553 \family sans
24554 Update
24555 \family default
24556 \SpecialChar menuseparator
24557
24558 \family sans
24559 DVI
24560 \family default
24561  and the other for 
24562 \family sans
24563 Document\SpecialChar menuseparator
24564 View\SpecialChar menuseparator
24565 DVI
24566 \family default
24567  File menu entries.
24568  Here is how it looks like:
24569 \end_layout
24570
24571 \begin_layout LyX-Code
24572 Toolbar
24573 \end_layout
24574
24575 \begin_layout LyX-Code
24576   Layouts
24577 \end_layout
24578
24579 \begin_layout LyX-Code
24580   Icon "layout Standard"
24581 \end_layout
24582
24583 \begin_layout LyX-Code
24584   Icon "layout Section"
24585 \end_layout
24586
24587 \begin_layout LyX-Code
24588   Icon "layout \SpecialChar LaTeX
24589 "
24590 \end_layout
24591
24592 \begin_layout LyX-Code
24593   Icon "layout \SpecialChar LyX
24594 -Code"
24595 \end_layout
24596
24597 \begin_layout LyX-Code
24598   Icon "layout Chunk"
24599 \end_layout
24600
24601 \begin_layout LyX-Code
24602   Separator
24603 \end_layout
24604
24605 \begin_layout LyX-Code
24606   Icon "buffer-view"
24607 \end_layout
24608
24609 \begin_layout LyX-Code
24610   Icon "buffer-typeset"
24611 \end_layout
24612
24613 \begin_layout LyX-Code
24614   Icon "build-program"
24615 \end_layout
24616
24617 \begin_layout LyX-Code
24618   Separator
24619 \end_layout
24620
24621 \begin_layout LyX-Code
24622 .
24623 \end_layout
24624
24625 \begin_layout LyX-Code
24626 .
24627 \end_layout
24628
24629 \begin_layout LyX-Code
24630 .
24631 \end_layout
24632
24633 \begin_layout LyX-Code
24634 End
24635 \end_layout
24636
24637 \begin_layout Subsubsection
24638 Colors customization
24639 \end_layout
24640
24641 \begin_layout Standard
24642 There are a number of colors in \SpecialChar LyX
24643  that can be customized in 
24644 \family sans
24645 Preferences
24646 \family default
24647 .
24648  One of the things that bothers people is the \SpecialChar LaTeX
24649  font color.
24650  The default color is red, since the chunks uses \SpecialChar LaTeX
24651  font, and there is a lot
24652  of chunks in literate documents, you may get tired of seeing everything
24653  in red.
24654  You can change it by going to the tabs 
24655 \family sans
24656 Look&Feel
24657 \family default
24658
24659 \family sans
24660 Colors.
24661 \end_layout
24662
24663 \begin_layout Standard
24664 The next thing is the visible presence of the newline character in the screen.
24665  You can choose the color of this particular character and make it blend
24666  in the background.
24667  I recommend you choosing a color that is close to the background but not
24668  equal, that way you still can see it is there, but it is not bothering
24669  you anymore.
24670 \end_layout
24671
24672 \begin_layout Subsection
24673 \SpecialChar LyX
24674  and knitr/Sweave
24675 \end_layout
24676
24677 \begin_layout Standard
24678 Support for 
24679 \family sans
24680 knitr
24681 \family default
24682  and 
24683 \family sans
24684 Sweave
24685 \family default
24686  is documented in the 
24687 \emph on
24688 knitr.lyx
24689 \emph default
24690  example file and in the Sweave manual (menu 
24691 \family sans
24692 Help\SpecialChar menuseparator
24693 Specific Manuals
24694 \family default
24695 ).
24696 \end_layout
24697
24698 \begin_layout Chapter
24699 Special features
24700 \end_layout
24701
24702 \begin_layout Standard
24703 You can do everything with \SpecialChar LyX
24704  that you can do with \SpecialChar LaTeX
24705 .
24706  However, \SpecialChar LyX
24707  cannot support every \SpecialChar LaTeX
24708  feature directly.
24709  But you can always use \SpecialChar TeX
24710  Code.
24711  This chapter shows you some more special things you might want to use.
24712  For other special things you can do with figures, tables, floats, boxes
24713  and notes, have a look at the 
24714 \emph on
24715 Embedded
24716 \begin_inset space ~
24717 \end_inset
24718
24719 Objects
24720 \emph default
24721  manual.
24722 \end_layout
24723
24724 \begin_layout Section
24725 Multiple Text Columns
24726 \end_layout
24727
24728 \begin_layout Standard
24729 This feature is independent of the option 
24730 \family sans
24731 Two-column document
24732 \family default
24733  in the document settings under 
24734 \family sans
24735 Text Layout
24736 \family default
24737 .
24738  If you want to have 2
24739 \begin_inset space ~
24740 \end_inset
24741
24742 columns for the whole document, it is recommended to use the 
24743 \family sans
24744 Two-column document
24745 \family default
24746  option.
24747  For all other cases use this feature.
24748 \end_layout
24749
24750 \begin_layout Standard
24751 To use multiple text columns in your document, you have to load the module
24752  
24753 \family sans
24754 Multiple Columns
24755 \family default
24756  (menu 
24757 \family sans
24758 Document\SpecialChar menuseparator
24759 Settings\SpecialChar menuseparator
24760 Modules
24761 \family default
24762 ) and must have the \SpecialChar LaTeX
24763 -package 
24764 \series bold
24765 multicol
24766 \series default
24767  installed.
24768 \end_layout
24769
24770 \begin_layout Standard
24771 Footnotes within multiple columns will be placed at the bottom of the page
24772  and not under each column.
24773  Within the different columns you can use everything, with the limitation
24774  that for floats you need to use the float option 
24775 \family sans
24776 Span columns
24777 \family default
24778 .
24779 \end_layout
24780
24781 \begin_layout Subsection
24782 Basics
24783 \end_layout
24784
24785 \begin_layout Standard
24786 If you want to have 2
24787 \begin_inset space ~
24788 \end_inset
24789
24790 columns in your text, insert a multicolumn inset via the menu 
24791 \family sans
24792 Insert\SpecialChar menuseparator
24793 Custom
24794 \begin_inset space ~
24795 \end_inset
24796
24797 Insets\SpecialChar menuseparator
24798 Multiple
24799 \begin_inset space ~
24800 \end_inset
24801
24802 Columns
24803 \family default
24804  where the columns should start.
24805  Write all text that should be printed in 2
24806 \begin_inset space ~
24807 \end_inset
24808
24809 columns into this inset.
24810 \end_layout
24811
24812 \begin_layout Standard
24813 Here is an example:
24814 \end_layout
24815
24816 \begin_layout Standard
24817 \noindent
24818 \begin_inset Flex Multiple Columns
24819 status open
24820
24821 \begin_layout Plain Layout
24822 \noindent
24823
24824 \series bold
24825 \size small
24826 The Adventure of the Empty House
24827 \series default
24828
24829 \begin_inset Newline newline
24830 \end_inset
24831
24832 by Sir Arthur Conan Doyle
24833 \end_layout
24834
24835 \begin_layout Plain Layout
24836
24837 \size small
24838 It was in the spring of the year 1894 that all London was interested, and
24839  the fashionable world dismayed, by the murder of the Honourable Ronald
24840  Adair under most unusual and inexplicable circumstances.
24841  The public has already learned those particulars of the crime which came
24842  out in the police investigation, but a good deal was suppressed upon that
24843  occasion, since the case for the prosecution was so overwhelmingly strong
24844  that it was not necessary to bring forward all the facts.
24845  Only now, at the end of nearly ten years, am I allowed to supply those
24846  missing links which make up the whole of that remarkable chain.
24847  The crime was of interest in itself, but that interest was as nothing to
24848  me compared to the inconceivable sequel, which afforded me the greatest
24849  shock and surprise of any event in my adventurous life.
24850  Even now, after this long interval, I find myself thrilling as I think
24851  of it, and feeling once more that sudden flood of joy, amazement, and increduli
24852 ty which utterly submerged my mind.
24853  Let me say to that public, which has shown some interest in those glimpses
24854  which I have occasionally given them of the thoughts and actions of a very
24855  remarkable man, that they are not to blame me if I have not shared my knowledge
24856  with them, for I should have considered it my first duty to do so, had
24857  I not been barred by a positive prohibition from his own lips, which was
24858  only withdrawn upon the third of last month.
24859 \end_layout
24860
24861 \end_inset
24862
24863
24864 \end_layout
24865
24866 \begin_layout Standard
24867 To get 3 or more columns, set the cursor into the multicolumn inset and
24868  use the menu 
24869 \family sans
24870 Insert\SpecialChar menuseparator
24871 Number
24872 \begin_inset space ~
24873 \end_inset
24874
24875 of
24876 \begin_inset space ~
24877 \end_inset
24878
24879 Columns
24880 \family default
24881 .
24882  The number of the desired columns is written into that inset (for 3
24883 \begin_inset space ~
24884 \end_inset
24885
24886 columns write 
24887 \begin_inset Quotes eld
24888 \end_inset
24889
24890 3
24891 \begin_inset Quotes erd
24892 \end_inset
24893
24894 ).
24895 \begin_inset Newline newline
24896 \end_inset
24897
24898 Here is an example with 3
24899 \begin_inset space ~
24900 \end_inset
24901
24902 columns:
24903 \end_layout
24904
24905 \begin_layout Standard
24906 \begin_inset Flex Multiple Columns
24907 status open
24908
24909 \begin_layout Plain Layout
24910
24911 \size footnotesize
24912 \begin_inset Argument 1
24913 status open
24914
24915 \begin_layout Plain Layout
24916 3
24917 \end_layout
24918
24919 \end_inset
24920
24921 It can be imagined that my close intimacy with Sherlock Holmes had interested
24922  me deeply in crime, and that after his disappearance I never failed to
24923  read with care the various problems which came before the public.
24924  And I even attempted, more than once, for my own private satisfaction,
24925  to employ his methods in their solution, though with indifferent success.
24926  There was none, however, which appealed to me like this tragedy of Ronald
24927  Adair.
24928  As I read the evidence at the inquest, which led up to a verdict of willful
24929  murder against some person or persons unknown, I realized more clearly
24930  than I had ever done the loss which the community had sustained by the
24931  death of Sherlock Holmes.
24932  There were points about this strange business which would, I was sure,
24933  have specially appealed to him, and the efforts of the police would have
24934  been supplemented, or more probably anticipated, by the trained observation
24935  and the alert mind of the first criminal agent in Europe.
24936  All day, as I drove upon my round, I turned over the case in my mind and
24937  found no explanation which appeared to me to be adequate.
24938  At the risk of telling a twice-told tale, I will recapitulate the facts
24939  as they were known to the public at the conclusion of the inquest.
24940 \end_layout
24941
24942 \end_inset
24943
24944
24945 \end_layout
24946
24947 \begin_layout Standard
24948 You can have up to 10
24949 \begin_inset space ~
24950 \end_inset
24951
24952 columns if you want to, but that might not be very pleasant for the readers
24953  of your document.
24954 \end_layout
24955
24956 \begin_layout Standard
24957 \begin_inset Newpage newpage
24958 \end_inset
24959
24960
24961 \end_layout
24962
24963 \begin_layout Subsection
24964 Columns inside Columns
24965 \end_layout
24966
24967 \begin_layout Standard
24968 You can also have columns inside columns:
24969 \end_layout
24970
24971 \begin_layout Standard
24972 \begin_inset Flex Multiple Columns
24973 status open
24974
24975 \begin_layout Plain Layout
24976
24977 \size footnotesize
24978 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
24979  at that time governor of one of the Australian colonies.
24980  Adair's mother had returned from Australia to undergo the operation for
24981  cataract, and she, her son Ronald, and her daughter Hilda were living together
24982  at 427 Park Lane.
24983 \end_layout
24984
24985 \begin_layout Plain Layout
24986 \begin_inset Flex Multiple Columns
24987 status open
24988
24989 \begin_layout Plain Layout
24990
24991 \size footnotesize
24992 The youth moved in the best society–had, so far as was known, no enemies
24993  and no particular vices.
24994  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
24995  had been broken off by mutual consent some months before, and there was
24996  no sign that it had left any very profound feeling behind it.
24997  For the rest {sic} the man's life moved in a narrow and conventional circle,
24998  for his habits were quiet and his nature unemotional.
24999  Yet it was upon this easy-going young aristocrat that death came, in most
25000  strange and unexpected form, between the hours of ten and eleven-twenty
25001  on the night of March 30, 1894.
25002 \end_layout
25003
25004 \end_inset
25005
25006
25007 \end_layout
25008
25009 \begin_layout Plain Layout
25010
25011 \size footnotesize
25012 Ronald Adair was fond of cards–playing continually, but never for such stakes
25013  as would hurt him.
25014  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
25015  It was shown that, after dinner on the day of his death, he had played
25016  a rubber of whist at the latter club.
25017  He had also played there in the afternoon.
25018
25019 \size default
25020  
25021 \size footnotesize
25022 The evidence of those who had played with him– Mr.
25023  Murray, Sir John Hardy, and Colonel Moran–showed that the game was whist,
25024  and that there was a fairly equal fall of the cards.
25025  Adair might have lost five pounds, but not more.
25026  His fortune was a considerable one, and such a loss could not in any way
25027  affect him.
25028  He had played nearly every day at one club or other, but he was a cautious
25029  player, and usually rose a winner.
25030  It came out in evidence that, in partnership with Colonel Moran, he had
25031  actually won as much as four hundred and twenty pounds in a sitting, some
25032  weeks before, from Godfrey Milner and Lord Balmoral.
25033  So much for his recent history as it came out at the inquest.
25034 \end_layout
25035
25036 \end_inset
25037
25038
25039 \end_layout
25040
25041 \begin_layout Subsection
25042 Advanced Examples
25043 \end_layout
25044
25045 \begin_layout Standard
25046 The examples in this section show some more special features of multiple
25047  columns.
25048 \end_layout
25049
25050 \begin_layout Standard
25051 For more features of multiple columns, have a look at the documentation
25052  of the \SpecialChar LaTeX
25053 -package 
25054 \series bold
25055 multicol
25056 \series default
25057
25058 \begin_inset CommandInset citation
25059 LatexCommand cite
25060 key "multicol"
25061
25062 \end_inset
25063
25064 .
25065 \end_layout
25066
25067 \begin_layout Subsubsection
25068 Preface
25069 \end_layout
25070
25071 \begin_layout Standard
25072 To add a preface text for multiple columns, set the cursor into the multicolumn
25073  inset and use the menu 
25074 \family sans
25075 Insert\SpecialChar menuseparator
25076 Preface
25077 \family default
25078 .
25079  Write your preface text into that inset.
25080 \begin_inset Newline newline
25081 \end_inset
25082
25083 This is an example with some preface text:
25084 \end_layout
25085
25086 \begin_layout Standard
25087 \begin_inset VSpace bigskip
25088 \end_inset
25089
25090
25091 \end_layout
25092
25093 \begin_layout Standard
25094 \begin_inset Flex Multiple Columns
25095 status open
25096
25097 \begin_layout Plain Layout
25098 \begin_inset Argument 2
25099 status open
25100
25101 \begin_layout Plain Layout
25102 And the story continues and continues and continues and continues\SpecialChar ldots
25103
25104 \end_layout
25105
25106 \end_inset
25107
25108
25109 \size small
25110 On the evening of the crime, he returned from the club exactly at ten.
25111  His mother and sister were out spending the evening with a relation.
25112  The servant deposed that she heard him enter the front room on the second
25113  floor, generally used as his sitting-room.
25114  She had lit a fire there, and as it smoked she had opened the window.
25115  No sound was heard from the room until eleven-twenty, the hour of the return
25116  of Lady Maynooth and her daughter.
25117  Desiring to say good-night, she attempted to enter her son's room.
25118  The door was locked on the inside, and no answer could be got to their
25119  cries and knocking.
25120  Help was obtained, and the door forced.
25121  The unfortunate young man was found lying near the table.
25122  His head had been horribly mutilated by an expanding revolver bullet, but
25123  no weapon of any sort was to be found in the room.
25124 \end_layout
25125
25126 \end_inset
25127
25128
25129 \end_layout
25130
25131 \begin_layout Standard
25132 You can also use a section heading as the preface if you use a section command
25133  as \SpecialChar TeX
25134  Code.
25135  For example the command
25136 \end_layout
25137
25138 \begin_layout Standard
25139
25140 \series bold
25141
25142 \backslash
25143 subsection{subsection title}
25144 \end_layout
25145
25146 \begin_layout Standard
25147 creates a subsection.
25148  In this example the preface is a subsubsection:
25149 \end_layout
25150
25151 \begin_layout Standard
25152 \begin_inset Flex Multiple Columns
25153 status open
25154
25155 \begin_layout Plain Layout
25156 \begin_inset Argument 2
25157 status open
25158
25159 \begin_layout Plain Layout
25160 \begin_inset ERT
25161 status collapsed
25162
25163 \begin_layout Plain Layout
25164
25165
25166 \backslash
25167 subsubsection{
25168 \end_layout
25169
25170 \end_inset
25171
25172 This is a subsubsection heading as a preface
25173 \begin_inset ERT
25174 status collapsed
25175
25176 \begin_layout Plain Layout
25177
25178 }
25179 \end_layout
25180
25181 \end_inset
25182
25183
25184 \end_layout
25185
25186 \end_inset
25187
25188
25189 \size small
25190 A minute examination of the circumstances served only to make the case more
25191  complex.
25192  In the first place, no reason could be given why the young man should have
25193  fastened the door upon the inside.
25194  There was the possibility that the murderer had done this, and had afterwards
25195  escaped by the window.
25196  The drop was at least twenty feet, however, and a bed of crocuses in full
25197  bloom lay beneath.
25198  Neither the flowers nor the earth showed any sign of having been disturbed,
25199  nor were there any marks upon the narrow strip of grass which separated
25200  the house from the road.
25201  Apparently, therefore, it was the young man himself who had fastened the
25202  door.
25203  But how did he come by his death? No one could have climbed up to the window
25204  without leaving traces.
25205  Suppose a man had fired through the window, he would indeed be a remarkable
25206  shot who could with a revolver inflict so deadly a wound.
25207  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
25208  a hundred yards of the house.
25209  No one had heard a shot.
25210 \end_layout
25211
25212 \end_inset
25213
25214
25215 \end_layout
25216
25217 \begin_layout Standard
25218 If there is less vertical space than 6
25219 \begin_inset space ~
25220 \end_inset
25221
25222 text lines is left on the page at the beginning of the multiple columns,
25223  a page break will be inserted before the multiple columns.
25224  Depending on the number of lines of the preface text, you might want to
25225  change this space.
25226  This is done by setting the cursor into the mulitcolumn inset behind the
25227  preface (if there is any) and using the menu 
25228 \family sans
25229 Insert\SpecialChar menuseparator
25230 Space
25231 \begin_inset space ~
25232 \end_inset
25233
25234 Before
25235 \begin_inset space ~
25236 \end_inset
25237
25238 Page
25239 \begin_inset space ~
25240 \end_inset
25241
25242 Break
25243 \family default
25244 .
25245  Insert into that inset the amount of space like e.
25246 \begin_inset space \thinspace{}
25247 \end_inset
25248
25249 g.
25250 \begin_inset space \space{}
25251 \end_inset
25252
25253
25254 \begin_inset Quotes eld
25255 \end_inset
25256
25257 5cm
25258 \begin_inset Quotes erd
25259 \end_inset
25260
25261 .
25262 \begin_inset Newline newline
25263 \end_inset
25264
25265 In this example the space is set to 7
25266 \begin_inset space ~
25267 \end_inset
25268
25269 text lines by using 
25270 \begin_inset Quotes eld
25271 \end_inset
25272
25273 7
25274 \backslash
25275 baselineskip
25276 \begin_inset Quotes erd
25277 \end_inset
25278
25279  (where the command 
25280 \series bold
25281
25282 \backslash
25283 baselineskip
25284 \series default
25285  needs to be inserted as \SpecialChar TeX
25286  code):
25287 \end_layout
25288
25289 \begin_layout Standard
25290 \begin_inset Flex Multiple Columns
25291 status open
25292
25293 \begin_layout Plain Layout
25294 \begin_inset Argument 3
25295 status open
25296
25297 \begin_layout Plain Layout
25298 7
25299 \begin_inset ERT
25300 status collapsed
25301
25302 \begin_layout Plain Layout
25303
25304
25305 \backslash
25306 baselineskip
25307 \end_layout
25308
25309 \end_inset
25310
25311
25312 \end_layout
25313
25314 \end_inset
25315
25316
25317 \size small
25318 On the evening of the crime, he returned from the club exactly at ten.
25319  His mother and sister were out spending the evening with a relation.
25320  The servant deposed that she heard him enter the front room on the second
25321  floor, generally used as his sitting-room.
25322  She had lit a fire there, and as it smoked she had opened the window.
25323  No sound was heard from the room until eleven-twenty, the hour of the return
25324  of Lady Maynooth and her daughter.
25325  Desiring to say good-night, she attempted to enter her son's room.
25326  The door was locked on the inside, and no answer could be got to their
25327  cries and knocking.
25328  Help was obtained, and the door forced.
25329  The unfortunate young man was found lying near the table.
25330  His head had been horribly mutilated by an expanding revolver bullet, but
25331  no weapon of any sort was to be found in the room.
25332 \end_layout
25333
25334 \end_inset
25335
25336
25337 \end_layout
25338
25339 \begin_layout Subsubsection
25340 Surrounding Space
25341 \end_layout
25342
25343 \begin_layout Standard
25344 The amount of space before and after multiple columns can be changed by
25345  changing the length 
25346 \series bold
25347
25348 \backslash
25349 multicolsep
25350 \series default
25351 .
25352  For example the command
25353 \end_layout
25354
25355 \begin_layout Standard
25356
25357 \series bold
25358
25359 \backslash
25360 setlength{
25361 \backslash
25362 multicolsep}{3cm}
25363 \end_layout
25364
25365 \begin_layout Standard
25366 in \SpecialChar TeX
25367  Code changes its value to 3
25368 \begin_inset space \thinspace{}
25369 \end_inset
25370
25371 cm.
25372  The change must be made before the multiple columns' start.
25373  The predefined value is 13
25374 \begin_inset space \thinspace{}
25375 \end_inset
25376
25377 pt.
25378 \end_layout
25379
25380 \begin_layout Standard
25381 For this example 
25382 \series bold
25383
25384 \backslash
25385 multicolsep
25386 \series default
25387  was set to 2.5
25388 \begin_inset space \thinspace{}
25389 \end_inset
25390
25391 cm:
25392 \end_layout
25393
25394 \begin_layout Standard
25395 \begin_inset ERT
25396 status open
25397
25398 \begin_layout Plain Layout
25399
25400
25401 \backslash
25402 setlength{
25403 \backslash
25404 multicolsep}{2.5cm}
25405 \end_layout
25406
25407 \end_inset
25408
25409
25410 \end_layout
25411
25412 \begin_layout Standard
25413 \begin_inset Flex Multiple Columns
25414 status open
25415
25416 \begin_layout Plain Layout
25417
25418 \size small
25419 All day I turned these facts over in my mind, endeavouring to hit upon some
25420  theory which could reconcile them all, and to find that line of least resistanc
25421 e which my poor friend had declared to be the starting-point of every investigat
25422 ion.
25423  I confess that I made little progress.
25424  In the evening I strolled across the Park, and found myself about six o'clock
25425  at the Oxford Street end of Park Lane.
25426  A group of loafers upon the pavements, all staring up at a particular window,
25427  directed me to the house which I had come to see.
25428  A tall, thin man with coloured glasses, whom I strongly suspected of being
25429  a plain-clothes detective, was pointing out some theory of his own, while
25430  the others crowded round to listen to what he said.
25431  I got as near him as I could, but his observations seemed to me to be absurd,
25432  so I withdrew again in some disgust.
25433  As I did so I struck against an elderly, deformed man, who had been behind
25434  me, and I knocked down several books which he was carrying.
25435 \end_layout
25436
25437 \end_inset
25438
25439
25440 \end_layout
25441
25442 \begin_layout Standard
25443 \begin_inset Note Greyedout
25444 status open
25445
25446 \begin_layout Plain Layout
25447
25448 \series bold
25449 Note:
25450 \series default
25451  The values you set with 
25452 \series bold
25453
25454 \backslash
25455 setlength
25456 \series default
25457  will be used for all following multiple columns until you change them again.
25458 \end_layout
25459
25460 \end_inset
25461
25462
25463 \end_layout
25464
25465 \begin_layout Standard
25466 \begin_inset ERT
25467 status collapsed
25468
25469 \begin_layout Plain Layout
25470
25471
25472 \backslash
25473 setlength{
25474 \backslash
25475 multicolsep}{13pt}
25476 \end_layout
25477
25478 \end_inset
25479
25480
25481 \begin_inset Note Note
25482 status collapsed
25483
25484 \begin_layout Plain Layout
25485 go back to the default
25486 \end_layout
25487
25488 \end_inset
25489
25490
25491 \end_layout
25492
25493 \begin_layout Standard
25494 \begin_inset Newpage newpage
25495 \end_inset
25496
25497
25498 \end_layout
25499
25500 \begin_layout Subsubsection
25501 Column Breaks
25502 \end_layout
25503
25504 \begin_layout Standard
25505 A column break can be forced by inserting the command 
25506 \series bold
25507
25508 \backslash
25509 columnbreak{}
25510 \series default
25511  as \SpecialChar TeX
25512  Code to that position in the text where the column should be broken.
25513  Note that this leads in most cases to whitespace in the text.
25514 \begin_inset Newline newline
25515 \end_inset
25516
25517 Here is an example:
25518 \end_layout
25519
25520 \begin_layout Standard
25521 \begin_inset Flex Multiple Columns
25522 status open
25523
25524 \begin_layout Plain Layout
25525
25526 \size small
25527 \begin_inset Quotes eld
25528 \end_inset
25529
25530 You're surprised to see me, sir,
25531 \begin_inset Quotes erd
25532 \end_inset
25533
25534  said he, in a strange, croaking voice.
25535 \end_layout
25536
25537 \begin_layout Plain Layout
25538
25539 \size small
25540 I acknowledged that I was.
25541 \end_layout
25542
25543 \begin_layout Plain Layout
25544
25545 \size small
25546 \begin_inset Quotes eld
25547 \end_inset
25548
25549 Well, I've a conscience, sir, and when I chanced to see you go into this
25550  house, as I came hobbling after you, I thought to myself, I'll just step
25551  in and see that kind gentleman, and tell him that if I was a bit gruff
25552  in my manner there was not any harm meant, and that I am much obliged to
25553  him for picking up my books.
25554 \begin_inset Quotes erd
25555 \end_inset
25556
25557
25558 \end_layout
25559
25560 \begin_layout Plain Layout
25561
25562 \size small
25563 \begin_inset Quotes eld
25564 \end_inset
25565
25566 You make too much of a trifle,
25567 \begin_inset Quotes erd
25568 \end_inset
25569
25570  said I.
25571  
25572 \begin_inset Quotes eld
25573 \end_inset
25574
25575 May I ask how you knew who I was?
25576 \begin_inset Quotes erd
25577 \end_inset
25578
25579  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
25580 \begin_inset ERT
25581 status collapsed
25582
25583 \begin_layout Plain Layout
25584
25585
25586 \backslash
25587 columnbreak{}
25588 \end_layout
25589
25590 \end_inset
25591
25592
25593 \end_layout
25594
25595 \begin_layout Plain Layout
25596
25597 \size small
25598 \begin_inset Quotes eld
25599 \end_inset
25600
25601 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25602  you'll find my little bookshop at the corner of Church Street, and very
25603  happy to see you, I am sure.
25604  Maybe you collect yourself, sir.
25605  Here's 
25606 \noun on
25607 British
25608 \begin_inset space ~
25609 \end_inset
25610
25611 Birds
25612 \noun default
25613 , and 
25614 \noun on
25615 Catullus
25616 \noun default
25617 , and 
25618 \noun on
25619 The Holy War
25620 \noun default
25621 –a bargain, every one of them.
25622  With five volumes you could just fill that gap on that second shelf.
25623  It looks untidy, does it not, sir?
25624 \begin_inset Quotes erd
25625 \end_inset
25626
25627
25628 \end_layout
25629
25630 \end_inset
25631
25632
25633 \end_layout
25634
25635 \begin_layout Subsubsection
25636 Column Separation
25637 \end_layout
25638
25639 \begin_layout Standard
25640 The width of the columns is automatically calculated, but you can modify
25641  the space between the columns.
25642  This is done by changing the length 
25643 \series bold
25644
25645 \backslash
25646 columnsep
25647 \series default
25648 .
25649  Its predefined value is 10
25650 \begin_inset space \thinspace{}
25651 \end_inset
25652
25653 pt.
25654  Here is an example where 
25655 \series bold
25656
25657 \backslash
25658 columnsep
25659 \series default
25660  is set to 3
25661 \begin_inset space \thinspace{}
25662 \end_inset
25663
25664 cm:
25665 \end_layout
25666
25667 \begin_layout Standard
25668 \begin_inset ERT
25669 status open
25670
25671 \begin_layout Plain Layout
25672
25673
25674 \backslash
25675 setlength{
25676 \backslash
25677 columnsep}{3cm}
25678 \end_layout
25679
25680 \end_inset
25681
25682
25683 \end_layout
25684
25685 \begin_layout Standard
25686 \begin_inset Flex Multiple Columns
25687 status open
25688
25689 \begin_layout Plain Layout
25690
25691 \size small
25692 My observations of No.
25693 \begin_inset space \space{}
25694 \end_inset
25695
25696 427 Park Lane did little to clear up the problem in which I was interested.
25697  The house was separated from the street by a low wall and railing, the
25698  whole not more than five feet high.
25699  It was perfectly easy, therefore, for anyone to get into the garden, but
25700  the window was entirely inaccessible, since there was no water pipe or
25701  anything which could help the most active man to climb it.
25702  More puzzled than ever, I retraced my steps to Kensington.
25703  I had not been in my study five minutes when the maid entered to say that
25704  a person desired to see me.
25705  To my astonishment it was none other than my strange old book collector,
25706  his sharp, wizened face peering out from a frame of white hair, and his
25707  precious volumes, a dozen of them at least, wedged under his right arm.
25708 \end_layout
25709
25710 \end_inset
25711
25712
25713 \end_layout
25714
25715 \begin_layout Standard
25716 \begin_inset ERT
25717 status collapsed
25718
25719 \begin_layout Plain Layout
25720
25721
25722 \backslash
25723 setlength{
25724 \backslash
25725 columnsep}{10pt}
25726 \end_layout
25727
25728 \end_inset
25729
25730
25731 \begin_inset Note Note
25732 status collapsed
25733
25734 \begin_layout Plain Layout
25735 go back to the default
25736 \end_layout
25737
25738 \end_inset
25739
25740
25741 \end_layout
25742
25743 \begin_layout Subsubsection
25744 Vertical Lines
25745 \end_layout
25746
25747 \begin_layout Standard
25748 Between the columns a rule with a width of the length 
25749 \series bold
25750
25751 \backslash
25752 columnseprule
25753 \series default
25754  is placed.
25755  If this rule width is set to 0
25756 \begin_inset space \thinspace{}
25757 \end_inset
25758
25759 pt (this is the default), the rule is suppressed.
25760  In the following example the rule is 2
25761 \begin_inset space \thinspace{}
25762 \end_inset
25763
25764 pt wide:
25765 \end_layout
25766
25767 \begin_layout Standard
25768 \begin_inset ERT
25769 status open
25770
25771 \begin_layout Plain Layout
25772
25773
25774 \backslash
25775 setlength{
25776 \backslash
25777 columnseprule}{2pt}
25778 \end_layout
25779
25780 \end_inset
25781
25782
25783 \end_layout
25784
25785 \begin_layout Standard
25786 \begin_inset Flex Multiple Columns
25787 status open
25788
25789 \begin_layout Plain Layout
25790
25791 \size small
25792 \begin_inset Quotes eld
25793 \end_inset
25794
25795 You're surprised to see me, sir,
25796 \begin_inset Quotes erd
25797 \end_inset
25798
25799  said he, in a strange, croaking voice.
25800 \end_layout
25801
25802 \begin_layout Plain Layout
25803
25804 \size small
25805 I acknowledged that I was.
25806 \end_layout
25807
25808 \begin_layout Plain Layout
25809
25810 \size small
25811 \begin_inset Quotes eld
25812 \end_inset
25813
25814 Well, I've a conscience, sir, and when I chanced to see you go into this
25815  house, as I came hobbling after you, I thought to myself, I'll just step
25816  in and see that kind gentleman, and tell him that if I was a bit gruff
25817  in my manner there was not any harm meant, and that I am much obliged to
25818  him for picking up my books.
25819 \begin_inset Quotes erd
25820 \end_inset
25821
25822
25823 \end_layout
25824
25825 \begin_layout Plain Layout
25826
25827 \size small
25828 \begin_inset Quotes eld
25829 \end_inset
25830
25831 You make too much of a trifle,
25832 \begin_inset Quotes erd
25833 \end_inset
25834
25835  said I.
25836  
25837 \begin_inset Quotes eld
25838 \end_inset
25839
25840 May I ask how you knew who I was?
25841 \begin_inset Quotes erd
25842 \end_inset
25843
25844
25845 \end_layout
25846
25847 \begin_layout Plain Layout
25848
25849 \size small
25850 \begin_inset Quotes eld
25851 \end_inset
25852
25853 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25854  you'll find my little bookshop at the corner of Church Street, and very
25855  happy to see you, I am sure.
25856  Maybe you collect yourself, sir.
25857  Here's 
25858 \noun on
25859 British
25860 \begin_inset space ~
25861 \end_inset
25862
25863 Birds
25864 \noun default
25865 , and 
25866 \noun on
25867 Catullus
25868 \noun default
25869 , and 
25870 \noun on
25871 The Holy War
25872 \noun default
25873 –a bargain, every one of them.
25874  With five volumes you could just fill that gap on that second shelf.
25875  It looks untidy, does it not, sir?
25876 \begin_inset Quotes erd
25877 \end_inset
25878
25879
25880 \end_layout
25881
25882 \end_inset
25883
25884
25885 \end_layout
25886
25887 \begin_layout Standard
25888 \begin_inset VSpace defskip
25889 \end_inset
25890
25891
25892 \end_layout
25893
25894 \begin_layout Standard
25895 The rule can be colored by redefining the command 
25896 \series bold
25897
25898 \backslash
25899 columnseprulecolor
25900 \series default
25901 .
25902  This is done by inserting the command
25903 \begin_inset Newline newline
25904 \end_inset
25905
25906
25907 \series bold
25908
25909 \backslash
25910 renewcommand{
25911 \backslash
25912 columnseprulecolor}{
25913 \backslash
25914 color{red}}
25915 \series default
25916
25917 \begin_inset Newline newline
25918 \end_inset
25919
25920 as \SpecialChar TeX
25921  Code before the multicolumn inset.
25922  Replace 
25923 \series bold
25924 red
25925 \series default
25926  in this command by a color of your choice.
25927  You can use all pre- and self-defined colors.
25928  See the 
25929 \emph on
25930 EmbeddedObjects
25931 \emph default
25932  manual, section 
25933 \emph on
25934 Colored
25935 \begin_inset space ~
25936 \end_inset
25937
25938 Tables
25939 \emph default
25940  for more information about pre- and self-defined colors.
25941  To go back to the default color insert the command
25942 \begin_inset Newline newline
25943 \end_inset
25944
25945
25946 \series bold
25947
25948 \backslash
25949 renewcommand{
25950 \backslash
25951 columnseprulecolor}{
25952 \backslash
25953 normalcolor}
25954 \series default
25955
25956 \begin_inset Newline newline
25957 \end_inset
25958
25959 Here is the example with a cyan rule and 1
25960 \begin_inset space \thinspace{}
25961 \end_inset
25962
25963 cm column separation:
25964 \end_layout
25965
25966 \begin_layout Standard
25967 \begin_inset ERT
25968 status open
25969
25970 \begin_layout Plain Layout
25971
25972
25973 \backslash
25974 setlength{
25975 \backslash
25976 columnsep}{1cm}
25977 \end_layout
25978
25979 \begin_layout Plain Layout
25980
25981
25982 \backslash
25983 renewcommand{
25984 \backslash
25985 columnseprulecolor}{
25986 \backslash
25987 color{cyan}}
25988 \end_layout
25989
25990 \end_inset
25991
25992
25993 \end_layout
25994
25995 \begin_layout Standard
25996 \begin_inset Flex Multiple Columns
25997 status open
25998
25999 \begin_layout Plain Layout
26000
26001 \size small
26002 \begin_inset Quotes eld
26003 \end_inset
26004
26005 You're surprised to see me, sir,
26006 \begin_inset Quotes erd
26007 \end_inset
26008
26009  said he, in a strange, croaking voice.
26010 \end_layout
26011
26012 \begin_layout Plain Layout
26013
26014 \size small
26015 I acknowledged that I was.
26016 \end_layout
26017
26018 \begin_layout Plain Layout
26019
26020 \size small
26021 \begin_inset Quotes eld
26022 \end_inset
26023
26024 Well, I've a conscience, sir, and when I chanced to see you go into this
26025  house, as I came hobbling after you, I thought to myself, I'll just step
26026  in and see that kind gentleman, and tell him that if I was a bit gruff
26027  in my manner there was not any harm meant, and that I am much obliged to
26028  him for picking up my books.
26029 \begin_inset Quotes erd
26030 \end_inset
26031
26032
26033 \end_layout
26034
26035 \begin_layout Plain Layout
26036
26037 \size small
26038 \begin_inset Quotes eld
26039 \end_inset
26040
26041 You make too much of a trifle,
26042 \begin_inset Quotes erd
26043 \end_inset
26044
26045  said I.
26046  
26047 \begin_inset Quotes eld
26048 \end_inset
26049
26050 May I ask how you knew who I was?
26051 \begin_inset Quotes erd
26052 \end_inset
26053
26054
26055 \end_layout
26056
26057 \begin_layout Plain Layout
26058
26059 \size small
26060 \begin_inset Quotes eld
26061 \end_inset
26062
26063 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
26064  you'll find my little bookshop at the corner of Church Street, and very
26065  happy to see you, I am sure.
26066  Maybe you collect yourself, sir.
26067  Here's 
26068 \noun on
26069 British
26070 \begin_inset space ~
26071 \end_inset
26072
26073 Birds
26074 \noun default
26075 , and 
26076 \noun on
26077 Catullus
26078 \noun default
26079 , and 
26080 \noun on
26081 The Holy War
26082 \noun default
26083 –a bargain, every one of them.
26084  With five volumes you could just fill that gap on that second shelf.
26085  It looks untidy, does it not, sir?
26086 \begin_inset Quotes erd
26087 \end_inset
26088
26089
26090 \end_layout
26091
26092 \end_inset
26093
26094
26095 \end_layout
26096
26097 \begin_layout Standard
26098 \begin_inset ERT
26099 status collapsed
26100
26101 \begin_layout Plain Layout
26102
26103
26104 \backslash
26105 setlength{
26106 \backslash
26107 columnseprule}{0pt}
26108 \end_layout
26109
26110 \begin_layout Plain Layout
26111
26112
26113 \backslash
26114 renewcommand{
26115 \backslash
26116 columnseprulecolor}{
26117 \backslash
26118 normalcolor}
26119 \end_layout
26120
26121 \end_inset
26122
26123
26124 \begin_inset Note Note
26125 status collapsed
26126
26127 \begin_layout Plain Layout
26128 go back to the default
26129 \end_layout
26130
26131 \end_inset
26132
26133
26134 \end_layout
26135
26136 \begin_layout Section
26137 Non-standard Paragraph Shapes
26138 \end_layout
26139
26140 \begin_layout Standard
26141 \noindent
26142 \SpecialChar LaTeX
26143  as well as any other text processor uses by default rectangular paragraphs.
26144  For special cases like for example posters, invitation cards or poems you
26145  can modify the paragraph shape to one of your choice.
26146  This can be done by using the \SpecialChar LaTeX
26147 -package 
26148 \series bold
26149 shapepar
26150 \series default
26151  which is loaded by using in the document settings the module 
26152 \family sans
26153 Custom paragraph shapes
26154 \family default
26155 .
26156 \end_layout
26157
26158 \begin_layout Subsection
26159 Predefined shapes
26160 \end_layout
26161
26162 \begin_layout Standard
26163
26164 \series bold
26165 shapepar
26166 \series default
26167  provides the following shapes:
26168 \end_layout
26169
26170 \begin_layout Standard
26171 \begin_inset Tabular
26172 <lyxtabular version="3" rows="13" columns="3">
26173 <features booktabs="true" islongtable="true" longtabularalignment="center">
26174 <column alignment="center" valignment="middle" width="16col%">
26175 <column alignment="center" valignment="middle" width="40col%">
26176 <column alignment="center" valignment="middle" width="35col%">
26177 <row endhead="true">
26178 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26179 \begin_inset Text
26180
26181 \begin_layout Plain Layout
26182 Name
26183 \end_layout
26184
26185 \end_inset
26186 </cell>
26187 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26188 \begin_inset Text
26189
26190 \begin_layout Plain Layout
26191 Description
26192 \end_layout
26193
26194 \end_inset
26195 </cell>
26196 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26197 \begin_inset Text
26198
26199 \begin_layout Plain Layout
26200 Annotation
26201 \end_layout
26202
26203 \end_inset
26204 </cell>
26205 </row>
26206 <row>
26207 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26208 \begin_inset Text
26209
26210 \begin_layout Plain Layout
26211 CDlabel
26212 \end_layout
26213
26214 \end_inset
26215 </cell>
26216 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26217 \begin_inset Text
26218
26219 \begin_layout Plain Layout
26220 Circle with circular hole (in the size of a CD/DVD)
26221 \end_layout
26222
26223 \end_inset
26224 </cell>
26225 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26226 \begin_inset Text
26227
26228 \begin_layout Plain Layout
26229 Cannot be scaled, take care there is not too much text
26230 \end_layout
26231
26232 \end_inset
26233 </cell>
26234 </row>
26235 <row>
26236 <cell alignment="center" valignment="top" topline="true" usebox="none">
26237 \begin_inset Text
26238
26239 \begin_layout Plain Layout
26240 Circle
26241 \end_layout
26242
26243 \end_inset
26244 </cell>
26245 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26246 \begin_inset Text
26247
26248 \begin_layout Plain Layout
26249 Circle
26250 \end_layout
26251
26252 \end_inset
26253 </cell>
26254 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26255 \begin_inset Text
26256
26257 \begin_layout Plain Layout
26258 Fragile, calculation might fail
26259 \end_layout
26260
26261 \end_inset
26262 </cell>
26263 </row>
26264 <row>
26265 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26266 \begin_inset Text
26267
26268 \begin_layout Plain Layout
26269 Diamond
26270 \end_layout
26271
26272 \end_inset
26273 </cell>
26274 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26275 \begin_inset Text
26276
26277 \begin_layout Plain Layout
26278 Rhomboid (symbolizing a 
26279 \begin_inset Quotes eld
26280 \end_inset
26281
26282 diamond
26283 \begin_inset Quotes erd
26284 \end_inset
26285
26286 )
26287 \end_layout
26288
26289 \end_inset
26290 </cell>
26291 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26292 \begin_inset Text
26293
26294 \begin_layout Plain Layout
26295 -
26296 \end_layout
26297
26298 \end_inset
26299 </cell>
26300 </row>
26301 <row>
26302 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26303 \begin_inset Text
26304
26305 \begin_layout Plain Layout
26306 Heart
26307 \end_layout
26308
26309 \end_inset
26310 </cell>
26311 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26312 \begin_inset Text
26313
26314 \begin_layout Plain Layout
26315 Heart-like shape
26316 \end_layout
26317
26318 \end_inset
26319 </cell>
26320 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26321 \begin_inset Text
26322
26323 \begin_layout Plain Layout
26324 -
26325 \end_layout
26326
26327 \end_inset
26328 </cell>
26329 </row>
26330 <row>
26331 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26332 \begin_inset Text
26333
26334 \begin_layout Plain Layout
26335 Hexagon
26336 \end_layout
26337
26338 \end_inset
26339 </cell>
26340 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26341 \begin_inset Text
26342
26343 \begin_layout Plain Layout
26344 Hexagon
26345 \end_layout
26346
26347 \end_inset
26348 </cell>
26349 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26350 \begin_inset Text
26351
26352 \begin_layout Plain Layout
26353 -
26354 \end_layout
26355
26356 \end_inset
26357 </cell>
26358 </row>
26359 <row>
26360 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26361 \begin_inset Text
26362
26363 \begin_layout Plain Layout
26364 Nut
26365 \end_layout
26366
26367 \end_inset
26368 </cell>
26369 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26370 \begin_inset Text
26371
26372 \begin_layout Plain Layout
26373 Nut for bolt (hexagon with circular hole)
26374 \end_layout
26375
26376 \end_inset
26377 </cell>
26378 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26379 \begin_inset Text
26380
26381 \begin_layout Plain Layout
26382 -
26383 \end_layout
26384
26385 \end_inset
26386 </cell>
26387 </row>
26388 <row>
26389 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26390 \begin_inset Text
26391
26392 \begin_layout Plain Layout
26393 Square
26394 \end_layout
26395
26396 \end_inset
26397 </cell>
26398 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26399 \begin_inset Text
26400
26401 \begin_layout Plain Layout
26402 Square
26403 \end_layout
26404
26405 \end_inset
26406 </cell>
26407 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26408 \begin_inset Text
26409
26410 \begin_layout Plain Layout
26411 -
26412 \end_layout
26413
26414 \end_inset
26415 </cell>
26416 </row>
26417 <row>
26418 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26419 \begin_inset Text
26420
26421 \begin_layout Plain Layout
26422 Star
26423 \end_layout
26424
26425 \end_inset
26426 </cell>
26427 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26428 \begin_inset Text
26429
26430 \begin_layout Plain Layout
26431 Five-point star
26432 \end_layout
26433
26434 \end_inset
26435 </cell>
26436 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26437 \begin_inset Text
26438
26439 \begin_layout Plain Layout
26440 -
26441 \end_layout
26442
26443 \end_inset
26444 </cell>
26445 </row>
26446 <row>
26447 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26448 \begin_inset Text
26449
26450 \begin_layout Plain Layout
26451 Candle
26452 \end_layout
26453
26454 \end_inset
26455 </cell>
26456 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26457 \begin_inset Text
26458
26459 \begin_layout Plain Layout
26460 Burning candle
26461 \end_layout
26462
26463 \end_inset
26464 </cell>
26465 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26466 \begin_inset Text
26467
26468 \begin_layout Plain Layout
26469 -
26470 \end_layout
26471
26472 \end_inset
26473 </cell>
26474 </row>
26475 <row>
26476 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26477 \begin_inset Text
26478
26479 \begin_layout Plain Layout
26480 Drop down/up
26481 \end_layout
26482
26483 \end_inset
26484 </cell>
26485 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26486 \begin_inset Text
26487
26488 \begin_layout Plain Layout
26489 Normal/reversed rain drop
26490 \end_layout
26491
26492 \end_inset
26493 </cell>
26494 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26495 \begin_inset Text
26496
26497 \begin_layout Plain Layout
26498 Fragile, calculation might fail
26499 \end_layout
26500
26501 \end_inset
26502 </cell>
26503 </row>
26504 <row>
26505 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26506 \begin_inset Text
26507
26508 \begin_layout Plain Layout
26509 \SpecialChar TeX
26510
26511 \end_layout
26512
26513 \end_inset
26514 </cell>
26515 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26516 \begin_inset Text
26517
26518 \begin_layout Plain Layout
26519 The \SpecialChar TeX
26520  logo
26521 \end_layout
26522
26523 \end_inset
26524 </cell>
26525 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26526 \begin_inset Text
26527
26528 \begin_layout Plain Layout
26529 -
26530 \end_layout
26531
26532 \end_inset
26533 </cell>
26534 </row>
26535 <row>
26536 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26537 \begin_inset Text
26538
26539 \begin_layout Plain Layout
26540 Triangle up/down/
26541 \begin_inset Newline newline
26542 \end_inset
26543
26544 left/right
26545 \end_layout
26546
26547 \end_inset
26548 </cell>
26549 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26550 \begin_inset Text
26551
26552 \begin_layout Plain Layout
26553 Triangles in different orientations
26554 \end_layout
26555
26556 \end_inset
26557 </cell>
26558 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26559 \begin_inset Text
26560
26561 \begin_layout Plain Layout
26562 -
26563 \end_layout
26564
26565 \end_inset
26566 </cell>
26567 </row>
26568 </lyxtabular>
26569
26570 \end_inset
26571
26572
26573 \end_layout
26574
26575 \begin_layout Standard
26576 To use a shape for your paragraph, simply select it in \SpecialChar LyX
26577 's pull-down box
26578  for environments in the toolbar.
26579 \end_layout
26580
26581 \begin_layout Standard
26582 \begin_inset Newpage newpage
26583 \end_inset
26584
26585
26586 \end_layout
26587
26588 \begin_layout Standard
26589 Here is an example paragraph in the shape of a nut:
26590 \end_layout
26591
26592 \begin_layout Standard
26593 \begin_inset VSpace bigskip
26594 \end_inset
26595
26596
26597 \end_layout
26598
26599 \begin_layout Nut
26600
26601 \lang latin
26602 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26603  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26604  voluptua.
26605  At vero eos et accusam et justo duo dolores et ea rebum.
26606  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26607  sit amet.
26608  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26609  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26610  voluptua.
26611 \end_layout
26612
26613 \begin_layout Standard
26614 \begin_inset VSpace bigskip
26615 \end_inset
26616
26617
26618 \end_layout
26619
26620 \begin_layout Standard
26621 \begin_inset Note Greyedout
26622 status open
26623
26624 \begin_layout Plain Layout
26625
26626 \series bold
26627 Note
26628 \series default
26629 : shapepar paragraphs cannot run over a page break.
26630 \end_layout
26631
26632 \end_inset
26633
26634
26635 \end_layout
26636
26637 \begin_layout Standard
26638 \begin_inset VSpace bigskip
26639 \end_inset
26640
26641
26642 \end_layout
26643
26644 \begin_layout Standard
26645
26646 \series bold
26647 shapepar
26648 \series default
26649  takes care that the shape will always be preserved, no matter how much
26650  text is in the paragraph.
26651  Therefore the paragraph size changes with the amount of contained text.
26652  This can lead to paragraph sizes exceeding the page margins.
26653  To demonstrate the size scaling, here is the same example paragraph but
26654  with twice as much text:
26655 \end_layout
26656
26657 \begin_layout Standard
26658 \begin_inset Newpage newpage
26659 \end_inset
26660
26661
26662 \end_layout
26663
26664 \begin_layout Nut
26665
26666 \lang latin
26667 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26668  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26669  voluptua.
26670  At vero eos et accusam et justo duo dolores et ea rebum.
26671  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26672  sit amet.
26673  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26674  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26675  voluptua.
26676  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26677  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26678  voluptua.
26679  At vero eos et accusam et justo duo dolores et ea rebum.
26680  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26681  sit amet.
26682  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26683  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26684  voluptua.
26685 \end_layout
26686
26687 \begin_layout Standard
26688 \begin_inset VSpace bigskip
26689 \end_inset
26690
26691
26692 \end_layout
26693
26694 \begin_layout Standard
26695 An exception is the shape 
26696 \family sans
26697 CDlabel
26698 \family default
26699 .
26700  It cannot be scaled because it must fit the size of a CD/DVD.
26701  Therefore the amount of text that fits into the shape is limited.
26702 \begin_inset Newline newline
26703 \end_inset
26704
26705 The 
26706 \family sans
26707 drop
26708 \family default
26709  shapes and the 
26710 \family sans
26711 circle
26712 \family default
26713  shape are fragile, meaning that the calculation of their size can fail,
26714  depending on the amount of text.
26715  You will then get the \SpecialChar LaTeX
26716  error 
26717 \begin_inset Quotes eld
26718 \end_inset
26719
26720 Arithmetic overflow
26721 \begin_inset Quotes erd
26722 \end_inset
26723
26724 .
26725  In this case one can try to remove or add some text; if nothing works one
26726  has to use another shape.
26727 \end_layout
26728
26729 \begin_layout Standard
26730 \begin_inset VSpace bigskip
26731 \end_inset
26732
26733
26734 \end_layout
26735
26736 \begin_layout Standard
26737 For shapes with tips you will maybe see that \SpecialChar LaTeX
26738 's hyphenation routine fails
26739  for text in the tips.
26740  Therefore it is often necessary to add hyphenation points 
26741 \family sans
26742 (
26743 \begin_inset Info
26744 type  "shortcut"
26745 arg   "specialchar-insert hyphenation"
26746 \end_inset
26747
26748
26749 \family default
26750 ) to the corresponding text parts.
26751 \end_layout
26752
26753 \begin_layout Standard
26754 \begin_inset VSpace bigskip
26755 \end_inset
26756
26757
26758 \end_layout
26759
26760 \begin_layout Standard
26761 Shapepar paragraphs are either always centered or placed on the page so
26762  that their left border touches the left page margin.
26763  You can therefore not use the paragraph dialog to align such paragraphs.
26764  A solution is to put the paragraph into a minipage or parbox and align
26765  the box.
26766  The problem is hereby to find the right width for the box.
26767  Because if it is too wide and you center the box, the paragraph is not
26768  centered too because it sticks at the left side of the box.
26769  So you might have to play a bit with the width until it fits.
26770  Here are two heart-shaped paragraphs, the first one is not aligned, the
26771  second one is right-aligned:
26772 \end_layout
26773
26774 \begin_layout Standard
26775 \begin_inset Newpage newpage
26776 \end_inset
26777
26778
26779 \end_layout
26780
26781 \begin_layout Heart
26782 \noindent
26783
26784 \lang latin
26785 Lo\SpecialChar softhyphen
26786 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26787  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26788  voluptua.
26789  At vero eos et accusam et justo duo dolores et ea rebum.
26790  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26791  sit amet.
26792 \end_layout
26793
26794 \begin_layout Standard
26795 \begin_inset VSpace bigskip
26796 \end_inset
26797
26798
26799 \end_layout
26800
26801 \begin_layout Standard
26802 \noindent
26803 \align right
26804 \begin_inset Box Frameless
26805 position "t"
26806 hor_pos "c"
26807 has_inner_box 1
26808 inner_pos "t"
26809 use_parbox 1
26810 use_makebox 0
26811 width "42col%"
26812 special "none"
26813 height "1in"
26814 height_special "totalheight"
26815 thickness "0.4pt"
26816 separation "3pt"
26817 shadowsize "4pt"
26818 framecolor "black"
26819 backgroundcolor "none"
26820 status open
26821
26822 \begin_layout Heart
26823 \noindent
26824
26825 \lang latin
26826 Lo\SpecialChar softhyphen
26827 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26828  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26829  voluptua.
26830  At vero eos et accusam et justo duo dolores et ea rebum.
26831  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26832  sit amet.
26833 \end_layout
26834
26835 \end_inset
26836
26837
26838 \end_layout
26839
26840 \begin_layout Subsection
26841 Custom shapes
26842 \end_layout
26843
26844 \begin_layout Standard
26845 You can define any shape you want.
26846  Doing this manually is a lot of work because every coordinate must be specified.
26847  But there is a way to let the computer calculate the coordinates:
26848 \end_layout
26849
26850 \begin_layout Enumerate
26851 Install the program 
26852 \begin_inset CommandInset href
26853 LatexCommand href
26854 name "Jpgfdraw"
26855 target "http://www.ctan.org/tex-archive/graphics/jpgfdraw"
26856
26857 \end_inset
26858
26859 .
26860 \end_layout
26861
26862 \begin_layout Enumerate
26863 In 
26864 \family sans
26865 Jpgfdraw
26866 \family default
26867  go to the menu 
26868 \family sans
26869 TeX/LaTeX\SpecialChar menuseparator
26870 Settings\SpecialChar menuseparator
26871 Set Normal Size
26872 \family default
26873  and select the font size you are using in your document.
26874  For example this document uses the size 12
26875 \begin_inset space \thinspace{}
26876 \end_inset
26877
26878 pt.
26879 \end_layout
26880
26881 \begin_layout Enumerate
26882 Draw a shape.
26883 \end_layout
26884
26885 \begin_layout Enumerate
26886 Use the menu 
26887 \family sans
26888 TeX/LaTeX\SpecialChar menuseparator
26889 Shapepar
26890 \family default
26891  to export the shape to coordinates.
26892  In the appearing dialog use either the outline of your shape for the coordinate
26893 s or the path itself.
26894 \begin_inset Foot
26895 status collapsed
26896
26897 \begin_layout Plain Layout
26898 For more information see 
26899 \begin_inset CommandInset href
26900 LatexCommand href
26901 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
26902
26903 \end_inset
26904
26905
26906 \end_layout
26907
26908 \end_inset
26909
26910
26911 \end_layout
26912
26913 \begin_layout Standard
26914 The coordinates are written into a \SpecialChar TeX
26915  file.
26916  To use it for your \SpecialChar LyX
26917  document
26918 \end_layout
26919
26920 \begin_layout Enumerate
26921 Place the cursor before the first character of your paragraph (or into a
26922  new empty one).
26923 \end_layout
26924
26925 \begin_layout Enumerate
26926 Open in \SpecialChar LyX
26927  the menu 
26928 \family sans
26929 Insert\SpecialChar menuseparator
26930 File\SpecialChar menuseparator
26931 Child
26932 \begin_inset space ~
26933 \end_inset
26934
26935 Document
26936 \family default
26937 , select the file and use 
26938 \family sans
26939 Input
26940 \family default
26941  as 
26942 \family sans
26943 Include Type.
26944 \end_layout
26945
26946 \begin_layout Standard
26947 \begin_inset VSpace defskip
26948 \end_inset
26949
26950
26951 \end_layout
26952
26953 \begin_layout Standard
26954 \begin_inset Note Greyedout
26955 status open
26956
26957 \begin_layout Plain Layout
26958
26959 \series bold
26960 Note
26961 \series default
26962 : The changed shape only applies to the current paragraph; everything is
26963  reset to normal for the next paragraph.
26964  Therefore the shape definition file must be input into every paragraph
26965  with the desired shape.
26966 \end_layout
26967
26968 \end_inset
26969
26970
26971 \end_layout
26972
26973 \begin_layout Standard
26974 \begin_inset VSpace bigskip
26975 \end_inset
26976
26977
26978 \end_layout
26979
26980 \begin_layout Standard
26981 Here is an example:
26982 \end_layout
26983
26984 \begin_layout Standard
26985 \begin_inset VSpace bigskip
26986 \end_inset
26987
26988
26989 \end_layout
26990
26991 \begin_layout Standard
26992 \begin_inset CommandInset include
26993 LatexCommand input
26994 filename "SpecialParagraphShape.tex"
26995
26996 \end_inset
26997
26998
26999 \lang latin
27000 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
27001  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
27002  voluptua.
27003  At vero eos et accusam et justo duo dolores et ea rebum.
27004  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
27005  sit amet.
27006  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
27007  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
27008  voluptua.
27009 \end_layout
27010
27011 \begin_layout Standard
27012 \begin_inset VSpace bigskip
27013 \end_inset
27014
27015
27016 \end_layout
27017
27018 \begin_layout Standard
27019
27020 \series bold
27021 A tip:
27022 \series default
27023  to draw complexer shapes in 
27024 \family sans
27025 Jpgfdraw
27026 \family default
27027  you can draw the shape in a program of your choice and import the resulting
27028  image to 
27029 \family sans
27030 Jpgfdraw
27031 \family default
27032 .
27033  Then you only need to draw a line or spline along the outline of the image.
27034 \end_layout
27035
27036 \begin_layout Standard
27037 \begin_inset VSpace bigskip
27038 \end_inset
27039
27040
27041 \end_layout
27042
27043 \begin_layout Standard
27044 The module 
27045 \family sans
27046 Custom paragraph shapes
27047 \family default
27048  also provides the two commands 
27049 \family sans
27050 shapepar
27051 \family default
27052  and 
27053 \family sans
27054 Shapepar
27055 \family default
27056  which can be used to define custom shapes coordinate by coordinate.
27057 \begin_inset Foot
27058 status collapsed
27059
27060 \begin_layout Plain Layout
27061 These commands are internally used for all shapes described here.
27062 \end_layout
27063
27064 \end_inset
27065
27066  For information how these styles are used and about further customization
27067  possibilities, have a look at the documentation of the package 
27068 \series bold
27069 shapepar
27070 \series default
27071
27072 \begin_inset CommandInset citation
27073 LatexCommand cite
27074 key "shapepar"
27075
27076 \end_inset
27077
27078 .
27079 \end_layout
27080
27081 \begin_layout Bibliography
27082 \begin_inset CommandInset bibitem
27083 LatexCommand bibitem
27084 key "multicol"
27085
27086 \end_inset
27087
27088 Documentation of the \SpecialChar LaTeX
27089 -package 
27090 \begin_inset CommandInset href
27091 LatexCommand href
27092 name "multicol"
27093 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
27094
27095 \end_inset
27096
27097
27098 \end_layout
27099
27100 \begin_layout Bibliography
27101 \begin_inset CommandInset bibitem
27102 LatexCommand bibitem
27103 key "shapepar"
27104
27105 \end_inset
27106
27107 Documentation of the \SpecialChar LaTeX
27108 -package 
27109 \begin_inset CommandInset href
27110 LatexCommand href
27111 name "shapepar"
27112 target "http://mirrors.ctan.org/macros/latex/contrib/shapepar/shapepar.pdf"
27113
27114 \end_inset
27115
27116
27117 \end_layout
27118
27119 \end_body
27120 \end_document