]> git.lyx.org Git - lyx.git/blob - lib/doc/Additional.lyx
Additional manual - few updates about VCS info inset from Joel and me.
[lyx.git] / lib / doc / Additional.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 584
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 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 utf8
44 \fontencoding auto
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_roman_osf false
53 \font_sans_osf false
54 \font_typewriter_osf false
55 \font_sf_scale 100 100
56 \font_tt_scale 100 100
57 \use_microtype false
58 \use_dash_ligatures true
59 \graphics default
60 \default_output_format pdf2
61 \output_sync 0
62 \bibtex_command default
63 \index_command default
64 \paperfontsize 12
65 \spacing single
66 \use_hyperref true
67 \pdf_title "LyX's Additional Features manual"
68 \pdf_author "LyX Team"
69 \pdf_subject "LyX's additional features documentation"
70 \pdf_keywords "LyX, Documentation, Additional"
71 \pdf_bookmarks true
72 \pdf_bookmarksnumbered true
73 \pdf_bookmarksopen false
74 \pdf_bookmarksopenlevel 1
75 \pdf_breaklinks false
76 \pdf_pdfborder false
77 \pdf_colorlinks true
78 \pdf_backref false
79 \pdf_pdfusetitle false
80 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
81 \papersize a4paper
82 \use_geometry false
83 \use_package amsmath 1
84 \use_package amssymb 1
85 \use_package cancel 1
86 \use_package esint 1
87 \use_package mathdots 1
88 \use_package mathtools 1
89 \use_package mhchem 1
90 \use_package stackrel 1
91 \use_package stmaryrd 1
92 \use_package undertilde 1
93 \cite_engine basic
94 \cite_engine_type default
95 \biblio_style plain
96 \use_bibtopic false
97 \use_indices false
98 \paperorientation portrait
99 \suppress_date false
100 \justification true
101 \use_refstyle 0
102 \use_minted 0
103 \use_lineno 0
104 \notefontcolor #0000ff
105 \index Index
106 \shortcut idx
107 \color #008000
108 \end_index
109 \secnumdepth 3
110 \tocdepth 3
111 \paragraph_separation indent
112 \paragraph_indentation default
113 \is_math_indent 1
114 \math_indentation default
115 \math_numbering_side default
116 \quotes_style english
117 \dynamic_quotes 0
118 \papercolumns 1
119 \papersides 2
120 \paperpagestyle headings
121 \tablestyle default
122 \tracking_changes true
123 \output_changes false
124 \html_math_output 0
125 \html_css_as_file 0
126 \html_be_strict true
127 \author 5863208 "ab"
128 \author 1119979965 "Joel A. Kulesza"
129 \end_header
130
131 \begin_body
132
133 \begin_layout Title
134 Additional \SpecialChar LyX
135  Features
136 \end_layout
137
138 \begin_layout Subtitle
139 Version 2.3.x
140 \end_layout
141
142 \begin_layout Author
143 by the \SpecialChar LyX
144  Team
145 \begin_inset Foot
146 status collapsed
147
148 \begin_layout Plain Layout
149 \noindent
150 Principal maintainer of this file is
151 \noun on
152  Richard Heck
153 \noun default
154 .
155  If you have comments or error corrections, please send them to the \SpecialChar LyX
156  Documentati
157 on mailing list, 
158 \begin_inset Flex Code
159 status collapsed
160
161 \begin_layout Plain Layout
162 <lyx-docs@lists.lyx.org>
163 \end_layout
164
165 \end_inset
166
167 .
168 \end_layout
169
170 \end_inset
171
172
173 \end_layout
174
175 \begin_layout Standard
176 \begin_inset CommandInset toc
177 LatexCommand tableofcontents
178
179 \end_inset
180
181
182 \end_layout
183
184 \begin_layout Chapter
185 Introduction
186 \end_layout
187
188 \begin_layout Standard
189 This manual is essentially Part II of the 
190 \emph on
191 User's Guide\SpecialChar endofsentence
192
193 \emph default
194  The reason for separating the two documents is simple: the 
195 \emph on
196 User's Guide
197 \emph default
198  is already quite lengthy, and it contains information on all of the basic
199  features one needs to know in order to prepare most documents.
200  However, the \SpecialChar LyX
201  Team has worked to make \SpecialChar LyX
202  extensible through various configuration
203  files and external packages.
204  That means that if you want to support the Fizzwizzle \SpecialChar LaTeX
205  package, you can
206  create a layout file (or module) for it without having to alter \SpecialChar LyX
207  itself.
208  We've already had contributions of several new features this way, and some
209  of them are documented here.
210  There are also some more `advanced' features, such as how to control the
211  presentation of bibliographies and how to work with multi-part documents,
212  that are not covered in the 
213 \emph on
214 User's Guide
215 \emph default
216  and are discussed here.
217 \end_layout
218
219 \begin_layout Standard
220 This manual also documents some special features, like fax support, version
221  control, and SGML support, which require additional software to work properly.
222  There is also a chapter on \SpecialChar LyX
223 's support for HTML.
224  And lastly, there's a chapter of \SpecialChar LaTeX
225  tools and tips, things you can use to
226  spruce up your documents by directly using the powerful features of \SpecialChar LaTeX
227 .
228  After all, \SpecialChar LyX
229  
230 \emph on
231 is
232 \emph default
233  only WYSIWYM and will only ever interface to some, not all, \SpecialChar LaTeX
234  features.
235 \end_layout
236
237 \begin_layout Standard
238 If you haven't read the 
239 \emph on
240 Introduction
241 \emph default
242  yet, you are definitely in the wrong manual.
243  The 
244 \emph on
245 Introduction
246 \emph default
247  is the first place to go, since it describes the notation and format of
248  all of the manuals.
249  You should also be thoroughly familiar with the 
250 \emph on
251 User's Guide
252 \emph default
253  and all of the basic features of \SpecialChar LyX
254  before attempting to read this one.
255 \end_layout
256
257 \begin_layout Standard
258 Since many of the topics in this manual depend heavily on \SpecialChar LyX
259 's interaction
260  with \SpecialChar LaTeX
261 , this first chapter covers the inner workings of \SpecialChar LyX
262  and how to direct
263  \SpecialChar LyX
264  to generate exactly the \SpecialChar LaTeX
265  code you want.
266  It is obviously for more seasoned \SpecialChar LyX
267  users.
268 \end_layout
269
270 \begin_layout Chapter
271 \SpecialChar LyX
272  and \SpecialChar LaTeX
273
274 \end_layout
275
276 \begin_layout Section
277 How \SpecialChar LyX
278  Uses \SpecialChar LaTeX
279
280 \end_layout
281
282 \begin_layout Standard
283 This chapter is for both \SpecialChar TeX
284 -nicians and the \SpecialChar LaTeX
285 -curious.
286  In it, we'll explain how \SpecialChar LyX
287  and \SpecialChar LaTeX
288  work together to produce printable output.
289  This is the only place in any of the manuals where we assume you know something
290  about \SpecialChar LaTeX
291 .
292 \end_layout
293
294 \begin_layout Standard
295 At one time, \SpecialChar LyX
296  was called a 
297 \begin_inset Quotes eld
298 \end_inset
299
300 WYSIWYM frontend to \SpecialChar LaTeX
301 ,
302 \begin_inset Quotes erd
303 \end_inset
304
305  but that's no longer true.
306  There are frontends to \SpecialChar LaTeX
307  out there.
308 \begin_inset Foot
309 status collapsed
310
311 \begin_layout Plain Layout
312 Some familar ones are \SpecialChar TeX
313 maker and kile, on Linux, and \SpecialChar TeX
314 shop, OSX.
315  There are also the \SpecialChar LaTeX
316  modes for vi and emacs, of course.
317 \end_layout
318
319 \end_inset
320
321  These are basically text editors with the ability to run \SpecialChar LaTeX
322  and mark any
323  errors in the file you're editing.
324  Although \SpecialChar LyX
325  
326 \emph on
327 is
328 \emph default
329  an editor, and it 
330 \emph on
331 does
332 \emph default
333  run \SpecialChar LaTeX
334 , and it also indicates errors in the file, it also does much, much
335  more.
336  For one thing, you don't need to know \SpecialChar LaTeX
337  to use \SpecialChar LyX
338  effectively.
339  And \SpecialChar LyX
340  has added its own extensions to \SpecialChar LaTeX
341 .
342  Try the following sometime: select 
343 \begin_inset Flex Noun
344 status collapsed
345
346 \begin_layout Plain Layout
347 Export\SpecialChar menuseparator
348 LaTeX
349 \end_layout
350
351 \end_inset
352
353  from the 
354 \begin_inset Flex Noun
355 status collapsed
356
357 \begin_layout Plain Layout
358 File
359 \end_layout
360
361 \end_inset
362
363  menu (or 
364 \begin_inset Flex Noun
365 status collapsed
366
367 \begin_layout Plain Layout
368 View\SpecialChar menuseparator
369 Source
370 \begin_inset space ~
371 \end_inset
372
373 Pane
374 \end_layout
375
376 \end_inset
377
378 ), then look at the preamble of the resulting 
379 \begin_inset Flex Code
380 status collapsed
381
382 \begin_layout Plain Layout
383 .tex
384 \end_layout
385
386 \end_inset
387
388  file.
389  You'll notice a variety of new macros defined specifically by \SpecialChar LyX
390 .
391  These macros are defined automatically, according to the features you use
392  in the document.
393 \end_layout
394
395 \begin_layout Standard
396 There are several commands that automatically invoke \SpecialChar LaTeX
397 .
398  They are:
399 \end_layout
400
401 \begin_layout Itemize
402 \begin_inset Flex Noun
403 status collapsed
404
405 \begin_layout Plain Layout
406 Document\SpecialChar menuseparator
407 View
408 \end_layout
409
410 \end_inset
411
412
413 \end_layout
414
415 \begin_layout Itemize
416 \begin_inset Flex Noun
417 status collapsed
418
419 \begin_layout Plain Layout
420 Document\SpecialChar menuseparator
421 Update
422 \end_layout
423
424 \end_inset
425
426
427 \end_layout
428
429 \begin_layout Standard
430 They will only invoke \SpecialChar LaTeX
431  if the file has changed since the last time \SpecialChar LaTeX
432  was
433  run.
434  
435 \end_layout
436
437 \begin_layout Standard
438 When \SpecialChar LyX
439  runs \SpecialChar LaTeX
440  on the file you're editing, it performs these steps:
441 \end_layout
442
443 \begin_layout Enumerate
444 Convert the document to \SpecialChar LaTeX
445  and save to a file with the extension 
446 \begin_inset Flex Code
447 status collapsed
448
449 \begin_layout Plain Layout
450 .tex
451 \end_layout
452
453 \end_inset
454
455  in place of 
456 \begin_inset Flex Code
457 status collapsed
458
459 \begin_layout Plain Layout
460 .lyx
461 \end_layout
462
463 \end_inset
464
465 .
466 \end_layout
467
468 \begin_layout Enumerate
469 Run \SpecialChar LaTeX
470  on the 
471 \begin_inset Flex Code
472 status collapsed
473
474 \begin_layout Plain Layout
475 .tex
476 \end_layout
477
478 \end_inset
479
480  file (maybe several times), and run any other commands (such as 
481 \begin_inset Flex Code
482 status collapsed
483
484 \begin_layout Plain Layout
485 bibtex
486 \end_layout
487
488 \end_inset
489
490  or 
491 \begin_inset Flex Code
492 status collapsed
493
494 \begin_layout Plain Layout
495 makeindex
496 \end_layout
497
498 \end_inset
499
500 ) needed to compile the \SpecialChar LaTeX
501  file.
502 \end_layout
503
504 \begin_layout Enumerate
505 If there are any errors, show the error log.
506 \end_layout
507
508 \begin_layout Standard
509 If you have run \SpecialChar LaTeX
510  using 
511 \begin_inset Flex Noun
512 status collapsed
513
514 \begin_layout Plain Layout
515 View\SpecialChar menuseparator
516 DVI
517 \end_layout
518
519 \end_inset
520
521 , \SpecialChar LyX
522  then runs a DVI viewer to display the DVI-file.
523  If you have used 
524 \begin_inset Flex Noun
525 status collapsed
526
527 \begin_layout Plain Layout
528 View\SpecialChar menuseparator
529 PostScript
530 \end_layout
531
532 \end_inset
533
534 , \SpecialChar LyX
535  performs further steps:
536 \end_layout
537
538 \begin_layout Itemize
539 Run 
540 \begin_inset Flex Code
541 status collapsed
542
543 \begin_layout Plain Layout
544 dvips
545 \end_layout
546
547 \end_inset
548
549  to convert the DVI file to PostScript.
550 \end_layout
551
552 \begin_layout Itemize
553 Run a PostScript viewer, such as 
554 \begin_inset Flex Code
555 status collapsed
556
557 \begin_layout Plain Layout
558 ghostview
559 \end_layout
560
561 \end_inset
562
563 , to display the PostScript file.
564 \end_layout
565
566 \begin_layout Standard
567 \SpecialChar LyX
568  does similar things when viewing, or exporting, other formats.
569 \end_layout
570
571 \begin_layout Section
572 Translating \SpecialChar LaTeX
573  files into \SpecialChar LyX
574
575 \end_layout
576
577 \begin_layout Standard
578 You can import a \SpecialChar LaTeX
579  file into \SpecialChar LyX
580  by using the 
581 \begin_inset Flex Noun
582 status collapsed
583
584 \begin_layout Plain Layout
585 File\SpecialChar menuseparator
586 Import\SpecialChar menuseparator
587 LaTeX
588 \end_layout
589
590 \end_inset
591
592  command in \SpecialChar LyX
593 .
594  This will call a program named 
595 \begin_inset Flex Code
596 status collapsed
597
598 \begin_layout Plain Layout
599 tex2lyx
600 \end_layout
601
602 \end_inset
603
604  which will create a file 
605 \begin_inset Flex Code
606 status collapsed
607
608 \begin_layout Plain Layout
609 foo.lyx
610 \end_layout
611
612 \end_inset
613
614  from the file 
615 \begin_inset Flex Code
616 status collapsed
617
618 \begin_layout Plain Layout
619 foo.tex
620 \end_layout
621
622 \end_inset
623
624 .
625  \SpecialChar LyX
626  will then open that file.
627 \begin_inset Foot
628 status collapsed
629
630 \begin_layout Plain Layout
631 \begin_inset Flex Code
632 status collapsed
633
634 \begin_layout Plain Layout
635 tex2lyx
636 \end_layout
637
638 \end_inset
639
640  can also be run from the command line, of course.
641 \end_layout
642
643 \end_inset
644
645
646 \end_layout
647
648 \begin_layout Standard
649 \begin_inset Flex Code
650 status collapsed
651
652 \begin_layout Plain Layout
653 tex2lyx
654 \end_layout
655
656 \end_inset
657
658  will translate most legal \SpecialChar LaTeX
659 , but not everything.
660  It will put things it doesn't understand into \SpecialChar TeX
661  code, so after translating
662  a file with 
663 \begin_inset Flex Code
664 status collapsed
665
666 \begin_layout Plain Layout
667 tex2lyx
668 \end_layout
669
670 \end_inset
671
672 , you can look for \SpecialChar TeX
673  code and hand-edit it until it looks right.
674 \end_layout
675
676 \begin_layout Standard
677 If you don't know what \SpecialChar TeX
678  code is, read the next section.
679 \end_layout
680
681 \begin_layout Section
682 \begin_inset CommandInset label
683 LatexCommand label
684 name "sec:Inserting-TeX-Code"
685
686 \end_inset
687
688 Inserting \SpecialChar TeX
689  Code into \SpecialChar LyX
690  Documents 
691 \end_layout
692
693 \begin_layout Standard
694 Anything you can do in \SpecialChar LaTeX
695  you can do in \SpecialChar LyX
696 , for a very simple reason: You can
697  always insert \SpecialChar TeX
698  code into any \SpecialChar LyX
699  document.
700  \SpecialChar LyX
701  cannot, and will never be able to, display every possible \SpecialChar LaTeX
702  construct.
703  If ever you need to insert \SpecialChar LaTeX
704  commands into your \SpecialChar LyX
705  document, you can use the
706  
707 \begin_inset Flex Code
708 status collapsed
709
710 \begin_layout Plain Layout
711 \SpecialChar TeX
712  Code
713 \end_layout
714
715 \end_inset
716
717  box, which you can insert into your document with 
718 \begin_inset Flex Noun
719 status collapsed
720
721 \begin_layout Plain Layout
722 Insert\SpecialChar menuseparator
723
724 \family sans
725 TeX
726 \family default
727  Code
728 \end_layout
729
730 \end_inset
731
732  or the keyboard shortcut 
733 \begin_inset Info
734 type  "shortcut"
735 arg   "ert-insert"
736 \end_inset
737
738 .
739 \end_layout
740
741 \begin_layout Standard
742 Here's an example of inserting \SpecialChar LaTeX
743  commands in a \SpecialChar LyX
744  document.
745  The code looks like this:
746 \end_layout
747
748 \begin_layout LyX-Code
749
750 \backslash
751 begin{tabular}{ll}
752 \begin_inset Newline newline
753 \end_inset
754
755
756 \backslash
757 begin{minipage}{5cm}
758 \begin_inset Newline newline
759 \end_inset
760
761 This is an example of a minipage environment.
762  You 
763 \begin_inset Newline newline
764 \end_inset
765
766 can put nearly everything in it, even (non-floating) 
767 \begin_inset Newline newline
768 \end_inset
769
770 figures and tables.
771  
772 \begin_inset Newline newline
773 \end_inset
774
775
776 \backslash
777 end{minipage}
778 \begin_inset Newline newline
779 \end_inset
780
781 &
782 \begin_inset Newline newline
783 \end_inset
784
785
786 \backslash
787 begin{minipage}{5cm}
788 \begin_inset Newline newline
789 \end_inset
790
791
792 \backslash
793 begin{verbatim}
794 \begin_inset Newline newline
795 \end_inset
796
797
798 \backslash
799 begin{minipage}{5cm}
800 \begin_inset Newline newline
801 \end_inset
802
803 This ...
804  
805 \begin_inset Newline newline
806 \end_inset
807
808
809 \backslash
810 end{minipage}
811 \begin_inset Newline newline
812 \end_inset
813
814
815 \backslash
816 end{verbatim}
817 \begin_inset Newline newline
818 \end_inset
819
820
821 \backslash
822 end{minipage}
823 \begin_inset Newline newline
824 \end_inset
825
826
827 \backslash
828 end{tabular}
829 \end_layout
830
831 \begin_layout LyX-Code
832
833 \end_layout
834
835 \begin_layout Standard
836 The 
837 \begin_inset Flex Code
838 status collapsed
839
840 \begin_layout Plain Layout
841 \SpecialChar TeX
842  Code
843 \end_layout
844
845 \end_inset
846
847  box containing this text is directly after this paragraph.
848  Those of you reading the manual in \SpecialChar LyX
849  will only see the \SpecialChar TeX
850  code inset.
851  Those reading a printed version of the manuals will see the actual results:
852 \begin_inset VSpace bigskip
853 \end_inset
854
855
856 \end_layout
857
858 \begin_layout Standard
859 \begin_inset ERT
860 status open
861
862 \begin_layout Plain Layout
863
864
865 \backslash
866 begin{tabular}{ll}
867 \end_layout
868
869 \begin_layout Plain Layout
870
871
872 \backslash
873 begin{minipage}{5cm}
874 \end_layout
875
876 \begin_layout Plain Layout
877
878 This is an example of a minipage environment.
879  You can put nearly everything in it, even (non-floating) figures and tables.
880  
881 \end_layout
882
883 \begin_layout Plain Layout
884
885
886 \backslash
887 end{minipage}
888 \end_layout
889
890 \begin_layout Plain Layout
891
892 &
893 \end_layout
894
895 \begin_layout Plain Layout
896
897
898 \backslash
899 begin{minipage}{5cm}
900 \end_layout
901
902 \begin_layout Plain Layout
903
904
905 \backslash
906 begin{verbatim}
907 \end_layout
908
909 \begin_layout Plain Layout
910
911
912 \backslash
913 begin{minipage}{5cm}
914 \end_layout
915
916 \begin_layout Plain Layout
917
918 This ...
919  
920 \end_layout
921
922 \begin_layout Plain Layout
923
924
925 \backslash
926 end{minipage}
927 \end_layout
928
929 \begin_layout Plain Layout
930
931
932 \backslash
933 end{verbatim}
934 \end_layout
935
936 \begin_layout Plain Layout
937
938
939 \backslash
940 end{minipage}
941 \end_layout
942
943 \begin_layout Plain Layout
944
945
946 \backslash
947 end{tabular}
948 \end_layout
949
950 \end_inset
951
952
953 \begin_inset VSpace bigskip
954 \end_inset
955
956
957 \end_layout
958
959 \begin_layout Standard
960 In addition to using \SpecialChar TeX
961  code, you can also create a separate file containing
962  some complex \SpecialChar LaTeX
963  structure and then use 
964 \begin_inset Flex Noun
965 status collapsed
966
967 \begin_layout Plain Layout
968 Insert\SpecialChar menuseparator
969 Child
970 \begin_inset space ~
971 \end_inset
972
973 Document
974 \end_layout
975
976 \end_inset
977
978  to include your file (you should select the type 
979 \begin_inset Flex Code
980 status collapsed
981
982 \begin_layout Plain Layout
983 Input
984 \end_layout
985
986 \end_inset
987
988 ).
989  We recommend that you only do this if you have a 
990 \begin_inset Flex Code
991 status collapsed
992
993 \begin_layout Plain Layout
994 .tex
995 \end_layout
996
997 \end_inset
998
999  file which you 
1000 \emph on
1001 know
1002 \emph default
1003  works already.
1004  Otherwise, you'll have a big job tracking down \SpecialChar LaTeX
1005  errors.
1006 \end_layout
1007
1008 \begin_layout Standard
1009 There are a few last points to emphasize:
1010 \end_layout
1011
1012 \begin_layout Itemize
1013 \SpecialChar LyX
1014  
1015 \emph on
1016 does not
1017 \emph default
1018  check if your \SpecialChar LaTeX
1019  code is correct.
1020 \end_layout
1021
1022 \begin_layout Itemize
1023 Beware of reinventing the wheel.
1024 \end_layout
1025
1026 \begin_layout Standard
1027 On that last point, \SpecialChar LyX
1028  does have quite a few features tucked into it, and
1029  more are coming.
1030  Be sure to check the manuals to make sure that \SpecialChar LyX
1031  doesn't have such-and-such
1032  feature before you decide you have to do it by hand.
1033  Moreover, there are numerous \SpecialChar LaTeX
1034  packages out there to do all sorts of things,
1035  from labels to envelopes to fancy multipage tables.
1036  Check out 
1037 \begin_inset CommandInset href
1038 LatexCommand href
1039 name "CTAN"
1040 target "http://www.ctan.org/"
1041 literal "false"
1042
1043 \end_inset
1044
1045  for details.
1046 \end_layout
1047
1048 \begin_layout Standard
1049 If you do need to do some wild and fancy things within your document, be
1050  sure to check out a good \SpecialChar LaTeX
1051  book for assistance.
1052  There are a number of them listed in the bibliography of the 
1053 \emph on
1054 User's Guide
1055 \emph default
1056 .
1057 \end_layout
1058
1059 \begin_layout Section
1060 \SpecialChar LyX
1061  and the \SpecialChar LaTeX
1062  Preamble
1063 \end_layout
1064
1065 \begin_layout Subsection
1066 About the \SpecialChar LaTeX
1067  Preamble
1068 \end_layout
1069
1070 \begin_layout Standard
1071 If you already know \SpecialChar LaTeX
1072 , there is no need to explain here what the preamble
1073  is good for.
1074  If you don't, the following will give you some ideas—we recommend again
1075  that you consult a \SpecialChar LaTeX
1076  book for further information.
1077  In any case, you should read the points below, because they explain what
1078  you can do and what you don't need to do in the \SpecialChar LaTeX
1079  preamble of a \SpecialChar LyX
1080  document.
1081 \end_layout
1082
1083 \begin_layout Standard
1084 The \SpecialChar LaTeX
1085  preamble comes at the very beginning of a document, 
1086 \emph on
1087 before
1088 \emph default
1089  the text.
1090  It serves to:
1091 \end_layout
1092
1093 \begin_layout Itemize
1094 Declare the document class.
1095  
1096 \begin_inset Newline newline
1097 \end_inset
1098
1099 \SpecialChar LyX
1100  already does this for you.
1101  If you're a seasoned \SpecialChar LaTeX
1102 -nician, and you have a custom document class you
1103  want to use, check out the 
1104 \emph on
1105 Customization Manual
1106 \emph default
1107  for information on how to make \SpecialChar LyX
1108  interface to it.
1109 \end_layout
1110
1111 \begin_layout Itemize
1112 Declare the usage of packages.
1113  
1114 \begin_inset Newline newline
1115 \end_inset
1116
1117 \SpecialChar LaTeX
1118  packages provide special commands, which are only available within a document
1119  when the package has been declared in the preamble.
1120  In addition to providing special commands, the inclusion of a package can
1121  change the document.
1122  For example, the package 
1123 \begin_inset Flex Code
1124 status collapsed
1125
1126 \begin_layout Plain Layout
1127 indentfirst
1128 \end_layout
1129
1130 \end_inset
1131
1132  forces all paragraphs to be indented.
1133  There are other packages for labels, envelopes, margins, etc.
1134  
1135 \end_layout
1136
1137 \begin_layout Itemize
1138 Set counters, variables, lengths and widths.
1139  
1140 \begin_inset Newline newline
1141 \end_inset
1142
1143 There are several \SpecialChar LaTeX
1144  counters and variables that 
1145 \emph on
1146 must
1147 \emph default
1148  be set globally from within the preamble in order to have the desired effect.
1149  (There are variables that you can set and reset inside the document, too.)
1150  Margins are a good example of something that must be set in the preamble.
1151  Another example is the label format for lists.
1152  You can actually set these just about anywhere, but it's best to do it
1153  just once, inside the preamble.
1154 \end_layout
1155
1156 \begin_layout Itemize
1157 Declare user defined commands (with 
1158 \begin_inset Flex Code
1159 status collapsed
1160
1161 \begin_layout Plain Layout
1162
1163 \backslash
1164 newcommand
1165 \end_layout
1166
1167 \end_inset
1168
1169  or 
1170 \begin_inset Flex Code
1171 status collapsed
1172
1173 \begin_layout Plain Layout
1174
1175 \backslash
1176 renewcommand
1177 \end_layout
1178
1179 \end_inset
1180
1181 ).
1182 \begin_inset Newline newline
1183 \end_inset
1184
1185 These are abbreviations for \SpecialChar LaTeX
1186  commands which appear very often inside a document.
1187  Although the preamble is a good place to declare such commands, they 
1188 \emph on
1189 can
1190 \emph default
1191  be declared anywhere (before they are used for the first time, of course).
1192  This can be useful if there is a lot of raw \SpecialChar LaTeX
1193  code in your document, which
1194  normally should not be the case.
1195 \end_layout
1196
1197 \begin_layout Standard
1198 \SpecialChar LyX
1199  adds its own set of definitions to the preamble of the 
1200 \begin_inset Flex Code
1201 status collapsed
1202
1203 \begin_layout Plain Layout
1204 .tex
1205 \end_layout
1206
1207 \end_inset
1208
1209  file it produces.
1210  This makes \SpecialChar LaTeX
1211  files generated by \SpecialChar LyX
1212  portable.
1213 \end_layout
1214
1215 \begin_layout Subsection
1216 Changing the Preamble
1217 \end_layout
1218
1219 \begin_layout Standard
1220 The commands which \SpecialChar LyX
1221  adds to the preamble of a \SpecialChar LaTeX
1222  file are fixed; you can't
1223  change them without patching \SpecialChar LyX
1224  itself.
1225  You can, however, add your own stuff to the preamble by selecting 
1226 \begin_inset Flex Noun
1227 status collapsed
1228
1229 \begin_layout Plain Layout
1230 \SpecialChar LaTeX
1231
1232 \begin_inset space ~
1233 \end_inset
1234
1235 Preamble
1236 \end_layout
1237
1238 \end_inset
1239
1240  in the 
1241 \begin_inset Flex Noun
1242 status collapsed
1243
1244 \begin_layout Plain Layout
1245 Document\SpecialChar menuseparator
1246 Settings
1247 \end_layout
1248
1249 \end_inset
1250
1251  dialog.
1252  \SpecialChar LyX
1253  adds anything in the 
1254 \begin_inset Flex Noun
1255 status collapsed
1256
1257 \begin_layout Plain Layout
1258 Preamble
1259 \end_layout
1260
1261 \end_inset
1262
1263  dialog to its own built-in preamble.
1264  Before adding your own declarations in the preamble, you should make sure
1265  that \SpecialChar LyX
1266  doesn't already support what you want to do.
1267  (Remember what we said about reinventing the wheel?) Also, 
1268 \emph on
1269 make sure your preamble code is correct
1270 \emph default
1271 .
1272  \SpecialChar LyX
1273  doesn't check it for you.
1274  If there is an error, you're likely to get an error like 
1275 \begin_inset Quotes eld
1276 \end_inset
1277
1278
1279 \begin_inset Flex Code
1280 status collapsed
1281
1282 \begin_layout Plain Layout
1283 Missing 
1284 \backslash
1285 begin{document}
1286 \end_layout
1287
1288 \end_inset
1289
1290
1291 \begin_inset Quotes erd
1292 \end_inset
1293
1294 .
1295  If you see this error, check your preamble.
1296 \end_layout
1297
1298 \begin_layout Subsection
1299 Examples
1300 \end_layout
1301
1302 \begin_layout Standard
1303 Here are some examples of what you can add to a preamble, and what they
1304  do.
1305 \end_layout
1306
1307 \begin_layout Subsubsection
1308 Example #1: Offsets
1309 \end_layout
1310
1311 \begin_layout Standard
1312 There are two variables under \SpecialChar LaTeX
1313  that control page position: 
1314 \begin_inset Flex Code
1315 status collapsed
1316
1317 \begin_layout Plain Layout
1318
1319 \backslash
1320 hoffset
1321 \end_layout
1322
1323 \end_inset
1324
1325  and 
1326 \begin_inset Flex Code
1327 status collapsed
1328
1329 \begin_layout Plain Layout
1330
1331 \backslash
1332 voffset
1333 \end_layout
1334
1335 \end_inset
1336
1337 .
1338  Their names should be self-explanatory.
1339  These variables are useful if you think for a moment about computer labels.
1340  Sometimes, the size of a print medium and the area of the medium that you
1341  can actually print on aren't the same.
1342  This is where 
1343 \begin_inset Flex Code
1344 status collapsed
1345
1346 \begin_layout Plain Layout
1347
1348 \backslash
1349 hoffset
1350 \end_layout
1351
1352 \end_inset
1353
1354  and 
1355 \begin_inset Flex Code
1356 status collapsed
1357
1358 \begin_layout Plain Layout
1359
1360 \backslash
1361 voffset
1362 \end_layout
1363
1364 \end_inset
1365
1366  come in.
1367 \end_layout
1368
1369 \begin_layout Standard
1370 The default values for 
1371 \begin_inset Flex Code
1372 status collapsed
1373
1374 \begin_layout Plain Layout
1375
1376 \backslash
1377 hoffset
1378 \end_layout
1379
1380 \end_inset
1381
1382  and 
1383 \begin_inset Flex Code
1384 status collapsed
1385
1386 \begin_layout Plain Layout
1387
1388 \backslash
1389 voffset
1390 \end_layout
1391
1392 \end_inset
1393
1394  are both 0
1395 \begin_inset space \thinspace{}
1396 \end_inset
1397
1398 points, i.
1399 \begin_inset space \thinspace{}
1400 \end_inset
1401
1402 e.
1403 \begin_inset space \space{}
1404 \end_inset
1405
1406 the page isn't shifted.
1407  Unfortunately, some DVI drivers always seem to shift the page.
1408  We have no idea why, or why the sysadmin hasn't fixed such behavior.
1409  If you're using \SpecialChar LyX
1410  on a system that you don't personally maintain, and your
1411  sysadmin is a doofus, 
1412 \begin_inset Flex Code
1413 status collapsed
1414
1415 \begin_layout Plain Layout
1416
1417 \backslash
1418 hoffset
1419 \end_layout
1420
1421 \end_inset
1422
1423  and 
1424 \begin_inset Flex Code
1425 status collapsed
1426
1427 \begin_layout Plain Layout
1428
1429 \backslash
1430 voffset
1431 \end_layout
1432
1433 \end_inset
1434
1435  can save the day.
1436  Suppose your left and top margins are always 0.5
1437 \begin_inset space \thinspace{}
1438 \end_inset
1439
1440 inches too big.
1441  You can add this to the preamble:
1442 \end_layout
1443
1444 \begin_layout LyX-Code
1445
1446 \backslash
1447 setlength{
1448 \backslash
1449 hoffset}{-0.5 in}
1450 \end_layout
1451
1452 \begin_layout LyX-Code
1453
1454 \backslash
1455 setlength{
1456 \backslash
1457 voffset}{-0.5 in}
1458 \end_layout
1459
1460 \begin_layout Standard
1461 and your margins should now be correct.
1462 \end_layout
1463
1464 \begin_layout Subsubsection
1465 Example #2: Labels
1466 \end_layout
1467
1468 \begin_layout Standard
1469 Speaking of labels, suppose you wanted to print out a bunch of address labels.
1470  There's a rather nice package, available at your nearest CTAN archive,
1471  for printing sheets of labels: 
1472 \begin_inset Flex Code
1473 status collapsed
1474
1475 \begin_layout Plain Layout
1476 labels.sty
1477 \end_layout
1478
1479 \end_inset
1480
1481 .
1482  Now, your system may not have this package installed by default.
1483  We leave that up to you to check.
1484  You'll also want to read the documentation for it; we're not going to do
1485  that for you.
1486  Since this is an example, however, we'll give you an example of how you
1487  use this package.
1488 \end_layout
1489
1490 \begin_layout Standard
1491 First, make sure you're using the 
1492 \begin_inset Flex Code
1493 status collapsed
1494
1495 \begin_layout Plain Layout
1496 article
1497 \end_layout
1498
1499 \end_inset
1500
1501  document class.
1502  Next, you need to put the following in your preamble:
1503 \end_layout
1504
1505 \begin_layout LyX-Code
1506
1507 \backslash
1508 usepackage{labels}
1509 \end_layout
1510
1511 \begin_layout LyX-Code
1512
1513 \backslash
1514 LabelCols=3
1515 \end_layout
1516
1517 \begin_layout LyX-Code
1518
1519 \backslash
1520 LabelRows=7
1521 \end_layout
1522
1523 \begin_layout LyX-Code
1524
1525 \backslash
1526 LeftBorder=8mm
1527 \end_layout
1528
1529 \begin_layout LyX-Code
1530
1531 \backslash
1532 RightBorder=8mm
1533 \end_layout
1534
1535 \begin_layout LyX-Code
1536
1537 \backslash
1538 TopBorder=9mm
1539 \end_layout
1540
1541 \begin_layout LyX-Code
1542
1543 \backslash
1544 BottomBorder=2mm
1545 \end_layout
1546
1547 \begin_layout Standard
1548 This sets things up for Avery label sheets, stock #5360.
1549  You're now ready to print labels, but you'll need to insert \SpecialChar LaTeX
1550  code, placing
1551  the commands 
1552 \begin_inset Flex Code
1553 status collapsed
1554
1555 \begin_layout Plain Layout
1556
1557 \backslash
1558 begin{labels}
1559 \end_layout
1560
1561 \end_inset
1562
1563  and 
1564 \begin_inset Flex Code
1565 status collapsed
1566
1567 \begin_layout Plain Layout
1568
1569 \backslash
1570 end{labels}
1571 \end_layout
1572
1573 \end_inset
1574
1575  around each label text.
1576  This and other special features of 
1577 \begin_inset Flex Code
1578 status collapsed
1579
1580 \begin_layout Plain Layout
1581 labels.sty
1582 \end_layout
1583
1584 \end_inset
1585
1586  are explained in its documentation.
1587 \end_layout
1588
1589 \begin_layout Standard
1590 Someday, someone may write a \SpecialChar LyX
1591  layout file to support this package directly.
1592  Maybe that someone is you.
1593 \end_layout
1594
1595 \begin_layout Subsubsection
1596 Example #3: Paragraph Indentation
1597 \end_layout
1598
1599 \begin_layout Standard
1600 Americans are trained to indent the first line of 
1601 \emph on
1602 every
1603 \emph default
1604  paragraph.
1605  As with all of their other weird quirks, most Americans will whine and
1606  moan until they can have their way and indent the first line of all paragraphs.
1607  (Yes, we're joking.
1608  (We are?) 
1609 \emph on
1610 Yeah
1611 \emph default
1612 , we are.)
1613 \end_layout
1614
1615 \begin_layout Standard
1616 Of course, this behavior isn't standard typography.
1617  In books, you typically only indent the first line of a paragraph 
1618 \emph on
1619 if
1620 \emph default
1621  it follows another one.
1622  The idea behind indenting the first line of a paragraph is to distinguish
1623  neighboring paragraphs from one another.
1624  If there is no previous paragraph—for example, if it follows a figure or
1625  is the first paragraph in a section—then there is no need for indentation.
1626  
1627 \end_layout
1628
1629 \begin_layout Standard
1630 If you're a typical American (we're still joking!), though, you don't care
1631  about such esoteric things; you want your indentation! Add this to the
1632  preamble:
1633 \end_layout
1634
1635 \begin_layout LyX-Code
1636
1637 \backslash
1638 usepackage{indentfirst}
1639 \end_layout
1640
1641 \begin_layout Standard
1642 If your \SpecialChar TeX
1643  distribution isn't braindead, you'll have this package, and all
1644  of your paragraphs will get the indentation the Founding Fathers intended
1645  they should have.
1646 \end_layout
1647
1648 \begin_layout Subsubsection
1649 Example #4: This Document
1650 \end_layout
1651
1652 \begin_layout Standard
1653 You can also check out the preamble of this document to get an idea of some
1654  of the advanced things you can do.
1655 \end_layout
1656
1657 \begin_layout Section
1658 \SpecialChar LyX
1659  and \SpecialChar LaTeX
1660  Errors
1661 \end_layout
1662
1663 \begin_layout Standard
1664 When \SpecialChar LyX
1665  calls \SpecialChar LaTeX
1666 , it tells \SpecialChar LaTeX
1667  to blithely ignore any errors and keep going.
1668  It then uses the logfile from the \SpecialChar LaTeX
1669  run to do a post-mortem.
1670  After analyzing the logfile, \SpecialChar LyX
1671  displays a dialog listing the errors.
1672  Clicking on any one of them will take you to the position in your \SpecialChar LyX
1673  file
1674  where the error occurred.
1675 \begin_inset Foot
1676 status collapsed
1677
1678 \begin_layout Plain Layout
1679 Well, usually.
1680  Analyzing the logfile is a tough job, and \SpecialChar LyX
1681  doesn't always go to the right
1682  line.
1683  There are also cases where \SpecialChar LaTeX
1684  reports the error on one line, but the actual
1685  error is earlier.
1686  This is not unlike forgetting a closing brace in a program: You'll get
1687  an error, but only later.
1688 \end_layout
1689
1690 \end_inset
1691
1692
1693 \end_layout
1694
1695 \begin_layout Standard
1696 Some folks also like to look at the log file directly: It is available from
1697  
1698 \begin_inset Flex Noun
1699 status collapsed
1700
1701 \begin_layout Plain Layout
1702 Document\SpecialChar menuseparator
1703 LaTeX
1704 \begin_inset space ~
1705 \end_inset
1706
1707 Log
1708 \end_layout
1709
1710 \end_inset
1711
1712 .
1713  There are some fairly common error messages and warnings.
1714  We'll cover those here.
1715  You should look at a good \SpecialChar LaTeX
1716  book for a complete listing.
1717 \end_layout
1718
1719 \begin_layout Itemize
1720 \begin_inset Flex Code
1721 status collapsed
1722
1723 \begin_layout Plain Layout
1724 LaTeX Warning
1725 \end_layout
1726
1727 \end_inset
1728
1729
1730 \begin_inset Newline newline
1731 \end_inset
1732
1733 Anything beginning with these words is a warning message for the purpose
1734  of 
1735 \begin_inset Quotes eld
1736 \end_inset
1737
1738 debugging
1739 \begin_inset Quotes erd
1740 \end_inset
1741
1742  the \SpecialChar LaTeX
1743  code itself.
1744  You'll get messages like this if you added or changed cross-references
1745  or bibliography entries, in which case, \SpecialChar LaTeX
1746  is trying to tell you that you
1747  need to make another run.
1748  You can by-and-large ignore these.
1749 \end_layout
1750
1751 \begin_layout Itemize
1752 \begin_inset Flex Code
1753 status collapsed
1754
1755 \begin_layout Plain Layout
1756 LaTeX Font Warning
1757 \end_layout
1758
1759 \end_inset
1760
1761
1762 \begin_inset Newline newline
1763 \end_inset
1764
1765 Another warning message, this time about fonts which \SpecialChar LaTeX
1766  couldn't find.
1767  The rest of the message will often say something about a replacement font
1768  that \SpecialChar LaTeX
1769  used.
1770  You can safely ignore these, too.
1771 \end_layout
1772
1773 \begin_layout Itemize
1774 \begin_inset Flex Code
1775 status collapsed
1776
1777 \begin_layout Plain Layout
1778 Overfull 
1779 \backslash
1780 hbox
1781 \end_layout
1782
1783 \end_inset
1784
1785
1786 \begin_inset Newline newline
1787 \end_inset
1788
1789 \SpecialChar LaTeX
1790  absolutely 
1791 \emph on
1792 loves
1793 \emph default
1794  to spew these out.
1795  It seems to generate at least one of these messages for just about any
1796  document you write.
1797  They are warnings about lines that were too long and run past the right
1798  margin.
1799  This happens if \SpecialChar LaTeX
1800  does not find a reasonable way to break the lines (notoriously
1801  often with typewriter font, since this does not allow for automatic break
1802  points).
1803  In many cases, this is unnoticeable in the final output.
1804  (It can be just a point or two.) Sometimes, however, the lines run rather
1805  visibly into the margin; something you will not want to have in your final
1806  print.
1807  
1808 \begin_inset Newline newline
1809 \end_inset
1810
1811 There are several global ways to try to minimize the overfull lines.
1812  Clicking 
1813 \family sans
1814 Enable micro-typographic extensions
1815 \family default
1816  in 
1817 \family sans
1818 Document\SpecialChar menuseparator
1819 Settings\SpecialChar menuseparator
1820 Fonts
1821 \family default
1822  might already improve things a lot.
1823  Furthermore, \SpecialChar LaTeX
1824  code such as the following in 
1825 \family sans
1826 Document\SpecialChar menuseparator
1827 Settings\SpecialChar menuseparator
1828 Preamble
1829 \family default
1830  usually reduces the overfull lines drastically (we use this in the preamble
1831  of this document):
1832 \end_layout
1833
1834 \begin_deeper
1835 \begin_layout LyX-Code
1836
1837 \backslash
1838 tolerance 1414
1839 \begin_inset Newline newline
1840 \end_inset
1841
1842
1843 \backslash
1844 hbadness 1414
1845 \begin_inset Newline newline
1846 \end_inset
1847
1848
1849 \backslash
1850 emergencystretch 1.5em
1851 \begin_inset Newline newline
1852 \end_inset
1853
1854
1855 \backslash
1856 hfuzz 0.3pt
1857 \end_layout
1858
1859 \begin_layout Standard
1860 In some cases, however, you eventually have to rewrite the text to get the
1861  line breaking right.
1862 \begin_inset Foot
1863 status collapsed
1864
1865 \begin_layout Plain Layout
1866 For more information, see 
1867 \begin_inset Flex URL
1868 status open
1869
1870 \begin_layout Plain Layout
1871
1872 http://www.tex.ac.uk/FAQ-overfull.html
1873 \end_layout
1874
1875 \end_inset
1876
1877
1878 \end_layout
1879
1880 \end_inset
1881
1882
1883 \end_layout
1884
1885 \begin_layout Standard
1886 In any case, you should check the respective lines, at least for the final
1887  version of your document.
1888  Your eyes will tell you if there's a problem with something that's too
1889  wide.
1890 \begin_inset Foot
1891 status collapsed
1892
1893 \begin_layout Plain Layout
1894 You can also enable the `draft' option in 
1895 \begin_inset Flex Noun
1896 status collapsed
1897
1898 \begin_layout Plain Layout
1899 Document\SpecialChar menuseparator
1900 Settings
1901 \end_layout
1902
1903 \end_inset
1904
1905 , and then \SpecialChar LaTeX
1906  will draw a black box in the margin of lines that are overfull.
1907 \end_layout
1908
1909 \end_inset
1910
1911  
1912 \end_layout
1913
1914 \end_deeper
1915 \begin_layout Itemize
1916 \begin_inset Flex Code
1917 status collapsed
1918
1919 \begin_layout Plain Layout
1920 Underfull 
1921 \backslash
1922 hbox
1923 \end_layout
1924
1925 \end_inset
1926
1927
1928 \begin_inset Newline newline
1929 \end_inset
1930
1931 Not quite as common as its cousin.
1932  This happens again if \SpecialChar LaTeX
1933  does not find a reasonable break point and consequently
1934  generates too loose lines.
1935  As with the overfull lines, you should check if this is a visible problem.
1936 \end_layout
1937
1938 \begin_layout Itemize
1939 \begin_inset Flex Code
1940 status collapsed
1941
1942 \begin_layout Plain Layout
1943 Overfull 
1944 \backslash
1945 vbox
1946 \end_layout
1947
1948 \end_inset
1949
1950  and 
1951 \begin_inset Flex Code
1952 status collapsed
1953
1954 \begin_layout Plain Layout
1955 Underfull 
1956 \backslash
1957 vbox
1958 \end_layout
1959
1960 \end_inset
1961
1962
1963 \begin_inset Newline newline
1964 \end_inset
1965
1966 Warnings about troubles breaking the page.
1967  Once again, just look at the output.
1968  Your eyes will tell you where something has gone wrong.
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: File 
1977 \begin_inset Quotes els
1978 \end_inset
1979
1980 Xxxx
1981 \begin_inset Quotes ers
1982 \end_inset
1983
1984  not found
1985 \end_layout
1986
1987 \end_inset
1988
1989
1990 \begin_inset Newline newline
1991 \end_inset
1992
1993 The file 
1994 \begin_inset Quotes eld
1995 \end_inset
1996
1997 Xxxx
1998 \begin_inset Quotes erd
1999 \end_inset
2000
2001  isn't installed on this system.
2002  This usually appears because some package your document needs isn't installed.
2003  If you didn't touch the preamble or didn't use the 
2004 \begin_inset Flex Code
2005 status collapsed
2006
2007 \begin_layout Plain Layout
2008
2009 \backslash
2010 usepackage{}
2011 \end_layout
2012
2013 \end_inset
2014
2015  command, then one of the packages \SpecialChar LyX
2016  tried to load is missing.
2017  Use 
2018 \begin_inset Flex Noun
2019 status collapsed
2020
2021 \begin_layout Plain Layout
2022 Help\SpecialChar menuseparator
2023 \SpecialChar LaTeX
2024  Configuration
2025 \end_layout
2026
2027 \end_inset
2028
2029  to get a list of packages that \SpecialChar LyX
2030  knows about.
2031  This file is updated whenever you reconfigure \SpecialChar LyX
2032  (using 
2033 \begin_inset Flex Noun
2034 status collapsed
2035
2036 \begin_layout Plain Layout
2037 Tools\SpecialChar menuseparator
2038 Reconfigure
2039 \end_layout
2040
2041 \end_inset
2042
2043 ) and tells you which packages have been detected and what they do.
2044 \begin_inset Newline newline
2045 \end_inset
2046
2047 If you did use the 
2048 \begin_inset Flex Code
2049 status collapsed
2050
2051 \begin_layout Plain Layout
2052
2053 \backslash
2054 usepackage{}
2055 \end_layout
2056
2057 \end_inset
2058
2059  command and the package in question isn't installed, then you'll need to
2060  install it yourself.
2061 \end_layout
2062
2063 \begin_layout Itemize
2064 \begin_inset Flex Code
2065 status collapsed
2066
2067 \begin_layout Plain Layout
2068 LaTeX Error: Unknown option
2069 \end_layout
2070
2071 \end_inset
2072
2073
2074 \begin_inset Newline newline
2075 \end_inset
2076
2077 Error messages beginning with this are trying to tell you that you specified
2078  a bad or undefined option to a package.
2079  Check the package's documentation.
2080 \end_layout
2081
2082 \begin_layout Itemize
2083 \begin_inset Flex Code
2084 status collapsed
2085
2086 \begin_layout Plain Layout
2087 Undefined control sequence
2088 \end_layout
2089
2090 \end_inset
2091
2092
2093 \begin_inset Newline newline
2094 \end_inset
2095
2096 If you've inserted \SpecialChar LaTeX
2097  code into your document, but made a typo, you'll get
2098  one of these.
2099  You may have forgotten to load a package.
2100  In any case, this error message usually means that you used an undefined
2101  command.
2102  
2103 \end_layout
2104
2105 \begin_layout Standard
2106 There are other error and warning messages.
2107  Some are self-explanatory.
2108  These are usually \SpecialChar LaTeX
2109  messages.
2110  Others are downright cryptic.
2111  These are usually \SpecialChar TeX
2112  error messages, and we really have 
2113 \emph on
2114 no clue
2115 \emph default
2116  what they mean or how to decipher them.
2117  No-one does.
2118 \end_layout
2119
2120 \begin_layout Standard
2121 There's a general sequence you should follow if you get error messages:
2122 \end_layout
2123
2124 \begin_layout Enumerate
2125 Look at the \SpecialChar LaTeX
2126  code you inserted for typos.
2127 \end_layout
2128
2129 \begin_layout Enumerate
2130 If there are no typos, check that you used the command(s) correctly.
2131 \end_layout
2132
2133 \begin_layout Enumerate
2134 If you get a bunch of error boxes piled up at the very top of the document—and
2135  especially if you see a 
2136 \begin_inset Quotes eld
2137 \end_inset
2138
2139
2140 \begin_inset Flex Code
2141 status collapsed
2142
2143 \begin_layout Plain Layout
2144 Missing 
2145 \backslash
2146 begin{document}
2147 \end_layout
2148
2149 \end_inset
2150
2151
2152 \begin_inset Quotes erd
2153 \end_inset
2154
2155  error—it means that there are errors in the preamble.
2156  Start debugging your preamble.
2157 \end_layout
2158
2159 \begin_layout Enumerate
2160 If you didn't add anything to the preamble and didn't add any \SpecialChar LaTeX
2161  code to the
2162  document, the first suspect is your \SpecialChar LaTeX
2163  distribution itself.
2164  Check for missing packages and install them.
2165 \end_layout
2166
2167 \begin_layout Enumerate
2168 Okay, so there are no missing packages.
2169  Did you use any of the fine-tuning options in \SpecialChar LyX
2170 ? Specifically, did you 
2171 \emph on
2172 misuse
2173 \emph default
2174  any of them, like trying to manually insert lots of 
2175 \begin_inset Flex Code
2176 status collapsed
2177
2178 \begin_layout Plain Layout
2179 Protected
2180 \begin_inset space ~
2181 \end_inset
2182
2183 Blanks
2184 \end_layout
2185
2186 \end_inset
2187
2188
2189 \begin_inset Flex Code
2190 status collapsed
2191
2192 \begin_layout Plain Layout
2193 Linebreaks
2194 \end_layout
2195
2196 \end_inset
2197
2198 , or 
2199 \begin_inset Flex Code
2200 status collapsed
2201
2202 \begin_layout Plain Layout
2203 Pagebreaks
2204 \end_layout
2205
2206 \end_inset
2207
2208 ? Did you try to kludge something together with these instead of using the
2209  appropriate paragraph environment?
2210 \end_layout
2211
2212 \begin_layout Enumerate
2213 All right, you didn't use any of the fine-tuning options, you played by
2214  the rules.
2215  Did you try to pull a fancy maneuver? Did you do something funky inside
2216  a table or an equation, like inserting a graphic into a table cell?
2217 \end_layout
2218
2219 \begin_layout Enumerate
2220 Do you have long sections of text where \SpecialChar LaTeX
2221  cannot find a place to break a
2222  line? By default, \SpecialChar LaTeX
2223  is rather strict about how much extra inter-word spacing
2224  it will add in order to break a line.
2225  Preferably, you should rework the paragraph to avoid the problem.
2226 \end_layout
2227
2228 \begin_layout Enumerate
2229 Did you go overboard with the nesting? \SpecialChar LyX
2230  (currently) doesn't check to make
2231  sure you're in the limits for nesting environments.
2232  If you nested a bunch of environments to the 
2233 \begin_inset Formula $17^{\mathrm{th}}$
2234 \end_inset
2235
2236  level, that's the problem.
2237  (The limit in \SpecialChar LaTeX
2238  is five.)
2239 \end_layout
2240
2241 \begin_layout Enumerate
2242 Okay, you didn't get any error messages, but your output looks awful.
2243  If you have a table or figure that's too wide or long for the page, you
2244  need to:
2245 \end_layout
2246
2247 \begin_deeper
2248 \begin_layout Enumerate
2249 rescale the figure so it fits.
2250 \end_layout
2251
2252 \begin_layout Enumerate
2253 trim down the table so it fits.
2254 \end_layout
2255
2256 \end_deeper
2257 \begin_layout Enumerate
2258 If something else is wrong with the output, and you didn't try to pull anything
2259  fancy or kludge the fine-tuning options, we're not sure what's wrong.
2260 \end_layout
2261
2262 \begin_layout Standard
2263 If all this doesn't help—well, then 
2264 \emph on
2265 perhaps
2266 \emph default
2267  you might have found a bug in \SpecialChar LyX
2268 \SpecialChar ldots
2269 .
2270 \end_layout
2271
2272 \begin_layout Chapter
2273 Supplemental Tools
2274 \end_layout
2275
2276 \begin_layout Section
2277 Customizing Bibliographies with Bib\SpecialChar TeX
2278  or Biblatex
2279 \end_layout
2280
2281 \begin_layout Standard
2282 The most basic information about how to use Bib\SpecialChar TeX
2283  or 
2284 \family sans
2285 Biblatex
2286 \family default
2287  with \SpecialChar LyX
2288  is contained in the section 
2289 \emph on
2290 Bibliography databases
2291 \emph default
2292  of the 
2293 \emph on
2294 User's Guide
2295 \emph default
2296 .
2297  The following subsections explain special bibliography features supported
2298  by \SpecialChar LyX
2299 .
2300 \end_layout
2301
2302 \begin_layout Subsection
2303 Alternative Citation Styles
2304 \end_layout
2305
2306 \begin_layout Standard
2307 Standard Bib\SpecialChar TeX
2308  uses numbers (e.
2309 \begin_inset space \thinspace{}
2310 \end_inset
2311
2312 g.
2313 \begin_inset space \space{}
2314 \end_inset
2315
2316
2317 \begin_inset Quotes eld
2318 \end_inset
2319
2320 [12]
2321 \begin_inset Quotes erd
2322 \end_inset
2323
2324 ) to refer to a cited work.
2325  However, in many scientific disciplines, other citation styles are in use.
2326  The most common one is the author-year style (e.
2327 \begin_inset space \thinspace{}
2328 \end_inset
2329
2330 g.
2331 \begin_inset space \space{}
2332 \end_inset
2333
2334
2335 \begin_inset Quotes eld
2336 \end_inset
2337
2338 Knuth 1984a
2339 \begin_inset Quotes erd
2340 \end_inset
2341
2342 ).
2343  \SpecialChar LyX
2344  supports three packages that provide this style, 
2345 \begin_inset Flex Code
2346 status collapsed
2347
2348 \begin_layout Plain Layout
2349 biblatex
2350 \end_layout
2351
2352 \end_inset
2353
2354
2355 \begin_inset Flex Code
2356 status collapsed
2357
2358 \begin_layout Plain Layout
2359 natbib
2360 \end_layout
2361
2362 \end_inset
2363
2364 , and 
2365 \begin_inset Flex Code
2366 status collapsed
2367
2368 \begin_layout Plain Layout
2369 jurabib
2370 \end_layout
2371
2372 \end_inset
2373
2374 .
2375  Each of these packages has their pros and cons, which cannot be listed
2376  in detail.
2377  If you only want to have simple author-year (or author-numerical) style,
2378  or if you want to use one of the countless style files for 
2379 \begin_inset Flex Code
2380 status collapsed
2381
2382 \begin_layout Plain Layout
2383 natbib
2384 \end_layout
2385
2386 \end_inset
2387
2388 , then the established 
2389 \begin_inset Flex Code
2390 status collapsed
2391
2392 \begin_layout Plain Layout
2393 natbib
2394 \end_layout
2395
2396 \end_inset
2397
2398  package is probably your choice.
2399  If you look for specific citation styles common in law studies, you might
2400  consider the 
2401 \begin_inset Flex Code
2402 status collapsed
2403
2404 \begin_layout Plain Layout
2405 jurabib
2406 \end_layout
2407
2408 \end_inset
2409
2410  package.
2411  If you want to have full control over the formatting or look for advanced
2412  features such as ibidem, footnote citations, full title citations, advanced
2413  date formats (such as 400 BC) or full localization to other languages than
2414  English, you should definitely consider 
2415 \begin_inset Flex Code
2416 status collapsed
2417
2418 \begin_layout Plain Layout
2419 biblatex
2420 \end_layout
2421
2422 \end_inset
2423
2424 , which exceeds all other packages in terms of features, but is also quite
2425  heavy and more resource-hungry.
2426 \end_layout
2427
2428 \begin_layout Standard
2429 The handling of these packages in \SpecialChar LyX
2430  is basically the same.
2431  Go to 
2432 \begin_inset Flex Noun
2433 status collapsed
2434
2435 \begin_layout Plain Layout
2436 Document\SpecialChar menuseparator
2437 Settings
2438 \end_layout
2439
2440 \end_inset
2441
2442  and select under 
2443 \begin_inset Flex Noun
2444 status collapsed
2445
2446 \begin_layout Plain Layout
2447 Bibliography
2448 \end_layout
2449
2450 \end_inset
2451
2452  the 
2453 \begin_inset Flex Noun
2454 status collapsed
2455
2456 \begin_layout Plain Layout
2457 Style Format
2458 \end_layout
2459
2460 \end_inset
2461
2462  
2463 \begin_inset Flex Noun
2464 status collapsed
2465
2466 \begin_layout Plain Layout
2467 Basic (BibTeX)
2468 \end_layout
2469
2470 \end_inset
2471
2472
2473 \begin_inset Flex Noun
2474 status collapsed
2475
2476 \begin_layout Plain Layout
2477 Biblatex
2478 \end_layout
2479
2480 \end_inset
2481
2482
2483 \begin_inset Flex Noun
2484 status collapsed
2485
2486 \begin_layout Plain Layout
2487 Biblatex (Natbib mode)
2488 \end_layout
2489
2490 \end_inset
2491
2492
2493 \begin_inset Flex Noun
2494 status collapsed
2495
2496 \begin_layout Plain Layout
2497 Natbib (BibTeX)
2498 \end_layout
2499
2500 \end_inset
2501
2502  or 
2503 \begin_inset Flex Noun
2504 status collapsed
2505
2506 \begin_layout Plain Layout
2507 Jurabib (BibTeX)
2508 \end_layout
2509
2510 \end_inset
2511
2512  (see sec.
2513 \begin_inset space ~
2514 \end_inset
2515
2516 6.5.3 in the User's Guide for more information on these choices).
2517  With all these packages, you will get some extra features in the citation
2518  dialog and you can select the style of the reference (
2519 \begin_inset Quotes eld
2520 \end_inset
2521
2522 Knuth 1984
2523 \begin_inset Quotes erd
2524 \end_inset
2525
2526
2527 \begin_inset Quotes eld
2528 \end_inset
2529
2530 Knuth (1984)
2531 \begin_inset Quotes erd
2532 \end_inset
2533
2534
2535 \begin_inset Quotes eld
2536 \end_inset
2537
2538 Knuth, 1984
2539 \begin_inset Quotes erd
2540 \end_inset
2541
2542
2543 \begin_inset Quotes eld
2544 \end_inset
2545
2546 1984
2547 \begin_inset Quotes erd
2548 \end_inset
2549
2550  etc.).
2551  Note that either package needs specifically designed style files.
2552  They all ship their own, but there are lots of additional style files,
2553  and there is even an interactive style file builder
2554 \begin_inset Foot
2555 status collapsed
2556
2557 \begin_layout Plain Layout
2558 See 
2559 \begin_inset Flex URL
2560 status open
2561
2562 \begin_layout Plain Layout
2563
2564 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
2565 \end_layout
2566
2567 \end_inset
2568
2569
2570 \end_layout
2571
2572 \end_inset
2573
2574  for 
2575 \begin_inset Flex Code
2576 status collapsed
2577
2578 \begin_layout Plain Layout
2579 natbib
2580 \end_layout
2581
2582 \end_inset
2583
2584 .
2585 \end_layout
2586
2587 \begin_layout Subsection
2588 Subdivided Bibliographies
2589 \end_layout
2590
2591 \begin_layout Standard
2592 Sometimes you might need to divide your bibliography into several sections.
2593  If you are for instance a historian, the possibility to separate sources
2594  and scientific works is most likely a 
2595 \begin_inset Quotes eld
2596 \end_inset
2597
2598 must have
2599 \begin_inset Quotes erd
2600 \end_inset
2601
2602 .
2603  Unfortunately, Bib\SpecialChar TeX
2604  itself does not allow you to do this.
2605  But with the help of some \SpecialChar LaTeX
2606  packages, Bib\SpecialChar TeX
2607  can be extended to fit your needs.
2608 \end_layout
2609
2610 \begin_layout Standard
2611 \SpecialChar LyX
2612  provides native support for one of these packages, 
2613 \family typewriter
2614 bibtopic
2615 \family default
2616 .
2617 \begin_inset Foot
2618 status collapsed
2619
2620 \begin_layout Plain Layout
2621 Available from 
2622 \begin_inset Flex URL
2623 status open
2624
2625 \begin_layout Plain Layout
2626
2627 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
2628 \end_layout
2629
2630 \end_inset
2631
2632
2633 \end_layout
2634
2635 \end_inset
2636
2637  The advantage of this package (compared to other packages such as 
2638 \family typewriter
2639 multibib
2640 \family default
2641 ) is that you don't need to define new citation commands.
2642  Instead, you need to prepare different bibliographic databases which include
2643  the entries for the different sections of the bibliography.
2644  For example: If you want to divide your bibliography into the sections
2645  
2646 \begin_inset Quotes eld
2647 \end_inset
2648
2649 Sources
2650 \begin_inset Quotes erd
2651 \end_inset
2652
2653  and 
2654 \begin_inset Quotes eld
2655 \end_inset
2656
2657 Scientific works
2658 \begin_inset Quotes erd
2659 \end_inset
2660
2661 , you first need to create two bibliographic databases, e.
2662 \begin_inset space \thinspace{}
2663 \end_inset
2664
2665 g.
2666 \begin_inset space \space{}
2667 \end_inset
2668
2669
2670 \begin_inset Flex Code
2671 status collapsed
2672
2673 \begin_layout Plain Layout
2674 sources.bib
2675 \end_layout
2676
2677 \end_inset
2678
2679  and 
2680 \begin_inset Flex Code
2681 status collapsed
2682
2683 \begin_layout Plain Layout
2684 scientific.bib
2685 \end_layout
2686
2687 \end_inset
2688
2689 .
2690  
2691 \end_layout
2692
2693 \begin_layout Standard
2694 Go to 
2695 \begin_inset Flex Noun
2696 status collapsed
2697
2698 \begin_layout Plain Layout
2699 Document\SpecialChar menuseparator
2700 Settings
2701 \end_layout
2702
2703 \end_inset
2704
2705  and check under 
2706 \begin_inset Flex Noun
2707 status collapsed
2708
2709 \begin_layout Plain Layout
2710 Bibliography
2711 \end_layout
2712
2713 \end_inset
2714
2715  the option 
2716 \begin_inset Flex Noun
2717 status collapsed
2718
2719 \begin_layout Plain Layout
2720 Subdivided bibliography
2721 \end_layout
2722
2723 \end_inset
2724
2725 .
2726  Now you can insert multiple Bib\SpecialChar TeX
2727  bibliographies, one for each section of
2728  your bibliography.
2729  Returning to our example: Insert the Bib\SpecialChar TeX
2730  bibliography 
2731 \begin_inset Flex Code
2732 status collapsed
2733
2734 \begin_layout Plain Layout
2735 sources.bib
2736 \end_layout
2737
2738 \end_inset
2739
2740  and a second one for the database 
2741 \begin_inset Flex Code
2742 status collapsed
2743
2744 \begin_layout Plain Layout
2745 scientific.bib
2746 \end_layout
2747
2748 \end_inset
2749
2750 .
2751  You are free to use the same or different styles for each section.
2752  Additionally, you can choose if the bibliography section should contain
2753  
2754 \begin_inset Quotes eld
2755 \end_inset
2756
2757 all cited references
2758 \begin_inset Quotes erd
2759 \end_inset
2760
2761  of the specified database(s) (which is the default), 
2762 \begin_inset Quotes eld
2763 \end_inset
2764
2765 all uncited references
2766 \begin_inset Quotes erd
2767 \end_inset
2768
2769  or even 
2770 \begin_inset Quotes eld
2771 \end_inset
2772
2773 all references
2774 \begin_inset Quotes erd
2775 \end_inset
2776
2777 .
2778  This might be useful if you would like to separate your bibliography into
2779  three sections: 
2780 \begin_inset Quotes eld
2781 \end_inset
2782
2783 Cited sources
2784 \begin_inset Quotes erd
2785 \end_inset
2786
2787
2788 \begin_inset Quotes eld
2789 \end_inset
2790
2791 Uncited sources
2792 \begin_inset Quotes erd
2793 \end_inset
2794
2795 , and 
2796 \begin_inset Quotes eld
2797 \end_inset
2798
2799 Scientific works
2800 \begin_inset Quotes erd
2801 \end_inset
2802
2803 .
2804  The titles for the sections can be added as ordinary sections or subsections.
2805  Since 
2806 \begin_inset Flex Code
2807 status collapsed
2808
2809 \begin_layout Plain Layout
2810 bibtopic
2811 \end_layout
2812
2813 \end_inset
2814
2815  removes the bibliography title, you have to manually re-add that, too (as
2816  a chapter* or section*, for instance).
2817 \end_layout
2818
2819 \begin_layout Standard
2820 With 
2821 \family sans
2822 Biblatex
2823 \family default
2824 , the procedure is a bit different.
2825  Since 
2826 \family typewriter
2827 bibtopic
2828 \family default
2829  does not work with 
2830 \family sans
2831 Biblatex
2832 \family default
2833 , the aforementioned 
2834 \begin_inset Flex Noun
2835 status collapsed
2836
2837 \begin_layout Plain Layout
2838 Subdivided bibliography
2839 \end_layout
2840
2841 \end_inset
2842
2843  option is disabled if you use 
2844 \family sans
2845 Biblatex
2846 \family default
2847 .
2848  However, 
2849 \family sans
2850 Biblatex
2851 \family default
2852  provides its own means to generate subdivided bibliographies.
2853  You can either add keywords to bibliography entries via the 
2854 \begin_inset Flex Code
2855 status collapsed
2856
2857 \begin_layout Plain Layout
2858 keywords
2859 \end_layout
2860
2861 \end_inset
2862
2863  entry option and then filter bibliography sections by keyword (by adding
2864  
2865 \begin_inset Flex Code
2866 status collapsed
2867
2868 \begin_layout Plain Layout
2869 keyword=mykeyword
2870 \end_layout
2871
2872 \end_inset
2873
2874  to the 
2875 \begin_inset Flex Noun
2876 status collapsed
2877
2878 \begin_layout Plain Layout
2879 Options
2880 \end_layout
2881
2882 \end_inset
2883
2884  field of the dialog that opens if you left-click on the 
2885 \begin_inset Flex Noun
2886 status collapsed
2887
2888 \begin_layout Plain Layout
2889 Biblatex Generated Bibliography
2890 \end_layout
2891
2892 \end_inset
2893
2894  button), or you can filter by entry types (such as 
2895 \emph on
2896 book
2897 \emph default
2898  or 
2899 \emph on
2900 article
2901 \emph default
2902 ) by entering e.
2903 \begin_inset space \thinspace{}
2904 \end_inset
2905
2906 g.
2907  
2908 \begin_inset Flex Code
2909 status collapsed
2910
2911 \begin_layout Plain Layout
2912 type=book
2913 \end_layout
2914
2915 \end_inset
2916
2917  or 
2918 \begin_inset Flex Code
2919 status collapsed
2920
2921 \begin_layout Plain Layout
2922 nottype=collection
2923 \end_layout
2924
2925 \end_inset
2926
2927  to the mentioned 
2928 \begin_inset Flex Noun
2929 status collapsed
2930
2931 \begin_layout Plain Layout
2932 Options
2933 \end_layout
2934
2935 \end_inset
2936
2937  field, or you can create so-called 
2938 \begin_inset Quotes eld
2939 \end_inset
2940
2941 Bibliography Categories
2942 \begin_inset Quotes erd
2943 \end_inset
2944
2945  to which you can assign individual entries.
2946  Please refer to the Biblatex manual, section 
2947 \emph on
2948 Subdivided Bibliographies
2949 \emph default
2950 , for details.
2951 \end_layout
2952
2953 \begin_layout Subsection
2954 Multiple Bibliographies
2955 \begin_inset CommandInset label
2956 LatexCommand label
2957 name "subsec:Multiple-Bibliographies"
2958
2959 \end_inset
2960
2961
2962 \end_layout
2963
2964 \begin_layout Standard
2965 Multiple bibliographies, e.
2966 \begin_inset space \thinspace{}
2967 \end_inset
2968
2969 g.
2970 \begin_inset space \space{}
2971 \end_inset
2972
2973 a bibliography for each part, chapter, section, subsection or child (sub-documen
2974 t) of the document, are also supported by \SpecialChar LyX
2975 .
2976  In order to enable it, go to 
2977 \begin_inset Flex Noun
2978 status collapsed
2979
2980 \begin_layout Plain Layout
2981 Document\SpecialChar menuseparator
2982 Settings\SpecialChar menuseparator
2983 Bibliography
2984 \end_layout
2985
2986 \end_inset
2987
2988  and select the relevant unit (e.
2989 \begin_inset space \thinspace{}
2990 \end_inset
2991
2992 g., 
2993 \begin_inset Quotes eld
2994 \end_inset
2995
2996 per section
2997 \begin_inset Quotes erd
2998 \end_inset
2999
3000 ) in the 
3001 \begin_inset Flex Noun
3002 status collapsed
3003
3004 \begin_layout Plain Layout
3005 Multiple Bibliographies
3006 \end_layout
3007
3008 \end_inset
3009
3010  combo box.
3011  Then add a Bib(la)\SpecialChar TeX
3012  bibliography to each unit (e.
3013 \begin_inset space \thinspace{}
3014 \end_inset
3015
3016 g., section) of your document.
3017  In the output, a separate bibliography, containing only the references
3018  done in the current unit is generated.
3019 \end_layout
3020
3021 \begin_layout Standard
3022 If you use Bib\SpecialChar TeX
3023 , either the 
3024 \begin_inset Flex Code
3025 status collapsed
3026
3027 \begin_layout Plain Layout
3028 chapterbib
3029 \end_layout
3030
3031 \end_inset
3032
3033  or the 
3034 \begin_inset Flex Code
3035 status collapsed
3036
3037 \begin_layout Plain Layout
3038 bibtopic
3039 \end_layout
3040
3041 \end_inset
3042
3043  package is used to create multiple bibliographies.
3044  The former package is used if you select 
3045 \begin_inset Quotes eld
3046 \end_inset
3047
3048 per child document
3049 \begin_inset Quotes erd
3050 \end_inset
3051
3052  and do 
3053 \emph on
3054 not
3055 \emph default
3056  check 
3057 \begin_inset Flex Noun
3058 status collapsed
3059
3060 \begin_layout Plain Layout
3061 Sectioned Bibliography
3062 \end_layout
3063
3064 \end_inset
3065
3066 .
3067  In all other cases, 
3068 \begin_inset Flex Code
3069 status collapsed
3070
3071 \begin_layout Plain Layout
3072 bibtopic
3073 \end_layout
3074
3075 \end_inset
3076
3077  is used.
3078 \begin_inset Foot
3079 status collapsed
3080
3081 \begin_layout Plain Layout
3082 An alternative approach, if you are willing to use some 
3083 \begin_inset Flex Noun
3084 status collapsed
3085
3086 \begin_layout Plain Layout
3087 \SpecialChar TeX
3088  Code
3089 \end_layout
3090
3091 \end_inset
3092
3093  (see section
3094 \begin_inset space ~
3095 \end_inset
3096
3097
3098 \begin_inset CommandInset ref
3099 LatexCommand ref
3100 reference "sec:Inserting-TeX-Code"
3101
3102 \end_inset
3103
3104 ), is to use the 
3105 \begin_inset Flex Code
3106 status collapsed
3107
3108 \begin_layout Plain Layout
3109 bibunits
3110 \end_layout
3111
3112 \end_inset
3113
3114  package.
3115 \end_layout
3116
3117 \end_inset
3118
3119  If 
3120 \begin_inset Flex Code
3121 status collapsed
3122
3123 \begin_layout Plain Layout
3124 bibtopic
3125 \end_layout
3126
3127 \end_inset
3128
3129  is used, \SpecialChar LyX
3130  encloses the specified units in 
3131 \begin_inset Flex Code
3132 status collapsed
3133
3134 \begin_layout Plain Layout
3135 bibtopic
3136 \end_layout
3137
3138 \end_inset
3139
3140 's 
3141 \begin_inset Flex Code
3142 status collapsed
3143
3144 \begin_layout Plain Layout
3145
3146 \backslash
3147 begin{btUnit}
3148 \end_layout
3149
3150 \end_inset
3151
3152  and 
3153 \begin_inset Flex Code
3154 status collapsed
3155
3156 \begin_layout Plain Layout
3157
3158 \backslash
3159 end{btUnit}
3160 \end_layout
3161
3162 \end_inset
3163
3164  in order to create the units.
3165  Note that this approach has some limitations.
3166  First, every citation reference has to be inside some 
3167 \begin_inset Flex Code
3168 status collapsed
3169
3170 \begin_layout Plain Layout
3171 btUnit
3172 \end_layout
3173
3174 \end_inset
3175
3176 .
3177  So citations outside a defined unit (e.
3178 \begin_inset space \thinspace{}
3179 \end_inset
3180
3181 g., before the first section if you use 
3182 \begin_inset Quotes eld
3183 \end_inset
3184
3185 by section
3186 \begin_inset Quotes erd
3187 \end_inset
3188
3189 ) will appear as 
3190 \begin_inset Quotes eld
3191 \end_inset
3192
3193 ???
3194 \begin_inset Quotes erd
3195 \end_inset
3196
3197 .
3198  You can also create your own units by entering 
3199 \begin_inset Flex Code
3200 status collapsed
3201
3202 \begin_layout Plain Layout
3203
3204 \backslash
3205 begin{btUnit}
3206 \end_layout
3207
3208 \end_inset
3209
3210  and 
3211 \begin_inset Flex Code
3212 status collapsed
3213
3214 \begin_layout Plain Layout
3215
3216 \backslash
3217 end{btUnit}
3218 \end_layout
3219
3220 \end_inset
3221
3222  as \SpecialChar TeX
3223  code (for instance to work around the mentioned limitation).
3224  Note, though, that 
3225 \begin_inset Flex Code
3226 status collapsed
3227
3228 \begin_layout Plain Layout
3229 btUnit
3230 \end_layout
3231
3232 \end_inset
3233
3234 s cannot be nested.
3235  A second limitation is that 
3236 \begin_inset Flex Code
3237 status collapsed
3238
3239 \begin_layout Plain Layout
3240 bibtopic
3241 \end_layout
3242
3243 \end_inset
3244
3245  always processes all references of a bibliography database, even if they
3246  are not cited.
3247  This can result in odd labels (e.
3248 \begin_inset space \thinspace{}
3249 \end_inset
3250
3251 g.
3252  
3253 \begin_inset Quotes eld
3254 \end_inset
3255
3256 Miller 2014b
3257 \begin_inset Quotes erd
3258 \end_inset
3259
3260  if two works of this author from 2014 are in the database, even if only
3261  one is cited).
3262 \end_layout
3263
3264 \begin_layout Standard
3265 If you use 
3266 \family sans
3267 Biblatex
3268 \family default
3269 , the 
3270 \begin_inset Flex Code
3271 status collapsed
3272
3273 \begin_layout Plain Layout
3274 refsection
3275 \end_layout
3276
3277 \end_inset
3278
3279  option is used instead.
3280  If you need specific units, you can start them with the \SpecialChar TeX
3281  code 
3282 \begin_inset Flex Code
3283 status collapsed
3284
3285 \begin_layout Plain Layout
3286
3287 \backslash
3288 newrefsection
3289 \end_layout
3290
3291 \end_inset
3292
3293  or 
3294 \begin_inset Flex Code
3295 status collapsed
3296
3297 \begin_layout Plain Layout
3298
3299 \backslash
3300 newrefsegment
3301 \end_layout
3302
3303 \end_inset
3304
3305 , respectively.
3306  If you also want to control the end of the unit, use the environment 
3307 \begin_inset Flex Code
3308 status collapsed
3309
3310 \begin_layout Plain Layout
3311
3312 \backslash
3313 begin{refsection}
3314 \end_layout
3315
3316 \end_inset
3317
3318  \SpecialChar ldots
3319  
3320 \begin_inset Flex Code
3321 status collapsed
3322
3323 \begin_layout Plain Layout
3324
3325 \backslash
3326 end{refsection}
3327 \end_layout
3328
3329 \end_inset
3330
3331  instead.
3332  Note, though, that 
3333 \begin_inset Flex Code
3334 status collapsed
3335
3336 \begin_layout Plain Layout
3337 refsection
3338 \end_layout
3339
3340 \end_inset
3341
3342 s cannot be nested.
3343  In addition to the individual bibliography of the current unit, 
3344 \family sans
3345 Biblatex
3346 \family default
3347  also provides an easy way to output all bibliographies, subsequently, at
3348  one place (e.
3349 \begin_inset space \thinspace{}
3350 \end_inset
3351
3352 g., at the end of the document).
3353  Select 
3354 \begin_inset Quotes eld
3355 \end_inset
3356
3357 all reference units
3358 \begin_inset Quotes erd
3359 \end_inset
3360
3361  from the Content combo box of the Bib(la)TeX inset dialog in order to achieve
3362  this.
3363  Please refer to the 
3364 \family sans
3365 Biblatex
3366 \family default
3367  manual for more information on this topic.
3368 \end_layout
3369
3370 \begin_layout Section
3371 Multipart Documents
3372 \end_layout
3373
3374 \begin_layout Subsection
3375 General Operation
3376 \end_layout
3377
3378 \begin_layout Standard
3379 When you are working on a large file with many sections, it is often convenient
3380  to break up the document into several files, or perhaps you have something
3381  where a table may change from time to time, but the preceding text does
3382  not.
3383  In these cases, you should seriously consider using multipart documents.
3384  For example, scientific papers often have five major sections: the introduction
3385 , observations, results, discussion, and conclusion.
3386  Each of these could be its own separate \SpecialChar LyX
3387  file, with one 
3388 \begin_inset Quotes eld
3389 \end_inset
3390
3391 master
3392 \begin_inset Quotes erd
3393 \end_inset
3394
3395  file which contains the title, authors, abstract, references, etc., plus
3396  the five included files.
3397  It is important to note that each of these files is a full \SpecialChar LyX
3398  file which
3399  can be formatted and printed on its own, as well as included in a master
3400  file.
3401  Each of these files must have the same document class, however—don't attempt
3402  to mix book classes with article classes.
3403  You may also include \SpecialChar LaTeX
3404  files; however, these files must not have their own
3405  preamble (i.
3406 \begin_inset space \thinspace{}
3407 \end_inset
3408
3409 e.
3410 \begin_inset space \space{}
3411 \end_inset
3412
3413 everything up to and including the 
3414 \begin_inset Flex Code
3415 status collapsed
3416
3417 \begin_layout Plain Layout
3418
3419 \backslash
3420 begin{document}
3421 \end_layout
3422
3423 \end_inset
3424
3425  line as well as the 
3426 \begin_inset Flex Code
3427 status collapsed
3428
3429 \begin_layout Plain Layout
3430
3431 \backslash
3432 end{document}
3433 \end_layout
3434
3435 \end_inset
3436
3437  line must be deleted) or else errors will be generated when you try to
3438  make a DVI file.
3439 \end_layout
3440
3441 \begin_layout Standard
3442 \SpecialChar LyX
3443  allows you to include files quite easily with 
3444 \begin_inset Flex Noun
3445 status collapsed
3446
3447 \begin_layout Plain Layout
3448 Insert\SpecialChar menuseparator
3449 Child
3450 \begin_inset space ~
3451 \end_inset
3452
3453 Document
3454 \end_layout
3455
3456 \end_inset
3457
3458 .
3459  When you click on this selection a small box is inserted into the file
3460  at the current cursor location.
3461  Clicking on the box raises a dialog which allows you to select the file
3462  to be included, and the method of its inclusion.
3463  
3464 \end_layout
3465
3466 \begin_layout Standard
3467 The file selection box should by now be obvious.
3468  The three inclusion methods are 
3469 \begin_inset Quotes eld
3470 \end_inset
3471
3472 include
3473 \begin_inset Quotes erd
3474 \end_inset
3475
3476
3477 \begin_inset Quotes eld
3478 \end_inset
3479
3480 input
3481 \begin_inset Quotes erd
3482 \end_inset
3483
3484 , and 
3485 \begin_inset Quotes eld
3486 \end_inset
3487
3488 verbatim
3489 \begin_inset Quotes erd
3490 \end_inset
3491
3492 .
3493  The methods 
3494 \begin_inset Quotes eld
3495 \end_inset
3496
3497 include
3498 \begin_inset Quotes erd
3499 \end_inset
3500
3501  and 
3502 \begin_inset Quotes eld
3503 \end_inset
3504
3505 input
3506 \begin_inset Quotes erd
3507 \end_inset
3508
3509  are similar in many ways, but there are also some notable differences:
3510 \end_layout
3511
3512 \begin_layout Enumerate
3513 Files that are 
3514 \begin_inset Quotes eld
3515 \end_inset
3516
3517 included
3518 \begin_inset Quotes erd
3519 \end_inset
3520
3521  are typeset beginning on a new page, while files that are 
3522 \begin_inset Quotes eld
3523 \end_inset
3524
3525 inputted
3526 \begin_inset Quotes erd
3527 \end_inset
3528
3529  are typeset starting on the current page.
3530 \end_layout
3531
3532 \begin_layout Enumerate
3533 \begin_inset Quotes eld
3534 \end_inset
3535
3536 Included
3537 \begin_inset Quotes erd
3538 \end_inset
3539
3540  files cannot themselves 
3541 \begin_inset Quotes eld
3542 \end_inset
3543
3544 include
3545 \begin_inset Quotes erd
3546 \end_inset
3547
3548  further files (
3549 \begin_inset Quotes eld
3550 \end_inset
3551
3552 grandchilds
3553 \begin_inset Quotes erd
3554 \end_inset
3555
3556 ).
3557  With 
3558 \begin_inset Quotes eld
3559 \end_inset
3560
3561 input
3562 \begin_inset Quotes erd
3563 \end_inset
3564
3565 , on the other hand, infinite sub-inputting is possible.
3566 \end_layout
3567
3568 \begin_layout Enumerate
3569 \begin_inset Quotes eld
3570 \end_inset
3571
3572 Include
3573 \begin_inset Quotes erd
3574 \end_inset
3575
3576  allow for the output of only selected 
3577 \begin_inset Quotes eld
3578 \end_inset
3579
3580 included
3581 \begin_inset Quotes erd
3582 \end_inset
3583
3584  files, while maintaining the actual counters (pagination etc.) and references
3585  (please refer to the section 
3586 \emph on
3587 Child
3588 \begin_inset space ~
3589 \end_inset
3590
3591 Documents
3592 \emph default
3593  of the 
3594 \emph on
3595 Embedded
3596 \begin_inset space ~
3597 \end_inset
3598
3599 Objects
3600 \emph default
3601  manual for details).
3602 \end_layout
3603
3604 \begin_layout Standard
3605 Hence, 
3606 \begin_inset Quotes eld
3607 \end_inset
3608
3609 include
3610 \begin_inset Quotes erd
3611 \end_inset
3612
3613  is the preferred method for chapters that are outsourced to child documents,
3614  while 
3615 \begin_inset Quotes eld
3616 \end_inset
3617
3618 input
3619 \begin_inset Quotes erd
3620 \end_inset
3621
3622  is more suitable for arbitrary file inheritance.
3623 \end_layout
3624
3625 \begin_layout Standard
3626
3627 \begin_inset Quotes eld
3628 \end_inset
3629
3630 verbatim
3631 \begin_inset Quotes erd
3632 \end_inset
3633
3634  included file allows you to include a file typeset exactly as it appears
3635  in the file, i.
3636 \begin_inset space \thinspace{}
3637 \end_inset
3638
3639 e.
3640 \begin_inset space \space{}
3641 \end_inset
3642
3643 in 
3644 \begin_inset Flex Code
3645 status collapsed
3646
3647 \begin_layout Plain Layout
3648 verbatim
3649 \end_layout
3650
3651 \end_inset
3652
3653  mode, with the characters set in a fixed-width typewriter font.
3654  Normally, spaces in this file are invisible, though two consecutive spaces
3655  are conserved, unlike \SpecialChar LyX
3656 's normal treatment of spaces.
3657  However, setting the 
3658 \begin_inset Flex Noun
3659 status collapsed
3660
3661 \begin_layout Plain Layout
3662 Mark
3663 \begin_inset space ~
3664 \end_inset
3665
3666 spaces
3667 \begin_inset space ~
3668 \end_inset
3669
3670 in
3671 \begin_inset space ~
3672 \end_inset
3673
3674 output
3675 \end_layout
3676
3677 \end_inset
3678
3679  checkbox typesets a mark to unambiguously define the presence of a space.
3680  
3681 \end_layout
3682
3683 \begin_layout Standard
3684 Generally, the master file is converted into a full \SpecialChar LaTeX
3685  file before typesetting,
3686  while the included files are converted to \SpecialChar LaTeX
3687  files that do not have all the
3688  preamble information.
3689 \end_layout
3690
3691 \begin_layout Subsection
3692 Cross-References Between Files
3693 \end_layout
3694
3695 \begin_layout Standard
3696 \begin_inset Box Shadowbox
3697 position "t"
3698 hor_pos "c"
3699 has_inner_box 1
3700 inner_pos "t"
3701 use_parbox 0
3702 use_makebox 0
3703 width "100col%"
3704 special "none"
3705 height "1in"
3706 height_special "totalheight"
3707 thickness "0.4pt"
3708 separation "3pt"
3709 shadowsize "4pt"
3710 framecolor "black"
3711 backgroundcolor "none"
3712 status open
3713
3714 \begin_layout Plain Layout
3715 This section is somewhat out of date.
3716  Need to describe default master documents and how children are opened when
3717  the master is.
3718  [[FIXME]]
3719 \end_layout
3720
3721 \end_inset
3722
3723
3724 \end_layout
3725
3726 \begin_layout Standard
3727 It is possible to set up cross-references between the different files.
3728  First, open all the files in question: let's call them A and B in a two
3729  file example, where B is included in A.
3730  Let's say you insert a label in A, then want to reference it in B.
3731  Open the cross-reference dialog whilst in document B, and you can select
3732  the 
3733 \begin_inset Quotes eld
3734 \end_inset
3735
3736 buffer
3737 \begin_inset Quotes erd
3738 \end_inset
3739
3740  to use.
3741 \end_layout
3742
3743 \begin_layout Subsection
3744 Bibliography Lists in all Subdocuments
3745 \end_layout
3746
3747 \begin_layout Standard
3748 If you work with child documents, you might want to have only one main bibliogra
3749 phy at the end, but still be able to have a selected bibliography for the
3750  child if you output it on its own.
3751  Here is how to achieve this.
3752 \end_layout
3753
3754 \begin_layout Standard
3755 For the main document, you just insert a bibliography inset at the place
3756  where the main bibliography has to appear (within the master file or within
3757  a child).
3758  If the bibliography inset is in the master file, the references will be
3759  inherited by all children, so they are available in the citation dialog
3760  within each child.
3761 \end_layout
3762
3763 \begin_layout Standard
3764 For child-specific bibliographies, insert bibliography insets within the
3765  child documents, at the place where the bibliography should appear when
3766  the child is compiled separately.
3767  However, the trick is to insert them into a branch (
3768 \family sans
3769 Insert\SpecialChar menuseparator
3770 Branch\SpecialChar menuseparator
3771 Insert New Branch...
3772 \family default
3773 ), e.
3774 \begin_inset space \thinspace{}
3775 \end_inset
3776
3777 g.
3778  called 
3779 \begin_inset Quotes eld
3780 \end_inset
3781
3782 Childonly
3783 \begin_inset Quotes erd
3784 \end_inset
3785
3786 .
3787  Within the children, activate the branch (
3788 \family sans
3789 Document\SpecialChar menuseparator
3790 Settings...\SpecialChar menuseparator
3791 Branches
3792 \family default
3793 ).
3794  Within the master, deactivate the branch (
3795 \family sans
3796 Document\SpecialChar menuseparator
3797 Settings...\SpecialChar menuseparator
3798 Branches
3799 \family default
3800 ).
3801  Now the child's bibliography will be ignored by the master, but considered
3802  by the child.
3803 \end_layout
3804
3805 \begin_layout Standard
3806 If you need multiple bibliographies (e.
3807 \begin_inset space \thinspace{}
3808 \end_inset
3809
3810 g., one per child in the 
3811 \emph on
3812 main document
3813 \emph default
3814 ), please refer to sec.
3815 \begin_inset space ~
3816 \end_inset
3817
3818
3819 \begin_inset CommandInset ref
3820 LatexCommand ref
3821 reference "subsec:Multiple-Bibliographies"
3822
3823 \end_inset
3824
3825 .
3826 \end_layout
3827
3828 \begin_layout Section
3829 \SpecialChar LyX
3830  Archives
3831 \end_layout
3832
3833 \begin_layout Standard
3834 Users sometimes need to be able to 
3835 \begin_inset Quotes eld
3836 \end_inset
3837
3838 bundle
3839 \begin_inset Quotes erd
3840 \end_inset
3841
3842  a \SpecialChar LyX
3843  file together with all the images (and other files) on which it depends,
3844  either for sending to a publisher or for sharing with a co-author.
3845  \SpecialChar LyX
3846  includes a Python script (
3847 \begin_inset Flex Code
3848 status collapsed
3849
3850 \begin_layout Plain Layout
3851 lyxpak.py
3852 \end_layout
3853
3854 \end_inset
3855
3856 ) that automates this process.
3857  To use it, you must have either the 
3858 \begin_inset Flex Code
3859 status collapsed
3860
3861 \begin_layout Plain Layout
3862 zipfile
3863 \end_layout
3864
3865 \end_inset
3866
3867  or 
3868 \begin_inset Flex Code
3869 status collapsed
3870
3871 \begin_layout Plain Layout
3872 tarfile
3873 \end_layout
3874
3875 \end_inset
3876
3877  python modules installed on your system.
3878  By default, the script prefers the 
3879 \begin_inset Flex Code
3880 status collapsed
3881
3882 \begin_layout Plain Layout
3883 gzip
3884 \end_layout
3885
3886 \end_inset
3887
3888 -compressed 
3889 \begin_inset Flex Code
3890 status collapsed
3891
3892 \begin_layout Plain Layout
3893 tar
3894 \end_layout
3895
3896 \end_inset
3897
3898  format on Unix-like systems and the 
3899 \begin_inset Flex Code
3900 status collapsed
3901
3902 \begin_layout Plain Layout
3903 zip
3904 \end_layout
3905
3906 \end_inset
3907
3908  format on Windows.
3909 \end_layout
3910
3911 \begin_layout Standard
3912 \SpecialChar LyX
3913 's configuration process will set the script up to export a `\SpecialChar LyX
3914  Archive',
3915  and this format will then be available under 
3916 \begin_inset Flex Code
3917 status collapsed
3918
3919 \begin_layout Plain Layout
3920 File\SpecialChar menuseparator
3921 Export
3922 \end_layout
3923
3924 \end_inset
3925
3926 .
3927 \end_layout
3928
3929 \begin_layout Standard
3930 Independently of the platform, the generation of a particular archive format
3931  can be forced by adding either the 
3932 \begin_inset Flex Code
3933 status collapsed
3934
3935 \begin_layout Plain Layout
3936 -t
3937 \end_layout
3938
3939 \end_inset
3940
3941  (for the 
3942 \begin_inset Flex Code
3943 status collapsed
3944
3945 \begin_layout Plain Layout
3946 tar
3947 \end_layout
3948
3949 \end_inset
3950
3951  format) or 
3952 \begin_inset Flex Code
3953 status collapsed
3954
3955 \begin_layout Plain Layout
3956 -z
3957 \end_layout
3958
3959 \end_inset
3960
3961  (for the 
3962 \begin_inset Flex Code
3963 status collapsed
3964
3965 \begin_layout Plain Layout
3966 zip
3967 \end_layout
3968
3969 \end_inset
3970
3971  format) switch to the 
3972 \begin_inset Flex Code
3973 status collapsed
3974
3975 \begin_layout Plain Layout
3976 \SpecialChar LyX
3977 \SpecialChar menuseparator
3978 \SpecialChar LyX
3979  Archive
3980 \end_layout
3981
3982 \end_inset
3983
3984  converter in 
3985 \begin_inset Flex Code
3986 status collapsed
3987
3988 \begin_layout Plain Layout
3989 Tools\SpecialChar menuseparator
3990 Preferences\SpecialChar menuseparator
3991 File Handling\SpecialChar menuseparator
3992 Converters
3993 \end_layout
3994
3995 \end_inset
3996
3997 .
3998  (Make sure you add the switch after the script name, not before it.)
3999 \end_layout
4000
4001 \begin_layout Section
4002 Fancy Headers and Footers
4003 \end_layout
4004
4005 \begin_layout Standard
4006 The default page layout is rather plain; for an 
4007 \begin_inset Flex Code
4008 status collapsed
4009
4010 \begin_layout Plain Layout
4011 article
4012 \end_layout
4013
4014 \end_inset
4015
4016  document class, all you get is a centered page number at the bottom of
4017  the page.
4018  This document uses KOMA-script's book class, so it appears to be a bit
4019  fancier.
4020  But to really put on a show, you need to set the document page style to
4021  
4022 \begin_inset Quotes eld
4023 \end_inset
4024
4025 fancy
4026 \begin_inset Quotes erd
4027 \end_inset
4028
4029 , as mentioned in the 
4030 \emph on
4031 User Guide
4032 \emph default
4033 .
4034  This section describes the \SpecialChar LaTeX
4035  code you need to insert in your \SpecialChar LaTeX
4036  preamble in
4037  order to get the desired effects.
4038 \end_layout
4039
4040 \begin_layout Standard
4041 For more information on fancy headers, see the 
4042 \begin_inset Flex Code
4043 status collapsed
4044
4045 \begin_layout Plain Layout
4046 fancyhdr
4047 \end_layout
4048
4049 \end_inset
4050
4051  package documentation.
4052  (
4053 \begin_inset Flex URL
4054 status collapsed
4055
4056 \begin_layout Plain Layout
4057
4058 https://www.ctan.org/tex-archive/help/Catalogue/entries/fancyhdr.html
4059 \end_layout
4060
4061 \end_inset
4062
4063 )
4064 \end_layout
4065
4066 \begin_layout Standard
4067 The page header is divided into three fields, not surprisingly labeled 
4068 \begin_inset Quotes eld
4069 \end_inset
4070
4071 left
4072 \begin_inset Quotes erd
4073 \end_inset
4074
4075
4076 \begin_inset Quotes eld
4077 \end_inset
4078
4079 center
4080 \begin_inset Quotes erd
4081 \end_inset
4082
4083 , and 
4084 \begin_inset Quotes eld
4085 \end_inset
4086
4087 right
4088 \begin_inset Quotes erd
4089 \end_inset
4090
4091 .
4092  The footer is also divided into these three fields.
4093  The \SpecialChar LaTeX
4094  commands to set these fields in the simplest manner are 
4095 \begin_inset Flex Code
4096 status collapsed
4097
4098 \begin_layout Plain Layout
4099
4100 \backslash
4101 lhead
4102 \end_layout
4103
4104 \end_inset
4105
4106
4107 \begin_inset Flex Code
4108 status collapsed
4109
4110 \begin_layout Plain Layout
4111
4112 \backslash
4113 chead
4114 \end_layout
4115
4116 \end_inset
4117
4118
4119 \begin_inset Flex Code
4120 status collapsed
4121
4122 \begin_layout Plain Layout
4123
4124 \backslash
4125 rhead
4126 \end_layout
4127
4128 \end_inset
4129
4130
4131 \begin_inset Flex Code
4132 status collapsed
4133
4134 \begin_layout Plain Layout
4135
4136 \backslash
4137 lfoot
4138 \end_layout
4139
4140 \end_inset
4141
4142 , etc.
4143  Suppose you wish to put your name in the upper left hand corner of each
4144  page.
4145  Simply insert the following command in the preamble: 
4146 \end_layout
4147
4148 \begin_layout Standard
4149
4150 \family typewriter
4151
4152 \backslash
4153 lhead{John Q.
4154  DocWriter}
4155 \end_layout
4156
4157 \begin_layout Standard
4158 You will now see your name in the upper left.
4159  If a field has a default entry that you would like to get rid of (often
4160  the page number appears in the central footer) simply include a command
4161  with a blank argument, e.
4162 \begin_inset space \thinspace{}
4163 \end_inset
4164
4165 g.:
4166 \end_layout
4167
4168 \begin_layout Standard
4169
4170 \family typewriter
4171
4172 \backslash
4173 cfoot{}
4174 \end_layout
4175
4176 \begin_layout Standard
4177 Let's get really fancy: lets put the section number with the word 
4178 \begin_inset Quotes eld
4179 \end_inset
4180
4181 Section
4182 \begin_inset Quotes erd
4183 \end_inset
4184
4185  (e.
4186 \begin_inset space \thinspace{}
4187 \end_inset
4188
4189 g.
4190 \begin_inset space \space{}
4191 \end_inset
4192
4193 Section 3) in the upper left, the page number (e.
4194 \begin_inset space \thinspace{}
4195 \end_inset
4196
4197 g.
4198 \begin_inset space \space{}
4199 \end_inset
4200
4201 Page 4) in the upper right, your name in the lower left, and the date in
4202  the lower right.
4203  The following commands should now appear in the preamble:
4204 \end_layout
4205
4206 \begin_layout Standard
4207
4208 \family typewriter
4209
4210 \backslash
4211 lhead{Section 
4212 \backslash
4213 thesection}
4214 \end_layout
4215
4216 \begin_layout Standard
4217
4218 \family typewriter
4219
4220 \backslash
4221 chead{}
4222 \end_layout
4223
4224 \begin_layout Standard
4225
4226 \family typewriter
4227
4228 \backslash
4229 rhead{Page 
4230 \backslash
4231 thepage}
4232 \end_layout
4233
4234 \begin_layout Standard
4235
4236 \family typewriter
4237
4238 \backslash
4239 lfoot{John Q.
4240  DocWriter}
4241 \end_layout
4242
4243 \begin_layout Standard
4244
4245 \family typewriter
4246
4247 \backslash
4248 cfoot{}
4249 \end_layout
4250
4251 \begin_layout Standard
4252
4253 \family typewriter
4254
4255 \backslash
4256 rfoot{
4257 \backslash
4258 today}
4259 \end_layout
4260
4261 \begin_layout Standard
4262 The commands 
4263 \begin_inset Flex Code
4264 status collapsed
4265
4266 \begin_layout Plain Layout
4267
4268 \backslash
4269 thesection
4270 \end_layout
4271
4272 \end_inset
4273
4274  and 
4275 \begin_inset Flex Code
4276 status collapsed
4277
4278 \begin_layout Plain Layout
4279
4280 \backslash
4281 thepage
4282 \end_layout
4283
4284 \end_inset
4285
4286  access \SpecialChar LaTeX
4287 's section and page counters, and so print out the current section
4288  and page numbers.
4289  
4290 \begin_inset Flex Code
4291 status collapsed
4292
4293 \begin_layout Plain Layout
4294
4295 \backslash
4296 today
4297 \end_layout
4298
4299 \end_inset
4300
4301  simply prints out today's date.
4302 \end_layout
4303
4304 \begin_layout Standard
4305 The thicknesses of the horizontal rules drawn beneath the header and above
4306  the footer can also be modified.
4307  If you don't want one of the rules, set its thickness to 0.
4308  The header rule has a default thickness of 0.4pt, the footer rule is 0pt.
4309  Use commands
4310 \family typewriter
4311  
4312 \family default
4313 like 
4314 \begin_inset Flex Code
4315 status collapsed
4316
4317 \begin_layout Plain Layout
4318
4319 \backslash
4320 renewcommand{
4321 \backslash
4322 headrulewidth}{0.4pt}
4323 \end_layout
4324
4325 \end_inset
4326
4327  and 
4328 \begin_inset Flex Code
4329 status collapsed
4330
4331 \begin_layout Plain Layout
4332
4333 \backslash
4334 renewcommand{
4335 \backslash
4336 footrulewidth}{0.4pt}
4337 \end_layout
4338
4339 \end_inset
4340
4341  to set the thicknesses.
4342 \end_layout
4343
4344 \begin_layout Standard
4345 You can switch the header/footer settings on and off for individual pages
4346  using commands like 
4347 \begin_inset Flex Code
4348 status collapsed
4349
4350 \begin_layout Plain Layout
4351
4352 \backslash
4353 thispagestyle{empty}
4354 \end_layout
4355
4356 \end_inset
4357
4358
4359 \begin_inset Flex Code
4360 status collapsed
4361
4362 \begin_layout Plain Layout
4363
4364 \backslash
4365 thispagestyle{plain}
4366 \end_layout
4367
4368 \end_inset
4369
4370 , and 
4371 \begin_inset Flex Code
4372 status collapsed
4373
4374 \begin_layout Plain Layout
4375
4376 \backslash
4377 thispagestyle{fancy}
4378 \end_layout
4379
4380 \end_inset
4381
4382 .
4383  Simply insert them in the text on the page you want changed and mark them
4384  as \SpecialChar TeX
4385  code.
4386  In fact, title pages are marked as plain by default, while following pages
4387  are marked fancy when using the global fancy setting.
4388 \end_layout
4389
4390 \begin_layout Standard
4391 As a final example, it is possible to include an image in the header or
4392  footer.
4393  Suppose you want to put a company logo in the upper lefthand corner.
4394  You might try something like
4395 \end_layout
4396
4397 \begin_layout Standard
4398
4399 \family typewriter
4400
4401 \backslash
4402 lhead{
4403 \backslash
4404 resizebox{1in}{!}{
4405 \backslash
4406 includegraphics{logo.eps}}}
4407 \end_layout
4408
4409 \begin_layout Standard
4410 \noindent
4411 (you may need to preface this with 
4412 \begin_inset Flex Code
4413 status collapsed
4414
4415 \begin_layout Plain Layout
4416
4417 \backslash
4418 usepackage{graphics}
4419 \end_layout
4420
4421 \end_inset
4422
4423  if you don't include graphics elsewhere in your document).
4424 \end_layout
4425
4426 \begin_layout Section
4427 Itemize Bullet Selection
4428 \begin_inset CommandInset label
4429 LatexCommand label
4430 name "sec:bullet"
4431
4432 \end_inset
4433
4434
4435 \end_layout
4436
4437 \begin_layout Standard
4438 by
4439 \noun on
4440  Allan Rae
4441 \end_layout
4442
4443 \begin_layout Subsection
4444 Introduction
4445 \end_layout
4446
4447 \begin_layout Standard
4448 \SpecialChar LyX
4449  provides 216 bullet shapes that can be accessed from a simple dialog.
4450  Using this dialog you can easily specify what bullet shape to use at each
4451  level of an itemized list.
4452  These settings are document-wide so you won't be able to specify different
4453  sets of bullets for different paragraphs.
4454 \begin_inset Foot
4455 status collapsed
4456
4457 \begin_layout Plain Layout
4458 Well, actually you can but you'll have to do it by hand.
4459 \end_layout
4460
4461 \end_inset
4462
4463
4464 \end_layout
4465
4466 \begin_layout Subsection
4467 How it looks
4468 \end_layout
4469
4470 \begin_layout Standard
4471 Open the dialog by selecting the 
4472 \begin_inset Flex Noun
4473 status collapsed
4474
4475 \begin_layout Plain Layout
4476 Document\SpecialChar menuseparator
4477 Settings
4478 \end_layout
4479
4480 \end_inset
4481
4482  menu item and then select the 
4483 \begin_inset Flex Noun
4484 status collapsed
4485
4486 \begin_layout Plain Layout
4487 Bullets
4488 \end_layout
4489
4490 \end_inset
4491
4492  tab.
4493 \end_layout
4494
4495 \begin_layout Standard
4496 The dialog provides you with a table of bullet shapes.
4497  A column of buttons on the left of the table provides access to the six
4498  different panels of bullet shapes.
4499  The row of buttons across the top is used to select which bullet depth
4500  you are changing.
4501  A text entry under the table shows the currently selected bullet shape's
4502  \SpecialChar LaTeX
4503  equivalent and this can be edited if desired.
4504  If you do modify the text you will also need to specify any needed packages
4505  in the \SpecialChar LaTeX
4506  preamble.
4507 \end_layout
4508
4509 \begin_layout Standard
4510 The six panels are divided up by the packages they require.
4511  The following table shows the mappings from button name to \SpecialChar LaTeX
4512  package.
4513 \end_layout
4514
4515 \begin_layout Standard
4516 \align center
4517 \begin_inset Tabular
4518 <lyxtabular version="3" rows="7" columns="2">
4519 <features tabularvalignment="middle">
4520 <column alignment="center" valignment="top" width="0pt">
4521 <column alignment="center" valignment="top" width="0pt">
4522 <row>
4523 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4524 \begin_inset Text
4525
4526 \begin_layout Plain Layout
4527
4528 \family roman
4529 \series medium
4530 \shape up
4531 \size normal
4532 \emph off
4533 \bar no
4534 \noun off
4535 \color none
4536 Button
4537 \end_layout
4538
4539 \end_inset
4540 </cell>
4541 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4542 \begin_inset Text
4543
4544 \begin_layout Plain Layout
4545
4546 \family roman
4547 \series medium
4548 \shape up
4549 \size normal
4550 \emph off
4551 \bar no
4552 \noun off
4553 \color none
4554 Packages Required
4555 \end_layout
4556
4557 \end_inset
4558 </cell>
4559 </row>
4560 <row>
4561 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4562 \begin_inset Text
4563
4564 \begin_layout Plain Layout
4565
4566 \family sans
4567 \series medium
4568 \shape up
4569 \size normal
4570 \emph off
4571 \bar no
4572 \noun off
4573 \color none
4574 Standard
4575 \end_layout
4576
4577 \end_inset
4578 </cell>
4579 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4580 \begin_inset Text
4581
4582 \begin_layout Plain Layout
4583
4584 \series medium
4585 \shape up
4586 \size normal
4587 \emph off
4588 \bar no
4589 \noun off
4590 \color none
4591 base \SpecialChar LaTeX
4592
4593 \end_layout
4594
4595 \end_inset
4596 </cell>
4597 </row>
4598 <row>
4599 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4600 \begin_inset Text
4601
4602 \begin_layout Plain Layout
4603
4604 \family sans
4605 \series medium
4606 \shape up
4607 \size normal
4608 \emph off
4609 \bar no
4610 \noun off
4611 \color none
4612 Maths
4613 \end_layout
4614
4615 \end_inset
4616 </cell>
4617 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4618 \begin_inset Text
4619
4620 \begin_layout Plain Layout
4621
4622 \family typewriter
4623 \series medium
4624 \shape up
4625 \size normal
4626 \emph off
4627 \bar no
4628 \noun off
4629 \color none
4630 amssymb.sty
4631 \end_layout
4632
4633 \end_inset
4634 </cell>
4635 </row>
4636 <row>
4637 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4638 \begin_inset Text
4639
4640 \begin_layout Plain Layout
4641
4642 \family sans
4643 \series medium
4644 \shape up
4645 \size normal
4646 \emph off
4647 \bar no
4648 \noun off
4649 \color none
4650 Ding1
4651 \end_layout
4652
4653 \end_inset
4654 </cell>
4655 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4656 \begin_inset Text
4657
4658 \begin_layout Plain Layout
4659
4660 \family typewriter
4661 \series medium
4662 \shape up
4663 \size normal
4664 \emph off
4665 \bar no
4666 \noun off
4667 \color none
4668 pifont.sty
4669 \end_layout
4670
4671 \end_inset
4672 </cell>
4673 </row>
4674 <row>
4675 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4676 \begin_inset Text
4677
4678 \begin_layout Plain Layout
4679
4680 \family sans
4681 \series medium
4682 \shape up
4683 \size normal
4684 \emph off
4685 \bar no
4686 \noun off
4687 \color none
4688 Ding2
4689 \end_layout
4690
4691 \end_inset
4692 </cell>
4693 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4694 \begin_inset Text
4695
4696 \begin_layout Plain Layout
4697
4698 \family typewriter
4699 \series medium
4700 \shape up
4701 \size normal
4702 \emph off
4703 \bar no
4704 \noun off
4705 \color none
4706 pifont.sty
4707 \end_layout
4708
4709 \end_inset
4710 </cell>
4711 </row>
4712 <row>
4713 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4714 \begin_inset Text
4715
4716 \begin_layout Plain Layout
4717
4718 \family sans
4719 \series medium
4720 \shape up
4721 \size normal
4722 \emph off
4723 \bar no
4724 \noun off
4725 \color none
4726 Ding3
4727 \end_layout
4728
4729 \end_inset
4730 </cell>
4731 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4732 \begin_inset Text
4733
4734 \begin_layout Plain Layout
4735
4736 \family typewriter
4737 \series medium
4738 \shape up
4739 \size normal
4740 \emph off
4741 \bar no
4742 \noun off
4743 \color none
4744 pifont.sty
4745 \end_layout
4746
4747 \end_inset
4748 </cell>
4749 </row>
4750 <row>
4751 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4752 \begin_inset Text
4753
4754 \begin_layout Plain Layout
4755
4756 \family sans
4757 \series medium
4758 \shape up
4759 \size normal
4760 \emph off
4761 \bar no
4762 \noun off
4763 \color none
4764 Ding4
4765 \end_layout
4766
4767 \end_inset
4768 </cell>
4769 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4770 \begin_inset Text
4771
4772 \begin_layout Plain Layout
4773
4774 \family typewriter
4775 \series medium
4776 \shape up
4777 \size normal
4778 \emph off
4779 \bar no
4780 \noun off
4781 \color none
4782 pifont.sty
4783 \end_layout
4784
4785 \end_inset
4786 </cell>
4787 </row>
4788 </lyxtabular>
4789
4790 \end_inset
4791
4792
4793 \end_layout
4794
4795 \begin_layout Standard
4796 \SpecialChar LyX
4797  doesn't stop you using bullets from packages you don't have.
4798  If you get errors from \SpecialChar LaTeX
4799  when you try to view or print the file, then it
4800  is likely you are missing a package.
4801 \begin_inset Foot
4802 status collapsed
4803
4804 \begin_layout Plain Layout
4805 \SpecialChar LyX
4806  doesn't restrict your use since you may be editing locally and exporting
4807  elsewhere.
4808 \end_layout
4809
4810 \end_inset
4811
4812
4813 \end_layout
4814
4815 \begin_layout Subsection
4816 How to use it
4817 \end_layout
4818
4819 \begin_layout Standard
4820 Select which bullet depth you want to change then select the bullet shape
4821  and size.
4822  Any changes will not be visible in \SpecialChar LyX
4823 , but are visible when viewing the document.
4824 \end_layout
4825
4826 \begin_layout Standard
4827 You can reset a bullet shape to the default simply by clicking your right
4828  mouse button on the appropriate bullet depth button.
4829 \begin_inset Foot
4830 status open
4831
4832 \begin_layout Plain Layout
4833 If you 
4834 \emph on
4835 really
4836 \emph default
4837  want to have multiple sets of paragraphs with different sets of bullets
4838  in each, then you're going to have to get your hands dirty with \SpecialChar TeX
4839  code.
4840  The bullet selection dialog can help though because it provides you with
4841  the \SpecialChar LaTeX
4842  code for a wide range of bullet shapes.
4843  To make your own custom paragraphs you have the following options:
4844 \end_layout
4845
4846 \begin_layout Plain Layout
4847 \begin_inset ERT
4848 status open
4849
4850 \begin_layout Plain Layout
4851
4852
4853 \backslash
4854 let
4855 \backslash
4856 savelabelitemi=
4857 \backslash
4858 labelitemi
4859 \end_layout
4860
4861 \end_inset
4862
4863
4864 \end_layout
4865
4866 \begin_layout Plain Layout
4867 \begin_inset ERT
4868 status open
4869
4870 \begin_layout Plain Layout
4871
4872
4873 \backslash
4874 renewcommand
4875 \backslash
4876 labelitemi[0]{
4877 \backslash
4878 small
4879 \backslash
4880 (
4881 \backslash
4882 sharp
4883 \backslash
4884 )}
4885 \end_layout
4886
4887 \end_inset
4888
4889
4890 \end_layout
4891
4892 \begin_layout Itemize
4893 Use the \SpecialChar LaTeX
4894  command 
4895 \begin_inset Flex Code
4896 status collapsed
4897
4898 \begin_layout Plain Layout
4899
4900 \backslash
4901 renewcommand{}{}
4902 \end_layout
4903
4904 \end_inset
4905
4906  to specify a new bullet shape for a given depth.
4907  You'll also need to save the current bullet shape so you can restore it
4908  again afterwards.
4909  In this itemized list the following \SpecialChar LaTeX
4910  code was used to change the bullet
4911  used for the first depth.
4912 \end_layout
4913
4914 \begin_deeper
4915 \begin_layout LyX-Code
4916
4917 \backslash
4918 let
4919 \backslash
4920 savelabelitemi=
4921 \backslash
4922 labelitemi 
4923 \end_layout
4924
4925 \begin_layout LyX-Code
4926
4927 \backslash
4928 renewcommand
4929 \backslash
4930 labelitemi[0]{
4931 \backslash
4932 small
4933 \backslash
4934 (
4935 \backslash
4936 sharp
4937 \backslash
4938 )}
4939 \end_layout
4940
4941 \end_deeper
4942 \begin_layout Itemize
4943 Note that the itemize depth is specified in Roman numerals as part of the
4944  
4945 \family typewriter
4946
4947 \backslash
4948 labelitem
4949 \family default
4950  command.
4951 \end_layout
4952
4953 \begin_layout Itemize
4954 \begin_inset Argument item:1
4955 status open
4956
4957 \begin_layout Plain Layout
4958 \begin_inset ERT
4959 status open
4960
4961 \begin_layout Plain Layout
4962
4963
4964 \backslash
4965 (
4966 \backslash
4967 star
4968 \backslash
4969 )
4970 \end_layout
4971
4972 \end_inset
4973
4974
4975 \end_layout
4976
4977 \end_inset
4978
4979  Specify each individual entry by starting each item with the bullet shape
4980  enclosed in a 
4981 \begin_inset Quotes eld
4982 \end_inset
4983
4984 Custom Item
4985 \begin_inset Quotes erd
4986 \end_inset
4987
4988  inset (available at 
4989 \family sans
4990 Insert\SpecialChar menuseparator
4991 Custom Item
4992 \family default
4993 ) and set as 
4994 \begin_inset Flex Noun
4995 status collapsed
4996
4997 \begin_layout Plain Layout
4998 \SpecialChar TeX
4999  Code
5000 \end_layout
5001
5002 \end_inset
5003
5004 .
5005  For example, this item was started with 
5006 \begin_inset Flex Code
5007 status collapsed
5008
5009 \begin_layout Plain Layout
5010
5011 \backslash
5012 (
5013 \backslash
5014 star
5015 \backslash
5016 )
5017 \end_layout
5018
5019 \end_inset
5020
5021 .
5022 \end_layout
5023
5024 \begin_layout Plain Layout
5025 \begin_inset ERT
5026 status open
5027
5028 \begin_layout Plain Layout
5029
5030
5031 \backslash
5032 renewcommand
5033 \backslash
5034 labelitemi[0]{
5035 \backslash
5036 savelabelitemi}
5037 \end_layout
5038
5039 \end_inset
5040
5041
5042 \end_layout
5043
5044 \begin_layout Plain Layout
5045 You'll also need to revert the labelitem back to its previous setting for
5046  the global bullet shape settings to remain in effect.
5047  The way used here was:
5048 \end_layout
5049
5050 \begin_layout LyX-Code
5051
5052 \backslash
5053 renewcommand
5054 \backslash
5055 labelitemi[0]{
5056 \backslash
5057 savelabelitemi}
5058 \end_layout
5059
5060 \end_inset
5061
5062
5063 \end_layout
5064
5065 \begin_layout Chapter
5066 \SpecialChar LyX
5067  and the World Wide Web
5068 \end_layout
5069
5070 \begin_layout Standard
5071 \SpecialChar LyX
5072  has long supported the export of documents to various web-friendly formats,
5073  such as HTML.
5074  Before version 2.0, however, HTML export was always accomplished by the
5075  use of external converters.
5076 \begin_inset Foot
5077 status collapsed
5078
5079 \begin_layout Plain Layout
5080 For details on the use of external converters with \SpecialChar LyX
5081 , see the 
5082 \emph on
5083 Converters
5084 \emph default
5085  section of the Customization manual.
5086 \end_layout
5087
5088 \end_inset
5089
5090  These fall into two large groups: there are converters that use \SpecialChar LaTeX
5091  as an
5092  intermediate format, such as 
5093 \begin_inset Flex Code
5094 status collapsed
5095
5096 \begin_layout Plain Layout
5097 htlatex
5098 \end_layout
5099
5100 \end_inset
5101
5102
5103 \begin_inset Flex Code
5104 status collapsed
5105
5106 \begin_layout Plain Layout
5107 html2latex
5108 \end_layout
5109
5110 \end_inset
5111
5112 , and 
5113 \begin_inset Flex Code
5114 status collapsed
5115
5116 \begin_layout Plain Layout
5117 plastex
5118 \end_layout
5119
5120 \end_inset
5121
5122 , relying upon \SpecialChar LyX
5123  to produce the \SpecialChar LaTeX
5124 ; and there is a converter that works directly
5125  on \SpecialChar LyX
5126  files, 
5127 \begin_inset Flex Code
5128 status collapsed
5129
5130 \begin_layout Plain Layout
5131 e\SpecialChar LyX
5132 er
5133 \end_layout
5134
5135 \end_inset
5136
5137 .
5138  All of these have different advantages and disadvantages.
5139  
5140 \end_layout
5141
5142 \begin_layout Standard
5143 The \SpecialChar LaTeX
5144 -based converters have the advantage that, in principle, they know everythin
5145 g about the exported document that \SpecialChar LaTeX
5146  does.
5147  Such converters do not care, for example, if a certain block of code was
5148  produced by \SpecialChar LyX
5149  or was Evil Red Text.
5150  These converters know about 
5151 \begin_inset Flex Code
5152 status collapsed
5153
5154 \begin_layout Plain Layout
5155 aux
5156 \end_layout
5157
5158 \end_inset
5159
5160  files, counters, and references, and can often make use of the 
5161 \begin_inset Flex Code
5162 status collapsed
5163
5164 \begin_layout Plain Layout
5165 bbl
5166 \end_layout
5167
5168 \end_inset
5169
5170  files generated by Bib\SpecialChar TeX
5171 .
5172  On the other hand, \SpecialChar LaTeX
5173  is a very hard language to parse—it is sometimes said
5174  that only \SpecialChar TeX
5175  itself understands \SpecialChar TeX
5176 —and \SpecialChar LaTeX
5177 -based converters will often choke on
5178  what seem to be quite simple constructs; complex ones can throw them completely
5179 , and as of this writing, for example, the 
5180 \emph on
5181 Embedded Objects
5182 \emph default
5183  manual will not export with 
5184 \begin_inset Flex Code
5185 status collapsed
5186
5187 \begin_layout Plain Layout
5188 htlatex
5189 \end_layout
5190
5191 \end_inset
5192
5193 , though the others will.
5194  The other issue concerns how math is handled.
5195  These converters typically convert the formulae into little pictures that
5196  are then linked from the HTML document.
5197  Since these are actually generated by \SpecialChar LaTeX
5198 , they are accurate.
5199  But they do not scale well, and just getting them to look as if they are
5200  actually meant to be in your document—so that the font sizes seem to be
5201  roughly the same—can be a challenge.
5202 \end_layout
5203
5204 \begin_layout Standard
5205 Alex Fernandez's 
5206 \begin_inset Flex Code
5207 status collapsed
5208
5209 \begin_layout Plain Layout
5210 e\SpecialChar LyX
5211 er
5212 \end_layout
5213
5214 \end_inset
5215
5216  (
5217 \begin_inset CommandInset href
5218 LatexCommand href
5219 name "http://pinchito.es/elyxer/"
5220 target "http://pinchito.es/elyxer/"
5221 literal "false"
5222
5223 \end_inset
5224
5225 ) solves some of these problems.
5226  In particular, the formulae it produces scale perfectly, since it renders
5227  math using a combination of HTML and CSS rather than converting the formulae
5228  to images.
5229  But even moderately complex formula are rendered less well than with 
5230 \begin_inset Flex Code
5231 status collapsed
5232
5233 \begin_layout Plain Layout
5234 htlatex
5235 \end_layout
5236
5237 \end_inset
5238
5239 ; this reflects the limitations of HTML.
5240 \begin_inset Foot
5241 status collapsed
5242
5243 \begin_layout Plain Layout
5244 That said, 
5245 \begin_inset Flex Code
5246 status collapsed
5247
5248 \begin_layout Plain Layout
5249 e\SpecialChar LyX
5250 er
5251 \end_layout
5252
5253 \end_inset
5254
5255  can also use jsMath and MathJax for equations, but this setting is only
5256  available globally and requires one to have access to a server that runs
5257  the backend.
5258 \end_layout
5259
5260 \end_inset
5261
5262  More importantly (as of version 1.1.1, at least), 
5263 \begin_inset Flex Code
5264 status collapsed
5265
5266 \begin_layout Plain Layout
5267 e\SpecialChar LyX
5268 er
5269 \end_layout
5270
5271 \end_inset
5272
5273  has limited support for math macros and no support for user-defined paragraph
5274  or character styles.
5275  These limitations make 
5276 \begin_inset Flex Code
5277 status collapsed
5278
5279 \begin_layout Plain Layout
5280 e\SpecialChar LyX
5281 er
5282 \end_layout
5283
5284 \end_inset
5285
5286  unsuitable for many of the documents \SpecialChar LyX
5287  users produce.
5288  In principle, of course, these problems could be solved, but the \SpecialChar LyX
5289  developers
5290  have decided to follow a different path and have made \SpecialChar LyX
5291  itself capable of
5292  writing XHTML, just as it is capable of writing \SpecialChar LaTeX
5293 , DocBook, and plaintext.
5294 \end_layout
5295
5296 \begin_layout Standard
5297 As of this writing, XHTML output remains under development and should probably
5298  be regarded as 
5299 \begin_inset Quotes eld
5300 \end_inset
5301
5302 experimental
5303 \begin_inset Quotes erd
5304 \end_inset
5305
5306 .
5307 \begin_inset Foot
5308 status collapsed
5309
5310 \begin_layout Plain Layout
5311 The file 
5312 \begin_inset Flex Code
5313 status collapsed
5314
5315 \begin_layout Plain Layout
5316 development/HTML/HTML.notes
5317 \end_layout
5318
5319 \end_inset
5320
5321 , which can be found in the \SpecialChar LyX
5322  source tree or 
5323 \begin_inset CommandInset href
5324 LatexCommand href
5325 name "accessed online"
5326 target "https://www.lyx.org/trac/browser/lyxgit/development/HTML/HTML.notes?rev=master"
5327 literal "false"
5328
5329 \end_inset
5330
5331 , usually contains up-to-date information about the state of XHTML output.
5332  See also the list of XHTML bugs on 
5333 \begin_inset CommandInset href
5334 LatexCommand href
5335 name "the bug tracker"
5336 target "https://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"
5337 literal "false"
5338
5339 \end_inset
5340
5341 .
5342 \end_layout
5343
5344 \end_inset
5345
5346  Still, the developers have chosen this approach because it has several
5347  potential advantages over the other two.
5348 \end_layout
5349
5350 \begin_layout Standard
5351 These advantages are primarily due to the fact that the XHTML output routines,
5352  since they are part of \SpecialChar LyX
5353 , know everything \SpecialChar LyX
5354  knows about the document being
5355  exported.
5356 \begin_inset Foot
5357 status collapsed
5358
5359 \begin_layout Plain Layout
5360 Another advantage is that, since these routines are internal to \SpecialChar LyX
5361 , they are
5362  immune to changes in \SpecialChar LyX
5363 's file format, or to changes in the semantics of
5364  existing insets.
5365 \end_layout
5366
5367 \end_inset
5368
5369  So they know about the table of contents (as displayed in the outline),
5370  about the counters associated with different paragraph styles, and about
5371  user-defined styles.
5372  The XHTML output routines know what \SpecialChar LyX
5373  knows about internationalization,
5374  too, so they will output 
5375 \begin_inset Quotes eld
5376 \end_inset
5377
5378 Chapter 1
5379 \begin_inset Quotes erd
5380 \end_inset
5381
5382  or 
5383 \begin_inset Quotes eld
5384 \end_inset
5385
5386
5387 \lang ngerman
5388 Kapitel
5389 \lang english
5390  1
5391 \begin_inset Quotes erd
5392 \end_inset
5393
5394 , depending upon the language in effect at the time.
5395  
5396 \end_layout
5397
5398 \begin_layout Standard
5399 Quite generally, the output routines know what \SpecialChar LyX
5400  knows about document layout,
5401  that is, about how the document is to be rendered on screen.
5402  We use this information when we output the document as XHTML.
5403  In particular, \SpecialChar LyX
5404  
5405 \emph on
5406 automatically
5407 \emph default
5408  generates CSS style information corresponding to the layout information
5409  it uses to render the document on screen: if section headings are supposed
5410  to be sans-serif and bold as seen in \SpecialChar LyX
5411 , then (by default) they will be sans-seri
5412 f and bold when viewed in a web browser, too.
5413  And this is true not just for pre-defined styles, like Section, but for
5414  any style, including user-defined styles.
5415  Indeed, the XHTML output routines make no distinction between user-defined
5416  paragraph and character styles and \SpecialChar LyX
5417 's own pre-defined styles: in each case,
5418  everything \SpecialChar LyX
5419  knows about the styles is contained in the layout files.
5420  And much the same is true as regards pre-defined textual insets, such as
5421  footnotes, and various custom insets.
5422  
5423 \end_layout
5424
5425 \begin_layout Standard
5426 The result is that XHTML output can be customized and extended in exactly
5427  the same way \SpecialChar LaTeX
5428  output can be customized and extended: through layout files
5429  and modules.
5430  See chapter five of the 
5431 \emph on
5432 Customization 
5433 \emph default
5434 manual for the details.
5435 \end_layout
5436
5437 \begin_layout Standard
5438 The remainder of this chapter contains more detailed information on XHTML
5439  output, its limitations, and ways to work around those limitations.
5440 \end_layout
5441
5442 \begin_layout Section
5443 Math Output in XHTML
5444 \end_layout
5445
5446 \begin_layout Standard
5447 \SpecialChar LyX
5448  offers four choices for how math is rendered.
5449  These have various advantages and disadvantages:
5450 \end_layout
5451
5452 \begin_layout Itemize
5453 MathML
5454 \begin_inset Newline newline
5455 \end_inset
5456
5457 MathML is a dialect of XML designed specifically for mathematics on the
5458  web, and it typically renders very well in browsers that support it.
5459  The disadvantage is that not all browsers support MathML, and support is
5460  not complete even in the Gecko-based browsers, such as Firefox.
5461 \begin_inset Newline newline
5462 \end_inset
5463
5464 If \SpecialChar LyX
5465  is unable to render a formula as MathML—for example, if the formula
5466  uses the 
5467 \begin_inset Flex Code
5468 status collapsed
5469
5470 \begin_layout Plain Layout
5471 xymatrix
5472 \end_layout
5473
5474 \end_inset
5475
5476  package or ERT—then it will instead output the formula as an image.
5477  
5478 \end_layout
5479
5480 \begin_layout Itemize
5481 HTML
5482 \begin_inset Newline newline
5483 \end_inset
5484
5485 As mentioned above, 
5486 \begin_inset Flex Code
5487 status collapsed
5488
5489 \begin_layout Plain Layout
5490 elyxer
5491 \end_layout
5492
5493 \end_inset
5494
5495  outputs math as HTML, styled by CSS.
5496 \begin_inset Foot
5497 status collapsed
5498
5499 \begin_layout Plain Layout
5500 \SpecialChar LyX
5501  has borrowed some of the CSS for its HTML output from 
5502 \begin_inset Flex Code
5503 status collapsed
5504
5505 \begin_layout Plain Layout
5506 elyxer
5507 \end_layout
5508
5509 \end_inset
5510
5511 .
5512 \end_layout
5513
5514 \end_inset
5515
5516  For simple formulae, this can work quite well, though with more complicated
5517  formulae it tends to break down.
5518  Still, this method has the advantage that it is very widely supported and
5519  so it may be appropriate for documents that contain only a little, fairly
5520  simple math.
5521 \begin_inset Newline newline
5522 \end_inset
5523
5524 If Lyx is unable to render a formula as HTML—for example, if the formula
5525  uses the 
5526 \begin_inset Flex Code
5527 status collapsed
5528
5529 \begin_layout Plain Layout
5530 xymatrix
5531 \end_layout
5532
5533 \end_inset
5534
5535  package or ERT—then it will instead output the formula as an image.
5536  
5537 \end_layout
5538
5539 \begin_layout Itemize
5540 Images
5541 \begin_inset Newline newline
5542 \end_inset
5543
5544 Like 
5545 \begin_inset Flex Code
5546 status collapsed
5547
5548 \begin_layout Plain Layout
5549 htlatex
5550 \end_layout
5551
5552 \end_inset
5553
5554 , \SpecialChar LyX
5555  will output formulae as images, the very same images, in fact, that are
5556  used for instant preview.
5557 \begin_inset Foot
5558 status collapsed
5559
5560 \begin_layout Plain Layout
5561 Instant preview does 
5562 \emph on
5563 not 
5564 \emph default
5565 have to be on for images to be output, however.
5566 \end_layout
5567
5568 \end_inset
5569
5570  The advantage to this method is that the images are simply generated by
5571  \SpecialChar LaTeX
5572 , so they are very accurate.
5573  The disadvantage, as mentioned earlier, is that these are bitmapped images,
5574  so they do not scale terribly well, and one cannot copy them, etc.
5575 \begin_inset Newline newline
5576 \end_inset
5577
5578 The size of the images can be controlled by setting the 
5579 \begin_inset Quotes eld
5580 \end_inset
5581
5582 Math Images Scaling
5583 \begin_inset Quotes erd
5584 \end_inset
5585
5586  parameter under 
5587 \begin_inset Flex Noun
5588 status collapsed
5589
5590 \begin_layout Plain Layout
5591 Document\SpecialChar menuseparator
5592 Settings\SpecialChar menuseparator
5593 Formats
5594 \end_layout
5595
5596 \end_inset
5597
5598 .
5599 \begin_inset Foot
5600 status collapsed
5601
5602 \begin_layout Plain Layout
5603 For those who want to know, this controls the resolution of the image in
5604  dots per inch and is based upon a default of 75 dpi.
5605 \end_layout
5606
5607 \end_inset
5608
5609
5610 \begin_inset Newline newline
5611 \end_inset
5612
5613 If \SpecialChar LyX
5614  for some reason fails to create an image for a formula (e.g., if a required
5615  \SpecialChar LaTeX
5616  package is not installed), then it will fall back to outputing the raw
5617  \SpecialChar LaTeX
5618 .
5619 \end_layout
5620
5621 \begin_layout Itemize
5622 \SpecialChar LaTeX
5623
5624 \begin_inset Newline newline
5625 \end_inset
5626
5627 Finally, \SpecialChar LyX
5628  will happily output math as \SpecialChar LaTeX
5629 .
5630  As well as being the output of last resort, this method can be used with
5631  such tools as 
5632 \begin_inset CommandInset href
5633 LatexCommand href
5634 name "jsMath"
5635 target "http://www.math.union.edu/~dpvc/jsMath/"
5636 literal "false"
5637
5638 \end_inset
5639
5640 , which uses JavaScript to render \SpecialChar LaTeX
5641  embedded in HTML documents.
5642  \SpecialChar LyX
5643  wraps the \SpecialChar LaTeX
5644  in either a 
5645 \begin_inset Flex Code
5646 status collapsed
5647
5648 \begin_layout Plain Layout
5649 span
5650 \end_layout
5651
5652 \end_inset
5653
5654  (for inline formulas) or 
5655 \begin_inset Flex Code
5656 status collapsed
5657
5658 \begin_layout Plain Layout
5659 div
5660 \end_layout
5661
5662 \end_inset
5663
5664  (for displayed formulas) with 
5665 \begin_inset Flex Code
5666 status collapsed
5667
5668 \begin_layout Plain Layout
5669 class='math'
5670 \end_layout
5671
5672 \end_inset
5673
5674 , as is required for jsMath.
5675 \end_layout
5676
5677 \begin_layout Standard
5678 One of these output methods must be selected under 
5679 \begin_inset Flex Noun
5680 status collapsed
5681
5682 \begin_layout Plain Layout
5683 Document\SpecialChar menuseparator
5684 Settings\SpecialChar menuseparator
5685 Formats
5686 \end_layout
5687
5688 \end_inset
5689
5690 .
5691  By default, \SpecialChar LyX
5692  outputs MathML.
5693  This is a document-wide setting, therefore.
5694 \end_layout
5695
5696 \begin_layout Standard
5697 Eventually, \SpecialChar LyX
5698  will offer the user the option to select an alternate output
5699  method for a particular inset, say, one that isn't being rendered very
5700  well by MathML.
5701 \begin_inset Foot
5702 status collapsed
5703
5704 \begin_layout Plain Layout
5705 That said, since \SpecialChar LyX
5706  falls back to images if the inset contains ERT, then one
5707  can force output as an image by putting some harmless ERT into the math,
5708  for example: 
5709 \begin_inset Formula $a=b\relax$
5710 \end_inset
5711
5712 .
5713 \end_layout
5714
5715 \end_inset
5716
5717
5718 \end_layout
5719
5720 \begin_layout Section
5721 Bibliography and Citations
5722 \end_layout
5723
5724 \begin_layout Standard
5725 XHTML output fully supports bibliographies and citations.
5726  
5727 \end_layout
5728
5729 \begin_layout Standard
5730 Citation labels are generated by the same machinery that generates \SpecialChar LyX
5731 's on-screen
5732  labels, so the labels will look in the output much as they do in \SpecialChar LyX
5733 , though
5734  better.
5735  If you are using numerical citations, then \SpecialChar LyX
5736  will output numerical labels,
5737  such as [1] or [17], rather than simply showing the citation key in square
5738  brackets, as it does on-screen.
5739  If you are using author-year citations, then \SpecialChar LyX
5740  will add lowercase letters
5741  to the years, just as Bib\SpecialChar TeX
5742  does, if it finds more than one citation for
5743  a given author-year combination.
5744  The labels will be printed with the bibliography entries.
5745  Note that there is, at present, no way to customize the appearance of the
5746  labels, for example, to choose between square brackets and parentheses.
5747 \end_layout
5748
5749 \begin_layout Standard
5750 Bibliography output is handled by the same machinery that handles the presentati
5751 on of reference information in the citation dialog, so you will see in the
5752  XHTML output pretty much what you would see if you were to look at a given
5753  entry in the citation dialog.
5754  The formatting can be customized in your layout file or, preferably, in
5755  a module.
5756  See the 
5757 \emph on
5758 Customization
5759 \emph default
5760  manual for the details.
5761 \end_layout
5762
5763 \begin_layout Standard
5764 The main defect at present is that cross-referenced information is printed
5765  with every entry with which it is associated.
5766  So you can see things like this:
5767 \end_layout
5768
5769 \begin_layout Quote
5770 Jason Stanley, 
5771 \begin_inset Quotes eld
5772 \end_inset
5773
5774 Context and Logical Form
5775 \begin_inset Quotes erd
5776 \end_inset
5777
5778 , in 
5779 \emph on
5780 Language in Context: Selected Essays
5781 \emph default
5782  (Oxford: Oxford University Press, 2007), pp.
5783  30–68.
5784 \end_layout
5785
5786 \begin_layout Quote
5787 Jason Stanley, 
5788 \begin_inset Quotes eld
5789 \end_inset
5790
5791 Semantics in Context
5792 \begin_inset Quotes erd
5793 \end_inset
5794
5795 , in 
5796 \emph on
5797 Language in Context: Selected Essays
5798 \emph default
5799  (Oxford: Oxford University Press, 2007), pp.
5800  201–30.
5801 \end_layout
5802
5803 \begin_layout Standard
5804 This should be fixed before long.
5805 \end_layout
5806
5807 \begin_layout Standard
5808 There is no support at present for sectioned bibliographies.
5809  If you have multiple bibliographies, then \SpecialChar LyX
5810  will print the same bibliography
5811  over and over.
5812 \end_layout
5813
5814 \begin_layout Section
5815 Indexes
5816 \end_layout
5817
5818 \begin_layout Standard
5819 \SpecialChar LyX
5820  will happily export indexes as XHTML, but with certain limitations at the
5821  moment.
5822 \end_layout
5823
5824 \begin_layout Standard
5825 Index export will be most reliable when you do not attempt to use the fancy
5826  constructs that are described in the section on indexes in the 
5827 \emph on
5828 User's Guide
5829 \emph default
5830 .
5831 \begin_inset Foot
5832 status collapsed
5833
5834 \begin_layout Plain Layout
5835 The main issue here is that \SpecialChar LyX
5836  itself does not really handle these.
5837  It just lets you enter what you would have to enter in raw \SpecialChar LaTeX
5838 .
5839 \end_layout
5840
5841 \end_inset
5842
5843  We'll describe how they are handled using the subsection headings from
5844  that section.
5845 \end_layout
5846
5847 \begin_layout Itemize
5848 Grouping Index Entries (aka, sub-entries): \SpecialChar LyX
5849  makes an effort to support these,
5850  but the entries must be separated by 
5851 \begin_inset Quotes eld
5852 \end_inset
5853
5854  ! 
5855 \begin_inset Quotes erd
5856 \end_inset
5857
5858 , that is, there must be spaces around the exclamation point.
5859  This is because it is otherwise too difficult to check for escaped exclamation
5860  points, ones in math, and so forth.
5861 \end_layout
5862
5863 \begin_layout Itemize
5864 Page Ranges: There is no support at all for page ranges, since these make
5865  no sense with XHMTL.
5866  Instead, you will just get two index entries, one at either end.
5867 \end_layout
5868
5869 \begin_layout Itemize
5870 Cross-referencing: There is no support for cross-referencing.
5871  If \SpecialChar LyX
5872  finds an entry containing the 
5873 \begin_inset Quotes eld
5874 \end_inset
5875
5876 |see\SpecialChar ldots
5877
5878 \begin_inset Quotes erd
5879 \end_inset
5880
5881  construct, it is just dropped, and the rest is treated as an ordinary index
5882  entry.
5883 \end_layout
5884
5885 \begin_layout Itemize
5886 Index Entry Order: \SpecialChar LyX
5887  does support attempts to fix the sorting order.
5888  It will take what is before the first `@' it finds and use that for sorting,
5889  taking what follows the first `@' to be the actual entry.
5890  At present, \SpecialChar LyX
5891  does not check for escaped `@', so do not try to index email
5892  addresses.
5893 \end_layout
5894
5895 \begin_layout Itemize
5896 Index Entry Layout: You can format entries by using the text style dialog,
5897  or by using any other method available within \SpecialChar LyX
5898  itself.
5899  There is no support for constructs like: 
5900 \begin_inset Quotes eld
5901 \end_inset
5902
5903 entry|textbf
5904 \begin_inset Quotes erd
5905 \end_inset
5906
5907 .
5908  Indeed, if \SpecialChar LyX
5909  finds a pipe symbol, `|', in an entry, it will delete it and
5910  everything that follows it.
5911 \end_layout
5912
5913 \begin_layout Itemize
5914 Multiple Indexes: There is no support for multiple indexes.
5915  Rather, all index entries will be printed as one large index.
5916  To avoid our printing several versions of the index, we print only the
5917  main index, so make sure you have one.
5918 \end_layout
5919
5920 \begin_layout Section
5921 Nomenclature and Glossary
5922 \end_layout
5923
5924 \begin_layout Standard
5925 There is at present no support for glossaries.
5926  Adding it would be fairly trivial, and welcome.
5927 \end_layout
5928
5929 \begin_layout Chapter
5930 The \SpecialChar LyX
5931  Server
5932 \end_layout
5933
5934 \begin_layout Section
5935 Introduction
5936 \end_layout
5937
5938 \begin_layout Standard
5939 The `\SpecialChar LyX
5940  server' allows other programs to talk to \SpecialChar LyX
5941 , invoke \SpecialChar LyX
5942  commands, and retrieve
5943  information about the \SpecialChar LyX
5944  internal state.
5945  This is only intended for advanced users, but they should find it useful.
5946  It is by writing to the \SpecialChar LyX
5947  server, for example, that bibliography managers,
5948  such as JabRef, are able to 
5949 \begin_inset Quotes eld
5950 \end_inset
5951
5952 push
5953 \begin_inset Quotes erd
5954 \end_inset
5955
5956  citations to \SpecialChar LyX
5957 .
5958 \end_layout
5959
5960 \begin_layout Section
5961 Starting the \SpecialChar LyX
5962  Server
5963 \begin_inset CommandInset label
5964 LatexCommand label
5965 name "sec:Starting-the-Server"
5966
5967 \end_inset
5968
5969
5970 \end_layout
5971
5972 \begin_layout Standard
5973 The \SpecialChar LyX
5974  server works through the use of a pair of named pipes.
5975  These are usually located in 
5976 \begin_inset Flex Code
5977 status collapsed
5978
5979 \begin_layout Plain Layout
5980 UserDir
5981 \end_layout
5982
5983 \end_inset
5984
5985 , (except on Windows, where 
5986 \emph on
5987 local
5988 \emph default
5989  named pipes are special objects located in 
5990 \begin_inset Flex Code
5991 status collapsed
5992
5993 \begin_layout Plain Layout
5994
5995 \backslash
5996
5997 \backslash
5998 .
5999 \backslash
6000 pipe
6001 \end_layout
6002
6003 \end_inset
6004
6005 ) and have the names 
6006 \begin_inset Quotes eld
6007 \end_inset
6008
6009
6010 \begin_inset Flex Code
6011 status collapsed
6012
6013 \begin_layout Plain Layout
6014 lyxpipe.in
6015 \end_layout
6016
6017 \end_inset
6018
6019
6020 \begin_inset Quotes erd
6021 \end_inset
6022
6023  and 
6024 \begin_inset Quotes eld
6025 \end_inset
6026
6027
6028 \begin_inset Flex Code
6029 status collapsed
6030
6031 \begin_layout Plain Layout
6032 lyxpipe.out
6033 \end_layout
6034
6035 \end_inset
6036
6037
6038 \begin_inset Quotes erd
6039 \end_inset
6040
6041 .
6042  External programs write into 
6043 \begin_inset Flex Code
6044 status collapsed
6045
6046 \begin_layout Plain Layout
6047 lyxpipe.in
6048 \end_layout
6049
6050 \end_inset
6051
6052  and read back data from 
6053 \begin_inset Flex Code
6054 status collapsed
6055
6056 \begin_layout Plain Layout
6057 lyxpipe.out
6058 \end_layout
6059
6060 \end_inset
6061
6062 .
6063  The stem of the pipe names can be defined in the 
6064 \begin_inset Flex Noun
6065 status collapsed
6066
6067 \begin_layout Plain Layout
6068 Tools\SpecialChar menuseparator
6069 Preferences
6070 \end_layout
6071
6072 \end_inset
6073
6074  dialog, for example 
6075 \begin_inset Flex Code
6076 status collapsed
6077
6078 \begin_layout Plain Layout
6079 "/home/myhome/lyxpipe"
6080 \end_layout
6081
6082 \end_inset
6083
6084 , or 
6085 \begin_inset Flex Code
6086 status collapsed
6087
6088 \begin_layout Plain Layout
6089 "
6090 \backslash
6091
6092 \backslash
6093 .
6094 \backslash
6095 pipe
6096 \backslash
6097 lyxpipe"
6098 \end_layout
6099
6100 \end_inset
6101
6102  on Windows (where any working path instead of lyxpipe can be used, for
6103  example 
6104 \begin_inset Flex Code
6105 status collapsed
6106
6107 \begin_layout Plain Layout
6108 "
6109 \backslash
6110
6111 \backslash
6112 .
6113 \backslash
6114 pipe
6115 \backslash
6116 my
6117 \backslash
6118 lyx
6119 \backslash
6120 pipe"
6121 \end_layout
6122
6123 \end_inset
6124
6125  would also work).
6126  You 
6127 \emph on
6128 must
6129 \emph default
6130  configure this manually in order for the server to start.
6131 \end_layout
6132
6133 \begin_layout Standard
6134 \SpecialChar LyX
6135  will add the '
6136 \begin_inset Flex Code
6137 status collapsed
6138
6139 \begin_layout Plain Layout
6140 .in
6141 \end_layout
6142
6143 \end_inset
6144
6145 ' and '
6146 \begin_inset Flex Code
6147 status collapsed
6148
6149 \begin_layout Plain Layout
6150 .out
6151 \end_layout
6152
6153 \end_inset
6154
6155 ' to create the pipes.
6156  If one of the pipes already exists, \SpecialChar LyX
6157  will assume that another \SpecialChar LyX
6158  process
6159  is already running and will not start the server.
6160  On POSIX (Unix like) systems, if for some other reason, an unused 
6161 \begin_inset Quotes eld
6162 \end_inset
6163
6164 stale
6165 \begin_inset Quotes erd
6166 \end_inset
6167
6168  pipe is left in existence when \SpecialChar LyX
6169  closes, then \SpecialChar LyX
6170  will try to delete it.
6171  If this fails for some reason, you will need to delete the pipes manually
6172  and then restart \SpecialChar LyX
6173 .
6174  On Windows, pipes are deleted by the OS on program termination or crash,
6175  so 
6176 \begin_inset Quotes eld
6177 \end_inset
6178
6179 stale
6180 \begin_inset Quotes erd
6181 \end_inset
6182
6183  pipes should not be possible.
6184 \end_layout
6185
6186 \begin_layout Standard
6187 To have several \SpecialChar LyX
6188  processes with servers at the same time, you have to use
6189  different configurations, perhaps by using separate user directories, each
6190  with its own 
6191 \begin_inset Flex Code
6192 status collapsed
6193
6194 \begin_layout Plain Layout
6195 preferences
6196 \end_layout
6197
6198 \end_inset
6199
6200  file, for each process.
6201 \end_layout
6202
6203 \begin_layout Standard
6204 If you are developing a client program, you might find it useful to enable
6205  debugging information from the \SpecialChar LyX
6206  server.
6207  Do this by starting \SpecialChar LyX
6208  as 
6209 \begin_inset Flex Code
6210 status collapsed
6211
6212 \begin_layout Plain Layout
6213 lyx -dbg lyxserver
6214 \end_layout
6215
6216 \end_inset
6217
6218 .
6219 \end_layout
6220
6221 \begin_layout Standard
6222 You can find a complete example client written in C++ in the source distribution
6223  as 
6224 \begin_inset Flex Code
6225 status collapsed
6226
6227 \begin_layout Plain Layout
6228 development/lyxserver/server_monitor.cpp
6229 \end_layout
6230
6231 \end_inset
6232
6233 .
6234 \end_layout
6235
6236 \begin_layout Standard
6237 Another useful tool is the command-line based client found in 
6238 \begin_inset Flex Code
6239 status collapsed
6240
6241 \begin_layout Plain Layout
6242 src/client/lyxclient
6243 \end_layout
6244
6245 \end_inset
6246
6247 .
6248 \end_layout
6249
6250 \begin_layout Section
6251 Normal communication
6252 \end_layout
6253
6254 \begin_layout Standard
6255 To issue a \SpecialChar LyX
6256  call, the client writes a line of ASCII text into the input
6257  pipe.
6258  This line has the following format:
6259 \end_layout
6260
6261 \begin_layout Quote
6262 LYXCMD:
6263 \emph on
6264 clientname
6265 \emph default
6266 :
6267 \emph on
6268 function
6269 \emph default
6270 :
6271 \emph on
6272 argument
6273 \end_layout
6274
6275 \begin_layout Description
6276 clientname is a name that the client can choose arbitrarily.
6277  Its only use is that \SpecialChar LyX
6278  will echo it if it sends an answer—so a client can
6279  dispatch results from different requesters.
6280 \end_layout
6281
6282 \begin_layout Description
6283 function is the function you want \SpecialChar LyX
6284  to perform.
6285  It is the same as the commands you'd use in the minibuffer.
6286 \end_layout
6287
6288 \begin_layout Description
6289 argument is an optional argument which is meaningful only to some functions
6290  (for instance, the 
6291 \begin_inset Quotes eld
6292 \end_inset
6293
6294 self-insert
6295 \begin_inset Quotes erd
6296 \end_inset
6297
6298  LFUN will insert the argument as text at the cursor position).
6299 \end_layout
6300
6301 \begin_layout Standard
6302 The answer from \SpecialChar LyX
6303  will arrive in the output pipe and be of the form
6304 \end_layout
6305
6306 \begin_layout Quote
6307 INFO:
6308 \emph on
6309 clientname
6310 \emph default
6311 :
6312 \emph on
6313 function
6314 \emph default
6315 :
6316 \emph on
6317 data
6318 \end_layout
6319
6320 \begin_layout Standard
6321 where 
6322 \emph on
6323 clientname
6324 \emph default
6325  and 
6326 \emph on
6327 function
6328 \emph default
6329  are just echoed from the command request, while 
6330 \emph on
6331 data
6332 \emph default
6333  is more or less useful information filled according to how the command
6334  execution worked out.
6335  Some commands, such as 
6336 \begin_inset Quotes eld
6337 \end_inset
6338
6339 font-state
6340 \begin_inset Quotes erd
6341 \end_inset
6342
6343 , will return information about the internal state of \SpecialChar LyX
6344 , while other will
6345  return an empty data-response.
6346  This means that the command execution went fine.
6347 \end_layout
6348
6349 \begin_layout Standard
6350 In case of errors, the response from \SpecialChar LyX
6351  will have this form
6352 \end_layout
6353
6354 \begin_layout Quote
6355 ERROR:
6356 \emph on
6357 clientname
6358 \emph default
6359 :
6360 \emph on
6361 function
6362 \emph default
6363 :
6364 \emph on
6365 error message
6366 \end_layout
6367
6368 \begin_layout Standard
6369 where the 
6370 \emph on
6371 error message
6372 \emph default
6373  should contain an explanation of why the command failed.
6374 \end_layout
6375
6376 \begin_layout Standard
6377 Examples:
6378 \end_layout
6379
6380 \begin_layout LyX-Code
6381 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
6382 \begin_inset Newline newline
6383 \end_inset
6384
6385 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
6386 \begin_inset Newline newline
6387 \end_inset
6388
6389 read a <~/.lyxpipe.out
6390 \begin_inset Newline newline
6391 \end_inset
6392
6393 echo $a
6394 \end_layout
6395
6396 \begin_layout Subsection
6397 AppleScript (Mac OS X)
6398 \end_layout
6399
6400 \begin_layout Standard
6401 Since \SpecialChar LyX
6402  2.1, \SpecialChar LyX
6403  supports basic interactions with AppleScript for normal communicatio
6404 n through the command run.
6405  This command takes a direct argument (the 
6406 \series bold
6407 function
6408 \series default
6409  to perform) and an optional argument.
6410  It either returns the output of the function or triggers an error with
6411  the error message and code.
6412 \end_layout
6413
6414 \begin_layout Standard
6415 Example:
6416 \end_layout
6417
6418 \begin_layout LyX-Code
6419 tell application "\SpecialChar LyX
6420 "
6421 \end_layout
6422
6423 \begin_layout LyX-Code
6424   try
6425 \end_layout
6426
6427 \begin_layout LyX-Code
6428     -- Stores the current file name into f
6429 \end_layout
6430
6431 \begin_layout LyX-Code
6432     set f to (run "server-get-filename" with argument "")
6433 \end_layout
6434
6435 \begin_layout LyX-Code
6436     on error the error_message number the error_number
6437 \end_layout
6438
6439 \begin_layout LyX-Code
6440       display dialog "Error: " & the error_number & ".
6441  " Â¬
6442 \end_layout
6443
6444 \begin_layout LyX-Code
6445               & the error_message buttons {"OK"} default button 1
6446 \end_layout
6447
6448 \begin_layout LyX-Code
6449   end try
6450 \end_layout
6451
6452 \begin_layout LyX-Code
6453 end tell
6454 \end_layout
6455
6456 \begin_layout Section
6457 Notification
6458 \end_layout
6459
6460 \begin_layout Standard
6461 \SpecialChar LyX
6462  can notify clients of events going on asynchronously.
6463  Currently it will only do this if the user binds a key sequence with the
6464  function 
6465 \begin_inset Quotes eld
6466 \end_inset
6467
6468 notify
6469 \begin_inset Quotes erd
6470 \end_inset
6471
6472 .
6473  The format of the string \SpecialChar LyX
6474  sends is as follows:
6475 \end_layout
6476
6477 \begin_layout Quote
6478 \begin_inset Flex Code
6479 status collapsed
6480
6481 \begin_layout Plain Layout
6482 NOTIFY:
6483 \end_layout
6484
6485 \end_inset
6486
6487
6488 \emph on
6489 key-sequence
6490 \end_layout
6491
6492 \begin_layout Standard
6493 where 
6494 \emph on
6495 key-sequence
6496 \emph default
6497  is the printed representation of the key sequence that was actually typed
6498  by the user.
6499 \end_layout
6500
6501 \begin_layout Standard
6502 This mechanism can be used to extend \SpecialChar LyX
6503 's command set and implement macros.
6504  Bind some key sequence to 
6505 \begin_inset Quotes eld
6506 \end_inset
6507
6508 notify
6509 \begin_inset Quotes erd
6510 \end_inset
6511
6512 .
6513  Then start a client that listens on the output pipe, dispatches the command
6514  according to the sequence, and starts a function that may use \SpecialChar LyX
6515  calls and
6516  \SpecialChar LyX
6517  requests to issue a command or a series of commands to \SpecialChar LyX
6518 .
6519 \end_layout
6520
6521 \begin_layout Section
6522 The simple \SpecialChar LyX
6523  Server Protocol
6524 \end_layout
6525
6526 \begin_layout Standard
6527 \SpecialChar LyX
6528  implements a simple protocol that can be used for session management.
6529  All messages are of the form
6530 \end_layout
6531
6532 \begin_layout Quote
6533 LYXSRV:
6534 \emph on
6535 clientname
6536 \emph default
6537 :
6538 \emph on
6539 protocol message
6540 \end_layout
6541
6542 \begin_layout Standard
6543 where 
6544 \emph on
6545 protocol message
6546 \emph default
6547  can be 
6548 \begin_inset Quotes eld
6549 \end_inset
6550
6551 hello
6552 \begin_inset Quotes erd
6553 \end_inset
6554
6555  or 
6556 \begin_inset Quotes eld
6557 \end_inset
6558
6559 bye
6560 \begin_inset Quotes erd
6561 \end_inset
6562
6563 .
6564  If 
6565 \begin_inset Quotes eld
6566 \end_inset
6567
6568 hello
6569 \begin_inset Quotes erd
6570 \end_inset
6571
6572  is received from a client, \SpecialChar LyX
6573  will report back to inform the client that
6574  it's listening to it's messages, while 
6575 \begin_inset Quotes eld
6576 \end_inset
6577
6578 bye
6579 \begin_inset Quotes erd
6580 \end_inset
6581
6582  sent from \SpecialChar LyX
6583  will inform clients that \SpecialChar LyX
6584  is closing.
6585 \end_layout
6586
6587 \begin_layout Section
6588 Reverse DVI/PDF search
6589 \end_layout
6590
6591 \begin_layout Standard
6592 Some DVI/PDF viewers
6593 \begin_inset Foot
6594 status collapsed
6595
6596 \begin_layout Plain Layout
6597 The following viewers offer the reverse PDF search feature: Okular on KDE/Linux,
6598  Qpdfview on Unix, Skim on Mac OSX and SumatraPDF on Windows.
6599 \end_layout
6600
6601 \end_inset
6602
6603  provide 
6604 \emph on
6605 reverse search
6606 \emph default
6607  facility (also called 
6608 \emph on
6609 inverse search
6610 \emph default
6611 ).
6612  This means that you can tell \SpecialChar LyX
6613  to put the cursor to a specific line in the
6614  document by clicking at the respective position in the DVI/PDF output.
6615  To achieve this, the viewer must be able to communicate with \SpecialChar LyX
6616 .
6617  This is done via the \SpecialChar LyX
6618  server either by using the named pipe (
6619 \emph on
6620 lyxpipe
6621 \emph default
6622 ), or the UNIX domain socket (
6623 \emph on
6624 lyxsocket
6625 \emph default
6626 ) that \SpecialChar LyX
6627  creates in its temporary directory (this is the way the 
6628 \begin_inset Flex Code
6629 status collapsed
6630
6631 \begin_layout Plain Layout
6632 lyxclient
6633 \end_layout
6634
6635 \end_inset
6636
6637  program communicates with \SpecialChar LyX
6638 ).
6639  In some cases, you need a helper script that mediates between the viewer
6640  and \SpecialChar LyX
6641 , in others, the viewer can communicate with \SpecialChar LyX
6642  directly.
6643  This depends on the selected viewer and on your operating system.
6644  The same applies to the way viewers need to be configured and the way the
6645  reverse search is actually performed.
6646  In what follows, we will thus describe how to setup reverse search for
6647  specific viewers.
6648  Before we turn to this, though, we will explain what needs to be done generally
6649  to enable reverse search in the DVI/PDF output.
6650 \end_layout
6651
6652 \begin_layout Subsection
6653 Automatic setup
6654 \begin_inset CommandInset label
6655 LatexCommand label
6656 name "subsec:rev-search"
6657
6658 \end_inset
6659
6660
6661 \end_layout
6662
6663 \begin_layout Standard
6664 In most cases \SpecialChar LyX
6665  will do the work for you by pressing the following button
6666  in the toolbar: 
6667 \begin_inset Info
6668 type  "icon"
6669 arg   "buffer-toggle-output-sync"
6670 \end_inset
6671
6672 .
6673  Alternatively, you can also enable the feature by checking 
6674 \family sans
6675 Synchronize with Output
6676 \family default
6677  in 
6678 \begin_inset Flex Noun
6679 status collapsed
6680
6681 \begin_layout Plain Layout
6682 Document\SpecialChar menuseparator
6683 Settings\SpecialChar menuseparator
6684 Formats
6685 \end_layout
6686
6687 \end_inset
6688
6689 .
6690  In such a case \SpecialChar LyX
6691  will automatically insert the necessary Sync\SpecialChar TeX
6692  macro (for
6693  PDF) or load the srcltx package (for DVI) respectively.
6694  This option can be easily reached also on 
6695 \begin_inset Flex Code
6696 status collapsed
6697
6698 \begin_layout Plain Layout
6699 View/Update
6700 \end_layout
6701
6702 \end_inset
6703
6704  Toolbar.
6705 \end_layout
6706
6707 \begin_layout Standard
6708 If you need a different setting, you can select or input a custom macro
6709  from the drop down box just below 
6710 \begin_inset Flex Noun
6711 status collapsed
6712
6713 \begin_layout Plain Layout
6714 Document\SpecialChar menuseparator
6715 Settings\SpecialChar menuseparator
6716 Output\SpecialChar menuseparator
6717 Synchronize with Output
6718 \end_layout
6719
6720 \end_inset
6721
6722 .
6723 \end_layout
6724
6725 \begin_layout Standard
6726 Note that the method 
6727 \begin_inset Flex Code
6728 status collapsed
6729
6730 \begin_layout Plain Layout
6731
6732 \backslash
6733 synctex=1
6734 \end_layout
6735
6736 \end_inset
6737
6738  enables gzip compression.
6739  If your viewer does not support it, you should instead use 
6740 \begin_inset Flex Code
6741 status collapsed
6742
6743 \begin_layout Plain Layout
6744
6745 \backslash
6746 synctex=-1
6747 \end_layout
6748
6749 \end_inset
6750
6751 .
6752 \end_layout
6753
6754 \begin_layout Standard
6755 Please also note that including the 
6756 \begin_inset Flex Code
6757 status collapsed
6758
6759 \begin_layout Plain Layout
6760 srcltx
6761 \end_layout
6762
6763 \end_inset
6764
6765  package or 
6766 \begin_inset Flex Code
6767 status collapsed
6768
6769 \begin_layout Plain Layout
6770 src-specials
6771 \end_layout
6772
6773 \end_inset
6774
6775  sometimes has an undesired impact on the typesetting.
6776  Thus, you should switch output synchronization off for the final typesetting
6777  if you use the 
6778 \begin_inset Flex Code
6779 status collapsed
6780
6781 \begin_layout Plain Layout
6782 srcltx
6783 \end_layout
6784
6785 \end_inset
6786
6787  package or 
6788 \begin_inset Flex Code
6789 status collapsed
6790
6791 \begin_layout Plain Layout
6792 src-specials
6793 \end_layout
6794
6795 \end_inset
6796
6797 .
6798  
6799 \end_layout
6800
6801 \begin_layout Standard
6802 In case you need some more special settings that are not covered by the
6803  automatic settings, read the next section about how to set up output synchroniz
6804 ation manually.
6805  If the automatic setup suits your needs, you can readily jump to section
6806 \begin_inset space ~
6807 \end_inset
6808
6809
6810 \begin_inset CommandInset ref
6811 LatexCommand ref
6812 reference "subsec:configuring-viewers"
6813
6814 \end_inset
6815
6816 , where the necessary configuration steps in your viewer â€“ needed both with
6817  the automatic and the manual setup â€“ are described.
6818 \end_layout
6819
6820 \begin_layout Subsection
6821 Manual setup
6822 \end_layout
6823
6824 \begin_layout Standard
6825 \SpecialChar LaTeX
6826  provides several different methods for reverse search.
6827  Some are built-in in the 
6828 \begin_inset Flex Code
6829 status collapsed
6830
6831 \begin_layout Plain Layout
6832 latex/pdflatex
6833 \end_layout
6834
6835 \end_inset
6836
6837  program, some are provided by external packages.
6838  Your choice depends on whether your \SpecialChar LaTeX
6839  distribution already provides a given
6840  method (the built-in methods are rather new) and whether your viewer can
6841  cope with it.
6842  The available methods are described in the following.
6843 \end_layout
6844
6845 \begin_layout Subsubsection*
6846 Built-in DVI-search via src-specials (DVI only) 
6847 \end_layout
6848
6849 \begin_layout Standard
6850 This method provides the DVI file with the necessary information for reverse
6851  search.
6852  It is available in \SpecialChar LaTeX
6853  since quite some time (any somewhat recent \SpecialChar LaTeX
6854  distribution
6855  should include it), and it works reliably.
6856  To enable it, change the 
6857 \begin_inset Flex Noun
6858 status collapsed
6859
6860 \begin_layout Plain Layout
6861 La
6862 \family sans
6863 TeX
6864 \family default
6865  (plain)->DVI
6866 \end_layout
6867
6868 \end_inset
6869
6870  or 
6871 \begin_inset Flex Noun
6872 status collapsed
6873
6874 \begin_layout Plain Layout
6875 La
6876 \family sans
6877 TeX
6878 \family default
6879  (plain)->DraftDVI
6880 \end_layout
6881
6882 \end_inset
6883
6884  converter in 
6885 \begin_inset Flex Noun
6886 status collapsed
6887
6888 \begin_layout Plain Layout
6889 Preferences\SpecialChar menuseparator
6890 File Handling\SpecialChar menuseparator
6891 Converters
6892 \end_layout
6893
6894 \end_inset
6895
6896  to 
6897 \begin_inset Flex Code
6898 status collapsed
6899
6900 \begin_layout Plain Layout
6901 latex -src-specials $$i
6902 \end_layout
6903
6904 \end_inset
6905
6906 .
6907  If this doesn't work, check if your \SpecialChar TeX
6908  engine needs different options (the
6909  syntax might differ in some distributions).
6910 \end_layout
6911
6912 \begin_layout Subsubsection*
6913 External Packages (PDFSync and scrltx) 
6914 \end_layout
6915
6916 \begin_layout Standard
6917 The packages 
6918 \emph on
6919 pdfsync
6920 \emph default
6921  and 
6922 \emph on
6923 scrltx
6924 \emph default
6925  provide reverse search facility for PDF output (via pdflatex) and DVI output,
6926  respectively.
6927  In order to enable it, load the packages in the \SpecialChar LyX
6928  preamble: 
6929 \end_layout
6930
6931 \begin_layout Itemize
6932 \begin_inset Flex Code
6933 status collapsed
6934
6935 \begin_layout Plain Layout
6936
6937 \backslash
6938 usepackage{pdfsync}
6939 \end_layout
6940
6941 \end_inset
6942
6943  for reverse PDF search,
6944 \end_layout
6945
6946 \begin_layout Itemize
6947 \begin_inset Flex Code
6948 status collapsed
6949
6950 \begin_layout Plain Layout
6951
6952 \backslash
6953 usepackage[active]{srcltx}
6954 \end_layout
6955
6956 \end_inset
6957
6958  for reverse DVI search.
6959 \end_layout
6960
6961 \begin_layout Standard
6962 If you want to be able to perform both DVI and PDF reverse searches, you
6963  can also insert in the preamble the following lines
6964 \end_layout
6965
6966 \begin_layout LyX-Code
6967
6968 \backslash
6969 usepackage{ifpdf}
6970 \begin_inset Newline newline
6971 \end_inset
6972
6973
6974 \backslash
6975 ifpdf
6976 \begin_inset Newline newline
6977 \end_inset
6978
6979   
6980 \backslash
6981 usepackage{pdfsync}
6982 \begin_inset Newline newline
6983 \end_inset
6984
6985
6986 \backslash
6987 else
6988 \begin_inset Newline newline
6989 \end_inset
6990
6991   
6992 \backslash
6993 usepackage[active]{srcltx}
6994 \begin_inset Newline newline
6995 \end_inset
6996
6997
6998 \backslash
6999 fi
7000 \end_layout
7001
7002 \begin_layout Standard
7003 This way, you can preview the file as either DVI or PDF (pdflatex) and the
7004  right package will be used.
7005 \end_layout
7006
7007 \begin_layout Standard
7008 Note that PDFSync might affect the output layout of your document.
7009  It is therefore advised to disable PDFsync for final documents.
7010 \end_layout
7011
7012 \begin_layout Subsubsection*
7013 Built-in reverse search via Sync\SpecialChar TeX
7014  (DVI and PDF) 
7015 \end_layout
7016
7017 \begin_layout Standard
7018 Recent versions of 
7019 \begin_inset Flex Code
7020 status collapsed
7021
7022 \begin_layout Plain Layout
7023 (pdf)latex
7024 \end_layout
7025
7026 \end_inset
7027
7028  have built-in support for both PDF and DVI reverse search.
7029  This so-called 
7030 \emph on
7031 Sync\SpecialChar TeX
7032
7033 \emph default
7034  facility is basically the result of the integration of the PDFSync package
7035  to the pdftex program and its merge with the 
7036 \emph on
7037 scr-specials
7038 \emph default
7039  approach.
7040  You need at least \SpecialChar TeX
7041 Live 2008 or a recent Mik\SpecialChar TeX
7042  distribution in order to use
7043  it.
7044 \begin_inset Foot
7045 status collapsed
7046
7047 \begin_layout Plain Layout
7048 For some reason, Mik\SpecialChar TeX
7049  does not understand/obey the command \SpecialChar LyX
7050  inserts into
7051  the preamble when you check the "Enable Forward/Reverse Search" button
7052  in the toolbar and does not generate the necessary info.
7053 \end_layout
7054
7055 \begin_layout Plain Layout
7056 The generation of the required info can be forced by changing the converter
7057  "\SpecialChar LaTeX
7058  (pdflatex) -> PDF (pdflatex)" in Preferences->File handling->Converters
7059  from the default "pdflatex $$i" to "pdflatex -synctex=1 $$i" (i.e., by adding
7060  the -synctex=1 switch).
7061 \end_layout
7062
7063 \end_inset
7064
7065  Also note that only a few PDF viewers (such as Okular and Qpdfview on Unix,
7066  Skim on the Mac, SumatraPDF on Windows; see the next section for details)
7067  already provide Sync\SpecialChar TeX
7068  support.
7069 \end_layout
7070
7071 \begin_layout Standard
7072 To enable Sync\SpecialChar TeX
7073  for DVI output, change the 
7074 \begin_inset Flex Noun
7075 status collapsed
7076
7077 \begin_layout Plain Layout
7078 La
7079 \family sans
7080 TeX
7081 \family default
7082  (plain) -> DVI
7083 \end_layout
7084
7085 \end_inset
7086
7087  or 
7088 \begin_inset Flex Noun
7089 status collapsed
7090
7091 \begin_layout Plain Layout
7092 La
7093 \family sans
7094 TeX
7095 \family default
7096  (plain) -> DraftDVI
7097 \end_layout
7098
7099 \end_inset
7100
7101  converter in 
7102 \begin_inset Flex Noun
7103 status collapsed
7104
7105 \begin_layout Plain Layout
7106 Preferences\SpecialChar menuseparator
7107 File Handling\SpecialChar menuseparator
7108 Converters
7109 \end_layout
7110
7111 \end_inset
7112
7113  to 
7114 \begin_inset Flex Code
7115 status collapsed
7116
7117 \begin_layout Plain Layout
7118 latex -synctex=1 $$i
7119 \end_layout
7120
7121 \end_inset
7122
7123 , and for PDF output, change the 
7124 \begin_inset Flex Noun
7125 status collapsed
7126
7127 \begin_layout Plain Layout
7128 La
7129 \family sans
7130 TeX
7131 \family default
7132  (pdflatex) -> PDF (pdflatex)
7133 \end_layout
7134
7135 \end_inset
7136
7137  converter to 
7138 \begin_inset Flex Code
7139 status collapsed
7140
7141 \begin_layout Plain Layout
7142 pdflatex -synctex=1 $$i
7143 \end_layout
7144
7145 \end_inset
7146
7147 .
7148  Should your viewer not be considered in the following description, or in
7149  case of missing success, please check the documentation of your viewer
7150  whether the viewer needs to be configured for the use with Sync\SpecialChar TeX
7151 .
7152 \begin_inset Foot
7153 status collapsed
7154
7155 \begin_layout Plain Layout
7156 Note that the option 
7157 \begin_inset Flex Code
7158 status collapsed
7159
7160 \begin_layout Plain Layout
7161 -synctex=1
7162 \end_layout
7163
7164 \end_inset
7165
7166  option enables gzip compression.
7167  If your viewer does not support it, you should instead use 
7168 \begin_inset Flex Code
7169 status collapsed
7170
7171 \begin_layout Plain Layout
7172 -synctex=-1
7173 \end_layout
7174
7175 \end_inset
7176
7177 .
7178 \end_layout
7179
7180 \end_inset
7181
7182
7183 \end_layout
7184
7185 \begin_layout Subsection
7186 Configuring and using specific viewers
7187 \begin_inset CommandInset label
7188 LatexCommand label
7189 name "subsec:configuring-viewers"
7190
7191 \end_inset
7192
7193
7194 \end_layout
7195
7196 \begin_layout Subsubsection*
7197 Xdvi (all platforms)
7198 \end_layout
7199
7200 \begin_layout Standard
7201 If you use 
7202 \begin_inset Flex Code
7203 status collapsed
7204
7205 \begin_layout Plain Layout
7206 xdvi
7207 \end_layout
7208
7209 \end_inset
7210
7211 , you don't need to do anything else for performing a reverse DVI search,
7212  as \SpecialChar LyX
7213  already provides the necessary hooks for automatically using the 
7214 \begin_inset Flex Code
7215 status collapsed
7216
7217 \begin_layout Plain Layout
7218 lyxclient
7219 \end_layout
7220
7221 \end_inset
7222
7223  program.
7224  Just setup your document as described above (reverse search is triggered
7225  by Ctrl-click or Alt-click on Mac OSX, respectively).
7226 \end_layout
7227
7228 \begin_layout Standard
7229 However, if for whatever reason you want to use the named pipe instead of
7230  the socket for communicating with \SpecialChar LyX
7231 , simply change the DVI viewer in 
7232 \begin_inset Flex Noun
7233 status collapsed
7234
7235 \begin_layout Plain Layout
7236 Preferences\SpecialChar menuseparator
7237 File Handling\SpecialChar menuseparator
7238 File formats
7239 \end_layout
7240
7241 \end_inset
7242
7243  to
7244 \begin_inset Foot
7245 status collapsed
7246
7247 \begin_layout Plain Layout
7248 On Mac OSX you have to use 
7249 \begin_inset Flex Code
7250 status collapsed
7251
7252 \begin_layout Plain Layout
7253 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
7254 \end_layout
7255
7256 \end_inset
7257
7258
7259 \end_layout
7260
7261 \end_inset
7262
7263  
7264 \begin_inset Flex Code
7265 status collapsed
7266
7267 \begin_layout Plain Layout
7268 xdvi -editor "lyxeditor.sh %f %l"
7269 \end_layout
7270
7271 \end_inset
7272
7273 , where 
7274 \begin_inset Flex Code
7275 status collapsed
7276
7277 \begin_layout Plain Layout
7278 lyxeditor.sh
7279 \end_layout
7280
7281 \end_inset
7282
7283  is a suitable script.
7284  For example, a minimal shell script is the following one:
7285 \end_layout
7286
7287 \begin_layout LyX-Code
7288 #!/bin/sh
7289 \begin_inset Newline newline
7290 \end_inset
7291
7292 LYXPIPE="/path/to/lyxpipe"
7293 \begin_inset Newline newline
7294 \end_inset
7295
7296 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
7297 \begin_inset Newline newline
7298 \end_inset
7299
7300 echo "$COMMAND" > "${LYXPIPE}".in || exit
7301 \begin_inset Newline newline
7302 \end_inset
7303
7304 read TMP < "${LYXPIPE}".out || exit
7305 \end_layout
7306
7307 \begin_layout Standard
7308 where 
7309 \begin_inset Flex Code
7310 status collapsed
7311
7312 \begin_layout Plain Layout
7313 /path/to/lyxpipe
7314 \end_layout
7315
7316 \end_inset
7317
7318  is the LyXServer pipe path specified in 
7319 \begin_inset Flex Noun
7320 status collapsed
7321
7322 \begin_layout Plain Layout
7323 Preferences\SpecialChar menuseparator
7324 Paths
7325 \end_layout
7326
7327 \end_inset
7328
7329 .
7330 \begin_inset Foot
7331 status collapsed
7332
7333 \begin_layout Plain Layout
7334 In the 
7335 \begin_inset Flex Code
7336 status collapsed
7337
7338 \begin_layout Plain Layout
7339 development/tools
7340 \end_layout
7341
7342 \end_inset
7343
7344  folder of a source distribution you can find a 
7345 \begin_inset Flex Code
7346 status collapsed
7347
7348 \begin_layout Plain Layout
7349 lyxeditor
7350 \end_layout
7351
7352 \end_inset
7353
7354  script which is able to locate the 
7355 \emph on
7356 lyxpipe
7357 \emph default
7358  based on your preferences.
7359 \end_layout
7360
7361 \end_inset
7362
7363
7364 \end_layout
7365
7366 \begin_layout Subsubsection*
7367 MacDviX (Mac OSX)
7368 \end_layout
7369
7370 \begin_layout Standard
7371 At the end of 
7372 \begin_inset Flex Code
7373 status collapsed
7374
7375 \begin_layout Plain Layout
7376 /Applications/MacDviX_Folder/calleditor.script
7377 \end_layout
7378
7379 \end_inset
7380
7381 , add the following lines:
7382 \end_layout
7383
7384 \begin_layout LyX-Code
7385 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
7386 \begin_inset Newline newline
7387 \end_inset
7388
7389 exit 1
7390 \end_layout
7391
7392 \begin_layout Standard
7393 Modify the lines accordingly if you install \SpecialChar LyX
7394  somewhere else than in the
7395  Applications folder.
7396 \end_layout
7397
7398 \begin_layout Standard
7399 Reverse search is triggered by Alt-click (OPTION-click).
7400 \end_layout
7401
7402 \begin_layout Subsubsection*
7403 Skim (Mac OSX)
7404 \end_layout
7405
7406 \begin_layout Standard
7407 Enter 
7408 \begin_inset Flex Code
7409 status collapsed
7410
7411 \begin_layout Plain Layout
7412 open -a Skim.app $$i
7413 \end_layout
7414
7415 \end_inset
7416
7417  to the viewer setting in 
7418 \begin_inset Flex Noun
7419 status collapsed
7420
7421 \begin_layout Plain Layout
7422 Preferences\SpecialChar menuseparator
7423 File Handling\SpecialChar menuseparator
7424 File formats\SpecialChar menuseparator
7425 PDF (pdflatex)
7426 \end_layout
7427
7428 \end_inset
7429
7430 , and then in 
7431 \begin_inset Flex Noun
7432 status collapsed
7433
7434 \begin_layout Plain Layout
7435 Skim\SpecialChar menuseparator
7436 Preferences\SpecialChar menuseparator
7437 Sync
7438 \end_layout
7439
7440 \end_inset
7441
7442  choose 
7443 \begin_inset Flex Noun
7444 status collapsed
7445
7446 \begin_layout Plain Layout
7447 custom
7448 \end_layout
7449
7450 \end_inset
7451
7452  preset and enter command 
7453 \begin_inset Flex Noun
7454 status collapsed
7455
7456 \begin_layout Plain Layout
7457 /Applications/\SpecialChar LyX
7458 .app/Contents/MacOS/lyxeditor
7459 \end_layout
7460
7461 \end_inset
7462
7463 .
7464 \end_layout
7465
7466 \begin_layout Standard
7467 Reverse search is triggered by COMMAND-SHIFT-click
7468 \end_layout
7469
7470 \begin_layout Subsubsection*
7471 Evince (GNOME)
7472 \end_layout
7473
7474 \begin_layout Standard
7475 Reverse search with evince does not work out of the box, but it can be achieved
7476  by means of some third party helper scripts.
7477  Please refer to 
7478 \begin_inset CommandInset href
7479 LatexCommand href
7480 target "https://wiki.lyx.org/LyX/SyncTeX"
7481 literal "false"
7482
7483 \end_inset
7484
7485  for details.
7486 \end_layout
7487
7488 \begin_layout Subsubsection*
7489 Okular (KDE)
7490 \end_layout
7491
7492 \begin_layout Standard
7493 Go to 
7494 \begin_inset Flex Noun
7495 status collapsed
7496
7497 \begin_layout Plain Layout
7498 Settings\SpecialChar menuseparator
7499 Configure Okular\SpecialChar menuseparator
7500 Editor
7501 \end_layout
7502
7503 \end_inset
7504
7505  and select LyX
7506 \begin_inset Quotes erd
7507 \end_inset
7508
7509  as editor.
7510  This inserts the appropriate command (
7511 \begin_inset Flex Code
7512 status collapsed
7513
7514 \begin_layout Plain Layout
7515 lyxclient -g %f %l
7516 \end_layout
7517
7518 \end_inset
7519
7520 ).
7521 \end_layout
7522
7523 \begin_layout Standard
7524 Reverse search is triggered by SHIFT-click.
7525 \end_layout
7526
7527 \begin_layout Subsubsection*
7528 Qpdfview (Unix)
7529 \end_layout
7530
7531 \begin_layout Standard
7532 Qpdfview supports Sync\SpecialChar TeX
7533  since version 0.3.5.
7534  Go to 
7535 \begin_inset Flex Noun
7536 status collapsed
7537
7538 \begin_layout Plain Layout
7539 Edit\SpecialChar menuseparator
7540 Settings\SpecialChar menuseparator
7541 Behavior
7542 \end_layout
7543
7544 \end_inset
7545
7546 , click on the input field of the 
7547 \begin_inset Quotes eld
7548 \end_inset
7549
7550 Source editor
7551 \begin_inset Quotes erd
7552 \end_inset
7553
7554  item and add the command 
7555 \begin_inset Flex Code
7556 status collapsed
7557
7558 \begin_layout Plain Layout
7559 lyxclient -g %1 %2
7560 \end_layout
7561
7562 \end_inset
7563
7564 .
7565 \end_layout
7566
7567 \begin_layout Standard
7568 Reverse search is triggered by double-click or, in more recent versions,
7569  by context menu.
7570 \end_layout
7571
7572 \begin_layout Subsubsection*
7573 YAP (Windows)
7574 \end_layout
7575
7576 \begin_layout Standard
7577 Launch yap, choose its 
7578 \begin_inset Flex Noun
7579 status collapsed
7580
7581 \begin_layout Plain Layout
7582 View\SpecialChar menuseparator
7583 Options
7584 \end_layout
7585
7586 \end_inset
7587
7588  menu and select the 
7589 \begin_inset Quotes eld
7590 \end_inset
7591
7592 Inverse DVI Search
7593 \begin_inset Quotes erd
7594 \end_inset
7595
7596  tab.
7597  Click on the 
7598 \begin_inset Quotes eld
7599 \end_inset
7600
7601 New\SpecialChar ldots
7602
7603 \begin_inset Quotes erd
7604 \end_inset
7605
7606  button and, in the window that opens, enter 
7607 \begin_inset Quotes eld
7608 \end_inset
7609
7610 \SpecialChar LyX
7611  Editor
7612 \begin_inset Quotes erd
7613 \end_inset
7614
7615  (or any other name you like) in the 
7616 \begin_inset Quotes eld
7617 \end_inset
7618
7619 Name:
7620 \begin_inset Quotes erd
7621 \end_inset
7622
7623  field.
7624  Now click on the button labeled 
7625 \begin_inset Quotes eld
7626 \end_inset
7627
7628 \SpecialChar ldots
7629
7630 \begin_inset Quotes erd
7631 \end_inset
7632
7633  to open a file dialog and navigate to the directory containing the batch
7634  file 
7635 \begin_inset Flex Code
7636 status collapsed
7637
7638 \begin_layout Plain Layout
7639 lyxeditor.bat
7640 \end_layout
7641
7642 \end_inset
7643
7644  (see below).
7645  Select 
7646 \begin_inset Flex Code
7647 status collapsed
7648
7649 \begin_layout Plain Layout
7650 lyxeditor.bat
7651 \end_layout
7652
7653 \end_inset
7654
7655  and then specify the program arguments as 
7656 \begin_inset Flex Code
7657 status collapsed
7658
7659 \begin_layout Plain Layout
7660 %f %l
7661 \end_layout
7662
7663 \end_inset
7664
7665 .
7666  The 
7667 \begin_inset Flex Code
7668 status collapsed
7669
7670 \begin_layout Plain Layout
7671 lyxeditor.bat
7672 \end_layout
7673
7674 \end_inset
7675
7676  wrapper is used for communicating with \SpecialChar LyX
7677  through the 
7678 \emph on
7679 lyxpipe
7680 \emph default
7681  and is as follows:
7682 \end_layout
7683
7684 \begin_layout LyX-Code
7685 @echo off
7686 \begin_inset Newline newline
7687 \end_inset
7688
7689 echo LYXCMD:revdvi:server-goto-file-row:%~1 %2> 
7690 \backslash
7691
7692 \backslash
7693 .
7694 \backslash
7695 pipe
7696 \backslash
7697 lyxpipe.in
7698 \begin_inset Newline newline
7699 \end_inset
7700
7701 type 
7702 \backslash
7703
7704 \backslash
7705 .
7706 \backslash
7707 pipe
7708 \backslash
7709 lyxpipe.out
7710 \end_layout
7711
7712 \begin_layout Standard
7713 Make sure that the \SpecialChar LyX
7714 Server pipe path you specified in \SpecialChar LyX
7715  is 
7716 \begin_inset Flex Code
7717 status collapsed
7718
7719 \begin_layout Plain Layout
7720
7721 \backslash
7722
7723 \backslash
7724 .
7725 \backslash
7726 pipe
7727 \backslash
7728 lyxpipe
7729 \end_layout
7730
7731 \end_inset
7732
7733 , otherwise change the 
7734 \begin_inset Flex Code
7735 status collapsed
7736
7737 \begin_layout Plain Layout
7738 lyxeditor.bat
7739 \end_layout
7740
7741 \end_inset
7742
7743  wrapper accordingly.
7744 \end_layout
7745
7746 \begin_layout Standard
7747 In yap, reverse search is triggered by double-click.
7748 \end_layout
7749
7750 \begin_layout Subsubsection*
7751 SumatraPDF (Windows)
7752 \end_layout
7753
7754 \begin_layout Standard
7755 In order to use SumatraPDF for inverse search, enter 
7756 \begin_inset Flex Code
7757 status collapsed
7758
7759 \begin_layout Plain Layout
7760 SumatraPDF -inverse-search "lyxeditor.bat "%f" %l"
7761 \end_layout
7762
7763 \end_inset
7764
7765  in the viewer setting in 
7766 \begin_inset Flex Noun
7767 status collapsed
7768
7769 \begin_layout Plain Layout
7770 Preferences\SpecialChar menuseparator
7771 File Handling\SpecialChar menuseparator
7772 File formats\SpecialChar menuseparator
7773 PDF (pdflatex)
7774 \end_layout
7775
7776 \end_inset
7777
7778 , where 
7779 \begin_inset Flex Code
7780 status collapsed
7781
7782 \begin_layout Plain Layout
7783 lyxeditor.bat
7784 \end_layout
7785
7786 \end_inset
7787
7788  is the previous wrapper.
7789  If SumatraPDF.exe is not in your command PATH, use its full file name.
7790 \end_layout
7791
7792 \begin_layout Standard
7793 Reverse search is triggered by double-click.
7794 \end_layout
7795
7796 \begin_layout Subsubsection*
7797 YAP (Cygwin)
7798 \end_layout
7799
7800 \begin_layout Standard
7801 First of all, make sure that yap is your default DVI viewer in the Windows
7802  environment, then launch it, choose its 
7803 \begin_inset Flex Noun
7804 status collapsed
7805
7806 \begin_layout Plain Layout
7807 View\SpecialChar menuseparator
7808 Options
7809 \end_layout
7810
7811 \end_inset
7812
7813  menu and select the 
7814 \begin_inset Quotes eld
7815 \end_inset
7816
7817 Inverse DVI Search
7818 \begin_inset Quotes erd
7819 \end_inset
7820
7821  tab.
7822  Click on the 
7823 \begin_inset Quotes eld
7824 \end_inset
7825
7826 New\SpecialChar ldots
7827
7828 \begin_inset Quotes erd
7829 \end_inset
7830
7831  button and, in the window that opens, enter 
7832 \begin_inset Quotes eld
7833 \end_inset
7834
7835 \SpecialChar LyX
7836  Editor
7837 \begin_inset Quotes erd
7838 \end_inset
7839
7840  (or any other name you like) in the 
7841 \begin_inset Quotes eld
7842 \end_inset
7843
7844 Name:
7845 \begin_inset Quotes erd
7846 \end_inset
7847
7848  field.
7849  Now click on the button labeled 
7850 \begin_inset Quotes eld
7851 \end_inset
7852
7853 \SpecialChar ldots
7854
7855 \begin_inset Quotes erd
7856 \end_inset
7857
7858  to open a file dialog and navigate to the directory containing the 
7859 \begin_inset Flex Code
7860 status collapsed
7861
7862 \begin_layout Plain Layout
7863 lyxeditor.exe
7864 \end_layout
7865
7866 \end_inset
7867
7868  program (which is installed by default on Cygwin along with the \SpecialChar LyX
7869  executable).
7870  Select 
7871 \begin_inset Flex Code
7872 status collapsed
7873
7874 \begin_layout Plain Layout
7875 lyxeditor.exe
7876 \end_layout
7877
7878 \end_inset
7879
7880  and then specify the program arguments as 
7881 \begin_inset Flex Code
7882 status collapsed
7883
7884 \begin_layout Plain Layout
7885 -g %f %l
7886 \end_layout
7887
7888 \end_inset
7889
7890 .
7891  In this way, you will be using the 
7892 \emph on
7893 lyxsocket
7894 \emph default
7895  for communicating with \SpecialChar LyX
7896 .
7897  If, for whatever reason, you want to use the 
7898 \emph on
7899 lyxpipe
7900 \emph default
7901 , omit the 
7902 \begin_inset Flex Code
7903 status collapsed
7904
7905 \begin_layout Plain Layout
7906 -g
7907 \end_layout
7908
7909 \end_inset
7910
7911  option and be sure to specify the \SpecialChar LyX
7912 Server pipe path in the \SpecialChar LyX
7913  preferences.
7914 \end_layout
7915
7916 \begin_layout Standard
7917 In yap, reverse search is triggered by double-click.
7918 \end_layout
7919
7920 \begin_layout Subsubsection*
7921 SumatraPDF (Cygwin)
7922 \end_layout
7923
7924 \begin_layout Standard
7925 In order to use SumatraPDF for inverse search, enter 
7926 \begin_inset Flex Code
7927 status collapsed
7928
7929 \begin_layout Plain Layout
7930 SumatraPDF -inverse-search "lyxeditor -g %f %l"
7931 \end_layout
7932
7933 \end_inset
7934
7935  in the viewer setting in 
7936 \begin_inset Flex Noun
7937 status collapsed
7938
7939 \begin_layout Plain Layout
7940 Preferences\SpecialChar menuseparator
7941 File Handling\SpecialChar menuseparator
7942 File formats\SpecialChar menuseparator
7943 PDF (pdflatex)
7944 \end_layout
7945
7946 \end_inset
7947
7948 .
7949  If SumatraPDF.exe is not in your command PATH, use its full posix path.
7950  The 
7951 \begin_inset Flex Code
7952 status collapsed
7953
7954 \begin_layout Plain Layout
7955 -g
7956 \end_layout
7957
7958 \end_inset
7959
7960  enables communication via the 
7961 \emph on
7962 lyxsocket
7963 \emph default
7964 .
7965  Again, omit the 
7966 \begin_inset Flex Code
7967 status collapsed
7968
7969 \begin_layout Plain Layout
7970 -g
7971 \end_layout
7972
7973 \end_inset
7974
7975  option if you want to use the 
7976 \emph on
7977 lyxpipe
7978 \emph default
7979 , and be sure to specify the \SpecialChar LyX
7980 Server pipe path in the \SpecialChar LyX
7981  preferences.
7982 \end_layout
7983
7984 \begin_layout Standard
7985 Reverse search is triggered by double-click.
7986 \end_layout
7987
7988 \begin_layout Section
7989 Forward search
7990 \end_layout
7991
7992 \begin_layout Standard
7993 Forward search is, as the name implies, in a sense the 
7994 \begin_inset Quotes eld
7995 \end_inset
7996
7997 opposite
7998 \begin_inset Quotes erd
7999 \end_inset
8000
8001  of reverse search.
8002  It allows you to let the viewer jump to a given position from within \SpecialChar LyX
8003 .
8004  If forward search is set up (as described in what follows), you can put
8005  the cursor anywhere in your \SpecialChar LyX
8006  document, and hit 
8007 \begin_inset Flex Noun
8008 status collapsed
8009
8010 \begin_layout Plain Layout
8011 Navigate\SpecialChar menuseparator
8012 Forward search
8013 \end_layout
8014
8015 \end_inset
8016
8017  (or select 
8018 \begin_inset Flex Noun
8019 status collapsed
8020
8021 \begin_layout Plain Layout
8022 Forward search
8023 \end_layout
8024
8025 \end_inset
8026
8027  in the context menu via right mouse click), and then the viewer will jump
8028  to that position as well.
8029  This implies, of course, that your viewer supports this function.
8030 \end_layout
8031
8032 \begin_layout Standard
8033 To make forward search possible, you first need to provide the generated
8034  output PDF/DVI file with additional information about the \SpecialChar TeX
8035  sources.
8036  This can be done via the methods described in the section 
8037 \begin_inset CommandInset ref
8038 LatexCommand ref
8039 reference "subsec:rev-search"
8040
8041 \end_inset
8042
8043 .
8044 \end_layout
8045
8046 \begin_layout Standard
8047 Additionally, you need to configure \SpecialChar LyX
8048  for using your viewers in 
8049 \begin_inset Flex Noun
8050 status collapsed
8051
8052 \begin_layout Plain Layout
8053 Tools\SpecialChar menuseparator
8054 Preferences\SpecialChar menuseparator
8055 Output\SpecialChar menuseparator
8056 General
8057 \end_layout
8058
8059 \end_inset
8060
8061 .
8062  We provide a range of tested configurations for some viewers, which you
8063  can select from the drop down list.
8064  If none of these configurations suits you, you have to find out and enter
8065  a suitable configuration yourself.
8066  The definition syntax uses the following placeholders:
8067 \end_layout
8068
8069 \begin_layout Itemize
8070 \noindent
8071 \begin_inset Flex Code
8072 status collapsed
8073
8074 \begin_layout Plain Layout
8075 $$n
8076 \end_layout
8077
8078 \end_inset
8079
8080 : row number
8081 \end_layout
8082
8083 \begin_layout Itemize
8084 \noindent
8085 \begin_inset Flex Code
8086 status collapsed
8087
8088 \begin_layout Plain Layout
8089 $$t
8090 \end_layout
8091
8092 \end_inset
8093
8094 : name of the (temporary) exported .tex file (without path)
8095 \end_layout
8096
8097 \begin_layout Itemize
8098 \noindent
8099 \begin_inset Flex Code
8100 status collapsed
8101
8102 \begin_layout Plain Layout
8103 $$f
8104 \end_layout
8105
8106 \end_inset
8107
8108 : name of the (temporary) exported .tex file (including path)
8109 \end_layout
8110
8111 \begin_layout Itemize
8112 \noindent
8113 \begin_inset Flex Code
8114 status collapsed
8115
8116 \begin_layout Plain Layout
8117 $$o
8118 \end_layout
8119
8120 \end_inset
8121
8122 : name of the exported output file (either dvi or pdf, depending on which
8123  one exists in the temporary directory)
8124 \end_layout
8125
8126 \begin_layout Standard
8127 Note that only some of the viewers provide full and usable forward search
8128  functionality out of the box, among them yap, xdvi, okular
8129 \begin_inset Foot
8130 status collapsed
8131
8132 \begin_layout Plain Layout
8133 You might want to set 
8134 \begin_inset Flex Code
8135 status collapsed
8136
8137 \begin_layout Plain Layout
8138 okular --unique
8139 \end_layout
8140
8141 \end_inset
8142
8143  in 
8144 \begin_inset Flex Noun
8145 status collapsed
8146
8147 \begin_layout Plain Layout
8148 Tools\SpecialChar menuseparator
8149 Preferences\SpecialChar menuseparator
8150 File Handling\SpecialChar menuseparator
8151 File
8152 \begin_inset space ~
8153 \end_inset
8154
8155 Formats
8156 \end_layout
8157
8158 \end_inset
8159
8160
8161 \end_layout
8162
8163 \end_inset
8164
8165 , qpdfview, and SumatraPDF
8166 \begin_inset Foot
8167 status collapsed
8168
8169 \begin_layout Plain Layout
8170 SumatraPDF can also use DDE commands through the external program CMCDDE
8171  â€” downloadable from 
8172 \begin_inset CommandInset href
8173 LatexCommand href
8174 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
8175 literal "false"
8176
8177 \end_inset
8178
8179
8180 \end_layout
8181
8182 \end_inset
8183
8184 .
8185  Others, such as evince
8186 \begin_inset Foot
8187 status collapsed
8188
8189 \begin_layout Plain Layout
8190 Forward search with evince can be achieved by means of third party helper
8191  scripts.
8192  Please refer to 
8193 \begin_inset CommandInset href
8194 LatexCommand href
8195 target "https://wiki.lyx.org/LyX/SyncTeX"
8196 literal "false"
8197
8198 \end_inset
8199
8200  for details.
8201 \end_layout
8202
8203 \end_inset
8204
8205 , require some extra tools in order to use forward search.
8206  While many of the widespread PDF viewers (most notably Adobe Reader) do
8207  not support forward search at all, some other viewers â€“ e.
8208 \begin_inset space \thinspace{}
8209 \end_inset
8210
8211 g.
8212  xpdf â€“ allow at least to reload the document and jump to a specific page
8213  of the file, so you can at least navigate 
8214 \begin_inset Quotes eld
8215 \end_inset
8216
8217 near
8218 \begin_inset Quotes erd
8219 \end_inset
8220
8221 .
8222  This latter functionality is provided by an external call of synctex (see
8223  the predefined example configurations).
8224  
8225 \end_layout
8226
8227 \begin_layout Standard
8228 Forward search works both with DVI and PDF output.
8229  \SpecialChar LyX
8230  simply checks which preview format you have used before (i.
8231 \begin_inset space \thinspace{}
8232 \end_inset
8233
8234 e., which format is already there in the temporary directory) and chooses
8235  the appropriate configuration for the respective format.
8236 \end_layout
8237
8238 \begin_layout Chapter
8239 Special Document Classes
8240 \end_layout
8241
8242 \begin_layout Section
8243 A&A Paper
8244 \end_layout
8245
8246 \begin_layout Standard
8247 by 
8248 \noun on
8249 Peter Sütterlin
8250 \end_layout
8251
8252 \begin_layout Subsection
8253 Introduction
8254 \end_layout
8255
8256 \begin_layout Standard
8257 This section describes how \SpecialChar LyX
8258  can be used to write articles for submission
8259  to the scientific journal 
8260 \emph on
8261 Astronomy and Astrophysics
8262 \emph default
8263  (
8264 \begin_inset Flex URL
8265 status collapsed
8266
8267 \begin_layout Plain Layout
8268
8269 https://www.aanda.org/
8270 \end_layout
8271
8272 \end_inset
8273
8274 ) using Version 5.01 of the document class 
8275 \family typewriter
8276 aa.cls
8277 \family default
8278 .
8279  This package can be downloaded from the ftp site
8280 \end_layout
8281
8282 \begin_layout Standard
8283 \begin_inset VSpace medskip
8284 \end_inset
8285
8286
8287 \end_layout
8288
8289 \begin_layout Standard
8290 \align center
8291 \begin_inset Flex URL
8292 status collapsed
8293
8294 \begin_layout Plain Layout
8295
8296 ftp://ftp.edpsciences.org/pub/aa/readme.html
8297 \end_layout
8298
8299 \end_inset
8300
8301
8302 \end_layout
8303
8304 \begin_layout Standard
8305 \begin_inset VSpace medskip
8306 \end_inset
8307
8308
8309 \end_layout
8310
8311 \begin_layout Standard
8312 A manual comes together with that package, and this text is not meant to
8313  replace the original manual but is merely a short guide in how to realize
8314  the correct form of your paper.
8315  
8316 \end_layout
8317
8318 \begin_layout Standard
8319 Please note that the publisher of the journal was changed from Springer
8320  to EDP Sciences starting January 1, 2001.
8321  That change involved also some slight changes to the style files, namely
8322  the removal of the thesaurus command.
8323  The \SpecialChar LyX
8324  class aa supports the newest version of these style files, V 5.01.
8325  If you have an older version installed, please upgrade.
8326  For compatibility, the old (version 4) layout has been kept as 
8327 \family sans
8328 article (A&A V4)
8329 \family default
8330 .
8331  Please refer to the comments in 
8332 \family typewriter
8333 \SpecialChar LyX
8334 Dir/layouts/aapaper.layout
8335 \family default
8336 .
8337 \end_layout
8338
8339 \begin_layout Subsection
8340 Getting started
8341 \end_layout
8342
8343 \begin_layout Standard
8344 It is recommended you start from the example template distributed with \SpecialChar LyX
8345 .
8346  If you are not using a template, note the following settings:
8347 \end_layout
8348
8349 \begin_layout Itemize
8350 Select 
8351 \family sans
8352 article (A&A)
8353 \family default
8354  in the 
8355 \family sans
8356 Document\SpecialChar menuseparator
8357 Settings
8358 \family default
8359  dialog (OK, that one was obvious).
8360 \end_layout
8361
8362 \begin_layout Itemize
8363 Don't change the option 
8364 \family sans
8365 Page
8366 \begin_inset space ~
8367 \end_inset
8368
8369 style
8370 \family default
8371 : Leave it set to 
8372 \family sans
8373 default
8374 \family default
8375 .
8376  The whole layout is done by the macros, you shouldn't change anything.
8377 \end_layout
8378
8379 \begin_layout Subsection
8380 The header block
8381 \end_layout
8382
8383 \begin_layout Standard
8384 First thing to enter is the header information.
8385  It consists of seven entries, of which some are optional.
8386  They are
8387 \end_layout
8388
8389 \begin_layout Itemize
8390
8391 \family sans
8392 Title
8393 \family default
8394 : [required] 
8395 \end_layout
8396
8397 \begin_layout Itemize
8398
8399 \family sans
8400 Subtitle
8401 \family default
8402 : [optional] 
8403 \end_layout
8404
8405 \begin_layout Itemize
8406
8407 \family sans
8408 Author
8409 \family default
8410 : [required]
8411 \end_layout
8412
8413 \begin_layout Itemize
8414
8415 \family sans
8416 Address
8417 \family default
8418 : [required]
8419 \end_layout
8420
8421 \begin_layout Itemize
8422
8423 \family sans
8424 Offprints
8425 \family default
8426 : [optional] if more than one author: whom to contact for offprint requests.
8427 \end_layout
8428
8429 \begin_layout Itemize
8430
8431 \family sans
8432 Mail
8433 \family default
8434 : [optional] mail address for contacts.
8435 \end_layout
8436
8437 \begin_layout Itemize
8438
8439 \family sans
8440 Date
8441 \family default
8442 : [required].
8443  Suggested format is 
8444 \family typewriter
8445 Received: <date>; Accepted <date> 
8446 \end_layout
8447
8448 \begin_layout Standard
8449 There is no need to issue the 
8450 \family typewriter
8451
8452 \backslash
8453 maketitle
8454 \family default
8455  command, this is done automatically by \SpecialChar LyX
8456  when the header is finished.
8457  Although the order of the single header entries doesn't matter it is advised
8458  to keep the above sequence, just to get the best optics and meets the layout
8459  of the real document.
8460 \end_layout
8461
8462 \begin_layout Standard
8463 If you want to place footnotes in the header block, e.
8464 \begin_inset space \thinspace{}
8465 \end_inset
8466
8467 g.
8468 \begin_inset space \space{}
8469 \end_inset
8470
8471 to state your present address, just use the standard footnote via the menu
8472  
8473 \family sans
8474 Insert\SpecialChar menuseparator
8475 Footnote.
8476
8477 \family default
8478  \SpecialChar LyX
8479  will automagically use the term 
8480 \family typewriter
8481
8482 \backslash
8483 thanks{}
8484 \family default
8485  in that case.
8486 \end_layout
8487
8488 \begin_layout Standard
8489 Under 
8490 \family sans
8491 Edit\SpecialChar menuseparator
8492 Text Style
8493 \family default
8494 , you'll find two insets which are relevant for the titling:
8495 \end_layout
8496
8497 \begin_layout Itemize
8498
8499 \family sans
8500 Institute
8501 \family typewriter
8502  
8503 \family default
8504 to mark corresponding author\SpecialChar breakableslash
8505 institute pairs.
8506  The institutes are numbered sequentially as they appear in the 
8507 \family sans
8508 Address
8509 \family default
8510  field, so you have to put a marker to each author.
8511 \end_layout
8512
8513 \begin_layout Itemize
8514
8515 \family sans
8516 Email
8517 \family default
8518  to supply an email address for fast contact.
8519 \end_layout
8520
8521 \begin_layout Standard
8522 In addition to these topics, the macros use one additional \SpecialChar LaTeX
8523  command that
8524  has no counterpart in \SpecialChar LyX
8525 :
8526 \end_layout
8527
8528 \begin_layout Itemize
8529
8530 \family typewriter
8531
8532 \backslash
8533 and
8534 \family default
8535  to separate different names for more than one author and institute, respectivel
8536 y.
8537 \end_layout
8538
8539 \begin_layout Standard
8540 The appropriate command has to be entered in \SpecialChar LyX
8541  and marked as \SpecialChar LaTeX
8542  code.
8543  See the examples.
8544  
8545 \end_layout
8546
8547 \begin_layout Subsection
8548 The abstract
8549 \end_layout
8550
8551 \begin_layout Standard
8552 The abstract should immediately follow the header block.
8553  With version 5 the abstract environment was changed to a command, and there
8554  is now a restriction to only one paragraph.
8555  In addition, it should contain an entry with the keywords.
8556  This is done via the paragraph style 
8557 \family sans
8558 Keywords
8559 \family default
8560 .
8561  Refer to the example paper.
8562 \end_layout
8563
8564 \begin_layout Subsection
8565 Supported environments
8566 \end_layout
8567
8568 \begin_layout Standard
8569 The A&A paper layout supports the following environments for structuring
8570  your text:
8571 \end_layout
8572
8573 \begin_layout Itemize
8574
8575 \family sans
8576 Standard
8577 \end_layout
8578
8579 \begin_layout Itemize
8580
8581 \family sans
8582 Section
8583 \end_layout
8584
8585 \begin_layout Itemize
8586
8587 \family sans
8588 Subsection
8589 \end_layout
8590
8591 \begin_layout Itemize
8592
8593 \family sans
8594 Subsubsection
8595 \end_layout
8596
8597 \begin_layout Itemize
8598
8599 \family sans
8600 Itemize
8601 \end_layout
8602
8603 \begin_layout Itemize
8604
8605 \family sans
8606 Enumerate
8607 \end_layout
8608
8609 \begin_layout Itemize
8610
8611 \family sans
8612 Description
8613 \end_layout
8614
8615 \begin_layout Itemize
8616
8617 \family sans
8618 Caption
8619 \end_layout
8620
8621 \begin_layout Itemize
8622
8623 \family sans
8624 Abstract
8625 \end_layout
8626
8627 \begin_layout Itemize
8628
8629 \family sans
8630 Acknowledgment
8631 \end_layout
8632
8633 \begin_layout Itemize
8634
8635 \family sans
8636 Bibliography
8637 \end_layout
8638
8639 \begin_layout Itemize
8640
8641 \family sans
8642 \SpecialChar LaTeX
8643
8644 \end_layout
8645
8646 \begin_layout Subsection
8647 Commands not supported by \SpecialChar LyX
8648
8649 \end_layout
8650
8651 \begin_layout Standard
8652 Some commands are not yet supported by the 
8653 \family sans
8654 paper (A&A)
8655 \family default
8656  layout for \SpecialChar LyX
8657 .
8658  Some have already been mentioned.
8659  For the sake of completeness, they are listed all together here:
8660 \end_layout
8661
8662 \begin_layout Itemize
8663
8664 \family typewriter
8665
8666 \backslash
8667 and
8668 \end_layout
8669
8670 \begin_layout Itemize
8671
8672 \family typewriter
8673
8674 \backslash
8675 authorrunning
8676 \end_layout
8677
8678 \begin_layout Itemize
8679
8680 \family typewriter
8681
8682 \backslash
8683 object{}
8684 \end_layout
8685
8686 \begin_layout Itemize
8687
8688 \family typewriter
8689
8690 \backslash
8691 titlerunning{}
8692 \end_layout
8693
8694 \begin_layout Standard
8695 If you want to use any of these commands, you have to enter them yourself.
8696  
8697 \series bold
8698 Do not forget to mark them as \SpecialChar LaTeX
8699  code!
8700 \end_layout
8701
8702 \begin_layout Subsection
8703 Figure and Table Floats
8704 \end_layout
8705
8706 \begin_layout Standard
8707 \SpecialChar LyX
8708  provides support for the necessary float environments 
8709 \family sans
8710 figure, figure*, table
8711 \family default
8712  and 
8713 \family sans
8714 table*
8715 \family default
8716 , therefore we won't tell much about it here.
8717  Refer to the 
8718 \emph on
8719 User's
8720 \begin_inset space ~
8721 \end_inset
8722
8723 Guide
8724 \emph default
8725 .
8726  Just remember that tables should be left-aligned.
8727  For that, select the table and change the alignment in 
8728 \family sans
8729 Edit\SpecialChar menuseparator
8730 Paragraph
8731 \begin_inset space ~
8732 \end_inset
8733
8734 Settings.
8735 \end_layout
8736
8737 \begin_layout Standard
8738 There is only one special thing: the figures with caption besides the figure.
8739  To create such a figure, you have to do the following:
8740 \end_layout
8741
8742 \begin_layout Enumerate
8743 Create a wide figure float: 
8744 \family sans
8745 Insert\SpecialChar menuseparator
8746 Float\SpecialChar menuseparator
8747 Figure
8748 \family default
8749 , then right click in the figure and select 
8750 \family sans
8751 Span
8752 \begin_inset space ~
8753 \end_inset
8754
8755 columns
8756 \family default
8757 .
8758 \end_layout
8759
8760 \begin_layout Enumerate
8761 Enter your caption text.
8762 \end_layout
8763
8764 \begin_layout Enumerate
8765 Press 
8766 \family sans
8767 Return
8768 \family default
8769  to move the cursor above the caption.
8770 \end_layout
8771
8772 \begin_layout Enumerate
8773 Insert your figure
8774 \end_layout
8775
8776 \begin_layout Enumerate
8777 Position the cursor behind the figure and insert a horizontal fill: 
8778 \family sans
8779 Insert\SpecialChar menuseparator
8780 Special
8781 \begin_inset space ~
8782 \end_inset
8783
8784 Character\SpecialChar menuseparator
8785 Horizontal
8786 \begin_inset space ~
8787 \end_inset
8788
8789 Fill
8790 \family default
8791 .
8792 \end_layout
8793
8794 \begin_layout Enumerate
8795 Switch to \SpecialChar LaTeX
8796  mode: 
8797 \family sans
8798 M-c
8799 \begin_inset space ~
8800 \end_inset
8801
8802 t
8803 \family default
8804 .
8805 \end_layout
8806
8807 \begin_layout Enumerate
8808 Enter 
8809 \family typewriter
8810
8811 \backslash
8812 parbox[b]{55mm}{
8813 \family default
8814 .
8815  
8816 \series bold
8817 Do not close the brace!
8818 \end_layout
8819
8820 \begin_layout Enumerate
8821 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
8822  mode and insert
8823  the closing brace: 
8824 \family sans
8825 M-c
8826 \begin_inset space ~
8827 \end_inset
8828
8829 t
8830 \family default
8831  
8832 \family typewriter
8833 }
8834 \family default
8835 .
8836 \end_layout
8837
8838 \begin_layout Standard
8839 Also, refer to the figures in the example paper.
8840 \end_layout
8841
8842 \begin_layout Subsection
8843 Referee layout
8844 \end_layout
8845
8846 \begin_layout Standard
8847 For submission, the paper has to be formated in a special double-spacing
8848  layout.
8849  For this purpose, you have to give the option 
8850 \family typewriter
8851 referee
8852 \family default
8853  to the document class.
8854  This must be done using the custom class options field in the 
8855 \family sans
8856 Document\SpecialChar menuseparator
8857 Settings
8858 \family default
8859  dialog.
8860  Just enter the string 
8861 \family typewriter
8862 referee
8863 \family default
8864  there.
8865 \end_layout
8866
8867 \begin_layout Subsection
8868 The example paper
8869 \end_layout
8870
8871 \begin_layout Standard
8872 The 
8873 \family sans
8874 Examples
8875 \family default
8876  directory contains an example paper written with \SpecialChar LyX
8877 .
8878  It is the example paper from the original macro package, translated to
8879  \SpecialChar LyX
8880 .
8881  Use it for inspiration, and compare the original \SpecialChar LaTeX
8882  code with \SpecialChar LyX
8883  way of writing.
8884 \end_layout
8885
8886 \begin_layout Section
8887 AAS\SpecialChar TeX
8888
8889 \end_layout
8890
8891 \begin_layout Standard
8892 by 
8893 \noun on
8894 Mike Ressler
8895 \end_layout
8896
8897 \begin_layout Subsection
8898 Introduction
8899 \end_layout
8900
8901 \begin_layout Standard
8902 AAS\SpecialChar TeX
8903  is a set of macros produced by the American Astronomical Society to
8904  facilitate electronic manuscript submission to the three journals they
8905  publish: the Astrophysical Journal (including the Letters and Supplement),
8906  the Astronomical Journal, and the Publications of the Astronomical Society
8907  of the Pacific.
8908  \SpecialChar LyX
8909  has proven to be an excellent tool for generating these documents, especially
8910  given its equation, citation, and figure handling capabilities.
8911  \SpecialChar LyX
8912  requires version 5.0 (or higher) of these macros; preferably 6.0, which
8913  is the version described here, or higher.
8914  Versions prior to 5.0 are intended for use with \SpecialChar LaTeX
8915 2.09 and are fundamentally
8916  incompatible with \SpecialChar LyX
8917 .
8918  The AAS\SpecialChar TeX
8919  package may be downloaded from the AAS\SpecialChar TeX
8920  Web site
8921 \end_layout
8922
8923 \begin_layout Standard
8924 \begin_inset VSpace medskip
8925 \end_inset
8926
8927
8928 \end_layout
8929
8930 \begin_layout Standard
8931 \align center
8932 \begin_inset Flex URL
8933 status collapsed
8934
8935 \begin_layout Plain Layout
8936
8937 https://aas.org/aastex/aastex-downloads
8938 \end_layout
8939
8940 \end_inset
8941
8942
8943 \end_layout
8944
8945 \begin_layout Standard
8946 \begin_inset VSpace medskip
8947 \end_inset
8948
8949
8950 \end_layout
8951
8952 \begin_layout Standard
8953 A complete user guide is contained in that package and you should familiarize
8954  yourself with it thoroughly before embarking on writing a paper in \SpecialChar LyX
8955 .
8956  \SpecialChar LyX
8957  will not reduce the need to figure out all the AAS\SpecialChar TeX
8958  commands, it will only
8959  reduce the drudgery of typing everything in.
8960  It is your responsibility to ensure that the final exported \SpecialChar LaTeX
8961  document conforms
8962  completely to the requirements of the journal to which you are submitting
8963  your paper.
8964 \end_layout
8965
8966 \begin_layout Subsection
8967 Starting a New Paper
8968 \end_layout
8969
8970 \begin_layout Standard
8971 I strongly suggest that you start with the AAS\SpecialChar TeX
8972  template file.
8973  Click on 
8974 \family sans
8975 File\SpecialChar menuseparator
8976 New from
8977 \family default
8978  
8979 \family sans
8980 Template
8981 \family default
8982 , enter the new file name, then choose the 
8983 \family typewriter
8984 aastex6.lyx
8985 \family default
8986  template.
8987  This will show the most common fields found in a manuscript.
8988  Simply overwrite the existing text (including the brackets, 
8989 \family typewriter
8990 <>
8991 \family default
8992 ) with the correct information.
8993  Many of the AAS\SpecialChar TeX
8994  commands and environments can be implemented directly in
8995  \SpecialChar LyX
8996 , but some cannot.
8997  For commands such as these, the \SpecialChar LaTeX
8998  code must be entered directly and marked
8999  as such.
9000  Such commands are referred to as \SpecialChar TeX
9001  code, or Evil Red Text.
9002  I tried to minimize the amount of \SpecialChar TeX
9003  code needed in an AAS\SpecialChar TeX
9004  document.
9005 \end_layout
9006
9007 \begin_layout Subsection
9008 Finishing Your Paper
9009 \end_layout
9010
9011 \begin_layout Standard
9012 When the paper is finished to your satisfaction and previews/prints correctly,
9013  there are a few 
9014 \begin_inset Quotes eld
9015 \end_inset
9016
9017 postprocessing
9018 \begin_inset Quotes erd
9019 \end_inset
9020
9021  actions which need to be done before you submit it to the journals.
9022  
9023 \end_layout
9024
9025 \begin_layout Enumerate
9026 Export your paper as a \SpecialChar LaTeX
9027  file (
9028 \family sans
9029 File\SpecialChar menuseparator
9030 Export\SpecialChar menuseparator
9031 \SpecialChar LaTeX
9032
9033 \family default
9034 ).
9035  
9036 \end_layout
9037
9038 \begin_layout Enumerate
9039 Edit the resulting 
9040 \family typewriter
9041 .tex
9042 \family default
9043  file with your favorite text editor
9044 \end_layout
9045
9046 \begin_deeper
9047 \begin_layout Enumerate
9048 remove the comment lines before the 
9049 \family typewriter
9050
9051 \backslash
9052 documentclass
9053 \family default
9054  command
9055 \end_layout
9056
9057 \begin_layout Enumerate
9058 remove the 
9059 \family typewriter
9060
9061 \backslash
9062 usepackage...{fontenc}
9063 \family default
9064  line if it appears (usually just after 
9065 \family typewriter
9066
9067 \backslash
9068 documentclass
9069 \family default
9070 }; also remove the 
9071 \family typewriter
9072
9073 \backslash
9074 secnumdepth
9075 \family default
9076  line if it appears.
9077 \end_layout
9078
9079 \begin_layout Enumerate
9080 remove everything between (and including) the 
9081 \family typewriter
9082
9083 \backslash
9084 makeatletter
9085 \family default
9086  and 
9087 \family typewriter
9088
9089 \backslash
9090 makeatother
9091 \family default
9092  commands, except for any commands you specifically put into the \SpecialChar LaTeX
9093  preamble
9094  (which should appear immediately after the 
9095 \begin_inset Quotes eld
9096 \end_inset
9097
9098 User specified \SpecialChar LaTeX
9099  commands
9100 \begin_inset Quotes erd
9101 \end_inset
9102
9103  comment in the 
9104 \family typewriter
9105 .tex
9106 \family default
9107  file).
9108 \end_layout
9109
9110 \end_deeper
9111 \begin_layout Enumerate
9112 Run the resulting file through \SpecialChar LaTeX
9113  to make sure it still processes correctly.
9114 \end_layout
9115
9116 \begin_layout Enumerate
9117 Reread the journal requirements to make sure your filenames and formats
9118  are correct.
9119 \end_layout
9120
9121 \begin_layout Enumerate
9122 Submit it.
9123 \end_layout
9124
9125 \begin_layout Subsection
9126 Comments On Specific Commands
9127 \end_layout
9128
9129 \begin_layout Standard
9130 I will not describe the detailed usage of the individual AAS\SpecialChar TeX
9131  commands: the
9132  AAS\SpecialChar TeX
9133  User Guide (
9134 \family typewriter
9135 aasguide.tex
9136 \family default
9137 ) gives a good description of each.
9138  Thus it's probably easiest for me to go down the list as found in the guide
9139  and offer comments where necessary.
9140  So let's begin \SpecialChar ldots
9141
9142 \end_layout
9143
9144 \begin_layout Subsubsection
9145 Things that work as expected
9146 \end_layout
9147
9148 \begin_layout Standard
9149 Because they work as you might expect, I simply list them and the section
9150  they are found in: 
9151 \family typewriter
9152
9153 \backslash
9154 documentclass
9155 \family default
9156  (2.1.1), 
9157 \family typewriter
9158
9159 \backslash
9160 begin{document}
9161 \family default
9162  (2.2), 
9163 \family typewriter
9164
9165 \backslash
9166 title
9167 \family default
9168  (2.3), 
9169 \family typewriter
9170
9171 \backslash
9172 author
9173 \family default
9174  (2.3), 
9175 \family typewriter
9176
9177 \backslash
9178 affil
9179 \family default
9180  (2.3), 
9181 \family typewriter
9182
9183 \backslash
9184 abstract
9185 \family default
9186  (2.4), 
9187 \family typewriter
9188
9189 \backslash
9190 keywords
9191 \family default
9192  (2.5), 
9193 \family typewriter
9194
9195 \backslash
9196 section
9197 \family default
9198  (2.7), 
9199 \family typewriter
9200
9201 \backslash
9202 subsection
9203 \family default
9204  (2.7), 
9205 \family typewriter
9206
9207 \backslash
9208 subsubsection
9209 \family default
9210  (2.7), 
9211 \family typewriter
9212
9213 \backslash
9214 paragraph
9215 \family default
9216  (2.7), 
9217 \family typewriter
9218
9219 \backslash
9220 facility
9221 \family default
9222  (2.10), 
9223 \family typewriter
9224
9225 \backslash
9226 begin{displaymath}
9227 \family default
9228  (2.12), 
9229 \family typewriter
9230
9231 \backslash
9232 begin{equation}
9233 \family default
9234  (2.12), 
9235 \family typewriter
9236
9237 \backslash
9238 begin{eqnarray}
9239 \family default
9240  (2.12), 
9241 \family typewriter
9242
9243 \backslash
9244 begin{mathletters}
9245 \family default
9246  (2.12), 
9247 \family typewriter
9248
9249 \backslash
9250 begin{thebibliography}
9251 \family default
9252  (2.13.1), 
9253 \family typewriter
9254
9255 \backslash
9256 bibitem
9257 \family default
9258  (2.13.2), all the cite commands and their variations (2.13.2), the generic
9259  graphicx figure commands (2.14.1), 
9260 \family typewriter
9261
9262 \backslash
9263 begin{table}
9264 \family default
9265  (2.15.4), 
9266 \family typewriter
9267
9268 \backslash
9269 begin{tabular}
9270 \family default
9271  (2.15.4), 
9272 \family typewriter
9273
9274 \backslash
9275 caption
9276 \family default
9277  (2.15.4), 
9278 \family typewriter
9279
9280 \backslash
9281 label
9282 \family default
9283  (2.15.4, amongst other places), 
9284 \family typewriter
9285
9286 \backslash
9287 tablerefs
9288 \family default
9289  (2.15.5), 
9290 \family typewriter
9291
9292 \backslash
9293 tablecomments
9294 \family default
9295  (2.15.5), 
9296 \family typewriter
9297
9298 \backslash
9299 url
9300 \family default
9301  (2.17.4), 
9302 \family typewriter
9303
9304 \backslash
9305 end{document}
9306 \family default
9307  (2.18).
9308 \end_layout
9309
9310 \begin_layout Standard
9311 The following style options also work correctly: 
9312 \family typewriter
9313 longabstract
9314 \family default
9315  (2.4), 
9316 \family typewriter
9317 preprint
9318 \family default
9319  (3.2.1), 
9320 \family typewriter
9321 preprint2
9322 \family default
9323  (3.2.2), 
9324 \family typewriter
9325 eqsecnum
9326 \family default
9327  (3.3), 
9328 \family typewriter
9329 flushrt
9330 \family default
9331  (3.4).
9332  Simply put them in the 
9333 \family sans
9334 Options
9335 \family default
9336  box in 
9337 \family sans
9338 Layout\SpecialChar menuseparator
9339 Document
9340 \family default
9341 .
9342 \end_layout
9343
9344 \begin_layout Subsubsection
9345 Things that work, but require more comment
9346 \end_layout
9347
9348 \begin_layout Standard
9349 The following items work, but require a little more discussion:
9350 \end_layout
9351
9352 \begin_layout Itemize
9353 These items are reserved for use by the journal editors, but you can put
9354  them into the \SpecialChar LaTeX
9355  preamble if you feel compelled to do so: 
9356 \family typewriter
9357
9358 \backslash
9359 received
9360 \family default
9361
9362 \family typewriter
9363
9364 \backslash
9365 revised
9366 \family default
9367
9368 \family typewriter
9369
9370 \backslash
9371 accepted
9372 \family default
9373
9374 \family typewriter
9375
9376 \backslash
9377 ccc
9378 \family default
9379
9380 \family typewriter
9381
9382 \backslash
9383 cpright
9384 \family default
9385  (all from 2.1.3)
9386 \end_layout
9387
9388 \begin_layout Itemize
9389 These items may be placed in the \SpecialChar LaTeX
9390  preamble, and are included as blanks in
9391  the template file: 
9392 \family typewriter
9393
9394 \backslash
9395 slugcomment
9396 \family default
9397  (2.1.4), 
9398 \family typewriter
9399
9400 \backslash
9401 shorttitle
9402 \family default
9403  (2.1.5), 
9404 \family typewriter
9405
9406 \backslash
9407 shortauthors
9408 \family default
9409  (2.1.5)
9410 \end_layout
9411
9412 \begin_layout Itemize
9413
9414 \family typewriter
9415
9416 \backslash
9417 email
9418 \family default
9419  (2.3) â€“ can only be used 
9420 \begin_inset Quotes eld
9421 \end_inset
9422
9423 standalone
9424 \begin_inset Quotes erd
9425 \end_inset
9426
9427 , not in the middle of a paragraph.
9428  Use \SpecialChar TeX
9429  code if you need to embed it.
9430 \end_layout
9431
9432 \begin_layout Itemize
9433
9434 \family typewriter
9435
9436 \backslash
9437 and
9438 \family default
9439  (2.3) â€“ will have extra {} after it.
9440  This should not cause an error.
9441 \end_layout
9442
9443 \begin_layout Itemize
9444
9445 \family typewriter
9446
9447 \backslash
9448 notetoeditor
9449 \family default
9450  (2.6) â€“ can only be used 
9451 \begin_inset Quotes eld
9452 \end_inset
9453
9454 standalone
9455 \begin_inset Quotes erd
9456 \end_inset
9457
9458 , not in the middle of a paragraph.
9459  Use \SpecialChar TeX
9460  code if you need to embed it.
9461 \end_layout
9462
9463 \begin_layout Itemize
9464
9465 \family typewriter
9466
9467 \backslash
9468 placetable
9469 \family default
9470  (2.8) â€“ can't insert a cross-reference tag, you must type the tag name by
9471  hand
9472 \end_layout
9473
9474 \begin_layout Itemize
9475
9476 \family typewriter
9477
9478 \backslash
9479 placefigure
9480 \family default
9481  (2.8) â€“ same as for 
9482 \family typewriter
9483
9484 \backslash
9485 placetable
9486 \end_layout
9487
9488 \begin_layout Itemize
9489
9490 \family typewriter
9491
9492 \backslash
9493 acknowledgements
9494 \family default
9495  (2.9) â€“ will have extra {} after it.
9496  This should not cause an error.
9497 \end_layout
9498
9499 \begin_layout Itemize
9500
9501 \family typewriter
9502
9503 \backslash
9504 appendix
9505 \family default
9506  (2.11) â€“ will have extra {} after it.
9507  This should not cause an error.
9508 \end_layout
9509
9510 \begin_layout Itemize
9511
9512 \family typewriter
9513
9514 \backslash
9515 figcaption
9516 \family default
9517  (2.14.2) â€“ you can insert an optional filename argument by placing the cursor
9518  at the beginning of the text and selecting 
9519 \family sans
9520 Insert\SpecialChar menuseparator
9521 Short Title
9522 \family default
9523 .
9524  
9525 \begin_inset Quotes eld
9526 \end_inset
9527
9528 Short Title
9529 \begin_inset Quotes erd
9530 \end_inset
9531
9532  inserts an optional argument of the type needed by 
9533 \family typewriter
9534
9535 \backslash
9536 figcaption
9537 \family default
9538 .
9539  Hopefully it will be renamed someday.
9540 \end_layout
9541
9542 \begin_layout Itemize
9543
9544 \family typewriter
9545
9546 \backslash
9547 objectname
9548 \family default
9549  (2.17.1) â€“ same as 
9550 \family typewriter
9551
9552 \backslash
9553 figcaption
9554 \family default
9555  for the catalog ID optional parameter
9556 \end_layout
9557
9558 \begin_layout Itemize
9559
9560 \family typewriter
9561
9562 \backslash
9563 dataset
9564 \family default
9565  (2.17.1) â€“ same as 
9566 \family typewriter
9567
9568 \backslash
9569 figcaption
9570 \family default
9571  for the catalog ID optional parameter
9572 \end_layout
9573
9574 \begin_layout Subsubsection
9575 Things not implemented, use \SpecialChar TeX
9576  code
9577 \end_layout
9578
9579 \begin_layout Standard
9580
9581 \family typewriter
9582
9583 \backslash
9584 eqnum
9585 \family default
9586  (2.12), 
9587 \family typewriter
9588
9589 \backslash
9590 setcounter{equation}
9591 \family default
9592  (2.12), Journal name abbreviations (2.13.4), 
9593 \family typewriter
9594
9595 \backslash
9596 figurenum
9597 \family default
9598  (2.14.1), 
9599 \family typewriter
9600
9601 \backslash
9602 epsscale
9603 \family default
9604  (2.14.1), 
9605 \family typewriter
9606
9607 \backslash
9608 plotone
9609 \family default
9610  (2.14.1), 
9611 \family typewriter
9612
9613 \backslash
9614 plottwo
9615 \family default
9616  (2.14.1), 
9617 \family typewriter
9618
9619 \backslash
9620 tablenum
9621 \family default
9622  (2.15.4), 
9623 \family typewriter
9624
9625 \backslash
9626 tableline
9627 \family default
9628  (2.15.4, insert it as the first element in the lefthand cell after where
9629  you want it.
9630  Don't use any of \SpecialChar LyX
9631 's rules in the table), 
9632 \family typewriter
9633
9634 \backslash
9635 tablenotemark
9636 \family default
9637  (2.15.5), 
9638 \family typewriter
9639
9640 \backslash
9641 tablenotetext
9642 \family default
9643  (2.15.5), much of Misc (2.17, except 
9644 \family typewriter
9645
9646 \backslash
9647 objectname
9648 \family default
9649
9650 \family typewriter
9651
9652 \backslash
9653 dataset
9654 \family default
9655
9656 \family typewriter
9657
9658 \backslash
9659 url
9660 \family default
9661 , and 
9662 \family typewriter
9663
9664 \backslash
9665 email
9666 \family default
9667 ; see above), 
9668 \family typewriter
9669
9670 \backslash
9671 singlespace
9672 \family default
9673  (3.1), 
9674 \family typewriter
9675
9676 \backslash
9677 doublespace
9678 \family default
9679  (3.1), 
9680 \family typewriter
9681
9682 \backslash
9683 onecolumn
9684 \family default
9685  (3.2), 
9686 \family typewriter
9687
9688 \backslash
9689 twocolumn
9690 \family default
9691  (3.2)
9692 \end_layout
9693
9694 \begin_layout Subsubsection
9695 Things that cannot be implemented
9696 \end_layout
9697
9698 \begin_layout Standard
9699 \SpecialChar ldots
9700  at least in any meaningful sort of way, so I suggest ignoring them.
9701  They are the references environment (2.13.3), and the deluxetable environment
9702  (2.15).
9703  If you really, really need to use deluxetable, I suggest editing it in
9704  a separate file with a text editor, then using 
9705 \family sans
9706 Insert\SpecialChar menuseparator
9707 Child
9708 \begin_inset space ~
9709 \end_inset
9710
9711 Document
9712 \family default
9713  to include it in your \SpecialChar LyX
9714  document.
9715  See the 
9716 \family typewriter
9717 aas_sample.lyx
9718 \family default
9719  file to see an example of this.
9720 \end_layout
9721
9722 \begin_layout Subsection
9723 FAQs, Tips, Tricks, and Other Ruminations
9724 \end_layout
9725
9726 \begin_layout Subsubsection
9727 Getting \SpecialChar LyX
9728  and AAS\SpecialChar TeX
9729  to cooperate
9730 \end_layout
9731
9732 \begin_layout Standard
9733 It can be a bit tricky to get \SpecialChar LyX
9734  to recognize a new layout and document class.
9735  When all else fails, do this:
9736 \end_layout
9737
9738 \begin_layout Enumerate
9739 Make certain that \SpecialChar LaTeX
9740  can find AAS\SpecialChar TeX
9741 .
9742  Copy sample.tex (and perhaps table.tex) from the AAS\SpecialChar TeX
9743  distribution into a
9744  directory completely unrelated to \SpecialChar LaTeX
9745  or AAS\SpecialChar TeX
9746  and run \SpecialChar LaTeX
9747  on 
9748 \family typewriter
9749 sample.tex
9750 \family default
9751 .
9752 \end_layout
9753
9754 \begin_layout Enumerate
9755 Make certain that 
9756 \family typewriter
9757 aastex.layout
9758 \family default
9759  appears in \SpecialChar LyX
9760 's 
9761 \family typewriter
9762 layouts
9763 \family default
9764  folder
9765 \end_layout
9766
9767 \begin_layout Enumerate
9768 Rerun 
9769 \family sans
9770 Tools\SpecialChar menuseparator
9771 Reconfigure
9772 \family default
9773  in \SpecialChar LyX
9774 , then restart \SpecialChar LyX
9775 .
9776 \end_layout
9777
9778 \begin_layout Enumerate
9779 Open a regular new file, not from a template.
9780  Does AAS\SpecialChar TeX
9781  appear in the class list in 
9782 \family sans
9783 Document\SpecialChar menuseparator
9784 Settings
9785 \family default
9786 ?
9787 \end_layout
9788
9789 \begin_layout Standard
9790 If you get a warning from an existing AAS\SpecialChar TeX
9791  document about not being able
9792  to find the AAS\SpecialChar TeX
9793  layout or a message about 
9794 \begin_inset Quotes eld
9795 \end_inset
9796
9797 You should not mix title layouts with normal ones
9798 \begin_inset Quotes erd
9799 \end_inset
9800
9801 , things haven't been installed correctly.
9802 \end_layout
9803
9804 \begin_layout Subsubsection
9805 \SpecialChar LaTeX
9806  error processing a table 
9807 \end_layout
9808
9809 \begin_layout Standard
9810 \SpecialChar LyX
9811 , by default, attempts to center the table caption/title.
9812  This seems to produce a bad interaction in AAS\SpecialChar TeX
9813  so you should click somewhere
9814  in the caption/title, then select 
9815 \family sans
9816 Edit\SpecialChar menuseparator
9817 Paragraph
9818 \begin_inset space ~
9819 \end_inset
9820
9821 Settings
9822 \family default
9823 , then set the 
9824 \family sans
9825 Alignment
9826 \family default
9827  to 
9828 \family sans
9829 Block
9830 \family default
9831 .
9832  This took care of it for me.
9833 \end_layout
9834
9835 \begin_layout Subsubsection
9836 References
9837 \end_layout
9838
9839 \begin_layout Standard
9840 A couple of things: 1) I have noticed some funny spacing in the reference
9841  entries in the text.
9842  When you enter the bibliography item data, make sure their is 
9843 \emph on
9844 no
9845 \emph default
9846  space between the last author and the parenthesis setting off the year;
9847  
9848 \emph on
9849 e.
9850 \begin_inset space \thinspace{}
9851 \end_inset
9852
9853 g.
9854 \begin_inset space \space{}
9855 \end_inset
9856
9857
9858 \emph default
9859 type 
9860 \family typewriter
9861 Ressler(1992)
9862 \family default
9863 , not 
9864 \family typewriter
9865 Ressler (1992)
9866 \family default
9867 .
9868  2) Entering the references at all is not obvious.
9869  The easiest thing is to start typing your first reference at the end of
9870  the document, then mark it as type 
9871 \family sans
9872 References
9873 \family default
9874 .
9875  That will put a small gray box in front of what you just typed.
9876  Click on the box to fill in the rest of the information.
9877  For new references, go to the end of an existing reference and press return.
9878  That will create a new line with its own box, etc.
9879 \end_layout
9880
9881 \begin_layout Subsubsection
9882 Including EPS files
9883 \end_layout
9884
9885 \begin_layout Standard
9886 Even though AAS\SpecialChar TeX
9887  provides its own figure commands (
9888 \family typewriter
9889
9890 \backslash
9891 plotone
9892 \family default
9893 , for example), I much prefer \SpecialChar LaTeX
9894 's standard figure commands (with the default
9895  graphicx).
9896  You can insert the 
9897 \family typewriter
9898
9899 \backslash
9900 plotone
9901 \family default
9902 , etc.
9903 \begin_inset space ~
9904 \end_inset
9905
9906 commands as \SpecialChar TeX
9907  code into a Figure Float box if you desire, but I never have
9908  much luck getting the layout right.
9909  With the standard graphics, \SpecialChar LyX
9910  will insert a 
9911 \family typewriter
9912
9913 \backslash
9914 usepackage{graphicx}
9915 \family default
9916  command into the \SpecialChar LaTeX
9917  preamble and handle the figures in the standard \SpecialChar LaTeX2e
9918  way,
9919  interspersing the figures in the text.
9920  I believe ApJ accepts figures exactly this way now; AJ might still use
9921  the 
9922 \begin_inset Quotes eld
9923 \end_inset
9924
9925 stack everything at the end
9926 \begin_inset Quotes erd
9927 \end_inset
9928
9929  technique.
9930 \end_layout
9931
9932 \begin_layout Subsubsection
9933 Things I could have done, but didn't
9934 \end_layout
9935
9936 \begin_layout Standard
9937 There are a few 
9938 \begin_inset Quotes eld
9939 \end_inset
9940
9941 pretty
9942 \begin_inset Quotes erd
9943 \end_inset
9944
9945  things I could have implemented, but chose not to.
9946  For instance, I saw no point in double-spacing the text in the \SpecialChar LyX
9947  window,
9948  even though it is double-spaced in the paper manuscript.
9949  Also, I chose not to make separate layouts for the preprint and preprint2
9950  styles.
9951  Since I assume you will spend most of your time in the plain manuscript
9952  mode anyway, I decided not to chew up more disk space with this.
9953  
9954 \end_layout
9955
9956 \begin_layout Subsection
9957 Final Caveat
9958 \end_layout
9959
9960 \begin_layout Standard
9961 Your mileage may vary.
9962  I've now had papers published by both ApJ and AJ that have had 98% of the
9963  effort done in \SpecialChar LyX
9964 ; the last 2% was the \SpecialChar LaTeX
9965  post-processing and a few cleanups.
9966  I have had no trouble with the submission process, and I'm sure the journals
9967  were never aware that there might be a difference.
9968  So, go forth and publish!
9969 \end_layout
9970
9971 \begin_layout Section
9972 AMS \SpecialChar LaTeX
9973
9974 \end_layout
9975
9976 \begin_layout Standard
9977 by 
9978 \noun on
9979 David Johnson
9980 \noun default
9981 ; updated by 
9982 \noun on
9983 Richard Heck
9984 \end_layout
9985
9986 \begin_layout Standard
9987 \begin_inset VSpace bigskip
9988 \end_inset
9989
9990
9991 \end_layout
9992
9993 \begin_layout Standard
9994 \noindent
9995 The AMS \SpecialChar LaTeX
9996  layouts are set up to conform to suggested styles for mathematical
9997  papers to be submitted to American Mathematical Society publications.
9998  The layouts are not tailored to a specific journal, but easily can be.
9999  You should refer to the AMS documentation for specific instructions for
10000  each journal (usually it will entail only changing a single line in the
10001  \SpecialChar TeX
10002  output).
10003  That documentation is available on the Web at 
10004 \begin_inset Flex URL
10005 status open
10006
10007 \begin_layout Plain Layout
10008
10009 http://www.ams.org
10010 \end_layout
10011
10012 \end_inset
10013
10014  or by ftp at 
10015 \begin_inset Flex URL
10016 status open
10017
10018 \begin_layout Plain Layout
10019
10020 ftp://ftp.ams.org/pub/tex/amslatex/
10021 \end_layout
10022
10023 \end_inset
10024
10025 .
10026  These layouts are appropriate, and useful, for any mathematical writing.
10027  
10028 \end_layout
10029
10030 \begin_layout Standard
10031 There are two basic AMS \SpecialChar LaTeX
10032  layouts: 
10033 \end_layout
10034
10035 \begin_layout Itemize
10036 amsart: The standard AMS article format.
10037 \end_layout
10038
10039 \begin_layout Itemize
10040 amsbook: the standard AMS book (really, monograph) format.
10041  
10042 \end_layout
10043
10044 \begin_layout Standard
10045 The layouts themselves contain only the minimum necessary to use the AMS
10046  classes.
10047  They do not, in particular, contain any of the `theorem' environments used
10048  for setting theorems, lemmas, and the like.
10049  These are contained, instead, in the 
10050 \begin_inset Flex Code
10051 status collapsed
10052
10053 \begin_layout Plain Layout
10054 Theorems (AMS)
10055 \end_layout
10056
10057 \end_inset
10058
10059  module, which is loaded by default when you select one of the AMS classes.
10060  (It can also be used with other classes and can be removed, if you would
10061  rather use something else.) Less commonly used environments are in the 
10062 \begin_inset Flex Code
10063 status collapsed
10064
10065 \begin_layout Plain Layout
10066 Theorems (AMS-Extended)
10067 \end_layout
10068
10069 \end_inset
10070
10071  module, which must be loaded manually.
10072 \end_layout
10073
10074 \begin_layout Standard
10075 By default, theorems and the like are numbered consecutively throughout
10076  the document, but this may be modified by loading the module 
10077 \begin_inset Flex Code
10078 status collapsed
10079
10080 \begin_layout Plain Layout
10081 Theorems (Order by Section)
10082 \end_layout
10083
10084 \end_inset
10085
10086  or, if you are using 
10087 \begin_inset Flex Code
10088 status collapsed
10089
10090 \begin_layout Plain Layout
10091 book (AMS)
10092 \end_layout
10093
10094 \end_inset
10095
10096 , the module 
10097 \begin_inset Flex Code
10098 status collapsed
10099
10100 \begin_layout Plain Layout
10101 Theorems (Order by Chapter)
10102 \end_layout
10103
10104 \end_inset
10105
10106 .
10107  These will number the results as 
10108 \begin_inset Formula $n.m$
10109 \end_inset
10110
10111 , where the first number refers to the section (or chapter) and the second
10112  refers to the total number of results so far in that section (or chapter).
10113  Many environments are also available unnumbered.
10114  These are indicated by an asterisk at the end.
10115  If you happen to want 
10116 \emph on
10117 only
10118 \emph default
10119  unnumbered results, the module 
10120 \begin_inset Flex Code
10121 status collapsed
10122
10123 \begin_layout Plain Layout
10124 Theorems (Starred)
10125 \end_layout
10126
10127 \end_inset
10128
10129  provides that option.
10130 \end_layout
10131
10132 \begin_layout Standard
10133 Note that these modules do not 
10134 \emph on
10135 have
10136 \emph default
10137  to be used with the AMS classes.
10138  It is perfectly possible to use the 
10139 \begin_inset Flex Code
10140 status collapsed
10141
10142 \begin_layout Plain Layout
10143 Theorems (AMS)
10144 \end_layout
10145
10146 \end_inset
10147
10148  module, and the others mentioned, with other classes, such as 
10149 \begin_inset Flex Code
10150 status collapsed
10151
10152 \begin_layout Plain Layout
10153 article
10154 \end_layout
10155
10156 \end_inset
10157
10158
10159 \begin_inset Flex Code
10160 status collapsed
10161
10162 \begin_layout Plain Layout
10163 report
10164 \end_layout
10165
10166 \end_inset
10167
10168
10169 \begin_inset Flex Code
10170 status collapsed
10171
10172 \begin_layout Plain Layout
10173 book (KOMA-script)
10174 \end_layout
10175
10176 \end_inset
10177
10178 , and so forth.
10179 \end_layout
10180
10181 \begin_layout Subsection
10182 What these layouts provide
10183 \end_layout
10184
10185 \begin_layout Standard
10186 There is a long list of included environments provided by these layouts.
10187  In AMS-\SpecialChar LaTeX
10188 , there is, in fact, an opportunity to define an unlimited variety
10189  of `theorem' environments.
10190  However, the AMS recommends the environments that are available in \SpecialChar LyX
10191 .
10192  
10193 \end_layout
10194
10195 \begin_layout Standard
10196 The following environments—as well as the standard environments, such as
10197  
10198 \begin_inset Flex Noun
10199 status collapsed
10200
10201 \begin_layout Plain Layout
10202 section
10203 \end_layout
10204
10205 \end_inset
10206
10207
10208 \begin_inset Flex Noun
10209 status collapsed
10210
10211 \begin_layout Plain Layout
10212 bibliography
10213 \end_layout
10214
10215 \end_inset
10216
10217
10218 \begin_inset Flex Noun
10219 status collapsed
10220
10221 \begin_layout Plain Layout
10222 title
10223 \end_layout
10224
10225 \end_inset
10226
10227
10228 \begin_inset Flex Noun
10229 status collapsed
10230
10231 \begin_layout Plain Layout
10232 author
10233 \end_layout
10234
10235 \end_inset
10236
10237 , and 
10238 \begin_inset Flex Noun
10239 status collapsed
10240
10241 \begin_layout Plain Layout
10242 date
10243 \end_layout
10244
10245 \end_inset
10246
10247 —are provided by 
10248 \begin_inset Flex Code
10249 status collapsed
10250
10251 \begin_layout Plain Layout
10252 article (AMS)
10253 \end_layout
10254
10255 \end_inset
10256
10257  and 
10258 \begin_inset Flex Code
10259 status collapsed
10260
10261 \begin_layout Plain Layout
10262 book (AMS)
10263 \end_layout
10264
10265 \end_inset
10266
10267 :
10268 \end_layout
10269
10270 \begin_layout Description
10271 Address This should be the author's permanent address.
10272 \end_layout
10273
10274 \begin_layout Description
10275 Current
10276 \begin_inset space ~
10277 \end_inset
10278
10279 Address This should be the author's temporary address at the time of submission,
10280  if different from the Address.
10281 \end_layout
10282
10283 \begin_layout Description
10284 Email Author's e-mail address
10285 \end_layout
10286
10287 \begin_layout Description
10288 URL Author's Web address, if desired.
10289 \end_layout
10290
10291 \begin_layout Description
10292 Keywords Key words or phrases used to identify specific topics discussed
10293  in the paper.
10294 \end_layout
10295
10296 \begin_layout Description
10297 Subjectclass These refer to the AMS Subject Classifications, published and
10298  described in 
10299 \emph on
10300 Mathematical Reviews
10301 \emph default
10302 .
10303  These are also available online at the AMS cites listed above.
10304 \end_layout
10305
10306 \begin_layout Description
10307 Thanks
10308 \end_layout
10309
10310 \begin_layout Description
10311 Dedicatory
10312 \end_layout
10313
10314 \begin_layout Description
10315 Translator
10316 \end_layout
10317
10318 \begin_layout Standard
10319 The following environments are provided by both the 
10320 \begin_inset Flex Code
10321 status collapsed
10322
10323 \begin_layout Plain Layout
10324 Theorems
10325 \end_layout
10326
10327 \end_inset
10328
10329  and 
10330 \begin_inset Flex Code
10331 status collapsed
10332
10333 \begin_layout Plain Layout
10334 Theorems (AMS)
10335 \end_layout
10336
10337 \end_inset
10338
10339  modules, in the latter case in both starred (unnumbered) and unstarred
10340  (numbered) versions.
10341  These same environments are provided only in the starred versions by the
10342  
10343 \begin_inset Flex Code
10344 status collapsed
10345
10346 \begin_layout Plain Layout
10347 Theorems (Starred)
10348 \end_layout
10349
10350 \end_inset
10351
10352  module:
10353 \end_layout
10354
10355 \begin_layout Theorem
10356 This is typically used for the statements of major results.
10357  
10358 \end_layout
10359
10360 \begin_layout Corollary*
10361 This is used for statements which follow fairly directly from previous statement
10362 s.
10363  Again, these can be major results.
10364  
10365 \end_layout
10366
10367 \begin_layout Lemma
10368 These are smaller results needed to prove other statements.
10369 \end_layout
10370
10371 \begin_layout Proposition
10372 These are less major results which (hopefully) add to the general theory
10373  being discussed.
10374 \end_layout
10375
10376 \begin_layout Conjecture
10377 These are statements provided without justification, which the author does
10378  not know how to prove, but which seem to be true (to the author, at least).
10379 \end_layout
10380
10381 \begin_layout Definition*
10382 Guess what this is for.
10383  The font is different for this environment than for the previous ones.
10384  
10385 \end_layout
10386
10387 \begin_layout Example*
10388 Used for examples illustrating proven results.
10389 \end_layout
10390
10391 \begin_layout Problem
10392 It's not really known what this is for.
10393  You should figure it out.
10394 \end_layout
10395
10396 \begin_layout Exercise*
10397 Write a description for this one.
10398 \end_layout
10399
10400 \begin_layout Remark
10401 This environment is also a type of theorem, usually a lesser sort of observation.
10402 \end_layout
10403
10404 \begin_layout Claim*
10405 Often used in the course of giving a proof of a larger result.
10406 \end_layout
10407
10408 \begin_layout Case
10409 Generally, these are used to break up long arguments, using specific instances
10410  of some condition.
10411  
10412 \end_layout
10413
10414 \begin_layout Case
10415 The numbering scheme for cases is on its own, not together with other numbered
10416  statements.
10417  
10418 \end_layout
10419
10420 \begin_layout Proof
10421 At the end of this environment, a QED symbol (usually a square, but it can
10422  vary with different styles) is placed.
10423  If you want to have other environments within this one—for example, Case
10424  environments—and have the QED symbol appear only after them, then the other
10425  environments need to be nested within the proof environment.
10426  See the section 
10427 \emph on
10428 Nesting Environments
10429 \emph default
10430  of the 
10431 \emph on
10432 User's Guide
10433 \emph default
10434  for information on nesting.
10435 \end_layout
10436
10437 \begin_layout Standard
10438 And these environments are provided by 
10439 \begin_inset Flex Code
10440 status collapsed
10441
10442 \begin_layout Plain Layout
10443 Theorems (AMS-Extended)
10444 \end_layout
10445
10446 \end_inset
10447
10448 :
10449 \end_layout
10450
10451 \begin_layout Criterion*
10452 A required condition.
10453 \end_layout
10454
10455 \begin_layout Algorithm*
10456 A general procedure to be used.
10457 \end_layout
10458
10459 \begin_layout Axiom*
10460 This is a property or statement taken as true within the system being discussed.
10461 \end_layout
10462
10463 \begin_layout Condition*
10464 Sometimes used to state a condition assumed within the present context of
10465  discussion.
10466 \end_layout
10467
10468 \begin_layout Note*
10469 Similar to a Remark.
10470 \end_layout
10471
10472 \begin_layout Notation*
10473 Used for the explanation of, yes, notation.
10474 \end_layout
10475
10476 \begin_layout Summary
10477 Do we really need to tell you? 
10478 \end_layout
10479
10480 \begin_layout Acknowledgement*
10481 Acknowledgement.
10482 \end_layout
10483
10484 \begin_layout Conclusion*
10485 Sometimes used at the end of a long train of argument.
10486 \end_layout
10487
10488 \begin_layout Fact
10489 Used in a way similar to Proposition, though perhaps lower on the scale.
10490 \end_layout
10491
10492 \begin_layout Standard
10493 In addition, the AMS classes automatically provide the AMS \SpecialChar LaTeX
10494  and AMS fonts
10495  packages.
10496  They need to be available on your system in order to use these environments.
10497 \end_layout
10498
10499 \begin_layout Section
10500 Broadway
10501 \end_layout
10502
10503 \begin_layout Standard
10504 by 
10505 \shape smallcaps
10506 Garst Reese
10507 \end_layout
10508
10509 \begin_layout Subsection
10510 Introduction
10511 \end_layout
10512
10513 \begin_layout Standard
10514 Broadway is for writing plays.
10515  The format is more decorative than Hollywood, and much less standardized.
10516  This format should be suitable for workshops.
10517 \end_layout
10518
10519 \begin_layout Subsection
10520 Special problems
10521 \end_layout
10522
10523 \begin_layout Standard
10524 The same as in Hollywood.
10525 \end_layout
10526
10527 \begin_layout Subsection
10528 Special features
10529 \end_layout
10530
10531 \begin_layout Standard
10532 Insert the 
10533 \family sans
10534 Speaker
10535 \family default
10536  names as labels then cross-reference the label to insert the name.
10537  The cross-reference dialog will show the current cast of characters.
10538 \end_layout
10539
10540 \begin_layout Subsection
10541 Paper size and Margins
10542 \end_layout
10543
10544 \begin_layout Standard
10545 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
10546 \end_layout
10547
10548 \begin_layout Subsection
10549 Environments
10550 \end_layout
10551
10552 \begin_layout Standard
10553 The following environments are available.
10554  You can use broadway.bind to get the bind keys shown at the right.
10555 \end_layout
10556
10557 \begin_layout Itemize
10558
10559 \family sans
10560 Standard
10561 \begin_inset Newline newline
10562 \end_inset
10563
10564
10565 \family default
10566 You should not have to use this, but it is here for anything that does not
10567  fit otherwise.
10568 \end_layout
10569
10570 \begin_layout Itemize
10571
10572 \family sans
10573 Narrative
10574 \begin_inset space \hfill{}
10575 \end_inset
10576
10577 M-z n
10578 \begin_inset Newline newline
10579 \end_inset
10580
10581
10582 \family default
10583 Used to describe stage setting and the action.
10584  First use of speaker names in all CAPs.
10585 \end_layout
10586
10587 \begin_layout Itemize
10588
10589 \family sans
10590 ACT
10591 \begin_inset space \hfill{}
10592 \end_inset
10593
10594 M-z a
10595 \begin_inset Newline newline
10596 \end_inset
10597
10598
10599 \family default
10600 Automatically numbered.
10601  On screen it will be arabic, but will print as Roman.
10602 \end_layout
10603
10604 \begin_layout Itemize
10605
10606 \family sans
10607 ACT*
10608 \begin_inset space \hfill{}
10609 \end_inset
10610
10611 M-z S at
10612 \begin_inset Newline newline
10613 \end_inset
10614
10615
10616 \family default
10617 Subtitle for 
10618 \family sans
10619 ACT.
10620
10621 \family default
10622  It is just centered text.
10623 \end_layout
10624
10625 \begin_layout Itemize
10626
10627 \family sans
10628 SCENE
10629 \begin_inset space \hfill{}
10630 \end_inset
10631
10632 M-z S-S
10633 \begin_inset Newline newline
10634 \end_inset
10635
10636
10637 \family default
10638 Not automatically numbered.
10639  You supply the number.
10640  This is because I couldn't figure out how.
10641 \end_layout
10642
10643 \begin_layout Itemize
10644
10645 \family sans
10646 AT_RISE:
10647 \begin_inset space \hfill{}
10648 \end_inset
10649
10650 M-z S-R
10651 \begin_inset Newline newline
10652 \end_inset
10653
10654
10655 \family default
10656 A special case of Narrative to describe the setting and action as the curtain
10657  rises.
10658 \end_layout
10659
10660 \begin_layout Itemize
10661
10662 \family sans
10663 Speaker
10664 \begin_inset space \hfill{}
10665 \end_inset
10666
10667 M-z s
10668 \begin_inset Newline newline
10669 \end_inset
10670
10671
10672 \family default
10673 The speaker's (actor's) title, centered in all CAPS.
10674 \end_layout
10675
10676 \begin_layout Itemize
10677
10678 \family sans
10679 Parenthetical
10680 \begin_inset space \hfill{}
10681 \end_inset
10682
10683 M-z p
10684 \begin_inset Newline newline
10685 \end_inset
10686
10687
10688 \family default
10689 Instructions to the speaker.
10690  The parentheses are automatically inserted.
10691  The ( will appear on screen, but both will be in the printed play.
10692  This environment is only used within 
10693 \family sans
10694 Dialogue
10695 \family default
10696 .
10697 \end_layout
10698
10699 \begin_layout Itemize
10700
10701 \family sans
10702 Dialogue
10703 \begin_inset space \hfill{}
10704 \end_inset
10705
10706 M-z d
10707 \begin_inset Newline newline
10708 \end_inset
10709
10710
10711 \family default
10712 What the Speaker says.
10713 \end_layout
10714
10715 \begin_layout Itemize
10716
10717 \family sans
10718 CURTAIN
10719 \begin_inset space \hfill{}
10720 \end_inset
10721
10722 M-z S-C
10723 \begin_inset Newline newline
10724 \end_inset
10725
10726
10727 \family default
10728 The curtain comes down.
10729 \end_layout
10730
10731 \begin_layout Itemize
10732
10733 \family sans
10734 Title
10735 \begin_inset space \hfill{}
10736 \end_inset
10737
10738 M-z S-T
10739 \end_layout
10740
10741 \begin_layout Itemize
10742
10743 \family sans
10744 Author
10745 \begin_inset space \hfill{}
10746 \end_inset
10747
10748 M-z S-A
10749 \end_layout
10750
10751 \begin_layout Itemize
10752
10753 \family sans
10754 Right_Address
10755 \begin_inset space \hfill{}
10756 \end_inset
10757
10758 M-z r
10759 \end_layout
10760
10761 \begin_layout Standard
10762 Hello there.
10763 \end_layout
10764
10765 \begin_layout Section
10766 Dinbrief
10767 \end_layout
10768
10769 \begin_layout Standard
10770 The document class 
10771 \family sans
10772 dinbrief
10773 \family default
10774  can be used to type letters according to German conventions.
10775  A template file is included in 
10776 \family typewriter
10777 .../lyx/share/templates
10778 \family default
10779  for you to use as a starting point.
10780 \end_layout
10781
10782 \begin_layout Section
10783 Elsevier Journals
10784 \end_layout
10785
10786 \begin_layout Standard
10787 See the \SpecialChar LyX
10788  template file 
10789 \family typewriter
10790 elsarticle.lyx
10791 \family default
10792 .
10793  It contains all infos you need.
10794 \end_layout
10795
10796 \begin_layout Section
10797 Foils [aka 
10798 \family sans
10799 Foil\SpecialChar TeX
10800
10801 \family default
10802 ]
10803 \begin_inset CommandInset label
10804 LatexCommand label
10805 name "sec:foiltex"
10806
10807 \end_inset
10808
10809
10810 \end_layout
10811
10812 \begin_layout Standard
10813 by 
10814 \noun on
10815 Allan Rae
10816 \end_layout
10817
10818 \begin_layout Subsection
10819 Introduction
10820 \end_layout
10821
10822 \begin_layout Standard
10823 This section describes how to use \SpecialChar LyX
10824  to make slides for overhead projectors.
10825  There are two document classes that can do this: the default slides class
10826  and the 
10827 \family sans
10828 Foil\SpecialChar TeX
10829
10830 \family default
10831  slides class.
10832  This section documents the latter.
10833 \end_layout
10834
10835 \begin_layout Standard
10836 I'm going to say this again, nice and clear, so that there's no misunderstanding
10837 :
10838 \end_layout
10839
10840 \begin_layout Standard
10841 \begin_inset VSpace bigskip
10842 \end_inset
10843
10844
10845 \end_layout
10846
10847 \begin_layout Standard
10848 \align center
10849
10850 \size large
10851 This section documents the class 
10852 \begin_inset Quotes eld
10853 \end_inset
10854
10855
10856 \family sans
10857 FoilTeX
10858 \family default
10859
10860 \begin_inset Quotes erd
10861 \end_inset
10862
10863  
10864 \emph on
10865 only.
10866 \end_layout
10867
10868 \begin_layout Standard
10869 \begin_inset VSpace bigskip
10870 \end_inset
10871
10872
10873 \end_layout
10874
10875 \begin_layout Standard
10876 If you're looking for the documentation for 
10877 \begin_inset Quotes eld
10878 \end_inset
10879
10880
10881 \family sans
10882 slides (default)
10883 \family default
10884
10885 \begin_inset Quotes erd
10886 \end_inset
10887
10888 , check out section
10889 \begin_inset space ~
10890 \end_inset
10891
10892
10893 \begin_inset CommandInset ref
10894 LatexCommand ref
10895 reference "sec:slitex"
10896
10897 \end_inset
10898
10899 .
10900  If your machine doesn't have the 
10901 \family sans
10902 foils
10903 \family default
10904  class 
10905 \family sans
10906 FoilTeX
10907 \family default
10908  installed, you'll probably have to use the default 
10909 \family sans
10910 slides
10911 \family default
10912  class, which isn't quite as good as 
10913 \family sans
10914 foils.
10915 \end_layout
10916
10917 \begin_layout Standard
10918 The 
10919 \family sans
10920 foils
10921 \family default
10922  class is designed for use with version
10923 \begin_inset space ~
10924 \end_inset
10925
10926 2.1 of the 
10927 \family sans
10928 foils.cls
10929 \family default
10930  \SpecialChar LaTeX
10931  class file which is now an integral part of \SpecialChar LaTeX2e
10932 .
10933 \end_layout
10934
10935 \begin_layout Subsection
10936 Getting Started
10937 \end_layout
10938
10939 \begin_layout Standard
10940 Obviously, to use this document class, you need to select 
10941 \family sans
10942 FoilTeX
10943 \family default
10944  from the 
10945 \family sans
10946 Class
10947 \family default
10948  entry in the 
10949 \family sans
10950 Document
10951 \begin_inset space ~
10952 \end_inset
10953
10954 Layout
10955 \family default
10956  dialog.
10957  There are some settings in the 
10958 \family sans
10959 Document
10960 \begin_inset space ~
10961 \end_inset
10962
10963 Layout
10964 \family default
10965  dialog that you should know about that are specific to this class:
10966 \end_layout
10967
10968 \begin_layout Itemize
10969 Don't change the options 
10970 \family sans
10971 Sides
10972 \family default
10973  and 
10974 \family sans
10975 Columns
10976 \family default
10977  on the 
10978 \family sans
10979 Document
10980 \begin_inset space ~
10981 \end_inset
10982
10983 Layout
10984 \family default
10985  dialog.
10986  They're ignored by the 
10987 \family sans
10988 foils
10989 \family default
10990  class.
10991 \end_layout
10992
10993 \begin_layout Itemize
10994 The default font size is 20
10995 \begin_inset space \thinspace{}
10996 \end_inset
10997
10998 pt with the other options being 17
10999 \begin_inset space \thinspace{}
11000 \end_inset
11001
11002 pt, 25
11003 \begin_inset space \thinspace{}
11004 \end_inset
11005
11006 pt and 30
11007 \begin_inset space \thinspace{}
11008 \end_inset
11009
11010 pt.
11011 \end_layout
11012
11013 \begin_layout Itemize
11014 The default font is 
11015 \family sans
11016 sans
11017 \family default
11018  
11019 \family sans
11020 serif
11021 \family default
11022  but all math equations are still typeset in the usual roman font.
11023 \end_layout
11024
11025 \begin_layout Itemize
11026
11027 \family sans
11028 Foil\SpecialChar TeX
11029
11030 \family default
11031  supports A4 and Letter paper sizes as well as a special size for working
11032  with 35
11033 \begin_inset space \thinspace{}
11034 \end_inset
11035
11036 mm slides.
11037  It doesn't support A5, B5, legal or executive paper sizes.
11038 \end_layout
11039
11040 \begin_layout Itemize
11041 Don't bother changing the 
11042 \family sans
11043 Float Placement
11044 \family default
11045  settings because they are ignored anyway.
11046  All floats appear where they are defined in the text.
11047 \end_layout
11048
11049 \begin_layout Itemize
11050 The 
11051 \family sans
11052 Pagestyle
11053 \family default
11054  setting behaves a bit differently for this class.
11055  
11056 \family sans
11057 Foil\SpecialChar TeX
11058
11059 \family default
11060  provides extensive footer and header capabilities including a user-defined
11061  logo.
11062  See section
11063 \begin_inset space ~
11064 \end_inset
11065
11066
11067 \begin_inset CommandInset ref
11068 LatexCommand ref
11069 reference "sec:foilfoot"
11070
11071 \end_inset
11072
11073  for more details.
11074  The title page is treated differently to all other pages in the document
11075  and is 
11076 \emph on
11077 always
11078 \emph default
11079  unnumbered and 
11080 \emph on
11081 always
11082 \emph default
11083  has the logo centered at the bottom of the page (if one is defined).
11084  The possible page style choices and what they do are as follows:
11085 \end_layout
11086
11087 \begin_deeper
11088 \begin_layout Labeling
11089 \labelwidthstring MMMMMMM
11090
11091 \family sans
11092 \series bold
11093 empty
11094 \family default
11095 \series default
11096  The final output contains no page numbers, or other headers or footers
11097  (except footnotes of course).
11098  
11099 \end_layout
11100
11101 \begin_layout Labeling
11102 \labelwidthstring MMMMMMM
11103
11104 \family sans
11105 \series bold
11106 plain
11107 \family default
11108 \series default
11109  The final output contains page numbers centered at the bottom of the page.
11110  No other headings or footers (other than footnotes).
11111 \end_layout
11112
11113 \begin_layout Labeling
11114 \labelwidthstring MMMMMMM
11115
11116 \series bold
11117 foilheadings
11118 \series default
11119  Page numbers in lower right corner.
11120  Additional headers and footers are also shown.
11121  This is also the default.
11122 \end_layout
11123
11124 \begin_layout Labeling
11125 \labelwidthstring MMMMMMM
11126
11127 \series bold
11128 fancy
11129 \series default
11130  Gives you access to the 
11131 \family sans
11132 fancyheadings
11133 \family default
11134  package although its use with 
11135 \family sans
11136 Foil\SpecialChar TeX
11137
11138 \family default
11139  is discouraged by the writer of the 
11140 \family sans
11141 Foil\SpecialChar TeX
11142
11143 \family default
11144  package because of some potential page layout clashes.
11145 \end_layout
11146
11147 \end_deeper
11148 \begin_layout Subsubsection
11149 Extra Options
11150 \end_layout
11151
11152 \begin_layout Standard
11153 The following options may be used in the extra class options in the 
11154 \family sans
11155 Document\SpecialChar menuseparator
11156 Settings
11157 \family default
11158  dialog.
11159 \end_layout
11160
11161 \begin_layout Labeling
11162 \labelwidthstring MMMMMMx
11163
11164 \series bold
11165 35mmSlide
11166 \series default
11167  This sets up the page layout for 7.33
11168 \begin_inset space \thinspace{}
11169 \end_inset
11170
11171 in by 11
11172 \begin_inset space \thinspace{}
11173 \end_inset
11174
11175 in paper, which is about the same aspect ratio as a 35
11176 \begin_inset space \thinspace{}
11177 \end_inset
11178
11179 mm slide, making it a bit easier to work with this medium.
11180 \end_layout
11181
11182 \begin_layout Labeling
11183 \labelwidthstring MMMMMMx
11184
11185 \series bold
11186 headrule
11187 \series default
11188  Places a rule across the page below the header on every page except the
11189  title page.
11190 \end_layout
11191
11192 \begin_layout Labeling
11193 \labelwidthstring MMMMMMx
11194
11195 \series bold
11196 footrule
11197 \series default
11198  Places a rule across the page above the footer on every page except the
11199  title page.
11200 \end_layout
11201
11202 \begin_layout Labeling
11203 \labelwidthstring MMMMMMx
11204
11205 \series bold
11206 dvips
11207 \series default
11208  This is automatically set each time you create a new 
11209 \family sans
11210 foils
11211 \family default
11212  document.
11213  This option tells 
11214 \family sans
11215 Foil\SpecialChar TeX
11216
11217 \family default
11218  to use the dvips driver to rotate those pages that are set as landscape
11219  foils.
11220 \end_layout
11221
11222 \begin_layout Labeling
11223 \labelwidthstring MMMMMMx
11224
11225 \series bold
11226 landscape
11227 \series default
11228  Simply changes the page dimensions to those of a landscape page but doesn't
11229  do any rotation.
11230  Thus if you use this option you need to use an external program to rotate
11231  each page or feed your paper through your printer as landscape.
11232  Note that this option effectively reverses the roles of the 
11233 \family sans
11234 Foilhead
11235 \family default
11236  and 
11237 \family sans
11238 Rotatefoilhead
11239 \family default
11240  environments (don't worry these are described in the next section).
11241 \end_layout
11242
11243 \begin_layout Labeling
11244 \labelwidthstring MMMMMMx
11245
11246 \series bold
11247 leqno
11248 \series default
11249  Equation numbers on the left.
11250 \end_layout
11251
11252 \begin_layout Labeling
11253 \labelwidthstring MMMMMMx
11254
11255 \series bold
11256 fleqn
11257 \series default
11258  Flush-left equations.
11259 \end_layout
11260
11261 \begin_layout Subsection
11262 Supported Environments
11263 \end_layout
11264
11265 \begin_layout Standard
11266 Most of the environments commonly supported in other classes are also supported
11267  by the 
11268 \family sans
11269 foils
11270 \family default
11271  class.
11272  There are several additional environments provided by 
11273 \family sans
11274 Foil\SpecialChar TeX
11275
11276 \family default
11277  as well as a couple added by \SpecialChar LyX
11278 .
11279  The following environments are shared with other classes:
11280 \end_layout
11281
11282 \begin_layout Standard
11283 \begin_inset Flex Multiple Columns
11284 status open
11285
11286 \begin_layout Itemize
11287
11288 \family sans
11289 Standard
11290 \end_layout
11291
11292 \begin_layout Itemize
11293
11294 \family sans
11295 Itemize
11296 \end_layout
11297
11298 \begin_layout Itemize
11299
11300 \family sans
11301 Enumerate
11302 \end_layout
11303
11304 \begin_layout Itemize
11305
11306 \family sans
11307 Description
11308 \end_layout
11309
11310 \begin_layout Itemize
11311
11312 \family sans
11313 List
11314 \end_layout
11315
11316 \begin_layout Itemize
11317
11318 \family sans
11319 \SpecialChar LyX
11320 -Code
11321 \end_layout
11322
11323 \begin_layout Itemize
11324
11325 \family sans
11326 Verse
11327 \end_layout
11328
11329 \begin_layout Itemize
11330
11331 \family sans
11332 Quote
11333 \end_layout
11334
11335 \begin_layout Itemize
11336
11337 \family sans
11338 Quotation
11339 \end_layout
11340
11341 \begin_layout Itemize
11342
11343 \family sans
11344 TitleAuthor
11345 \end_layout
11346
11347 \begin_layout Itemize
11348
11349 \family sans
11350 Date
11351 \end_layout
11352
11353 \begin_layout Itemize
11354
11355 \family sans
11356 Abstract
11357 \end_layout
11358
11359 \begin_layout Itemize
11360
11361 \family sans
11362 Bibliography
11363 \end_layout
11364
11365 \begin_layout Itemize
11366
11367 \family sans
11368 Address
11369 \end_layout
11370
11371 \begin_layout Itemize
11372
11373 \family sans
11374 RightAddress
11375 \end_layout
11376
11377 \end_inset
11378
11379
11380 \end_layout
11381
11382 \begin_layout Standard
11383 That is, all the major environments apart from the sectioning environments.
11384  Since foils are essentially self-contained sections, with a title and body,
11385  
11386 \family sans
11387 Foil\SpecialChar TeX
11388
11389 \family default
11390  provides specific commands for starting new foils and these are:
11391 \end_layout
11392
11393 \begin_layout Itemize
11394
11395 \family sans
11396 Foilhead
11397 \end_layout
11398
11399 \begin_layout Itemize
11400
11401 \family sans
11402 Rotatefoilhead
11403 \end_layout
11404
11405 \begin_layout Standard
11406 \SpecialChar LyX
11407  also provides slightly modified versions of these two environments called:
11408 \end_layout
11409
11410 \begin_layout Itemize
11411
11412 \family sans
11413 ShortFoilhead
11414 \end_layout
11415
11416 \begin_layout Itemize
11417
11418 \family sans
11419 ShortRotatefoilhead
11420 \end_layout
11421
11422 \begin_layout Standard
11423 and the differences will be explained in the next section.
11424 \end_layout
11425
11426 \begin_layout Standard
11427 Since foils are often used in presenting ideas or new theorems and such
11428  
11429 \family sans
11430 Foil\SpecialChar TeX
11431
11432 \family default
11433  also provides a comprehensive box of goodies for presenting them:
11434 \end_layout
11435
11436 \begin_layout Standard
11437 \begin_inset Flex Multiple Columns
11438 status open
11439
11440 \begin_layout Itemize
11441
11442 \family sans
11443 Theorem
11444 \end_layout
11445
11446 \begin_layout Itemize
11447
11448 \family sans
11449 Lemma
11450 \end_layout
11451
11452 \begin_layout Itemize
11453
11454 \family sans
11455 Corollary
11456 \end_layout
11457
11458 \begin_layout Itemize
11459
11460 \family sans
11461 Proposition
11462 \end_layout
11463
11464 \begin_layout Itemize
11465
11466 \family sans
11467 Definition
11468 \end_layout
11469
11470 \begin_layout Itemize
11471
11472 \family sans
11473 Proof
11474 \end_layout
11475
11476 \begin_layout Itemize
11477
11478 \family sans
11479 Theorem*
11480 \end_layout
11481
11482 \begin_layout Itemize
11483
11484 \family sans
11485 Lemma*
11486 \end_layout
11487
11488 \begin_layout Itemize
11489
11490 \family sans
11491 Corollary*
11492 \end_layout
11493
11494 \begin_layout Itemize
11495
11496 \family sans
11497 Proposition*
11498 \end_layout
11499
11500 \begin_layout Itemize
11501
11502 \family sans
11503 Definition*
11504 \end_layout
11505
11506 \end_inset
11507
11508
11509 \end_layout
11510
11511 \begin_layout Standard
11512 The starred versions are unnumbered while the unstarred versions are numbered.
11513  There are also two list environments added by \SpecialChar LyX
11514  and these are:
11515 \end_layout
11516
11517 \begin_layout Itemize
11518
11519 \family sans
11520 TickList
11521 \end_layout
11522
11523 \begin_layout Itemize
11524
11525 \family sans
11526 CrossList
11527 \end_layout
11528
11529 \begin_layout Standard
11530
11531 \family sans
11532 Foil\SpecialChar TeX
11533
11534 \family default
11535  provides some powerful header and footer capabilities that are best set
11536  in the preamble although they may be set at any point in a document.
11537  If you want to change these settings in your document the best place to
11538  do so is at the very top of a foil, i.
11539 \begin_inset space \thinspace{}
11540 \end_inset
11541
11542 e.
11543 \emph on
11544
11545 \begin_inset space \space{}
11546 \end_inset
11547
11548
11549 \emph default
11550 straight after the foilhead.
11551 \end_layout
11552
11553 \begin_layout Standard
11554 For this purpose, the following command styles are provided [
11555 \shape smallcaps
11556 Martin Vermeer
11557 \shape default
11558 ]:
11559 \end_layout
11560
11561 \begin_layout Standard
11562 \begin_inset Flex Multiple Columns
11563 status open
11564
11565 \begin_layout Itemize
11566
11567 \family sans
11568 My
11569 \begin_inset space ~
11570 \end_inset
11571
11572 Logo
11573 \end_layout
11574
11575 \begin_layout Itemize
11576
11577 \family sans
11578 Restriction
11579 \end_layout
11580
11581 \begin_layout Itemize
11582
11583 \family sans
11584 Right
11585 \begin_inset space ~
11586 \end_inset
11587
11588 Footer
11589 \end_layout
11590
11591 \begin_layout Itemize
11592
11593 \family sans
11594 Right
11595 \begin_inset space ~
11596 \end_inset
11597
11598 Header
11599 \end_layout
11600
11601 \begin_layout Itemize
11602
11603 \family sans
11604 Left
11605 \begin_inset space ~
11606 \end_inset
11607
11608 Header
11609 \end_layout
11610
11611 \begin_deeper
11612 \begin_layout Plain Layout
11613 \begin_inset space ~
11614 \end_inset
11615
11616
11617 \end_layout
11618
11619 \end_deeper
11620 \end_inset
11621
11622
11623 \end_layout
11624
11625 \begin_layout Standard
11626 There are also a few commands provided by 
11627 \family sans
11628 Foil\SpecialChar TeX
11629
11630 \family default
11631  that aren't directly supported by \SpecialChar LyX
11632  but I'll tell you what they do and how
11633  to use them in section
11634 \begin_inset space ~
11635 \end_inset
11636
11637
11638 \begin_inset CommandInset ref
11639 LatexCommand ref
11640 reference "sec:unsuppfoils"
11641
11642 \end_inset
11643
11644 .
11645 \end_layout
11646
11647 \begin_layout Subsection
11648 Building a Set of Foils
11649 \end_layout
11650
11651 \begin_layout Standard
11652 This section will give a simple introduction to using the different environments
11653  to build a set of foils.
11654  If you want to see an example set of foils, take a look at the 
11655 \family typewriter
11656 Foils.lyx
11657 \family default
11658  file you find in \SpecialChar LyX
11659 's 
11660 \family typewriter
11661 examples
11662 \family default
11663  folder.
11664 \end_layout
11665
11666 \begin_layout Subsubsection
11667 Give It a Title Page
11668 \end_layout
11669
11670 \begin_layout Standard
11671 Unlike other classes that provide 
11672 \family sans
11673 Title
11674 \family default
11675
11676 \family sans
11677 Author
11678 \family default
11679
11680 \family sans
11681 Date
11682 \family default
11683  and 
11684 \family sans
11685 Abstract
11686 \family default
11687  environments, 
11688 \family sans
11689 foils
11690 \family default
11691  creates the title on a page of its own.
11692  If you leave out the 
11693 \family sans
11694 Date
11695 \family default
11696  environment \SpecialChar LaTeX
11697  will substitute the current date (every time you regenerate
11698  the output).
11699 \end_layout
11700
11701 \begin_layout Subsubsection
11702 Start a New Foil
11703 \end_layout
11704
11705 \begin_layout Standard
11706 As I mentioned earlier, there are four ways of starting a new foil.
11707  For portrait foils you should use 
11708 \family sans
11709 Foilhead
11710 \family default
11711  or 
11712 \family sans
11713 ShortFoilhead.
11714
11715 \family default
11716  The difference between these two environments is the amount of space between
11717  the title of the foil (the foilhead) and the body of the foil.
11718 \end_layout
11719
11720 \begin_layout Standard
11721 Landscape foils are generated using the 
11722 \family sans
11723 Rotatefoilhead
11724 \family default
11725  and 
11726 \family sans
11727 ShortRotatefoilhead
11728 \family default
11729  environments.
11730  Again the only difference is the spacing between foilhead and body.
11731  Both of the short versions have 0.5
11732 \begin_inset space ~
11733 \end_inset
11734
11735 inches less separation between the foilhead and the body.
11736  
11737 \end_layout
11738
11739 \begin_layout Standard
11740 One problem with the support for landscape foils is the requirement that
11741  you have to use the 
11742 \family typewriter
11743 dvips
11744 \family default
11745  driver to generate the PostScript output otherwise the foils won't be rotated.
11746  It is possible to get landscape foils even if you haven't got the 
11747 \family typewriter
11748 dvips
11749 \family default
11750  driver provided you can feed your foils sideways through your printer ;-)
11751 \end_layout
11752
11753 \begin_layout Subsubsection
11754 Theorems, Lemmas, Proofs and more
11755 \end_layout
11756
11757 \begin_layout Standard
11758 You can't have two of the same type of these environments directly following
11759  each other.
11760  If you use a normal paragraph break, , you will just be extending the previous
11761  environment as if you had merged the two environments together.
11762  Rather than that, you need to insert a so-called separator.
11763  Please refer to the section entitled 
11764 \emph on
11765 Separate Nestings
11766 \emph default
11767  in the 
11768 \emph on
11769 User's Guide
11770 \emph default
11771 .
11772 \end_layout
11773
11774 \begin_layout Subsubsection
11775 Lists
11776 \end_layout
11777
11778 \begin_layout Standard
11779 You get all the commonly supported list styles found in other classes as
11780  well as two new ones.
11781  I'll only describe the new ones here.
11782  If you want to find out more about the other list environments check out
11783  the 
11784 \emph on
11785 User's Guide.
11786
11787 \emph default
11788  If you intend to use itemized lists you might also want to read about the
11789  
11790 \family sans
11791 Itemize
11792 \begin_inset space ~
11793 \end_inset
11794
11795 Bullet
11796 \begin_inset space ~
11797 \end_inset
11798
11799 Selection
11800 \family default
11801  dialog described above in section
11802 \begin_inset space ~
11803 \end_inset
11804
11805
11806 \begin_inset CommandInset ref
11807 LatexCommand ref
11808 reference "sec:bullet"
11809
11810 \end_inset
11811
11812 .
11813 \end_layout
11814
11815 \begin_layout Standard
11816 The two new list styles, 
11817 \family sans
11818 TickList
11819 \family default
11820  and 
11821 \family sans
11822 CrossList
11823 \family default
11824 , are designed to make it easier for you to create lists of do's and don'ts
11825  or right and wrong by providing dedicated environments that use a tick
11826  or a cross as the label of the list.
11827  These lists are in fact dedicated variants of the 
11828 \family sans
11829 Itemize
11830 \family default
11831  environment.
11832  They do however require that you have the 
11833 \family typewriter
11834 psnfss
11835 \family default
11836  packages installed.
11837 \end_layout
11838
11839 \begin_layout Subsubsection
11840 Figures and Tables
11841 \end_layout
11842
11843 \begin_layout Standard
11844
11845 \family sans
11846 Foil\SpecialChar TeX
11847
11848 \family default
11849  redefines the floating tables and figures so that they appear exactly where
11850  they are in the text rather than pushing them to the top of the page or
11851  to some user specified location.
11852  In fact if you change the float placement settings they are simply ignored.
11853 \end_layout
11854
11855 \begin_layout Subsubsection
11856 Page Headers and Footers
11857 \begin_inset CommandInset label
11858 LatexCommand label
11859 name "sec:foilfoot"
11860
11861 \end_inset
11862
11863
11864 \end_layout
11865
11866 \begin_layout Standard
11867
11868 \family sans
11869 My
11870 \begin_inset space ~
11871 \end_inset
11872
11873 Logo
11874 \family default
11875  and 
11876 \family sans
11877 Restriction
11878 \family default
11879  are two commands used to control the left-footer text string.
11880  The first is meant to allow you to include a graphic logo on your foils
11881  and defaults to 
11882 \begin_inset Quotes eld
11883 \end_inset
11884
11885 -Typeset by 
11886 \family sans
11887 Foil\SpecialChar TeX
11888
11889 \family default
11890 -
11891 \begin_inset Quotes erd
11892 \end_inset
11893
11894 .
11895  While the second is meant to provide a classification for the audience,
11896  
11897 \emph on
11898 e.
11899 \begin_inset space \thinspace{}
11900 \end_inset
11901
11902 g.
11903 \emph default
11904
11905 \begin_inset space \space{}
11906 \end_inset
11907
11908 Confidential.
11909  It is empty by default.
11910 \end_layout
11911
11912 \begin_layout Standard
11913 The remaining page corners can be filled by 
11914 \family sans
11915 Right
11916 \begin_inset space ~
11917 \end_inset
11918
11919 Footer
11920 \family default
11921  (which defaults to page numbers), 
11922 \family sans
11923 Right
11924 \begin_inset space ~
11925 \end_inset
11926
11927 Header
11928 \family default
11929  (top right) and 
11930 \family sans
11931 Left
11932 \begin_inset space ~
11933 \end_inset
11934
11935 Header
11936 \family default
11937  (top left).
11938 \end_layout
11939
11940 \begin_layout Subsection
11941 Unsupported 
11942 \family sans
11943 Foil\SpecialChar TeX
11944
11945 \family default
11946  Goodies
11947 \begin_inset CommandInset label
11948 LatexCommand label
11949 name "sec:unsuppfoils"
11950
11951 \end_inset
11952
11953
11954 \end_layout
11955
11956 \begin_layout Standard
11957 All the commands mentioned below need to be set in a 
11958 \family sans
11959 \SpecialChar LaTeX
11960
11961 \family default
11962  environment or as 
11963 \family sans
11964 \SpecialChar TeX
11965
11966 \family default
11967  within another environment.
11968 \end_layout
11969
11970 \begin_layout Subsubsection
11971 Lengths
11972 \end_layout
11973
11974 \begin_layout Standard
11975 All lengths are adjusted using the 
11976 \family typewriter
11977
11978 \backslash
11979 setlength{
11980 \family default
11981 \emph on
11982 lengthname
11983 \family typewriter
11984 \emph default
11985 }{
11986 \family default
11987 \emph on
11988 newlength
11989 \family typewriter
11990 \emph default
11991 }
11992 \family default
11993  command.
11994  Where 
11995 \emph on
11996 lengthname
11997 \emph default
11998  should be replaced by the name given to the length you want to change and
11999  
12000 \emph on
12001 newlength
12002 \emph default
12003  is the length value.
12004  All lengths should be specified in units of length such as inches (
12005 \family typewriter
12006 in
12007 \family default
12008 ), millimeters (
12009 \family typewriter
12010 mm
12011 \family default
12012 ) or points (
12013 \family typewriter
12014 pt
12015 \family default
12016 ) or relative to some document or font-based length such as 
12017 \family typewriter
12018
12019 \backslash
12020 textwidth
12021 \family default
12022 .
12023  
12024 \end_layout
12025
12026 \begin_layout Standard
12027 It's possible to change the spacing between a foilhead and the body of the
12028  foil by adjusting the length specified by 
12029 \family typewriter
12030
12031 \backslash
12032 foilheadskip
12033 \family default
12034 .
12035  For example, to make 
12036 \emph on
12037 all
12038 \emph default
12039  foilheads 0.5
12040 \begin_inset space \space{}
12041 \end_inset
12042
12043 in closer to their bodies put the following in the preamble: 
12044 \family typewriter
12045
12046 \backslash
12047 setlength{
12048 \backslash
12049 foilheadskip}{-0.5in}
12050 \end_layout
12051
12052 \begin_layout Standard
12053 The spacings around floats can be adjusted by setting these lengths:
12054 \end_layout
12055
12056 \begin_layout Labeling
12057 \labelwidthstring MMMMMMMMMMM
12058
12059 \family typewriter
12060
12061 \backslash
12062 abovefloatskip
12063 \family default
12064  Separation between the text and the top of the float
12065 \end_layout
12066
12067 \begin_layout Labeling
12068 \labelwidthstring MMMMMMMMMMM
12069
12070 \family typewriter
12071
12072 \backslash
12073 abovecaptionskip
12074 \family default
12075  Separation between the float and the caption
12076 \end_layout
12077
12078 \begin_layout Labeling
12079 \labelwidthstring MMMMMMMMMMM
12080
12081 \family typewriter
12082
12083 \backslash
12084 belowcaptionskip
12085 \family default
12086  Separation between the caption and the following text
12087 \end_layout
12088
12089 \begin_layout Labeling
12090 \labelwidthstring MMMMMMMMMMM
12091
12092 \family typewriter
12093
12094 \backslash
12095 captionwidth
12096 \family default
12097  You can make the captions narrower than the surrounding text by adjusting
12098  this length.
12099  Best done relative to 
12100 \family typewriter
12101
12102 \backslash
12103 textwidth
12104 \family default
12105 .
12106 \end_layout
12107
12108 \begin_layout Standard
12109 There are also several title page related lengths that you may find useful
12110  if you have a long title or several authors:
12111 \end_layout
12112
12113 \begin_layout Labeling
12114 \labelwidthstring MMMMMMMMMMM
12115
12116 \family typewriter
12117
12118 \backslash
12119 abovetitleskip
12120 \family default
12121  Separation from headers to 
12122 \family sans
12123 Title
12124 \end_layout
12125
12126 \begin_layout Labeling
12127 \labelwidthstring MMMMMMMMMMM
12128
12129 \family typewriter
12130
12131 \backslash
12132 titleauthorskip
12133 \family default
12134  between 
12135 \family sans
12136 Title
12137 \family default
12138  and 
12139 \family sans
12140 Author
12141 \family default
12142  environments
12143 \end_layout
12144
12145 \begin_layout Labeling
12146 \labelwidthstring MMMMMMMMMMM
12147
12148 \family typewriter
12149
12150 \backslash
12151 authorauthorskip
12152 \family default
12153  between multiple 
12154 \family sans
12155 Author
12156 \family default
12157  lines
12158 \end_layout
12159
12160 \begin_layout Labeling
12161 \labelwidthstring MMMMMMMMMMM
12162
12163 \family typewriter
12164
12165 \backslash
12166 authordateskip
12167 \family default
12168  between the 
12169 \family sans
12170 Author
12171 \family default
12172  and the 
12173 \family sans
12174 Date
12175 \end_layout
12176
12177 \begin_layout Labeling
12178 \labelwidthstring MMMMMMMMMMM
12179
12180 \family typewriter
12181
12182 \backslash
12183 dateabstractskip
12184 \family default
12185  between the 
12186 \family sans
12187 Date
12188 \family default
12189  and the 
12190 \family sans
12191 Abstract
12192 \end_layout
12193
12194 \begin_layout Standard
12195 The last length related command affects all the list environments.
12196  If you place 
12197 \family typewriter
12198
12199 \backslash
12200 zerolistvertdimens
12201 \family default
12202  
12203 \emph on
12204 inside
12205 \emph default
12206  a list environment then all the vertical spacing between the list items
12207  is removed.
12208  Note that this is a command not a length so it doesn't require 
12209 \family typewriter
12210
12211 \backslash
12212 setlength
12213 \family default
12214  like the stuff mentioned above.
12215 \end_layout
12216
12217 \begin_layout Subsubsection
12218 Headers and Footers
12219 \end_layout
12220
12221 \begin_layout Standard
12222 The 
12223 \family typewriter
12224
12225 \backslash
12226 LogoOn
12227 \family default
12228  and 
12229 \family typewriter
12230
12231 \backslash
12232 LogoOff
12233 \family default
12234  commands control whether the logo in the 
12235 \family sans
12236 MyLogo
12237 \family default
12238  definition appear on a given page.
12239  If you put 
12240 \family typewriter
12241
12242 \backslash
12243 LogoOff
12244 \family default
12245  in the preamble then none of the foils will have the logo on them.
12246  If you don't want the logo on a particular page place the 
12247 \family typewriter
12248
12249 \backslash
12250 LogoOff
12251 \family default
12252  directly after the foilhead of that page and the 
12253 \family typewriter
12254
12255 \backslash
12256 LogoOn
12257 \family default
12258  directly after the next foilhead.
12259 \end_layout
12260
12261 \begin_layout Standard
12262 If you decide to use the 
12263 \family sans
12264 fancy
12265 \family default
12266  page style setting in the 
12267 \family sans
12268 Document
12269 \begin_inset space ~
12270 \end_inset
12271
12272 Layout
12273 \family default
12274  dialog you should probably add 
12275 \family typewriter
12276
12277 \backslash
12278 let
12279 \backslash
12280 headwidth
12281 \backslash
12282 textwidth
12283 \family default
12284  to your preamble so headers and footers on landscape pages are correctly
12285  placed when rotated.
12286  This is due to some clashes between the page layouts provided by the 
12287 \family sans
12288 fancyheadings
12289 \family default
12290  package and the 
12291 \family sans
12292 foils
12293 \family default
12294  class.
12295 \end_layout
12296
12297 \begin_layout Section
12298 Hollywood (Hollywood spec scripts)
12299 \end_layout
12300
12301 \begin_layout Standard
12302 by 
12303 \shape smallcaps
12304 Garst Reese
12305 \end_layout
12306
12307 \begin_layout Subsection
12308 Introduction
12309 \end_layout
12310
12311 \begin_layout Standard
12312 Getting the format of a Hollywood script right is a 
12313 \begin_inset Quotes eld
12314 \end_inset
12315
12316 rite of passage.
12317 \begin_inset Quotes erd
12318 \end_inset
12319
12320  It is designed to make the readers focus on content and to be easy and
12321  familiar for the actors to read.
12322  Each page of a script should be one minute of film.
12323  Nothing goes in a script that you cannot see or hear on screen.
12324  The courier 12 pt font should be used throughout.
12325  No italics.
12326 \end_layout
12327
12328 \begin_layout Subsection
12329 Special problems
12330 \end_layout
12331
12332 \begin_layout Standard
12333 Speakers' lines should NEVER break in mid-sentence.
12334  If a speaker's lines continue over a page break, repeat the 
12335 \family sans
12336 Speaker
12337 \family default
12338  title followed by (Cont'd).
12339 \end_layout
12340
12341 \begin_layout Subsection
12342 Special features
12343 \end_layout
12344
12345 \begin_layout Standard
12346 Insert the 
12347 \family sans
12348 Speaker
12349 \family default
12350  names as labels then cross-reference the label to insert the name.
12351  The cross-reference dialog will show the current cast of characters.
12352  You can use this to insert the speaker name in narratives also.
12353 \end_layout
12354
12355 \begin_layout Subsection
12356 Paper size and Margins
12357 \end_layout
12358
12359 \begin_layout Standard
12360 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
12361 \end_layout
12362
12363 \begin_layout Subsection
12364 Environments
12365 \end_layout
12366
12367 \begin_layout Standard
12368 The following environments are available.
12369  You can use hollywood.bind to get the bind keys shown at the right.
12370 \end_layout
12371
12372 \begin_layout Itemize
12373
12374 \family sans
12375 Standard
12376 \begin_inset Newline newline
12377 \end_inset
12378
12379
12380 \family default
12381 Used where nothing else works.
12382  Try to avoid it.
12383 \end_layout
12384
12385 \begin_layout Itemize
12386
12387 \family sans
12388 FADE_IN
12389 \family default
12390 :
12391 \begin_inset space \hfill{}
12392 \end_inset
12393
12394
12395 \family sans
12396 M-z S-I
12397 \family default
12398
12399 \begin_inset Newline newline
12400 \end_inset
12401
12402 Usually followed by something like 
12403 \begin_inset Quotes eld
12404 \end_inset
12405
12406 on Sally waking up.
12407 \begin_inset Quotes erd
12408 \end_inset
12409
12410
12411 \end_layout
12412
12413 \begin_layout Itemize
12414
12415 \family sans
12416 INT:
12417 \begin_inset space \hfill{}
12418 \end_inset
12419
12420 M-z i
12421 \begin_inset Newline newline
12422 \end_inset
12423
12424
12425 \family default
12426 Introduces a new INTERIOR camera set-up.
12427  Always followed by DAY or NIGHT, or something similar to define the lighting
12428  required.
12429  Everthing on this line in CAPS.
12430 \end_layout
12431
12432 \begin_layout Itemize
12433
12434 \family sans
12435 EXT:
12436 \begin_inset space \hfill{}
12437 \end_inset
12438
12439 M-z e
12440 \begin_inset Newline newline
12441 \end_inset
12442
12443
12444 \family default
12445 Introduces a new EXTERIOR camera set-up.
12446  Everthing on this line in CAPS.
12447 \end_layout
12448
12449 \begin_layout Itemize
12450
12451 \family sans
12452 Speaker
12453 \begin_inset space \hfill{}
12454 \end_inset
12455
12456 M-z s
12457 \begin_inset Newline newline
12458 \end_inset
12459
12460
12461 \family default
12462 The character speaking.
12463 \end_layout
12464
12465 \begin_layout Itemize
12466
12467 \family sans
12468 Parenthetical
12469 \begin_inset space \hfill{}
12470 \end_inset
12471
12472 M-z p
12473 \begin_inset Newline newline
12474 \end_inset
12475
12476
12477 \family default
12478 Instructions to the speaker.
12479  The () are automatically inserted.
12480 \end_layout
12481
12482 \begin_layout Itemize
12483
12484 \family sans
12485 Dialogue
12486 \begin_inset space \hfill{}
12487 \end_inset
12488
12489 M-z d
12490 \begin_inset Newline newline
12491 \end_inset
12492
12493
12494 \family default
12495 What the 
12496 \family sans
12497 Speaker
12498 \family default
12499  says.
12500 \end_layout
12501
12502 \begin_layout Itemize
12503
12504 \family sans
12505 Transition
12506 \begin_inset space \hfill{}
12507 \end_inset
12508
12509 M-z t
12510 \begin_inset Newline newline
12511 \end_inset
12512
12513
12514 \family default
12515 Camera movement instruction.
12516  e.
12517 \begin_inset space \thinspace{}
12518 \end_inset
12519
12520 g.
12521 \begin_inset space \space{}
12522 \end_inset
12523
12524 CUT TO:
12525 \end_layout
12526
12527 \begin_layout Itemize
12528
12529 \family sans
12530 FADE OUT:
12531 \begin_inset space \hfill{}
12532 \end_inset
12533
12534 M-z S-I
12535 \end_layout
12536
12537 \begin_layout Itemize
12538
12539 \family sans
12540 Author
12541 \begin_inset space \hfill{}
12542 \end_inset
12543
12544 M-z S-A
12545 \end_layout
12546
12547 \begin_layout Itemize
12548
12549 \family sans
12550 Title
12551 \begin_inset space \hfill{}
12552 \end_inset
12553
12554 M-z S-T
12555 \end_layout
12556
12557 \begin_layout Itemize
12558
12559 \family sans
12560 Right_Address
12561 \begin_inset space \hfill{}
12562 \end_inset
12563
12564 M-z r
12565 \end_layout
12566
12567 \begin_layout Subsection
12568 Script jargon
12569 \end_layout
12570
12571 \begin_layout Itemize
12572 (O.S) â€” off screen
12573 \end_layout
12574
12575 \begin_layout Itemize
12576 (V.0) â€” voice over
12577 \end_layout
12578
12579 \begin_layout Itemize
12580 b.
12581 \begin_inset space \thinspace{}
12582 \end_inset
12583
12584 g.
12585  â€” background
12586 \end_layout
12587
12588 \begin_layout Itemize
12589 C.U.
12590  â€” close-up
12591 \end_layout
12592
12593 \begin_layout Itemize
12594 PAN â€” camera movement
12595 \end_layout
12596
12597 \begin_layout Itemize
12598 INSERT â€” cut to close-up of
12599 \end_layout
12600
12601 \begin_layout Section
12602 ijmpc and ijmpd
12603 \end_layout
12604
12605 \begin_layout Standard
12606 by 
12607 \noun on
12608 Panayotis Papasotiriou
12609 \end_layout
12610
12611 \begin_layout Subsection
12612 Overview
12613 \end_layout
12614
12615 \begin_layout Standard
12616 The ijmpc package is a set of macros that facilitates electronic manuscript
12617  submission to the 
12618 \emph on
12619 International Journal of Modern Physics C
12620 \emph default
12621 .
12622  Similarly, the ijmpd package is for creating manuscripts to be submitted
12623  to the 
12624 \emph on
12625 International Journal of Modern Physics D
12626 \emph default
12627 .
12628  Both journals are published by World Scientific.
12629  The corresponding document classes are named 
12630 \family typewriter
12631 ws-ijmpc.cls
12632 \family default
12633  and 
12634 \family typewriter
12635 ws-ijmpd.cls
12636 \family default
12637 , respectively.
12638  These files, together with instructions for the authors, can be downloaded
12639  from the sites 
12640 \begin_inset Flex URL
12641 status collapsed
12642
12643 \begin_layout Plain Layout
12644
12645 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
12646 \end_layout
12647
12648 \end_inset
12649
12650  and 
12651 \begin_inset Flex URL
12652 status collapsed
12653
12654 \begin_layout Plain Layout
12655
12656 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
12657 \end_layout
12658
12659 \end_inset
12660
12661 .
12662  Both packages are modified versions of the standard 
12663 \begin_inset Quotes eld
12664 \end_inset
12665
12666 article
12667 \begin_inset Quotes erd
12668 \end_inset
12669
12670  package, and they are almost (but not exactly) identical.
12671  Most of their features are supported by \SpecialChar LyX
12672 .
12673  I have used \SpecialChar LyX
12674  successfully to write articles submitted to both journals
12675  without any problem.
12676 \end_layout
12677
12678 \begin_layout Subsection
12679 Writing a paper
12680 \end_layout
12681
12682 \begin_layout Standard
12683 As usual, the easiest way to write a paper is to start with a template.
12684  Click on 
12685 \family sans
12686 File\SpecialChar menuseparator
12687 New from
12688 \family default
12689  
12690 \family sans
12691 Template
12692 \family default
12693 , then choose the 
12694 \family typewriter
12695 ijmpc.lyx
12696 \family default
12697  or 
12698 \family typewriter
12699 ijmpd.lyx
12700 \family default
12701  template.
12702  This will give an (almost) empty document that includes the most common
12703  fields found in a manuscript.
12704  Simply overwrite the existing text (including the brackets, 
12705 \family typewriter
12706 <>
12707 \family default
12708 ) with your text.
12709  You should keep in mind the following remarks.
12710 \end_layout
12711
12712 \begin_layout Enumerate
12713 \SpecialChar LyX
12714  won't let you change the font size and the page style of the document,
12715  because such modifications are not allowed by both packages.
12716 \end_layout
12717
12718 \begin_layout Enumerate
12719 The language of the document should not be changed.
12720  Before previewing your paper, be sure that the babel package is not used.
12721  To do this, click on 
12722 \begin_inset Info
12723 type  "menu"
12724 arg   "dialog-show document"
12725 \end_inset
12726
12727  
12728 \family sans
12729 \SpecialChar menuseparator
12730 Language
12731 \family default
12732 , and select 
12733 \begin_inset Quotes eld
12734 \end_inset
12735
12736 None
12737 \begin_inset Quotes erd
12738 \end_inset
12739
12740  as 
12741 \family sans
12742 Language Package
12743 \family default
12744 .
12745 \end_layout
12746
12747 \begin_layout Enumerate
12748 The 
12749 \begin_inset Quotes eld
12750 \end_inset
12751
12752 Keywords
12753 \begin_inset Quotes erd
12754 \end_inset
12755
12756  style must be used to define keywords.
12757 \end_layout
12758
12759 \begin_layout Enumerate
12760 The ijmpc package provides a style named 
12761 \begin_inset Quotes eld
12762 \end_inset
12763
12764 Classification Codes
12765 \begin_inset Quotes erd
12766 \end_inset
12767
12768 , which can be used to define classification codes, such as PACS numbers.
12769  Note that this facility is not supported by the ijmpd package.
12770 \end_layout
12771
12772 \begin_layout Enumerate
12773 Several new environments are available: 
12774 \begin_inset Quotes eld
12775 \end_inset
12776
12777 Definition
12778 \begin_inset Quotes erd
12779 \end_inset
12780
12781
12782 \begin_inset Quotes eld
12783 \end_inset
12784
12785 Step
12786 \begin_inset Quotes erd
12787 \end_inset
12788
12789
12790 \begin_inset Quotes eld
12791 \end_inset
12792
12793 Example
12794 \begin_inset Quotes erd
12795 \end_inset
12796
12797
12798 \begin_inset Quotes eld
12799 \end_inset
12800
12801 Remark
12802 \begin_inset Quotes erd
12803 \end_inset
12804
12805
12806 \begin_inset Quotes eld
12807 \end_inset
12808
12809 Notation
12810 \begin_inset Quotes erd
12811 \end_inset
12812
12813
12814 \begin_inset Quotes eld
12815 \end_inset
12816
12817 Theorem
12818 \begin_inset Quotes erd
12819 \end_inset
12820
12821
12822 \begin_inset Quotes eld
12823 \end_inset
12824
12825 Proof
12826 \begin_inset Quotes erd
12827 \end_inset
12828
12829
12830 \begin_inset Quotes eld
12831 \end_inset
12832
12833 Corollary
12834 \begin_inset Quotes erd
12835 \end_inset
12836
12837
12838 \begin_inset Quotes eld
12839 \end_inset
12840
12841 Lemma
12842 \begin_inset Quotes erd
12843 \end_inset
12844
12845
12846 \begin_inset Quotes eld
12847 \end_inset
12848
12849 Proposition
12850 \begin_inset Quotes erd
12851 \end_inset
12852
12853
12854 \begin_inset Quotes eld
12855 \end_inset
12856
12857 Prop
12858 \begin_inset Quotes erd
12859 \end_inset
12860
12861
12862 \begin_inset Quotes eld
12863 \end_inset
12864
12865 Question
12866 \begin_inset Quotes erd
12867 \end_inset
12868
12869
12870 \begin_inset Quotes eld
12871 \end_inset
12872
12873 Claim
12874 \begin_inset Quotes erd
12875 \end_inset
12876
12877 , and 
12878 \begin_inset Quotes eld
12879 \end_inset
12880
12881 Conjecture
12882 \begin_inset Quotes erd
12883 \end_inset
12884
12885 .
12886  Their use is more or less obvious.
12887  \SpecialChar LyX
12888  supports all these environments; it will use the proper label, text style,
12889  and numbering scheme for each of them.
12890 \end_layout
12891
12892 \begin_layout Enumerate
12893 Both packages use basic citations; the natbib package should not be used.
12894  In \SpecialChar LyX
12895 , citation references are shown as usual; in the output, citations are
12896  shown as superscripts.
12897  If you want to use a citation as normal text, you should use the 
12898 \family typewriter
12899 refcite
12900 \family default
12901  command, e.
12902 \begin_inset space \thinspace{}
12903 \end_inset
12904
12905 g.
12906 \begin_inset space \space{}
12907 \end_inset
12908
12909
12910 \begin_inset Quotes eld
12911 \end_inset
12912
12913 See Ref.
12914 \begin_inset space \space{}
12915 \end_inset
12916
12917
12918 \family typewriter
12919
12920 \backslash
12921 refcite{key}
12922 \family default
12923
12924 \begin_inset Quotes erd
12925 \end_inset
12926
12927 .
12928 \end_layout
12929
12930 \begin_layout Enumerate
12931 There is no 
12932 \begin_inset Quotes eld
12933 \end_inset
12934
12935 Acknowledgments
12936 \begin_inset Quotes erd
12937 \end_inset
12938
12939  section in both packages.
12940  To put acknowledgments, just use the 
12941 \begin_inset Quotes eld
12942 \end_inset
12943
12944 Section*
12945 \begin_inset Quotes erd
12946 \end_inset
12947
12948  environment.
12949 \end_layout
12950
12951 \begin_layout Enumerate
12952 Appendices may be added to the paper, 
12953 \emph on
12954 after
12955 \emph default
12956  the Acknowledgments and 
12957 \shape italic
12958 before
12959 \shape default
12960  the References.
12961  \SpecialChar LyX
12962  provides a special environment, called 
12963 \begin_inset Quotes eld
12964 \end_inset
12965
12966 Appendices Section
12967 \begin_inset Quotes erd
12968 \end_inset
12969
12970  which marks the beginning of the appendices.
12971  This environment should be left blank; it just sends a \SpecialChar LaTeX
12972  command, but nothing
12973  is really printed.
12974  In \SpecialChar LyX
12975 , the word 
12976 \begin_inset Quotes eld
12977 \end_inset
12978
12979 Appendix
12980 \begin_inset Quotes erd
12981 \end_inset
12982
12983  is printed with blue letters, as a signal that all sections after that
12984  point are appendices.
12985  To write an appendix, use the 
12986 \begin_inset Quotes eld
12987 \end_inset
12988
12989 Appendix
12990 \begin_inset Quotes erd
12991 \end_inset
12992
12993  environment.
12994  \SpecialChar LyX
12995  will number each appendix with capital letters, as required by both journals.
12996  Note that 
12997 \begin_inset Quotes eld
12998 \end_inset
12999
13000 Appendices Section
13001 \begin_inset Quotes erd
13002 \end_inset
13003
13004  
13005 \emph on
13006 must
13007 \emph default
13008  be present before the first appendix; if not, all appendices will be numbered
13009  as normal sections in the output.
13010 \end_layout
13011
13012 \begin_layout Enumerate
13013 The ijmpc and the ijmpd packages use the 
13014 \family typewriter
13015 tbl
13016 \family default
13017  command to implement table captions.
13018  As a result, a table created by \SpecialChar LyX
13019  is printed correctly, but its caption
13020  is ignored.
13021  However, you can use some \SpecialChar TeX
13022  code to overcome this problem, so that captions
13023  are printed as expected.
13024  To do so, create a float table as usual, remove the caption, and replace
13025  it with the \SpecialChar TeX
13026  code 
13027 \family typewriter
13028
13029 \backslash
13030 tbl{
13031 \emph on
13032 your table caption
13033 \emph default
13034 }{
13035 \family default
13036  (sic); you must also the \SpecialChar TeX
13037  code 
13038 \family typewriter
13039 }
13040 \family default
13041  immediately after the tabular material.
13042  Study the example table included in the template files to see how this
13043  trick is implemented.
13044  Alternatively, If you need table captions, you should implement the whole
13045  table float in a 
13046 \family typewriter
13047 .tex
13048 \family default
13049  file, then include this file to the \SpecialChar LyX
13050  document (
13051 \family sans
13052 Insert\SpecialChar menuseparator
13053 File\SpecialChar menuseparator
13054 Child
13055 \begin_inset space ~
13056 \end_inset
13057
13058 Document
13059 \family default
13060 ).
13061  Details on how to create a table float can be found in the files 
13062 \family typewriter
13063 ws-ijmpc.tex
13064 \family default
13065  and 
13066 \family typewriter
13067 ws-ijmpd.tex
13068 \family default
13069 , included in the corresponding packages.
13070 \end_layout
13071
13072 \begin_layout Subsection
13073 Preparing a paper for submission
13074 \end_layout
13075
13076 \begin_layout Standard
13077 Before you submit your paper you must export the \SpecialChar LyX
13078  document as a \SpecialChar LaTeX
13079  file (
13080 \family sans
13081 File\SpecialChar menuseparator
13082 Export\SpecialChar menuseparator
13083 \SpecialChar LaTeX
13084
13085 \family default
13086 )
13087 \begin_inset Foot
13088 status open
13089
13090 \begin_layout Plain Layout
13091 Actually you have the choice between \SpecialChar LaTeX
13092  (plain) and pdflatex.
13093  If you intend to use pdflatex to prepare the paper, you should use the
13094  pdflatex option so that included graphics are converted to PDF format,
13095  ready for use by pdflatex.
13096 \end_layout
13097
13098 \end_inset
13099
13100 , then make the following changes to the resulting 
13101 \family typewriter
13102 .tex
13103 \family default
13104  file.
13105 \end_layout
13106
13107 \begin_layout Enumerate
13108 Remove the comment lines before the 
13109 \family typewriter
13110
13111 \backslash
13112 documentclass
13113 \family default
13114  command.
13115 \end_layout
13116
13117 \begin_layout Enumerate
13118 Remove everything between (and including) the 
13119 \family typewriter
13120
13121 \backslash
13122 makeatletter
13123 \family default
13124  and 
13125 \family typewriter
13126
13127 \backslash
13128 makeatother
13129 \family default
13130  commands, except for any commands you specifically put into the \SpecialChar LaTeX
13131  preamble.
13132 \end_layout
13133
13134 \begin_layout Standard
13135 The modified 
13136 \family typewriter
13137 .tex
13138 \family default
13139  file should be saved and processed through \SpecialChar LaTeX
13140  as many times as necessary.
13141  You may also want to check the resulting 
13142 \family typewriter
13143 .dvi
13144 \family default
13145  document.
13146 \end_layout
13147
13148 \begin_layout Section
13149 iopart
13150 \end_layout
13151
13152 \begin_layout Standard
13153 by 
13154 \noun on
13155 Uwe Stöhr
13156 \end_layout
13157
13158 \begin_layout Subsection
13159 Overview
13160 \end_layout
13161
13162 \begin_layout Standard
13163 The iopart package provides a document class to create electronic manuscript
13164  submission to the journals published by the Institute of Physics.
13165  Instructions for the authors how to create a paper using the iopart class
13166  can be downloaded together with the iopart package from the site 
13167 \begin_inset Flex URL
13168 status collapsed
13169
13170 \begin_layout Plain Layout
13171
13172 ftp://ftp.iop.org/pub/journals/latex2e
13173 \end_layout
13174
13175 \end_inset
13176
13177 .
13178 \end_layout
13179
13180 \begin_layout Subsection
13181 Writing a paper
13182 \end_layout
13183
13184 \begin_layout Standard
13185 The easiest way to write a paper is to start with the template 
13186 \emph on
13187 IOP-article.lyx
13188 \emph default
13189  that is available via 
13190 \family sans
13191 File\SpecialChar menuseparator
13192 New From Template
13193 \family default
13194  The template explains how to use the special text environments.
13195  Here are the most important advices:
13196 \end_layout
13197
13198 \begin_layout Itemize
13199 To be able to compile your document to a PDF, PS, or DVI, ensure that the
13200  no AMS packages are loaded in 
13201 \family sans
13202 Document\SpecialChar menuseparator
13203 Settings\SpecialChar menuseparator
13204 Math Options
13205 \family default
13206 !
13207 \end_layout
13208
13209 \begin_layout Itemize
13210
13211 \size normal
13212 The title environment defines the kind of your paper.
13213  So use one of the following environments for the title:
13214 \end_layout
13215
13216 \begin_deeper
13217 \begin_layout Itemize
13218
13219 \family sans
13220 \size normal
13221 Title
13222 \family default
13223  for a Paper
13224 \end_layout
13225
13226 \begin_layout Itemize
13227
13228 \family sans
13229 \size normal
13230 Review
13231 \family default
13232  for a Review
13233 \end_layout
13234
13235 \begin_layout Itemize
13236
13237 \family sans
13238 \size normal
13239 Topical
13240 \family default
13241  for a Topical review
13242 \end_layout
13243
13244 \begin_layout Itemize
13245
13246 \family sans
13247 \size normal
13248 Comment
13249 \family default
13250  for a Comment
13251 \end_layout
13252
13253 \begin_layout Itemize
13254
13255 \family sans
13256 \size normal
13257 Note
13258 \family default
13259  for a Note
13260 \end_layout
13261
13262 \begin_layout Itemize
13263
13264 \family sans
13265 \size normal
13266 Paper
13267 \family default
13268  for a Paper (same as Title)
13269 \end_layout
13270
13271 \begin_layout Itemize
13272
13273 \family sans
13274 \size normal
13275 Prelim
13276 \family default
13277  for a Preliminary communication
13278 \end_layout
13279
13280 \begin_layout Itemize
13281
13282 \family sans
13283 \size normal
13284 Rapid
13285 \family default
13286  for a Rapid communication
13287 \end_layout
13288
13289 \begin_layout Itemize
13290
13291 \family sans
13292 \size normal
13293 Letter
13294 \family default
13295  for a Letter to the editor
13296 \end_layout
13297
13298 \end_deeper
13299 \begin_layout Itemize
13300
13301 \size normal
13302 All title environments except of 
13303 \family sans
13304 Letter
13305 \family default
13306  can have an optional short title.
13307 \end_layout
13308
13309 \begin_layout Itemize
13310 There is a general title environment 
13311 \family sans
13312 Article
13313 \family default
13314  which is not directly supported by \SpecialChar LyX
13315 .
13316  This can be used as \SpecialChar TeX
13317  code when your document doesn't fit into one of the
13318  other title types.
13319 \end_layout
13320
13321 \begin_layout Standard
13322 For more informations like hints for special table and formula formatting,
13323  look at the IOP author guidelines.
13324 \end_layout
13325
13326 \begin_layout Section
13327 Kluwer
13328 \end_layout
13329
13330 \begin_layout Standard
13331 by 
13332 \noun on
13333 Panayotis Papasotiriou
13334 \end_layout
13335
13336 \begin_layout Subsection
13337 Overview
13338 \end_layout
13339
13340 \begin_layout Standard
13341 The Kluwer package is a set of macros produced by Kluwer Academic Publishers
13342  that facilitates electronic manuscript submission to the journals they
13343  publish.
13344  Most known of them (at least in my domain of interest) are 
13345 \emph on
13346 Astrophysics and Space Science
13347 \emph default
13348  and 
13349 \emph on
13350 Solar Physics
13351 \emph default
13352 , but there are many others (see a complete list at 
13353 \begin_inset Flex URL
13354 status collapsed
13355
13356 \begin_layout Plain Layout
13357
13358 http://www.wkap.nl/jrnllist.htm/JRNLHOME
13359 \end_layout
13360
13361 \end_inset
13362
13363 ).
13364  The Kluwer package may be downloaded from the site 
13365 \begin_inset Flex URL
13366 status collapsed
13367
13368 \begin_layout Plain Layout
13369
13370 http://www.wkap.nl/kaphtml.htm/STYLEFILES
13371 \end_layout
13372
13373 \end_inset
13374
13375 .
13376  A complete user guide is contained in that package (but it can also be
13377  downloaded separately).
13378 \end_layout
13379
13380 \begin_layout Standard
13381 \SpecialChar LyX
13382  supports many features of the package but not everything.
13383  However, the \SpecialChar TeX
13384  code needed is reduced to some 
13385 \begin_inset Quotes eld
13386 \end_inset
13387
13388 peculiar
13389 \begin_inset Quotes erd
13390 \end_inset
13391
13392  commands of the package (see
13393 \begin_inset space ~
13394 \end_inset
13395
13396
13397 \begin_inset CommandInset ref
13398 LatexCommand ref
13399 reference "subsec:kluwer_peculiarities"
13400
13401 \end_inset
13402
13403 ).
13404  I have recently used \SpecialChar LyX
13405  to write an article submitted to the 
13406 \emph on
13407 Astrophysics and Space Science
13408 \emph default
13409  without any problem.
13410 \end_layout
13411
13412 \begin_layout Subsection
13413 Writing a paper
13414 \end_layout
13415
13416 \begin_layout Standard
13417 The easiest way to write a paper is to start with the Kluwer template file.
13418  Click on 
13419 \family sans
13420 File\SpecialChar menuseparator
13421 New from
13422 \family default
13423  
13424 \family sans
13425 Template
13426 \family default
13427 , then choose the 
13428 \family typewriter
13429 kluwer.lyx
13430 \family default
13431  template.
13432  This will give an (almost) empty document that includes the most common
13433  fields found in a manuscript and a short description of their use.
13434  As in most templates, simply overwrite the existing text (including the
13435  brackets, 
13436 \family typewriter
13437 <>
13438 \family default
13439 ) with the correct information.
13440 \end_layout
13441
13442 \begin_layout Subsection
13443 Preparing a paper for submission
13444 \end_layout
13445
13446 \begin_layout Standard
13447 As in the AAS\SpecialChar TeX
13448  package, before you submit your paper to a journal you must
13449  
13450 \begin_inset Quotes eld
13451 \end_inset
13452
13453 postprocess
13454 \begin_inset Quotes erd
13455 \end_inset
13456
13457  it as follows.
13458 \end_layout
13459
13460 \begin_layout Enumerate
13461 Export your paper as a \SpecialChar LaTeX
13462  file.
13463  To do this, click on 
13464 \family sans
13465 File\SpecialChar menuseparator
13466 Export\SpecialChar menuseparator
13467 \SpecialChar LaTeX
13468
13469 \family default
13470 .
13471  
13472 \end_layout
13473
13474 \begin_layout Enumerate
13475 Edit the resulting 
13476 \family typewriter
13477 .tex
13478 \family default
13479  file with a text editor and make the following changes
13480 \end_layout
13481
13482 \begin_deeper
13483 \begin_layout Enumerate
13484 remove the comment lines before the 
13485 \family typewriter
13486
13487 \backslash
13488 documentclass
13489 \family default
13490  command,
13491 \end_layout
13492
13493 \begin_layout Enumerate
13494 remove everything between (and including) the 
13495 \family typewriter
13496
13497 \backslash
13498 makeatletter
13499 \family default
13500  and 
13501 \family typewriter
13502
13503 \backslash
13504 makeatother
13505 \family default
13506  commands, except for any commands you specifically put into the \SpecialChar LaTeX
13507  preamble.
13508 \end_layout
13509
13510 \begin_layout Standard
13511 Save the resulting 
13512 \family typewriter
13513 .tex
13514 \family default
13515  file.
13516 \end_layout
13517
13518 \end_deeper
13519 \begin_layout Enumerate
13520 Run the 
13521 \family typewriter
13522 .tex
13523 \family default
13524  file through \SpecialChar LaTeX
13525  as many times as necessary (usually up to three).
13526 \end_layout
13527
13528 \begin_layout Enumerate
13529 View the resulting 
13530 \family typewriter
13531 .dvi
13532 \family default
13533  document using, e.
13534 \begin_inset space \thinspace{}
13535 \end_inset
13536
13537 g.
13538 \begin_inset space \space{}
13539 \end_inset
13540
13541
13542 \family sans
13543 xdvi
13544 \family default
13545 , and check if everything is OK (it should, if you didn't make any mistake).
13546 \end_layout
13547
13548 \begin_layout Subsection
13549 \begin_inset Quotes eld
13550 \end_inset
13551
13552 Peculiarities
13553 \begin_inset Quotes erd
13554 \end_inset
13555
13556  of the Kluwer package
13557 \begin_inset CommandInset label
13558 LatexCommand label
13559 name "subsec:kluwer_peculiarities"
13560
13561 \end_inset
13562
13563
13564 \end_layout
13565
13566 \begin_layout Standard
13567 The Kluwer package has the following 
13568 \begin_inset Quotes eld
13569 \end_inset
13570
13571 peculiarities
13572 \begin_inset Quotes erd
13573 \end_inset
13574
13575 .
13576 \end_layout
13577
13578 \begin_layout Enumerate
13579 It is possible to write multiple articles in the same \SpecialChar LaTeX
13580  file
13581 \begin_inset Foot
13582 status collapsed
13583
13584 \begin_layout Plain Layout
13585 I can't imagine any good reason to do this.
13586 \end_layout
13587
13588 \end_inset
13589
13590 .
13591  Each article must be included in the environment 
13592 \begin_inset Quotes eld
13593 \end_inset
13594
13595 article
13596 \begin_inset Quotes erd
13597 \end_inset
13598
13599 .
13600  Unfortunately, this environment cannot be omitted, even if you write just
13601  one article.
13602  Therefore, each article starts with the command 
13603 \family typewriter
13604
13605 \backslash
13606 begin{article}
13607 \family default
13608  and, obviously, ends with the command 
13609 \family typewriter
13610
13611 \backslash
13612 end{article}
13613 \family default
13614 .
13615  Although this can be implemented in \SpecialChar LyX
13616 , I didn't included it, since it looks
13617  ugly and can confuse the novice user.
13618  Therefore, you need to enter them directly and mark them as \SpecialChar LaTeX
13619  code (the
13620  well-known 
13621 \begin_inset Quotes eld
13622 \end_inset
13623
13624 \SpecialChar TeX
13625  code
13626 \begin_inset Quotes erd
13627 \end_inset
13628
13629 ).
13630 \end_layout
13631
13632 \begin_layout Enumerate
13633 Information given at the beginning of the article (i.
13634 \begin_inset space \thinspace{}
13635 \end_inset
13636
13637 e.
13638 \begin_inset space \space{}
13639 \end_inset
13640
13641 title, subtitle, author, institution, running title, running author, abstract
13642  and keywords) must be included in an environment called 
13643 \begin_inset Quotes eld
13644 \end_inset
13645
13646 opening
13647 \begin_inset Quotes erd
13648 \end_inset
13649
13650 .
13651  This is not implemented in \SpecialChar LyX
13652 , so you must enter title, subtitle etc.
13653 \begin_inset space ~
13654 \end_inset
13655
13656 between two \SpecialChar TeX
13657  code lines (
13658 \family typewriter
13659
13660 \backslash
13661 begin{opening}
13662 \family default
13663  and 
13664 \family typewriter
13665
13666 \backslash
13667 end{opening}
13668 \family default
13669 ).
13670 \end_layout
13671
13672 \begin_layout Enumerate
13673 According to the user manual, the label of each bibliography item must be
13674  written as 
13675 \family typewriter
13676
13677 \backslash
13678 protect
13679 \backslash
13680 citeauthoryear{
13681 \family default
13682 \emph on
13683 author(s)
13684 \family typewriter
13685 \emph default
13686 }{
13687 \family default
13688 \emph on
13689 year
13690 \family typewriter
13691 \emph default
13692 }
13693 \family default
13694 .
13695 \end_layout
13696
13697 \begin_layout Standard
13698 The 
13699 \family typewriter
13700 kluwer.lyx
13701 \family default
13702  template takes care of all these 
13703 \begin_inset Quotes eld
13704 \end_inset
13705
13706 peculiarities
13707 \begin_inset Quotes erd
13708 \end_inset
13709
13710 .
13711  If you start a new paper using this template you don't need to do anything
13712  special.
13713  Just 
13714 \end_layout
13715
13716 \begin_layout Enumerate
13717 don't delete the \SpecialChar TeX
13718  code included in the template, and
13719 \end_layout
13720
13721 \begin_layout Enumerate
13722 copy the example bibliography item included in the template and modify it
13723  as necessary to enter new bibliography items.
13724 \end_layout
13725
13726 \begin_layout Section
13727 Koma-Script
13728 \end_layout
13729
13730 \begin_layout Standard
13731 by 
13732 \noun on
13733 Bernd Rellermeyer
13734 \end_layout
13735
13736 \begin_layout Subsection
13737 Overview
13738 \end_layout
13739
13740 \begin_layout Standard
13741 The \SpecialChar LyX
13742  document classes 
13743 \emph on
13744 article (koma-script)
13745 \emph default
13746
13747 \emph on
13748 report (koma-script)
13749 \emph default
13750
13751 \emph on
13752 book
13753 \emph default
13754  
13755 \emph on
13756 (koma-script)
13757 \emph default
13758 , and 
13759 \emph on
13760 letter
13761 \emph default
13762  
13763 \emph on
13764 (koma-script)
13765 \emph default
13766  correspond to the \SpecialChar LaTeX
13767  document classes 
13768 \family typewriter
13769 scrartcl.cls
13770 \family default
13771
13772 \family typewriter
13773 scrreprt.cls
13774 \family default
13775
13776 \family typewriter
13777 scrbook.cls
13778 \family default
13779 , and 
13780 \family typewriter
13781 scrlettr.cls
13782 \family default
13783 , resp.
13784 \begin_inset space ~
13785 \end_inset
13786
13787 of the Koma-Script family.
13788  They are replacements for the standard document classes 
13789 \family typewriter
13790 article.cls
13791 \family default
13792
13793 \family typewriter
13794 report.cls
13795 \family default
13796
13797 \family typewriter
13798 book.cls
13799 \family default
13800  and 
13801 \family typewriter
13802 letter.cls
13803 \family default
13804 , resp., and fit better to European typography conventions in a number of
13805  points.
13806 \end_layout
13807
13808 \begin_layout Itemize
13809 Standard character size is 11pt in 
13810 \emph on
13811 article (koma-script)
13812 \emph default
13813
13814 \emph on
13815 report (koma-script)
13816 \emph default
13817 , and 
13818 \emph on
13819 book (koma-script)
13820 \emph default
13821 , and 12pt in 
13822 \emph on
13823 letter (koma-script)
13824 \emph default
13825 .
13826 \end_layout
13827
13828 \begin_layout Itemize
13829 Headings, labels of the description environment, and a number of elements
13830  of the 
13831 \emph on
13832 letter (koma-script)
13833 \emph default
13834  document class are set in a bold sans serif font.
13835 \begin_inset Foot
13836 status collapsed
13837
13838 \begin_layout Plain Layout
13839 There is a big difference between the bold sans serif old cm fonts and new
13840  ec fonts, especially in the appearance of headings.
13841  In comparison, the ec bold sans serif fonts look a bit thin.
13842  Here the \SpecialChar LaTeX
13843  package 
13844 \family typewriter
13845 cmsd.sty by
13846 \family default
13847  
13848 \shape smallcaps
13849 Walter Schmidt
13850 \shape default
13851  helps to produce the 
13852 \begin_inset Quotes eld
13853 \end_inset
13854
13855 usual
13856 \begin_inset Quotes erd
13857 \end_inset
13858
13859  appearance when using the ec fonts.
13860 \end_layout
13861
13862 \end_inset
13863
13864  The numbering of chapter headings is made in the same way as the numbering
13865  of section headings, that is without the extra line 
13866 \begin_inset Quotes eld
13867 \end_inset
13868
13869 Chapter\SpecialChar ldots
13870
13871 \begin_inset Quotes erd
13872 \end_inset
13873
13874 .
13875  In addition, the appearance of the headings can be modified by using a
13876  number of options (in \SpecialChar LyX
13877  to be entered in the field 
13878 \family sans
13879 Extra
13880 \begin_inset space ~
13881 \end_inset
13882
13883 Options
13884 \family default
13885  of the dialog 
13886 \family sans
13887 Layout\SpecialChar menuseparator
13888 Document
13889 \family default
13890 ).
13891  
13892 \end_layout
13893
13894 \begin_layout Itemize
13895 The main means in the Koma-Script document classes to design the type area
13896  are the options 
13897 \family sans
13898 BCOR
13899 \family default
13900  and 
13901 \family sans
13902 DIV
13903 \family default
13904  (in \SpecialChar LyX
13905  to be entered in the extra class options field in the dialog 
13906 \family sans
13907 Document\SpecialChar menuseparator
13908 Settings
13909 \family default
13910 ).
13911  They make a clearer modification of page margins possible as do the options
13912  of the dialog 
13913 \family sans
13914 Document\SpecialChar menuseparator
13915 Settings
13916 \family default
13917 .
13918  
13919 \end_layout
13920
13921 \begin_layout Itemize
13922 The \SpecialChar LaTeX
13923  document classes of the Koma-Script family define a number of additional
13924  commands.
13925  Those part of it which makes sense in \SpecialChar LyX
13926  is implemented in corresponding
13927  paragraph types.
13928 \end_layout
13929
13930 \begin_layout Standard
13931 Detailed descriptions of the \SpecialChar LaTeX
13932  document classes of the Koma-Script family
13933  can be found in the Koma-Script documentation 
13934 \emph on
13935 scrguide
13936 \emph default
13937  (German) and 
13938 \emph on
13939 scrguien
13940 \emph default
13941  (English).
13942 \end_layout
13943
13944 \begin_layout Subsection
13945 article (koma-script), report (koma-script), and book (koma-script)
13946 \end_layout
13947
13948 \begin_layout Standard
13949 The document classes 
13950 \emph on
13951 article (koma-script)
13952 \emph default
13953
13954 \emph on
13955 report (koma-script)
13956 \emph default
13957 , and 
13958 \emph on
13959 book
13960 \emph default
13961  
13962 \emph on
13963 (koma-script)
13964 \emph default
13965  are implemented in the layout files 
13966 \family typewriter
13967 scrartcl.layout
13968 \family default
13969
13970 \family typewriter
13971 scrreprt.layout
13972 \family default
13973 , and 
13974 \family typewriter
13975 scrbook.layout
13976 \family default
13977 , resp.
13978  They contain all the paragraph types of the corresponding standard document
13979  classes 
13980 \emph on
13981 article
13982 \emph default
13983
13984 \emph on
13985 report
13986 \emph default
13987 , and 
13988 \emph on
13989 book
13990 \emph default
13991 , resp., partly modified, with the exception of the \SpecialChar LyX
13992  specific 
13993 \family sans
13994 List
13995 \family default
13996 -type, which is replaced by the new 
13997 \family sans
13998 Labeling
13999 \family default
14000 -type having the same functionality.
14001  Beside the 
14002 \family sans
14003 Labeling
14004 \family default
14005 -Type there is a number of new paragraph types added.
14006  They are 
14007 \emph on
14008 not
14009 \emph default
14010  part of 
14011 \emph on
14012 letter (koma-script)
14013 \emph default
14014 .
14015 \end_layout
14016
14017 \begin_layout Itemize
14018
14019 \family sans
14020 Addpart, Addchap
14021 \family default
14022
14023 \family sans
14024 Addsec
14025 \family default
14026 : are equivalents to 
14027 \family sans
14028 Part*, Chapter*
14029 \family default
14030  and 
14031 \family sans
14032 Section*
14033 \family default
14034 , resp., additionally inserting an entry in the table of contents.
14035  
14036 \family sans
14037 Addpart
14038 \family default
14039  and 
14040 \family sans
14041 Addchap
14042 \family default
14043  are not contained in 
14044 \emph on
14045 article (koma-script)
14046 \emph default
14047 .
14048 \end_layout
14049
14050 \begin_layout Itemize
14051
14052 \family sans
14053 Addchap*
14054 \family default
14055
14056 \family sans
14057 Addsec*
14058 \family default
14059 : behave exactly as 
14060 \family sans
14061 Addchap
14062 \family default
14063  and 
14064 \family sans
14065 Addsec
14066 \family default
14067 , resp., additionally clearing running heads.
14068  
14069 \family sans
14070 Addchap*
14071 \family default
14072  is not contained in 
14073 \emph on
14074 article (koma-script)
14075 \emph default
14076 .
14077 \begin_inset Foot
14078 status collapsed
14079
14080 \begin_layout Plain Layout
14081 There is also an 
14082 \family typewriter
14083
14084 \backslash
14085 addpart*
14086 \family default
14087  command in 
14088 \emph on
14089 book (koma-script)
14090 \emph default
14091  and in 
14092 \emph on
14093 report (koma-script)
14094 \emph default
14095 , but since this is identical to 
14096 \family sans
14097 Part*
14098 \family default
14099 , is has not been implemented in \SpecialChar LyX
14100 .
14101 \end_layout
14102
14103 \end_inset
14104
14105
14106 \end_layout
14107
14108 \begin_layout Itemize
14109
14110 \family sans
14111 Minisec
14112 \family default
14113 : generates a heading directly above the following paragraph in the standard
14114  character size without affecting the structure of the document.
14115 \end_layout
14116
14117 \begin_layout Itemize
14118
14119 \family sans
14120 Captionabove
14121 \family default
14122  and 
14123 \family sans
14124 Captionbelow
14125 \family default
14126  are special captions which respect the different space settings needed
14127  for captions placed above or below an element (if you follow strict typographic
14128  rules, you might want to place table captions always above the table).
14129  You can also use the class option 
14130 \family typewriter
14131 tablecaptionsabove
14132 \family default
14133 , which will switch 
14134 \family sans
14135 caption
14136 \family default
14137  to 
14138 \family sans
14139 captionabove
14140 \family default
14141  for tables and 
14142 \family sans
14143 captionbelow
14144 \family default
14145  for figures.
14146  You need at least Koma-Script version 2.8q to use this.
14147 \end_layout
14148
14149 \begin_layout Itemize
14150
14151 \family sans
14152 Dictum
14153 \family default
14154 : can be used to set a bonmot, e.
14155 \begin_inset space \thinspace{}
14156 \end_inset
14157
14158 g.
14159 \begin_inset space \space{}
14160 \end_inset
14161
14162 at the beginning of a chapter.
14163  If you use the optional argument (
14164 \family sans
14165 Insert\SpecialChar menuseparator
14166 Dictum
14167 \begin_inset space ~
14168 \end_inset
14169
14170 Author
14171 \family default
14172 ), you can insert the dictum's author there.
14173  Dictum and author are separated by a line.
14174  You need at least Koma-Script version 2.8q to use this.
14175  
14176 \family sans
14177 Dictum
14178 \family default
14179  is not contained in 
14180 \emph on
14181 article (koma-script)
14182 \emph default
14183 .
14184 \end_layout
14185
14186 \begin_layout Standard
14187 The following types, together with the standard types 
14188 \family sans
14189 Title
14190 \family default
14191
14192 \family sans
14193 Author
14194 \family default
14195 , and 
14196 \family sans
14197 Date
14198 \family default
14199 , form the title area of the document.
14200  They must be entered ahead of the first 
14201 \begin_inset Quotes eld
14202 \end_inset
14203
14204 ordinary
14205 \begin_inset Quotes erd
14206 \end_inset
14207
14208  paragraph.
14209 \begin_inset Foot
14210 status collapsed
14211
14212 \begin_layout Plain Layout
14213 The corresponding \SpecialChar LaTeX
14214  commands must appear before the 
14215 \family typewriter
14216
14217 \backslash
14218 maketitle
14219 \family default
14220  command.
14221 \end_layout
14222
14223 \end_inset
14224
14225  When such a type is used more than once, the latter usage overwrites the
14226  former one, that means, for every type only the latest usage is valid.
14227  The order of the different types however has, like 
14228 \family sans
14229 Title
14230 \family default
14231
14232 \family sans
14233 Author
14234 \family default
14235 , and 
14236 \family sans
14237 Date
14238 \family default
14239 , no effect on the appearance of the produced document.
14240 \end_layout
14241
14242 \begin_layout Itemize
14243
14244 \family sans
14245 Subject
14246 \family default
14247 : produces a centered paragraph above the ordinary title (
14248 \family sans
14249 Title
14250 \family default
14251
14252 \family sans
14253 Author
14254 \family default
14255
14256 \family sans
14257 Date
14258 \family default
14259 ) for the subject of the document.
14260 \end_layout
14261
14262 \begin_layout Itemize
14263
14264 \family sans
14265 Publishers
14266 \family default
14267 : produces a centered paragraph below the ordinary title (
14268 \family sans
14269 Title
14270 \family default
14271
14272 \family sans
14273 Author
14274 \family default
14275
14276 \family sans
14277 Date
14278 \family default
14279 ) for the publishers' name.
14280 \end_layout
14281
14282 \begin_layout Itemize
14283
14284 \family sans
14285 Dedication
14286 \family default
14287 : in 
14288 \emph on
14289 report (koma-script)
14290 \emph default
14291  and 
14292 \emph on
14293 book (koma-script)
14294 \emph default
14295  produces a centered paragraph on its own page behind the title page, or
14296  in 
14297 \emph on
14298 article (koma-script)
14299 \emph default
14300  produces a centered paragraph below the ordinary title (
14301 \family sans
14302 Title
14303 \family default
14304
14305 \family sans
14306 Author
14307 \family default
14308
14309 \family sans
14310 Date
14311 \family default
14312
14313 \family sans
14314 Publishers
14315 \family default
14316 ) for a dedication.
14317 \end_layout
14318
14319 \begin_layout Itemize
14320
14321 \family sans
14322 Titlehead
14323 \family default
14324 : produces a left aligned paragraph above the ordinary title (
14325 \family sans
14326 Title
14327 \family default
14328
14329 \family sans
14330 Author
14331 \family default
14332
14333 \family sans
14334 Date
14335 \family default
14336
14337 \family sans
14338 Subject
14339 \family default
14340 ) for a document`s head.
14341 \end_layout
14342
14343 \begin_layout Itemize
14344
14345 \family sans
14346 Uppertitleback
14347 \family default
14348 : produces in a double-sided print in 
14349 \emph on
14350 report (koma-script)
14351 \emph default
14352  and 
14353 \emph on
14354 book (koma-script)
14355 \emph default
14356  a left-aligned paragraph at the top of the title page`s back or has no
14357  effect in a single-sided print or in 
14358 \emph on
14359 article (koma-script)
14360 \emph default
14361 .
14362 \end_layout
14363
14364 \begin_layout Itemize
14365
14366 \family sans
14367 Lowertitleback
14368 \family default
14369 : produces in a double-sided print in 
14370 \emph on
14371 report (koma-script)
14372 \emph default
14373  and 
14374 \emph on
14375 book (koma-script)
14376 \emph default
14377  a left-aligned paragraph at the bottom of the title page`s back or has
14378  no effect in a single-sided print or in 
14379 \emph on
14380 article (koma-script)
14381 \emph default
14382 .
14383 \end_layout
14384
14385 \begin_layout Itemize
14386
14387 \family sans
14388 Extratitle
14389 \family default
14390 : produces a special 
14391 \begin_inset Quotes eld
14392 \end_inset
14393
14394 dirty
14395 \begin_inset Quotes erd
14396 \end_inset
14397
14398  page ahead of the actual document containing a paragraph without special
14399  formatting.
14400 \end_layout
14401
14402 \begin_layout Standard
14403 The layout files for the document classes 
14404 \emph on
14405 article (koma-script)
14406 \emph default
14407
14408 \emph on
14409 report (koma-script)
14410 \emph default
14411 , and 
14412 \emph on
14413 book (koma-script)
14414 \emph default
14415  do include the file 
14416 \family typewriter
14417 scrmacros.inc
14418 \family default
14419 .
14420  This is thought of as a place to define your own types.
14421  Copy scrmacros
14422 \family typewriter
14423 .inc
14424 \family default
14425  in your personal layout directory and edit the file!
14426 \end_layout
14427
14428 \begin_layout Subsection
14429 letter (koma-script)
14430 \end_layout
14431
14432 \begin_layout Description
14433 Note: This section discusses the obsolete 
14434 \family sans
14435 KOMA-Script-Letter (v.
14436 \begin_inset space ~
14437 \end_inset
14438
14439 1)
14440 \family default
14441 , which is not even included anymore in recent KOMA releases.
14442  Please refer to the next section for the current KOMA-Script-Letter class
14443  (v.
14444 \begin_inset space ~
14445 \end_inset
14446
14447 2)!
14448 \end_layout
14449
14450 \begin_layout Standard
14451 \noindent
14452 The document class 
14453 \emph on
14454 letter (koma-script)
14455 \emph default
14456  is implemented in the layout file 
14457 \family typewriter
14458 scrlettr.layout
14459 \family default
14460 .
14461  It contains all the paragraph types of the corresponding standard document
14462  class 
14463 \emph on
14464 letter
14465 \emph default
14466 , partly modified, with the exception of the \SpecialChar LyX
14467  specific types 
14468 \family sans
14469 \SpecialChar LyX
14470 -Code
14471 \family default
14472  and 
14473 \family sans
14474 Comment
14475 \family default
14476  and the 
14477 \family sans
14478 List
14479 \family default
14480  type, which is replaced by the new 
14481 \family sans
14482 Labeling
14483 \family default
14484  type.
14485  In addition, it contains, in contrast to the standard document class, the
14486  standard types 
14487 \family sans
14488 \SpecialChar LaTeX
14489
14490 \family default
14491
14492 \family sans
14493 Quotation
14494 \family default
14495
14496 \family sans
14497 Quote
14498 \family default
14499 , and 
14500 \family sans
14501 Verse
14502 \family default
14503 .
14504  Furthermore, there are a number of new letter specific types.
14505 \end_layout
14506
14507 \begin_layout Standard
14508 The appearance of the letter produced by this document class can be controlled
14509  by a number of \SpecialChar LaTeX
14510  commands, which you can put in the \SpecialChar LaTeX
14511  preamble.
14512 \begin_inset Foot
14513 status collapsed
14514
14515 \begin_layout Plain Layout
14516 For example, the standard appearance of the letter`s heading, consisting
14517  of name and address, is quite self-willed.
14518  An 
14519 \begin_inset Quotes eld
14520 \end_inset
14521
14522 ordinary
14523 \begin_inset Quotes erd
14524 \end_inset
14525
14526  heading is produced by the following \SpecialChar LaTeX
14527  commands in the preamble:
14528 \end_layout
14529
14530 \begin_layout LyX-Code
14531
14532 \backslash
14533 firsthead{
14534 \backslash
14535 parbox[b]{
14536 \backslash
14537 textwidth}
14538 \end_layout
14539
14540 \begin_layout LyX-Code
14541   {
14542 \backslash
14543 ignorespaces 
14544 \backslash
14545 fromname
14546 \backslash
14547
14548 \backslash
14549  
14550 \backslash
14551 ignorespaces 
14552 \backslash
14553 fromaddress}} 
14554 \end_layout
14555
14556 \begin_layout LyX-Code
14557
14558 \backslash
14559 nexthead{
14560 \backslash
14561 parbox[b]{
14562 \backslash
14563 textwidth}
14564 \end_layout
14565
14566 \begin_layout LyX-Code
14567   {
14568 \backslash
14569 ignorespaces 
14570 \backslash
14571 fromname 
14572 \backslash
14573 hfill 
14574 \backslash
14575 ignorespaces 
14576 \backslash
14577 pagename
14578 \backslash
14579  
14580 \backslash
14581 thepage}}
14582 \end_layout
14583
14584 \end_inset
14585
14586  A detailed German description of such \SpecialChar LaTeX
14587  commands can be found in the Koma-Script
14588  documentation 
14589 \emph on
14590 scrguide
14591 \emph default
14592 .
14593  With it, the letter's author can produce his personal letter layout.
14594 \end_layout
14595
14596 \begin_layout Standard
14597 The types 
14598 \family sans
14599 Letter
14600 \family default
14601  and 
14602 \family sans
14603 Opening
14604 \family default
14605  define the beginning of the letter and must be used in every letter.
14606  To emphasize them in the \SpecialChar LyX
14607  document class, they are marked with the letter
14608  
14609 \shape italic
14610 L
14611 \shape default
14612  or 
14613 \shape italic
14614 O
14615 \shape default
14616 , resp.
14617 \begin_inset space ~
14618 \end_inset
14619
14620 in the left margin.
14621  It is possible to write any number of letters in one file.
14622  An 
14623 \family sans
14624 Opening
14625 \family default
14626  type produces a new letter using the same addressee and a 
14627 \family sans
14628 Letter
14629 \family default
14630  type produces a new addressee.
14631  The types 
14632 \family sans
14633 Closing
14634 \family default
14635
14636 \family sans
14637 PS
14638 \family default
14639
14640 \family sans
14641 CC
14642 \family default
14643 , and 
14644 \family sans
14645 Encl
14646 \family default
14647  are ordinary paragraph types and can also be used several times in one
14648  and the same letter.
14649 \end_layout
14650
14651 \begin_layout Itemize
14652
14653 \family sans
14654 Letter
14655 \family default
14656 : produces a paragraph for the addressee and implicitly defines the beginning
14657  of the letter.
14658 \end_layout
14659
14660 \begin_layout Itemize
14661
14662 \family sans
14663 Opening
14664 \family default
14665 : produces a paragraph for the form of address and implicitly produces a
14666  new letter.
14667 \end_layout
14668
14669 \begin_layout Itemize
14670
14671 \family sans
14672 Closing
14673 \family default
14674 : produces a paragraph for a close.
14675 \end_layout
14676
14677 \begin_layout Itemize
14678
14679 \family sans
14680 PS
14681 \family default
14682 : produces a paragraph for a postscript.
14683 \end_layout
14684
14685 \begin_layout Itemize
14686
14687 \family sans
14688 CC
14689 \family default
14690 : produces a paragraph for a distribution list.
14691 \end_layout
14692
14693 \begin_layout Itemize
14694
14695 \family sans
14696 Encl
14697 \family default
14698 : produces a paragraph for enclosures.
14699 \end_layout
14700
14701 \begin_layout Standard
14702 The types 
14703 \family sans
14704 Name
14705 \family default
14706
14707 \family sans
14708 Signature
14709 \family default
14710
14711 \family sans
14712 Address
14713 \family default
14714
14715 \family sans
14716 Telephone
14717 \family default
14718
14719 \family sans
14720 Place
14721 \family default
14722
14723 \family sans
14724 Backaddress
14725 \family default
14726
14727 \family sans
14728 Specialmail
14729 \family default
14730
14731 \family sans
14732 Location
14733 \family default
14734
14735 \family sans
14736 Title
14737 \family default
14738 , and 
14739 \family sans
14740 Subject
14741 \family default
14742  are input types provided with a label to enter information, which will
14743  be processed by the document class.
14744 \begin_inset Foot
14745 status collapsed
14746
14747 \begin_layout Plain Layout
14748 It could be seen as a matter of inconsequence, that the types 
14749 \family sans
14750 Letter
14751 \family default
14752  and 
14753 \family sans
14754 Opening
14755 \family default
14756  described above are not such input types as well.
14757  Because of the special meaning of those types, however, I have implemented
14758  them as ordinary paragraph types with a one letter mark in the left margin.
14759  Moreover, it would affect my feeling of symmetry, if the 
14760 \family sans
14761 Opening
14762 \family default
14763  type and the 
14764 \family sans
14765 Closing
14766 \family default
14767  type had such a serious different appearance.
14768 \end_layout
14769
14770 \end_inset
14771
14772  The types must be used ahead of the corresponding 
14773 \family sans
14774 Opening
14775 \family default
14776  type.
14777 \end_layout
14778
14779 \begin_layout Standard
14780 An implementation of these types in a WYSIWYG fashion does not seem to make
14781  sense, because the real appearance of the produced letter does not only
14782  depend on the usage of the particular type, but also on other factors.
14783  For example, a signature entered in the 
14784 \family sans
14785 Signature
14786 \family default
14787  type will in the standard behavior appear in the produced letter only,
14788  when in the same letter also a 
14789 \family sans
14790 Closing
14791 \family default
14792  type is used.
14793  The entered value of the 
14794 \family sans
14795 Telephone
14796 \family default
14797  type will in the standard behavior not appear in the produced letter at
14798  all.
14799  The possibility to design the letter`s heading freely is already indicated
14800  in a footnote above.
14801 \end_layout
14802
14803 \begin_layout Standard
14804 The input types can also be used as empty paragraphs.
14805  This makes sense e.
14806 \begin_inset space \thinspace{}
14807 \end_inset
14808
14809 g.
14810 \begin_inset space \space{}
14811 \end_inset
14812
14813 for the 
14814 \family sans
14815 Signature
14816 \family default
14817  type.
14818  If the 
14819 \family sans
14820 Signature
14821 \family default
14822  type is not used at all, in the standard behavior the value of the 
14823 \family sans
14824 Name
14825 \family default
14826  type is used as signature, whereas if an empty 
14827 \family sans
14828 Signature
14829 \family default
14830  type is used, no signature value is defined.
14831 \end_layout
14832
14833 \begin_layout Standard
14834 By using the input types it is possible to write a letter template, containing
14835  filled input types with your personal dates (name, address, etc.) and empty
14836  input types for other dates you want to enter.
14837 \end_layout
14838
14839 \begin_layout Itemize
14840
14841 \family sans
14842 Name
14843 \family default
14844 : sender's name, in the standard behavior appears as a centered paragraph
14845  in small caps in the letter`s heading.
14846 \end_layout
14847
14848 \begin_layout Itemize
14849
14850 \family sans
14851 Signature
14852 \family default
14853 : sender's signature, in the standard behavior appears below the 
14854 \family sans
14855 Closing
14856 \family default
14857  type.
14858  If no 
14859 \family sans
14860 Signature
14861 \family default
14862  type is used, the value of the 
14863 \family sans
14864 Name
14865 \family default
14866  type appears instead.
14867 \end_layout
14868
14869 \begin_layout Itemize
14870
14871 \family sans
14872 Address
14873 \family default
14874 : sender's address, in the standard behavior appears in a centered paragraph
14875  in the letter`s heading below the sender's name.
14876 \end_layout
14877
14878 \begin_layout Itemize
14879
14880 \family sans
14881 Telephone
14882 \family default
14883 : sender's telephone number, in the standard behavior only sets the \SpecialChar LaTeX
14884  variable
14885  
14886 \family typewriter
14887
14888 \backslash
14889 telephonenum
14890 \family default
14891 .
14892 \end_layout
14893
14894 \begin_layout Itemize
14895
14896 \family sans
14897 Place
14898 \family default
14899 : place of the letter`s making.
14900 \end_layout
14901
14902 \begin_layout Itemize
14903
14904 \family sans
14905 Date
14906 \family default
14907 : date of the letter`s making.
14908  
14909 \family sans
14910 Place
14911 \family default
14912  and 
14913 \family sans
14914 Date
14915 \family default
14916 , in the standard behavior, produce the place and the date in a right-aligned
14917  line below the addressee's field.
14918  If an empty 
14919 \family sans
14920 Date
14921 \family default
14922  type is used, neither place nor date appear, independent of the value of
14923  the 
14924 \family sans
14925 Place
14926 \family default
14927  type.
14928  If no 
14929 \family sans
14930 Date
14931 \family default
14932  type is used, the date of the letter `s production is used.
14933 \end_layout
14934
14935 \begin_layout Itemize
14936
14937 \family sans
14938 Backaddress
14939 \family default
14940 : sender`s back address, in the standard behavior appears above the addressee's
14941  field in a small sans serif font.
14942 \end_layout
14943
14944 \begin_layout Itemize
14945
14946 \family sans
14947 Specialmail
14948 \family default
14949 : special mail information, in the standard behavior appears underlined
14950  above the addressee's field below the back address.
14951 \end_layout
14952
14953 \begin_layout Itemize
14954
14955 \family sans
14956 Location
14957 \family default
14958 : additional information, in the standard behavior appears on right side
14959  below the addressee`s field.
14960 \end_layout
14961
14962 \begin_layout Itemize
14963
14964 \family sans
14965 Title
14966 \family default
14967 : the letter's title, in the standard behavior appears in a big, bold, sans
14968  serif font above the subject.
14969 \end_layout
14970
14971 \begin_layout Itemize
14972
14973 \family sans
14974 Subject
14975 \family default
14976 : the letter's subject, in the standard behavior appears in a bold font
14977  above the 
14978 \family sans
14979 Opening
14980 \family default
14981  paragraph.
14982 \end_layout
14983
14984 \begin_layout Standard
14985 The types 
14986 \family sans
14987 Yourref
14988 \family default
14989
14990 \family sans
14991 Yourmail
14992 \family default
14993
14994 \family sans
14995 Myref
14996 \family default
14997
14998 \family sans
14999 Customer
15000 \family default
15001 , and 
15002 \family sans
15003 Invoice
15004 \family default
15005  produce a business letter like line above the 
15006 \family sans
15007 Title
15008 \family default
15009  line containing the fields 
15010 \begin_inset Quotes eld
15011 \end_inset
15012
15013 Your ref.
15014 \begin_inset Quotes erd
15015 \end_inset
15016
15017
15018 \begin_inset Quotes eld
15019 \end_inset
15020
15021 Your letter of
15022 \begin_inset Quotes erd
15023 \end_inset
15024
15025
15026 \begin_inset Quotes eld
15027 \end_inset
15028
15029 Our ref.
15030 \begin_inset Quotes erd
15031 \end_inset
15032
15033
15034 \begin_inset Quotes eld
15035 \end_inset
15036
15037 Customer no.
15038 \begin_inset Quotes erd
15039 \end_inset
15040
15041
15042 \begin_inset Quotes eld
15043 \end_inset
15044
15045 Invoice no.
15046 \begin_inset Quotes erd
15047 \end_inset
15048
15049 , and 
15050 \begin_inset Quotes eld
15051 \end_inset
15052
15053 Date
15054 \begin_inset Quotes erd
15055 \end_inset
15056
15057 .
15058  For the date field, the value of the 
15059 \family sans
15060 Date
15061 \family default
15062  type is used.
15063  If one of these 
15064 \begin_inset Quotes eld
15065 \end_inset
15066
15067 business letter types
15068 \begin_inset Quotes erd
15069 \end_inset
15070
15071  is used, the value of the 
15072 \family sans
15073 Place
15074 \family default
15075  type however does not appear, but only the \SpecialChar LaTeX
15076  variable 
15077 \family typewriter
15078
15079 \backslash
15080 fromplace
15081 \family default
15082  is set.
15083  The ordinary output of place and date in a right-aligned line below the
15084  addressee`s field is suppressed.
15085  The types are implemented as input types provided with a label and must
15086  be used ahead of the corresponding 
15087 \family sans
15088 Opening
15089 \family default
15090  type.
15091 \end_layout
15092
15093 \begin_layout Itemize
15094
15095 \family sans
15096 Yourref
15097 \family default
15098 : Your ref.
15099 \end_layout
15100
15101 \begin_layout Itemize
15102
15103 \family sans
15104 Yourmail
15105 \family default
15106 : Your letter of.
15107 \end_layout
15108
15109 \begin_layout Itemize
15110
15111 \family sans
15112 Myref
15113 \family default
15114 : Our ref.
15115 \end_layout
15116
15117 \begin_layout Itemize
15118
15119 \family sans
15120 Customer
15121 \family default
15122 : Customer no.
15123 \end_layout
15124
15125 \begin_layout Itemize
15126
15127 \family sans
15128 Invoice
15129 \family default
15130 : Invoice no.
15131 \end_layout
15132
15133 \begin_layout Subsection
15134 The new letter class: letter (koma-script v.2)
15135 \end_layout
15136
15137 \begin_layout Standard
15138 by 
15139 \noun on
15140 Jürgen Spitzmüller
15141 \end_layout
15142
15143 \begin_layout Standard
15144 \begin_inset VSpace medskip
15145 \end_inset
15146
15147
15148 \end_layout
15149
15150 \begin_layout Standard
15151 \noindent
15152 Koma-Script version 2.8 has introduced a new letter class 
15153 \family typewriter
15154 scrlttr2
15155 \family default
15156  which supersedes the now unsupported 
15157 \family typewriter
15158 scrlettr
15159 \family default
15160 .
15161  It has â€” on the \SpecialChar LaTeX
15162  side â€” a completely new interface and is not compatible
15163  with the old class.
15164  Therefore, \SpecialChar LyX
15165  supports both, though it is recommended you use the new class.
15166 \end_layout
15167
15168 \begin_layout Standard
15169 This class covers the same functionality as 
15170 \emph on
15171 letter (koma-script),
15172 \emph default
15173  and a few more.
15174  The basic items are 
15175 \family sans
15176 Address
15177 \family default
15178  (receiver's address, same as 
15179 \family sans
15180 Letter
15181 \family default
15182  in the old layout), 
15183 \family sans
15184 Opening
15185 \family default
15186 , and 
15187 \family sans
15188 Closing
15189 \family default
15190 .
15191  
15192 \family sans
15193 NextAddress
15194 \family default
15195  will start a new letter (i.
15196 \begin_inset space \thinspace{}
15197 \end_inset
15198
15199 e.
15200 \begin_inset space \space{}
15201 \end_inset
15202
15203 you can write several letters per document).
15204  New elements are sender's 
15205 \family sans
15206 E-Mail
15207 \family default
15208
15209 \family sans
15210 URL
15211 \family default
15212
15213 \family sans
15214 Fax
15215 \family default
15216
15217 \family sans
15218 Bank
15219 \family default
15220  and the possibility to use a 
15221 \family sans
15222 Logo
15223 \family default
15224  (via 
15225 \family sans
15226 Insert\SpecialChar menuseparator
15227 Graphics
15228 \family default
15229 ) in the header.
15230 \end_layout
15231
15232 \begin_layout Standard
15233 The biggest improvement is, though, that the letter's layout is configurable
15234  to meet almost any needs.
15235  This can be done via the preamble or with a special style file (Letter
15236  Class Option, extension 
15237 \family typewriter
15238 *.lco
15239 \family default
15240 ), that will be read in as a class option.
15241 \begin_inset Foot
15242 status collapsed
15243
15244 \begin_layout Plain Layout
15245 The KOMA package comes with some default 
15246 \family typewriter
15247 *.lco
15248 \family default
15249  files.
15250  There is, for instance, a 
15251 \family typewriter
15252 DIN.lco
15253 \family default
15254  file that follows german typesetting rules, or a 
15255 \family typewriter
15256 KOMAold.lco
15257 \family default
15258  that provides the default layout of the old 
15259 \family typewriter
15260 scrlettr
15261 \family default
15262  class.
15263  The latter can be loaded with the class option 
15264 \family typewriter
15265 KOMAold
15266 \family default
15267 , inserted via the 
15268 \family sans
15269 Layout\SpecialChar menuseparator
15270 Document\SpecialChar menuseparator
15271 Extra Options
15272 \family default
15273  field.
15274 \end_layout
15275
15276 \end_inset
15277
15278  Have a look at the 
15279 \emph on
15280 koma-letter2
15281 \emph default
15282  template that is included in \SpecialChar LyX
15283  for examples.
15284  A detailed description is to be found in the Koma-Script documentation
15285  (
15286 \emph on
15287 scrguide
15288 \emph default
15289 ).
15290 \end_layout
15291
15292 \begin_layout Subsection
15293 Problems
15294 \end_layout
15295
15296 \begin_layout Standard
15297 Visualizing the Koma-Script document classes in \SpecialChar LyX
15298 , the \SpecialChar LyX
15299  internals cause some
15300  problems.
15301 \end_layout
15302
15303 \begin_layout Itemize
15304 The chapter number of a 
15305 \family sans
15306 Chapter
15307 \family default
15308  type appears on a line of its own above the chapter heading instead of
15309  appearing in the same line ahead of it.
15310  The cause for that is the \SpecialChar LyX
15311  internal behavior for the labeltype 
15312 \family sans
15313 Counter_Chapter
15314 \family default
15315  in the layout file.
15316 \end_layout
15317
15318 \begin_layout Itemize
15319 The headings of the types 
15320 \family sans
15321 Addchap
15322 \family default
15323  and 
15324 \family sans
15325 Addsec
15326 \family default
15327  are only put in the 
15328 \begin_inset Quotes eld
15329 \end_inset
15330
15331 true
15332 \begin_inset Quotes erd
15333 \end_inset
15334
15335  \SpecialChar LaTeX
15336  table of contents, but not in the \SpecialChar LyX
15337  table of contents (
15338 \family sans
15339 Document\SpecialChar menuseparator
15340 Table
15341 \begin_inset space ~
15342 \end_inset
15343
15344 of
15345 \begin_inset space ~
15346 \end_inset
15347
15348 Contents
15349 \family default
15350 ).
15351 \end_layout
15352
15353 \begin_layout Itemize
15354 The paragraphs in a 
15355 \emph on
15356 letter
15357 \emph default
15358  document class appear in a skip separation mode, not indented.
15359  This is the standard behavior, no special \SpecialChar LaTeX
15360  commands are needed for that.
15361  But in the 
15362 \family sans
15363 Document\SpecialChar menuseparator
15364 Settings
15365 \family default
15366  dialog the corresponding radio button indicates 
15367 \family sans
15368 Indent
15369 \family default
15370 .
15371  A 
15372 \family sans
15373 Skip
15374 \family default
15375  value always has the effect that extra \SpecialChar LaTeX
15376  commands are inserted in the document
15377  to produce the gap, which is not what is wanted in this case.
15378 \end_layout
15379
15380 \begin_layout Section
15381 Memoir
15382 \end_layout
15383
15384 \begin_layout Standard
15385 By 
15386 \noun on
15387 Jürgen Spitzmüller
15388 \end_layout
15389
15390 \begin_layout Subsection
15391 Overview
15392 \end_layout
15393
15394 \begin_layout Standard
15395 Memoir is a very powerful and constantly evolving class.
15396  It has been designed with regard to fictional and non-fictional literature.
15397  Its aim is to let the user have maximum control over the typesetting of
15398  his document.
15399  Memoir is based on the standard book class, but it can also emulate the
15400  article class (see below).
15401 \end_layout
15402
15403 \begin_layout Standard
15404 Peter Wilson, the developer of Memoir, is known as the author of lots of
15405  useful packages in the \SpecialChar LaTeX
15406  world.
15407  Most of them have been merged with Memoir.
15408  Therefore, it is much easier to layout the table of contents, appendices,
15409  chapter designs and such.
15410  \SpecialChar LyX
15411 , though, does not support all of these goodies natively.
15412  Some of them might be added to forthcoming releases
15413 \begin_inset Foot
15414 status collapsed
15415
15416 \begin_layout Plain Layout
15417 You are invited to send suggestions to 
15418 \begin_inset Flex URL
15419 status collapsed
15420
15421 \begin_layout Plain Layout
15422
15423 lyx-devel@lists.lyx.org
15424 \end_layout
15425
15426 \end_inset
15427
15428 .
15429 \end_layout
15430
15431 \end_inset
15432
15433 , lots will probably never be supported, due to the limitations of \SpecialChar LyX
15434 's framework.
15435  Of course you can still use all features with the help of some native \SpecialChar LaTeX
15436
15437  commands (\SpecialChar TeX
15438  code
15439 \begin_inset Foot
15440 status collapsed
15441
15442 \begin_layout Plain Layout
15443 Cf.
15444 \begin_inset ERT
15445 status collapsed
15446
15447 \begin_layout Plain Layout
15448
15449
15450 \backslash
15451  
15452 \end_layout
15453
15454 \end_inset
15455
15456 section
15457 \begin_inset space ~
15458 \end_inset
15459
15460
15461 \begin_inset CommandInset ref
15462 LatexCommand ref
15463 reference "sec:Inserting-TeX-Code"
15464
15465 \end_inset
15466
15467  for details.
15468 \end_layout
15469
15470 \end_inset
15471
15472 ).
15473  In this section, we can only list those features that are natively supported
15474  by \SpecialChar LyX
15475 .
15476  For detailed descriptions (and for the rest of features) we recommend you
15477  have a look at the detailed manual of the Memoir class
15478 \begin_inset Foot
15479 status collapsed
15480
15481 \begin_layout Plain Layout
15482 Cf.
15483 \begin_inset ERT
15484 status collapsed
15485
15486 \begin_layout Plain Layout
15487
15488
15489 \backslash
15490  
15491 \end_layout
15492
15493 \end_inset
15494
15495
15496 \begin_inset Flex URL
15497 status collapsed
15498
15499 \begin_layout Plain Layout
15500
15501 CTAN:/macros/latex/memoir/memman.pdf
15502 \end_layout
15503
15504 \end_inset
15505
15506 .
15507 \end_layout
15508
15509 \end_inset
15510
15511 , which is not only a user guide for the class, but also both a comprehensive
15512  description on good typesetting and a superb example for good typesetting
15513  itself.
15514 \end_layout
15515
15516 \begin_layout Subsection
15517 Basic features and restrictions
15518 \end_layout
15519
15520 \begin_layout Standard
15521 Memoir supports basically all features of the standard book classes.
15522  There are, however, some differences, as follows:
15523 \end_layout
15524
15525 \begin_layout Description
15526 Font
15527 \begin_inset space ~
15528 \end_inset
15529
15530 sizes: Memoir has a broader range of font sizes: 9, 10, 11, 12, 14, 17
15531 \end_layout
15532
15533 \begin_layout Description
15534 Page
15535 \begin_inset space ~
15536 \end_inset
15537
15538 style: The fancy page style is not supported, due to a command clash between
15539  Memoir and the fancyhdr package (they both define a command with the same
15540  name, which confuses \SpecialChar LaTeX
15541 ).
15542  Instead, Memoir comes with a number of its own page styles (see 
15543 \family sans
15544 Document\SpecialChar menuseparator
15545 Settings\SpecialChar menuseparator
15546 Page
15547 \begin_inset space ~
15548 \end_inset
15549
15550 Style
15551 \family default
15552 ).
15553  If you want to use these for the chapter pages, you have to use the command
15554  
15555 \family typewriter
15556
15557 \backslash
15558 chapterstyle
15559 \family default
15560  in the main text or in preamble (e.
15561 \begin_inset space \thinspace{}
15562 \end_inset
15563
15564 g.
15565 \begin_inset space \space{}
15566 \end_inset
15567
15568
15569 \family typewriter
15570
15571 \backslash
15572 chapterstyle{companion}
15573 \family default
15574 ).
15575 \end_layout
15576
15577 \begin_layout Description
15578 Sectioning: Sectionings (chapter, section, subsection etc.) come with an
15579  optional argument in the standard classes.
15580  With this, you can specify an alternative version of the title for the
15581  table of contents and the headers (for instance, if the title is too long).
15582  In \SpecialChar LyX
15583 , you can do this via 
15584 \family sans
15585 Insert\SpecialChar menuseparator
15586 Short
15587 \begin_inset space ~
15588 \end_inset
15589
15590 Title
15591 \family default
15592  at the beginning of a chapter/section.
15593  Memoir features a second optional argument and thus separates the table
15594  of contents from the header.
15595  You can define three variants of a title with this: one for the main text,
15596  one for the table of contents, and one for the headers.
15597  \SpecialChar LyX
15598  makes these available in form of specific 
15599 \family sans
15600 Short Title
15601 \family default
15602  variants in the 
15603 \family sans
15604 Insert
15605 \family default
15606  menu.
15607 \end_layout
15608
15609 \begin_layout Description
15610 TOC/LOT/LOF: In the standard classes (and in many other classes), the table
15611  of contents, the list of figures and the list of table start a new page
15612  automatically.
15613  Memoir does not follow this route.
15614  You have to insert a page break yourself, if you want to have one.
15615 \end_layout
15616
15617 \begin_layout Description
15618 Titlepage: For some unknown reason, Memoir uses pagination on the title
15619  page (in the standard classes, title pages are 
15620 \begin_inset Quotes eld
15621 \end_inset
15622
15623 empty
15624 \begin_inset Quotes erd
15625 \end_inset
15626
15627 ).
15628  If you want an empty title page, type 
15629 \family typewriter
15630
15631 \backslash
15632 aliaspagestyle{title}{empty}
15633 \family default
15634  in the preamble.
15635 \end_layout
15636
15637 \begin_layout Description
15638 Article: With the class option 
15639 \emph on
15640 article
15641 \emph default
15642  (to be inserted in 
15643 \family sans
15644 Document\SpecialChar menuseparator
15645 Settings\SpecialChar menuseparator
15646 Class Settings\SpecialChar menuseparator
15647 Custom
15648 \begin_inset space ~
15649 \end_inset
15650
15651 Options
15652 \family default
15653 ), you can emulate article style.
15654  That is, counters (footnotes, figures, tables etc.) will not be reset on
15655  new chapters, chapters don't start a new page (but are—in contrary to 
15656 \begin_inset Quotes eld
15657 \end_inset
15658
15659 real
15660 \begin_inset Quotes erd
15661 \end_inset
15662
15663  article classes—still allowed), parts, though, use their own page, as in
15664  book.
15665 \end_layout
15666
15667 \begin_layout Description
15668 Oldfontcommands: By default, Memoir does not allow the use of the deprecated
15669  font commands, which have been used in the old \SpecialChar LaTeX
15670  version 2.09 (e.
15671 \begin_inset space \thinspace{}
15672 \end_inset
15673
15674 g.
15675 \begin_inset space \space{}
15676 \end_inset
15677
15678
15679 \family typewriter
15680
15681 \backslash
15682 rm
15683 \family default
15684
15685 \family typewriter
15686
15687 \backslash
15688 it
15689 \family default
15690 ).
15691  It produces an error and stops \SpecialChar LaTeX
15692  whenever such a command appears.
15693  The class option 
15694 \emph on
15695 oldfontcommands
15696 \emph default
15697  reallows the commands and spits out warnings instead (which does at least
15698  not stop \SpecialChar LaTeX
15699 ).
15700  Since a lot of packages and particularly Bib\SpecialChar TeX
15701  style files are still using
15702  those commands, we have decided to use this option by default.
15703 \end_layout
15704
15705 \begin_layout Subsection
15706 Extra features
15707 \end_layout
15708
15709 \begin_layout Standard
15710 We will only describe the features supported by \SpecialChar LyX
15711  (which is not much currently).
15712  Please consult the Memoir manual
15713 \begin_inset Foot
15714 status collapsed
15715
15716 \begin_layout Plain Layout
15717 Cf.
15718 \begin_inset ERT
15719 status collapsed
15720
15721 \begin_layout Plain Layout
15722
15723
15724 \backslash
15725  
15726 \end_layout
15727
15728 \end_inset
15729
15730
15731 \begin_inset Flex URL
15732 status collapsed
15733
15734 \begin_layout Plain Layout
15735
15736 CTAN:/macros/latex/memoir/memman.pdf
15737 \end_layout
15738
15739 \end_inset
15740
15741 .
15742 \end_layout
15743
15744 \end_inset
15745
15746  for details.
15747 \end_layout
15748
15749 \begin_layout Description
15750 Abstract: You may wonder why an abstract is an extra feature.
15751  Well, it is in book class.
15752  Usually books don't have abstracts.
15753  Memoir, however, has.
15754  You can use it wherever and how often you like.
15755 \end_layout
15756
15757 \begin_layout Description
15758 Chapterprecis: You may know this older typesetting style: The contents of
15759  a chapter are summarized below the title and also in the table of contents
15760  (e.
15761 \begin_inset space \thinspace{}
15762 \end_inset
15763
15764 g.
15765 \begin_inset space \space{}
15766 \end_inset
15767
15768
15769 \emph on
15770 Our hero arrives in Troia; he loses some friends; he finds others
15771 \emph default
15772 ).
15773  Chapterprecis does exactly this.
15774  It is therefore only sensible below a chapter.
15775 \end_layout
15776
15777 \begin_layout Description
15778 Epigraph: An epigraph is a smart slogan or motto at the beginning of a chapter.
15779  The epigraph environment provides an elegant way of typesetting such a
15780  motto.
15781  The motto itself (text) and its (optional) author (source) are divided
15782  by a short line.
15783  The author (source) can be inserted via 
15784 \family sans
15785 Insert\SpecialChar menuseparator
15786 Epigraph Source
15787 \family default
15788 \emph on
15789 .
15790 \end_layout
15791
15792 \begin_layout Description
15793 Poemtitle: Memoir has lots of possibilities to typeset poetry (up to very
15794  complex figurative poems).
15795  \SpecialChar LyX
15796  can only support a few of them.
15797  One is poemtitle, which is a centered title for poems, which will also
15798  be added to the table of contents (verse is the standard environment for
15799  poems.
15800  Memoir has some enhanced versions of verse, but you need to use \SpecialChar TeX
15801  code,
15802  because they have to be nested inside regular verse environments, which
15803  is not possible with \SpecialChar LyX
15804 ).
15805 \end_layout
15806
15807 \begin_layout Description
15808 Poemtitle*: Same as poemtitle, but it adds no entry to the table of contents.
15809 \end_layout
15810
15811 \begin_layout Section
15812 Article (mwart), book (mwbk) and report (mwrep)
15813 \begin_inset Argument status
15814 status collapsed
15815
15816 \begin_layout Plain Layout
15817 The 
15818 \family typewriter
15819 mw
15820 \family default
15821  Classes
15822 \end_layout
15823
15824 \end_inset
15825
15826
15827 \end_layout
15828
15829 \begin_layout Standard
15830 by 
15831 \noun on
15832 Tomasz Luczak
15833 \end_layout
15834
15835 \begin_layout Standard
15836 The \SpecialChar LyX
15837  document classes 
15838 \emph on
15839 article (mwart)
15840 \emph default
15841
15842 \emph on
15843 report (mwrep)
15844 \emph default
15845  and 
15846 \emph on
15847 book
15848 \emph default
15849  
15850 \emph on
15851 (mwbk)
15852 \emph default
15853  correspond to the \SpecialChar LaTeX
15854  document classes 
15855 \family typewriter
15856 mwart.cls
15857 \family default
15858
15859 \family typewriter
15860 mwrep.cls
15861 \family default
15862  and 
15863 \family typewriter
15864 mwbk.cls
15865 \family default
15866 , resp.
15867  They are replacements for the standard document classes 
15868 \family typewriter
15869 article.cls
15870 \family default
15871
15872 \family typewriter
15873 report.cls
15874 \family default
15875  and 
15876 \family typewriter
15877 book.cls
15878 \family default
15879 , resp., and fit better to Polish typography conventions in a number of points.
15880  
15881 \end_layout
15882
15883 \begin_layout Standard
15884 Basic differences:
15885 \end_layout
15886
15887 \begin_layout Itemize
15888 Unnumbered titles (with star, e.
15889 \begin_inset space \thinspace{}
15890 \end_inset
15891
15892 g.
15893 \begin_inset space \space{}
15894 \end_inset
15895
15896
15897 \family sans
15898 Section*
15899 \family default
15900 ) are added into table of contents,
15901 \end_layout
15902
15903 \begin_layout Itemize
15904 Additional page styles:
15905 \end_layout
15906
15907 \begin_deeper
15908 \begin_layout Description
15909 uheadings header with separated lines,
15910 \end_layout
15911
15912 \begin_layout Description
15913 myheadings custom header, contents headers via commands: 
15914 \family typewriter
15915
15916 \backslash
15917 markright
15918 \family default
15919  and 
15920 \family typewriter
15921
15922 \backslash
15923 markboth
15924 \family default
15925 ,
15926 \end_layout
15927
15928 \begin_layout Description
15929 myuheadings custom header with separated lines,
15930 \end_layout
15931
15932 \begin_layout Description
15933 outer page number is placed on outer side of page
15934 \end_layout
15935
15936 \end_deeper
15937 \begin_layout Itemize
15938 Options 
15939 \end_layout
15940
15941 \begin_deeper
15942 \begin_layout Description
15943 rmheadings serif titles â€” default,
15944 \end_layout
15945
15946 \begin_layout Description
15947 sfheadings sansserif titles,
15948 \end_layout
15949
15950 \begin_layout Description
15951 authortitle on title page first placed is author next title â€” default,
15952 \end_layout
15953
15954 \begin_layout Description
15955 titleauthor on title page first placed is title next author,
15956 \end_layout
15957
15958 \begin_layout Description
15959 withmarginpar reserve place on page for margins.
15960 \end_layout
15961
15962 \end_deeper
15963 \begin_layout Section
15964 Paper
15965 \end_layout
15966
15967 \begin_layout Standard
15968 The document class 
15969 \family sans
15970 paper
15971 \family default
15972  provides an alternative to the standard 
15973 \family sans
15974 article
15975 \family default
15976  class.
15977  It provides similar functionality, but you might prefer this layout with
15978  sans serif sections, headings, and more.
15979 \end_layout
15980
15981 \begin_layout Section
15982 Rev\SpecialChar TeX
15983 4
15984 \end_layout
15985
15986 \begin_layout Standard
15987 by 
15988 \noun on
15989 Amir Karger
15990 \end_layout
15991
15992 \begin_layout Standard
15993 \begin_inset VSpace bigskip
15994 \end_inset
15995
15996
15997 \end_layout
15998
15999 \begin_layout Standard
16000 \noindent
16001 The 
16002 \family sans
16003 Revtex
16004 \begin_inset space ~
16005 \end_inset
16006
16007 4
16008 \family default
16009  textclass works with the American Physical Sociey's Rev\SpecialChar TeX
16010  4.0 (the 
16011 \begin_inset Formula $\beta$
16012 \end_inset
16013
16014  release of May, 1999) class.
16015 \end_layout
16016
16017 \begin_layout Standard
16018 \SpecialChar LyX
16019  has a 
16020 \family sans
16021 Revtex
16022 \family default
16023  textclass, which works with Rev\SpecialChar TeX
16024  3.1.
16025  However, v3.1 is basically obsolete, as it works with \SpecialChar LaTeX
16026  2.09.
16027  That means that it doesn't interact very well with \SpecialChar LyX
16028 , which requires \SpecialChar LaTeX2e
16029 , although
16030  it has been kludged to work.
16031  Since Rev\SpecialChar TeX
16032  4.0 has been designed to work much more cleanly with \SpecialChar LaTeX2e
16033 , \SpecialChar LyX
16034  with the
16035  
16036 \family sans
16037 Rev\SpecialChar TeX
16038
16039 \begin_inset space ~
16040 \end_inset
16041
16042 4
16043 \family default
16044  textclass should also be pretty easy to use.
16045 \end_layout
16046
16047 \begin_layout Standard
16048 These documents are supposed to be used in 
16049 \emph on
16050 addition
16051 \emph default
16052  to the Rev\SpecialChar TeX
16053  4.0 documents, so we don't describe any of the special Rev\SpecialChar TeX
16054  macros,
16055  and assume you'll know what to put in the preamble if necessary.
16056 \end_layout
16057
16058 \begin_layout Subsection
16059 Installation
16060 \end_layout
16061
16062 \begin_layout Standard
16063 All you need to do is install Rev\SpecialChar TeX
16064  4, as described in the package's README
16065  file.
16066  The package can be found at The Rev\SpecialChar TeX
16067  4 Web Site 
16068 \begin_inset Flex URL
16069 status collapsed
16070
16071 \begin_layout Plain Layout
16072
16073 http://publish.aps.org/revtex4/
16074 \end_layout
16075
16076 \end_inset
16077
16078 .
16079  Install it somewhere that \SpecialChar LaTeX
16080  can see it.
16081  Test it by trying to \SpecialChar LaTeX
16082  a short Rev\SpecialChar TeX
16083  4 document in some random directory (i.
16084 \begin_inset space \thinspace{}
16085 \end_inset
16086
16087 e.
16088 \begin_inset space \space{}
16089 \end_inset
16090
16091 not the directory where you installed the class file.) Then, if you reconfigure
16092  \SpecialChar LyX
16093 , it will find the class file and let you use the Rev\SpecialChar TeX
16094 4 textclass.
16095 \end_layout
16096
16097 \begin_layout Standard
16098 Probably the easiest way to get started is either to import a Rev\SpecialChar TeX
16099  4 document
16100  using 
16101 \family typewriter
16102 tex2lyx
16103 \family default
16104 , or to use the 
16105 \family sans
16106 Revtex
16107 \begin_inset space ~
16108 \end_inset
16109
16110 4
16111 \family default
16112  template, found in the templates directory.
16113 \end_layout
16114
16115 \begin_layout Subsection
16116 Preamble Matter
16117 \end_layout
16118
16119 \begin_layout Standard
16120 Optional arguments to 
16121 \family typewriter
16122
16123 \backslash
16124 documentclass
16125 \family default
16126 , like 
16127 \begin_inset Quotes eld
16128 \end_inset
16129
16130 preprint
16131 \begin_inset Quotes erd
16132 \end_inset
16133
16134  and 
16135 \begin_inset Quotes eld
16136 \end_inset
16137
16138 aps
16139 \begin_inset Quotes erd
16140 \end_inset
16141
16142 , go in the 
16143 \family sans
16144 Extra
16145 \begin_inset space ~
16146 \end_inset
16147
16148 Options
16149 \family default
16150  field in the 
16151 \family sans
16152 Document
16153 \begin_inset space ~
16154 \end_inset
16155
16156 Layout
16157 \family default
16158  dialog, as usual.
16159  Remember that in Rev\SpecialChar TeX
16160 , at least one optional argument is required! 
16161 \end_layout
16162
16163 \begin_layout Standard
16164 Other preamble matter, like 
16165 \family typewriter
16166
16167 \backslash
16168 draft
16169 \family default
16170  etc.
16171 \begin_inset space ~
16172 \end_inset
16173
16174 goes in the 
16175 \family sans
16176 \SpecialChar LaTeX
16177
16178 \begin_inset space ~
16179 \end_inset
16180
16181 Preamble
16182 \family default
16183  dialog, also as usual.
16184 \end_layout
16185
16186 \begin_layout Subsection
16187 Layouts
16188 \end_layout
16189
16190 \begin_layout Standard
16191 The layouts basically correspond to the commands in Rev\SpecialChar TeX
16192 4.0.
16193  For example, the Email layout corresponds to 
16194 \family typewriter
16195
16196 \backslash
16197 email{}
16198 \family default
16199 .
16200  Note that (at least as of Rev\SpecialChar TeX
16201  4.0 Beta), the 
16202 \family sans
16203 Address
16204 \family default
16205  and 
16206 \family sans
16207 Affiliation
16208 \family default
16209  layouts are exactly equivalent, so you shouldn't need to use both.
16210 \begin_inset Foot
16211 status collapsed
16212
16213 \begin_layout Plain Layout
16214 In case you're curious, both were included so that 
16215 \family typewriter
16216 tex2lyx
16217 \family default
16218  would be able to translate both 
16219 \family typewriter
16220
16221 \backslash
16222 address
16223 \family default
16224  and 
16225 \family typewriter
16226
16227 \backslash
16228 affiliation
16229 \family default
16230 .
16231 \end_layout
16232
16233 \end_inset
16234
16235
16236 \end_layout
16237
16238 \begin_layout Subsection
16239 Important Notes
16240 \end_layout
16241
16242 \begin_layout Standard
16243 There are a couple of important unique aspects of Rev\SpecialChar TeX
16244  4 which might cause
16245  bugs that will be even more confusing in \SpecialChar LyX
16246 .
16247 \end_layout
16248
16249 \begin_layout Standard
16250 In Rev\SpecialChar TeX
16251 , the 
16252 \family typewriter
16253
16254 \backslash
16255 thanks
16256 \family default
16257  command goes 
16258 \emph on
16259 outside
16260 \emph default
16261  the 
16262 \family typewriter
16263
16264 \backslash
16265 author
16266 \family default
16267  command.
16268  The \SpecialChar LyX
16269  equivalent is that there is a separate Thanks layout.
16270  Do 
16271 \emph on
16272 not
16273 \emph default
16274  write footnotes in the 
16275 \family sans
16276 Author
16277 \family default
16278  layout, or weird things may happen.
16279  See the Rev\SpecialChar TeX
16280  4 documentation for more details.
16281 \end_layout
16282
16283 \begin_layout Standard
16284 Also, the 
16285 \family sans
16286 Author
16287 \begin_inset space ~
16288 \end_inset
16289
16290 Email
16291 \family default
16292
16293 \family sans
16294 Author
16295 \begin_inset space ~
16296 \end_inset
16297
16298 URL
16299 \family default
16300 , and 
16301 \family sans
16302 Thanks
16303 \family default
16304  layouts must be placed 
16305 \emph on
16306 in between
16307 \emph default
16308  the 
16309 \family sans
16310 Author
16311 \family default
16312  layout and the corresponding 
16313 \family sans
16314 Address
16315 \family default
16316  (or equivalent 
16317 \family sans
16318 Affiliation
16319 \family default
16320 ) layout.
16321  If you put the 
16322 \family sans
16323 Thanks
16324 \family default
16325  after the 
16326 \family sans
16327 Address
16328 \family default
16329 , the \SpecialChar LaTeX
16330  won't compile.
16331 \end_layout
16332
16333 \begin_layout Section
16334 Springer Journals (
16335 \family sans
16336 svjour
16337 \family default
16338 )
16339 \end_layout
16340
16341 \begin_layout Standard
16342 by 
16343 \noun on
16344 Martin Vermeer
16345 \end_layout
16346
16347 \begin_layout Subsection
16348 Description
16349 \end_layout
16350
16351 \begin_layout Standard
16352 These are the layout files for some of the journal formats used by Springer
16353  Verlag and listed on 
16354 \begin_inset Flex URL
16355 status collapsed
16356
16357 \begin_layout Plain Layout
16358
16359 http://www.springer.de/author/tex/help-journals.html
16360 \end_layout
16361
16362 \end_inset
16363
16364 , where you should also go to fetch the class files (yes, these are \SpecialChar LaTeX2e
16365  now!).
16366  It is a modular system: the things common to all journals are implemented
16367  in 
16368 \family typewriter
16369 svjour.inc
16370 \family default
16371 , which journal-specific layout files (such as, e.
16372 \begin_inset space \thinspace{}
16373 \end_inset
16374
16375 g.
16376 \begin_inset space \space{}
16377 \end_inset
16378
16379
16380 \family typewriter
16381 svjog.layout
16382 \family default
16383  for Journal of Geodesy) can include.
16384 \end_layout
16385
16386 \begin_layout Standard
16387 This means that implementing support for any other Springer journal on this
16388  list is as simple as writing your own 
16389 \family typewriter
16390 sv
16391 \family default
16392 <myjournal>
16393 \family typewriter
16394 .layout
16395 \family default
16396  file following the outline given in 
16397 \family typewriter
16398 svjog.layout
16399 \family default
16400 .
16401  
16402 \end_layout
16403
16404 \begin_layout Standard
16405 It is reasonably well tested only for the Journal of Geodesy.
16406  
16407 \family typewriter
16408 svjour
16409 \family default
16410  and 
16411 \family typewriter
16412 svjog
16413 \family default
16414  come with the standard \SpecialChar LyX
16415  distribution.
16416  Install the relevant class file (downloaded from Springer) in a proper
16417  directory, reconfigure \SpecialChar LaTeX
16418  (in the te\SpecialChar TeX
16419  case by running 
16420 \family typewriter
16421 texhash
16422 \family default
16423 , as root if necessary â€” doesn't \SpecialChar LyX
16424  take care of this?), reconfigure \SpecialChar LyX
16425  and
16426  it should work.
16427 \end_layout
16428
16429 \begin_layout Subsection
16430 New styles
16431 \end_layout
16432
16433 \begin_layout Standard
16434 A large number of theorem-like styles â€” 
16435 \family sans
16436 Claim, Conjecture,
16437 \family default
16438  
16439 \family sans
16440 \SpecialChar ldots
16441 Theorem
16442 \family default
16443 .
16444 \end_layout
16445
16446 \begin_layout Standard
16447
16448 \family sans
16449 Headnote, Dedication, Subtitle, Running_\SpecialChar LaTeX
16450 _Title, Author_Running, Institute,
16451  Mail, Offprints, Keywords, Acknowledgements, Acknowledgement
16452 \family default
16453 .
16454  See the Springer class file documentation for details.
16455 \end_layout
16456
16457 \begin_layout Subsection
16458 Supported journals
16459 \end_layout
16460
16461 \begin_layout Itemize
16462
16463 \emph on
16464 Journal of Geodesy
16465 \emph default
16466
16467 \family typewriter
16468 svjog.layout
16469 \family default
16470  â€” Martin Vermeer
16471 \end_layout
16472
16473 \begin_layout Itemize
16474
16475 \emph on
16476 Probability Theory and Related Fields
16477 \emph default
16478
16479 \family typewriter
16480 svprobth.layout
16481 \family default
16482  â€” Jean-Marc Lasgouttes
16483 \end_layout
16484
16485 \begin_layout Standard
16486 Add your own, it isn't so hard!
16487 \end_layout
16488
16489 \begin_layout Subsection
16490 Credits
16491 \end_layout
16492
16493 \begin_layout Standard
16494 These files are partly based on the older 
16495 \family typewriter
16496 ejour2.layout
16497 \family default
16498 , which was again based on a tinkered-with version of an old \SpecialChar LaTeX
16499  2.09 style
16500  file from Springer.
16501  All this, and the 
16502 \family typewriter
16503 ejour2
16504 \family default
16505  layout, are now defunct.
16506  Jean-Marc Lasgouttes helped out big in making me find my way around the
16507  \SpecialChar LyX
16508  layout file mechanism.
16509 \end_layout
16510
16511 \begin_layout Subsection
16512 Bugs
16513 \end_layout
16514
16515 \begin_layout Standard
16516 Probably.
16517  But probably less than in the old hacked-\SpecialChar LaTeX
16518  
16519 \family typewriter
16520 ejour2
16521 \family default
16522 .
16523 \end_layout
16524
16525 \begin_layout Section
16526 Slides [aka 
16527 \noun on
16528 Sli\SpecialChar TeX
16529
16530 \noun default
16531 ]
16532 \begin_inset CommandInset label
16533 LatexCommand label
16534 name "sec:slitex"
16535
16536 \end_inset
16537
16538
16539 \end_layout
16540
16541 \begin_layout Standard
16542 by 
16543 \noun on
16544 John Weiss
16545 \noun default
16546  
16547 \end_layout
16548
16549 \begin_layout Subsection
16550 Introduction
16551 \end_layout
16552
16553 \begin_layout Standard
16554 This section describes how to use \SpecialChar LyX
16555  to make slides for overhead projectors.
16556  There are two document classes that can do this: the default slides class
16557  and the 
16558 \family sans
16559 Foil\SpecialChar TeX
16560
16561 \family default
16562  slides class.
16563  This section documents the former.
16564 \end_layout
16565
16566 \begin_layout Standard
16567 I'm going to say this again, nice and clear, so that there's no misunderstanding
16568 :
16569 \end_layout
16570
16571 \begin_layout Standard
16572 \begin_inset VSpace bigskip
16573 \end_inset
16574
16575
16576 \end_layout
16577
16578 \begin_layout Standard
16579 \align center
16580
16581 \size large
16582 This section documents the class 
16583 \begin_inset Quotes eld
16584 \end_inset
16585
16586
16587 \family sans
16588 slides (default)
16589 \family default
16590
16591 \begin_inset Quotes erd
16592 \end_inset
16593
16594  
16595 \emph on
16596 only.
16597 \end_layout
16598
16599 \begin_layout Standard
16600 \begin_inset VSpace bigskip
16601 \end_inset
16602
16603
16604 \end_layout
16605
16606 \begin_layout Standard
16607 If you're looking for the documentation for 
16608 \begin_inset Quotes eld
16609 \end_inset
16610
16611
16612 \family sans
16613 slides (Foil\SpecialChar TeX
16614 )
16615 \family default
16616
16617 \begin_inset Quotes erd
16618 \end_inset
16619
16620 , check out section
16621 \begin_inset space ~
16622 \end_inset
16623
16624
16625 \begin_inset CommandInset ref
16626 LatexCommand ref
16627 reference "sec:foiltex"
16628
16629 \end_inset
16630
16631 .
16632  The 
16633 \family sans
16634 foils
16635 \family default
16636  class [
16637 \begin_inset Quotes eld
16638 \end_inset
16639
16640
16641 \family sans
16642 slides (Foil\SpecialChar TeX
16643 )
16644 \family default
16645
16646 \begin_inset Quotes erd
16647 \end_inset
16648
16649 ] is actually somewhat better than the default 
16650 \family sans
16651 slides
16652 \family default
16653  class,
16654 \begin_inset Foot
16655 status collapsed
16656
16657 \begin_layout Plain Layout
16658 \SpecialChar ldots
16659 or so I've been told repeatedly by its advocates.
16660  Having never used it, I have no idea if this claim is true or not.
16661 \end_layout
16662
16663 \end_inset
16664
16665  which this section documents.
16666 \end_layout
16667
16668 \begin_layout Standard
16669 This class is the \SpecialChar LaTeX2e
16670  improvement of the old 
16671 \noun on
16672 Sli\SpecialChar TeX
16673
16674 \noun default
16675  package.
16676  Every \SpecialChar LaTeX2e
16677  distribution includes this class [which I'll just refer to as 
16678 \begin_inset Quotes eld
16679 \end_inset
16680
16681
16682 \family sans
16683 slides
16684 \family default
16685
16686 \begin_inset Quotes erd
16687 \end_inset
16688
16689  from now on], so you're bound to have it.
16690  As I noted earlier, there are other classes, such as 
16691 \family sans
16692 foils
16693 \family default
16694 , which also produce slides for overhead projectors and do a better job
16695  at it.
16696  However, there are some things which 
16697 \family sans
16698 slides
16699 \family default
16700  can do which the others can't, such as generate overlays.
16701  Read on to learn more!
16702 \end_layout
16703
16704 \begin_layout Subsection
16705 Getting Started
16706 \begin_inset CommandInset label
16707 LatexCommand label
16708 name "sec:slidesetup"
16709
16710 \end_inset
16711
16712
16713 \end_layout
16714
16715 \begin_layout Standard
16716 Obviously, to use this document class, you need to select 
16717 \begin_inset Quotes eld
16718 \end_inset
16719
16720
16721 \family sans
16722 slides (default)
16723 \family default
16724
16725 \begin_inset Quotes erd
16726 \end_inset
16727
16728  from the class list in the 
16729 \family sans
16730 Document\SpecialChar menuseparator
16731 Settings
16732 \family default
16733  dialog.
16734  There are some other special things you should know about this class:
16735 \end_layout
16736
16737 \begin_layout Itemize
16738 Don't bother changing the options 
16739 \family sans
16740 Sides and Columns
16741 \family default
16742 .
16743  They're not supported by the 
16744 \family sans
16745 slides
16746 \family default
16747  class, anyways.
16748 \end_layout
16749
16750 \begin_layout Itemize
16751 The option 
16752 \family sans
16753 Page
16754 \begin_inset space ~
16755 \end_inset
16756
16757 style
16758 \family default
16759  behaves a bit differently for this class.
16760  The possible choices and what they do are as follows:
16761 \end_layout
16762
16763 \begin_deeper
16764 \begin_layout Description
16765
16766 \family sans
16767 plain
16768 \family default
16769  The final output contains page numbers in the lower right corner.
16770 \end_layout
16771
16772 \begin_layout Description
16773
16774 \family sans
16775 headings
16776 \family default
16777  Like 
16778 \family sans
16779 plain
16780 \family default
16781 , but also prints out any time markers you've put in.
16782  This is the default.
16783 \end_layout
16784
16785 \begin_layout Description
16786
16787 \family sans
16788 empty
16789 \family default
16790  The final output contains no page numbers, time markers, or alignment markers.
16791 \end_layout
16792
16793 \end_deeper
16794 \begin_layout Itemize
16795 The 
16796 \family sans
16797 slides
16798 \family default
16799  class has an extra option: 
16800 \family typewriter
16801 clock
16802 \family default
16803 .
16804  To use it, put 
16805 \begin_inset Quotes eld
16806 \end_inset
16807
16808
16809 \family typewriter
16810 clock
16811 \family default
16812
16813 \begin_inset Quotes erd
16814 \end_inset
16815
16816  in the extra class options.
16817 \end_layout
16818
16819 \begin_deeper
16820 \begin_layout Standard
16821 Using this options allows you to add time markers to 
16822 \family sans
16823 Note
16824 \family default
16825 s.
16826  See section
16827 \begin_inset space ~
16828 \end_inset
16829
16830
16831 \begin_inset CommandInset ref
16832 LatexCommand ref
16833 reference "sec:slideNote"
16834
16835 \end_inset
16836
16837  for more details.
16838 \end_layout
16839
16840 \end_deeper
16841 \begin_layout Standard
16842 You can also use the template file 
16843 \begin_inset Quotes eld
16844 \end_inset
16845
16846
16847 \family typewriter
16848 slides.lyx
16849 \family default
16850
16851 \begin_inset Quotes erd
16852 \end_inset
16853
16854  to automatically set up a document to use the 
16855 \family sans
16856 slides
16857 \family default
16858  class [using 
16859 \family sans
16860 File\SpecialChar menuseparator
16861 New
16862 \begin_inset space ~
16863 \end_inset
16864
16865 from
16866 \begin_inset space ~
16867 \end_inset
16868
16869 Template
16870 \family default
16871  to open your new document].
16872  The template file also contains some examples of the special paragraph
16873  environments used by this class.
16874  I'll describe those next.
16875 \end_layout
16876
16877 \begin_layout Subsection
16878 Paragraph Environments
16879 \end_layout
16880
16881 \begin_layout Subsubsection
16882 Supported Environments
16883 \end_layout
16884
16885 \begin_layout Standard
16886 The first thing you'll notice when you start up a new 
16887 \family sans
16888 slides
16889 \family default
16890  document is the font size and type: it's the equivalent of the size 
16891 \begin_inset Quotes eld
16892 \end_inset
16893
16894
16895 \family sans
16896 Largest
16897 \family default
16898
16899 \begin_inset Quotes erd
16900 \end_inset
16901
16902  in the 
16903 \family sans
16904 Sans
16905 \begin_inset space ~
16906 \end_inset
16907
16908 Serif
16909 \family default
16910  font.
16911  This is also what's used in the output.
16912  Think of this as a 
16913 \begin_inset Quotes eld
16914 \end_inset
16915
16916 visual cue
16917 \begin_inset Quotes erd
16918 \end_inset
16919
16920  to remind you that this is a slide.
16921  Your final slides will use a larger font; ergo, you'll have less space.
16922  Of course, the larger default screen font isn't WYSIWYG, only a reminder.
16923 \end_layout
16924
16925 \begin_layout Standard
16926 The next thing that becomes obvious is the changes to the paragraph environment
16927  pull-down box [at the far-left end of the toolbar].
16928  Most of the paragraph environments you're used to seeing are missing.
16929  There are also five new ones.
16930  That's because the 
16931 \family sans
16932 slides
16933 \family default
16934  class itself only supports certain paragraph environments:
16935 \end_layout
16936
16937 \begin_layout Itemize
16938
16939 \family sans
16940 Standard
16941 \end_layout
16942
16943 \begin_layout Itemize
16944
16945 \family sans
16946 Itemize
16947 \end_layout
16948
16949 \begin_layout Itemize
16950
16951 \family sans
16952 Enumerate
16953 \end_layout
16954
16955 \begin_layout Itemize
16956
16957 \family sans
16958 Description
16959 \end_layout
16960
16961 \begin_layout Itemize
16962
16963 \family sans
16964 List
16965 \end_layout
16966
16967 \begin_layout Itemize
16968
16969 \family sans
16970 Quotation
16971 \end_layout
16972
16973 \begin_layout Itemize
16974
16975 \family sans
16976 Quote
16977 \end_layout
16978
16979 \begin_layout Itemize
16980
16981 \family sans
16982 Verse
16983 \end_layout
16984
16985 \begin_layout Itemize
16986
16987 \family sans
16988 Caption
16989 \end_layout
16990
16991 \begin_layout Itemize
16992
16993 \family sans
16994 \SpecialChar LyX
16995 -Code
16996 \end_layout
16997
16998 \begin_layout Standard
16999 All of the other standard environments, including the section-heading environmen
17000 ts, aren't used in the 
17001 \family sans
17002 slides
17003 \family default
17004  class.
17005 \end_layout
17006
17007 \begin_layout Standard
17008 On the other hand, you'll notice the following new environments:
17009 \end_layout
17010
17011 \begin_layout Itemize
17012
17013 \family sans
17014 Slide
17015 \end_layout
17016
17017 \begin_layout Itemize
17018
17019 \family sans
17020 Overlay
17021 \end_layout
17022
17023 \begin_layout Itemize
17024
17025 \family sans
17026 Note
17027 \end_layout
17028
17029 \begin_layout Itemize
17030
17031 \family sans
17032 InvisibleText
17033 \end_layout
17034
17035 \begin_layout Itemize
17036
17037 \family sans
17038 VisibleText
17039 \end_layout
17040
17041 \begin_layout Standard
17042 These five are kind of quirky, due to a 
17043 \begin_inset Quotes eld
17044 \end_inset
17045
17046 feature
17047 \begin_inset Quotes erd
17048 \end_inset
17049
17050  in \SpecialChar LyX
17051 .
17052  You see, \SpecialChar LyX
17053  doesn't permit you to nest any other paragraph environment into
17054  an empty environment.
17055  Now, that's fine and dandy, but it means that you wouldn't be able to start
17056  a slide with anything except plain text.
17057  To deal with this, I've performed a little 
17058 \begin_inset Quotes eld
17059 \end_inset
17060
17061 \SpecialChar LaTeX
17062  magic.
17063 \begin_inset Quotes erd
17064 \end_inset
17065
17066  
17067 \end_layout
17068
17069 \begin_layout Subsubsection
17070 Quirks of the New Environments
17071 \begin_inset CommandInset label
17072 LatexCommand label
17073 name "sec:slideQuirk"
17074
17075 \end_inset
17076
17077
17078 \end_layout
17079
17080 \begin_layout Standard
17081 All five of the new paragraph environments are somewhat quirky due to inherent
17082  limitiations in the current version of \SpecialChar LyX
17083 .
17084  As I just mentioned, \SpecialChar LyX
17085  forbids environments that begin with another environment.
17086  To get around this, the 
17087 \family sans
17088 Slide
17089 \family default
17090  environment isn't a paragraph environment as described in the 
17091 \emph on
17092 User's Guide
17093 \emph default
17094 .
17095  
17096 \end_layout
17097
17098 \begin_layout Standard
17099 You should consider 
17100 \family sans
17101 Slide
17102 \family default
17103
17104 \family sans
17105 Overlay
17106 \family default
17107 , and 
17108 \family sans
17109 Note
17110 \family default
17111  to be 
17112 \begin_inset Quotes eld
17113 \end_inset
17114
17115 pseudo-environments.
17116 \begin_inset Quotes erd
17117 \end_inset
17118
17119  They look like a section heading or a 
17120 \begin_inset Quotes eld
17121 \end_inset
17122
17123
17124 \family sans
17125 Caption
17126 \family default
17127 ,
17128 \begin_inset Quotes erd
17129 \end_inset
17130
17131  but really begin a [and, if necessary, end the previous] paragraph environment.
17132  Likewise, treat 
17133 \family sans
17134 InvisibleText
17135 \family default
17136  and 
17137 \family sans
17138 VisibleText
17139 \family default
17140  as 
17141 \begin_inset Quotes eld
17142 \end_inset
17143
17144 pseudo-commands.
17145 \begin_inset Quotes erd
17146 \end_inset
17147
17148  These two perform some action.
17149 \end_layout
17150
17151 \begin_layout Standard
17152 A common feature of all five environments, 
17153 \family sans
17154 Slide
17155 \family default
17156
17157 \family sans
17158 Overlay
17159 \family default
17160
17161 \family sans
17162 Note
17163 \family default
17164
17165 \family sans
17166 InvisibleText
17167 \family default
17168  and 
17169 \family sans
17170 VisibleText
17171 \family default
17172 , is a rather long-ish label.
17173  The text following this label â€” ordinarily the contents of the paragraph
17174  environment â€” is utterly irrelevant for 
17175 \family sans
17176 Slide
17177 \family default
17178
17179 \family sans
17180 Overlay
17181 \family default
17182
17183 \family sans
17184 Note
17185 \family default
17186
17187 \family sans
17188 InvisibleText
17189 \family default
17190  and 
17191 \family sans
17192 VisibleText
17193 \family default
17194 .
17195  \SpecialChar LyX
17196  completely ignores it.
17197  In fact, you can leave these five environments completely empty.
17198  
17199 \end_layout
17200
17201 \begin_layout Standard
17202 While you don't 
17203 \emph on
17204 have
17205 \emph default
17206  to put any text after the rather long-ish label, you might want to.
17207  This could be a short description of the contents of the 
17208 \family sans
17209 Slide
17210 \family default
17211 , for example.
17212  In that case, enter your descriptive comment and hit 
17213 \family sans
17214 Return
17215 \family default
17216  as you normally would.
17217 \end_layout
17218
17219 \begin_layout Standard
17220 If, on the other hand, you don't want to enter any descriptive text, you'll
17221  hit another \SpecialChar LyX
17222  quirk.
17223  \SpecialChar LyX
17224 , like nature, abhors a vacuum, and will not let you start a new paragraph
17225  environment until you put something in the old one.
17226  So, do this:
17227 \end_layout
17228
17229 \begin_layout Itemize
17230 Start entering the text that will 
17231 \emph on
17232 follow
17233 \emph default
17234  the new 
17235 \family sans
17236 Slide
17237 \family default
17238
17239 \family sans
17240 Overlay
17241 \family default
17242
17243 \family sans
17244 Note
17245 \family default
17246
17247 \family sans
17248 InvisibleText
17249 \family default
17250  or 
17251 \family sans
17252 VisibleText
17253 \family default
17254 .
17255  
17256 \end_layout
17257
17258 \begin_layout Itemize
17259 Now move to the beginning of that paragraph.
17260  
17261 \end_layout
17262
17263 \begin_layout Itemize
17264 Next, hit 
17265 \family sans
17266 Return
17267 \family default
17268 .
17269  
17270 \end_layout
17271
17272 \begin_layout Itemize
17273 Finally, change this new, empty paragraph to a 
17274 \family sans
17275 Slide
17276 \family default
17277
17278 \family sans
17279 Overlay
17280 \family default
17281
17282 \family sans
17283 Note
17284 \family default
17285
17286 \family sans
17287 InvisibleText
17288 \family default
17289  or 
17290 \family sans
17291 VisibleText
17292 \family default
17293 .
17294  
17295 \end_layout
17296
17297 \begin_layout Standard
17298 Some future version of \SpecialChar LyX
17299  will, hopefully, resolve this quirkiness\SpecialChar ldots
17300
17301 \end_layout
17302
17303 \begin_layout Subsection
17304 Making a Presentation with 
17305 \family sans
17306 Slide
17307 \family default
17308
17309 \family sans
17310 Overlay
17311 \family default
17312  and 
17313 \family sans
17314 Note
17315 \end_layout
17316
17317 \begin_layout Subsubsection
17318 Using the 
17319 \family sans
17320 Slide
17321 \family default
17322  Environment
17323 \end_layout
17324
17325 \begin_layout Standard
17326 If you're expecting this section to teach you how to actually make a presentatio
17327 n, you'll be sorely disappointed.
17328  Naturally, I'll describe all of the ways the 
17329 \family sans
17330 slides
17331 \family default
17332  class can assist you in preparing the materials for a presentation.
17333  Filling in the contents, however, is up to you.
17334  [Then again, that 
17335 \emph on
17336 is
17337 \emph default
17338  the \SpecialChar LyX
17339  philosophy.]
17340 \end_layout
17341
17342 \begin_layout Standard
17343 Choosing the 
17344 \family sans
17345 Slide
17346 \family default
17347  environment [in the manner described in section
17348 \begin_inset space ~
17349 \end_inset
17350
17351
17352 \begin_inset CommandInset ref
17353 LatexCommand ref
17354 reference "sec:slideQuirk"
17355
17356 \end_inset
17357
17358 ] tells \SpecialChar LyX
17359  to begin a new slide [duh].
17360  The label for this environment/
17361 \begin_inset Quotes erd
17362 \end_inset
17363
17364 pseudo-command
17365 \begin_inset Quotes erd
17366 \end_inset
17367
17368  is an 
17369 \begin_inset Quotes eld
17370 \end_inset
17371
17372 ASCII line,
17373 \begin_inset Quotes erd
17374 \end_inset
17375
17376  in cool blue, followed by the label, 
17377 \begin_inset Quotes eld
17378 \end_inset
17379
17380 NewSlide:
17381 \begin_inset Quotes erd
17382 \end_inset
17383
17384 .
17385  Any text or paragraph environments that follow this one go on the new slide.
17386  It's that simple.
17387 \end_layout
17388
17389 \begin_layout Standard
17390 Slides are probably the only time you'll need to forcibly end pages in \SpecialChar LyX
17391
17392  (this can be specified in the 
17393 \family sans
17394 Paragraph Layout
17395 \family default
17396  dialog).
17397  In fact, you'll want to, once you finish entering the contents of one slide.
17398  If you've entered more text than can physically fit on a slide, the extra
17399  overflows onto a new slide.
17400  I don't recommend doing this, however, since the overflow slide won't have
17401  any page number on it.
17402  Furthermore, it may interfere with any 
17403 \family sans
17404 Overlay
17405 \family default
17406  you've made to accompany the oversized 
17407 \family sans
17408 Slide
17409 \family default
17410 .
17411 \end_layout
17412
17413 \begin_layout Standard
17414 The 
17415 \family sans
17416 Overlay
17417 \family default
17418  and 
17419 \family sans
17420 Note
17421 \family default
17422  environments work the same way as the 
17423 \family sans
17424 Slide
17425 \family default
17426  environment.
17427  They both create an 
17428 \begin_inset Quotes eld
17429 \end_inset
17430
17431 ASCII line
17432 \begin_inset Quotes erd
17433 \end_inset
17434
17435  followed by a label [
17436 \begin_inset Quotes eld
17437 \end_inset
17438
17439 NewOverlay:
17440 \begin_inset Quotes erd
17441 \end_inset
17442
17443  and 
17444 \begin_inset Quotes eld
17445 \end_inset
17446
17447 NewNote:
17448 \begin_inset Quotes erd
17449 \end_inset
17450
17451 , respectively].
17452  The color is a stunning magenta instead of blue, and the 
17453 \begin_inset Quotes eld
17454 \end_inset
17455
17456 ASCII line
17457 \begin_inset Quotes erd
17458 \end_inset
17459
17460  will look different, in style and in length.
17461  The label fonts of all three also differ from one another.
17462 \end_layout
17463
17464 \begin_layout Standard
17465 As with a 
17466 \family sans
17467 Slide
17468 \family default
17469 , if the contents of a 
17470 \family sans
17471 Note
17472 \family default
17473  or 
17474 \family sans
17475 Overlay
17476 \family default
17477  exceed the physical size of a slide or sheet of paper, the extra will overflow
17478  onto a new sheet.
17479  Again, you should avoid this.
17480  It defeats the whole purpose of 
17481 \family sans
17482 Note
17483 \family default
17484 s and 
17485 \family sans
17486 Overlay
17487 \family default
17488 s.
17489 \end_layout
17490
17491 \begin_layout Subsubsection
17492 Using 
17493 \family sans
17494 Overlay
17495 \family default
17496  with 
17497 \family sans
17498 Slide
17499 \end_layout
17500
17501 \begin_layout Standard
17502 The idea behind an 
17503 \family sans
17504 Overlay
17505 \family default
17506  is a slide that sits atop another slide.
17507  Perhaps you wish to discuss a figure on the main 
17508 \family sans
17509 Slide
17510 \family default
17511  before displaying the text associated with it.
17512  One way to accomplish this is tape a flap of dark paper over the part of
17513  the 
17514 \family sans
17515 Slide
17516 \family default
17517  you want to display later.
17518  This method fails, however, if you wish to overlap one graph with another,
17519  for example.
17520  You would then have to fumble while speaking to align the two separate,
17521  overlapping 
17522 \family sans
17523 Slide
17524 \family default
17525 s to align the two graphs.
17526  The use of an 
17527 \family sans
17528 Overlay
17529 \family default
17530  environment in both cases makes life much easier.
17531 \end_layout
17532
17533 \begin_layout Standard
17534 Each 
17535 \family sans
17536 Overlay
17537 \family default
17538  receives the page number of its 
17539 \begin_inset Quotes eld
17540 \end_inset
17541
17542 parent
17543 \begin_inset Quotes erd
17544 \end_inset
17545
17546  
17547 \family sans
17548 Slide
17549 \family default
17550 , appended by 
17551 \begin_inset Quotes eld
17552 \end_inset
17553
17554
17555 \family typewriter
17556 -a
17557 \family default
17558
17559 \begin_inset Quotes erd
17560 \end_inset
17561
17562 .
17563 \begin_inset Foot
17564 status collapsed
17565
17566 \begin_layout Plain Layout
17567 Presumably, mutliple 
17568 \family sans
17569 Overlay
17570 \family default
17571 s would have 
17572 \begin_inset Quotes eld
17573 \end_inset
17574
17575
17576 \family typewriter
17577 -a
17578 \family default
17579
17580 \begin_inset Quotes erd
17581 \end_inset
17582
17583
17584 \begin_inset Quotes eld
17585 \end_inset
17586
17587
17588 \family typewriter
17589 -b
17590 \family default
17591
17592 \begin_inset Quotes erd
17593 \end_inset
17594
17595
17596 \begin_inset Quotes eld
17597 \end_inset
17598
17599
17600 \family typewriter
17601 -c
17602 \family default
17603
17604 \begin_inset Quotes erd
17605 \end_inset
17606
17607 , etc.
17608 \begin_inset space ~
17609 \end_inset
17610
17611 appended to the page number of the parent 
17612 \family sans
17613 Slide
17614 \family default
17615 .
17616  
17617 \end_layout
17618
17619 \end_inset
17620
17621  Clearly, you want the contents of both the 
17622 \family sans
17623 Slide
17624 \family default
17625  and the 
17626 \family sans
17627 Overlay
17628 \family default
17629  to each fit on a single physical slide! You should probably consider an
17630  
17631 \family sans
17632 Overlay
17633 \family default
17634  as 
17635 \begin_inset Quotes eld
17636 \end_inset
17637
17638 part of
17639 \begin_inset Quotes erd
17640 \end_inset
17641
17642  a 
17643 \family sans
17644 Slide
17645 \family default
17646 .
17647  Indeed, the \SpecialChar LyX
17648  
17649 \family sans
17650 slides
17651 \family default
17652  class provides a visual cue for this: the label at the start of an 
17653 \family sans
17654 Overlay
17655 \family default
17656  is shorter than that at the start of a 
17657 \family sans
17658 Slide
17659 \family default
17660 .
17661  Lastly, when you generate printable output, you'll find alignment markers
17662  in all four corners of both the 
17663 \family sans
17664 Overlay
17665 \family default
17666  page and its parent 
17667 \family sans
17668 Slide
17669 \family default
17670 .
17671  These will assist you in lining up the two physical slides.
17672 \end_layout
17673
17674 \begin_layout Standard
17675 The major problem in overlaying two slides is aligning the contents of the
17676  two transparencies.
17677  How much space should you leave for that graph on the second slide? Worse
17678  still, what if you want a graph and a sentence on second slide, but there
17679  is text on the main transparency that goes in between them? You could try
17680  and insert vertical space of the right size.
17681  The better way is to use 
17682 \family sans
17683 InvisibleText
17684 \family default
17685  and 
17686 \family sans
17687 VisibleText
17688 \family default
17689 .
17690 \end_layout
17691
17692 \begin_layout Standard
17693 As their names imply, 
17694 \family sans
17695 InvisibleText
17696 \family default
17697  and 
17698 \family sans
17699 VisibleText
17700 \family default
17701  are two command-like paragraph environments that make all subsequent text
17702  invisible and visible, respectively.
17703  Note from section
17704 \begin_inset space ~
17705 \end_inset
17706
17707
17708 \begin_inset CommandInset ref
17709 LatexCommand ref
17710 reference "sec:slideQuirk"
17711
17712 \end_inset
17713
17714  that you don't place anything 
17715 \emph on
17716 into
17717 \emph default
17718  these two environments, however.
17719  When you create an 
17720 \family sans
17721 InvisibleText
17722 \family default
17723 , it inserts a centered, sky-blue label into the page reading 
17724 \begin_inset Quotes eld
17725 \end_inset
17726
17727 <Invisible Text Follows>
17728 \begin_inset Quotes erd
17729 \end_inset
17730
17731 .
17732  For paragraphs following this label, the parts of the 
17733 \family sans
17734 Slide
17735 \family default
17736  [or 
17737 \family sans
17738 Overlay
17739 \family default
17740 ; it doesn't matter which] where they would be contain instead blank space.
17741  
17742 \end_layout
17743
17744 \begin_layout Standard
17745 For 
17746 \family sans
17747 VisibleText
17748 \family default
17749 , the corresponding centered label is 
17750 \begin_inset Quotes eld
17751 \end_inset
17752
17753 <Visible Text Follows>
17754 \begin_inset Quotes erd
17755 \end_inset
17756
17757  in blazing green.
17758  Paragraphs following this label behave normally.
17759  Note that the beginning of a new 
17760 \family sans
17761 Slide
17762 \family default
17763
17764 \family sans
17765 Overlay
17766 \family default
17767 , or 
17768 \family sans
17769 Note
17770 \family default
17771  automatically shuts off an 
17772 \family sans
17773 InvisibleText
17774 \family default
17775 .
17776  It's therefore not necessary to use 
17777 \family sans
17778 VisibleText
17779 \family default
17780  at the end of a 
17781 \family sans
17782 Slide
17783 \family default
17784 .
17785 \end_layout
17786
17787 \begin_layout Standard
17788 By now, it should be obvious how to create overlay transparencies using
17789  the proper combination of 
17790 \family sans
17791 InvisibleText
17792 \family default
17793  and 
17794 \family sans
17795 VisibleText
17796 \family default
17797  on a 
17798 \family sans
17799 Slide
17800 \family default
17801  and 
17802 \family sans
17803 Overlay
17804 \family default
17805 :
17806 \end_layout
17807
17808 \begin_layout Enumerate
17809 Create a 
17810 \family sans
17811 Slide
17812 \family default
17813 , including everything that will appear on it, whether on the main slide
17814  or on the 
17815 \family sans
17816 Overlay
17817 \family default
17818 .
17819 \end_layout
17820
17821 \begin_layout Enumerate
17822 Before each figure or paragraph that will appear only on the 
17823 \family sans
17824 Overlay
17825 \family default
17826 , insert an 
17827 \family sans
17828 InvisibleText
17829 \family default
17830  environment.
17831  If necessary, insert a 
17832 \family sans
17833 VisibleText
17834 \family default
17835  environment after the 
17836 \family sans
17837 Overlay
17838 \family default
17839 -only text.
17840 \end_layout
17841
17842 \begin_layout Enumerate
17843 Start an 
17844 \family sans
17845 Overlay
17846 \family default
17847  immediately following the 
17848 \family sans
17849 Slide
17850 \family default
17851 .
17852 \end_layout
17853
17854 \begin_layout Enumerate
17855 Copy the contents of this 
17856 \family sans
17857 Slide
17858 \family default
17859  into the 
17860 \family sans
17861 Overlay
17862 \family default
17863 .
17864 \end_layout
17865
17866 \begin_layout Enumerate
17867 Within the 
17868 \family sans
17869 Overlay
17870 \family default
17871 , change all of the 
17872 \family sans
17873 InvisibleText
17874 \family default
17875  lines to 
17876 \family sans
17877 VisibleText
17878 \family default
17879  and vice-versa.
17880 \end_layout
17881
17882 \begin_layout Standard
17883 That's it.
17884  You've just made an 
17885 \family sans
17886 Overlay
17887 \family default
17888 .
17889 \end_layout
17890
17891 \begin_layout Standard
17892 There's one problem with the way I've designed the \SpecialChar LyX
17893  
17894 \family sans
17895 slides
17896 \family default
17897  class: you can't make text in the middle of a paragraph invisible, nor
17898  make text in the middle of an invisible paragraph visible again.
17899  To accomplish this feat, you'll need to use some inlined \SpecialChar LaTeX
17900  codes.
17901 \begin_inset Foot
17902 status collapsed
17903
17904 \begin_layout Plain Layout
17905 The commands of interest are: 
17906 \end_layout
17907
17908 \begin_layout Itemize
17909
17910 \family typewriter
17911 {
17912 \backslash
17913 invisible \SpecialChar ldots
17914  }
17915 \end_layout
17916
17917 \begin_layout Itemize
17918
17919 \family typewriter
17920 {
17921 \backslash
17922 visible \SpecialChar ldots
17923  }
17924 \end_layout
17925
17926 \begin_layout Plain Layout
17927 \SpecialChar ldots
17928 and need to be marked as \SpecialChar TeX
17929 .
17930  The text whose 
17931 \begin_inset Quotes eld
17932 \end_inset
17933
17934 visibility
17935 \begin_inset Quotes erd
17936 \end_inset
17937
17938  you wish to change goes in between the brackets [and after the 
17939 \family typewriter
17940
17941 \backslash
17942 invisible
17943 \family default
17944  or 
17945 \family typewriter
17946
17947 \backslash
17948 visible
17949 \family default
17950  command].
17951  If you don't know how to mark text as \SpecialChar TeX
17952 , see the appropriate section of
17953  the 
17954 \emph on
17955 User's Guide
17956 \emph default
17957 .
17958 \end_layout
17959
17960 \end_inset
17961
17962
17963 \end_layout
17964
17965 \begin_layout Subsubsection
17966 Using 
17967 \family sans
17968 Note
17969 \family default
17970  with 
17971 \family sans
17972 Slide
17973 \family default
17974
17975 \begin_inset CommandInset label
17976 LatexCommand label
17977 name "sec:slideNote"
17978
17979 \end_inset
17980
17981
17982 \end_layout
17983
17984 \begin_layout Standard
17985 Like an 
17986 \family sans
17987 Overlay
17988 \family default
17989 , a 
17990 \family sans
17991 Note
17992 \family default
17993  is associated with a 
17994 \begin_inset Quotes eld
17995 \end_inset
17996
17997 parent
17998 \begin_inset Quotes erd
17999 \end_inset
18000
18001  
18002 \family sans
18003 Slide
18004 \family default
18005 .
18006  Here, too, the \SpecialChar LyX
18007  
18008 \family sans
18009 slides
18010 \family default
18011  class provides visual cues.
18012  The label for a 
18013 \family sans
18014 Note
18015 \family default
18016  is shorter than that of a 
18017 \family sans
18018 Slide
18019 \family default
18020  [yet longer than that of an 
18021 \family sans
18022 Overlay
18023 \family default
18024 ] and, like the label of an 
18025 \family sans
18026 Overlay
18027 \family default
18028  is shockingly magenta.
18029  Additionally, the printed 
18030 \family sans
18031 Note
18032 \family default
18033  has the page number of its 
18034 \begin_inset Quotes eld
18035 \end_inset
18036
18037 parent
18038 \begin_inset Quotes erd
18039 \end_inset
18040
18041  
18042 \family sans
18043 Slide
18044 \family default
18045 , appended by 
18046 \begin_inset Quotes eld
18047 \end_inset
18048
18049
18050 \family typewriter
18051 -
18052 \family default
18053 1
18054 \begin_inset Quotes erd
18055 \end_inset
18056
18057
18058 \begin_inset Quotes eld
18059 \end_inset
18060
18061
18062 \family typewriter
18063 -
18064 \family default
18065 2
18066 \begin_inset Quotes erd
18067 \end_inset
18068
18069
18070 \begin_inset Quotes eld
18071 \end_inset
18072
18073
18074 \family typewriter
18075 -
18076 \family default
18077 3
18078 \begin_inset Quotes erd
18079 \end_inset
18080
18081 , etc.
18082  You can have multiple 
18083 \family sans
18084 Note
18085 \family default
18086 s associated with a single 
18087 \family sans
18088 Slide
18089 \family default
18090 , and, as with 
18091 \family sans
18092 Slide
18093 \family default
18094  and 
18095 \family sans
18096 Overlay
18097 \family default
18098 , you'll probably want to break up long 
18099 \family sans
18100 Note
18101 \family default
18102 s so that they fit on a single sheet of paper.
18103 \end_layout
18104
18105 \begin_layout Standard
18106 The purpose of a 
18107 \family sans
18108 Note
18109 \family default
18110  is obvious: it contains anything additional you might want to say about
18111  a 
18112 \family sans
18113 Slide
18114 \family default
18115 .
18116  It could also be used as a sheet of reminders for a particular 
18117 \family sans
18118 Slide
18119 \family default
18120 .
18121  In the case of the latter, you might want to make use of time markers.
18122  Currently, the \SpecialChar LyX
18123  
18124 \family sans
18125 slides
18126 \family default
18127  class has no 
18128 \begin_inset Quotes eld
18129 \end_inset
18130
18131 native
18132 \begin_inset Quotes erd
18133 \end_inset
18134
18135  support for time markers, a 
18136 \noun on
18137 Sli\SpecialChar TeX
18138
18139 \noun default
18140  feature.
18141  So, you'll have to resort to using the \SpecialChar LaTeX
18142  codes.
18143 \end_layout
18144
18145 \begin_layout Standard
18146 To use time markers, you'll need to specify the extra class option 
18147 \begin_inset Quotes eld
18148 \end_inset
18149
18150
18151 \family typewriter
18152 clock
18153 \family default
18154
18155 \begin_inset Quotes erd
18156 \end_inset
18157
18158  [see section
18159 \begin_inset space ~
18160 \end_inset
18161
18162
18163 \begin_inset CommandInset ref
18164 LatexCommand ref
18165 reference "sec:slidesetup"
18166
18167 \end_inset
18168
18169 ].
18170  This option turns on timing marks, which will appear in the lower-left-hand
18171  corner of every 
18172 \family sans
18173 Note
18174 \family default
18175  you generate.
18176  To set what appears in the time marker, you use the \SpecialChar LaTeX
18177  commands 
18178 \begin_inset Quotes eld
18179 \end_inset
18180
18181
18182 \family typewriter
18183
18184 \backslash
18185 settime{}
18186 \family default
18187
18188 \begin_inset Quotes erd
18189 \end_inset
18190
18191  and 
18192 \begin_inset Quotes eld
18193 \end_inset
18194
18195
18196 \family typewriter
18197
18198 \backslash
18199 addtime{}
18200 \family default
18201
18202 \begin_inset Quotes erd
18203 \end_inset
18204
18205 .
18206  The arguments of both commands are time measured in seconds.
18207  
18208 \begin_inset Quotes eld
18209 \end_inset
18210
18211
18212 \family typewriter
18213
18214 \backslash
18215 settime{}
18216 \family default
18217
18218 \begin_inset Quotes erd
18219 \end_inset
18220
18221  sets the time marker to a given time.
18222  
18223 \begin_inset Quotes eld
18224 \end_inset
18225
18226
18227 \family typewriter
18228
18229 \backslash
18230 addtime{}
18231 \family default
18232
18233 \begin_inset Quotes erd
18234 \end_inset
18235
18236  increments the time marker by the specified amount.
18237  Using time markers and 
18238 \family sans
18239 Note
18240 \family default
18241 s in this fashion, you can remind yourself how much time to spend on a particula
18242
18243 \family sans
18244 Slide
18245 \family default
18246 .
18247 \end_layout
18248
18249 \begin_layout Standard
18250 There's one last feature to describe.
18251  Clearly, you'd like to print out all of your 
18252 \family sans
18253 Slide
18254 \family default
18255 s and 
18256 \family sans
18257 Overlay
18258 \family default
18259 s on transparencies while printing all of your 
18260 \family sans
18261 Note
18262 \family default
18263 s on plain paper.
18264  However, a 
18265 \family sans
18266 Note
18267 \family default
18268  
18269 \emph on
18270 must
18271 \emph default
18272  follow the 
18273 \family sans
18274 Slide
18275 \family default
18276  with which it is associated.
18277  What's a person to do?
18278 \end_layout
18279
18280 \begin_layout Standard
18281 Luckily, there are two \SpecialChar LaTeX
18282  commands that allow you to select what to print
18283  out.
18284  Both must be placed into the preamble of your document.
18285  The command 
18286 \begin_inset Quotes eld
18287 \end_inset
18288
18289
18290 \family typewriter
18291
18292 \backslash
18293 onlyslides{
18294 \backslash
18295 slides}
18296 \family default
18297
18298 \begin_inset Quotes erd
18299 \end_inset
18300
18301  will cause the output to contain only the 
18302 \family sans
18303 Slide
18304 \family default
18305 s and 
18306 \family sans
18307 Overlay
18308 \family default
18309 s.
18310  Correspondingly, the command 
18311 \begin_inset Quotes eld
18312 \end_inset
18313
18314
18315 \family typewriter
18316
18317 \backslash
18318 onlynotes{
18319 \backslash
18320 notes}
18321 \family default
18322
18323 \begin_inset Quotes erd
18324 \end_inset
18325
18326  prevents the output of anything but 
18327 \family sans
18328 Note
18329 \family default
18330 s.
18331  I'd advise placing both commands in the preamble and initially comment
18332  both out.
18333  You can then preview your entire presentation as you write.
18334  When you're done writing, you can then uncomment one of the two to select
18335  what you want to print.
18336  I like to uncomment 
18337 \begin_inset Quotes eld
18338 \end_inset
18339
18340
18341 \family typewriter
18342
18343 \backslash
18344 onlyslides{
18345 \backslash
18346 slides}
18347 \family default
18348
18349 \begin_inset Quotes erd
18350 \end_inset
18351
18352  , print to a file with 
18353 \begin_inset Quotes eld
18354 \end_inset
18355
18356
18357 \family typewriter
18358 -slides
18359 \family default
18360
18361 \begin_inset Quotes erd
18362 \end_inset
18363
18364  in its name, comment it back out, then uncomment 
18365 \begin_inset Quotes eld
18366 \end_inset
18367
18368
18369 \family typewriter
18370
18371 \backslash
18372 onlynotes{
18373 \backslash
18374 notes}
18375 \family default
18376
18377 \begin_inset Quotes erd
18378 \end_inset
18379
18380  and print to a 
18381 \begin_inset Quotes eld
18382 \end_inset
18383
18384
18385 \family typewriter
18386 *-notes.ps
18387 \family default
18388
18389 \begin_inset Quotes erd
18390 \end_inset
18391
18392  file.
18393  I can then send either file to a printer, loading transparencies or plain
18394  paper as appropriate.
18395 \end_layout
18396
18397 \begin_layout Standard
18398 You can also provide other arguments to the 
18399 \begin_inset Quotes eld
18400 \end_inset
18401
18402
18403 \family typewriter
18404
18405 \backslash
18406 onlyslides{}
18407 \family default
18408
18409 \begin_inset Quotes erd
18410 \end_inset
18411
18412  and 
18413 \begin_inset Quotes eld
18414 \end_inset
18415
18416
18417 \family typewriter
18418
18419 \backslash
18420 onlynotes{}
18421 \family default
18422
18423 \begin_inset Quotes erd
18424 \end_inset
18425
18426  commands.
18427  See a good \SpecialChar LaTeX
18428  book for details.
18429 \end_layout
18430
18431 \begin_layout Subsection
18432 The 
18433 \family sans
18434 slides
18435 \family default
18436  Class Template File
18437 \end_layout
18438
18439 \begin_layout Standard
18440 I have also provided a template file, 
18441 \begin_inset Quotes eld
18442 \end_inset
18443
18444
18445 \family typewriter
18446 slides.lyx
18447 \family default
18448
18449 \begin_inset Quotes erd
18450 \end_inset
18451
18452 , with the 
18453 \family sans
18454 slides
18455 \family default
18456  class.
18457  To use it, begin your new presentation with 
18458 \family sans
18459 File\SpecialChar menuseparator
18460 New
18461 \begin_inset space ~
18462 \end_inset
18463
18464 from
18465 \begin_inset space ~
18466 \end_inset
18467
18468 Template
18469 \family default
18470 .
18471  Your new \SpecialChar LyX
18472  presentation file will contain an example 
18473 \family sans
18474 Slide
18475 \family default
18476  â€“ 
18477 \family sans
18478 Overlay
18479 \family default
18480  â€“ 
18481 \family sans
18482 Note
18483 \family default
18484  triplet.
18485  The 
18486 \family sans
18487 Slide
18488 \family default
18489  and 
18490 \family sans
18491 Overlay
18492 \family default
18493  additionally contain an example of the use of 
18494 \family sans
18495 InvisibleText
18496 \family default
18497  and 
18498 \family sans
18499 VisibleText
18500 \family default
18501 .
18502  Lastly, the preamble will contain:
18503 \end_layout
18504
18505 \begin_layout LyX-Code
18506 % Uncomment to print out only slides and overlays
18507 \end_layout
18508
18509 \begin_layout LyX-Code
18510 %
18511 \end_layout
18512
18513 \begin_layout LyX-Code
18514 %
18515 \backslash
18516 onlyslides{
18517 \backslash
18518 slides}
18519 \begin_inset Newline newline
18520 \end_inset
18521
18522  
18523 \end_layout
18524
18525 \begin_layout LyX-Code
18526 % Uncomment to print out only notes
18527 \end_layout
18528
18529 \begin_layout LyX-Code
18530 %
18531 \end_layout
18532
18533 \begin_layout LyX-Code
18534 %
18535 \backslash
18536 onlynotes{
18537 \backslash
18538 notes}
18539 \end_layout
18540
18541 \begin_layout Standard
18542 One final thing: I created this class to support the \SpecialChar LaTeX2e
18543  
18544 \begin_inset Quotes eld
18545 \end_inset
18546
18547
18548 \noun on
18549 Sli\SpecialChar TeX
18550
18551 \noun default
18552  emulation
18553 \begin_inset Quotes erd
18554 \end_inset
18555
18556  class, one of the built-in \SpecialChar LaTeX2e
18557  classes.
18558  Neither I nor the rest of the \SpecialChar LyX
18559  Team endorse or oppose the use of this built-in
18560  slide class.
18561  It's here if you want it or need it.
18562  There exist other \SpecialChar LaTeX2e
18563  classes for creating presentations, such as the 
18564 \family sans
18565 Foils
18566 \family default
18567  class [see section
18568 \begin_inset space ~
18569 \end_inset
18570
18571
18572 \begin_inset CommandInset ref
18573 LatexCommand ref
18574 reference "sec:foiltex"
18575
18576 \end_inset
18577
18578 ] or the 
18579 \begin_inset Quotes eld
18580 \end_inset
18581
18582
18583 \family typewriter
18584 seminar
18585 \family default
18586
18587 \begin_inset Quotes erd
18588 \end_inset
18589
18590  package [present on some \SpecialChar TeX
18591  distributions].
18592  The latter is not yet supported under \SpecialChar LyX
18593 .
18594 \begin_inset Foot
18595 status collapsed
18596
18597 \begin_layout Plain Layout
18598 Perhaps you can take on the task\SpecialChar ldots
18599
18600 \end_layout
18601
18602 \end_inset
18603
18604  I know nothing about these other classes.
18605  Try them out to see what sort of alternative they provide.
18606 \end_layout
18607
18608 \begin_layout Chapter
18609 \SpecialChar LyX
18610  Features needing Extra Software
18611 \end_layout
18612
18613 \begin_layout Section
18614 Checking \SpecialChar TeX
18615
18616 \end_layout
18617
18618 \begin_layout Standard
18619 by 
18620 \noun on
18621 Asger Alstrup
18622 \end_layout
18623
18624 \begin_layout Subsection
18625 Introduction
18626 \end_layout
18627
18628 \begin_layout Standard
18629 If you have the 
18630 \family typewriter
18631 chktex
18632 \family default
18633  program installed
18634 \begin_inset Foot
18635 status collapsed
18636
18637 \begin_layout Plain Layout
18638
18639 \family typewriter
18640 chktex
18641 \family default
18642  is not yet available when you are using the \SpecialChar LaTeX
18643  distribution MiK\SpecialChar TeX
18644 .
18645 \end_layout
18646
18647 \end_inset
18648
18649 , you'll find in the 
18650 \family sans
18651 Tools
18652 \family default
18653  menu the entry: 
18654 \family sans
18655 Check
18656 \begin_inset space ~
18657 \end_inset
18658
18659 TeX
18660 \family default
18661 .
18662  You can get 
18663 \family typewriter
18664 chktex
18665 \family default
18666  from CTAN,
18667 \begin_inset Newline newline
18668 \end_inset
18669
18670
18671 \begin_inset CommandInset href
18672 LatexCommand href
18673 target "https://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
18674 literal "false"
18675
18676 \end_inset
18677
18678 .
18679 \end_layout
18680
18681 \begin_layout Standard
18682 The 
18683 \family sans
18684 Chk\SpecialChar TeX
18685
18686 \family default
18687  package is a program that was written by 
18688 \begin_inset Flex Noun
18689 status collapsed
18690
18691 \begin_layout Plain Layout
18692 Jens T.
18693 \begin_inset space ~
18694 \end_inset
18695
18696 Berger Thielemann
18697 \end_layout
18698
18699 \end_inset
18700
18701  in frustration because some constructs in \SpecialChar LaTeX
18702  are sometimes non-intuitive,
18703  and easy to forget.
18704  The program runs over your \SpecialChar LaTeX
18705  file, checks the integrity of the file, and
18706  flags some common errors.
18707  In other technical words, it is 
18708 \family typewriter
18709 lint
18710 \family default
18711  for \SpecialChar LaTeX
18712 .
18713 \end_layout
18714
18715 \begin_layout Standard
18716 Well, what is a syntax checker doing in \SpecialChar LyX
18717  which is supposed to produce correct
18718  \SpecialChar LaTeX
18719  anyways? The answer is simple: Just as 
18720 \family typewriter
18721 Lint
18722 \family default
18723  not only checks the 
18724 \emph on
18725 syntax
18726 \emph default
18727  of C programs, but also does 
18728 \emph on
18729 semantic
18730 \emph default
18731  checks for type-errors, 
18732 \family sans
18733 Chk\SpecialChar TeX
18734
18735 \family default
18736  catches some common 
18737 \emph on
18738 typographic
18739 \emph default
18740  errors, in addition to the syntactical ones.
18741  Specifically, 
18742 \family sans
18743 Chk\SpecialChar TeX
18744
18745 \family default
18746  is capable of detecting several common errors, such as
18747 \end_layout
18748
18749 \begin_layout Itemize
18750 Ellipsis detection:
18751 \begin_inset Newline newline
18752 \end_inset
18753
18754 Use \SpecialChar ldots
18755  instead of ...
18756 \end_layout
18757
18758 \begin_layout Itemize
18759 No space in front of/after parenthesis:
18760 \begin_inset Newline newline
18761 \end_inset
18762
18763 ( wrong spacing )
18764 \end_layout
18765
18766 \begin_layout Itemize
18767 Enforcement of normal space after common abbreviations:
18768 \begin_inset Newline newline
18769 \end_inset
18770
18771 e.
18772 \begin_inset space \thinspace{}
18773 \end_inset
18774
18775 g.
18776 \begin_inset space \space{}
18777 \end_inset
18778
18779 is too wide spacing.
18780 \end_layout
18781
18782 \begin_layout Itemize
18783 Enforcement of end-of-sentence space when the last sentence ends with a
18784  capital letter:
18785 \begin_inset Newline newline
18786 \end_inset
18787
18788 This is a TEST.
18789  And this is wrong spacing.
18790 \end_layout
18791
18792 \begin_layout Itemize
18793 Space in front of labels and similar commands:
18794 \begin_inset Newline newline
18795 \end_inset
18796
18797 The label should stick right up to the text to avoid falling to a wrong
18798  page.
18799  
18800 \begin_inset CommandInset label
18801 LatexCommand label
18802 name "sec:chktex"
18803
18804 \end_inset
18805
18806  
18807 \begin_inset Foot
18808 status collapsed
18809
18810 \begin_layout Plain Layout
18811 This footnote is in danger of falling off to a wrong page
18812 \end_layout
18813
18814 \end_inset
18815
18816  The label is separated too much.
18817 \end_layout
18818
18819 \begin_layout Itemize
18820 Space in front of references, instead of hard spaces:
18821 \begin_inset Newline newline
18822 \end_inset
18823
18824 If you have bad luck, the text will break right between the referenced text
18825  and reference number, and that's a pity.
18826  See section 
18827 \begin_inset CommandInset ref
18828 LatexCommand ref
18829 reference "sec:chktex"
18830
18831 \end_inset
18832
18833 .
18834 \end_layout
18835
18836 \begin_layout Itemize
18837 Use of 
18838 \begin_inset Quotes eld
18839 \end_inset
18840
18841 x
18842 \begin_inset Quotes erd
18843 \end_inset
18844
18845  instead of 
18846 \begin_inset Formula $\times$
18847 \end_inset
18848
18849  between numbers:
18850 \begin_inset Newline newline
18851 \end_inset
18852
18853 2x2 looks cheap compared to 
18854 \begin_inset Formula $2\times2$
18855 \end_inset
18856
18857 .
18858 \end_layout
18859
18860 \begin_layout Standard
18861 and more \SpecialChar ldots
18862  It is an invaluable tool when you are 
18863 \begin_inset Quotes eld
18864 \end_inset
18865
18866 finishing up
18867 \begin_inset Quotes erd
18868 \end_inset
18869
18870  your document before printing, and you should run it right after the obligatory
18871  spelling check, and before you go fine tuning the typesetting.
18872 \end_layout
18873
18874 \begin_layout Subsection
18875 How to use it
18876 \end_layout
18877
18878 \begin_layout Standard
18879 If you have the program installed, usage is as simple as choosing 
18880 \family sans
18881 Tools\SpecialChar menuseparator
18882 Check
18883 \begin_inset space ~
18884 \end_inset
18885
18886 TeX
18887 \family default
18888 .
18889  This will make \SpecialChar LyX
18890  generate a \SpecialChar LaTeX
18891  file of your document, start 
18892 \family sans
18893 Chk\SpecialChar TeX
18894
18895 \family default
18896  to check it, and then make \SpecialChar LyX
18897  insert 
18898 \begin_inset Quotes eld
18899 \end_inset
18900
18901 error boxes
18902 \begin_inset Quotes erd
18903 \end_inset
18904
18905  with the warnings from 
18906 \family sans
18907 Chk\SpecialChar TeX
18908
18909 \family default
18910 , if there were any.
18911  The warnings will be placed close to the point of the mistake, and you
18912  can quickly find them by using the 
18913 \family sans
18914 Navigate\SpecialChar menuseparator
18915 Error
18916 \family default
18917  menu item, or the shortcut key 
18918 \family sans
18919 C-g
18920 \family default
18921  from the default 
18922 \family typewriter
18923 cua
18924 \family default
18925  bind file.
18926  Open the error boxes by clicking on them with the mouse, or use the shortcut
18927  key 
18928 \family sans
18929 C-i
18930 \family default
18931  from 
18932 \family typewriter
18933 cua
18934 \family default
18935  bindings, or the corresponding 
18936 \family sans
18937 C-o
18938 \family default
18939  for the alternate 
18940 \family typewriter
18941 emacs
18942 \family default
18943  bind file.
18944  Read the warning and correct the mistake, if it is a mistake.
18945  If you have trouble understanding what the warning is about, you can safely
18946  ignore it.
18947  Remember that there is a hidden layer between the document on screen and
18948  the technical details in invoking 
18949 \family sans
18950 Chk\SpecialChar TeX
18951
18952 \family default
18953 , and this gap can make some warnings seem arcane or just plain silly.
18954 \end_layout
18955
18956 \begin_layout Standard
18957 This document is an excellent testing bed for the feature, and it should
18958  provide quite a few warnings for you to fiddle with.
18959  Since computers are only so smart, expect most of the warnings to be false
18960  alarms, though.
18961 \end_layout
18962
18963 \begin_layout Subsection
18964 How to fine tune it
18965 \end_layout
18966
18967 \begin_layout Standard
18968 Sometimes, you'll find that 
18969 \family sans
18970 Chk\SpecialChar TeX
18971
18972 \family default
18973  makes more noise than suits your mood.
18974  Then you can choose not to use it, wait until your mood changes, or try
18975  to customize 
18976 \family sans
18977 Chk\SpecialChar TeX
18978
18979 \family default
18980  to get better along with you.
18981 \end_layout
18982
18983 \begin_layout Standard
18984 Although 
18985 \family sans
18986 Chk\SpecialChar TeX
18987
18988 \family default
18989  
18990 \emph on
18991 is
18992 \emph default
18993  very configurable and extensible, you should not expect to solve all problems
18994  with 
18995 \family sans
18996 Chk\SpecialChar TeX
18997
18998 \family default
18999  in \SpecialChar LyX
19000  this way.
19001  Since \SpecialChar LyX
19002  has to generate a somewhat special \SpecialChar LaTeX
19003  file to be able to match the
19004  line numbers from the 
19005 \family sans
19006 Chk\SpecialChar TeX
19007
19008 \family default
19009  output
19010 \begin_inset Foot
19011 status collapsed
19012
19013 \begin_layout Plain Layout
19014 You can inspect the specific output from 
19015 \family sans
19016 chktex
19017 \family default
19018  by using 
19019 \family sans
19020 Document\SpecialChar menuseparator
19021 \SpecialChar LaTeX
19022
19023 \begin_inset space ~
19024 \end_inset
19025
19026 Log
19027 \family default
19028  right after a 
19029 \family sans
19030 chktex
19031 \family default
19032  run.
19033 \end_layout
19034
19035 \end_inset
19036
19037  to the internal document structure, some of the warnings will not appear
19038  correctly.
19039  There are two things you can do about this:
19040 \end_layout
19041
19042 \begin_layout Itemize
19043 Fine tune the 
19044 \family sans
19045 Chk\SpecialChar TeX
19046
19047 \family default
19048  invocation command line in 
19049 \begin_inset Flex Noun
19050 status collapsed
19051
19052 \begin_layout Plain Layout
19053 Tools\SpecialChar menuseparator
19054 Preferences\SpecialChar menuseparator
19055 Output\SpecialChar menuseparator
19056 LaTeX\SpecialChar menuseparator
19057 CheckTeX command
19058 \end_layout
19059
19060 \end_inset
19061
19062 , or the global 
19063 \family sans
19064 Chk\SpecialChar TeX
19065
19066 \family default
19067  installation configuration file (usually with the file 
19068 \family typewriter
19069 chktexrc
19070 \family default
19071 ).
19072  See below to learn what warnings can be enabled and disabled on the command
19073  line.
19074 \end_layout
19075
19076 \begin_layout Itemize
19077 Export your document as a raw \SpecialChar LaTeX
19078  file using 
19079 \family sans
19080 File\SpecialChar menuseparator
19081 Export\SpecialChar menuseparator
19082 \SpecialChar LaTeX
19083
19084 \family default
19085  and run 
19086 \family typewriter
19087 chktex
19088 \family default
19089  manually on that.
19090  Invoked in this way, it can be a hassle to find the corresponding place
19091  in the document inside \SpecialChar LyX
19092 , but with a little patience, you should be able
19093  to do it.
19094 \end_layout
19095
19096 \begin_layout Standard
19097 Here follows the warning messages that can be enabled and disabled in 
19098 \family sans
19099 Preferences
19100 \family default
19101 .
19102  Use 
19103 \family typewriter
19104 -n#
19105 \family default
19106  to disable a warning, and 
19107 \family typewriter
19108 -w#
19109 \family default
19110  to enable a warning.
19111  The emphasized entries are disabled by default, because the default is
19112  "
19113 \family typewriter
19114 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
19115 \family default
19116 ".
19117 \end_layout
19118
19119 \begin_layout Standard
19120 Notice that you should only use the options that enable and disable warnings,
19121  because \SpecialChar LyX
19122  relies on some of the other command line parameters to be set
19123  in a specific way to have a chance to communicate with 
19124 \family typewriter
19125 chktex
19126 \family default
19127 .
19128 \end_layout
19129
19130 \begin_layout Enumerate
19131
19132 \size small
19133 \emph on
19134 Command terminated with space.
19135 \end_layout
19136
19137 \begin_layout Enumerate
19138
19139 \size small
19140 Non-breaking space (
19141 \begin_inset Quotes eld
19142 \end_inset
19143
19144
19145 \family typewriter
19146 ~
19147 \family default
19148
19149 \begin_inset Quotes erd
19150 \end_inset
19151
19152 ) should have been used.
19153 \end_layout
19154
19155 \begin_layout Enumerate
19156
19157 \size small
19158 \emph on
19159 You should enclose the previous parenthesis with 
19160 \begin_inset Quotes eld
19161 \end_inset
19162
19163
19164 \family typewriter
19165 {}
19166 \family default
19167
19168 \begin_inset Quotes erd
19169 \end_inset
19170
19171 .
19172 \end_layout
19173
19174 \begin_layout Enumerate
19175
19176 \size small
19177 Italic correction (
19178 \begin_inset Quotes eld
19179 \end_inset
19180
19181
19182 \family typewriter
19183
19184 \backslash
19185 /
19186 \family default
19187
19188 \begin_inset Quotes erd
19189 \end_inset
19190
19191 ) found in non-italic buffer.
19192 \end_layout
19193
19194 \begin_layout Enumerate
19195
19196 \size small
19197 Italic correction (
19198 \begin_inset Quotes eld
19199 \end_inset
19200
19201
19202 \family typewriter
19203
19204 \backslash
19205 /
19206 \family default
19207
19208 \begin_inset Quotes erd
19209 \end_inset
19210
19211 ) found more than once.
19212 \end_layout
19213
19214 \begin_layout Enumerate
19215
19216 \size small
19217 \emph on
19218 No italic correction (
19219 \begin_inset Quotes eld
19220 \end_inset
19221
19222
19223 \family typewriter
19224
19225 \backslash
19226 /
19227 \family default
19228
19229 \begin_inset Quotes erd
19230 \end_inset
19231
19232 ) found.
19233 \end_layout
19234
19235 \begin_layout Enumerate
19236
19237 \size small
19238 Accent command 
19239 \begin_inset Quotes eld
19240 \end_inset
19241
19242
19243 \family typewriter
19244 cmd
19245 \family default
19246
19247 \begin_inset Quotes erd
19248 \end_inset
19249
19250  needs use of 
19251 \begin_inset Quotes eld
19252 \end_inset
19253
19254
19255 \family typewriter
19256 cmd
19257 \family default
19258
19259 \begin_inset Quotes erd
19260 \end_inset
19261
19262 .
19263 \end_layout
19264
19265 \begin_layout Enumerate
19266
19267 \size small
19268 Wrong length of dash may have been used.
19269 \end_layout
19270
19271 \begin_layout Enumerate
19272
19273 \size small
19274 \emph on
19275 \begin_inset Quotes eld
19276 \end_inset
19277
19278
19279 \family typewriter
19280 %s
19281 \family default
19282
19283 \begin_inset Quotes erd
19284 \end_inset
19285
19286  expected, found 
19287 \begin_inset Quotes eld
19288 \end_inset
19289
19290
19291 \family typewriter
19292 %s
19293 \family default
19294
19295 \begin_inset Quotes erd
19296 \end_inset
19297
19298 .
19299 \end_layout
19300
19301 \begin_layout Enumerate
19302
19303 \size small
19304 Solo 
19305 \begin_inset Quotes eld
19306 \end_inset
19307
19308
19309 \family typewriter
19310 %s
19311 \family default
19312
19313 \begin_inset Quotes erd
19314 \end_inset
19315
19316  found.
19317 \end_layout
19318
19319 \begin_layout Enumerate
19320
19321 \size small
19322 You should use 
19323 \begin_inset Quotes eld
19324 \end_inset
19325
19326
19327 \family typewriter
19328 %s
19329 \family default
19330
19331 \begin_inset Quotes erd
19332 \end_inset
19333
19334  to achieve an ellipsis.
19335 \end_layout
19336
19337 \begin_layout Enumerate
19338
19339 \size small
19340 Inter-word spacing (
19341 \begin_inset Quotes eld
19342 \end_inset
19343
19344
19345 \family typewriter
19346
19347 \backslash
19348
19349 \family default
19350  
19351 \begin_inset Quotes eld
19352 \end_inset
19353
19354 ) should perhaps be used.
19355 \end_layout
19356
19357 \begin_layout Enumerate
19358
19359 \size small
19360 Inter-sentence spacing (
19361 \begin_inset Quotes eld
19362 \end_inset
19363
19364
19365 \family typewriter
19366
19367 \backslash
19368 @
19369 \family default
19370
19371 \begin_inset Quotes erd
19372 \end_inset
19373
19374 ) should perhaps be used.
19375 \end_layout
19376
19377 \begin_layout Enumerate
19378
19379 \size small
19380 Could not find argument for command.
19381 \end_layout
19382
19383 \begin_layout Enumerate
19384
19385 \size small
19386 No match found for 
19387 \begin_inset Quotes eld
19388 \end_inset
19389
19390
19391 \family typewriter
19392 %s
19393 \family default
19394
19395 \begin_inset Quotes erd
19396 \end_inset
19397
19398 .
19399 \end_layout
19400
19401 \begin_layout Enumerate
19402
19403 \size small
19404 Math mode still on at end of \SpecialChar LaTeX
19405  file.
19406 \end_layout
19407
19408 \begin_layout Enumerate
19409
19410 \size small
19411 Number of 
19412 \begin_inset Quotes eld
19413 \end_inset
19414
19415
19416 \family typewriter
19417 char
19418 \family default
19419
19420 \begin_inset Quotes erd
19421 \end_inset
19422
19423  doesn't match the number of 
19424 \begin_inset Quotes eld
19425 \end_inset
19426
19427
19428 \family typewriter
19429 char
19430 \family default
19431
19432 \begin_inset Quotes erd
19433 \end_inset
19434
19435 .
19436 \end_layout
19437
19438 \begin_layout Enumerate
19439
19440 \size small
19441 You should use either 
19442 \family typewriter
19443
19444 \begin_inset Quotes eld
19445 \end_inset
19446
19447
19448 \family default
19449  or 
19450 \family typewriter
19451
19452 \begin_inset Quotes erd
19453 \end_inset
19454
19455
19456 \family default
19457  as an alternative to 
19458 \begin_inset Quotes eld
19459 \end_inset
19460
19461
19462 \family typewriter
19463 "
19464 \family default
19465
19466 \begin_inset Quotes erd
19467 \end_inset
19468
19469 .
19470 \end_layout
19471
19472 \begin_layout Enumerate
19473
19474 \size small
19475 You should use "
19476 \family typewriter
19477 '
19478 \family default
19479 " (ASCII 39) instead of "
19480 \family typewriter
19481 ´
19482 \family default
19483 " (ASCII 180).
19484 \end_layout
19485
19486 \begin_layout Enumerate
19487
19488 \size small
19489 User-specified pattern found.
19490 \end_layout
19491
19492 \begin_layout Enumerate
19493
19494 \size small
19495 This command might not be intended.
19496 \end_layout
19497
19498 \begin_layout Enumerate
19499
19500 \size small
19501 \emph on
19502 Comment displayed.
19503 \end_layout
19504
19505 \begin_layout Enumerate
19506
19507 \size small
19508 Either 
19509 \family typewriter
19510 ''
19511 \backslash
19512 ,'
19513 \family default
19514  or 
19515 \family typewriter
19516 '
19517 \backslash
19518 ,''
19519 \family default
19520  will look better.
19521 \end_layout
19522
19523 \begin_layout Enumerate
19524
19525 \size small
19526 Delete this space to maintain correct page references.
19527 \end_layout
19528
19529 \begin_layout Enumerate
19530
19531 \size small
19532 \emph on
19533 You might wish to put this between a pair of 
19534 \begin_inset Quotes eld
19535 \end_inset
19536
19537
19538 \family typewriter
19539 {}
19540 \family default
19541
19542 \begin_inset Quotes erd
19543 \end_inset
19544
19545 .
19546 \end_layout
19547
19548 \begin_layout Enumerate
19549
19550 \size small
19551 You ought to remove spaces in front of punctuation.
19552 \end_layout
19553
19554 \begin_layout Enumerate
19555
19556 \size small
19557 Could not execute \SpecialChar LaTeX
19558  command.
19559 \end_layout
19560
19561 \begin_layout Enumerate
19562
19563 \size small
19564 Don't use 
19565 \family typewriter
19566
19567 \backslash
19568 /
19569 \family default
19570  in front of small punctuation.
19571 \end_layout
19572
19573 \begin_layout Enumerate
19574
19575 \family typewriter
19576 \size small
19577 $
19578 \backslash
19579 times$
19580 \family default
19581  may look prettier here.
19582 \end_layout
19583
19584 \begin_layout Enumerate
19585
19586 \size small
19587 \emph on
19588 Multiple spaces detected in output.
19589 \end_layout
19590
19591 \begin_layout Enumerate
19592
19593 \size small
19594 This text may be ignored.
19595 \end_layout
19596
19597 \begin_layout Enumerate
19598
19599 \size small
19600 Use 
19601 \family typewriter
19602
19603 \begin_inset Quotes eld
19604 \end_inset
19605
19606
19607 \family default
19608  to begin quotation, not 
19609 \family typewriter
19610 '
19611 \family default
19612 .
19613 \end_layout
19614
19615 \begin_layout Enumerate
19616
19617 \size small
19618 Use 
19619 \family typewriter
19620 '
19621 \family default
19622  to end quotation, not 
19623 \family typewriter
19624
19625 \begin_inset Quotes eld
19626 \end_inset
19627
19628
19629 \family default
19630 .
19631 \end_layout
19632
19633 \begin_layout Enumerate
19634
19635 \size small
19636 Don't mix quotes.
19637 \end_layout
19638
19639 \begin_layout Enumerate
19640
19641 \size small
19642 You should perhaps use 
19643 \begin_inset Quotes eld
19644 \end_inset
19645
19646
19647 \family typewriter
19648 cmd
19649 \family default
19650
19651 \begin_inset Quotes erd
19652 \end_inset
19653
19654  instead.
19655 \end_layout
19656
19657 \begin_layout Enumerate
19658
19659 \size small
19660 You should put a space in front of/after parenthesis.
19661 \end_layout
19662
19663 \begin_layout Enumerate
19664
19665 \size small
19666 You should avoid spaces in front of/after parenthesis.
19667 \end_layout
19668
19669 \begin_layout Enumerate
19670
19671 \size small
19672 \emph on
19673 You should not use punctuation in front of/after quotes.
19674 \end_layout
19675
19676 \begin_layout Enumerate
19677
19678 \size small
19679 Double space found.
19680 \end_layout
19681
19682 \begin_layout Enumerate
19683
19684 \size small
19685 You should put punctuation outside inner/inside display math mode.
19686 \end_layout
19687
19688 \begin_layout Enumerate
19689
19690 \size small
19691 You ought to not use primitive \SpecialChar TeX
19692  in \SpecialChar LaTeX
19693  code.
19694 \end_layout
19695
19696 \begin_layout Enumerate
19697
19698 \size small
19699 You should remove spaces in front of 
19700 \begin_inset Quotes eld
19701 \end_inset
19702
19703
19704 \family typewriter
19705 %s
19706 \family default
19707
19708 \begin_inset Quotes erd
19709 \end_inset
19710
19711
19712 \end_layout
19713
19714 \begin_layout Enumerate
19715
19716 \size small
19717 \begin_inset Quotes eld
19718 \end_inset
19719
19720
19721 \family typewriter
19722 %s
19723 \family default
19724
19725 \begin_inset Quotes erd
19726 \end_inset
19727
19728  is normally not followed by 
19729 \begin_inset Quotes eld
19730 \end_inset
19731
19732
19733 \family typewriter
19734 %c
19735 \family default
19736
19737 \begin_inset Quotes erd
19738 \end_inset
19739
19740 .
19741 \end_layout
19742
19743 \begin_layout Standard
19744 In later versions of \SpecialChar LyX
19745 , we hope to provide a more complete interface to this
19746  tool (and it's smaller cousin 
19747 \family typewriter
19748 lacheck
19749 \family default
19750 ) to exploit the full power of it.
19751  But it's not exactly useless as it is now: go try it on one of your existing
19752  documents of a certain length and be surprised.
19753 \end_layout
19754
19755 \begin_layout Section
19756 Version Control in \SpecialChar LyX
19757
19758 \end_layout
19759
19760 \begin_layout Standard
19761 by
19762 \noun on
19763  Lars Gullik Bjønnes 
19764 \noun default
19765 and 
19766 \noun on
19767 Pavel Sanda
19768 \end_layout
19769
19770 \begin_layout Subsection
19771 Introduction
19772 \end_layout
19773
19774 \begin_layout Standard
19775 \SpecialChar LyX
19776  supports some of the most basic RCS/CVS/SVN/GIT commands.
19777  If you need something a bit more sophisticated you will have to do that
19778  manually in a terminal.
19779 \end_layout
19780
19781 \begin_layout Standard
19782 Also note that CVS support is not as good as subversion support, so we advise
19783  using SVN instead.
19784  A good place to start learning Subversion is the SVN Book
19785 \begin_inset Foot
19786 status collapsed
19787
19788 \begin_layout Plain Layout
19789 \begin_inset CommandInset href
19790 LatexCommand href
19791 target "http://svnbook.red-bean.com/"
19792 literal "false"
19793
19794 \end_inset
19795
19796
19797 \end_layout
19798
19799 \end_inset
19800
19801 .
19802  In the case of RCS you should read 
19803 \begin_inset Quotes eld
19804 \end_inset
19805
19806 rcsintro
19807 \begin_inset Quotes erd
19808 \end_inset
19809
19810  (a man file, read it with 
19811 \family typewriter
19812 man rcsintro
19813 \family default
19814 ).
19815  This file describes all the basic features of RCS.
19816  You should especially notice the comment about a RCS directory, and the
19817  notion of a master RCS file (the file ending in 
19818 \family typewriter
19819 ,v
19820 \family default
19821 ).
19822 \end_layout
19823
19824 \begin_layout Standard
19825 Before you begin to use the version control features in \SpecialChar LyX
19826 , you should be
19827  familiar with RCS/CVS/SVN/GIT usage.
19828  The implementation in \SpecialChar LyX
19829  assumes a recent version of the GNU RCS or CVS/SVN
19830  package â€” no guarantees are made for older versions.
19831  Most of the log messages are not currently displayed after operations â€”
19832  you can check them in the Messages pane if you are unsure.
19833  Regular users of version control will appreciate the VC toolbar, which
19834  can be enabled via 
19835 \family sans
19836 View\SpecialChar menuseparator
19837 Toolbars\SpecialChar menuseparator
19838 Version
19839 \begin_inset space ~
19840 \end_inset
19841
19842 Control
19843 \family default
19844 .
19845 \end_layout
19846
19847 \begin_layout Standard
19848 For introducing your own external commands consult 
19849 \begin_inset Flex Code
19850 status collapsed
19851
19852 \begin_layout Plain Layout
19853 vc-command
19854 \end_layout
19855
19856 \end_inset
19857
19858  in the manual 
19859 \emph on
19860 \SpecialChar LyX
19861  Functions
19862 \emph default
19863 .
19864 \end_layout
19865
19866 \begin_layout Standard
19867 It is strongly recommended to store documents in uncompressed format if
19868  using version control (uncheck 
19869 \family sans
19870 Document\SpecialChar menuseparator
19871 Compressed
19872 \family default
19873  if it is checked): Uncompressed LyX documents are text files and therefore
19874  for merging two different versions by version control systems.
19875  Compressed LyX documents are binary files, which cannot be merged by version
19876  control systems.
19877 \end_layout
19878
19879 \begin_layout Subsection
19880 RCS commands in \SpecialChar LyX
19881
19882 \end_layout
19883
19884 \begin_layout Standard
19885 The following sections describe the RCS commands supported by \SpecialChar LyX
19886 .
19887  You can find them in the 
19888 \family sans
19889 File\SpecialChar menuseparator
19890 Version
19891 \begin_inset space ~
19892 \end_inset
19893
19894 Control
19895 \family default
19896  submenu.
19897  \SpecialChar LyX
19898  was tested against RCS 5.7/5.8.
19899 \end_layout
19900
19901 \begin_layout Subsubsection
19902
19903 \family sans
19904 Register
19905 \end_layout
19906
19907 \begin_layout Standard
19908 If your document is not under revision control, this is the only item shown
19909  in the menu.
19910  And if it is under revision control, the 
19911 \family sans
19912 Register
19913 \family default
19914  item is not visible.
19915  
19916 \end_layout
19917
19918 \begin_layout Standard
19919 This command registers your document with RCS (unless you are under the
19920  directory managed by CVS)\SpecialChar endofsentence
19921  You are asked interactively to supply an initial
19922  description of the document.
19923  The document is now set in Read-Only mode and you have to 
19924 \family sans
19925 Check
19926 \begin_inset space ~
19927 \end_inset
19928
19929 Out
19930 \begin_inset space ~
19931 \end_inset
19932
19933 For
19934 \begin_inset space ~
19935 \end_inset
19936
19937 Edit
19938 \family default
19939 , before making any changes to it.
19940  A document under revision control has a 
19941 \begin_inset Quotes eld
19942 \end_inset
19943
19944 [RCS:<version> <locker>]
19945 \begin_inset Quotes erd
19946 \end_inset
19947
19948  item tagged to the filename in the minibuffer.
19949 \end_layout
19950
19951 \begin_layout Standard
19952 RCS command that is run:
19953 \end_layout
19954
19955 \begin_layout LyX-Code
19956
19957 \family typewriter
19958 ci -q -u -i -t-"<initial description>" <file-name>
19959 \end_layout
19960
19961 \begin_layout Standard
19962 Read 
19963 \family typewriter
19964 man ci
19965 \family default
19966  to understand the switches.
19967  
19968 \end_layout
19969
19970 \begin_layout Subsubsection
19971
19972 \family sans
19973 Check In Changes
19974 \end_layout
19975
19976 \begin_layout Standard
19977 When you are finished editing a file, you check in your changes.
19978  When you do this, you are asked for a description of the changes.
19979  This is stored in the history log.
19980  The version number is bumped, your changes are applied to the master RCS
19981  file, the document is unlocked and set to Read-Only mode.
19982 \end_layout
19983
19984 \begin_layout Itemize
19985 RCS command: 
19986 \family typewriter
19987 ci -q -u -m"<description>" <file-name>
19988 \end_layout
19989
19990 \begin_layout Subsubsection
19991
19992 \family sans
19993 Check Out For Edit
19994 \end_layout
19995
19996 \begin_layout Standard
19997 By doing this you lock the document so that only you can edit it.
19998  This will also make the document Read-Write only for you.
19999  You will usually continue editing for a while and when you are finished
20000  you check in your changes.
20001  The status line is changed to reflect that you have locked the file.
20002 \end_layout
20003
20004 \begin_layout Itemize
20005 RCS command: 
20006 \family typewriter
20007 co -q -l <file-name>
20008 \end_layout
20009
20010 \begin_layout Subsubsection
20011
20012 \family sans
20013 Revert To Repository Version
20014 \end_layout
20015
20016 \begin_layout Standard
20017 This will discard all changes made to the document since the last check
20018  in.
20019  You get a warning before changes are discarded.
20020 \end_layout
20021
20022 \begin_layout Itemize
20023 RCS command: 
20024 \family typewriter
20025 co -f -u<version> <file-name>
20026 \end_layout
20027
20028 \begin_layout Subsubsection
20029
20030 \family sans
20031 Copy
20032 \end_layout
20033
20034 \begin_layout Standard
20035 This will create a copy of the current document.
20036  Since RCS does not support copy operations natively, the version history
20037  is not preserved, and the copy is added as a new file.
20038  It requires a clean document without any changes since the last checkin.
20039  You are asked for a file name and a description of the copy operation.
20040  After that the copy is created, both locally and in the repository.
20041  If the parent directories of the copied and original document differ, all
20042  relative paths of included files of the copy are adjusted (like in 
20043 \family sans
20044 File\SpecialChar menuseparator
20045 Save As
20046 \family default
20047 \SpecialChar ldots
20048 ).
20049  Finally, the copy is loaded instead of the original document.
20050 \end_layout
20051
20052 \begin_layout Labeling
20053 \labelwidthstring 00.00.0000
20054 RCS
20055 \begin_inset space ~
20056 \end_inset
20057
20058 commands: 
20059 \begin_inset space ~
20060 \end_inset
20061
20062
20063 \begin_inset Newline newline
20064 \end_inset
20065
20066 Copy 
20067 \begin_inset Flex Code
20068 status collapsed
20069
20070 \begin_layout Plain Layout
20071
20072 \family typewriter
20073 \begin_inset Quotes qld
20074 \end_inset
20075
20076 <file-name>
20077 \begin_inset Quotes qld
20078 \end_inset
20079
20080
20081 \end_layout
20082
20083 \end_inset
20084
20085  to 
20086 \begin_inset Flex Code
20087 status collapsed
20088
20089 \begin_layout Plain Layout
20090
20091 \family typewriter
20092 \begin_inset Quotes qld
20093 \end_inset
20094
20095 <new-file-name>
20096 \begin_inset Quotes qld
20097 \end_inset
20098
20099
20100 \end_layout
20101
20102 \end_inset
20103
20104
20105 \begin_inset Newline newline
20106 \end_inset
20107
20108
20109 \begin_inset Flex Code
20110 status collapsed
20111
20112 \begin_layout Plain Layout
20113 ci -q -u 
20114 \family typewriter
20115 -i 
20116 \begin_inset Quotes qld
20117 \end_inset
20118
20119 <new-file-name>
20120 \begin_inset Quotes qld
20121 \end_inset
20122
20123
20124 \end_layout
20125
20126 \end_inset
20127
20128
20129 \end_layout
20130
20131 \begin_layout Subsubsection
20132
20133 \family sans
20134 Undo Last Checkin
20135 \end_layout
20136
20137 \begin_layout Standard
20138 This makes as if the last check in never happened.
20139  No changes are made to the document loaded into \SpecialChar LyX
20140 , but the last version
20141  is removed from the master RCS file.
20142 \end_layout
20143
20144 \begin_layout Itemize
20145 RCS command: 
20146 \family typewriter
20147 rcs -o<version> <file-name>
20148 \end_layout
20149
20150 \begin_layout Subsubsection
20151
20152 \family sans
20153 Show History
20154 \end_layout
20155
20156 \begin_layout Standard
20157 This shows the complete history of the RCS document.
20158  The output of 
20159 \family typewriter
20160 rlog <file-name>
20161 \family default
20162  is shown in a browser.
20163  See 
20164 \family typewriter
20165 man rlog
20166 \family default
20167  for more info.
20168 \end_layout
20169
20170 \begin_layout Subsubsection
20171 Revision info
20172 \end_layout
20173
20174 \begin_layout Standard
20175 \SpecialChar LyX
20176  supports RCS version number, author name, date and time of last commit.
20177  All those are extracted from 
20178 \family typewriter
20179 rlog -r <file-name>
20180 \family default
20181 .
20182  See 
20183 \begin_inset CommandInset ref
20184 LatexCommand ref
20185 reference "subsec:VCS-Revision-Information"
20186
20187 \end_inset
20188
20189  for details.
20190 \end_layout
20191
20192 \begin_layout Subsection
20193 CVS commands in \SpecialChar LyX
20194
20195 \end_layout
20196
20197 \begin_layout Standard
20198 A subset of CVS operations is supported by \SpecialChar LyX
20199 .
20200  You can find the commands in the 
20201 \family sans
20202 File\SpecialChar menuseparator
20203 Version
20204 \begin_inset space ~
20205 \end_inset
20206
20207 Control
20208 \family default
20209  submenu.
20210  The version control system SVN is more powerful, so please use it instead
20211  of CVS if possible.
20212 \end_layout
20213
20214 \begin_layout Subsubsection
20215
20216 \family sans
20217 General CVS usage
20218 \end_layout
20219
20220 \begin_layout Standard
20221 If you start from scratch with CVS you have to create your repository and
20222  checkout the working copy with external tools.
20223  If you're using a client-server setup you may need to login before doing
20224  the first repository checkout.
20225 \end_layout
20226
20227 \begin_layout Standard
20228 If your documents are under revision control and others are using the same
20229  repository problems arise when different changes to the same document at
20230  the same location happen.
20231  Standard CVS repositories don't operate with a file locking mechanism.
20232  This may be surprising, but conflicts only occur if people disagree on
20233  the proper content of the same part of a document.
20234  So, if co-workers are used to communicate regularly, these conflicts occur
20235  rarely.
20236  If they don't communicate they have a fundamental problem anyway.
20237  Nevertheless some people like to work with so called 
20238 \begin_inset Quotes eld
20239 \end_inset
20240
20241 reserved checkouts
20242 \begin_inset Quotes erd
20243 \end_inset
20244
20245 .
20246  If they do so the working copy of all files is readonly when checked out
20247  first and the user starts editing after using a special command to make
20248  the working copy writable.
20249  When the changes are checked in the working copy returns to readonly state.
20250  With \SpecialChar LyX
20251  one has to edit the 
20252 \begin_inset Flex Code
20253 status collapsed
20254
20255 \begin_layout Plain Layout
20256 .cvsrc
20257 \end_layout
20258
20259 \end_inset
20260
20261  file and add the line 
20262 \begin_inset Flex Code
20263 status collapsed
20264
20265 \begin_layout Plain Layout
20266 cvs -r
20267 \end_layout
20268
20269 \end_inset
20270
20271  to work with reserved checkouts.
20272  The benefit is the possibility to see who is using a writable copy of some
20273  document.
20274  It's not guaranteed only one user makes a copy writable.
20275 \end_layout
20276
20277 \begin_layout Standard
20278 \SpecialChar LyX
20279  tries to guess if you're using reserved or non-reserved checkouts.
20280  If your working copy is readonly or it is writable and an additional copy
20281  of your document exists in the CVS/Base sub-directory a reserved otherwise
20282  a non-reserved checkout is assumed.
20283  When a reserved checkout is detected you have to use 
20284 \begin_inset Flex Noun
20285 status collapsed
20286
20287 \begin_layout Plain Layout
20288 Check Out
20289 \end_layout
20290
20291 \end_inset
20292
20293  to make your working copy writable if it's readonly.
20294  After doing so the 
20295 \begin_inset Flex Noun
20296 status collapsed
20297
20298 \begin_layout Plain Layout
20299 Check In
20300 \end_layout
20301
20302 \end_inset
20303
20304  operation is possible and that makes your working copy readonly again after
20305  transferring your changes to the repository.
20306 \end_layout
20307
20308 \begin_layout Standard
20309 More information about CVS can be found here 
20310 \begin_inset Flex URL
20311 status collapsed
20312
20313 \begin_layout Plain Layout
20314
20315 http://www.nongnu.org/cvs
20316 \end_layout
20317
20318 \end_inset
20319
20320  and here 
20321 \begin_inset Flex URL
20322 status collapsed
20323
20324 \begin_layout Plain Layout
20325
20326 http://ximbiot.com/cvs
20327 \end_layout
20328
20329 \end_inset
20330
20331 .
20332 \end_layout
20333
20334 \begin_layout Standard
20335 Read 
20336 \family typewriter
20337 man cvs
20338 \family default
20339  to understand the sub-commands and the switches mentioned below.
20340 \end_layout
20341
20342 \begin_layout Subsubsection
20343
20344 \family sans
20345 Register
20346 \end_layout
20347
20348 \begin_layout Standard
20349 If your document is not under revision control, this is the only item shown
20350  in the menu.
20351  And if it is under revision control, the 
20352 \family sans
20353 Register
20354 \family default
20355  item is not visible.
20356  
20357 \end_layout
20358
20359 \begin_layout Standard
20360 This command registers in CVS your document 
20361 \begin_inset Flex Strong
20362 status collapsed
20363
20364 \begin_layout Plain Layout
20365
20366 \emph on
20367 only
20368 \end_layout
20369
20370 \end_inset
20371
20372  in the case you have already the documents directory under CVS control
20373  (in particular 
20374 \family typewriter
20375 CVS/Entries
20376 \family default
20377  file exists).
20378  This means you have to create or checkout the archive by yourself using
20379  external tools.
20380  (In case you forget that step \SpecialChar LyX
20381  registers the document with RCS.)
20382 \end_layout
20383
20384 \begin_layout Standard
20385 Then you are asked interactively to supply an initial description of the
20386  document.
20387  Don't forget that registered file is not yet checked in.
20388 \end_layout
20389
20390 \begin_layout Standard
20391 CVS command that is run: 
20392 \family typewriter
20393 cvs -q add -m"<entered message>" "<file-name>"
20394 \end_layout
20395
20396 \begin_layout Standard
20397 The term 
20398 \family typewriter
20399 "<file-name>"
20400 \family default
20401  above and for all other CVS commands is an abbreviation for 
20402 \begin_inset Quotes eld
20403 \end_inset
20404
20405 change the current working directory to file location and use the file name
20406  without path component as argument
20407 \begin_inset Quotes erd
20408 \end_inset
20409
20410 .
20411 \end_layout
20412
20413 \begin_layout Subsubsection
20414
20415 \family sans
20416 Check In Changes
20417 \end_layout
20418
20419 \begin_layout Standard
20420 When you are finished editing a file, you commit your changes.
20421  When you do this and you had changed the document, you are asked for a
20422  description of the changes.
20423  After that changes are written to the repository.
20424  In case you didn't change the document and a reserved checkout is detected
20425  the reservation made on 
20426 \begin_inset Flex Noun
20427 status collapsed
20428
20429 \begin_layout Plain Layout
20430 Check Out
20431 \end_layout
20432
20433 \end_inset
20434
20435  is undone.
20436 \end_layout
20437
20438 \begin_layout Labeling
20439 \labelwidthstring 00.00.0000
20440 CVS
20441 \begin_inset space ~
20442 \end_inset
20443
20444 command: 
20445 \begin_inset space ~
20446 \end_inset
20447
20448
20449 \begin_inset Newline newline
20450 \end_inset
20451
20452
20453 \begin_inset Flex Code
20454 status collapsed
20455
20456 \begin_layout Plain Layout
20457 cvs 
20458 \family typewriter
20459 -q commit -m"<description>" "<file-name>"
20460 \end_layout
20461
20462 \end_inset
20463
20464  or
20465 \begin_inset Newline newline
20466 \end_inset
20467
20468
20469 \begin_inset Flex Code
20470 status collapsed
20471
20472 \begin_layout Plain Layout
20473 cvs -q unedit 
20474 \family typewriter
20475 "<file-name>"
20476 \end_layout
20477
20478 \end_inset
20479
20480
20481 \end_layout
20482
20483 \begin_layout Subsubsection
20484
20485 \family sans
20486 Check Out Changes
20487 \end_layout
20488
20489 \begin_layout Standard
20490 When you are sharing a repository with others, you may have to incorporate
20491  their changes into your working copy.
20492 \end_layout
20493
20494 \begin_layout Standard
20495 CVS command: 
20496 \family typewriter
20497 cvs -q update "<file-name>"
20498 \end_layout
20499
20500 \begin_layout Standard
20501 If a readonly checkout is detected the working copy is made writable and
20502  reserved.
20503 \end_layout
20504
20505 \begin_layout Standard
20506 CVS command: 
20507 \family typewriter
20508 cvs -q edit "<file-name>"
20509 \end_layout
20510
20511 \begin_layout Subsubsection
20512
20513 \family sans
20514 Revert To Repository Version
20515 \end_layout
20516
20517 \begin_layout Standard
20518 This will discard all changes made to the document since the last check
20519  in.
20520  You get a warning before changes are discarded.
20521  Firstly the file is deleted, secondly CVS update command is run.
20522 \end_layout
20523
20524 \begin_layout Standard
20525 CVS command: 
20526 \family typewriter
20527 cvs -q update "<file-name>"
20528 \end_layout
20529
20530 \begin_layout Standard
20531 If a reserved checkout is detected and the working copy has no changes only
20532  the reservation is undone.
20533 \end_layout
20534
20535 \begin_layout Standard
20536 CVS command: 
20537 \family typewriter
20538 cvs -q unedit "<file-name>"
20539 \end_layout
20540
20541 \begin_layout Subsubsection
20542
20543 \family sans
20544 Copy
20545 \end_layout
20546
20547 \begin_layout Standard
20548 This will create a copy of the current document.
20549  Since CVS does not support copy operations natively, the version history
20550  is not preserved, and the copy is added as a new file.
20551  It requires a clean document without any changes since the last checkin.
20552  You are asked for a file name and a description of the copy operation.
20553  After that the copy is created, both locally and in the repository.
20554  If the parent directories of the copied and original document differ, all
20555  relative paths of included files of the copy are adjusted (like in 
20556 \family sans
20557 File\SpecialChar menuseparator
20558 Save As
20559 \family default
20560 \SpecialChar ldots
20561 ).
20562  Finally, the copy is loaded instead of the original document.
20563 \end_layout
20564
20565 \begin_layout Labeling
20566 \labelwidthstring 00.00.0000
20567 CVS
20568 \begin_inset space ~
20569 \end_inset
20570
20571 commands: 
20572 \begin_inset space ~
20573 \end_inset
20574
20575
20576 \begin_inset Newline newline
20577 \end_inset
20578
20579 Copy 
20580 \begin_inset Flex Code
20581 status collapsed
20582
20583 \begin_layout Plain Layout
20584
20585 \family typewriter
20586 \lang ngerman
20587 "
20588 \lang english
20589 <file-name>
20590 \lang ngerman
20591 "
20592 \end_layout
20593
20594 \end_inset
20595
20596  to 
20597 \begin_inset Flex Code
20598 status collapsed
20599
20600 \begin_layout Plain Layout
20601
20602 \family typewriter
20603 \lang ngerman
20604 "
20605 \lang english
20606 <new-file-name>
20607 \lang ngerman
20608 "
20609 \end_layout
20610
20611 \end_inset
20612
20613
20614 \begin_inset Newline newline
20615 \end_inset
20616
20617
20618 \begin_inset Flex Code
20619 status collapsed
20620
20621 \begin_layout Plain Layout
20622 cvs -q add 
20623 \family typewriter
20624 \lang ngerman
20625 "
20626 \lang english
20627 <new-file-name>
20628 \lang ngerman
20629 "
20630 \end_layout
20631
20632 \end_inset
20633
20634
20635 \end_layout
20636
20637 \begin_layout Subsubsection
20638
20639 \family sans
20640 Rename
20641 \end_layout
20642
20643 \begin_layout Standard
20644 This will rename the current document.
20645  Since CVS does not support rename operations natively, the version history
20646  is not preserved, the renamed document is added as a new file, and the
20647  original document is deleted.
20648  It requires a clean document without any changes since the last checkin.
20649  You are asked for a file name and a description of the rename operation.
20650  After that the document is renamed, both locally and in the repository.
20651  If the parent directories of the new and old file names differ, all relative
20652  paths of included files are adjusted (like in 
20653 \family sans
20654 File\SpecialChar menuseparator
20655 Save As
20656 \family default
20657 \SpecialChar ldots
20658 ).
20659  Finally, the document is reloaded using the new name.
20660 \end_layout
20661
20662 \begin_layout Labeling
20663 \labelwidthstring 00.00.0000
20664 CVS
20665 \begin_inset space ~
20666 \end_inset
20667
20668 commands: 
20669 \begin_inset space ~
20670 \end_inset
20671
20672
20673 \begin_inset Newline newline
20674 \end_inset
20675
20676 Rename 
20677 \begin_inset Flex Code
20678 status collapsed
20679
20680 \begin_layout Plain Layout
20681
20682 \family typewriter
20683 \lang ngerman
20684 "
20685 \lang english
20686 <file-name>
20687 \lang ngerman
20688 "
20689 \end_layout
20690
20691 \end_inset
20692
20693  to 
20694 \begin_inset Flex Code
20695 status collapsed
20696
20697 \begin_layout Plain Layout
20698
20699 \family typewriter
20700 \lang ngerman
20701 "
20702 \lang english
20703 <new-file-name>
20704 \lang ngerman
20705 "
20706 \end_layout
20707
20708 \end_inset
20709
20710
20711 \begin_inset Newline newline
20712 \end_inset
20713
20714
20715 \begin_inset Flex Code
20716 status collapsed
20717
20718 \begin_layout Plain Layout
20719 cvs -q add 
20720 \family typewriter
20721 \lang ngerman
20722 "
20723 \lang english
20724 <new-file-name>
20725 \lang ngerman
20726 "
20727 \end_layout
20728
20729 \end_inset
20730
20731
20732 \begin_inset Newline newline
20733 \end_inset
20734
20735
20736 \begin_inset Flex Code
20737 status collapsed
20738
20739 \begin_layout Plain Layout
20740 cvs -q remove 
20741 \family typewriter
20742 \lang ngerman
20743 "
20744 \lang english
20745 <file-name>
20746 \lang ngerman
20747 "
20748 \end_layout
20749
20750 \end_inset
20751
20752
20753 \end_layout
20754
20755 \begin_layout Subsubsection
20756 Update of the local directory checkout from repository
20757 \end_layout
20758
20759 \begin_layout Standard
20760 Once your documents gets more complex, containing sub-documents and pictures,
20761  including external 
20762 \begin_inset Flex Code
20763 status collapsed
20764
20765 \begin_layout Plain Layout
20766 .tex
20767 \end_layout
20768
20769 \end_inset
20770
20771  files and so on using version control becomes more complicated.
20772  \SpecialChar LyX
20773  supports updating the whole tree in which resides the document.
20774  This become especially useful once you cooperate with people which neither
20775  have detailed knowledge about CVS usage nor they have ambition to commit
20776  additional material to the repository.
20777  You have to organize the files structure so that all external files are
20778  in the same directory or subdirectories of the document.
20779  It's good practice anyway to store multipart documents in an extra directory.
20780 \end_layout
20781
20782 \begin_layout Standard
20783 The 
20784 \begin_inset Flex Code
20785 status collapsed
20786
20787 \begin_layout Plain Layout
20788 Update local directory from repository
20789 \end_layout
20790
20791 \end_inset
20792
20793  command updates the whole directory.
20794  If local changes are detected user is warned before update starts.
20795  In case of merge conflicts both versions of the conflicting document parts
20796  are placed in the final document.
20797  You have to review and correct the result of the merge.
20798  You'll find the conflicts enclosed in pairs of 
20799 \begin_inset Flex Code
20800 status collapsed
20801
20802 \begin_layout Plain Layout
20803 <<<<<<<
20804 \end_layout
20805
20806 \end_inset
20807
20808  and 
20809 \begin_inset Flex Code
20810 status collapsed
20811
20812 \begin_layout Plain Layout
20813 >>>>>>>
20814 \end_layout
20815
20816 \end_inset
20817
20818  separated by 
20819 \begin_inset Flex Code
20820 status collapsed
20821
20822 \begin_layout Plain Layout
20823 =======
20824 \end_layout
20825
20826 \end_inset
20827
20828 .
20829  The first part is your version as before the update operation with the
20830  document name prepended.
20831  The second one is the repository version with the version number after
20832  the sequence of 
20833 \begin_inset Flex Code
20834 status collapsed
20835
20836 \begin_layout Plain Layout
20837 >
20838 \end_layout
20839
20840 \end_inset
20841
20842  signs.
20843 \end_layout
20844
20845 \begin_layout Labeling
20846 \labelwidthstring 00.00.0000
20847 CVS
20848 \begin_inset space ~
20849 \end_inset
20850
20851 commands: 
20852 \begin_inset space ~
20853 \end_inset
20854
20855
20856 \begin_inset Newline newline
20857 \end_inset
20858
20859
20860 \begin_inset Flex Code
20861 status collapsed
20862
20863 \begin_layout Plain Layout
20864 cd $path; cvs diff 
20865 \family typewriter
20866 "."
20867 \end_layout
20868
20869 \end_inset
20870
20871  (Ask if changes are detected.)
20872 \begin_inset Newline newline
20873 \end_inset
20874
20875
20876 \begin_inset Flex Code
20877 status collapsed
20878
20879 \begin_layout Plain Layout
20880 cd $path; cvs -q update 
20881 \family typewriter
20882 "."
20883 \end_layout
20884
20885 \end_inset
20886
20887
20888 \end_layout
20889
20890 \begin_layout Standard
20891 where 
20892 \begin_inset Flex Code
20893 status collapsed
20894
20895 \begin_layout Plain Layout
20896 $path
20897 \end_layout
20898
20899 \end_inset
20900
20901  stands for the path to the document.
20902 \end_layout
20903
20904 \begin_layout Subsubsection
20905
20906 \family sans
20907 Show History
20908 \end_layout
20909
20910 \begin_layout Standard
20911 This shows the complete history of the CVS document.
20912  The output of 
20913 \family typewriter
20914 cvs log "<file-name>"
20915 \family default
20916  is shown in a browser.
20917 \end_layout
20918
20919 \begin_layout Subsubsection
20920 Revision info
20921 \end_layout
20922
20923 \begin_layout Standard
20924 \SpecialChar LyX
20925  supports CVS version number, author name, date and time of last commit.
20926  All those are extracted from 
20927 \family typewriter
20928 cvs log -r <file-name>
20929 \family default
20930 .
20931  See 
20932 \begin_inset CommandInset ref
20933 LatexCommand ref
20934 reference "subsec:VCS-Revision-Information"
20935
20936 \end_inset
20937
20938  for details.
20939 \end_layout
20940
20941 \begin_layout Subsection
20942 SVN commands in \SpecialChar LyX
20943
20944 \end_layout
20945
20946 \begin_layout Standard
20947 SVN is now partially supported by \SpecialChar LyX
20948 .
20949  You can find the commands in the 
20950 \family sans
20951 File\SpecialChar menuseparator
20952 Version
20953 \begin_inset space ~
20954 \end_inset
20955
20956 Control
20957 \family default
20958  submenu.
20959  Please note that if you use password protected access to repository via
20960  ssh, you will be asked in terminal window.
20961  \SpecialChar LyX
20962  was tested against SVN 1.5, 1.6, 1.7 and 1.8
20963 \begin_inset Foot
20964 status collapsed
20965
20966 \begin_layout Plain Layout
20967 Most of the commands will work with 1.4 too, see 
20968 \begin_inset CommandInset ref
20969 LatexCommand ref
20970 reference "subsec:SVN-Repo-Update"
20971
20972 \end_inset
20973
20974 .
20975  There seems to be currently unresolved permissions problem under SVN 1.8
20976  with reverting changes when file is locked.
20977 \end_layout
20978
20979 \end_inset
20980
20981
20982 \end_layout
20983
20984 \begin_layout Subsubsection
20985
20986 \family sans
20987 Register
20988 \end_layout
20989
20990 \begin_layout Standard
20991 If your document is not under revision control, this is the only item shown
20992  in the menu.
20993  And if it is under revision control, the 
20994 \family sans
20995 Register
20996 \family default
20997  item is not visible.
20998 \end_layout
20999
21000 \begin_layout Standard
21001 This command registers in SVN your document ONLY in case you have already
21002  the documents directory under SVN control (in particular 
21003 \family typewriter
21004 .svn/entries
21005 \family default
21006  file exists).
21007  This means you have to checkout the archive by yourself.
21008 \end_layout
21009
21010 \begin_layout Standard
21011 Then you are asked interactively to supply an initial description of the
21012  document.
21013  Don't forget that registered file is not yet commited.
21014 \end_layout
21015
21016 \begin_layout Standard
21017 SVN command that is run: 
21018 \family typewriter
21019 svn add -q 
21020 \begin_inset Quotes qld
21021 \end_inset
21022
21023 <file-name>
21024 \begin_inset Quotes qld
21025 \end_inset
21026
21027
21028 \end_layout
21029
21030 \begin_layout Standard
21031 Read 
21032 \family typewriter
21033 man svn
21034 \family default
21035  to understand the switches.
21036 \end_layout
21037
21038 \begin_layout Subsubsection
21039
21040 \family sans
21041 Check In Changes
21042 \end_layout
21043
21044 \begin_layout Standard
21045 When you are finished editing a file, you commit your changes.
21046  When you do this, you are asked for a description of the changes.
21047  After that changes are commited.
21048 \end_layout
21049
21050 \begin_layout Standard
21051 SVN command:
21052 \begin_inset Foot
21053 status collapsed
21054
21055 \begin_layout Plain Layout
21056 In case locking is not enabled.
21057  See Section 
21058 \begin_inset CommandInset ref
21059 LatexCommand ref
21060 reference "subsec:SVN-File-Locking"
21061
21062 \end_inset
21063
21064 .
21065 \end_layout
21066
21067 \end_inset
21068
21069  
21070 \family typewriter
21071 svn commit -q -m"<description>" <file-name>
21072 \end_layout
21073
21074 \begin_layout Subsubsection
21075
21076 \family sans
21077 Check Out For Edit
21078 \end_layout
21079
21080 \begin_layout Standard
21081 Updates the changes of this file from the repository.
21082  Be sure you understand SVN merging and conflicts resolving before using
21083  this function, because all conflicts has to be resolved manually by you!
21084 \end_layout
21085
21086 \begin_layout Standard
21087 SVN command:
21088 \begin_inset Foot
21089 status collapsed
21090
21091 \begin_layout Plain Layout
21092 Ditto.
21093 \end_layout
21094
21095 \end_inset
21096
21097  
21098 \family typewriter
21099 svn update --non-interactive 
21100 \begin_inset Quotes qld
21101 \end_inset
21102
21103 <file-name>
21104 \begin_inset Quotes qld
21105 \end_inset
21106
21107
21108 \end_layout
21109
21110 \begin_layout Subsubsection
21111
21112 \family sans
21113 Revert To Repository Version
21114 \end_layout
21115
21116 \begin_layout Standard
21117 This will discard all changes made to the document since the last check
21118  in.
21119  You get a warning before changes are discarded.
21120 \end_layout
21121
21122 \begin_layout Standard
21123 SVN command: 
21124 \family typewriter
21125 svn revert -q 
21126 \begin_inset Quotes qld
21127 \end_inset
21128
21129 <file-name>
21130 \begin_inset Quotes qld
21131 \end_inset
21132
21133
21134 \end_layout
21135
21136 \begin_layout Subsubsection
21137
21138 \family sans
21139 Copy
21140 \end_layout
21141
21142 \begin_layout Standard
21143 This will create a copy of the current document including the version history.
21144  It requires a clean document without any changes since the last checkin.
21145  You are asked for a file name and a description of the copy operation.
21146  After that the copy is created, both locally and in the repository.
21147  If the parent directories of the copied and original document differ, all
21148  relative paths of included files of the copy are adjusted (like in 
21149 \family sans
21150 File\SpecialChar menuseparator
21151 Save As
21152 \family default
21153 \SpecialChar ldots
21154 ).
21155  Finally, the copy is loaded instead of the original document.
21156 \end_layout
21157
21158 \begin_layout Labeling
21159 \labelwidthstring 00.00.0000
21160 SVN
21161 \begin_inset space ~
21162 \end_inset
21163
21164 commands: 
21165 \begin_inset space ~
21166 \end_inset
21167
21168
21169 \begin_inset Newline newline
21170 \end_inset
21171
21172
21173 \begin_inset Flex Code
21174 status collapsed
21175
21176 \begin_layout Plain Layout
21177 svn copy -q 
21178 \family typewriter
21179
21180 \begin_inset Quotes qld
21181 \end_inset
21182
21183 <file-name>
21184 \begin_inset Quotes qld
21185 \end_inset
21186
21187  
21188 \begin_inset Quotes qld
21189 \end_inset
21190
21191 <new-file-name>
21192 \begin_inset Quotes qld
21193 \end_inset
21194
21195
21196 \end_layout
21197
21198 \end_inset
21199
21200
21201 \begin_inset Newline newline
21202 \end_inset
21203
21204
21205 \begin_inset Flex Code
21206 status collapsed
21207
21208 \begin_layout Plain Layout
21209 svn commit
21210 \end_layout
21211
21212 \end_inset
21213
21214
21215 \end_layout
21216
21217 \begin_layout Subsubsection
21218
21219 \family sans
21220 Rename
21221 \end_layout
21222
21223 \begin_layout Standard
21224 This will rename the current document including the version history.
21225  It requires a clean document without any changes since the last checkin.
21226  You are asked for a file name and a description of the rename operation.
21227  After that the document is renamed, both locally and in the repository.
21228  If the parent directories of the new and old file names differ, all relative
21229  paths of included files are adjusted (like in 
21230 \family sans
21231 File\SpecialChar menuseparator
21232 Save As
21233 \family default
21234 \SpecialChar ldots
21235 ).
21236  Finally, the document is reloaded using the new name.
21237 \end_layout
21238
21239 \begin_layout Labeling
21240 \labelwidthstring 00.00.0000
21241 SVN
21242 \begin_inset space ~
21243 \end_inset
21244
21245 commands: 
21246 \begin_inset space ~
21247 \end_inset
21248
21249
21250 \begin_inset Newline newline
21251 \end_inset
21252
21253
21254 \begin_inset Flex Code
21255 status collapsed
21256
21257 \begin_layout Plain Layout
21258 svn move -q 
21259 \family typewriter
21260
21261 \begin_inset Quotes qld
21262 \end_inset
21263
21264 <file-name>
21265 \begin_inset Quotes qld
21266 \end_inset
21267
21268  
21269 \begin_inset Quotes qld
21270 \end_inset
21271
21272 <new-file-name>
21273 \begin_inset Quotes qld
21274 \end_inset
21275
21276
21277 \end_layout
21278
21279 \end_inset
21280
21281
21282 \begin_inset Newline newline
21283 \end_inset
21284
21285
21286 \begin_inset Flex Code
21287 status collapsed
21288
21289 \begin_layout Plain Layout
21290 svn commit
21291 \end_layout
21292
21293 \end_inset
21294
21295
21296 \end_layout
21297
21298 \begin_layout Subsubsection
21299 \begin_inset CommandInset label
21300 LatexCommand label
21301 name "subsec:SVN-Repo-Update"
21302
21303 \end_inset
21304
21305 Update of the local directory checkout from repository
21306 \begin_inset Foot
21307 status collapsed
21308
21309 \begin_layout Plain Layout
21310 Note that this command will work only with subversion 
21311 \begin_inset Formula $\geqq1.5$
21312 \end_inset
21313
21314
21315 \end_layout
21316
21317 \end_inset
21318
21319
21320 \end_layout
21321
21322 \begin_layout Standard
21323 All the commands above have one shortcoming â€“ they deal with the current
21324  document only.
21325  Once your document contains pictures, includes external 
21326 \begin_inset Flex Code
21327 status collapsed
21328
21329 \begin_layout Plain Layout
21330 .tex
21331 \end_layout
21332
21333 \end_inset
21334
21335  files and so on administration becomes more complicated.
21336  \SpecialChar LyX
21337  now supports updating the whole tree in which resides the document
21338 \begin_inset Foot
21339 status collapsed
21340
21341 \begin_layout Plain Layout
21342 One need to organize the files structure so that all external files are
21343  in the same directory or subdirectories of the document.
21344  
21345 \end_layout
21346
21347 \end_inset
21348
21349 .
21350  This become especially useful once you cooperate with people which neither
21351  know about subversion management nor they have ambition to commit additional
21352  material to the repository.
21353  
21354 \end_layout
21355
21356 \begin_layout Standard
21357 \begin_inset Flex Code
21358 status collapsed
21359
21360 \begin_layout Plain Layout
21361 Update local directory from repository
21362 \end_layout
21363
21364 \end_inset
21365
21366  command updates the whole directory and in case of merge conflicts local
21367  version of the files are left, so no unintended data loss occurs.
21368  If local changes are detected user is warned before update starts.
21369 \end_layout
21370
21371 \begin_layout Labeling
21372 \labelwidthstring 00.00.0000
21373 SVN
21374 \begin_inset space ~
21375 \end_inset
21376
21377 commands: 
21378 \begin_inset space ~
21379 \end_inset
21380
21381
21382 \begin_inset Newline newline
21383 \end_inset
21384
21385
21386 \begin_inset Flex Code
21387 status collapsed
21388
21389 \begin_layout Plain Layout
21390 svn diff $path
21391 \end_layout
21392
21393 \end_inset
21394
21395  (Ask if changes are detected.)
21396 \begin_inset Newline newline
21397 \end_inset
21398
21399
21400 \begin_inset Flex Code
21401 status collapsed
21402
21403 \begin_layout Plain Layout
21404 svn update --accept mine-full $path
21405 \end_layout
21406
21407 \end_inset
21408
21409
21410 \end_layout
21411
21412 \begin_layout Standard
21413 where 
21414 \begin_inset Flex Code
21415 status collapsed
21416
21417 \begin_layout Plain Layout
21418 $path
21419 \end_layout
21420
21421 \end_inset
21422
21423  stands for the path to the document.
21424 \end_layout
21425
21426 \begin_layout Subsubsection
21427
21428 \family sans
21429 Show History
21430 \end_layout
21431
21432 \begin_layout Standard
21433 This shows the complete history of the SVN document.
21434  The output of 
21435 \family typewriter
21436 svn log 
21437 \begin_inset Quotes qld
21438 \end_inset
21439
21440 <file-name>
21441 \begin_inset Quotes qld
21442 \end_inset
21443
21444
21445 \family default
21446  is shown in a browser.
21447 \end_layout
21448
21449 \begin_layout Subsubsection
21450 File Locking
21451 \begin_inset CommandInset label
21452 LatexCommand label
21453 name "subsec:SVN-File-Locking"
21454
21455 \end_inset
21456
21457
21458 \end_layout
21459
21460 \begin_layout Standard
21461 The file exchange through various revision control systems brings the problem
21462  of merge conflicts in case two different users try to edit the same (parts
21463  of) document.
21464  When such a conflict happens it needs manual resolving and one reasonable
21465  alternative is to provide some kind of locking mechanism, which guarantees
21466  that only one user is allowed to edit file at the given time.
21467 \end_layout
21468
21469 \begin_layout Standard
21470 SVN has two such mechanisms to provide mutual exclusivity for file access
21471  â€“ locks and automatic setting of write permissions (see sec.
21472  
21473 \begin_inset CommandInset ref
21474 LatexCommand ref
21475 reference "subsec:Automatical-Locking-Property"
21476
21477 \end_inset
21478
21479 ) based on 
21480 \begin_inset Flex Code
21481 status collapsed
21482
21483 \begin_layout Plain Layout
21484 svn:needs-lock
21485 \end_layout
21486
21487 \end_inset
21488
21489  file svn property
21490 \begin_inset Foot
21491 status collapsed
21492
21493 \begin_layout Plain Layout
21494 \begin_inset Flex URL
21495 status open
21496
21497 \begin_layout Plain Layout
21498
21499 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
21500 \end_layout
21501
21502 \end_inset
21503
21504
21505 \end_layout
21506
21507 \end_inset
21508
21509 .
21510  If this property is detected for a given document \SpecialChar LyX
21511  starts to use SVN locks
21512  for document editing automatically and the whole check-in/out mechanism
21513  switches to the same regimen as for RCS.
21514  This in particular means there are two different modes of file use in \SpecialChar LyX
21515 :
21516 \end_layout
21517
21518 \begin_layout Itemize
21519 Unlocked state.
21520  The loaded file is in the read-only mode.
21521  For editing on needs to check-out.
21522  
21523 \emph on
21524 Check-out
21525 \emph default
21526  consists of updating from the repository and gaining write lock.
21527  If the lock is not possible to obtain, we remain in unlocked state.
21528 \end_layout
21529
21530 \begin_layout Itemize
21531 Locked state.
21532  The loaded file is in the 
21533 \begin_inset Quotes els
21534 \end_inset
21535
21536 normal
21537 \begin_inset Quotes ers
21538 \end_inset
21539
21540  edit mode.
21541  No other user is allowed to edit the file.
21542  
21543 \emph on
21544 Check-in
21545 \emph default
21546  consists of commiting changes and releasing write-lock.
21547  If no changes have been made to the document, no commit will be produced
21548 \begin_inset Foot
21549 status collapsed
21550
21551 \begin_layout Plain Layout
21552 Don't be puzzled by the fact that you will be asked for commit message anyway.
21553 \end_layout
21554
21555 \end_inset
21556
21557  and only the write-lock will be released.
21558 \end_layout
21559
21560 \begin_layout Standard
21561 SVN commands:
21562 \end_layout
21563
21564 \begin_layout Labeling
21565 \labelwidthstring 00.00.0000
21566 Check-in:
21567 \family typewriter
21568  svn commit -q -m"<description>" "<file-name>"
21569 \begin_inset Newline newline
21570 \end_inset
21571
21572 svn unlock "<file-name>"
21573 \end_layout
21574
21575 \begin_layout Labeling
21576 \labelwidthstring 00.00.0000
21577 Check-out: 
21578 \family typewriter
21579 svn update "<file-name>"
21580 \begin_inset Newline newline
21581 \end_inset
21582
21583 svn lock "<file-name>"
21584 \end_layout
21585
21586 \begin_layout Subsubsection
21587
21588 \family typewriter
21589 \begin_inset CommandInset label
21590 LatexCommand label
21591 name "subsec:Automatical-Locking-Property"
21592
21593 \end_inset
21594
21595
21596 \family default
21597 Automatic Locking Property
21598 \end_layout
21599
21600 \begin_layout Standard
21601 The above mentioned automatic setting of write permissions of the .lyx file
21602  can be set through
21603 \family sans
21604  File\SpecialChar menuseparator
21605 Version
21606 \begin_inset space ~
21607 \end_inset
21608
21609 Control\SpecialChar menuseparator
21610 Use Locking Property
21611 \family default
21612 .
21613  This command is active only when the file is not locked on the svn server
21614  (i.e.
21615  you need to check-out before proceeding).
21616 \end_layout
21617
21618 \begin_layout Labeling
21619 \labelwidthstring 00.00.0000
21620 SVN
21621 \begin_inset space ~
21622 \end_inset
21623
21624 commands:
21625 \end_layout
21626
21627 \begin_layout Labeling
21628 \labelwidthstring 00.00.0000
21629 Set:
21630 \family typewriter
21631  svn propset svn:needs-lock ON "<file-name>"
21632 \end_layout
21633
21634 \begin_layout Labeling
21635 \labelwidthstring 00.00.0000
21636 Unset: 
21637 \family typewriter
21638 svn propdel svn:needs-lock "<file-name>"
21639 \end_layout
21640
21641 \begin_layout Subsubsection
21642 \begin_inset CommandInset label
21643 LatexCommand label
21644 name "subsec:VCS-Revision-Information"
21645
21646 \end_inset
21647
21648 Revision Information in Documents
21649 \end_layout
21650
21651 \begin_layout Standard
21652 There are more possibilities how to activate revision information in our
21653  document.
21654 \end_layout
21655
21656 \begin_layout Itemize
21657 \SpecialChar LyX
21658  supports directly:
21659 \end_layout
21660
21661 \begin_deeper
21662 \begin_layout Itemize
21663 tree revision information (
21664 \begin_inset Flex Code
21665 status collapsed
21666
21667 \begin_layout Plain Layout
21668 vcs-tree-revision
21669 \end_layout
21670
21671 \end_inset
21672
21673 ).
21674  The result is the output of the 
21675 \begin_inset Flex Code
21676 status collapsed
21677
21678 \begin_layout Plain Layout
21679 svnversion
21680 \end_layout
21681
21682 \end_inset
21683
21684  command, the following table gives you an idea, how to read the results.
21685 \end_layout
21686
21687 \begin_layout Standard
21688 \align center
21689 \begin_inset Tabular
21690 <lyxtabular version="3" rows="6" columns="2">
21691 <features tabularvalignment="middle">
21692 <column alignment="left" valignment="top">
21693 <column alignment="left" valignment="top">
21694 <row>
21695 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21696 \begin_inset Text
21697
21698 \begin_layout Plain Layout
21699
21700 \series bold
21701 Output
21702 \end_layout
21703
21704 \end_inset
21705 </cell>
21706 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21707 \begin_inset Text
21708
21709 \begin_layout Plain Layout
21710
21711 \series bold
21712 Meaning
21713 \end_layout
21714
21715 \end_inset
21716 </cell>
21717 </row>
21718 <row>
21719 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
21720 \begin_inset Text
21721
21722 \begin_layout Plain Layout
21723 4123:4168
21724 \end_layout
21725
21726 \end_inset
21727 </cell>
21728 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21729 \begin_inset Text
21730
21731 \begin_layout Plain Layout
21732 mixed revision working copy
21733 \end_layout
21734
21735 \end_inset
21736 </cell>
21737 </row>
21738 <row>
21739 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
21740 \begin_inset Text
21741
21742 \begin_layout Plain Layout
21743 4168M
21744 \end_layout
21745
21746 \end_inset
21747 </cell>
21748 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21749 \begin_inset Text
21750
21751 \begin_layout Plain Layout
21752 modified working copy
21753 \end_layout
21754
21755 \end_inset
21756 </cell>
21757 </row>
21758 <row>
21759 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
21760 \begin_inset Text
21761
21762 \begin_layout Plain Layout
21763 4123S
21764 \end_layout
21765
21766 \end_inset
21767 </cell>
21768 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21769 \begin_inset Text
21770
21771 \begin_layout Plain Layout
21772 switched working copy
21773 \end_layout
21774
21775 \end_inset
21776 </cell>
21777 </row>
21778 <row>
21779 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
21780 \begin_inset Text
21781
21782 \begin_layout Plain Layout
21783 4123P
21784 \end_layout
21785
21786 \end_inset
21787 </cell>
21788 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21789 \begin_inset Text
21790
21791 \begin_layout Plain Layout
21792 partial working copy, from a sparse checkout
21793 \end_layout
21794
21795 \end_inset
21796 </cell>
21797 </row>
21798 <row>
21799 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21800 \begin_inset Text
21801
21802 \begin_layout Plain Layout
21803 4123:4168MS
21804 \end_layout
21805
21806 \end_inset
21807 </cell>
21808 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21809 \begin_inset Text
21810
21811 \begin_layout Plain Layout
21812 mixed revision, modified, switched working copy
21813 \end_layout
21814
21815 \end_inset
21816 </cell>
21817 </row>
21818 </lyxtabular>
21819
21820 \end_inset
21821
21822
21823 \end_layout
21824
21825 \begin_layout Itemize
21826 file revision information.
21827  The result comes from parsing the output of 
21828 \begin_inset Flex Code
21829 status collapsed
21830
21831 \begin_layout Plain Layout
21832 svn
21833 \begin_inset space ~
21834 \end_inset
21835
21836 info
21837 \begin_inset space ~
21838 \end_inset
21839
21840 --xml
21841 \begin_inset space ~
21842 \end_inset
21843
21844 file.lyx
21845 \end_layout
21846
21847 \end_inset
21848
21849 .
21850  Supported flags are:
21851 \end_layout
21852
21853 \begin_deeper
21854 \begin_layout Itemize
21855 version number of the last commit (
21856 \begin_inset Flex Code
21857 status collapsed
21858
21859 \begin_layout Plain Layout
21860 vcs-revision
21861 \end_layout
21862
21863 \end_inset
21864
21865 )
21866 \end_layout
21867
21868 \begin_layout Itemize
21869 author of the last commit (
21870 \begin_inset Flex Code
21871 status collapsed
21872
21873 \begin_layout Plain Layout
21874 vcs-author
21875 \end_layout
21876
21877 \end_inset
21878
21879 )
21880 \end_layout
21881
21882 \begin_layout Itemize
21883 date of the last commit (
21884 \begin_inset Flex Code
21885 status collapsed
21886
21887 \begin_layout Plain Layout
21888 vcs-date
21889 \end_layout
21890
21891 \end_inset
21892
21893 )
21894 \end_layout
21895
21896 \begin_layout Itemize
21897 time of the last commit (
21898 \begin_inset Flex Code
21899 status collapsed
21900
21901 \begin_layout Plain Layout
21902 vcs-time
21903 \end_layout
21904
21905 \end_inset
21906
21907 )
21908 \end_layout
21909
21910 \end_deeper
21911 \begin_layout Standard
21912 You can obtain this info via InsetInfo (
21913 \change_inserted 5863208 1564400022
21914
21915 \lang american
21916 Insert\SpecialChar menuseparator
21917 Field\SpecialChar menuseparator
21918 Version Control Revision
21919 \change_deleted 5863208 1564399852
21920
21921 \lang english
21922 e.g.
21923  
21924 \begin_inset Flex Code
21925 status collapsed
21926
21927 \begin_layout Plain Layout
21928 info-insert buffer vcs-date
21929 \end_layout
21930
21931 \end_inset
21932
21933
21934 \change_unchanged
21935 ).
21936  The information will be available only when you have the file stored under
21937  svn managment (i.e.
21938  the 
21939 \begin_inset Flex Code
21940 status collapsed
21941
21942 \begin_layout Plain Layout
21943 .svn
21944 \end_layout
21945
21946 \end_inset
21947
21948  directory is available with your document).
21949 \end_layout
21950
21951 \end_deeper
21952 \begin_layout Itemize
21953 Another—a hacking one—possibility is to use svn keywords
21954 \begin_inset Foot
21955 status collapsed
21956
21957 \begin_layout Plain Layout
21958 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
21959 \end_layout
21960
21961 \end_inset
21962
21963 .
21964  In short â€“ you set file keywords property (e.g.
21965  
21966 \family sans
21967 svn propset svn:keywords 'Rev' file.lyx
21968 \family default
21969 ) and then paste keyword \SpecialChar TeX
21970  code
21971 \begin_inset Foot
21972 status collapsed
21973
21974 \begin_layout Plain Layout
21975 This is an easy way how to ensure that \SpecialChar LyX
21976  won't break the line in the middle
21977  of keyword tag.
21978 \end_layout
21979
21980 \end_inset
21981
21982  tag in your document (e.g.
21983  
21984 \begin_inset Flex Code
21985 status collapsed
21986
21987 \begin_layout Plain Layout
21988 $Rev$
21989 \end_layout
21990
21991 \end_inset
21992
21993 ).
21994  This way svn client will automatically substitute revision number (e.g.
21995  
21996 \begin_inset Flex Code
21997 status collapsed
21998
21999 \begin_layout Plain Layout
22000 $Rev: 59 $
22001 \end_layout
22002
22003 \end_inset
22004
22005 ) after each update and commit.
22006  There are more problems with this approach.
22007  Firstly, the '$' character is used in \SpecialChar TeX
22008  world for math equations, so any
22009  occurence of math formula 
22010 \begin_inset Formula $Rev$
22011 \end_inset
22012
22013  become 
22014 \begin_inset Formula $Rev:59$
22015 \end_inset
22016
22017  in your \SpecialChar LyX
22018  document.
22019  Similarly for other keywords like Id, Date, Author, etc.
22020  Secondly svn output is dependent on your locales, so its very easy that
22021  svn would produce some problematic strings once Date is used.
22022  Thirdly you get the whole 'Rev: 59' string in your document instead of
22023  the plain number.
22024  Until subversion implements user's custom keywords it will be hard to use
22025  this approach reliably or let \SpecialChar LyX
22026  to support it directly.
22027 \end_layout
22028
22029 \begin_layout Subsection
22030 SVN and Windows Environment
22031 \end_layout
22032
22033 \begin_layout Quote
22034 My inclination is to say that if the user cannot figure out the command
22035  line operations on their own fairly quickly, they would be well advised
22036  to use TortoiseSVN.
22037  â€”P.
22038  A.
22039  Rubin
22040 \end_layout
22041
22042 \begin_layout Subsubsection
22043 Preparation
22044 \end_layout
22045
22046 \begin_layout Standard
22047 In addition to installing \SpecialChar LyX
22048 , and having access to a Subversion repository,
22049  the user will need to install the Subversion client program.
22050  A Windows installer for the client program is available from 
22051 \begin_inset CommandInset href
22052 LatexCommand href
22053 name "CollabNet"
22054 target "http://www.collab.net/nonav/downloads/subversion/"
22055 literal "false"
22056
22057 \end_inset
22058
22059 .
22060  The user may also want to install 
22061 \begin_inset CommandInset href
22062 LatexCommand href
22063 name "TortoiseSVN"
22064 target "http://tortoisesvn.tigris.org/"
22065 literal "false"
22066
22067 \end_inset
22068
22069 , which integrates Subversion operations into the context (rightclick) menu
22070  of Windows Explorer.
22071  Operations done outside \SpecialChar LyX
22072  will typically be more convenient using the Explorer
22073  context menu.
22074  Note that TortoiseSVN is not a replacement for the client program, which
22075  is what \SpecialChar LyX
22076  itself will use.
22077 \end_layout
22078
22079 \begin_layout Subsubsection
22080 Bringing a document under Subversion control
22081 \end_layout
22082
22083 \begin_layout Standard
22084 Before a \SpecialChar LyX
22085  document can be brought under version control in Subversion, its
22086  parent directory needs to be under version control.
22087  If the document is being added to a project already in the repository,
22088  this is accomplished by checking the project out to the directory where
22089  the new document will be placed.
22090  If the project itself is not yet under version control (for instance, if
22091  this document starts a new project), the directory must be imported into
22092  the repository.
22093  This is done outside \SpecialChar LyX
22094 .
22095  Both import and checkout are easily accomplished from the Explorer context
22096  menu using TortoiseSVN, or alternatively can be done using the command
22097  line client at a DOS prompt.
22098  The procedure for importing the project using TortoiseSVN is described
22099  below, assuming an existing repository and a new project being started
22100  in 
22101 \family typewriter
22102 C:
22103 \backslash
22104 new project
22105 \family default
22106 .
22107  For information on using the Subversion client program, run 
22108 \family typewriter
22109 svn --help 
22110 \family default
22111 in a DOS shell.
22112 \end_layout
22113
22114 \begin_layout Enumerate
22115 Locate 
22116 \family typewriter
22117 C:
22118 \backslash
22119 new project 
22120 \family default
22121 in Windows Explorer, right click it, and select 
22122 \family sans
22123 TortoiseSVN\SpecialChar menuseparator
22124 Repo-browser
22125 \family default
22126 .
22127  If necessary, adjust the URL for the repository, then click OK.
22128 \end_layout
22129
22130 \begin_layout Enumerate
22131 Right click the level of the repository under which you want to place the
22132  new project folder (typically the top level) and click 
22133 \family sans
22134 Create folder
22135 \family default
22136  Supply a name for the project folder and click OK.
22137  Add a message for the log file if desired, then click OK again.
22138  The new project folder should appear in the repository.
22139  Finally, click OK again to exit the repository browser.
22140 \end_layout
22141
22142 \begin_layout Enumerate
22143 Once again right click 
22144 \family typewriter
22145 C:
22146 \backslash
22147 new project
22148 \family default
22149 , this time selecting SVN Checkout\SpecialChar ldots
22150  Select the URL of the project folder
22151  you just created in the repository, and set the checkout directory to 
22152 \family typewriter
22153 C:
22154 \backslash
22155 new project.
22156
22157 \family default
22158  Click OK.
22159  You will be warned about a non-empty folder; click OK to proceed.
22160  You should now have a 
22161 \family typewriter
22162 .svn
22163 \family default
22164  directory under 
22165 \family typewriter
22166 C:
22167 \backslash
22168 new project.
22169 \end_layout
22170
22171 \begin_layout Enumerate
22172 Create or open your document in \SpecialChar LyX
22173  and click 
22174 \family sans
22175 File\SpecialChar menuseparator
22176 Version
22177 \begin_inset space ~
22178 \end_inset
22179
22180 Control\SpecialChar menuseparator
22181 Register.
22182  
22183 \family default
22184 Add a log message and click OK to commit the document to version control.
22185 \end_layout
22186
22187 \begin_layout Standard
22188 From this point onward, you should have full functionality in the 
22189 \family sans
22190 File\SpecialChar menuseparator
22191 Version
22192 \begin_inset space ~
22193 \end_inset
22194
22195 Control
22196 \family default
22197  menu.
22198  You also have the option of checking the document in and out, viewing its
22199  history, etc.
22200  using the TortoiseSVN context menu in Windows Explorer or the Subversion
22201  client program from a command prompt.
22202 \end_layout
22203
22204 \begin_layout Subsubsection
22205 SSH tunnel used with SVN under Windows
22206 \end_layout
22207
22208 \begin_layout Standard
22209 Compared with Linux setting up an svn client to communicate over ssh under
22210  Windows is a rather troublesome task.
22211  We will at least offer some hints how to setup the client side but prior
22212  knowledge about ssh and the Windows command line is needed, also be prepared
22213  for a great deal of frustration\SpecialChar ldots
22214
22215 \end_layout
22216
22217 \begin_layout Enumerate
22218 Get an svn client for windows, as described in the previous sections.
22219  When it is a fresh install run some svn command (e.g.
22220  
22221 \begin_inset Flex Code
22222 status collapsed
22223
22224 \begin_layout Plain Layout
22225 svn --version
22226 \end_layout
22227
22228 \end_inset
22229
22230 ) to create config files, which you will need to change later on.
22231 \end_layout
22232
22233 \begin_layout Enumerate
22234 Choose an ssh client for Windows.
22235  There are several possibilities, we will use the one from Putty tools
22236 \begin_inset Foot
22237 status collapsed
22238
22239 \begin_layout Plain Layout
22240 \begin_inset Flex URL
22241 status collapsed
22242
22243 \begin_layout Plain Layout
22244
22245 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
22246 \end_layout
22247
22248 \end_inset
22249
22250
22251 \end_layout
22252
22253 \end_inset
22254
22255 .
22256  You will need to set the connection up so that the client doesn't ask for
22257  any password from you.
22258  To keep things easy we will use only keys without any additional password
22259  protection etc.
22260 \end_layout
22261
22262 \begin_deeper
22263 \begin_layout Enumerate
22264 Generate keys by 
22265 \begin_inset Flex Code
22266 status collapsed
22267
22268 \begin_layout Plain Layout
22269 puttygen
22270 \end_layout
22271
22272 \end_inset
22273
22274 .
22275  Save your private .ppk key file and put the public one on the server side.
22276  If the SVN server runs on Linux, note that the format of the public key
22277  is not compatible with Linux openssh and you will need to direcly copy-paste
22278  the key from the 
22279 \begin_inset Quotes eld
22280 \end_inset
22281
22282
22283 \emph on
22284 Public key for pasting into OpenSSH authorized_keys file
22285 \emph default
22286 :
22287 \begin_inset Quotes erd
22288 \end_inset
22289
22290  edit field into the server's 
22291 \begin_inset Flex Code
22292 status collapsed
22293
22294 \begin_layout Plain Layout
22295 ~/.ssh/authorized_keys
22296 \end_layout
22297
22298 \end_inset
22299
22300  / 
22301 \begin_inset Flex Code
22302 status collapsed
22303
22304 \begin_layout Plain Layout
22305 authorized_keys2
22306 \end_layout
22307
22308 \end_inset
22309
22310  file.
22311 \end_layout
22312
22313 \begin_layout Enumerate
22314 Get the Putty's 
22315 \begin_inset Flex Code
22316 status collapsed
22317
22318 \begin_layout Plain Layout
22319 plink
22320 \end_layout
22321
22322 \end_inset
22323
22324 .
22325  In the SVN config file
22326 \begin_inset Foot
22327 status collapsed
22328
22329 \begin_layout Plain Layout
22330 Exact path depends on Windows version, usually somewhere around 
22331 \begin_inset Flex Code
22332 status collapsed
22333
22334 \begin_layout Plain Layout
22335 c:
22336 \backslash
22337 Documents and Settings
22338 \backslash
22339 user
22340 \backslash
22341 Application Data
22342 \backslash
22343 Subversion
22344 \backslash
22345 config
22346 \end_layout
22347
22348 \end_inset
22349
22350  / 
22351 \begin_inset Flex Code
22352 status collapsed
22353
22354 \begin_layout Plain Layout
22355 AppData
22356 \backslash
22357 Roaming
22358 \backslash
22359 Subversion
22360 \end_layout
22361
22362 \end_inset
22363
22364 .
22365 \end_layout
22366
22367 \end_inset
22368
22369 , section [tunnels], setup ssh command, e.g.
22370  
22371 \begin_inset Flex Code
22372 status collapsed
22373
22374 \begin_layout Plain Layout
22375 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
22376 \end_layout
22377
22378 \end_inset
22379
22380 .
22381 \begin_inset Foot
22382 status collapsed
22383
22384 \begin_layout Plain Layout
22385 It will usually take a lot of time to get exact command right and it depends
22386  on many things.
22387  For example do not have some remote server saved as a default session in
22388  Putty etc.
22389  If things fail, try to connect via plink without SVN first.
22390 \end_layout
22391
22392 \end_inset
22393
22394
22395 \end_layout
22396
22397 \end_deeper
22398 \begin_layout Enumerate
22399 Checkout the SVN archive, e.
22400 \begin_inset space \thinspace{}
22401 \end_inset
22402
22403 g.
22404 \begin_inset Newline newline
22405 \end_inset
22406
22407
22408 \begin_inset Flex Code
22409 status collapsed
22410
22411 \begin_layout Plain Layout
22412 svn co svn+ssh://user@server/repository_path
22413 \end_layout
22414
22415 \end_inset
22416
22417 .
22418 \end_layout
22419
22420 \begin_layout Subsubsection
22421 End-of-Line Conversions
22422 \end_layout
22423
22424 \begin_layout Standard
22425 When the collaborators are mixing Linux and Windows environments, \SpecialChar LyX
22426  will
22427  use different line endings inside the .lyx files.
22428  This is not a problem as far as \SpecialChar LyX
22429  functionality is concerned, but the commit
22430  diffs will be huge and merge-conflicts prone.
22431  Fortunately SVN itself knows
22432 \begin_inset Foot
22433 status collapsed
22434
22435 \begin_layout Plain Layout
22436 \begin_inset Flex URL
22437 status collapsed
22438
22439 \begin_layout Plain Layout
22440
22441 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
22442 \end_layout
22443
22444 \end_inset
22445
22446
22447 \end_layout
22448
22449 \end_inset
22450
22451  how to deal with CR/LF problems when switching .lyx files to the 
22452 \begin_inset Flex Code
22453 status collapsed
22454
22455 \begin_layout Plain Layout
22456 native
22457 \end_layout
22458
22459 \end_inset
22460
22461  mode.
22462 \begin_inset Foot
22463 status collapsed
22464
22465 \begin_layout Plain Layout
22466 For the lazy guys: 
22467 \begin_inset Flex Code
22468 status collapsed
22469
22470 \begin_layout Plain Layout
22471 svn propset svn:eol-style native FILE_NAME
22472 \end_layout
22473
22474 \end_inset
22475
22476
22477 \end_layout
22478
22479 \end_inset
22480
22481
22482 \end_layout
22483
22484 \begin_layout Subsection
22485 GIT commands in \SpecialChar LyX
22486
22487 \end_layout
22488
22489 \begin_layout Standard
22490 A minimal subset of GIT commands is now supported by \SpecialChar LyX
22491 .
22492  You can find the commands in the 
22493 \family sans
22494 File\SpecialChar menuseparator
22495 Version
22496 \begin_inset space ~
22497 \end_inset
22498
22499 Control
22500 \family default
22501  submenu.
22502  Please note that if you use password protected access to repository via
22503  ssh, you will be asked in terminal window.
22504  \SpecialChar LyX
22505  was tested against GIT 1.7.
22506 \begin_inset Foot
22507 status collapsed
22508
22509 \begin_layout Plain Layout
22510 Windows users please note that you need to ensure that git is on the path.
22511  This can be set from within \SpecialChar LyX
22512  at 
22513 \family sans
22514 Tools\SpecialChar menuseparator
22515 Preferences\SpecialChar menuseparator
22516 Paths\SpecialChar menuseparator
22517 PATH prefix
22518 \family default
22519 .
22520 \end_layout
22521
22522 \end_inset
22523
22524
22525 \end_layout
22526
22527 \begin_layout Standard
22528 One big difference of GIT and the other supported version control systems
22529  is the distributed nature of GIT: With traditional version control systems
22530  there is one central server which hosts the repository.
22531  Users commit their changes to the server, and get updates made by other
22532  users from it.
22533  With GIT, users commit to a local repository.
22534  The local repository can be synchronized with one or more remote repositories
22535  using the 
22536 \begin_inset Flex Code
22537 status collapsed
22538
22539 \begin_layout Plain Layout
22540 pull
22541 \end_layout
22542
22543 \end_inset
22544
22545  and 
22546 \begin_inset Flex Code
22547 status collapsed
22548
22549 \begin_layout Plain Layout
22550 push
22551 \end_layout
22552
22553 \end_inset
22554
22555  GIT commands.
22556  \SpecialChar LyX
22557  does not interact in any way with remote GIT repositories.
22558  It works exclusively with the local repository in a very similar way as
22559  with a central CVS or SVN repository.
22560  If you use remote GIT repositories you need to do the 
22561 \begin_inset Flex Code
22562 status collapsed
22563
22564 \begin_layout Plain Layout
22565 pull
22566 \end_layout
22567
22568 \end_inset
22569
22570  and 
22571 \begin_inset Flex Code
22572 status collapsed
22573
22574 \begin_layout Plain Layout
22575 push
22576 \end_layout
22577
22578 \end_inset
22579
22580  operations with your favourite GIT client.
22581 \end_layout
22582
22583 \begin_layout Subsubsection
22584
22585 \family sans
22586 Register
22587 \end_layout
22588
22589 \begin_layout Standard
22590 If your document is not under revision control, this is the only item shown
22591  in the menu.
22592  And if it is under revision control, the 
22593 \family sans
22594 Register
22595 \family default
22596  item is not visible.
22597 \end_layout
22598
22599 \begin_layout Standard
22600 This command registers in GIT your document ONLY in case you have already
22601  the documents directory under GIT control (in particular 
22602 \family typewriter
22603 .git/index
22604 \family default
22605  file exists).
22606  This means you have to checkout the archive by yourself.
22607 \end_layout
22608
22609 \begin_layout Standard
22610 Then you are asked interactively to supply an initial description of the
22611  document.
22612  Don't forget that registered file is not yet committed.
22613 \end_layout
22614
22615 \begin_layout Standard
22616 GIT command that is run: 
22617 \family typewriter
22618 git add 
22619 \begin_inset Quotes qld
22620 \end_inset
22621
22622 <file-name>
22623 \begin_inset Quotes qld
22624 \end_inset
22625
22626
22627 \end_layout
22628
22629 \begin_layout Standard
22630 Read 
22631 \family typewriter
22632 man git
22633 \family default
22634  to understand the switches.
22635 \end_layout
22636
22637 \begin_layout Subsubsection
22638
22639 \family sans
22640 Check In Changes
22641 \end_layout
22642
22643 \begin_layout Standard
22644 When you are finished editing a file, you commit your changes.
22645  When you do this, you are asked for a description of the changes.
22646  After that changes are committed.
22647 \end_layout
22648
22649 \begin_layout Standard
22650 GIT command: 
22651 \family typewriter
22652 git commit -q -m"<description>" <file-name>
22653 \end_layout
22654
22655 \begin_layout Subsubsection
22656
22657 \family sans
22658 Revert To Repository Version
22659 \end_layout
22660
22661 \begin_layout Standard
22662 This will discard all changes made to the document since the last check
22663  in.
22664  You get a warning before changes are discarded.
22665 \end_layout
22666
22667 \begin_layout Standard
22668 GIT command: 
22669 \family typewriter
22670 git checkout -q 
22671 \begin_inset Quotes qld
22672 \end_inset
22673
22674 <file-name>
22675 \begin_inset Quotes qld
22676 \end_inset
22677
22678
22679 \end_layout
22680
22681 \begin_layout Subsubsection
22682
22683 \family sans
22684 Rename
22685 \end_layout
22686
22687 \begin_layout Standard
22688 This will rename the current document including the version history.
22689  It requires a clean document without any changes since the last checkin.
22690  You are asked for a file name and a description of the rename operation.
22691  After that the document is renamed, both locally and in the repository.
22692  If the parent directories of the new and old file names differ, all relative
22693  paths of included files are adjusted (like in 
22694 \family sans
22695 File\SpecialChar menuseparator
22696 Save As
22697 \family default
22698 \SpecialChar ldots
22699 ).
22700  Finally, the document is reloaded using the new name.
22701 \end_layout
22702
22703 \begin_layout Labeling
22704 \labelwidthstring 00.00.0000
22705 GIT
22706 \begin_inset space ~
22707 \end_inset
22708
22709 commands: 
22710 \begin_inset space ~
22711 \end_inset
22712
22713
22714 \begin_inset Newline newline
22715 \end_inset
22716
22717
22718 \begin_inset Flex Code
22719 status collapsed
22720
22721 \begin_layout Plain Layout
22722 git mv 
22723 \family typewriter
22724
22725 \begin_inset Quotes qld
22726 \end_inset
22727
22728 <file-name>
22729 \begin_inset Quotes qld
22730 \end_inset
22731
22732  
22733 \begin_inset Quotes qld
22734 \end_inset
22735
22736 <new-file-name>
22737 \begin_inset Quotes qld
22738 \end_inset
22739
22740
22741 \end_layout
22742
22743 \end_inset
22744
22745
22746 \begin_inset Newline newline
22747 \end_inset
22748
22749
22750 \begin_inset Flex Code
22751 status collapsed
22752
22753 \begin_layout Plain Layout
22754 git commit
22755 \end_layout
22756
22757 \end_inset
22758
22759
22760 \end_layout
22761
22762 \begin_layout Subsubsection
22763
22764 \family sans
22765 Show History
22766 \end_layout
22767
22768 \begin_layout Standard
22769 This shows the complete history of the GIT document.
22770  The output of 
22771 \family typewriter
22772 git log 
22773 \begin_inset Quotes qld
22774 \end_inset
22775
22776 <file-name>
22777 \begin_inset Quotes qld
22778 \end_inset
22779
22780
22781 \family default
22782  is shown in a browser.
22783 \end_layout
22784
22785 \begin_layout Subsubsection
22786 Version Info
22787 \end_layout
22788
22789 \begin_layout Standard
22790 \SpecialChar LyX
22791  supports GIT hash number of the last commit to the file, 
22792 \change_inserted 1119979965 1564297456
22793 its abbreviated form, 
22794 \change_unchanged
22795 author name, date and time of last commit.
22796  All those are extracted from 
22797 \family typewriter
22798 git log -n 1 --pretty=format:%H%n
22799 \change_inserted 1119979965 1564297427
22800 %h%n
22801 \change_unchanged
22802 %an%n%ai
22803 \family default
22804 .
22805  Tree version information is obtained via 
22806 \family typewriter
22807 git describe --abbrev --dirty --long
22808 \family default
22809 .
22810  See 
22811 \begin_inset CommandInset ref
22812 LatexCommand ref
22813 reference "subsec:VCS-Revision-Information"
22814
22815 \end_inset
22816
22817  for other details.
22818 \end_layout
22819
22820 \begin_layout Subsection
22821 Further tuning
22822 \end_layout
22823
22824 \begin_layout Standard
22825 With the recent addition of the 
22826 \begin_inset Flex Code
22827 status collapsed
22828
22829 \begin_layout Plain Layout
22830 vc-command
22831 \end_layout
22832
22833 \end_inset
22834
22835  function \SpecialChar LyX
22836  power users are allowed to create their own commands for revision
22837  control.
22838 \end_layout
22839
22840 \begin_layout Standard
22841 As an example you can see how two TortoiseSVN commands could be integrated
22842  directly:
22843 \end_layout
22844
22845 \begin_layout Description
22846 Commit: 
22847 \begin_inset Flex Code
22848 status collapsed
22849
22850 \begin_layout Plain Layout
22851 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
22852 \end_layout
22853
22854 \end_inset
22855
22856
22857 \end_layout
22858
22859 \begin_layout Description
22860 Revert: 
22861 \begin_inset Flex Code
22862 status collapsed
22863
22864 \begin_layout Plain Layout
22865 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
22866 \end_layout
22867
22868 \end_inset
22869
22870
22871 \end_layout
22872
22873 \begin_layout Subsection
22874 Version control and Document comparison
22875 \end_layout
22876
22877 \begin_layout Standard
22878 One of the typical uses of version control is to inspect the changes between
22879  revisions, usually by creating 
22880 \begin_inset Flex Code
22881 status collapsed
22882
22883 \begin_layout Plain Layout
22884 diff
22885 \end_layout
22886
22887 \end_inset
22888
22889  dumps.
22890  While this is useful for plain text files, it is much less useful in the
22891  case of \SpecialChar LyX
22892  files, which have more a complicated structure.
22893  Hence we provide binding to the Document comparison feature.
22894  There are two ways of calling this feature â€“ either by direct call of 
22895 \begin_inset Flex Code
22896 status collapsed
22897
22898 \begin_layout Plain Layout
22899 vc-compare
22900 \end_layout
22901
22902 \end_inset
22903
22904  \SpecialChar LyX
22905  function (for details see \SpecialChar LyX
22906  functions manual) or by the toolbar icon 
22907 \begin_inset Info
22908 type  "icon"
22909 arg   "vc-compare"
22910 \end_inset
22911
22912  or the menu item 
22913 \begin_inset Info
22914 type  "menu"
22915 arg   "vc-compare"
22916 \end_inset
22917
22918 , respectively.
22919  One can either compare two chosen revisions of the document or he can simply
22920  compare the current version of edited text with older revisions (where
22921  '
22922 \begin_inset Flex Noun
22923 status collapsed
22924
22925 \begin_layout Plain Layout
22926 0
22927 \end_layout
22928
22929 \end_inset
22930
22931 ' revisions back means comparison of the edited file with last commited
22932  revision).
22933  
22934 \end_layout
22935
22936 \begin_layout Standard
22937 This feature is supported for SVN and RCS though due to the more complicated
22938  versioning scheme of RCS there is a constraint â€“ when addressing the revisions
22939  in dialog, numbers always point to the last number in RCS revision number,
22940  i.e.
22941  '35' in '1.2.35'.
22942  We don't currently support GIT addressing of revisions, one can just compare
22943  edited document with its revision X steps backs, where X is addressed as
22944  
22945 \begin_inset Flex Code
22946 status collapsed
22947
22948 \begin_layout Plain Layout
22949 HEAD~X
22950 \end_layout
22951
22952 \end_inset
22953
22954 .
22955 \end_layout
22956
22957 \begin_layout Section
22958 Literate Programming
22959 \end_layout
22960
22961 \begin_layout Standard
22962 Updated by 
22963 \noun on
22964 Kayvan Sylvan 
22965 \noun default
22966 (kayvan@sylvan.com)
22967 \noun on
22968
22969 \noun default
22970 original documentation written by 
22971 \noun on
22972 Edmar Wienskoski Jr.
22973
22974 \noun default
22975  (edmar-w-jr@technologist.com)
22976 \end_layout
22977
22978 \begin_layout Subsection
22979 Introduction
22980 \end_layout
22981
22982 \begin_layout Standard
22983 The main purpose of this documentation is to show you how to use \SpecialChar LyX
22984  for literate
22985  programming, where it is assumed that you are familiar with this programming
22986  technique, and know what 
22987 \begin_inset Quotes eld
22988 \end_inset
22989
22990 tangling
22991 \begin_inset Quotes erd
22992 \end_inset
22993
22994  and 
22995 \begin_inset Quotes eld
22996 \end_inset
22997
22998 weaving
22999 \begin_inset Quotes erd
23000 \end_inset
23001
23002  means.
23003  If that is not the case, please follow the web links provided in the following
23004  sections.
23005  There is a lot of good documentation out there covering old development
23006  history to the latest tools tips.
23007 \end_layout
23008
23009 \begin_layout Standard
23010 It is also assumed that you are familiar with \SpecialChar LyX
23011  itself to a point that you
23012  are comfortable changing your \SpecialChar LyX
23013  preferences, and X resources file.
23014  If that is not the case please refer to other \SpecialChar LyX
23015  documentation to cover your
23016  specific needs.
23017 \end_layout
23018
23019 \begin_layout Subsection
23020 Literate Programming
23021 \end_layout
23022
23023 \begin_layout Standard
23024 From the Literate Programming FAQ: 
23025 \end_layout
23026
23027 \begin_layout Quotation
23028 Literate programming is the combination of documentation and source together
23029  in a fashion suited for reading by human beings.
23030  In fact, literate programs should be enjoyable reading, even inviting!
23031  (Sorry Bob, I couldn't resist!) In general, literate programs combine source
23032  and documentation in a single file.
23033  Literate programming tools then parse the file to produce either readable
23034  documentation or compilable source.
23035  The WEB style of literate programming was created by D.
23036 \begin_inset space \thinspace{}
23037 \end_inset
23038
23039 E.
23040  Knuth during the development of his \SpecialChar TeX
23041  typesetting software.
23042  
23043 \end_layout
23044
23045 \begin_layout Standard
23046 Another excerpt says:
23047 \end_layout
23048
23049 \begin_layout Quotation
23050
23051 \emph on
23052 How is literate programming different from verbose commenting?
23053 \end_layout
23054
23055 \begin_layout Quotation
23056 There are three distinguishing characteristics.
23057  In order of importance, they are: 
23058 \end_layout
23059
23060 \begin_deeper
23061 \begin_layout Itemize
23062 flexible order of elaboration 
23063 \end_layout
23064
23065 \begin_layout Itemize
23066 automatic support for browsing 
23067 \end_layout
23068
23069 \begin_layout Itemize
23070 typeset documentation, especially diagrams and mathematics 
23071 \end_layout
23072
23073 \end_deeper
23074 \begin_layout Standard
23075 Now that I sparked your curiosity, take a look in the references.
23076 \end_layout
23077
23078 \begin_layout Subsubsection
23079 References
23080 \end_layout
23081
23082 \begin_layout Standard
23083 The complete Literate Programming FAQ can be found at:
23084 \end_layout
23085
23086 \begin_layout Quote
23087 Literate Programming FAQ 
23088 \begin_inset Flex URL
23089 status open
23090
23091 \begin_layout Plain Layout
23092
23093 http://www.literateprogramming.com/lpfaq.pdf
23094 \end_layout
23095
23096 \end_inset
23097
23098
23099 \end_layout
23100
23101 \begin_layout Standard
23102 The FAQ lists 23 (twenty three!) different literate programming tools.
23103  Where some are specialized or 
23104 \begin_inset Quotes eld
23105 \end_inset
23106
23107 tailored
23108 \begin_inset Quotes erd
23109 \end_inset
23110
23111  for particular programming languages, while other have general scope.
23112  I selected 
23113 \noun on
23114 Noweb
23115 \noun default
23116  for my own use for several reasons:
23117 \end_layout
23118
23119 \begin_layout Itemize
23120 It can generate the documentation either in \SpecialChar LaTeX
23121  or HTML.
23122 \end_layout
23123
23124 \begin_layout Itemize
23125 It has a open architecture, i.
23126 \begin_inset space \thinspace{}
23127 \end_inset
23128
23129 e.
23130 \begin_inset space \space{}
23131 \end_inset
23132
23133 it is easy to plug in new filters
23134 \begin_inset Foot
23135 status collapsed
23136
23137 \begin_layout Plain Layout
23138
23139 \emph on
23140 Filters 
23141 \emph default
23142 are programs that read a given data stream and output a manipulated data
23143  stream.
23144  That way, a WEB file (consisting of literate code) can be turned into a
23145  file consisting only of C program code or \SpecialChar LaTeX
23146  code.
23147 \end_layout
23148
23149 \end_inset
23150
23151  and to perform special processing that you may need.
23152  
23153 \end_layout
23154
23155 \begin_layout Itemize
23156 There is a good selection of filters available already (the HTML is one
23157  of them).
23158 \end_layout
23159
23160 \begin_layout Itemize
23161 It is free.
23162 \end_layout
23163
23164 \begin_layout Standard
23165 The Noweb web page can be found at: 
23166 \end_layout
23167
23168 \begin_layout Quote
23169 Noweb home page 
23170 \begin_inset Flex URL
23171 status collapsed
23172
23173 \begin_layout Plain Layout
23174
23175 https://www.cs.tufts.edu/~nr/noweb/
23176 \end_layout
23177
23178 \end_inset
23179
23180
23181 \end_layout
23182
23183 \begin_layout Standard
23184 Starting from there you can reach many other interesting links and even
23185  some literate program examples.
23186 \end_layout
23187
23188 \begin_layout Subsection
23189 \SpecialChar LyX
23190  and Literate Programming with Noweb
23191 \end_layout
23192
23193 \begin_layout Standard
23194 The \SpecialChar LyX
23195  support for Literate Programming is provided by using the generic \SpecialChar LyX
23196
23197  converters mechanism.
23198  This support is provided in a 
23199 \begin_inset Quotes eld
23200 \end_inset
23201
23202 Noweb independent
23203 \begin_inset Quotes erd
23204 \end_inset
23205
23206  way, i.
23207 \begin_inset space \thinspace{}
23208 \end_inset
23209
23210 e.
23211 \begin_inset space \space{}
23212 \end_inset
23213
23214 you will be able to use this new \SpecialChar LyX
23215  feature with some other literate programming
23216  tool of your choice by just changing your \SpecialChar LyX
23217  preferences.
23218 \end_layout
23219
23220 \begin_layout Subsubsection
23221 Generating documents and code (weaving and tangling)
23222 \end_layout
23223
23224 \begin_layout Paragraph
23225 Using the noweb module
23226 \end_layout
23227
23228 \begin_layout Standard
23229 If you have installed Noweb and \SpecialChar LyX
23230  successfully, whenever you open a new document,
23231  after you have chosen its document class, use the 
23232 \family sans
23233 Document\SpecialChar menuseparator
23234 Settings
23235 \family default
23236  menu to add the 
23237 \begin_inset Quotes eld
23238 \end_inset
23239
23240 noweb
23241 \begin_inset Quotes erd
23242 \end_inset
23243
23244  module.
23245  If Noweb is correctly installed, when you click on the 
23246 \begin_inset Quotes eld
23247 \end_inset
23248
23249 Modules
23250 \begin_inset Quotes erd
23251 \end_inset
23252
23253  link, you will see the 
23254 \begin_inset Quotes eld
23255 \end_inset
23256
23257 noweb
23258 \begin_inset Quotes erd
23259 \end_inset
23260
23261  module in the available list and you can add it to your document.
23262 \end_layout
23263
23264 \begin_layout Paragraph
23265 Typing code in
23266 \end_layout
23267
23268 \begin_layout Standard
23269 \SpecialChar LyX
23270  enables you to write code with a custom inset named 
23271 \begin_inset Flex Noun
23272 status collapsed
23273
23274 \begin_layout Plain Layout
23275 Chunk
23276 \end_layout
23277
23278 \end_inset
23279
23280 .
23281  Noweb delimits chunks like this:
23282 \end_layout
23283
23284 \begin_layout LyX-Code
23285 <<My code>>=
23286 \end_layout
23287
23288 \begin_layout LyX-Code
23289   code
23290 \end_layout
23291
23292 \begin_layout LyX-Code
23293   more code
23294 \end_layout
23295
23296 \begin_layout LyX-Code
23297   even more code
23298 \end_layout
23299
23300 \begin_layout LyX-Code
23301   @
23302 \end_layout
23303
23304 \begin_layout Standard
23305 The problem is that whatever is written in between the << and the 
23306 \family typewriter
23307 @
23308 \family default
23309  must be taken literally, i.
23310 \begin_inset space \thinspace{}
23311 \end_inset
23312
23313 e.
23314 \begin_inset space \space{}
23315 \end_inset
23316
23317 \SpecialChar LyX
23318  should be prevented from making any special interpretation of what has
23319  been written.
23320  This is also handled by 
23321 \begin_inset Flex Noun
23322 status collapsed
23323
23324 \begin_layout Plain Layout
23325 Chunk
23326 \end_layout
23327
23328 \end_inset
23329
23330 , that works like a normal text inset but has a free spacing capability.
23331 \end_layout
23332
23333 \begin_layout Standard
23334 As a special note, you can also use the 
23335 \begin_inset Quotes eld
23336 \end_inset
23337
23338 %def
23339 \begin_inset Quotes erd
23340 \end_inset
23341
23342  construct of Noweb in your chunks to add items to Noweb's identifier cross-refe
23343 rence:
23344 \end_layout
23345
23346 \begin_layout LyX-Code
23347 <<My chunk>>=
23348 \end_layout
23349
23350 \begin_layout LyX-Code
23351 def some_function(args):
23352 \end_layout
23353
23354 \begin_layout LyX-Code
23355    "This is the doc string for this function."
23356 \end_layout
23357
23358 \begin_layout LyX-Code
23359    print "My args: ", args
23360 \end_layout
23361
23362 \begin_layout LyX-Code
23363 @ %def some_function
23364 \end_layout
23365
23366 \begin_layout Standard
23367 For an example of this usage and the resulting cross-reference output, look
23368  at the Literate python program in 
23369 \emph on
23370 LIBDIR/examples/listerrors.lyx
23371 \emph default
23372  which should make this all clear.
23373 \end_layout
23374
23375 \begin_layout Paragraph
23376 Generating the documentation
23377 \end_layout
23378
23379 \begin_layout Standard
23380 At this point you already have a new document file with a proper document
23381  class, and with some code and text on it.
23382  How do I print it? The answer is simple, you select 
23383 \family sans
23384 View\SpecialChar menuseparator
23385 DVI,
23386 \family default
23387  etc.
23388  Just like you would do for a plain document.
23389  No special procedure is required.
23390 \end_layout
23391
23392 \begin_layout Standard
23393 To help orientate you, I will now explain what happens inside \SpecialChar LyX
23394 :
23395 \end_layout
23396
23397 \begin_layout Enumerate
23398 When the 
23399 \family sans
23400 Update\SpecialChar menuseparator
23401 DVI
23402 \family default
23403  menu option is chosen, a \SpecialChar LaTeX
23404  file is generated.
23405  
23406 \end_layout
23407
23408 \begin_deeper
23409 \begin_layout Standard
23410 If the document is of any literate class the generated file will be named
23411  with an extension name defined by the 
23412 \begin_inset Quotes eld
23413 \end_inset
23414
23415 literate
23416 \begin_inset Quotes erd
23417 \end_inset
23418
23419  format (defined in the Preferences panel), otherwise the file will have
23420  the usual 
23421 \family typewriter
23422 .tex
23423 \family default
23424  extension.
23425 \end_layout
23426
23427 \end_deeper
23428 \begin_layout Enumerate
23429 Note that the only difference so far is in the name of the file, no special
23430  processing is required by \SpecialChar LyX
23431 .
23432  Given that you formatted the code using the 
23433 \begin_inset Flex Noun
23434 status collapsed
23435
23436 \begin_layout Plain Layout
23437 Chunk
23438 \end_layout
23439
23440 \end_inset
23441
23442  inset that, by itself, takes care of the business.
23443 \end_layout
23444
23445 \begin_layout Enumerate
23446 If the document is of any literate class \SpecialChar LyX
23447  will then use the internal \SpecialChar LyX
23448  to
23449  Noweb converter, followed by the Noweb to \SpecialChar LaTeX
23450  converter
23451 \begin_inset Foot
23452 status collapsed
23453
23454 \begin_layout Plain Layout
23455 The converters are defined in the 
23456 \family sans
23457 Tools\SpecialChar menuseparator
23458 Preferences
23459 \family default
23460  panel, under the 
23461 \begin_inset Quotes eld
23462 \end_inset
23463
23464 Conversion
23465 \begin_inset Quotes erd
23466 \end_inset
23467
23468  tab.
23469  See section 
23470 \emph on
23471 Converters
23472 \emph default
23473  of the 
23474 \emph on
23475 Customization
23476 \emph default
23477  manual for general information about converters.
23478 \end_layout
23479
23480 \end_inset
23481
23482  to generate the \SpecialChar LaTeX
23483  file.
23484 \end_layout
23485
23486 \begin_deeper
23487 \begin_layout Standard
23488 Otherwise it will just skip this step.
23489 \end_layout
23490
23491 \end_deeper
23492 \begin_layout Enumerate
23493 Finally, \SpecialChar LaTeX
23494  is invoked and the regular post processing continues as in a plain
23495  document.
23496 \end_layout
23497
23498 \begin_layout Standard
23499 Independence from a particular 
23500 \begin_inset Quotes eld
23501 \end_inset
23502
23503 literate tool
23504 \begin_inset Quotes erd
23505 \end_inset
23506
23507  is easily achieved by changing the commands that are run by the various
23508  converters.
23509 \end_layout
23510
23511 \begin_layout Paragraph
23512 Generating the code
23513 \end_layout
23514
23515 \begin_layout Standard
23516 When the build menu option is chosen or the corresponding button in the
23517  toolbar is pressed, a \SpecialChar LaTeX
23518  file is generated just like step 1 above.
23519  Next, \SpecialChar LyX
23520  invokes the 
23521 \family typewriter
23522 Noweb->Program
23523 \family default
23524  converter.
23525  This converter needs to be defined by the user and is not installed by
23526  default, though the Program format is.
23527  This converter (like any other converter) will have two parts:
23528 \end_layout
23529
23530 \begin_layout Enumerate
23531 The converter program itself.
23532  This program performs the conversion from the one format to the other (in
23533  this case, from the Noweb format to the Program pseudo-format).
23534 \end_layout
23535
23536 \begin_layout Enumerate
23537 The error log parser.
23538  This is a program whose sole purpose is to rewrite error messages in a
23539  format that \SpecialChar LyX
23540  understands.
23541  This makes it possible for \SpecialChar LyX
23542  to place error boxes in the right places in
23543  the file buffer.
23544 \end_layout
23545
23546 \begin_layout Standard
23547 The first part, the 
23548 \begin_inset Quotes eld
23549 \end_inset
23550
23551 Converter
23552 \begin_inset Quotes erd
23553 \end_inset
23554
23555  setting, should be set to
23556 \end_layout
23557
23558 \begin_layout LyX-Code
23559
23560 \family typewriter
23561 build-script $$i
23562 \family default
23563  $$r
23564 \end_layout
23565
23566 \begin_layout Standard
23567 This basically means that \SpecialChar LyX
23568  will call 
23569 \begin_inset Quotes eld
23570 \end_inset
23571
23572 build-script
23573 \begin_inset Quotes erd
23574 \end_inset
23575
23576  (a program or script) with the name of the Noweb file (normally a file
23577  in the \SpecialChar LyX
23578  temp directory) and the directory path of the original \SpecialChar LyX
23579  file.
23580  
23581 \end_layout
23582
23583 \begin_layout Standard
23584 This is an implementation of 
23585 \begin_inset Quotes eld
23586 \end_inset
23587
23588 build-script
23589 \begin_inset Quotes erd
23590 \end_inset
23591
23592  that you can place in a directory on your path:
23593 \end_layout
23594
23595 \begin_layout LyX-Code
23596
23597 \family sans
23598 #!/bin/sh
23599 \end_layout
23600
23601 \begin_layout LyX-Code
23602
23603 \family sans
23604 #
23605 \end_layout
23606
23607 \begin_layout LyX-Code
23608
23609 \family sans
23610 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
23611 \end_layout
23612
23613 \begin_layout Standard
23614 The next part of the converter setting is the 
23615 \begin_inset Quotes eld
23616 \end_inset
23617
23618 Flags
23619 \begin_inset Quotes erd
23620 \end_inset
23621
23622  which is to be set to
23623 \end_layout
23624
23625 \begin_layout LyX-Code
23626
23627 \family typewriter
23628 parselog=$$s/scripts/listerrors
23629 \end_layout
23630
23631 \begin_layout Standard
23632 This will run any errors that are generated by the 
23633 \begin_inset Quotes eld
23634 \end_inset
23635
23636 build-script
23637 \begin_inset Quotes erd
23638 \end_inset
23639
23640  process through the 
23641 \begin_inset Quotes eld
23642 \end_inset
23643
23644 listerrors
23645 \begin_inset Quotes erd
23646 \end_inset
23647
23648  program.
23649 \end_layout
23650
23651 \begin_layout Standard
23652 The build will normally take place in \SpecialChar LyX
23653 's temporary directory, so the files
23654  produced by the conversion will be in that directory.
23655  \SpecialChar LyX
23656  will copy out what it regards as the `main' file, but the 
23657 \family typewriter
23658 Noweb->Program
23659 \family default
23660  conversion may produce several files, and so most of these would then be
23661  deleted when \SpecialChar LyX
23662  was closed.
23663  This is why we pass in the NOWEB_OUTPUT_DIR environment variable so that
23664  the build-script chunk can place the generated files in that location.
23665 \end_layout
23666
23667 \begin_layout Paragraph
23668 Build instructions in the document
23669 \end_layout
23670
23671 \begin_layout Standard
23672 The last piece of the integration between \SpecialChar LyX
23673  and noweb is the 
23674 \begin_inset Quotes eld
23675 \end_inset
23676
23677 build-script
23678 \begin_inset Quotes erd
23679 \end_inset
23680
23681  chunk.
23682  Generally, the instructions for building your program should be embedded
23683  in a chunk of its own.
23684  The noweb-specific 
23685 \begin_inset Quotes eld
23686 \end_inset
23687
23688 build-script
23689 \begin_inset Quotes erd
23690 \end_inset
23691
23692  above uses the notangle command to look for this chunk (called 
23693 \begin_inset Quotes eld
23694 \end_inset
23695
23696 build-script
23697 \begin_inset Quotes erd
23698 \end_inset
23699
23700 ) and runs its contents through 
23701 \begin_inset Quotes eld
23702 \end_inset
23703
23704 sh
23705 \begin_inset Quotes erd
23706 \end_inset
23707
23708 .
23709 \end_layout
23710
23711 \begin_layout Standard
23712 Typically, such a chunk would look something like this:
23713 \end_layout
23714
23715 \begin_layout LyX-Code
23716 <<build-script>>=
23717 \end_layout
23718
23719 \begin_layout LyX-Code
23720 #!/bin/sh
23721 \begin_inset Newline newline
23722 \end_inset
23723
23724 if [ -z "${NOWEB_SOURCE}" ]
23725 \begin_inset Newline newline
23726 \end_inset
23727
23728 then
23729 \end_layout
23730
23731 \begin_layout LyX-Code
23732 NOWEB_SOURCE=myfile.nw
23733 \begin_inset Newline newline
23734 \end_inset
23735
23736 fi
23737 \begin_inset Newline newline
23738 \end_inset
23739
23740 [...
23741  code to extract files ...
23742  use NOWEB_OUTPUT_DIR here ...]
23743 \begin_inset Newline newline
23744 \end_inset
23745
23746 [...
23747  code to compile files ...]
23748 \begin_inset Newline newline
23749 \end_inset
23750
23751 @
23752 \end_layout
23753
23754 \begin_layout Standard
23755 Look in 
23756 \emph on
23757 LIBDIR/examples/listerrors.lyx
23758 \emph default
23759  or in 
23760 \emph on
23761 LIBDIR/examples/Literate.lyx
23762 \emph default
23763  which implement two versions of the 
23764 \begin_inset Quotes eld
23765 \end_inset
23766
23767 listerrors
23768 \begin_inset Quotes erd
23769 \end_inset
23770
23771  program for some illustrations of how all of these pieces go together or
23772  in 
23773 \emph on
23774 LIBDIR/examples/noweb2lyx.lyx.
23775
23776 \emph default
23777  Interestingly, these three files show off the language-indepence of the
23778  \SpecialChar LyX
23779  literate programming support since they are written in Python, C and Perl
23780  respectively.
23781 \end_layout
23782
23783 \begin_layout Subsubsection
23784 Configuring \SpecialChar LyX
23785
23786 \end_layout
23787
23788 \begin_layout Standard
23789 All the Literate Programming support is configured by the 
23790 \family sans
23791 Tools\SpecialChar menuseparator
23792 Preferences
23793 \family default
23794  panel in the 
23795 \begin_inset Quotes eld
23796 \end_inset
23797
23798 File Handling
23799 \begin_inset Quotes erd
23800 \end_inset
23801
23802  tab.
23803  The important parts are:
23804 \end_layout
23805
23806 \begin_layout Description
23807 the
23808 \begin_inset space ~
23809 \end_inset
23810
23811
23812 \begin_inset Quotes eld
23813 \end_inset
23814
23815 NoWeb
23816 \begin_inset Quotes erd
23817 \end_inset
23818
23819
23820 \begin_inset space ~
23821 \end_inset
23822
23823 format Set up via the File Formats tab, this is where the Noweb-specific
23824  pieces are set up.
23825  The 
23826 \family sans
23827 GUI Name
23828 \family default
23829  is set to 
23830 \family typewriter
23831 NoWeb
23832 \family default
23833 , the file extension is set to 
23834 \family typewriter
23835 .nw
23836 \family default
23837 .
23838  This tells \SpecialChar LyX
23839  to create a file with a 
23840 \family typewriter
23841 .nw
23842 \family default
23843  extension in the first step of the conversion process.
23844 \end_layout
23845
23846 \begin_layout Description
23847 the
23848 \begin_inset space ~
23849 \end_inset
23850
23851
23852 \family sans
23853 Program
23854 \family default
23855
23856 \begin_inset space ~
23857 \end_inset
23858
23859 format This is an empty format whose sole purpose is to be the endpoint
23860  of a conversion (which then allows us to set up a converter for it).
23861 \end_layout
23862
23863 \begin_layout Description
23864
23865 \family sans
23866 NoWeb
23867 \family default
23868 ->
23869 \family sans
23870 \SpecialChar LaTeX
23871
23872 \family default
23873  This converter performs the 
23874 \begin_inset Quotes eld
23875 \end_inset
23876
23877 weaving
23878 \begin_inset Quotes erd
23879 \end_inset
23880
23881  of the literate document.
23882  For Noweb, it is set to 
23883 \begin_inset Quotes eld
23884 \end_inset
23885
23886
23887 \family typewriter
23888 noweave -delay -index $$i > $$o
23889 \family default
23890
23891 \begin_inset Quotes erd
23892 \end_inset
23893
23894
23895 \end_layout
23896
23897 \begin_layout Description
23898
23899 \family sans
23900 NoWeb
23901 \family default
23902 ->
23903 \family sans
23904 Program
23905 \family default
23906  This performs the 
23907 \begin_inset Quotes eld
23908 \end_inset
23909
23910 tangling step
23911 \begin_inset Quotes erd
23912 \end_inset
23913
23914 .
23915  As stated above, the Converter is set to 
23916 \begin_inset Quotes eld
23917 \end_inset
23918
23919
23920 \family typewriter
23921 build-script $$i
23922 \family default
23923  $$r
23924 \begin_inset Quotes erd
23925 \end_inset
23926
23927 , with Flags set to
23928 \begin_inset Newline newline
23929 \end_inset
23930
23931
23932 \begin_inset Quotes eld
23933 \end_inset
23934
23935
23936 \family typewriter
23937 parselog=$$s/scripts/listerrors
23938 \family default
23939
23940 \begin_inset Quotes erd
23941 \end_inset
23942
23943 .
23944 \end_layout
23945
23946 \begin_layout Subsubsection
23947 Debug extensions
23948 \end_layout
23949
23950 \begin_layout Standard
23951 There is also a new function implemented in the \SpecialChar LyX
23952  server, the 
23953 \begin_inset Quotes eld
23954 \end_inset
23955
23956 server-goto-file-row" function, to be used with ddd/gdb or other debugger.
23957  
23958 \end_layout
23959
23960 \begin_layout Standard
23961 When debugging code with ddd/gdb, it is possible to invoke a text editor
23962  at the current execution position with a single key stroke.
23963  The default ddd configuration for that is shift-ctrl-V.
23964  It happens that you can define the editor command line invocation in ddd
23965  by accessing the 
23966 \family sans
23967 Edit\SpecialChar menuseparator
23968 Preferences\SpecialChar menuseparator
23969 Helpers
23970 \family default
23971  dialog and changing the "Edit Sources" entry.
23972 \end_layout
23973
23974 \begin_layout Standard
23975 I take advantage of the newly created \SpecialChar LyX
23976  server function and this ddd feature,
23977  and set 
23978 \begin_inset Quotes eld
23979 \end_inset
23980
23981 Edit Sources
23982 \begin_inset Quotes erd
23983 \end_inset
23984
23985  to:
23986 \end_layout
23987
23988 \begin_layout LyX-Code
23989 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
23990 \end_layout
23991
23992 \begin_layout Standard
23993 With this, whenever you are using ddd and find a point in the program that
23994  you want to edit, you just press shift-ctrl-V (in the ddd window), and
23995  ddd will forward this information to \SpecialChar LyX
23996  through the \SpecialChar LyX
23997  server and then the
23998  \SpecialChar LyX
23999  window will show the same file with the cursor at the same position ddd
24000  was pointing to.
24001  No more guessing or long scrolling to locate a point in the program back
24002  from debugging !
24003 \end_layout
24004
24005 \begin_layout Standard
24006 Note however that you must enable the \SpecialChar LyX
24007  server to get this feature working
24008  (it is disabled by default).
24009  Sec.
24010 \begin_inset space ~
24011 \end_inset
24012
24013
24014 \begin_inset CommandInset ref
24015 LatexCommand ref
24016 reference "sec:Starting-the-Server"
24017
24018 \end_inset
24019
24020  explains how to do that.
24021 \end_layout
24022
24023 \begin_layout Subsubsection
24024 Toolbar extensions
24025 \end_layout
24026
24027 \begin_layout Standard
24028 There are six new buttons that can be added to your \SpecialChar LyX
24029  toolbar.
24030  Four of these buttons are short cuts to layout styles: 
24031 \family sans
24032 Standard
24033 \family default
24034
24035 \family sans
24036 Section
24037 \family default
24038
24039 \family sans
24040 \SpecialChar LaTeX
24041
24042 \family default
24043 , and 
24044 \family sans
24045 \SpecialChar LyX
24046 -Code
24047 \family default
24048 , one for the custom inset 
24049 \family sans
24050 Chunk
24051 \family default
24052 .
24053  The last one is a short cut to the 
24054 \begin_inset Quotes eld
24055 \end_inset
24056
24057 Build Program
24058 \begin_inset Quotes erd
24059 \end_inset
24060
24061  File menu entry.
24062  
24063 \end_layout
24064
24065 \begin_layout Standard
24066 \SpecialChar LyX
24067  has a range of buttons that are available for tool bar customization.
24068  In my toolbar I like to combine the six short cuts above with two more:
24069  One for 
24070 \family sans
24071 Document
24072 \family default
24073 \SpecialChar menuseparator
24074
24075 \family sans
24076 Update
24077 \family default
24078 \SpecialChar menuseparator
24079
24080 \family sans
24081 DVI
24082 \family default
24083  and the other for 
24084 \family sans
24085 Document\SpecialChar menuseparator
24086 View\SpecialChar menuseparator
24087 DVI
24088 \family default
24089  File menu entries.
24090  Here is how it looks like:
24091 \end_layout
24092
24093 \begin_layout LyX-Code
24094 Toolbar
24095 \end_layout
24096
24097 \begin_layout LyX-Code
24098   Layouts
24099 \end_layout
24100
24101 \begin_layout LyX-Code
24102   Icon "layout Standard"
24103 \end_layout
24104
24105 \begin_layout LyX-Code
24106   Icon "layout Section"
24107 \end_layout
24108
24109 \begin_layout LyX-Code
24110   Icon "layout \SpecialChar LaTeX
24111 "
24112 \end_layout
24113
24114 \begin_layout LyX-Code
24115   Icon "layout \SpecialChar LyX
24116 -Code"
24117 \end_layout
24118
24119 \begin_layout LyX-Code
24120   Icon "flex.insert Chunk"
24121 \end_layout
24122
24123 \begin_layout LyX-Code
24124   Separator
24125 \end_layout
24126
24127 \begin_layout LyX-Code
24128   Icon "buffer-view"
24129 \end_layout
24130
24131 \begin_layout LyX-Code
24132   Icon "buffer-typeset"
24133 \end_layout
24134
24135 \begin_layout LyX-Code
24136   Icon "build-program"
24137 \end_layout
24138
24139 \begin_layout LyX-Code
24140   Separator
24141 \end_layout
24142
24143 \begin_layout LyX-Code
24144 .
24145 \end_layout
24146
24147 \begin_layout LyX-Code
24148 .
24149 \end_layout
24150
24151 \begin_layout LyX-Code
24152 .
24153 \end_layout
24154
24155 \begin_layout LyX-Code
24156 End
24157 \end_layout
24158
24159 \begin_layout Subsubsection
24160 Colors customization
24161 \end_layout
24162
24163 \begin_layout Standard
24164 There are a number of colors in \SpecialChar LyX
24165  that can be customized in 
24166 \family sans
24167 Preferences
24168 \family default
24169 .
24170  One of the things that bothers people is the \SpecialChar LaTeX
24171  font color.
24172  The default color is red, since the chunks uses \SpecialChar LaTeX
24173  font, and there is a lot
24174  of chunks in literate documents, you may get tired of seeing everything
24175  in red.
24176  You can change it by going to the tabs 
24177 \family sans
24178 Look&Feel
24179 \family default
24180
24181 \family sans
24182 Colors.
24183 \end_layout
24184
24185 \begin_layout Standard
24186 The next thing is the visible presence of the newline character in the screen.
24187  You can choose the color of this particular character and make it blend
24188  in the background.
24189  I recommend you choosing a color that is close to the background but not
24190  equal, that way you still can see it is there, but it is not bothering
24191  you anymore.
24192 \end_layout
24193
24194 \begin_layout Subsection
24195 \SpecialChar LyX
24196  and knitr/Sweave
24197 \end_layout
24198
24199 \begin_layout Standard
24200 Support for 
24201 \family sans
24202 knitr
24203 \family default
24204  and 
24205 \family sans
24206 Sweave
24207 \family default
24208  is documented in the 
24209 \emph on
24210 knitr.lyx
24211 \emph default
24212  example file and in the Sweave manual (menu 
24213 \family sans
24214 Help\SpecialChar menuseparator
24215 Specific Manuals
24216 \family default
24217 ).
24218 \end_layout
24219
24220 \begin_layout Chapter
24221 Special features
24222 \end_layout
24223
24224 \begin_layout Standard
24225 You can do everything with \SpecialChar LyX
24226  that you can do with \SpecialChar LaTeX
24227 .
24228  However, \SpecialChar LyX
24229  cannot support every \SpecialChar LaTeX
24230  feature directly.
24231  But you can always use \SpecialChar TeX
24232  Code.
24233  This chapter shows you some more special things you might want to use.
24234  For other special things you can do with figures, tables, floats, boxes
24235  and notes, have a look at the 
24236 \emph on
24237 Embedded
24238 \begin_inset space ~
24239 \end_inset
24240
24241 Objects
24242 \emph default
24243  manual.
24244 \end_layout
24245
24246 \begin_layout Section
24247 Multiple Text Columns
24248 \end_layout
24249
24250 \begin_layout Standard
24251 This feature is independent of the option 
24252 \family sans
24253 Two-column document
24254 \family default
24255  in the document settings under 
24256 \family sans
24257 Text Layout
24258 \family default
24259 .
24260  If you want to have 2
24261 \begin_inset space ~
24262 \end_inset
24263
24264 columns for the whole document, it is recommended to use the 
24265 \family sans
24266 Two-column document
24267 \family default
24268  option.
24269  For all other cases use this feature.
24270 \end_layout
24271
24272 \begin_layout Standard
24273 To use multiple text columns in your document, you have to load the module
24274  
24275 \family sans
24276 Multiple Columns
24277 \family default
24278  (menu 
24279 \family sans
24280 Document\SpecialChar menuseparator
24281 Settings\SpecialChar menuseparator
24282 Modules
24283 \family default
24284 ) and must have the \SpecialChar LaTeX
24285 -package 
24286 \begin_inset Flex Code
24287 status collapsed
24288
24289 \begin_layout Plain Layout
24290 multicol
24291 \end_layout
24292
24293 \end_inset
24294
24295  installed.
24296 \end_layout
24297
24298 \begin_layout Standard
24299 Footnotes within multiple columns will be placed at the bottom of the page
24300  and not under each column.
24301  Within the different columns you can use everything, with the limitation
24302  that for floats you need to use the float option 
24303 \family sans
24304 Span columns
24305 \family default
24306 .
24307 \end_layout
24308
24309 \begin_layout Subsection
24310 Basics
24311 \end_layout
24312
24313 \begin_layout Standard
24314 If you want to have 2
24315 \begin_inset space ~
24316 \end_inset
24317
24318 columns in your text, insert a multicolumn inset via the menu 
24319 \family sans
24320 Insert\SpecialChar menuseparator
24321 Custom
24322 \begin_inset space ~
24323 \end_inset
24324
24325 Insets\SpecialChar menuseparator
24326 Multiple
24327 \begin_inset space ~
24328 \end_inset
24329
24330 Columns
24331 \family default
24332  where the columns should start.
24333  Write all text that should be printed in 2
24334 \begin_inset space ~
24335 \end_inset
24336
24337 columns into this inset.
24338 \end_layout
24339
24340 \begin_layout Standard
24341 Here is an example:
24342 \end_layout
24343
24344 \begin_layout Standard
24345 \noindent
24346 \begin_inset Flex Multiple Columns
24347 status open
24348
24349 \begin_layout Plain Layout
24350 \noindent
24351
24352 \series bold
24353 \size small
24354 The Adventure of the Empty House
24355 \series default
24356
24357 \begin_inset Newline newline
24358 \end_inset
24359
24360 by Sir Arthur Conan Doyle
24361 \end_layout
24362
24363 \begin_layout Plain Layout
24364
24365 \size small
24366 It was in the spring of the year 1894 that all London was interested, and
24367  the fashionable world dismayed, by the murder of the Honourable Ronald
24368  Adair under most unusual and inexplicable circumstances.
24369  The public has already learned those particulars of the crime which came
24370  out in the police investigation, but a good deal was suppressed upon that
24371  occasion, since the case for the prosecution was so overwhelmingly strong
24372  that it was not necessary to bring forward all the facts.
24373  Only now, at the end of nearly ten years, am I allowed to supply those
24374  missing links which make up the whole of that remarkable chain.
24375  The crime was of interest in itself, but that interest was as nothing to
24376  me compared to the inconceivable sequel, which afforded me the greatest
24377  shock and surprise of any event in my adventurous life.
24378  Even now, after this long interval, I find myself thrilling as I think
24379  of it, and feeling once more that sudden flood of joy, amazement, and increduli
24380 ty which utterly submerged my mind.
24381  Let me say to that public, which has shown some interest in those glimpses
24382  which I have occasionally given them of the thoughts and actions of a very
24383  remarkable man, that they are not to blame me if I have not shared my knowledge
24384  with them, for I should have considered it my first duty to do so, had
24385  I not been barred by a positive prohibition from his own lips, which was
24386  only withdrawn upon the third of last month.
24387 \end_layout
24388
24389 \end_inset
24390
24391
24392 \end_layout
24393
24394 \begin_layout Standard
24395 To get 3 or more columns, set the cursor into the multicolumn inset and
24396  use the menu 
24397 \family sans
24398 Insert\SpecialChar menuseparator
24399 Number
24400 \begin_inset space ~
24401 \end_inset
24402
24403 of
24404 \begin_inset space ~
24405 \end_inset
24406
24407 Columns
24408 \family default
24409 .
24410  The number of the desired columns is written into that inset (for 3
24411 \begin_inset space ~
24412 \end_inset
24413
24414 columns write 
24415 \begin_inset Quotes eld
24416 \end_inset
24417
24418 3
24419 \begin_inset Quotes erd
24420 \end_inset
24421
24422 ).
24423 \begin_inset Newline newline
24424 \end_inset
24425
24426 Here is an example with 3
24427 \begin_inset space ~
24428 \end_inset
24429
24430 columns:
24431 \end_layout
24432
24433 \begin_layout Standard
24434 \begin_inset Flex Multiple Columns
24435 status open
24436
24437 \begin_layout Plain Layout
24438
24439 \size footnotesize
24440 \begin_inset Argument 1
24441 status open
24442
24443 \begin_layout Plain Layout
24444
24445 3
24446 \end_layout
24447
24448 \end_inset
24449
24450 It can be imagined that my close intimacy with Sherlock Holmes had interested
24451  me deeply in crime, and that after his disappearance I never failed to
24452  read with care the various problems which came before the public.
24453  And I even attempted, more than once, for my own private satisfaction,
24454  to employ his methods in their solution, though with indifferent success.
24455  There was none, however, which appealed to me like this tragedy of Ronald
24456  Adair.
24457  As I read the evidence at the inquest, which led up to a verdict of willful
24458  murder against some person or persons unknown, I realized more clearly
24459  than I had ever done the loss which the community had sustained by the
24460  death of Sherlock Holmes.
24461  There were points about this strange business which would, I was sure,
24462  have specially appealed to him, and the efforts of the police would have
24463  been supplemented, or more probably anticipated, by the trained observation
24464  and the alert mind of the first criminal agent in Europe.
24465  All day, as I drove upon my round, I turned over the case in my mind and
24466  found no explanation which appeared to me to be adequate.
24467  At the risk of telling a twice-told tale, I will recapitulate the facts
24468  as they were known to the public at the conclusion of the inquest.
24469 \end_layout
24470
24471 \end_inset
24472
24473
24474 \end_layout
24475
24476 \begin_layout Standard
24477 You can have up to 10
24478 \begin_inset space ~
24479 \end_inset
24480
24481 columns if you want to, but that might not be very pleasant for the readers
24482  of your document.
24483 \end_layout
24484
24485 \begin_layout Standard
24486 \begin_inset Newpage newpage
24487 \end_inset
24488
24489
24490 \end_layout
24491
24492 \begin_layout Subsection
24493 Columns inside Columns
24494 \end_layout
24495
24496 \begin_layout Standard
24497 You can also have columns inside columns:
24498 \end_layout
24499
24500 \begin_layout Standard
24501 \begin_inset Flex Multiple Columns
24502 status open
24503
24504 \begin_layout Plain Layout
24505
24506 \size footnotesize
24507 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
24508  at that time governor of one of the Australian colonies.
24509  Adair's mother had returned from Australia to undergo the operation for
24510  cataract, and she, her son Ronald, and her daughter Hilda were living together
24511  at 427 Park Lane.
24512 \end_layout
24513
24514 \begin_layout Plain Layout
24515 \begin_inset Flex Multiple Columns
24516 status open
24517
24518 \begin_layout Plain Layout
24519
24520 \size footnotesize
24521 The youth moved in the best society
24522 \begin_inset space ~
24523 \end_inset
24524
24525 – had, so far as was known, no enemies and no particular vices.
24526  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
24527  had been broken off by mutual consent some months before, and there was
24528  no sign that it had left any very profound feeling behind it.
24529  For the rest {sic} the man's life moved in a narrow and conventional circle,
24530  for his habits were quiet and his nature unemotional.
24531  Yet it was upon this easy-going young aristocrat that death came, in most
24532  strange and unexpected form, between the hours of ten and eleven-twenty
24533  on the night of March 30, 1894.
24534 \end_layout
24535
24536 \end_inset
24537
24538
24539 \end_layout
24540
24541 \begin_layout Plain Layout
24542
24543 \size footnotesize
24544 Ronald Adair was fond of cards
24545 \begin_inset space ~
24546 \end_inset
24547
24548 – playing continually, but never for such stakes as would hurt him.
24549  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
24550  It was shown that, after dinner on the day of his death, he had played
24551  a rubber of whist at the latter club.
24552  He had also played there in the afternoon.
24553
24554 \size default
24555  
24556 \size footnotesize
24557 The evidence of those who had played with him
24558 \begin_inset space ~
24559 \end_inset
24560
24561 – Mr.
24562  Murray, Sir John Hardy, and Colonel Moran
24563 \begin_inset space ~
24564 \end_inset
24565
24566 – showed that the game was whist, and that there was a fairly equal fall
24567  of the cards.
24568  Adair might have lost five pounds, but not more.
24569  His fortune was a considerable one, and such a loss could not in any way
24570  affect him.
24571  He had played nearly every day at one club or other, but he was a cautious
24572  player, and usually rose a winner.
24573  It came out in evidence that, in partnership with Colonel Moran, he had
24574  actually won as much as four hundred and twenty pounds in a sitting, some
24575  weeks before, from Godfrey Milner and Lord Balmoral.
24576  So much for his recent history as it came out at the inquest.
24577 \end_layout
24578
24579 \end_inset
24580
24581
24582 \end_layout
24583
24584 \begin_layout Subsection
24585 Advanced Examples
24586 \end_layout
24587
24588 \begin_layout Standard
24589 The examples in this section show some more special features of multiple
24590  columns.
24591 \end_layout
24592
24593 \begin_layout Standard
24594 For more features of multiple columns, have a look at the 
24595 \begin_inset CommandInset href
24596 LatexCommand href
24597 name "documentation"
24598 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
24599 literal "false"
24600
24601 \end_inset
24602
24603  of the \SpecialChar LaTeX
24604 -package 
24605 \begin_inset Flex Code
24606 status collapsed
24607
24608 \begin_layout Plain Layout
24609 multicol
24610 \end_layout
24611
24612 \end_inset
24613
24614 .
24615 \end_layout
24616
24617 \begin_layout Subsubsection
24618 Preface
24619 \end_layout
24620
24621 \begin_layout Standard
24622 To add a preface text for multiple columns, set the cursor into the multicolumn
24623  inset and use the menu 
24624 \family sans
24625 Insert\SpecialChar menuseparator
24626 Preface
24627 \family default
24628 .
24629  Write your preface text into that inset.
24630 \begin_inset Newline newline
24631 \end_inset
24632
24633 This is an example with some preface text:
24634 \end_layout
24635
24636 \begin_layout Standard
24637 \begin_inset VSpace bigskip
24638 \end_inset
24639
24640
24641 \end_layout
24642
24643 \begin_layout Standard
24644 \begin_inset Flex Multiple Columns
24645 status open
24646
24647 \begin_layout Plain Layout
24648 \begin_inset Argument 2
24649 status open
24650
24651 \begin_layout Plain Layout
24652 And the story continues and continues and continues and continues\SpecialChar ldots
24653
24654 \end_layout
24655
24656 \end_inset
24657
24658
24659 \size small
24660 On the evening of the crime, he returned from the club exactly at ten.
24661  His mother and sister were out spending the evening with a relation.
24662  The servant deposed that she heard him enter the front room on the second
24663  floor, generally used as his sitting-room.
24664  She had lit a fire there, and as it smoked she had opened the window.
24665  No sound was heard from the room until eleven-twenty, the hour of the return
24666  of Lady Maynooth and her daughter.
24667  Desiring to say good-night, she attempted to enter her son's room.
24668  The door was locked on the inside, and no answer could be got to their
24669  cries and knocking.
24670  Help was obtained, and the door forced.
24671  The unfortunate young man was found lying near the table.
24672  His head had been horribly mutilated by an expanding revolver bullet, but
24673  no weapon of any sort was to be found in the room.
24674 \end_layout
24675
24676 \end_inset
24677
24678
24679 \end_layout
24680
24681 \begin_layout Standard
24682 You can also use a section heading as the preface if you use a section command
24683  as \SpecialChar TeX
24684  Code.
24685  For example the command
24686 \end_layout
24687
24688 \begin_layout LyX-Code
24689
24690 \backslash
24691 subsection{subsection title}
24692 \end_layout
24693
24694 \begin_layout Standard
24695 creates a subsection.
24696  In this example the preface is a subsubsection:
24697 \end_layout
24698
24699 \begin_layout Standard
24700 \begin_inset Flex Multiple Columns
24701 status open
24702
24703 \begin_layout Plain Layout
24704 \begin_inset Argument 2
24705 status open
24706
24707 \begin_layout Plain Layout
24708 \begin_inset ERT
24709 status collapsed
24710
24711 \begin_layout Plain Layout
24712
24713
24714 \backslash
24715 subsubsection{
24716 \end_layout
24717
24718 \end_inset
24719
24720 This is a subsubsection heading as a preface
24721 \begin_inset ERT
24722 status collapsed
24723
24724 \begin_layout Plain Layout
24725
24726 }
24727 \end_layout
24728
24729 \end_inset
24730
24731
24732 \end_layout
24733
24734 \end_inset
24735
24736
24737 \size small
24738 A minute examination of the circumstances served only to make the case more
24739  complex.
24740  In the first place, no reason could be given why the young man should have
24741  fastened the door upon the inside.
24742  There was the possibility that the murderer had done this, and had afterwards
24743  escaped by the window.
24744  The drop was at least twenty feet, however, and a bed of crocuses in full
24745  bloom lay beneath.
24746  Neither the flowers nor the earth showed any sign of having been disturbed,
24747  nor were there any marks upon the narrow strip of grass which separated
24748  the house from the road.
24749  Apparently, therefore, it was the young man himself who had fastened the
24750  door.
24751  But how did he come by his death? No one could have climbed up to the window
24752  without leaving traces.
24753  Suppose a man had fired through the window, he would indeed be a remarkable
24754  shot who could with a revolver inflict so deadly a wound.
24755  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
24756  a hundred yards of the house.
24757  No one had heard a shot.
24758 \end_layout
24759
24760 \end_inset
24761
24762
24763 \end_layout
24764
24765 \begin_layout Standard
24766 If there is less vertical space than 6
24767 \begin_inset space ~
24768 \end_inset
24769
24770 text lines is left on the page at the beginning of the multiple columns,
24771  a page break will be inserted before the multiple columns.
24772  Depending on the number of lines of the preface text, you might want to
24773  change this space.
24774  This is done by setting the cursor into the mulitcolumn inset behind the
24775  preface (if there is any) and using the menu 
24776 \family sans
24777 Insert\SpecialChar menuseparator
24778 Space
24779 \begin_inset space ~
24780 \end_inset
24781
24782 Before
24783 \begin_inset space ~
24784 \end_inset
24785
24786 Page
24787 \begin_inset space ~
24788 \end_inset
24789
24790 Break
24791 \family default
24792 .
24793  Insert into that inset the amount of space like e.
24794 \begin_inset space \thinspace{}
24795 \end_inset
24796
24797 g.
24798 \begin_inset space \space{}
24799 \end_inset
24800
24801
24802 \begin_inset Quotes eld
24803 \end_inset
24804
24805 5cm
24806 \begin_inset Quotes erd
24807 \end_inset
24808
24809 .
24810 \begin_inset Newline newline
24811 \end_inset
24812
24813 In this example the space is set to 7
24814 \begin_inset space ~
24815 \end_inset
24816
24817 text lines by using 
24818 \begin_inset Flex Code
24819 status collapsed
24820
24821 \begin_layout Plain Layout
24822 7
24823 \backslash
24824 baselineskip
24825 \end_layout
24826
24827 \end_inset
24828
24829  (where the command 
24830 \begin_inset Flex Code
24831 status collapsed
24832
24833 \begin_layout Plain Layout
24834
24835 \backslash
24836 baselineskip
24837 \end_layout
24838
24839 \end_inset
24840
24841  needs to be inserted as \SpecialChar TeX
24842  code):
24843 \end_layout
24844
24845 \begin_layout Standard
24846 \begin_inset Flex Multiple Columns
24847 status open
24848
24849 \begin_layout Plain Layout
24850 \begin_inset Argument 3
24851 status open
24852
24853 \begin_layout Plain Layout
24854 7
24855 \begin_inset ERT
24856 status collapsed
24857
24858 \begin_layout Plain Layout
24859
24860
24861 \backslash
24862 baselineskip
24863 \end_layout
24864
24865 \end_inset
24866
24867
24868 \end_layout
24869
24870 \end_inset
24871
24872
24873 \size small
24874 On the evening of the crime, he returned from the club exactly at ten.
24875  His mother and sister were out spending the evening with a relation.
24876  The servant deposed that she heard him enter the front room on the second
24877  floor, generally used as his sitting-room.
24878  She had lit a fire there, and as it smoked she had opened the window.
24879  No sound was heard from the room until eleven-twenty, the hour of the return
24880  of Lady Maynooth and her daughter.
24881  Desiring to say good-night, she attempted to enter her son's room.
24882  The door was locked on the inside, and no answer could be got to their
24883  cries and knocking.
24884  Help was obtained, and the door forced.
24885  The unfortunate young man was found lying near the table.
24886  His head had been horribly mutilated by an expanding revolver bullet, but
24887  no weapon of any sort was to be found in the room.
24888 \end_layout
24889
24890 \end_inset
24891
24892
24893 \end_layout
24894
24895 \begin_layout Subsubsection
24896 Surrounding Space
24897 \end_layout
24898
24899 \begin_layout Standard
24900 The amount of space before and after multiple columns can be changed by
24901  changing the length 
24902 \begin_inset Flex Code
24903 status collapsed
24904
24905 \begin_layout Plain Layout
24906
24907 \backslash
24908 multicolsep
24909 \end_layout
24910
24911 \end_inset
24912
24913 .
24914  For example the command
24915 \end_layout
24916
24917 \begin_layout LyX-Code
24918
24919 \backslash
24920 setlength{
24921 \backslash
24922 multicolsep}{3cm}
24923 \end_layout
24924
24925 \begin_layout Standard
24926 in \SpecialChar TeX
24927  Code changes its value to 3
24928 \begin_inset space \thinspace{}
24929 \end_inset
24930
24931 cm.
24932  The change must be made before the multiple columns' start.
24933  The predefined value is 13
24934 \begin_inset space \thinspace{}
24935 \end_inset
24936
24937 pt.
24938 \end_layout
24939
24940 \begin_layout Standard
24941 For this example 
24942 \begin_inset Flex Code
24943 status collapsed
24944
24945 \begin_layout Plain Layout
24946
24947 \backslash
24948 multicolsep
24949 \end_layout
24950
24951 \end_inset
24952
24953  was set to 2.5
24954 \begin_inset space \thinspace{}
24955 \end_inset
24956
24957 cm:
24958 \end_layout
24959
24960 \begin_layout Standard
24961 \begin_inset ERT
24962 status open
24963
24964 \begin_layout Plain Layout
24965
24966
24967 \backslash
24968 setlength{
24969 \backslash
24970 multicolsep}{2.5cm}
24971 \end_layout
24972
24973 \end_inset
24974
24975
24976 \end_layout
24977
24978 \begin_layout Standard
24979 \begin_inset Flex Multiple Columns
24980 status open
24981
24982 \begin_layout Plain Layout
24983
24984 \size small
24985 All day I turned these facts over in my mind, endeavouring to hit upon some
24986  theory which could reconcile them all, and to find that line of least resistanc
24987 e which my poor friend had declared to be the starting-point of every investigat
24988 ion.
24989  I confess that I made little progress.
24990  In the evening I strolled across the Park, and found myself about six o'clock
24991  at the Oxford Street end of Park Lane.
24992  A group of loafers upon the pavements, all staring up at a particular window,
24993  directed me to the house which I had come to see.
24994  A tall, thin man with coloured glasses, whom I strongly suspected of being
24995  a plain-clothes detective, was pointing out some theory of his own, while
24996  the others crowded round to listen to what he said.
24997  I got as near him as I could, but his observations seemed to me to be absurd,
24998  so I withdrew again in some disgust.
24999  As I did so I struck against an elderly, deformed man, who had been behind
25000  me, and I knocked down several books which he was carrying.
25001 \end_layout
25002
25003 \end_inset
25004
25005
25006 \end_layout
25007
25008 \begin_layout Standard
25009 \begin_inset Note Greyedout
25010 status open
25011
25012 \begin_layout Plain Layout
25013
25014 \series bold
25015 Note:
25016 \series default
25017  The values you set with 
25018 \begin_inset Flex Code
25019 status collapsed
25020
25021 \begin_layout Plain Layout
25022
25023 \backslash
25024 setlength
25025 \end_layout
25026
25027 \end_inset
25028
25029  will be used for all following multiple columns until you change them again.
25030 \end_layout
25031
25032 \end_inset
25033
25034
25035 \end_layout
25036
25037 \begin_layout Standard
25038 \begin_inset ERT
25039 status collapsed
25040
25041 \begin_layout Plain Layout
25042
25043
25044 \backslash
25045 setlength{
25046 \backslash
25047 multicolsep}{13pt}
25048 \end_layout
25049
25050 \end_inset
25051
25052
25053 \begin_inset Note Note
25054 status collapsed
25055
25056 \begin_layout Plain Layout
25057 go back to the default
25058 \end_layout
25059
25060 \end_inset
25061
25062
25063 \end_layout
25064
25065 \begin_layout Standard
25066 \begin_inset Newpage newpage
25067 \end_inset
25068
25069
25070 \end_layout
25071
25072 \begin_layout Subsubsection
25073 Column Breaks
25074 \end_layout
25075
25076 \begin_layout Standard
25077 A column break can be forced by inserting the command 
25078 \begin_inset Flex Code
25079 status collapsed
25080
25081 \begin_layout Plain Layout
25082
25083 \backslash
25084 columnbreak{}
25085 \end_layout
25086
25087 \end_inset
25088
25089  as \SpecialChar TeX
25090  Code to that position in the text where the column should be broken.
25091  Note that this leads in most cases to whitespace in the text.
25092 \begin_inset Newline newline
25093 \end_inset
25094
25095 Here is an example:
25096 \end_layout
25097
25098 \begin_layout Standard
25099 \begin_inset Flex Multiple Columns
25100 status open
25101
25102 \begin_layout Plain Layout
25103
25104 \size small
25105 \begin_inset Quotes eld
25106 \end_inset
25107
25108 You're surprised to see me, sir,
25109 \begin_inset Quotes erd
25110 \end_inset
25111
25112  said he, in a strange, croaking voice.
25113 \end_layout
25114
25115 \begin_layout Plain Layout
25116
25117 \size small
25118 I acknowledged that I was.
25119 \end_layout
25120
25121 \begin_layout Plain Layout
25122
25123 \size small
25124 \begin_inset Quotes eld
25125 \end_inset
25126
25127 Well, I've a conscience, sir, and when I chanced to see you go into this
25128  house, as I came hobbling after you, I thought to myself, I'll just step
25129  in and see that kind gentleman, and tell him that if I was a bit gruff
25130  in my manner there was not any harm meant, and that I am much obliged to
25131  him for picking up my books.
25132 \begin_inset Quotes erd
25133 \end_inset
25134
25135
25136 \end_layout
25137
25138 \begin_layout Plain Layout
25139
25140 \size small
25141 \begin_inset Quotes eld
25142 \end_inset
25143
25144 You make too much of a trifle,
25145 \begin_inset Quotes erd
25146 \end_inset
25147
25148  said I.
25149  
25150 \begin_inset Quotes eld
25151 \end_inset
25152
25153 May I ask how you knew who I was?
25154 \begin_inset Quotes erd
25155 \end_inset
25156
25157  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
25158 \begin_inset ERT
25159 status collapsed
25160
25161 \begin_layout Plain Layout
25162
25163
25164 \backslash
25165 columnbreak{}
25166 \end_layout
25167
25168 \end_inset
25169
25170
25171 \end_layout
25172
25173 \begin_layout Plain Layout
25174
25175 \size small
25176 \begin_inset Quotes eld
25177 \end_inset
25178
25179 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25180  you'll find my little bookshop at the corner of Church Street, and very
25181  happy to see you, I am sure.
25182  Maybe you collect yourself, sir.
25183  Here's 
25184 \noun on
25185 British
25186 \begin_inset space ~
25187 \end_inset
25188
25189 Birds
25190 \noun default
25191 , and 
25192 \noun on
25193 Catullus
25194 \noun default
25195 , and 
25196 \noun on
25197 The Holy War
25198 \noun default
25199
25200 \begin_inset space ~
25201 \end_inset
25202
25203 – a bargain, every one of them.
25204  With five volumes you could just fill that gap on that second shelf.
25205  It looks untidy, does it not, sir?
25206 \begin_inset Quotes erd
25207 \end_inset
25208
25209
25210 \end_layout
25211
25212 \end_inset
25213
25214
25215 \end_layout
25216
25217 \begin_layout Subsubsection
25218 Column Separation
25219 \end_layout
25220
25221 \begin_layout Standard
25222 The width of the columns is automatically calculated, but you can modify
25223  the space between the columns.
25224  This is done by changing the length 
25225 \begin_inset Flex Code
25226 status collapsed
25227
25228 \begin_layout Plain Layout
25229
25230 \backslash
25231 columnsep
25232 \end_layout
25233
25234 \end_inset
25235
25236 .
25237  Its predefined value is 10
25238 \begin_inset space \thinspace{}
25239 \end_inset
25240
25241 pt.
25242  Here is an example where 
25243 \begin_inset Flex Code
25244 status collapsed
25245
25246 \begin_layout Plain Layout
25247
25248 \backslash
25249 columnsep
25250 \end_layout
25251
25252 \end_inset
25253
25254  is set to 3
25255 \begin_inset space \thinspace{}
25256 \end_inset
25257
25258 cm:
25259 \end_layout
25260
25261 \begin_layout Standard
25262 \begin_inset ERT
25263 status open
25264
25265 \begin_layout Plain Layout
25266
25267
25268 \backslash
25269 setlength{
25270 \backslash
25271 columnsep}{3cm}
25272 \end_layout
25273
25274 \end_inset
25275
25276
25277 \end_layout
25278
25279 \begin_layout Standard
25280 \begin_inset Flex Multiple Columns
25281 status open
25282
25283 \begin_layout Plain Layout
25284
25285 \size small
25286 My observations of No.
25287 \begin_inset space \space{}
25288 \end_inset
25289
25290 427 Park Lane did little to clear up the problem in which I was interested.
25291  The house was separated from the street by a low wall and railing, the
25292  whole not more than five feet high.
25293  It was perfectly easy, therefore, for anyone to get into the garden, but
25294  the window was entirely inaccessible, since there was no water pipe or
25295  anything which could help the most active man to climb it.
25296  More puzzled than ever, I retraced my steps to Kensington.
25297  I had not been in my study five minutes when the maid entered to say that
25298  a person desired to see me.
25299  To my astonishment it was none other than my strange old book collector,
25300  his sharp, wizened face peering out from a frame of white hair, and his
25301  precious volumes, a dozen of them at least, wedged under his right arm.
25302 \end_layout
25303
25304 \end_inset
25305
25306
25307 \end_layout
25308
25309 \begin_layout Standard
25310 \begin_inset ERT
25311 status collapsed
25312
25313 \begin_layout Plain Layout
25314
25315
25316 \backslash
25317 setlength{
25318 \backslash
25319 columnsep}{10pt}
25320 \end_layout
25321
25322 \end_inset
25323
25324
25325 \begin_inset Note Note
25326 status collapsed
25327
25328 \begin_layout Plain Layout
25329 go back to the default
25330 \end_layout
25331
25332 \end_inset
25333
25334
25335 \end_layout
25336
25337 \begin_layout Subsubsection
25338 Vertical Lines
25339 \end_layout
25340
25341 \begin_layout Standard
25342 Between the columns a rule with a width of the length 
25343 \begin_inset Flex Code
25344 status collapsed
25345
25346 \begin_layout Plain Layout
25347
25348 \backslash
25349 columnseprule
25350 \end_layout
25351
25352 \end_inset
25353
25354  is placed.
25355  If this rule width is set to 0
25356 \begin_inset space \thinspace{}
25357 \end_inset
25358
25359 pt (this is the default), the rule is suppressed.
25360  In the following example the rule is 2
25361 \begin_inset space \thinspace{}
25362 \end_inset
25363
25364 pt wide:
25365 \end_layout
25366
25367 \begin_layout Standard
25368 \begin_inset ERT
25369 status open
25370
25371 \begin_layout Plain Layout
25372
25373
25374 \backslash
25375 setlength{
25376 \backslash
25377 columnseprule}{2pt}
25378 \end_layout
25379
25380 \end_inset
25381
25382
25383 \end_layout
25384
25385 \begin_layout Standard
25386 \begin_inset Flex Multiple Columns
25387 status open
25388
25389 \begin_layout Plain Layout
25390
25391 \size small
25392 \begin_inset Quotes eld
25393 \end_inset
25394
25395 You're surprised to see me, sir,
25396 \begin_inset Quotes erd
25397 \end_inset
25398
25399  said he, in a strange, croaking voice.
25400 \end_layout
25401
25402 \begin_layout Plain Layout
25403
25404 \size small
25405 I acknowledged that I was.
25406 \end_layout
25407
25408 \begin_layout Plain Layout
25409
25410 \size small
25411 \begin_inset Quotes eld
25412 \end_inset
25413
25414 Well, I've a conscience, sir, and when I chanced to see you go into this
25415  house, as I came hobbling after you, I thought to myself, I'll just step
25416  in and see that kind gentleman, and tell him that if I was a bit gruff
25417  in my manner there was not any harm meant, and that I am much obliged to
25418  him for picking up my books.
25419 \begin_inset Quotes erd
25420 \end_inset
25421
25422
25423 \end_layout
25424
25425 \begin_layout Plain Layout
25426
25427 \size small
25428 \begin_inset Quotes eld
25429 \end_inset
25430
25431 You make too much of a trifle,
25432 \begin_inset Quotes erd
25433 \end_inset
25434
25435  said I.
25436  
25437 \begin_inset Quotes eld
25438 \end_inset
25439
25440 May I ask how you knew who I was?
25441 \begin_inset Quotes erd
25442 \end_inset
25443
25444
25445 \end_layout
25446
25447 \begin_layout Plain Layout
25448
25449 \size small
25450 \begin_inset Quotes eld
25451 \end_inset
25452
25453 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25454  you'll find my little bookshop at the corner of Church Street, and very
25455  happy to see you, I am sure.
25456  Maybe you collect yourself, sir.
25457  Here's 
25458 \noun on
25459 British
25460 \begin_inset space ~
25461 \end_inset
25462
25463 Birds
25464 \noun default
25465 , and 
25466 \noun on
25467 Catullus
25468 \noun default
25469 , and 
25470 \noun on
25471 The Holy War
25472 \noun default
25473
25474 \begin_inset space ~
25475 \end_inset
25476
25477 – a bargain, every one of them.
25478  With five volumes you could just fill that gap on that second shelf.
25479  It looks untidy, does it not, sir?
25480 \begin_inset Quotes erd
25481 \end_inset
25482
25483
25484 \end_layout
25485
25486 \end_inset
25487
25488
25489 \end_layout
25490
25491 \begin_layout Standard
25492 \begin_inset VSpace defskip
25493 \end_inset
25494
25495
25496 \end_layout
25497
25498 \begin_layout Standard
25499 The rule can be colored by redefining the command 
25500 \begin_inset Flex Code
25501 status collapsed
25502
25503 \begin_layout Plain Layout
25504
25505 \backslash
25506 columnseprulecolor
25507 \end_layout
25508
25509 \end_inset
25510
25511 .
25512  This is done by inserting the command
25513 \end_layout
25514
25515 \begin_layout LyX-Code
25516
25517 \backslash
25518 renewcommand{
25519 \backslash
25520 columnseprulecolor}{
25521 \backslash
25522 color{red}}
25523 \end_layout
25524
25525 \begin_layout Standard
25526 as \SpecialChar TeX
25527  Code before the multicolumn inset.
25528  Replace 
25529 \begin_inset Flex Code
25530 status collapsed
25531
25532 \begin_layout Plain Layout
25533 red
25534 \end_layout
25535
25536 \end_inset
25537
25538  in this command by a color of your choice.
25539  You can use all pre- and self-defined colors.
25540  See the 
25541 \emph on
25542 EmbeddedObjects
25543 \emph default
25544  manual, section 
25545 \emph on
25546 Colored
25547 \begin_inset space ~
25548 \end_inset
25549
25550 Tables
25551 \emph default
25552  for more information about pre- and self-defined colors.
25553  To go back to the default color insert the command
25554 \end_layout
25555
25556 \begin_layout LyX-Code
25557
25558 \backslash
25559 renewcommand{
25560 \backslash
25561 columnseprulecolor}{
25562 \backslash
25563 normalcolor}
25564 \end_layout
25565
25566 \begin_layout Standard
25567 Here is the example with a cyan rule and 1
25568 \begin_inset space \thinspace{}
25569 \end_inset
25570
25571 cm column separation:
25572 \end_layout
25573
25574 \begin_layout Standard
25575 \begin_inset ERT
25576 status open
25577
25578 \begin_layout Plain Layout
25579
25580
25581 \backslash
25582 setlength{
25583 \backslash
25584 columnsep}{1cm}
25585 \end_layout
25586
25587 \begin_layout Plain Layout
25588
25589
25590 \backslash
25591 renewcommand{
25592 \backslash
25593 columnseprulecolor}{
25594 \backslash
25595 color{cyan}}
25596 \end_layout
25597
25598 \end_inset
25599
25600
25601 \end_layout
25602
25603 \begin_layout Standard
25604 \begin_inset Flex Multiple Columns
25605 status open
25606
25607 \begin_layout Plain Layout
25608
25609 \size small
25610 \begin_inset Quotes eld
25611 \end_inset
25612
25613 You're surprised to see me, sir,
25614 \begin_inset Quotes erd
25615 \end_inset
25616
25617  said he, in a strange, croaking voice.
25618 \end_layout
25619
25620 \begin_layout Plain Layout
25621
25622 \size small
25623 I acknowledged that I was.
25624 \end_layout
25625
25626 \begin_layout Plain Layout
25627
25628 \size small
25629 \begin_inset Quotes eld
25630 \end_inset
25631
25632 Well, I've a conscience, sir, and when I chanced to see you go into this
25633  house, as I came hobbling after you, I thought to myself, I'll just step
25634  in and see that kind gentleman, and tell him that if I was a bit gruff
25635  in my manner there was not any harm meant, and that I am much obliged to
25636  him for picking up my books.
25637 \begin_inset Quotes erd
25638 \end_inset
25639
25640
25641 \end_layout
25642
25643 \begin_layout Plain Layout
25644
25645 \size small
25646 \begin_inset Quotes eld
25647 \end_inset
25648
25649 You make too much of a trifle,
25650 \begin_inset Quotes erd
25651 \end_inset
25652
25653  said I.
25654  
25655 \begin_inset Quotes eld
25656 \end_inset
25657
25658 May I ask how you knew who I was?
25659 \begin_inset Quotes erd
25660 \end_inset
25661
25662
25663 \end_layout
25664
25665 \begin_layout Plain Layout
25666
25667 \size small
25668 \begin_inset Quotes eld
25669 \end_inset
25670
25671 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25672  you'll find my little bookshop at the corner of Church Street, and very
25673  happy to see you, I am sure.
25674  Maybe you collect yourself, sir.
25675  Here's 
25676 \noun on
25677 British
25678 \begin_inset space ~
25679 \end_inset
25680
25681 Birds
25682 \noun default
25683 , and 
25684 \noun on
25685 Catullus
25686 \noun default
25687 , and 
25688 \noun on
25689 The Holy War
25690 \noun default
25691
25692 \begin_inset space ~
25693 \end_inset
25694
25695 – a bargain, every one of them.
25696  With five volumes you could just fill that gap on that second shelf.
25697  It looks untidy, does it not, sir?
25698 \begin_inset Quotes erd
25699 \end_inset
25700
25701
25702 \end_layout
25703
25704 \end_inset
25705
25706
25707 \end_layout
25708
25709 \begin_layout Standard
25710 \begin_inset ERT
25711 status collapsed
25712
25713 \begin_layout Plain Layout
25714
25715
25716 \backslash
25717 setlength{
25718 \backslash
25719 columnseprule}{0pt}
25720 \end_layout
25721
25722 \begin_layout Plain Layout
25723
25724
25725 \backslash
25726 renewcommand{
25727 \backslash
25728 columnseprulecolor}{
25729 \backslash
25730 normalcolor}
25731 \end_layout
25732
25733 \end_inset
25734
25735
25736 \begin_inset Note Note
25737 status collapsed
25738
25739 \begin_layout Plain Layout
25740 go back to the default
25741 \end_layout
25742
25743 \end_inset
25744
25745
25746 \end_layout
25747
25748 \begin_layout Section
25749 Non-standard Paragraph Shapes
25750 \end_layout
25751
25752 \begin_layout Standard
25753 \noindent
25754 \SpecialChar LaTeX
25755  as well as any other text processor uses by default rectangular paragraphs.
25756  For special cases like for example posters, invitation cards or poems you
25757  can modify the paragraph shape to one of your choice.
25758  This can be done by using the \SpecialChar LaTeX
25759 -package 
25760 \begin_inset Flex Code
25761 status collapsed
25762
25763 \begin_layout Plain Layout
25764 shapepar
25765 \end_layout
25766
25767 \end_inset
25768
25769  which is loaded by using in the document settings the module 
25770 \family sans
25771 Custom paragraph shapes
25772 \family default
25773 .
25774 \end_layout
25775
25776 \begin_layout Subsection
25777 Predefined shapes
25778 \end_layout
25779
25780 \begin_layout Standard
25781
25782 \series bold
25783 shapepar
25784 \series default
25785  provides the following shapes:
25786 \end_layout
25787
25788 \begin_layout Standard
25789 \begin_inset Tabular
25790 <lyxtabular version="3" rows="13" columns="3">
25791 <features booktabs="true" islongtable="true" longtabularalignment="center">
25792 <column alignment="left" valignment="middle" width="16col%">
25793 <column alignment="left" valignment="middle" width="40col%">
25794 <column alignment="left" valignment="middle" width="35col%">
25795 <row endhead="true">
25796 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25797 \begin_inset Text
25798
25799 \begin_layout Plain Layout
25800
25801 \series bold
25802 \size small
25803 Name
25804 \end_layout
25805
25806 \end_inset
25807 </cell>
25808 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25809 \begin_inset Text
25810
25811 \begin_layout Plain Layout
25812
25813 \series bold
25814 \size small
25815 Description
25816 \end_layout
25817
25818 \end_inset
25819 </cell>
25820 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25821 \begin_inset Text
25822
25823 \begin_layout Plain Layout
25824
25825 \series bold
25826 \size small
25827 Annotation
25828 \end_layout
25829
25830 \end_inset
25831 </cell>
25832 </row>
25833 <row interlinespace="default">
25834 <cell alignment="left" valignment="top" usebox="none">
25835 \begin_inset Text
25836
25837 \begin_layout Plain Layout
25838
25839 \size small
25840 CDlabel
25841 \end_layout
25842
25843 \end_inset
25844 </cell>
25845 <cell alignment="left" valignment="top" usebox="none">
25846 \begin_inset Text
25847
25848 \begin_layout Plain Layout
25849
25850 \size small
25851 Circle with circular hole (in the size of a CD/DVD)
25852 \end_layout
25853
25854 \end_inset
25855 </cell>
25856 <cell alignment="left" valignment="top" usebox="none">
25857 \begin_inset Text
25858
25859 \begin_layout Plain Layout
25860
25861 \size small
25862 Cannot be scaled, take care there is not too much text
25863 \end_layout
25864
25865 \end_inset
25866 </cell>
25867 </row>
25868 <row interlinespace="default">
25869 <cell alignment="left" valignment="top" usebox="none">
25870 \begin_inset Text
25871
25872 \begin_layout Plain Layout
25873
25874 \size small
25875 Circle
25876 \end_layout
25877
25878 \end_inset
25879 </cell>
25880 <cell alignment="left" valignment="top" usebox="none">
25881 \begin_inset Text
25882
25883 \begin_layout Plain Layout
25884
25885 \size small
25886 Circle
25887 \end_layout
25888
25889 \end_inset
25890 </cell>
25891 <cell alignment="left" valignment="top" usebox="none">
25892 \begin_inset Text
25893
25894 \begin_layout Plain Layout
25895
25896 \size small
25897 Fragile, calculation might fail
25898 \end_layout
25899
25900 \end_inset
25901 </cell>
25902 </row>
25903 <row interlinespace="default">
25904 <cell alignment="left" valignment="top" usebox="none">
25905 \begin_inset Text
25906
25907 \begin_layout Plain Layout
25908
25909 \size small
25910 Diamond
25911 \end_layout
25912
25913 \end_inset
25914 </cell>
25915 <cell alignment="left" valignment="top" usebox="none">
25916 \begin_inset Text
25917
25918 \begin_layout Plain Layout
25919
25920 \size small
25921 Rhomboid (symbolizing a 
25922 \begin_inset Quotes eld
25923 \end_inset
25924
25925 diamond
25926 \begin_inset Quotes erd
25927 \end_inset
25928
25929 )
25930 \end_layout
25931
25932 \end_inset
25933 </cell>
25934 <cell alignment="left" valignment="top" usebox="none">
25935 \begin_inset Text
25936
25937 \begin_layout Plain Layout
25938
25939 \size small
25940 -
25941 \end_layout
25942
25943 \end_inset
25944 </cell>
25945 </row>
25946 <row interlinespace="default">
25947 <cell alignment="left" valignment="top" usebox="none">
25948 \begin_inset Text
25949
25950 \begin_layout Plain Layout
25951
25952 \size small
25953 Heart
25954 \end_layout
25955
25956 \end_inset
25957 </cell>
25958 <cell alignment="left" valignment="top" usebox="none">
25959 \begin_inset Text
25960
25961 \begin_layout Plain Layout
25962
25963 \size small
25964 Heart-like shape
25965 \end_layout
25966
25967 \end_inset
25968 </cell>
25969 <cell alignment="left" valignment="top" usebox="none">
25970 \begin_inset Text
25971
25972 \begin_layout Plain Layout
25973
25974 \size small
25975 -
25976 \end_layout
25977
25978 \end_inset
25979 </cell>
25980 </row>
25981 <row interlinespace="default">
25982 <cell alignment="left" valignment="top" usebox="none">
25983 \begin_inset Text
25984
25985 \begin_layout Plain Layout
25986
25987 \size small
25988 Hexagon
25989 \end_layout
25990
25991 \end_inset
25992 </cell>
25993 <cell alignment="left" valignment="top" usebox="none">
25994 \begin_inset Text
25995
25996 \begin_layout Plain Layout
25997
25998 \size small
25999 Hexagon
26000 \end_layout
26001
26002 \end_inset
26003 </cell>
26004 <cell alignment="left" valignment="top" usebox="none">
26005 \begin_inset Text
26006
26007 \begin_layout Plain Layout
26008
26009 \size small
26010 -
26011 \end_layout
26012
26013 \end_inset
26014 </cell>
26015 </row>
26016 <row interlinespace="default">
26017 <cell alignment="left" valignment="top" usebox="none">
26018 \begin_inset Text
26019
26020 \begin_layout Plain Layout
26021
26022 \size small
26023 Nut
26024 \end_layout
26025
26026 \end_inset
26027 </cell>
26028 <cell alignment="left" valignment="top" usebox="none">
26029 \begin_inset Text
26030
26031 \begin_layout Plain Layout
26032
26033 \size small
26034 Nut for bolt (hexagon with circular hole)
26035 \end_layout
26036
26037 \end_inset
26038 </cell>
26039 <cell alignment="left" valignment="top" usebox="none">
26040 \begin_inset Text
26041
26042 \begin_layout Plain Layout
26043
26044 \size small
26045 -
26046 \end_layout
26047
26048 \end_inset
26049 </cell>
26050 </row>
26051 <row interlinespace="default">
26052 <cell alignment="left" valignment="top" usebox="none">
26053 \begin_inset Text
26054
26055 \begin_layout Plain Layout
26056
26057 \size small
26058 Square
26059 \end_layout
26060
26061 \end_inset
26062 </cell>
26063 <cell alignment="left" valignment="top" usebox="none">
26064 \begin_inset Text
26065
26066 \begin_layout Plain Layout
26067
26068 \size small
26069 Square
26070 \end_layout
26071
26072 \end_inset
26073 </cell>
26074 <cell alignment="left" valignment="top" usebox="none">
26075 \begin_inset Text
26076
26077 \begin_layout Plain Layout
26078
26079 \size small
26080 -
26081 \end_layout
26082
26083 \end_inset
26084 </cell>
26085 </row>
26086 <row interlinespace="default">
26087 <cell alignment="left" valignment="top" usebox="none">
26088 \begin_inset Text
26089
26090 \begin_layout Plain Layout
26091
26092 \size small
26093 Star
26094 \end_layout
26095
26096 \end_inset
26097 </cell>
26098 <cell alignment="left" valignment="top" usebox="none">
26099 \begin_inset Text
26100
26101 \begin_layout Plain Layout
26102
26103 \size small
26104 Five-point star
26105 \end_layout
26106
26107 \end_inset
26108 </cell>
26109 <cell alignment="left" valignment="top" usebox="none">
26110 \begin_inset Text
26111
26112 \begin_layout Plain Layout
26113
26114 \size small
26115 -
26116 \end_layout
26117
26118 \end_inset
26119 </cell>
26120 </row>
26121 <row interlinespace="default">
26122 <cell alignment="left" valignment="top" usebox="none">
26123 \begin_inset Text
26124
26125 \begin_layout Plain Layout
26126
26127 \size small
26128 Candle
26129 \end_layout
26130
26131 \end_inset
26132 </cell>
26133 <cell alignment="left" valignment="top" usebox="none">
26134 \begin_inset Text
26135
26136 \begin_layout Plain Layout
26137
26138 \size small
26139 Burning candle
26140 \end_layout
26141
26142 \end_inset
26143 </cell>
26144 <cell alignment="left" valignment="top" usebox="none">
26145 \begin_inset Text
26146
26147 \begin_layout Plain Layout
26148
26149 \size small
26150 -
26151 \end_layout
26152
26153 \end_inset
26154 </cell>
26155 </row>
26156 <row interlinespace="default">
26157 <cell alignment="left" valignment="top" usebox="none">
26158 \begin_inset Text
26159
26160 \begin_layout Plain Layout
26161
26162 \size small
26163 Drop down/up
26164 \end_layout
26165
26166 \end_inset
26167 </cell>
26168 <cell alignment="left" valignment="top" usebox="none">
26169 \begin_inset Text
26170
26171 \begin_layout Plain Layout
26172
26173 \size small
26174 Normal/reversed rain drop
26175 \end_layout
26176
26177 \end_inset
26178 </cell>
26179 <cell alignment="left" valignment="top" usebox="none">
26180 \begin_inset Text
26181
26182 \begin_layout Plain Layout
26183
26184 \size small
26185 Fragile, calculation might fail
26186 \end_layout
26187
26188 \end_inset
26189 </cell>
26190 </row>
26191 <row interlinespace="default">
26192 <cell alignment="left" valignment="top" usebox="none">
26193 \begin_inset Text
26194
26195 \begin_layout Plain Layout
26196
26197 \size small
26198 \SpecialChar TeX
26199
26200 \end_layout
26201
26202 \end_inset
26203 </cell>
26204 <cell alignment="left" valignment="top" usebox="none">
26205 \begin_inset Text
26206
26207 \begin_layout Plain Layout
26208
26209 \size small
26210 The \SpecialChar TeX
26211  logo
26212 \end_layout
26213
26214 \end_inset
26215 </cell>
26216 <cell alignment="left" valignment="top" usebox="none">
26217 \begin_inset Text
26218
26219 \begin_layout Plain Layout
26220
26221 \size small
26222 -
26223 \end_layout
26224
26225 \end_inset
26226 </cell>
26227 </row>
26228 <row interlinespace="default">
26229 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
26230 \begin_inset Text
26231
26232 \begin_layout Plain Layout
26233
26234 \size small
26235 Triangle up/down/
26236 \begin_inset Newline newline
26237 \end_inset
26238
26239 left/right
26240 \end_layout
26241
26242 \end_inset
26243 </cell>
26244 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
26245 \begin_inset Text
26246
26247 \begin_layout Plain Layout
26248
26249 \size small
26250 Triangles in different orientations
26251 \end_layout
26252
26253 \end_inset
26254 </cell>
26255 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
26256 \begin_inset Text
26257
26258 \begin_layout Plain Layout
26259
26260 \size small
26261 -
26262 \end_layout
26263
26264 \end_inset
26265 </cell>
26266 </row>
26267 </lyxtabular>
26268
26269 \end_inset
26270
26271
26272 \end_layout
26273
26274 \begin_layout Standard
26275 To use a shape for your paragraph, simply select it in \SpecialChar LyX
26276 's pull-down box
26277  for environments in the toolbar.
26278 \end_layout
26279
26280 \begin_layout Standard
26281 \begin_inset Newpage newpage
26282 \end_inset
26283
26284
26285 \end_layout
26286
26287 \begin_layout Standard
26288 Here is an example paragraph in the shape of a nut:
26289 \end_layout
26290
26291 \begin_layout Standard
26292 \begin_inset VSpace bigskip
26293 \end_inset
26294
26295
26296 \end_layout
26297
26298 \begin_layout Nut
26299
26300 \lang latin
26301 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26302  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26303  voluptua.
26304  At vero eos et accusam et justo duo dolores et ea rebum.
26305  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26306  sit amet.
26307  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26308  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26309  voluptua.
26310 \end_layout
26311
26312 \begin_layout Standard
26313 \begin_inset VSpace bigskip
26314 \end_inset
26315
26316
26317 \end_layout
26318
26319 \begin_layout Standard
26320 \begin_inset Note Greyedout
26321 status open
26322
26323 \begin_layout Plain Layout
26324
26325 \series bold
26326 Note
26327 \series default
26328
26329 \family sans
26330 shapepar
26331 \family default
26332  paragraphs cannot run over a page break.
26333 \end_layout
26334
26335 \end_inset
26336
26337
26338 \end_layout
26339
26340 \begin_layout Standard
26341 \begin_inset VSpace bigskip
26342 \end_inset
26343
26344
26345 \end_layout
26346
26347 \begin_layout Standard
26348 The package 
26349 \begin_inset Flex Code
26350 status collapsed
26351
26352 \begin_layout Plain Layout
26353 shapepar
26354 \end_layout
26355
26356 \end_inset
26357
26358  takes care that the shape will always be preserved, no matter how much
26359  text is in the paragraph.
26360  Therefore the paragraph size changes with the amount of contained text.
26361  This can lead to paragraph sizes exceeding the page margins.
26362  To demonstrate the size scaling, here is the same example paragraph but
26363  with twice as much text:
26364 \end_layout
26365
26366 \begin_layout Standard
26367 \begin_inset Newpage newpage
26368 \end_inset
26369
26370
26371 \end_layout
26372
26373 \begin_layout Nut
26374
26375 \lang latin
26376 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26377  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26378  voluptua.
26379  At vero eos et accusam et justo duo dolores et ea rebum.
26380  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26381  sit amet.
26382  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26383  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26384  voluptua.
26385  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26386  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26387  voluptua.
26388  At vero eos et accusam et justo duo dolores et ea rebum.
26389  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26390  sit amet.
26391  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26392  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26393  voluptua.
26394 \end_layout
26395
26396 \begin_layout Standard
26397 \begin_inset VSpace bigskip
26398 \end_inset
26399
26400
26401 \end_layout
26402
26403 \begin_layout Standard
26404 An exception is the shape 
26405 \family sans
26406 CDlabel
26407 \family default
26408 .
26409  It cannot be scaled because it must fit the size of a CD/DVD.
26410  Therefore the amount of text that fits into the shape is limited.
26411 \begin_inset Newline newline
26412 \end_inset
26413
26414 The 
26415 \family sans
26416 drop
26417 \family default
26418  shapes and the 
26419 \family sans
26420 circle
26421 \family default
26422  shape are fragile, meaning that the calculation of their size can fail,
26423  depending on the amount of text.
26424  You will then get the \SpecialChar LaTeX
26425  error 
26426 \begin_inset Quotes eld
26427 \end_inset
26428
26429 Arithmetic overflow
26430 \begin_inset Quotes erd
26431 \end_inset
26432
26433 .
26434  In this case one can try to remove or add some text; if nothing works one
26435  has to use another shape.
26436 \end_layout
26437
26438 \begin_layout Standard
26439 \begin_inset VSpace bigskip
26440 \end_inset
26441
26442
26443 \end_layout
26444
26445 \begin_layout Standard
26446 For shapes with tips you will maybe see that \SpecialChar LaTeX
26447 's hyphenation routine fails
26448  for text in the tips.
26449  Therefore it is often necessary to add hyphenation points 
26450 \family sans
26451 (
26452 \begin_inset Info
26453 type  "shortcut"
26454 arg   "specialchar-insert hyphenation"
26455 \end_inset
26456
26457
26458 \family default
26459 ) to the corresponding text parts.
26460 \end_layout
26461
26462 \begin_layout Standard
26463 \begin_inset VSpace bigskip
26464 \end_inset
26465
26466
26467 \end_layout
26468
26469 \begin_layout Standard
26470 Shapepar paragraphs are either always centered or placed on the page so
26471  that their left border touches the left page margin.
26472  You can therefore not use the paragraph dialog to align such paragraphs.
26473  A solution is to put the paragraph into a minipage or parbox and align
26474  the box.
26475  The problem is hereby to find the right width for the box.
26476  Because if it is too wide and you center the box, the paragraph is not
26477  centered too because it sticks at the left side of the box.
26478  So you might have to play a bit with the width until it fits.
26479  Here are two heart-shaped paragraphs, the first one is not aligned, the
26480  second one is right-aligned:
26481 \end_layout
26482
26483 \begin_layout Standard
26484 \begin_inset Newpage newpage
26485 \end_inset
26486
26487
26488 \end_layout
26489
26490 \begin_layout Heart
26491 \noindent
26492
26493 \lang latin
26494 Lo\SpecialChar softhyphen
26495 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26496  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26497  voluptua.
26498  At vero eos et accusam et justo duo dolores et ea rebum.
26499  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26500  sit amet.
26501 \end_layout
26502
26503 \begin_layout Standard
26504 \begin_inset VSpace bigskip
26505 \end_inset
26506
26507
26508 \end_layout
26509
26510 \begin_layout Standard
26511 \noindent
26512 \align right
26513 \begin_inset Box Frameless
26514 position "t"
26515 hor_pos "c"
26516 has_inner_box 1
26517 inner_pos "t"
26518 use_parbox 1
26519 use_makebox 0
26520 width "42col%"
26521 special "none"
26522 height "1in"
26523 height_special "totalheight"
26524 thickness "0.4pt"
26525 separation "3pt"
26526 shadowsize "4pt"
26527 framecolor "black"
26528 backgroundcolor "none"
26529 status open
26530
26531 \begin_layout Heart
26532 \noindent
26533
26534 \lang latin
26535 Lo\SpecialChar softhyphen
26536 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26537  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26538  voluptua.
26539  At vero eos et accusam et justo duo dolores et ea rebum.
26540  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26541  sit amet.
26542 \end_layout
26543
26544 \end_inset
26545
26546
26547 \end_layout
26548
26549 \begin_layout Subsection
26550 Custom shapes
26551 \end_layout
26552
26553 \begin_layout Standard
26554 You can define any shape you want.
26555  Doing this manually is a lot of work because every coordinate must be specified.
26556  But there is a way to let the computer calculate the coordinates:
26557 \end_layout
26558
26559 \begin_layout Enumerate
26560 Install the program 
26561 \begin_inset CommandInset href
26562 LatexCommand href
26563 name "Jpgfdraw"
26564 target "https://www.ctan.org/tex-archive/graphics/jpgfdraw"
26565 literal "false"
26566
26567 \end_inset
26568
26569 .
26570 \end_layout
26571
26572 \begin_layout Enumerate
26573 In 
26574 \family sans
26575 Jpgfdraw
26576 \family default
26577  go to the menu 
26578 \family sans
26579 TeX/LaTeX\SpecialChar menuseparator
26580 Settings\SpecialChar menuseparator
26581 Set Normal Size
26582 \family default
26583  and select the font size you are using in your document.
26584  For example this document uses the size 12
26585 \begin_inset space \thinspace{}
26586 \end_inset
26587
26588 pt.
26589 \end_layout
26590
26591 \begin_layout Enumerate
26592 Draw a shape.
26593 \end_layout
26594
26595 \begin_layout Enumerate
26596 Use the menu 
26597 \family sans
26598 TeX/LaTeX\SpecialChar menuseparator
26599 Shapepar
26600 \family default
26601  to export the shape to coordinates.
26602  In the appearing dialog use either the outline of your shape for the coordinate
26603 s or the path itself.
26604 \begin_inset Foot
26605 status collapsed
26606
26607 \begin_layout Plain Layout
26608 For more information see 
26609 \begin_inset CommandInset href
26610 LatexCommand href
26611 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
26612 literal "false"
26613
26614 \end_inset
26615
26616
26617 \end_layout
26618
26619 \end_inset
26620
26621
26622 \end_layout
26623
26624 \begin_layout Standard
26625 The coordinates are written into a \SpecialChar TeX
26626  file.
26627  To use it for your \SpecialChar LyX
26628  document
26629 \end_layout
26630
26631 \begin_layout Enumerate
26632 Place the cursor before the first character of your paragraph (or into a
26633  new empty one).
26634 \end_layout
26635
26636 \begin_layout Enumerate
26637 Open in \SpecialChar LyX
26638  the menu 
26639 \family sans
26640 Insert\SpecialChar menuseparator
26641 File\SpecialChar menuseparator
26642 Child
26643 \begin_inset space ~
26644 \end_inset
26645
26646 Document
26647 \family default
26648 , select the file and use 
26649 \family sans
26650 Input
26651 \family default
26652  as 
26653 \family sans
26654 Include Type.
26655 \end_layout
26656
26657 \begin_layout Standard
26658 \begin_inset VSpace defskip
26659 \end_inset
26660
26661
26662 \end_layout
26663
26664 \begin_layout Standard
26665 \begin_inset Note Greyedout
26666 status open
26667
26668 \begin_layout Plain Layout
26669
26670 \series bold
26671 Note
26672 \series default
26673 : The changed shape only applies to the current paragraph; everything is
26674  reset to normal for the next paragraph.
26675  Therefore the shape definition file must be input into every paragraph
26676  with the desired shape.
26677 \end_layout
26678
26679 \end_inset
26680
26681
26682 \end_layout
26683
26684 \begin_layout Standard
26685 \begin_inset VSpace bigskip
26686 \end_inset
26687
26688
26689 \end_layout
26690
26691 \begin_layout Standard
26692 Here is an example:
26693 \end_layout
26694
26695 \begin_layout Standard
26696 \begin_inset VSpace bigskip
26697 \end_inset
26698
26699
26700 \end_layout
26701
26702 \begin_layout Standard
26703 \begin_inset CommandInset include
26704 LatexCommand input
26705 filename "SpecialParagraphShape.tex"
26706 literal "true"
26707
26708 \end_inset
26709
26710
26711 \lang latin
26712 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26713  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26714  voluptua.
26715  At vero eos et accusam et justo duo dolores et ea rebum.
26716  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26717  sit amet.
26718  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26719  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26720  voluptua.
26721 \end_layout
26722
26723 \begin_layout Standard
26724 \begin_inset VSpace bigskip
26725 \end_inset
26726
26727
26728 \end_layout
26729
26730 \begin_layout Standard
26731
26732 \series bold
26733 A tip:
26734 \series default
26735  to draw complexer shapes in 
26736 \family sans
26737 Jpgfdraw
26738 \family default
26739  you can draw the shape in a program of your choice and import the resulting
26740  image to 
26741 \family sans
26742 Jpgfdraw
26743 \family default
26744 .
26745  Then you only need to draw a line or spline along the outline of the image.
26746 \end_layout
26747
26748 \begin_layout Standard
26749 \begin_inset VSpace bigskip
26750 \end_inset
26751
26752
26753 \end_layout
26754
26755 \begin_layout Standard
26756 The module 
26757 \family sans
26758 Custom paragraph shapes
26759 \family default
26760  also provides the two commands 
26761 \family sans
26762 shapepar
26763 \family default
26764  and 
26765 \family sans
26766 Shapepar
26767 \family default
26768  which can be used to define custom shapes coordinate by coordinate.
26769 \begin_inset Foot
26770 status collapsed
26771
26772 \begin_layout Plain Layout
26773 These commands are internally used for all shapes described here.
26774 \end_layout
26775
26776 \end_inset
26777
26778  For information how these styles are used and about further customization
26779  possibilities, have a look at the 
26780 \begin_inset CommandInset href
26781 LatexCommand href
26782 name "documentation"
26783 target "https://www.ctan.org/tex-archive/macros/latex/contrib/shapepar/shapepar.pdf"
26784 literal "false"
26785
26786 \end_inset
26787
26788  of the package 
26789 \begin_inset Flex Code
26790 status collapsed
26791
26792 \begin_layout Plain Layout
26793 shapepar
26794 \end_layout
26795
26796 \end_inset
26797
26798 .
26799 \end_layout
26800
26801 \end_body
26802 \end_document