]> git.lyx.org Git - lyx.git/blob - lib/doc/Additional.lyx
Get rid of Qt resources
[lyx.git] / lib / doc / Additional.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 590
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 a4
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 \change_bars false
125 \html_math_output 0
126 \html_css_as_file 0
127 \html_be_strict true
128 \author -712698321 "Jürgen Spitzmüller"
129 \author 5863208 "ab"
130 \author 1119979965 "Joel A. Kulesza"
131 \end_header
132
133 \begin_body
134
135 \begin_layout Title
136 Additional \SpecialChar LyX
137  Features
138 \end_layout
139
140 \begin_layout Subtitle
141 Version 2.3.x
142 \end_layout
143
144 \begin_layout Author
145 by the \SpecialChar LyX
146  Team
147 \begin_inset Foot
148 status collapsed
149
150 \begin_layout Plain Layout
151 \noindent
152 Principal maintainer of this file is
153 \noun on
154  Richard Heck
155 \noun default
156 .
157  If you have comments or error corrections, please send them to the \SpecialChar LyX
158  Documentati
159 on mailing list, 
160 \begin_inset Flex Code
161 status collapsed
162
163 \begin_layout Plain Layout
164 <lyx-docs@lists.lyx.org>
165 \end_layout
166
167 \end_inset
168
169 .
170 \end_layout
171
172 \end_inset
173
174
175 \end_layout
176
177 \begin_layout Standard
178 \begin_inset CommandInset toc
179 LatexCommand tableofcontents
180
181 \end_inset
182
183
184 \end_layout
185
186 \begin_layout Chapter
187 Introduction
188 \end_layout
189
190 \begin_layout Standard
191 This manual is essentially Part II of the 
192 \emph on
193 User's Guide\SpecialChar endofsentence
194
195 \emph default
196  The reason for separating the two documents is simple: the 
197 \emph on
198 User's Guide
199 \emph default
200  is already quite lengthy, and it contains information on all of the basic
201  features one needs to know in order to prepare most documents.
202  However, the \SpecialChar LyX
203  Team has worked to make \SpecialChar LyX
204  extensible through various configuration
205  files and external packages.
206  That means that if you want to support the Fizzwizzle \SpecialChar LaTeX
207  package, you can
208  create a layout file (or module) for it without having to alter \SpecialChar LyX
209  itself.
210  We've already had contributions of several new features this way, and some
211  of them are documented here.
212  There are also some more `advanced' features, such as how to control the
213  presentation of bibliographies and how to work with multi-part documents,
214  that are not covered in the 
215 \emph on
216 User's Guide
217 \emph default
218  and are discussed here.
219 \end_layout
220
221 \begin_layout Standard
222 This manual also documents some special features, like fax support, version
223  control, and SGML support, which require additional software to work properly.
224  There is also a chapter on \SpecialChar LyX
225 's support for HTML.
226  And lastly, there's a chapter of \SpecialChar LaTeX
227  tools and tips, things you can use to
228  spruce up your documents by directly using the powerful features of \SpecialChar LaTeX
229 .
230  After all, \SpecialChar LyX
231  
232 \emph on
233 is
234 \emph default
235  only WYSIWYM and will only ever interface to some, not all, \SpecialChar LaTeX
236  features.
237 \end_layout
238
239 \begin_layout Standard
240 If you haven't read the 
241 \emph on
242 Introduction
243 \emph default
244  yet, you are definitely in the wrong manual.
245  The 
246 \emph on
247 Introduction
248 \emph default
249  is the first place to go, since it describes the notation and format of
250  all of the manuals.
251  You should also be thoroughly familiar with the 
252 \emph on
253 User's Guide
254 \emph default
255  and all of the basic features of \SpecialChar LyX
256  before attempting to read this one.
257 \end_layout
258
259 \begin_layout Standard
260 Since many of the topics in this manual depend heavily on \SpecialChar LyX
261 's interaction
262  with \SpecialChar LaTeX
263 , this first chapter covers the inner workings of \SpecialChar LyX
264  and how to direct
265  \SpecialChar LyX
266  to generate exactly the \SpecialChar LaTeX
267  code you want.
268  It is obviously for more seasoned \SpecialChar LyX
269  users.
270 \end_layout
271
272 \begin_layout Chapter
273 \SpecialChar LyX
274  and \SpecialChar LaTeX
275
276 \end_layout
277
278 \begin_layout Section
279 How \SpecialChar LyX
280  Uses \SpecialChar LaTeX
281
282 \end_layout
283
284 \begin_layout Standard
285 This chapter is for both \SpecialChar TeX
286 -nicians and the \SpecialChar LaTeX
287 -curious.
288  In it, we'll explain how \SpecialChar LyX
289  and \SpecialChar LaTeX
290  work together to produce printable output.
291  This is the only place in any of the manuals where we assume you know something
292  about \SpecialChar LaTeX
293 .
294 \end_layout
295
296 \begin_layout Standard
297 At one time, \SpecialChar LyX
298  was called a 
299 \begin_inset Quotes eld
300 \end_inset
301
302 WYSIWYM frontend to \SpecialChar LaTeX
303 ,
304 \begin_inset Quotes erd
305 \end_inset
306
307  but that's no longer true.
308  There are frontends to \SpecialChar LaTeX
309  out there.
310 \begin_inset Foot
311 status collapsed
312
313 \begin_layout Plain Layout
314 Some familar ones are \SpecialChar TeX
315 maker and kile, on Linux, and \SpecialChar TeX
316 shop, OSX.
317  There are also the \SpecialChar LaTeX
318  modes for vi and emacs, of course.
319 \end_layout
320
321 \end_inset
322
323  These are basically text editors with the ability to run \SpecialChar LaTeX
324  and mark any
325  errors in the file you're editing.
326  Although \SpecialChar LyX
327  
328 \emph on
329 is
330 \emph default
331  an editor, and it 
332 \emph on
333 does
334 \emph default
335  run \SpecialChar LaTeX
336 , and it also indicates errors in the file, it also does much, much
337  more.
338  For one thing, you don't need to know \SpecialChar LaTeX
339  to use \SpecialChar LyX
340  effectively.
341  And \SpecialChar LyX
342  has added its own extensions to \SpecialChar LaTeX
343 .
344  Try the following sometime: select 
345 \begin_inset Flex Noun
346 status collapsed
347
348 \begin_layout Plain Layout
349 Export\SpecialChar menuseparator
350 LaTeX
351 \end_layout
352
353 \end_inset
354
355  from the 
356 \begin_inset Flex Noun
357 status collapsed
358
359 \begin_layout Plain Layout
360 File
361 \end_layout
362
363 \end_inset
364
365  menu (or 
366 \begin_inset Flex Noun
367 status collapsed
368
369 \begin_layout Plain Layout
370 View\SpecialChar menuseparator
371 Source
372 \begin_inset space ~
373 \end_inset
374
375 Pane
376 \end_layout
377
378 \end_inset
379
380 ), then look at the preamble of the resulting 
381 \begin_inset Flex Code
382 status collapsed
383
384 \begin_layout Plain Layout
385 .tex
386 \end_layout
387
388 \end_inset
389
390  file.
391  You'll notice a variety of new macros defined specifically by \SpecialChar LyX
392 .
393  These macros are defined automatically, according to the features you use
394  in the document.
395 \end_layout
396
397 \begin_layout Standard
398 There are several commands that automatically invoke \SpecialChar LaTeX
399 .
400  They are:
401 \end_layout
402
403 \begin_layout Itemize
404 \begin_inset Flex Noun
405 status collapsed
406
407 \begin_layout Plain Layout
408 Document\SpecialChar menuseparator
409 View
410 \end_layout
411
412 \end_inset
413
414
415 \end_layout
416
417 \begin_layout Itemize
418 \begin_inset Flex Noun
419 status collapsed
420
421 \begin_layout Plain Layout
422 Document\SpecialChar menuseparator
423 Update
424 \end_layout
425
426 \end_inset
427
428
429 \end_layout
430
431 \begin_layout Standard
432 They will only invoke \SpecialChar LaTeX
433  if the file has changed since the last time \SpecialChar LaTeX
434  was
435  run.
436  
437 \end_layout
438
439 \begin_layout Standard
440 When \SpecialChar LyX
441  runs \SpecialChar LaTeX
442  on the file you're editing, it performs these steps:
443 \end_layout
444
445 \begin_layout Enumerate
446 Convert the document to \SpecialChar LaTeX
447  and save to a file with the extension 
448 \begin_inset Flex Code
449 status collapsed
450
451 \begin_layout Plain Layout
452 .tex
453 \end_layout
454
455 \end_inset
456
457  in place of 
458 \begin_inset Flex Code
459 status collapsed
460
461 \begin_layout Plain Layout
462 .lyx
463 \end_layout
464
465 \end_inset
466
467 .
468 \end_layout
469
470 \begin_layout Enumerate
471 Run \SpecialChar LaTeX
472  on the 
473 \begin_inset Flex Code
474 status collapsed
475
476 \begin_layout Plain Layout
477 .tex
478 \end_layout
479
480 \end_inset
481
482  file (maybe several times), and run any other commands (such as 
483 \begin_inset Flex Code
484 status collapsed
485
486 \begin_layout Plain Layout
487 bibtex
488 \end_layout
489
490 \end_inset
491
492  or 
493 \begin_inset Flex Code
494 status collapsed
495
496 \begin_layout Plain Layout
497 makeindex
498 \end_layout
499
500 \end_inset
501
502 ) needed to compile the \SpecialChar LaTeX
503  file.
504 \end_layout
505
506 \begin_layout Enumerate
507 If there are any errors, show the error log.
508 \end_layout
509
510 \begin_layout Standard
511 If you have run \SpecialChar LaTeX
512  using 
513 \begin_inset Flex Noun
514 status collapsed
515
516 \begin_layout Plain Layout
517 View\SpecialChar menuseparator
518 DVI
519 \end_layout
520
521 \end_inset
522
523 , \SpecialChar LyX
524  then runs a DVI viewer to display the DVI-file.
525  If you have used 
526 \begin_inset Flex Noun
527 status collapsed
528
529 \begin_layout Plain Layout
530 View\SpecialChar menuseparator
531 PostScript
532 \end_layout
533
534 \end_inset
535
536 , \SpecialChar LyX
537  performs further steps:
538 \end_layout
539
540 \begin_layout Itemize
541 Run 
542 \begin_inset Flex Code
543 status collapsed
544
545 \begin_layout Plain Layout
546 dvips
547 \end_layout
548
549 \end_inset
550
551  to convert the DVI file to PostScript.
552 \end_layout
553
554 \begin_layout Itemize
555 Run a PostScript viewer, such as 
556 \begin_inset Flex Code
557 status collapsed
558
559 \begin_layout Plain Layout
560 ghostview
561 \end_layout
562
563 \end_inset
564
565 , to display the PostScript file.
566 \end_layout
567
568 \begin_layout Standard
569 \SpecialChar LyX
570  does similar things when viewing, or exporting, other formats.
571 \end_layout
572
573 \begin_layout Section
574 Translating \SpecialChar LaTeX
575  files into \SpecialChar LyX
576
577 \end_layout
578
579 \begin_layout Standard
580 You can import a \SpecialChar LaTeX
581  file into \SpecialChar LyX
582  by using the 
583 \begin_inset Flex Noun
584 status collapsed
585
586 \begin_layout Plain Layout
587 File\SpecialChar menuseparator
588 Import\SpecialChar menuseparator
589 LaTeX
590 \end_layout
591
592 \end_inset
593
594  command in \SpecialChar LyX
595 .
596  This will call a program named 
597 \begin_inset Flex Code
598 status collapsed
599
600 \begin_layout Plain Layout
601 tex2lyx
602 \end_layout
603
604 \end_inset
605
606  which will create a file 
607 \begin_inset Flex Code
608 status collapsed
609
610 \begin_layout Plain Layout
611 foo.lyx
612 \end_layout
613
614 \end_inset
615
616  from the file 
617 \begin_inset Flex Code
618 status collapsed
619
620 \begin_layout Plain Layout
621 foo.tex
622 \end_layout
623
624 \end_inset
625
626 .
627  \SpecialChar LyX
628  will then open that file.
629 \begin_inset Foot
630 status collapsed
631
632 \begin_layout Plain Layout
633 \begin_inset Flex Code
634 status collapsed
635
636 \begin_layout Plain Layout
637 tex2lyx
638 \end_layout
639
640 \end_inset
641
642  can also be run from the command line, of course.
643 \end_layout
644
645 \end_inset
646
647
648 \end_layout
649
650 \begin_layout Standard
651 \begin_inset Flex Code
652 status collapsed
653
654 \begin_layout Plain Layout
655 tex2lyx
656 \end_layout
657
658 \end_inset
659
660  will translate most legal \SpecialChar LaTeX
661 , but not everything.
662  It will put things it doesn't understand into \SpecialChar TeX
663  code, so after translating
664  a file with 
665 \begin_inset Flex Code
666 status collapsed
667
668 \begin_layout Plain Layout
669 tex2lyx
670 \end_layout
671
672 \end_inset
673
674 , you can look for \SpecialChar TeX
675  code and hand-edit it until it looks right.
676 \end_layout
677
678 \begin_layout Standard
679 If you don't know what \SpecialChar TeX
680  code is, read the next section.
681 \end_layout
682
683 \begin_layout Section
684 \begin_inset CommandInset label
685 LatexCommand label
686 name "sec:Inserting-TeX-Code"
687
688 \end_inset
689
690 Inserting \SpecialChar TeX
691  Code into \SpecialChar LyX
692  Documents 
693 \end_layout
694
695 \begin_layout Standard
696 Anything you can do in \SpecialChar LaTeX
697  you can do in \SpecialChar LyX
698 , for a very simple reason: You can
699  always insert \SpecialChar TeX
700  code into any \SpecialChar LyX
701  document.
702  \SpecialChar LyX
703  cannot, and will never be able to, display every possible \SpecialChar LaTeX
704  construct.
705  If ever you need to insert \SpecialChar LaTeX
706  commands into your \SpecialChar LyX
707  document, you can use the
708  
709 \begin_inset Flex Code
710 status collapsed
711
712 \begin_layout Plain Layout
713 \SpecialChar TeX
714  Code
715 \end_layout
716
717 \end_inset
718
719  box, which you can insert into your document with 
720 \begin_inset Flex Noun
721 status collapsed
722
723 \begin_layout Plain Layout
724 Insert\SpecialChar menuseparator
725
726 \family sans
727 TeX
728 \family default
729  Code
730 \end_layout
731
732 \end_inset
733
734  or the keyboard shortcut 
735 \begin_inset Info
736 type  "shortcut"
737 arg   "ert-insert"
738 \end_inset
739
740 .
741 \end_layout
742
743 \begin_layout Standard
744 Here's an example of inserting \SpecialChar LaTeX
745  commands in a \SpecialChar LyX
746  document.
747  The code looks like this:
748 \end_layout
749
750 \begin_layout LyX-Code
751
752 \backslash
753 begin{tabular}{ll}
754 \begin_inset Newline newline
755 \end_inset
756
757
758 \backslash
759 begin{minipage}{5cm}
760 \begin_inset Newline newline
761 \end_inset
762
763 This is an example of a minipage environment.
764  You 
765 \begin_inset Newline newline
766 \end_inset
767
768 can put nearly everything in it, even (non-floating) 
769 \begin_inset Newline newline
770 \end_inset
771
772 figures and tables.
773  
774 \begin_inset Newline newline
775 \end_inset
776
777
778 \backslash
779 end{minipage}
780 \begin_inset Newline newline
781 \end_inset
782
783 &
784 \begin_inset Newline newline
785 \end_inset
786
787
788 \backslash
789 begin{minipage}{5cm}
790 \begin_inset Newline newline
791 \end_inset
792
793
794 \backslash
795 begin{verbatim}
796 \begin_inset Newline newline
797 \end_inset
798
799
800 \backslash
801 begin{minipage}{5cm}
802 \begin_inset Newline newline
803 \end_inset
804
805 This ...
806  
807 \begin_inset Newline newline
808 \end_inset
809
810
811 \backslash
812 end{minipage}
813 \begin_inset Newline newline
814 \end_inset
815
816
817 \backslash
818 end{verbatim}
819 \begin_inset Newline newline
820 \end_inset
821
822
823 \backslash
824 end{minipage}
825 \begin_inset Newline newline
826 \end_inset
827
828
829 \backslash
830 end{tabular}
831 \end_layout
832
833 \begin_layout LyX-Code
834
835 \end_layout
836
837 \begin_layout Standard
838 The 
839 \begin_inset Flex Code
840 status collapsed
841
842 \begin_layout Plain Layout
843 \SpecialChar TeX
844  Code
845 \end_layout
846
847 \end_inset
848
849  box containing this text is directly after this paragraph.
850  Those of you reading the manual in \SpecialChar LyX
851  will only see the \SpecialChar TeX
852  code inset.
853  Those reading a printed version of the manuals will see the actual results:
854 \begin_inset VSpace bigskip
855 \end_inset
856
857
858 \end_layout
859
860 \begin_layout Standard
861 \begin_inset ERT
862 status open
863
864 \begin_layout Plain Layout
865
866
867 \backslash
868 begin{tabular}{ll}
869 \end_layout
870
871 \begin_layout Plain Layout
872
873
874 \backslash
875 begin{minipage}{5cm}
876 \end_layout
877
878 \begin_layout Plain Layout
879
880 This is an example of a minipage environment.
881  You can put nearly everything in it, even (non-floating) figures and tables.
882  
883 \end_layout
884
885 \begin_layout Plain Layout
886
887
888 \backslash
889 end{minipage}
890 \end_layout
891
892 \begin_layout Plain Layout
893
894 &
895 \end_layout
896
897 \begin_layout Plain Layout
898
899
900 \backslash
901 begin{minipage}{5cm}
902 \end_layout
903
904 \begin_layout Plain Layout
905
906
907 \backslash
908 begin{verbatim}
909 \end_layout
910
911 \begin_layout Plain Layout
912
913
914 \backslash
915 begin{minipage}{5cm}
916 \end_layout
917
918 \begin_layout Plain Layout
919
920 This ...
921  
922 \end_layout
923
924 \begin_layout Plain Layout
925
926
927 \backslash
928 end{minipage}
929 \end_layout
930
931 \begin_layout Plain Layout
932
933
934 \backslash
935 end{verbatim}
936 \end_layout
937
938 \begin_layout Plain Layout
939
940
941 \backslash
942 end{minipage}
943 \end_layout
944
945 \begin_layout Plain Layout
946
947
948 \backslash
949 end{tabular}
950 \end_layout
951
952 \end_inset
953
954
955 \begin_inset VSpace bigskip
956 \end_inset
957
958
959 \end_layout
960
961 \begin_layout Standard
962 In addition to using \SpecialChar TeX
963  code, you can also create a separate file containing
964  some complex \SpecialChar LaTeX
965  structure and then use 
966 \begin_inset Flex Noun
967 status collapsed
968
969 \begin_layout Plain Layout
970 Insert\SpecialChar menuseparator
971 Child
972 \begin_inset space ~
973 \end_inset
974
975 Document
976 \end_layout
977
978 \end_inset
979
980  to include your file (you should select the type 
981 \begin_inset Flex Code
982 status collapsed
983
984 \begin_layout Plain Layout
985 Input
986 \end_layout
987
988 \end_inset
989
990 ).
991  We recommend that you only do this if you have a 
992 \begin_inset Flex Code
993 status collapsed
994
995 \begin_layout Plain Layout
996 .tex
997 \end_layout
998
999 \end_inset
1000
1001  file which you 
1002 \emph on
1003 know
1004 \emph default
1005  works already.
1006  Otherwise, you'll have a big job tracking down \SpecialChar LaTeX
1007  errors.
1008 \end_layout
1009
1010 \begin_layout Standard
1011 There are a few last points to emphasize:
1012 \end_layout
1013
1014 \begin_layout Itemize
1015 \SpecialChar LyX
1016  
1017 \emph on
1018 does not
1019 \emph default
1020  check if your \SpecialChar LaTeX
1021  code is correct.
1022 \end_layout
1023
1024 \begin_layout Itemize
1025 Beware of reinventing the wheel.
1026 \end_layout
1027
1028 \begin_layout Standard
1029 On that last point, \SpecialChar LyX
1030  does have quite a few features tucked into it, and
1031  more are coming.
1032  Be sure to check the manuals to make sure that \SpecialChar LyX
1033  doesn't have such-and-such
1034  feature before you decide you have to do it by hand.
1035  Moreover, there are numerous \SpecialChar LaTeX
1036  packages out there to do all sorts of things,
1037  from labels to envelopes to fancy multipage tables.
1038  Check out 
1039 \begin_inset CommandInset href
1040 LatexCommand href
1041 name "CTAN"
1042 target "http://www.ctan.org/"
1043 literal "false"
1044
1045 \end_inset
1046
1047  for details.
1048 \end_layout
1049
1050 \begin_layout Standard
1051 If you do need to do some wild and fancy things within your document, be
1052  sure to check out a good \SpecialChar LaTeX
1053  book for assistance.
1054  There are a number of them listed in the bibliography of the 
1055 \emph on
1056 User's Guide
1057 \emph default
1058 .
1059 \end_layout
1060
1061 \begin_layout Section
1062 \SpecialChar LyX
1063  and the \SpecialChar LaTeX
1064  Preamble
1065 \end_layout
1066
1067 \begin_layout Subsection
1068 About the \SpecialChar LaTeX
1069  Preamble
1070 \end_layout
1071
1072 \begin_layout Standard
1073 If you already know \SpecialChar LaTeX
1074 , there is no need to explain here what the preamble
1075  is good for.
1076  If you don't, the following will give you some ideas—we recommend again
1077  that you consult a \SpecialChar LaTeX
1078  book for further information.
1079  In any case, you should read the points below, because they explain what
1080  you can do and what you don't need to do in the \SpecialChar LaTeX
1081  preamble of a \SpecialChar LyX
1082  document.
1083 \end_layout
1084
1085 \begin_layout Standard
1086 The \SpecialChar LaTeX
1087  preamble comes at the very beginning of a document, 
1088 \emph on
1089 before
1090 \emph default
1091  the text.
1092  It serves to:
1093 \end_layout
1094
1095 \begin_layout Itemize
1096 Declare the document class.
1097  
1098 \begin_inset Newline newline
1099 \end_inset
1100
1101 \SpecialChar LyX
1102  already does this for you.
1103  If you're a seasoned \SpecialChar LaTeX
1104 -nician, and you have a custom document class you
1105  want to use, check out the 
1106 \emph on
1107 Customization Manual
1108 \emph default
1109  for information on how to make \SpecialChar LyX
1110  interface to it.
1111 \end_layout
1112
1113 \begin_layout Itemize
1114 Declare the usage of packages.
1115  
1116 \begin_inset Newline newline
1117 \end_inset
1118
1119 \SpecialChar LaTeX
1120  packages provide special commands, which are only available within a document
1121  when the package has been declared in the preamble.
1122  In addition to providing special commands, the inclusion of a package can
1123  change the document.
1124  For example, the package 
1125 \begin_inset Flex Code
1126 status collapsed
1127
1128 \begin_layout Plain Layout
1129 indentfirst
1130 \end_layout
1131
1132 \end_inset
1133
1134  forces all paragraphs to be indented.
1135  There are other packages for labels, envelopes, margins, etc.
1136  
1137 \end_layout
1138
1139 \begin_layout Itemize
1140 Set counters, variables, lengths and widths.
1141  
1142 \begin_inset Newline newline
1143 \end_inset
1144
1145 There are several \SpecialChar LaTeX
1146  counters and variables that 
1147 \emph on
1148 must
1149 \emph default
1150  be set globally from within the preamble in order to have the desired effect.
1151  (There are variables that you can set and reset inside the document, too.)
1152  Margins are a good example of something that must be set in the preamble.
1153  Another example is the label format for lists.
1154  You can actually set these just about anywhere, but it's best to do it
1155  just once, inside the preamble.
1156 \end_layout
1157
1158 \begin_layout Itemize
1159 Declare user defined commands (with 
1160 \begin_inset Flex Code
1161 status collapsed
1162
1163 \begin_layout Plain Layout
1164
1165 \backslash
1166 newcommand
1167 \end_layout
1168
1169 \end_inset
1170
1171  or 
1172 \begin_inset Flex Code
1173 status collapsed
1174
1175 \begin_layout Plain Layout
1176
1177 \backslash
1178 renewcommand
1179 \end_layout
1180
1181 \end_inset
1182
1183 ).
1184 \begin_inset Newline newline
1185 \end_inset
1186
1187 These are abbreviations for \SpecialChar LaTeX
1188  commands which appear very often inside a document.
1189  Although the preamble is a good place to declare such commands, they 
1190 \emph on
1191 can
1192 \emph default
1193  be declared anywhere (before they are used for the first time, of course).
1194  This can be useful if there is a lot of raw \SpecialChar LaTeX
1195  code in your document, which
1196  normally should not be the case.
1197 \end_layout
1198
1199 \begin_layout Standard
1200 \SpecialChar LyX
1201  adds its own set of definitions to the preamble of the 
1202 \begin_inset Flex Code
1203 status collapsed
1204
1205 \begin_layout Plain Layout
1206 .tex
1207 \end_layout
1208
1209 \end_inset
1210
1211  file it produces.
1212  This makes \SpecialChar LaTeX
1213  files generated by \SpecialChar LyX
1214  portable.
1215 \end_layout
1216
1217 \begin_layout Subsection
1218 Changing the Preamble
1219 \end_layout
1220
1221 \begin_layout Standard
1222 The commands which \SpecialChar LyX
1223  adds to the preamble of a \SpecialChar LaTeX
1224  file are fixed; you can't
1225  change them without patching \SpecialChar LyX
1226  itself.
1227  You can, however, add your own stuff to the preamble by selecting 
1228 \begin_inset Flex Noun
1229 status collapsed
1230
1231 \begin_layout Plain Layout
1232 \SpecialChar LaTeX
1233
1234 \begin_inset space ~
1235 \end_inset
1236
1237 Preamble
1238 \end_layout
1239
1240 \end_inset
1241
1242  in the 
1243 \begin_inset Flex Noun
1244 status collapsed
1245
1246 \begin_layout Plain Layout
1247 Document\SpecialChar menuseparator
1248 Settings
1249 \end_layout
1250
1251 \end_inset
1252
1253  dialog.
1254  \SpecialChar LyX
1255  adds anything in the 
1256 \begin_inset Flex Noun
1257 status collapsed
1258
1259 \begin_layout Plain Layout
1260 Preamble
1261 \end_layout
1262
1263 \end_inset
1264
1265  dialog to its own built-in preamble.
1266  Before adding your own declarations in the preamble, you should make sure
1267  that \SpecialChar LyX
1268  doesn't already support what you want to do.
1269  (Remember what we said about reinventing the wheel?) Also, 
1270 \emph on
1271 make sure your preamble code is correct
1272 \emph default
1273 .
1274  \SpecialChar LyX
1275  doesn't check it for you.
1276  If there is an error, you're likely to get an error like 
1277 \begin_inset Quotes eld
1278 \end_inset
1279
1280
1281 \begin_inset Flex Code
1282 status collapsed
1283
1284 \begin_layout Plain Layout
1285 Missing 
1286 \backslash
1287 begin{document}
1288 \end_layout
1289
1290 \end_inset
1291
1292
1293 \begin_inset Quotes erd
1294 \end_inset
1295
1296 .
1297  If you see this error, check your preamble.
1298 \end_layout
1299
1300 \begin_layout Subsection
1301 Examples
1302 \end_layout
1303
1304 \begin_layout Standard
1305 Here are some examples of what you can add to a preamble, and what they
1306  do.
1307 \end_layout
1308
1309 \begin_layout Subsubsection
1310 Example #1: Offsets
1311 \end_layout
1312
1313 \begin_layout Standard
1314 There are two variables under \SpecialChar LaTeX
1315  that control page position: 
1316 \begin_inset Flex Code
1317 status collapsed
1318
1319 \begin_layout Plain Layout
1320
1321 \backslash
1322 hoffset
1323 \end_layout
1324
1325 \end_inset
1326
1327  and 
1328 \begin_inset Flex Code
1329 status collapsed
1330
1331 \begin_layout Plain Layout
1332
1333 \backslash
1334 voffset
1335 \end_layout
1336
1337 \end_inset
1338
1339 .
1340  Their names should be self-explanatory.
1341  These variables are useful if you think for a moment about computer labels.
1342  Sometimes, the size of a print medium and the area of the medium that you
1343  can actually print on aren't the same.
1344  This is where 
1345 \begin_inset Flex Code
1346 status collapsed
1347
1348 \begin_layout Plain Layout
1349
1350 \backslash
1351 hoffset
1352 \end_layout
1353
1354 \end_inset
1355
1356  and 
1357 \begin_inset Flex Code
1358 status collapsed
1359
1360 \begin_layout Plain Layout
1361
1362 \backslash
1363 voffset
1364 \end_layout
1365
1366 \end_inset
1367
1368  come in.
1369 \end_layout
1370
1371 \begin_layout Standard
1372 The default values for 
1373 \begin_inset Flex Code
1374 status collapsed
1375
1376 \begin_layout Plain Layout
1377
1378 \backslash
1379 hoffset
1380 \end_layout
1381
1382 \end_inset
1383
1384  and 
1385 \begin_inset Flex Code
1386 status collapsed
1387
1388 \begin_layout Plain Layout
1389
1390 \backslash
1391 voffset
1392 \end_layout
1393
1394 \end_inset
1395
1396  are both 0
1397 \begin_inset space \thinspace{}
1398 \end_inset
1399
1400 points, i.
1401 \begin_inset space \thinspace{}
1402 \end_inset
1403
1404 e.
1405 \begin_inset space \space{}
1406 \end_inset
1407
1408 the page isn't shifted.
1409  Unfortunately, some DVI drivers always seem to shift the page.
1410  We have no idea why, or why the sysadmin hasn't fixed such behavior.
1411  If you're using \SpecialChar LyX
1412  on a system that you don't personally maintain, and your
1413  sysadmin is a doofus, 
1414 \begin_inset Flex Code
1415 status collapsed
1416
1417 \begin_layout Plain Layout
1418
1419 \backslash
1420 hoffset
1421 \end_layout
1422
1423 \end_inset
1424
1425  and 
1426 \begin_inset Flex Code
1427 status collapsed
1428
1429 \begin_layout Plain Layout
1430
1431 \backslash
1432 voffset
1433 \end_layout
1434
1435 \end_inset
1436
1437  can save the day.
1438  Suppose your left and top margins are always 0.5
1439 \begin_inset space \thinspace{}
1440 \end_inset
1441
1442 inches too big.
1443  You can add this to the preamble:
1444 \end_layout
1445
1446 \begin_layout LyX-Code
1447
1448 \backslash
1449 setlength{
1450 \backslash
1451 hoffset}{-0.5 in}
1452 \end_layout
1453
1454 \begin_layout LyX-Code
1455
1456 \backslash
1457 setlength{
1458 \backslash
1459 voffset}{-0.5 in}
1460 \end_layout
1461
1462 \begin_layout Standard
1463 and your margins should now be correct.
1464 \end_layout
1465
1466 \begin_layout Subsubsection
1467 Example #2: Labels
1468 \end_layout
1469
1470 \begin_layout Standard
1471 Speaking of labels, suppose you wanted to print out a bunch of address labels.
1472  There's a rather nice package, available at your nearest CTAN archive,
1473  for printing sheets of labels: 
1474 \begin_inset Flex Code
1475 status collapsed
1476
1477 \begin_layout Plain Layout
1478 labels.sty
1479 \end_layout
1480
1481 \end_inset
1482
1483 .
1484  Now, your system may not have this package installed by default.
1485  We leave that up to you to check.
1486  You'll also want to read the documentation for it; we're not going to do
1487  that for you.
1488  Since this is an example, however, we'll give you an example of how you
1489  use this package.
1490 \end_layout
1491
1492 \begin_layout Standard
1493 First, make sure you're using the 
1494 \begin_inset Flex Code
1495 status collapsed
1496
1497 \begin_layout Plain Layout
1498 article
1499 \end_layout
1500
1501 \end_inset
1502
1503  document class.
1504  Next, you need to put the following in your preamble:
1505 \end_layout
1506
1507 \begin_layout LyX-Code
1508
1509 \backslash
1510 usepackage{labels}
1511 \end_layout
1512
1513 \begin_layout LyX-Code
1514
1515 \backslash
1516 LabelCols=3
1517 \end_layout
1518
1519 \begin_layout LyX-Code
1520
1521 \backslash
1522 LabelRows=7
1523 \end_layout
1524
1525 \begin_layout LyX-Code
1526
1527 \backslash
1528 LeftBorder=8mm
1529 \end_layout
1530
1531 \begin_layout LyX-Code
1532
1533 \backslash
1534 RightBorder=8mm
1535 \end_layout
1536
1537 \begin_layout LyX-Code
1538
1539 \backslash
1540 TopBorder=9mm
1541 \end_layout
1542
1543 \begin_layout LyX-Code
1544
1545 \backslash
1546 BottomBorder=2mm
1547 \end_layout
1548
1549 \begin_layout Standard
1550 This sets things up for Avery label sheets, stock #5360.
1551  You're now ready to print labels, but you'll need to insert \SpecialChar LaTeX
1552  code, placing
1553  the commands 
1554 \begin_inset Flex Code
1555 status collapsed
1556
1557 \begin_layout Plain Layout
1558
1559 \backslash
1560 begin{labels}
1561 \end_layout
1562
1563 \end_inset
1564
1565  and 
1566 \begin_inset Flex Code
1567 status collapsed
1568
1569 \begin_layout Plain Layout
1570
1571 \backslash
1572 end{labels}
1573 \end_layout
1574
1575 \end_inset
1576
1577  around each label text.
1578  This and other special features of 
1579 \begin_inset Flex Code
1580 status collapsed
1581
1582 \begin_layout Plain Layout
1583 labels.sty
1584 \end_layout
1585
1586 \end_inset
1587
1588  are explained in its documentation.
1589 \end_layout
1590
1591 \begin_layout Standard
1592 Someday, someone may write a \SpecialChar LyX
1593  layout file to support this package directly.
1594  Maybe that someone is you.
1595 \end_layout
1596
1597 \begin_layout Subsubsection
1598 Example #3: Paragraph Indentation
1599 \end_layout
1600
1601 \begin_layout Standard
1602 Americans are trained to indent the first line of 
1603 \emph on
1604 every
1605 \emph default
1606  paragraph.
1607  As with all of their other weird quirks, most Americans will whine and
1608  moan until they can have their way and indent the first line of all paragraphs.
1609  (Yes, we're joking.
1610  (We are?) 
1611 \emph on
1612 Yeah
1613 \emph default
1614 , we are.)
1615 \end_layout
1616
1617 \begin_layout Standard
1618 Of course, this behavior isn't standard typography.
1619  In books, you typically only indent the first line of a paragraph 
1620 \emph on
1621 if
1622 \emph default
1623  it follows another one.
1624  The idea behind indenting the first line of a paragraph is to distinguish
1625  neighboring paragraphs from one another.
1626  If there is no previous paragraph—for example, if it follows a figure or
1627  is the first paragraph in a section—then there is no need for indentation.
1628  
1629 \end_layout
1630
1631 \begin_layout Standard
1632 If you're a typical American (we're still joking!), though, you don't care
1633  about such esoteric things; you want your indentation! Add this to the
1634  preamble:
1635 \end_layout
1636
1637 \begin_layout LyX-Code
1638
1639 \backslash
1640 usepackage{indentfirst}
1641 \end_layout
1642
1643 \begin_layout Standard
1644 If your \SpecialChar TeX
1645  distribution isn't braindead, you'll have this package, and all
1646  of your paragraphs will get the indentation the Founding Fathers intended
1647  they should have.
1648 \end_layout
1649
1650 \begin_layout Subsubsection
1651 Example #4: This Document
1652 \end_layout
1653
1654 \begin_layout Standard
1655 You can also check out the preamble of this document to get an idea of some
1656  of the advanced things you can do.
1657 \end_layout
1658
1659 \begin_layout Section
1660 \SpecialChar LyX
1661  and \SpecialChar LaTeX
1662  Errors
1663 \end_layout
1664
1665 \begin_layout Standard
1666 When \SpecialChar LyX
1667  calls \SpecialChar LaTeX
1668 , it tells \SpecialChar LaTeX
1669  to blithely ignore any errors and keep going.
1670  It then uses the logfile from the \SpecialChar LaTeX
1671  run to do a post-mortem.
1672  After analyzing the logfile, \SpecialChar LyX
1673  displays a dialog listing the errors.
1674  Clicking on any one of them will take you to the position in your \SpecialChar LyX
1675  file
1676  where the error occurred.
1677 \begin_inset Foot
1678 status collapsed
1679
1680 \begin_layout Plain Layout
1681 Well, usually.
1682  Analyzing the logfile is a tough job, and \SpecialChar LyX
1683  doesn't always go to the right
1684  line.
1685  There are also cases where \SpecialChar LaTeX
1686  reports the error on one line, but the actual
1687  error is earlier.
1688  This is not unlike forgetting a closing brace in a program: You'll get
1689  an error, but only later.
1690 \end_layout
1691
1692 \end_inset
1693
1694
1695 \end_layout
1696
1697 \begin_layout Standard
1698 Some folks also like to look at the log file directly: It is available from
1699  
1700 \begin_inset Flex Noun
1701 status collapsed
1702
1703 \begin_layout Plain Layout
1704 Document\SpecialChar menuseparator
1705 LaTeX
1706 \begin_inset space ~
1707 \end_inset
1708
1709 Log
1710 \end_layout
1711
1712 \end_inset
1713
1714 .
1715  There are some fairly common error messages and warnings.
1716  We'll cover those here.
1717  You should look at a good \SpecialChar LaTeX
1718  book for a complete listing.
1719 \end_layout
1720
1721 \begin_layout Itemize
1722 \begin_inset Flex Code
1723 status collapsed
1724
1725 \begin_layout Plain Layout
1726 LaTeX Warning
1727 \end_layout
1728
1729 \end_inset
1730
1731
1732 \begin_inset Newline newline
1733 \end_inset
1734
1735 Anything beginning with these words is a warning message for the purpose
1736  of 
1737 \begin_inset Quotes eld
1738 \end_inset
1739
1740 debugging
1741 \begin_inset Quotes erd
1742 \end_inset
1743
1744  the \SpecialChar LaTeX
1745  code itself.
1746  You'll get messages like this if you added or changed cross-references
1747  or bibliography entries, in which case, \SpecialChar LaTeX
1748  is trying to tell you that you
1749  need to make another run.
1750  You can by-and-large ignore these.
1751 \end_layout
1752
1753 \begin_layout Itemize
1754 \begin_inset Flex Code
1755 status collapsed
1756
1757 \begin_layout Plain Layout
1758 LaTeX Font Warning
1759 \end_layout
1760
1761 \end_inset
1762
1763
1764 \begin_inset Newline newline
1765 \end_inset
1766
1767 Another warning message, this time about fonts which \SpecialChar LaTeX
1768  couldn't find.
1769  The rest of the message will often say something about a replacement font
1770  that \SpecialChar LaTeX
1771  used.
1772  You can safely ignore these, too.
1773 \end_layout
1774
1775 \begin_layout Itemize
1776 \begin_inset Flex Code
1777 status collapsed
1778
1779 \begin_layout Plain Layout
1780 Overfull 
1781 \backslash
1782 hbox
1783 \end_layout
1784
1785 \end_inset
1786
1787
1788 \begin_inset Newline newline
1789 \end_inset
1790
1791 \SpecialChar LaTeX
1792  absolutely 
1793 \emph on
1794 loves
1795 \emph default
1796  to spew these out.
1797  It seems to generate at least one of these messages for just about any
1798  document you write.
1799  They are warnings about lines that were too long and run past the right
1800  margin.
1801  This happens if \SpecialChar LaTeX
1802  does not find a reasonable way to break the lines (notoriously
1803  often with typewriter font, since this does not allow for automatic break
1804  points).
1805  In many cases, this is unnoticeable in the final output.
1806  (It can be just a point or two.) Sometimes, however, the lines run rather
1807  visibly into the margin; something you will not want to have in your final
1808  print.
1809  
1810 \begin_inset Newline newline
1811 \end_inset
1812
1813 There are several global ways to try to minimize the overfull lines.
1814  Clicking 
1815 \family sans
1816 Enable micro-typographic extensions
1817 \family default
1818  in 
1819 \family sans
1820 Document\SpecialChar menuseparator
1821 Settings\SpecialChar menuseparator
1822 Fonts
1823 \family default
1824  might already improve things a lot.
1825  Furthermore, \SpecialChar LaTeX
1826  code such as the following in 
1827 \family sans
1828 Document\SpecialChar menuseparator
1829 Settings\SpecialChar menuseparator
1830 Preamble
1831 \family default
1832  usually reduces the overfull lines drastically (we use this in the preamble
1833  of this document):
1834 \end_layout
1835
1836 \begin_deeper
1837 \begin_layout LyX-Code
1838
1839 \backslash
1840 tolerance 1414
1841 \begin_inset Newline newline
1842 \end_inset
1843
1844
1845 \backslash
1846 hbadness 1414
1847 \begin_inset Newline newline
1848 \end_inset
1849
1850
1851 \backslash
1852 emergencystretch 1.5em
1853 \begin_inset Newline newline
1854 \end_inset
1855
1856
1857 \backslash
1858 hfuzz 0.3pt
1859 \end_layout
1860
1861 \begin_layout Standard
1862 In some cases, however, you eventually have to rewrite the text to get the
1863  line breaking right.
1864 \begin_inset Foot
1865 status collapsed
1866
1867 \begin_layout Plain Layout
1868 For more information, see 
1869 \begin_inset Flex URL
1870 status open
1871
1872 \begin_layout Plain Layout
1873
1874 http://www.tex.ac.uk/FAQ-overfull.html
1875 \end_layout
1876
1877 \end_inset
1878
1879
1880 \end_layout
1881
1882 \end_inset
1883
1884
1885 \end_layout
1886
1887 \begin_layout Standard
1888 In any case, you should check the respective lines, at least for the final
1889  version of your document.
1890  Your eyes will tell you if there's a problem with something that's too
1891  wide.
1892 \begin_inset Foot
1893 status collapsed
1894
1895 \begin_layout Plain Layout
1896 You can also enable the `draft' option in 
1897 \begin_inset Flex Noun
1898 status collapsed
1899
1900 \begin_layout Plain Layout
1901 Document\SpecialChar menuseparator
1902 Settings
1903 \end_layout
1904
1905 \end_inset
1906
1907 , and then \SpecialChar LaTeX
1908  will draw a black box in the margin of lines that are overfull.
1909 \end_layout
1910
1911 \end_inset
1912
1913  
1914 \end_layout
1915
1916 \end_deeper
1917 \begin_layout Itemize
1918 \begin_inset Flex Code
1919 status collapsed
1920
1921 \begin_layout Plain Layout
1922 Underfull 
1923 \backslash
1924 hbox
1925 \end_layout
1926
1927 \end_inset
1928
1929
1930 \begin_inset Newline newline
1931 \end_inset
1932
1933 Not quite as common as its cousin.
1934  This happens again if \SpecialChar LaTeX
1935  does not find a reasonable break point and consequently
1936  generates too loose lines.
1937  As with the overfull lines, you should check if this is a visible problem.
1938 \end_layout
1939
1940 \begin_layout Itemize
1941 \begin_inset Flex Code
1942 status collapsed
1943
1944 \begin_layout Plain Layout
1945 Overfull 
1946 \backslash
1947 vbox
1948 \end_layout
1949
1950 \end_inset
1951
1952  and 
1953 \begin_inset Flex Code
1954 status collapsed
1955
1956 \begin_layout Plain Layout
1957 Underfull 
1958 \backslash
1959 vbox
1960 \end_layout
1961
1962 \end_inset
1963
1964
1965 \begin_inset Newline newline
1966 \end_inset
1967
1968 Warnings about troubles breaking the page.
1969  Once again, just look at the output.
1970  Your eyes will tell you where something has gone wrong.
1971 \end_layout
1972
1973 \begin_layout Itemize
1974 \begin_inset Flex Code
1975 status collapsed
1976
1977 \begin_layout Plain Layout
1978 LaTeX Error: File 
1979 \begin_inset Quotes els
1980 \end_inset
1981
1982 Xxxx
1983 \begin_inset Quotes ers
1984 \end_inset
1985
1986  not found
1987 \end_layout
1988
1989 \end_inset
1990
1991
1992 \begin_inset Newline newline
1993 \end_inset
1994
1995 The file 
1996 \begin_inset Quotes eld
1997 \end_inset
1998
1999 Xxxx
2000 \begin_inset Quotes erd
2001 \end_inset
2002
2003  isn't installed on this system.
2004  This usually appears because some package your document needs isn't installed.
2005  If you didn't touch the preamble or didn't use the 
2006 \begin_inset Flex Code
2007 status collapsed
2008
2009 \begin_layout Plain Layout
2010
2011 \backslash
2012 usepackage{}
2013 \end_layout
2014
2015 \end_inset
2016
2017  command, then one of the packages \SpecialChar LyX
2018  tried to load is missing.
2019  Use 
2020 \begin_inset Flex Noun
2021 status collapsed
2022
2023 \begin_layout Plain Layout
2024 Help\SpecialChar menuseparator
2025 \SpecialChar LaTeX
2026  Configuration
2027 \end_layout
2028
2029 \end_inset
2030
2031  to get a list of packages that \SpecialChar LyX
2032  knows about.
2033  This file is updated whenever you reconfigure \SpecialChar LyX
2034  (using 
2035 \begin_inset Flex Noun
2036 status collapsed
2037
2038 \begin_layout Plain Layout
2039 Tools\SpecialChar menuseparator
2040 Reconfigure
2041 \end_layout
2042
2043 \end_inset
2044
2045 ) and tells you which packages have been detected and what they do.
2046 \begin_inset Newline newline
2047 \end_inset
2048
2049 If you did use the 
2050 \begin_inset Flex Code
2051 status collapsed
2052
2053 \begin_layout Plain Layout
2054
2055 \backslash
2056 usepackage{}
2057 \end_layout
2058
2059 \end_inset
2060
2061  command and the package in question isn't installed, then you'll need to
2062  install it yourself.
2063 \end_layout
2064
2065 \begin_layout Itemize
2066 \begin_inset Flex Code
2067 status collapsed
2068
2069 \begin_layout Plain Layout
2070 LaTeX Error: Unknown option
2071 \end_layout
2072
2073 \end_inset
2074
2075
2076 \begin_inset Newline newline
2077 \end_inset
2078
2079 Error messages beginning with this are trying to tell you that you specified
2080  a bad or undefined option to a package.
2081  Check the package's documentation.
2082 \end_layout
2083
2084 \begin_layout Itemize
2085 \begin_inset Flex Code
2086 status collapsed
2087
2088 \begin_layout Plain Layout
2089 Undefined control sequence
2090 \end_layout
2091
2092 \end_inset
2093
2094
2095 \begin_inset Newline newline
2096 \end_inset
2097
2098 If you've inserted \SpecialChar LaTeX
2099  code into your document, but made a typo, you'll get
2100  one of these.
2101  You may have forgotten to load a package.
2102  In any case, this error message usually means that you used an undefined
2103  command.
2104  
2105 \end_layout
2106
2107 \begin_layout Standard
2108 There are other error and warning messages.
2109  Some are self-explanatory.
2110  These are usually \SpecialChar LaTeX
2111  messages.
2112  Others are downright cryptic.
2113  These are usually \SpecialChar TeX
2114  error messages, and we really have 
2115 \emph on
2116 no clue
2117 \emph default
2118  what they mean or how to decipher them.
2119  No-one does.
2120 \end_layout
2121
2122 \begin_layout Standard
2123 There's a general sequence you should follow if you get error messages:
2124 \end_layout
2125
2126 \begin_layout Enumerate
2127 Look at the \SpecialChar LaTeX
2128  code you inserted for typos.
2129 \end_layout
2130
2131 \begin_layout Enumerate
2132 If there are no typos, check that you used the command(s) correctly.
2133 \end_layout
2134
2135 \begin_layout Enumerate
2136 If you get a bunch of error boxes piled up at the very top of the document—and
2137  especially if you see a 
2138 \begin_inset Quotes eld
2139 \end_inset
2140
2141
2142 \begin_inset Flex Code
2143 status collapsed
2144
2145 \begin_layout Plain Layout
2146 Missing 
2147 \backslash
2148 begin{document}
2149 \end_layout
2150
2151 \end_inset
2152
2153
2154 \begin_inset Quotes erd
2155 \end_inset
2156
2157  error—it means that there are errors in the preamble.
2158  Start debugging your preamble.
2159 \end_layout
2160
2161 \begin_layout Enumerate
2162 If you didn't add anything to the preamble and didn't add any \SpecialChar LaTeX
2163  code to the
2164  document, the first suspect is your \SpecialChar LaTeX
2165  distribution itself.
2166  Check for missing packages and install them.
2167 \end_layout
2168
2169 \begin_layout Enumerate
2170 Okay, so there are no missing packages.
2171  Did you use any of the fine-tuning options in \SpecialChar LyX
2172 ? Specifically, did you 
2173 \emph on
2174 misuse
2175 \emph default
2176  any of them, like trying to manually insert lots of 
2177 \begin_inset Flex Code
2178 status collapsed
2179
2180 \begin_layout Plain Layout
2181 Protected
2182 \begin_inset space ~
2183 \end_inset
2184
2185 Blanks
2186 \end_layout
2187
2188 \end_inset
2189
2190
2191 \begin_inset Flex Code
2192 status collapsed
2193
2194 \begin_layout Plain Layout
2195 Linebreaks
2196 \end_layout
2197
2198 \end_inset
2199
2200 , or 
2201 \begin_inset Flex Code
2202 status collapsed
2203
2204 \begin_layout Plain Layout
2205 Pagebreaks
2206 \end_layout
2207
2208 \end_inset
2209
2210 ? Did you try to kludge something together with these instead of using the
2211  appropriate paragraph environment?
2212 \end_layout
2213
2214 \begin_layout Enumerate
2215 All right, you didn't use any of the fine-tuning options, you played by
2216  the rules.
2217  Did you try to pull a fancy maneuver? Did you do something funky inside
2218  a table or an equation, like inserting a graphic into a table cell?
2219 \end_layout
2220
2221 \begin_layout Enumerate
2222 Do you have long sections of text where \SpecialChar LaTeX
2223  cannot find a place to break a
2224  line? By default, \SpecialChar LaTeX
2225  is rather strict about how much extra inter-word spacing
2226  it will add in order to break a line.
2227  Preferably, you should rework the paragraph to avoid the problem.
2228 \end_layout
2229
2230 \begin_layout Enumerate
2231 Did you go overboard with the nesting? \SpecialChar LyX
2232  (currently) doesn't check to make
2233  sure you're in the limits for nesting environments.
2234  If you nested a bunch of environments to the 
2235 \begin_inset Formula $17^{\mathrm{th}}$
2236 \end_inset
2237
2238  level, that's the problem.
2239  (The limit in \SpecialChar LaTeX
2240  is five.)
2241 \end_layout
2242
2243 \begin_layout Enumerate
2244 Okay, you didn't get any error messages, but your output looks awful.
2245  If you have a table or figure that's too wide or long for the page, you
2246  need to:
2247 \end_layout
2248
2249 \begin_deeper
2250 \begin_layout Enumerate
2251 rescale the figure so it fits.
2252 \end_layout
2253
2254 \begin_layout Enumerate
2255 trim down the table so it fits.
2256 \end_layout
2257
2258 \end_deeper
2259 \begin_layout Enumerate
2260 If something else is wrong with the output, and you didn't try to pull anything
2261  fancy or kludge the fine-tuning options, we're not sure what's wrong.
2262 \end_layout
2263
2264 \begin_layout Standard
2265 If all this doesn't help—well, then 
2266 \emph on
2267 perhaps
2268 \emph default
2269  you might have found a bug in \SpecialChar LyX
2270 \SpecialChar ldots
2271 .
2272 \end_layout
2273
2274 \begin_layout Chapter
2275 Supplemental Tools
2276 \end_layout
2277
2278 \begin_layout Section
2279 Customizing Bibliographies with Bib\SpecialChar TeX
2280  or Biblatex
2281 \end_layout
2282
2283 \begin_layout Standard
2284 The most basic information about how to use Bib\SpecialChar TeX
2285  or 
2286 \family sans
2287 Biblatex
2288 \family default
2289  with \SpecialChar LyX
2290  is contained in the section 
2291 \emph on
2292 Bibliography databases
2293 \emph default
2294  of the 
2295 \emph on
2296 User's Guide
2297 \emph default
2298 .
2299  The following subsections explain special bibliography features supported
2300  by \SpecialChar LyX
2301 .
2302 \end_layout
2303
2304 \begin_layout Subsection
2305 Alternative Citation Styles
2306 \end_layout
2307
2308 \begin_layout Standard
2309 Standard Bib\SpecialChar TeX
2310  uses numbers (e.
2311 \begin_inset space \thinspace{}
2312 \end_inset
2313
2314 g.
2315 \begin_inset space \space{}
2316 \end_inset
2317
2318
2319 \begin_inset Quotes eld
2320 \end_inset
2321
2322 [12]
2323 \begin_inset Quotes erd
2324 \end_inset
2325
2326 ) to refer to a cited work.
2327  However, in many scientific disciplines, other citation styles are in use.
2328  The most common one is the author-year style (e.
2329 \begin_inset space \thinspace{}
2330 \end_inset
2331
2332 g.
2333 \begin_inset space \space{}
2334 \end_inset
2335
2336
2337 \begin_inset Quotes eld
2338 \end_inset
2339
2340 Knuth 1984a
2341 \begin_inset Quotes erd
2342 \end_inset
2343
2344 ).
2345  \SpecialChar LyX
2346  supports three packages that provide this style, 
2347 \begin_inset Flex Code
2348 status collapsed
2349
2350 \begin_layout Plain Layout
2351 biblatex
2352 \end_layout
2353
2354 \end_inset
2355
2356
2357 \begin_inset Flex Code
2358 status collapsed
2359
2360 \begin_layout Plain Layout
2361 natbib
2362 \end_layout
2363
2364 \end_inset
2365
2366 , and 
2367 \begin_inset Flex Code
2368 status collapsed
2369
2370 \begin_layout Plain Layout
2371 jurabib
2372 \end_layout
2373
2374 \end_inset
2375
2376 .
2377  Each of these packages has their pros and cons, which cannot be listed
2378  in detail.
2379  If you only want to have simple author-year (or author-numerical) style,
2380  or if you want to use one of the countless style files for 
2381 \begin_inset Flex Code
2382 status collapsed
2383
2384 \begin_layout Plain Layout
2385 natbib
2386 \end_layout
2387
2388 \end_inset
2389
2390 , then the established 
2391 \begin_inset Flex Code
2392 status collapsed
2393
2394 \begin_layout Plain Layout
2395 natbib
2396 \end_layout
2397
2398 \end_inset
2399
2400  package is probably your choice.
2401  If you look for specific citation styles common in law studies, you might
2402  consider the 
2403 \begin_inset Flex Code
2404 status collapsed
2405
2406 \begin_layout Plain Layout
2407 jurabib
2408 \end_layout
2409
2410 \end_inset
2411
2412  package.
2413  If you want to have full control over the formatting or look for advanced
2414  features such as ibidem, footnote citations, full title citations, advanced
2415  date formats (such as 400 BC) or full localization to other languages than
2416  English, you should definitely consider 
2417 \begin_inset Flex Code
2418 status collapsed
2419
2420 \begin_layout Plain Layout
2421 biblatex
2422 \end_layout
2423
2424 \end_inset
2425
2426 , which exceeds all other packages in terms of features, but is also quite
2427  heavy and more resource-hungry.
2428 \end_layout
2429
2430 \begin_layout Standard
2431 The handling of these packages in \SpecialChar LyX
2432  is basically the same.
2433  Go to 
2434 \begin_inset Flex Noun
2435 status collapsed
2436
2437 \begin_layout Plain Layout
2438 Document\SpecialChar menuseparator
2439 Settings
2440 \end_layout
2441
2442 \end_inset
2443
2444  and select under 
2445 \begin_inset Flex Noun
2446 status collapsed
2447
2448 \begin_layout Plain Layout
2449 Bibliography
2450 \end_layout
2451
2452 \end_inset
2453
2454  the 
2455 \begin_inset Flex Noun
2456 status collapsed
2457
2458 \begin_layout Plain Layout
2459 Style Format
2460 \end_layout
2461
2462 \end_inset
2463
2464  
2465 \begin_inset Flex Noun
2466 status collapsed
2467
2468 \begin_layout Plain Layout
2469 Basic (BibTeX)
2470 \end_layout
2471
2472 \end_inset
2473
2474
2475 \begin_inset Flex Noun
2476 status collapsed
2477
2478 \begin_layout Plain Layout
2479 Biblatex
2480 \end_layout
2481
2482 \end_inset
2483
2484
2485 \begin_inset Flex Noun
2486 status collapsed
2487
2488 \begin_layout Plain Layout
2489 Biblatex (Natbib mode)
2490 \end_layout
2491
2492 \end_inset
2493
2494
2495 \begin_inset Flex Noun
2496 status collapsed
2497
2498 \begin_layout Plain Layout
2499 Natbib (BibTeX)
2500 \end_layout
2501
2502 \end_inset
2503
2504  or 
2505 \begin_inset Flex Noun
2506 status collapsed
2507
2508 \begin_layout Plain Layout
2509 Jurabib (BibTeX)
2510 \end_layout
2511
2512 \end_inset
2513
2514  (see sec.
2515 \begin_inset space ~
2516 \end_inset
2517
2518 6.5.3 in the User's Guide for more information on these choices).
2519  With all these packages, you will get some extra features in the citation
2520  dialog and you can select the style of the reference (
2521 \begin_inset Quotes eld
2522 \end_inset
2523
2524 Knuth 1984
2525 \begin_inset Quotes erd
2526 \end_inset
2527
2528
2529 \begin_inset Quotes eld
2530 \end_inset
2531
2532 Knuth (1984)
2533 \begin_inset Quotes erd
2534 \end_inset
2535
2536
2537 \begin_inset Quotes eld
2538 \end_inset
2539
2540 Knuth, 1984
2541 \begin_inset Quotes erd
2542 \end_inset
2543
2544
2545 \begin_inset Quotes eld
2546 \end_inset
2547
2548 1984
2549 \begin_inset Quotes erd
2550 \end_inset
2551
2552  etc.).
2553  Note that either package needs specifically designed style files.
2554  They all ship their own, but there are lots of additional style files,
2555  and there is even an interactive style file builder
2556 \begin_inset Foot
2557 status collapsed
2558
2559 \begin_layout Plain Layout
2560 See 
2561 \begin_inset Flex URL
2562 status open
2563
2564 \begin_layout Plain Layout
2565
2566 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
2567 \end_layout
2568
2569 \end_inset
2570
2571
2572 \end_layout
2573
2574 \end_inset
2575
2576  for 
2577 \begin_inset Flex Code
2578 status collapsed
2579
2580 \begin_layout Plain Layout
2581 natbib
2582 \end_layout
2583
2584 \end_inset
2585
2586 .
2587 \end_layout
2588
2589 \begin_layout Subsection
2590 Subdivided Bibliographies
2591 \end_layout
2592
2593 \begin_layout Standard
2594 Sometimes you might need to divide your bibliography into several sections.
2595  If you are for instance a historian, the possibility to separate sources
2596  and scientific works is most likely a 
2597 \begin_inset Quotes eld
2598 \end_inset
2599
2600 must have
2601 \begin_inset Quotes erd
2602 \end_inset
2603
2604 .
2605  Unfortunately, Bib\SpecialChar TeX
2606  itself does not allow you to do this.
2607  But with the help of some \SpecialChar LaTeX
2608  packages, Bib\SpecialChar TeX
2609  can be extended to fit your needs.
2610 \end_layout
2611
2612 \begin_layout Standard
2613 \SpecialChar LyX
2614  provides native support for one of these packages, 
2615 \family typewriter
2616 bibtopic
2617 \family default
2618 .
2619 \begin_inset Foot
2620 status collapsed
2621
2622 \begin_layout Plain Layout
2623 Available from 
2624 \begin_inset Flex URL
2625 status open
2626
2627 \begin_layout Plain Layout
2628
2629 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
2630 \end_layout
2631
2632 \end_inset
2633
2634
2635 \end_layout
2636
2637 \end_inset
2638
2639  The advantage of this package (compared to other packages such as 
2640 \family typewriter
2641 multibib
2642 \family default
2643 ) is that you don't need to define new citation commands.
2644  Instead, you need to prepare different bibliographic databases which include
2645  the entries for the different sections of the bibliography.
2646  For example: If you want to divide your bibliography into the sections
2647  
2648 \begin_inset Quotes eld
2649 \end_inset
2650
2651 Sources
2652 \begin_inset Quotes erd
2653 \end_inset
2654
2655  and 
2656 \begin_inset Quotes eld
2657 \end_inset
2658
2659 Scientific works
2660 \begin_inset Quotes erd
2661 \end_inset
2662
2663 , you first need to create two bibliographic databases, e.
2664 \begin_inset space \thinspace{}
2665 \end_inset
2666
2667 g.
2668 \begin_inset space \space{}
2669 \end_inset
2670
2671
2672 \begin_inset Flex Code
2673 status collapsed
2674
2675 \begin_layout Plain Layout
2676 sources.bib
2677 \end_layout
2678
2679 \end_inset
2680
2681  and 
2682 \begin_inset Flex Code
2683 status collapsed
2684
2685 \begin_layout Plain Layout
2686 scientific.bib
2687 \end_layout
2688
2689 \end_inset
2690
2691 .
2692  
2693 \end_layout
2694
2695 \begin_layout Standard
2696 Go to 
2697 \begin_inset Flex Noun
2698 status collapsed
2699
2700 \begin_layout Plain Layout
2701 Document\SpecialChar menuseparator
2702 Settings
2703 \end_layout
2704
2705 \end_inset
2706
2707  and check under 
2708 \begin_inset Flex Noun
2709 status collapsed
2710
2711 \begin_layout Plain Layout
2712 Bibliography
2713 \end_layout
2714
2715 \end_inset
2716
2717  the option 
2718 \begin_inset Flex Noun
2719 status collapsed
2720
2721 \begin_layout Plain Layout
2722 Subdivided bibliography
2723 \end_layout
2724
2725 \end_inset
2726
2727 .
2728  Now you can insert multiple Bib\SpecialChar TeX
2729  bibliographies, one for each section of
2730  your bibliography.
2731  Returning to our example: Insert the Bib\SpecialChar TeX
2732  bibliography 
2733 \begin_inset Flex Code
2734 status collapsed
2735
2736 \begin_layout Plain Layout
2737 sources.bib
2738 \end_layout
2739
2740 \end_inset
2741
2742  and a second one for the database 
2743 \begin_inset Flex Code
2744 status collapsed
2745
2746 \begin_layout Plain Layout
2747 scientific.bib
2748 \end_layout
2749
2750 \end_inset
2751
2752 .
2753  You are free to use the same or different styles for each section.
2754  Additionally, you can choose if the bibliography section should contain
2755  
2756 \begin_inset Quotes eld
2757 \end_inset
2758
2759 all cited references
2760 \begin_inset Quotes erd
2761 \end_inset
2762
2763  of the specified database(s) (which is the default), 
2764 \begin_inset Quotes eld
2765 \end_inset
2766
2767 all uncited references
2768 \begin_inset Quotes erd
2769 \end_inset
2770
2771  or even 
2772 \begin_inset Quotes eld
2773 \end_inset
2774
2775 all references
2776 \begin_inset Quotes erd
2777 \end_inset
2778
2779 .
2780  This might be useful if you would like to separate your bibliography into
2781  three sections: 
2782 \begin_inset Quotes eld
2783 \end_inset
2784
2785 Cited sources
2786 \begin_inset Quotes erd
2787 \end_inset
2788
2789
2790 \begin_inset Quotes eld
2791 \end_inset
2792
2793 Uncited sources
2794 \begin_inset Quotes erd
2795 \end_inset
2796
2797 , and 
2798 \begin_inset Quotes eld
2799 \end_inset
2800
2801 Scientific works
2802 \begin_inset Quotes erd
2803 \end_inset
2804
2805 .
2806  The titles for the sections can be added as ordinary sections or subsections.
2807  Since 
2808 \begin_inset Flex Code
2809 status collapsed
2810
2811 \begin_layout Plain Layout
2812 bibtopic
2813 \end_layout
2814
2815 \end_inset
2816
2817  removes the bibliography title, you have to manually re-add that, too (as
2818  a chapter* or section*, for instance).
2819 \end_layout
2820
2821 \begin_layout Standard
2822 With 
2823 \family sans
2824 Biblatex
2825 \family default
2826 , the procedure is a bit different.
2827  Since 
2828 \family typewriter
2829 bibtopic
2830 \family default
2831  does not work with 
2832 \family sans
2833 Biblatex
2834 \family default
2835 , the aforementioned 
2836 \begin_inset Flex Noun
2837 status collapsed
2838
2839 \begin_layout Plain Layout
2840 Subdivided bibliography
2841 \end_layout
2842
2843 \end_inset
2844
2845  option is disabled if you use 
2846 \family sans
2847 Biblatex
2848 \family default
2849 .
2850  However, 
2851 \family sans
2852 Biblatex
2853 \family default
2854  provides its own means to generate subdivided bibliographies.
2855  You can either add keywords to bibliography entries via the 
2856 \begin_inset Flex Code
2857 status collapsed
2858
2859 \begin_layout Plain Layout
2860 keywords
2861 \end_layout
2862
2863 \end_inset
2864
2865  entry option and then filter bibliography sections by keyword (by adding
2866  
2867 \begin_inset Flex Code
2868 status collapsed
2869
2870 \begin_layout Plain Layout
2871 keyword=mykeyword
2872 \end_layout
2873
2874 \end_inset
2875
2876  to the 
2877 \begin_inset Flex Noun
2878 status collapsed
2879
2880 \begin_layout Plain Layout
2881 Options
2882 \end_layout
2883
2884 \end_inset
2885
2886  field of the dialog that opens if you left-click on the 
2887 \begin_inset Flex Noun
2888 status collapsed
2889
2890 \begin_layout Plain Layout
2891 Biblatex Generated Bibliography
2892 \end_layout
2893
2894 \end_inset
2895
2896  button), or you can filter by entry types (such as 
2897 \emph on
2898 book
2899 \emph default
2900  or 
2901 \emph on
2902 article
2903 \emph default
2904 ) by entering e.
2905 \begin_inset space \thinspace{}
2906 \end_inset
2907
2908 g.
2909  
2910 \begin_inset Flex Code
2911 status collapsed
2912
2913 \begin_layout Plain Layout
2914 type=book
2915 \end_layout
2916
2917 \end_inset
2918
2919  or 
2920 \begin_inset Flex Code
2921 status collapsed
2922
2923 \begin_layout Plain Layout
2924 nottype=collection
2925 \end_layout
2926
2927 \end_inset
2928
2929  to the mentioned 
2930 \begin_inset Flex Noun
2931 status collapsed
2932
2933 \begin_layout Plain Layout
2934 Options
2935 \end_layout
2936
2937 \end_inset
2938
2939  field, or you can create so-called 
2940 \begin_inset Quotes eld
2941 \end_inset
2942
2943 Bibliography Categories
2944 \begin_inset Quotes erd
2945 \end_inset
2946
2947  to which you can assign individual entries.
2948  Please refer to the Biblatex manual, section 
2949 \emph on
2950 Subdivided Bibliographies
2951 \emph default
2952 , for details.
2953 \end_layout
2954
2955 \begin_layout Subsection
2956 Multiple Bibliographies
2957 \begin_inset CommandInset label
2958 LatexCommand label
2959 name "subsec:Multiple-Bibliographies"
2960
2961 \end_inset
2962
2963
2964 \end_layout
2965
2966 \begin_layout Standard
2967 Multiple bibliographies, e.
2968 \begin_inset space \thinspace{}
2969 \end_inset
2970
2971 g.
2972 \begin_inset space \space{}
2973 \end_inset
2974
2975 a bibliography for each part, chapter, section, subsection or child (sub-documen
2976 t) of the document, are also supported by \SpecialChar LyX
2977 .
2978  In order to enable it, go to 
2979 \begin_inset Flex Noun
2980 status collapsed
2981
2982 \begin_layout Plain Layout
2983 Document\SpecialChar menuseparator
2984 Settings\SpecialChar menuseparator
2985 Bibliography
2986 \end_layout
2987
2988 \end_inset
2989
2990  and select the relevant unit (e.
2991 \begin_inset space \thinspace{}
2992 \end_inset
2993
2994 g., 
2995 \begin_inset Quotes eld
2996 \end_inset
2997
2998 per section
2999 \begin_inset Quotes erd
3000 \end_inset
3001
3002 ) in the 
3003 \begin_inset Flex Noun
3004 status collapsed
3005
3006 \begin_layout Plain Layout
3007 Multiple Bibliographies
3008 \end_layout
3009
3010 \end_inset
3011
3012  combo box.
3013  Then add a Bib(la)\SpecialChar TeX
3014  bibliography to each unit (e.
3015 \begin_inset space \thinspace{}
3016 \end_inset
3017
3018 g., section) of your document.
3019  In the output, a separate bibliography, containing only the references
3020  done in the current unit is generated.
3021 \end_layout
3022
3023 \begin_layout Standard
3024 If you use Bib\SpecialChar TeX
3025 , either the 
3026 \begin_inset Flex Code
3027 status collapsed
3028
3029 \begin_layout Plain Layout
3030 chapterbib
3031 \end_layout
3032
3033 \end_inset
3034
3035  or the 
3036 \begin_inset Flex Code
3037 status collapsed
3038
3039 \begin_layout Plain Layout
3040 bibtopic
3041 \end_layout
3042
3043 \end_inset
3044
3045  package is used to create multiple bibliographies.
3046  The former package is used if you select 
3047 \begin_inset Quotes eld
3048 \end_inset
3049
3050 per child document
3051 \begin_inset Quotes erd
3052 \end_inset
3053
3054  and do 
3055 \emph on
3056 not
3057 \emph default
3058  check 
3059 \begin_inset Flex Noun
3060 status collapsed
3061
3062 \begin_layout Plain Layout
3063 Sectioned Bibliography
3064 \end_layout
3065
3066 \end_inset
3067
3068 .
3069  In all other cases, 
3070 \begin_inset Flex Code
3071 status collapsed
3072
3073 \begin_layout Plain Layout
3074 bibtopic
3075 \end_layout
3076
3077 \end_inset
3078
3079  is used.
3080 \begin_inset Foot
3081 status collapsed
3082
3083 \begin_layout Plain Layout
3084 An alternative approach, if you are willing to use some 
3085 \begin_inset Flex Noun
3086 status collapsed
3087
3088 \begin_layout Plain Layout
3089 \SpecialChar TeX
3090  Code
3091 \end_layout
3092
3093 \end_inset
3094
3095  (see section
3096 \begin_inset space ~
3097 \end_inset
3098
3099
3100 \begin_inset CommandInset ref
3101 LatexCommand ref
3102 reference "sec:Inserting-TeX-Code"
3103
3104 \end_inset
3105
3106 ), is to use the 
3107 \begin_inset Flex Code
3108 status collapsed
3109
3110 \begin_layout Plain Layout
3111 bibunits
3112 \end_layout
3113
3114 \end_inset
3115
3116  package.
3117 \end_layout
3118
3119 \end_inset
3120
3121  If 
3122 \begin_inset Flex Code
3123 status collapsed
3124
3125 \begin_layout Plain Layout
3126 bibtopic
3127 \end_layout
3128
3129 \end_inset
3130
3131  is used, \SpecialChar LyX
3132  encloses the specified units in 
3133 \begin_inset Flex Code
3134 status collapsed
3135
3136 \begin_layout Plain Layout
3137 bibtopic
3138 \end_layout
3139
3140 \end_inset
3141
3142 's 
3143 \begin_inset Flex Code
3144 status collapsed
3145
3146 \begin_layout Plain Layout
3147
3148 \backslash
3149 begin{btUnit}
3150 \end_layout
3151
3152 \end_inset
3153
3154  and 
3155 \begin_inset Flex Code
3156 status collapsed
3157
3158 \begin_layout Plain Layout
3159
3160 \backslash
3161 end{btUnit}
3162 \end_layout
3163
3164 \end_inset
3165
3166  in order to create the units.
3167  Note that this approach has some limitations.
3168  First, every citation reference has to be inside some 
3169 \begin_inset Flex Code
3170 status collapsed
3171
3172 \begin_layout Plain Layout
3173 btUnit
3174 \end_layout
3175
3176 \end_inset
3177
3178 .
3179  So citations outside a defined unit (e.
3180 \begin_inset space \thinspace{}
3181 \end_inset
3182
3183 g., before the first section if you use 
3184 \begin_inset Quotes eld
3185 \end_inset
3186
3187 by section
3188 \begin_inset Quotes erd
3189 \end_inset
3190
3191 ) will appear as 
3192 \begin_inset Quotes eld
3193 \end_inset
3194
3195 ???
3196 \begin_inset Quotes erd
3197 \end_inset
3198
3199 .
3200  You can also create your own units by entering 
3201 \begin_inset Flex Code
3202 status collapsed
3203
3204 \begin_layout Plain Layout
3205
3206 \backslash
3207 begin{btUnit}
3208 \end_layout
3209
3210 \end_inset
3211
3212  and 
3213 \begin_inset Flex Code
3214 status collapsed
3215
3216 \begin_layout Plain Layout
3217
3218 \backslash
3219 end{btUnit}
3220 \end_layout
3221
3222 \end_inset
3223
3224  as \SpecialChar TeX
3225  code (for instance to work around the mentioned limitation).
3226  Note, though, that 
3227 \begin_inset Flex Code
3228 status collapsed
3229
3230 \begin_layout Plain Layout
3231 btUnit
3232 \end_layout
3233
3234 \end_inset
3235
3236 s cannot be nested.
3237  A second limitation is that 
3238 \begin_inset Flex Code
3239 status collapsed
3240
3241 \begin_layout Plain Layout
3242 bibtopic
3243 \end_layout
3244
3245 \end_inset
3246
3247  always processes all references of a bibliography database, even if they
3248  are not cited.
3249  This can result in odd labels (e.
3250 \begin_inset space \thinspace{}
3251 \end_inset
3252
3253 g.
3254  
3255 \begin_inset Quotes eld
3256 \end_inset
3257
3258 Miller 2014b
3259 \begin_inset Quotes erd
3260 \end_inset
3261
3262  if two works of this author from 2014 are in the database, even if only
3263  one is cited).
3264 \end_layout
3265
3266 \begin_layout Standard
3267 If you use 
3268 \family sans
3269 Biblatex
3270 \family default
3271 , the 
3272 \begin_inset Flex Code
3273 status collapsed
3274
3275 \begin_layout Plain Layout
3276 refsection
3277 \end_layout
3278
3279 \end_inset
3280
3281  option is used instead.
3282  If you need specific units, you can start them with the \SpecialChar TeX
3283  code 
3284 \begin_inset Flex Code
3285 status collapsed
3286
3287 \begin_layout Plain Layout
3288
3289 \backslash
3290 newrefsection
3291 \end_layout
3292
3293 \end_inset
3294
3295  or 
3296 \begin_inset Flex Code
3297 status collapsed
3298
3299 \begin_layout Plain Layout
3300
3301 \backslash
3302 newrefsegment
3303 \end_layout
3304
3305 \end_inset
3306
3307 , respectively.
3308  If you also want to control the end of the unit, use the environment 
3309 \begin_inset Flex Code
3310 status collapsed
3311
3312 \begin_layout Plain Layout
3313
3314 \backslash
3315 begin{refsection}
3316 \end_layout
3317
3318 \end_inset
3319
3320  \SpecialChar ldots
3321  
3322 \begin_inset Flex Code
3323 status collapsed
3324
3325 \begin_layout Plain Layout
3326
3327 \backslash
3328 end{refsection}
3329 \end_layout
3330
3331 \end_inset
3332
3333  instead.
3334  Note, though, that 
3335 \begin_inset Flex Code
3336 status collapsed
3337
3338 \begin_layout Plain Layout
3339 refsection
3340 \end_layout
3341
3342 \end_inset
3343
3344 s cannot be nested.
3345  In addition to the individual bibliography of the current unit, 
3346 \family sans
3347 Biblatex
3348 \family default
3349  also provides an easy way to output all bibliographies, subsequently, at
3350  one place (e.
3351 \begin_inset space \thinspace{}
3352 \end_inset
3353
3354 g., at the end of the document).
3355  Select 
3356 \begin_inset Quotes eld
3357 \end_inset
3358
3359 all reference units
3360 \begin_inset Quotes erd
3361 \end_inset
3362
3363  from the Content combo box of the Bib(la)TeX inset dialog in order to achieve
3364  this.
3365  Please refer to the 
3366 \family sans
3367 Biblatex
3368 \family default
3369  manual for more information on this topic.
3370 \end_layout
3371
3372 \begin_layout Section
3373 Multipart Documents
3374 \end_layout
3375
3376 \begin_layout Subsection
3377 General Operation
3378 \end_layout
3379
3380 \begin_layout Standard
3381 When you are working on a large file with many sections, it is often convenient
3382  to break up the document into several files, or perhaps you have something
3383  where a table may change from time to time, but the preceding text does
3384  not.
3385  In these cases, you should seriously consider using multipart documents.
3386  For example, scientific papers often have five major sections: the introduction
3387 , observations, results, discussion, and conclusion.
3388  Each of these could be its own separate \SpecialChar LyX
3389  file, with one 
3390 \begin_inset Quotes eld
3391 \end_inset
3392
3393 master
3394 \begin_inset Quotes erd
3395 \end_inset
3396
3397  file which contains the title, authors, abstract, references, etc., plus
3398  the five included files.
3399  It is important to note that each of these files is a full \SpecialChar LyX
3400  file which
3401  can be formatted and printed on its own, as well as included in a master
3402  file.
3403  Each of these files must have the same document class, however—don't attempt
3404  to mix book classes with article classes.
3405  You may also include \SpecialChar LaTeX
3406  files; however, these files must not have their own
3407  preamble (i.
3408 \begin_inset space \thinspace{}
3409 \end_inset
3410
3411 e.
3412 \begin_inset space \space{}
3413 \end_inset
3414
3415 everything up to and including the 
3416 \begin_inset Flex Code
3417 status collapsed
3418
3419 \begin_layout Plain Layout
3420
3421 \backslash
3422 begin{document}
3423 \end_layout
3424
3425 \end_inset
3426
3427  line as well as the 
3428 \begin_inset Flex Code
3429 status collapsed
3430
3431 \begin_layout Plain Layout
3432
3433 \backslash
3434 end{document}
3435 \end_layout
3436
3437 \end_inset
3438
3439  line must be deleted) or else errors will be generated when you try to
3440  make a DVI file.
3441 \end_layout
3442
3443 \begin_layout Standard
3444 \SpecialChar LyX
3445  allows you to include files quite easily with 
3446 \begin_inset Flex Noun
3447 status collapsed
3448
3449 \begin_layout Plain Layout
3450 Insert\SpecialChar menuseparator
3451 Child
3452 \begin_inset space ~
3453 \end_inset
3454
3455 Document
3456 \end_layout
3457
3458 \end_inset
3459
3460 .
3461  When you click on this selection a small box is inserted into the file
3462  at the current cursor location.
3463  Clicking on the box raises a dialog which allows you to select the file
3464  to be included, and the method of its inclusion.
3465  
3466 \end_layout
3467
3468 \begin_layout Standard
3469 The file selection box should by now be obvious.
3470  The three inclusion methods are 
3471 \begin_inset Quotes eld
3472 \end_inset
3473
3474 include
3475 \begin_inset Quotes erd
3476 \end_inset
3477
3478
3479 \begin_inset Quotes eld
3480 \end_inset
3481
3482 input
3483 \begin_inset Quotes erd
3484 \end_inset
3485
3486 , and 
3487 \begin_inset Quotes eld
3488 \end_inset
3489
3490 verbatim
3491 \begin_inset Quotes erd
3492 \end_inset
3493
3494 .
3495  The methods 
3496 \begin_inset Quotes eld
3497 \end_inset
3498
3499 include
3500 \begin_inset Quotes erd
3501 \end_inset
3502
3503  and 
3504 \begin_inset Quotes eld
3505 \end_inset
3506
3507 input
3508 \begin_inset Quotes erd
3509 \end_inset
3510
3511  are similar in many ways, but there are also some notable differences:
3512 \end_layout
3513
3514 \begin_layout Enumerate
3515 Files that are 
3516 \begin_inset Quotes eld
3517 \end_inset
3518
3519 included
3520 \begin_inset Quotes erd
3521 \end_inset
3522
3523  are typeset beginning on a new page, while files that are 
3524 \begin_inset Quotes eld
3525 \end_inset
3526
3527 inputted
3528 \begin_inset Quotes erd
3529 \end_inset
3530
3531  are typeset starting on the current page.
3532 \end_layout
3533
3534 \begin_layout Enumerate
3535 \begin_inset Quotes eld
3536 \end_inset
3537
3538 Included
3539 \begin_inset Quotes erd
3540 \end_inset
3541
3542  files cannot themselves 
3543 \begin_inset Quotes eld
3544 \end_inset
3545
3546 include
3547 \begin_inset Quotes erd
3548 \end_inset
3549
3550  further files (
3551 \begin_inset Quotes eld
3552 \end_inset
3553
3554 grandchilds
3555 \begin_inset Quotes erd
3556 \end_inset
3557
3558 ).
3559  With 
3560 \begin_inset Quotes eld
3561 \end_inset
3562
3563 input
3564 \begin_inset Quotes erd
3565 \end_inset
3566
3567 , on the other hand, infinite sub-inputting is possible.
3568 \end_layout
3569
3570 \begin_layout Enumerate
3571 \begin_inset Quotes eld
3572 \end_inset
3573
3574 Include
3575 \begin_inset Quotes erd
3576 \end_inset
3577
3578  allow for the output of only selected 
3579 \begin_inset Quotes eld
3580 \end_inset
3581
3582 included
3583 \begin_inset Quotes erd
3584 \end_inset
3585
3586  files, while maintaining the actual counters (pagination etc.) and references
3587  (please refer to the section 
3588 \emph on
3589 Child
3590 \begin_inset space ~
3591 \end_inset
3592
3593 Documents
3594 \emph default
3595  of the 
3596 \emph on
3597 Embedded
3598 \begin_inset space ~
3599 \end_inset
3600
3601 Objects
3602 \emph default
3603  manual for details).
3604 \end_layout
3605
3606 \begin_layout Standard
3607 Hence, 
3608 \begin_inset Quotes eld
3609 \end_inset
3610
3611 include
3612 \begin_inset Quotes erd
3613 \end_inset
3614
3615  is the preferred method for chapters that are outsourced to child documents,
3616  while 
3617 \begin_inset Quotes eld
3618 \end_inset
3619
3620 input
3621 \begin_inset Quotes erd
3622 \end_inset
3623
3624  is more suitable for arbitrary file inheritance.
3625 \end_layout
3626
3627 \begin_layout Standard
3628
3629 \begin_inset Quotes eld
3630 \end_inset
3631
3632 verbatim
3633 \begin_inset Quotes erd
3634 \end_inset
3635
3636  included file allows you to include a file typeset exactly as it appears
3637  in the file, i.
3638 \begin_inset space \thinspace{}
3639 \end_inset
3640
3641 e.
3642 \begin_inset space \space{}
3643 \end_inset
3644
3645 in 
3646 \begin_inset Flex Code
3647 status collapsed
3648
3649 \begin_layout Plain Layout
3650 verbatim
3651 \end_layout
3652
3653 \end_inset
3654
3655  mode, with the characters set in a fixed-width typewriter font.
3656  Normally, spaces in this file are invisible, though two consecutive spaces
3657  are conserved, unlike \SpecialChar LyX
3658 's normal treatment of spaces.
3659  However, setting the 
3660 \begin_inset Flex Noun
3661 status collapsed
3662
3663 \begin_layout Plain Layout
3664 Mark
3665 \begin_inset space ~
3666 \end_inset
3667
3668 spaces
3669 \begin_inset space ~
3670 \end_inset
3671
3672 in
3673 \begin_inset space ~
3674 \end_inset
3675
3676 output
3677 \end_layout
3678
3679 \end_inset
3680
3681  checkbox typesets a mark to unambiguously define the presence of a space.
3682  
3683 \end_layout
3684
3685 \begin_layout Standard
3686 Generally, the master file is converted into a full \SpecialChar LaTeX
3687  file before typesetting,
3688  while the included files are converted to \SpecialChar LaTeX
3689  files that do not have all the
3690  preamble information.
3691 \end_layout
3692
3693 \begin_layout Subsection
3694 Cross-References Between Files
3695 \end_layout
3696
3697 \begin_layout Standard
3698 \begin_inset Box Shadowbox
3699 position "t"
3700 hor_pos "c"
3701 has_inner_box 1
3702 inner_pos "t"
3703 use_parbox 0
3704 use_makebox 0
3705 width "100col%"
3706 special "none"
3707 height "1in"
3708 height_special "totalheight"
3709 thickness "0.4pt"
3710 separation "3pt"
3711 shadowsize "4pt"
3712 framecolor "black"
3713 backgroundcolor "none"
3714 status open
3715
3716 \begin_layout Plain Layout
3717 This section is somewhat out of date.
3718  Need to describe default master documents and how children are opened when
3719  the master is.
3720  [[FIXME]]
3721 \end_layout
3722
3723 \end_inset
3724
3725
3726 \end_layout
3727
3728 \begin_layout Standard
3729 It is possible to set up cross-references between the different files.
3730  First, open all the files in question: let's call them A and B in a two
3731  file example, where B is included in A.
3732  Let's say you insert a label in A, then want to reference it in B.
3733  Open the cross-reference dialog whilst in document B, and you can select
3734  the 
3735 \begin_inset Quotes eld
3736 \end_inset
3737
3738 buffer
3739 \begin_inset Quotes erd
3740 \end_inset
3741
3742  to use.
3743 \end_layout
3744
3745 \begin_layout Subsection
3746 Bibliography Lists in all Subdocuments
3747 \end_layout
3748
3749 \begin_layout Standard
3750 If you work with child documents, you might want to have only one main bibliogra
3751 phy at the end, but still be able to have a selected bibliography for the
3752  child if you output it on its own.
3753  Here is how to achieve this.
3754 \end_layout
3755
3756 \begin_layout Standard
3757 For the main document, you just insert a bibliography inset at the place
3758  where the main bibliography has to appear (within the master file or within
3759  a child).
3760  If the bibliography inset is in the master file, the references will be
3761  inherited by all children, so they are available in the citation dialog
3762  within each child.
3763 \end_layout
3764
3765 \begin_layout Standard
3766 For child-specific bibliographies, insert bibliography insets within the
3767  child documents, at the place where the bibliography should appear when
3768  the child is compiled separately.
3769  However, the trick is to insert them into a branch (
3770 \family sans
3771 Insert\SpecialChar menuseparator
3772 Branch\SpecialChar menuseparator
3773 Insert New Branch...
3774 \family default
3775 ), e.
3776 \begin_inset space \thinspace{}
3777 \end_inset
3778
3779 g.
3780  called 
3781 \begin_inset Quotes eld
3782 \end_inset
3783
3784 Childonly
3785 \begin_inset Quotes erd
3786 \end_inset
3787
3788 .
3789  Within the children, activate the branch (
3790 \family sans
3791 Document\SpecialChar menuseparator
3792 Settings...\SpecialChar menuseparator
3793 Branches
3794 \family default
3795 ).
3796  Within the master, deactivate the branch (
3797 \family sans
3798 Document\SpecialChar menuseparator
3799 Settings...\SpecialChar menuseparator
3800 Branches
3801 \family default
3802 ).
3803  Now the child's bibliography will be ignored by the master, but considered
3804  by the child.
3805 \end_layout
3806
3807 \begin_layout Standard
3808 If you need multiple bibliographies (e.
3809 \begin_inset space \thinspace{}
3810 \end_inset
3811
3812 g., one per child in the 
3813 \emph on
3814 main document
3815 \emph default
3816 ), please refer to sec.
3817 \begin_inset space ~
3818 \end_inset
3819
3820
3821 \begin_inset CommandInset ref
3822 LatexCommand ref
3823 reference "subsec:Multiple-Bibliographies"
3824
3825 \end_inset
3826
3827 .
3828 \end_layout
3829
3830 \begin_layout Section
3831 \SpecialChar LyX
3832  Archives
3833 \end_layout
3834
3835 \begin_layout Standard
3836 Users sometimes need to be able to 
3837 \begin_inset Quotes eld
3838 \end_inset
3839
3840 bundle
3841 \begin_inset Quotes erd
3842 \end_inset
3843
3844  a \SpecialChar LyX
3845  file together with all the images (and other files) on which it depends,
3846  either for sending to a publisher or for sharing with a co-author.
3847  \SpecialChar LyX
3848  includes a Python script (
3849 \begin_inset Flex Code
3850 status collapsed
3851
3852 \begin_layout Plain Layout
3853 lyxpak.py
3854 \end_layout
3855
3856 \end_inset
3857
3858 ) that automates this process.
3859  To use it, you must have either the 
3860 \begin_inset Flex Code
3861 status collapsed
3862
3863 \begin_layout Plain Layout
3864 zipfile
3865 \end_layout
3866
3867 \end_inset
3868
3869  or 
3870 \begin_inset Flex Code
3871 status collapsed
3872
3873 \begin_layout Plain Layout
3874 tarfile
3875 \end_layout
3876
3877 \end_inset
3878
3879  python modules installed on your system.
3880  By default, the script prefers the 
3881 \begin_inset Flex Code
3882 status collapsed
3883
3884 \begin_layout Plain Layout
3885 gzip
3886 \end_layout
3887
3888 \end_inset
3889
3890 -compressed 
3891 \begin_inset Flex Code
3892 status collapsed
3893
3894 \begin_layout Plain Layout
3895 tar
3896 \end_layout
3897
3898 \end_inset
3899
3900  format on Unix-like systems and the 
3901 \begin_inset Flex Code
3902 status collapsed
3903
3904 \begin_layout Plain Layout
3905 zip
3906 \end_layout
3907
3908 \end_inset
3909
3910  format on Windows.
3911 \end_layout
3912
3913 \begin_layout Standard
3914 \SpecialChar LyX
3915 's configuration process will set the script up to export a `\SpecialChar LyX
3916  Archive',
3917  and this format will then be available under 
3918 \begin_inset Flex Code
3919 status collapsed
3920
3921 \begin_layout Plain Layout
3922 File\SpecialChar menuseparator
3923 Export
3924 \end_layout
3925
3926 \end_inset
3927
3928 .
3929 \end_layout
3930
3931 \begin_layout Standard
3932 Independently of the platform, the generation of a particular archive format
3933  can be forced by adding either the 
3934 \begin_inset Flex Code
3935 status collapsed
3936
3937 \begin_layout Plain Layout
3938 -t
3939 \end_layout
3940
3941 \end_inset
3942
3943  (for the 
3944 \begin_inset Flex Code
3945 status collapsed
3946
3947 \begin_layout Plain Layout
3948 tar
3949 \end_layout
3950
3951 \end_inset
3952
3953  format) or 
3954 \begin_inset Flex Code
3955 status collapsed
3956
3957 \begin_layout Plain Layout
3958 -z
3959 \end_layout
3960
3961 \end_inset
3962
3963  (for the 
3964 \begin_inset Flex Code
3965 status collapsed
3966
3967 \begin_layout Plain Layout
3968 zip
3969 \end_layout
3970
3971 \end_inset
3972
3973  format) switch to the 
3974 \begin_inset Flex Code
3975 status collapsed
3976
3977 \begin_layout Plain Layout
3978 \SpecialChar LyX
3979 \SpecialChar menuseparator
3980 \SpecialChar LyX
3981  Archive
3982 \end_layout
3983
3984 \end_inset
3985
3986  converter in 
3987 \begin_inset Flex Code
3988 status collapsed
3989
3990 \begin_layout Plain Layout
3991 Tools\SpecialChar menuseparator
3992 Preferences\SpecialChar menuseparator
3993 File Handling\SpecialChar menuseparator
3994 Converters
3995 \end_layout
3996
3997 \end_inset
3998
3999 .
4000  (Make sure you add the switch after the script name, not before it.)
4001 \end_layout
4002
4003 \begin_layout Section
4004 Fancy Headers and Footers
4005 \end_layout
4006
4007 \begin_layout Standard
4008 The default page layout is rather plain; for an 
4009 \begin_inset Flex Code
4010 status collapsed
4011
4012 \begin_layout Plain Layout
4013 article
4014 \end_layout
4015
4016 \end_inset
4017
4018  document class, all you get is a centered page number at the bottom of
4019  the page.
4020  This document uses KOMA-script's book class, so it appears to be a bit
4021  fancier.
4022  But to really put on a show, you need to set the document page style to
4023  
4024 \begin_inset Quotes eld
4025 \end_inset
4026
4027 fancy
4028 \begin_inset Quotes erd
4029 \end_inset
4030
4031 , as mentioned in the 
4032 \emph on
4033 User Guide
4034 \emph default
4035 .
4036  This section describes the \SpecialChar LaTeX
4037  code you need to insert in your \SpecialChar LaTeX
4038  preamble in
4039  order to get the desired effects.
4040 \end_layout
4041
4042 \begin_layout Standard
4043 For more information on fancy headers, see the 
4044 \begin_inset Flex Code
4045 status collapsed
4046
4047 \begin_layout Plain Layout
4048 fancyhdr
4049 \end_layout
4050
4051 \end_inset
4052
4053  package documentation.
4054  (
4055 \begin_inset Flex URL
4056 status collapsed
4057
4058 \begin_layout Plain Layout
4059
4060 https://www.ctan.org/tex-archive/help/Catalogue/entries/fancyhdr.html
4061 \end_layout
4062
4063 \end_inset
4064
4065 )
4066 \end_layout
4067
4068 \begin_layout Standard
4069 The page header is divided into three fields, not surprisingly labeled 
4070 \begin_inset Quotes eld
4071 \end_inset
4072
4073 left
4074 \begin_inset Quotes erd
4075 \end_inset
4076
4077
4078 \begin_inset Quotes eld
4079 \end_inset
4080
4081 center
4082 \begin_inset Quotes erd
4083 \end_inset
4084
4085 , and 
4086 \begin_inset Quotes eld
4087 \end_inset
4088
4089 right
4090 \begin_inset Quotes erd
4091 \end_inset
4092
4093 .
4094  The footer is also divided into these three fields.
4095  The \SpecialChar LaTeX
4096  commands to set these fields in the simplest manner are 
4097 \begin_inset Flex Code
4098 status collapsed
4099
4100 \begin_layout Plain Layout
4101
4102 \backslash
4103 lhead
4104 \end_layout
4105
4106 \end_inset
4107
4108
4109 \begin_inset Flex Code
4110 status collapsed
4111
4112 \begin_layout Plain Layout
4113
4114 \backslash
4115 chead
4116 \end_layout
4117
4118 \end_inset
4119
4120
4121 \begin_inset Flex Code
4122 status collapsed
4123
4124 \begin_layout Plain Layout
4125
4126 \backslash
4127 rhead
4128 \end_layout
4129
4130 \end_inset
4131
4132
4133 \begin_inset Flex Code
4134 status collapsed
4135
4136 \begin_layout Plain Layout
4137
4138 \backslash
4139 lfoot
4140 \end_layout
4141
4142 \end_inset
4143
4144 , etc.
4145  Suppose you wish to put your name in the upper left hand corner of each
4146  page.
4147  Simply insert the following command in the preamble: 
4148 \end_layout
4149
4150 \begin_layout Standard
4151
4152 \family typewriter
4153
4154 \backslash
4155 lhead{John Q.
4156  DocWriter}
4157 \end_layout
4158
4159 \begin_layout Standard
4160 You will now see your name in the upper left.
4161  If a field has a default entry that you would like to get rid of (often
4162  the page number appears in the central footer) simply include a command
4163  with a blank argument, e.
4164 \begin_inset space \thinspace{}
4165 \end_inset
4166
4167 g.:
4168 \end_layout
4169
4170 \begin_layout Standard
4171
4172 \family typewriter
4173
4174 \backslash
4175 cfoot{}
4176 \end_layout
4177
4178 \begin_layout Standard
4179 Let's get really fancy: lets put the section number with the word 
4180 \begin_inset Quotes eld
4181 \end_inset
4182
4183 Section
4184 \begin_inset Quotes erd
4185 \end_inset
4186
4187  (e.
4188 \begin_inset space \thinspace{}
4189 \end_inset
4190
4191 g.
4192 \begin_inset space \space{}
4193 \end_inset
4194
4195 Section 3) in the upper left, the page number (e.
4196 \begin_inset space \thinspace{}
4197 \end_inset
4198
4199 g.
4200 \begin_inset space \space{}
4201 \end_inset
4202
4203 Page 4) in the upper right, your name in the lower left, and the date in
4204  the lower right.
4205  The following commands should now appear in the preamble:
4206 \end_layout
4207
4208 \begin_layout Standard
4209
4210 \family typewriter
4211
4212 \backslash
4213 lhead{Section 
4214 \backslash
4215 thesection}
4216 \end_layout
4217
4218 \begin_layout Standard
4219
4220 \family typewriter
4221
4222 \backslash
4223 chead{}
4224 \end_layout
4225
4226 \begin_layout Standard
4227
4228 \family typewriter
4229
4230 \backslash
4231 rhead{Page 
4232 \backslash
4233 thepage}
4234 \end_layout
4235
4236 \begin_layout Standard
4237
4238 \family typewriter
4239
4240 \backslash
4241 lfoot{John Q.
4242  DocWriter}
4243 \end_layout
4244
4245 \begin_layout Standard
4246
4247 \family typewriter
4248
4249 \backslash
4250 cfoot{}
4251 \end_layout
4252
4253 \begin_layout Standard
4254
4255 \family typewriter
4256
4257 \backslash
4258 rfoot{
4259 \backslash
4260 today}
4261 \end_layout
4262
4263 \begin_layout Standard
4264 The commands 
4265 \begin_inset Flex Code
4266 status collapsed
4267
4268 \begin_layout Plain Layout
4269
4270 \backslash
4271 thesection
4272 \end_layout
4273
4274 \end_inset
4275
4276  and 
4277 \begin_inset Flex Code
4278 status collapsed
4279
4280 \begin_layout Plain Layout
4281
4282 \backslash
4283 thepage
4284 \end_layout
4285
4286 \end_inset
4287
4288  access \SpecialChar LaTeX
4289 's section and page counters, and so print out the current section
4290  and page numbers.
4291  
4292 \begin_inset Flex Code
4293 status collapsed
4294
4295 \begin_layout Plain Layout
4296
4297 \backslash
4298 today
4299 \end_layout
4300
4301 \end_inset
4302
4303  simply prints out today's date.
4304 \end_layout
4305
4306 \begin_layout Standard
4307 The thicknesses of the horizontal rules drawn beneath the header and above
4308  the footer can also be modified.
4309  If you don't want one of the rules, set its thickness to 0.
4310  The header rule has a default thickness of 0.4pt, the footer rule is 0pt.
4311  Use commands
4312 \family typewriter
4313  
4314 \family default
4315 like 
4316 \begin_inset Flex Code
4317 status collapsed
4318
4319 \begin_layout Plain Layout
4320
4321 \backslash
4322 renewcommand{
4323 \backslash
4324 headrulewidth}{0.4pt}
4325 \end_layout
4326
4327 \end_inset
4328
4329  and 
4330 \begin_inset Flex Code
4331 status collapsed
4332
4333 \begin_layout Plain Layout
4334
4335 \backslash
4336 renewcommand{
4337 \backslash
4338 footrulewidth}{0.4pt}
4339 \end_layout
4340
4341 \end_inset
4342
4343  to set the thicknesses.
4344 \end_layout
4345
4346 \begin_layout Standard
4347 You can switch the header/footer settings on and off for individual pages
4348  using commands like 
4349 \begin_inset Flex Code
4350 status collapsed
4351
4352 \begin_layout Plain Layout
4353
4354 \backslash
4355 thispagestyle{empty}
4356 \end_layout
4357
4358 \end_inset
4359
4360
4361 \begin_inset Flex Code
4362 status collapsed
4363
4364 \begin_layout Plain Layout
4365
4366 \backslash
4367 thispagestyle{plain}
4368 \end_layout
4369
4370 \end_inset
4371
4372 , and 
4373 \begin_inset Flex Code
4374 status collapsed
4375
4376 \begin_layout Plain Layout
4377
4378 \backslash
4379 thispagestyle{fancy}
4380 \end_layout
4381
4382 \end_inset
4383
4384 .
4385  Simply insert them in the text on the page you want changed and mark them
4386  as \SpecialChar TeX
4387  code.
4388  In fact, title pages are marked as plain by default, while following pages
4389  are marked fancy when using the global fancy setting.
4390 \end_layout
4391
4392 \begin_layout Standard
4393 As a final example, it is possible to include an image in the header or
4394  footer.
4395  Suppose you want to put a company logo in the upper lefthand corner.
4396  You might try something like
4397 \end_layout
4398
4399 \begin_layout Standard
4400
4401 \family typewriter
4402
4403 \backslash
4404 lhead{
4405 \backslash
4406 resizebox{1in}{!}{
4407 \backslash
4408 includegraphics{logo.eps}}}
4409 \end_layout
4410
4411 \begin_layout Standard
4412 \noindent
4413 (you may need to preface this with 
4414 \begin_inset Flex Code
4415 status collapsed
4416
4417 \begin_layout Plain Layout
4418
4419 \backslash
4420 usepackage{graphics}
4421 \end_layout
4422
4423 \end_inset
4424
4425  if you don't include graphics elsewhere in your document).
4426 \end_layout
4427
4428 \begin_layout Section
4429 Itemize Bullet Selection
4430 \begin_inset CommandInset label
4431 LatexCommand label
4432 name "sec:bullet"
4433
4434 \end_inset
4435
4436
4437 \end_layout
4438
4439 \begin_layout Standard
4440 by
4441 \noun on
4442  Allan Rae
4443 \end_layout
4444
4445 \begin_layout Subsection
4446 Introduction
4447 \end_layout
4448
4449 \begin_layout Standard
4450 \SpecialChar LyX
4451  provides 216 bullet shapes that can be accessed from a simple dialog.
4452  Using this dialog you can easily specify what bullet shape to use at each
4453  level of an itemized list.
4454  These settings are document-wide so you won't be able to specify different
4455  sets of bullets for different paragraphs.
4456 \begin_inset Foot
4457 status collapsed
4458
4459 \begin_layout Plain Layout
4460 Well, actually you can but you'll have to do it by hand.
4461 \end_layout
4462
4463 \end_inset
4464
4465
4466 \end_layout
4467
4468 \begin_layout Subsection
4469 How it looks
4470 \end_layout
4471
4472 \begin_layout Standard
4473 Open the dialog by selecting the 
4474 \begin_inset Flex Noun
4475 status collapsed
4476
4477 \begin_layout Plain Layout
4478 Document\SpecialChar menuseparator
4479 Settings
4480 \end_layout
4481
4482 \end_inset
4483
4484  menu item and then select the 
4485 \begin_inset Flex Noun
4486 status collapsed
4487
4488 \begin_layout Plain Layout
4489 Bullets
4490 \end_layout
4491
4492 \end_inset
4493
4494  tab.
4495 \end_layout
4496
4497 \begin_layout Standard
4498 The dialog provides you with a table of bullet shapes.
4499  A column of buttons on the left of the table provides access to the six
4500  different panels of bullet shapes.
4501  The row of buttons across the top is used to select which bullet depth
4502  you are changing.
4503  A text entry under the table shows the currently selected bullet shape's
4504  \SpecialChar LaTeX
4505  equivalent and this can be edited if desired.
4506  If you do modify the text you will also need to specify any needed packages
4507  in the \SpecialChar LaTeX
4508  preamble.
4509 \end_layout
4510
4511 \begin_layout Standard
4512 The six panels are divided up by the packages they require.
4513  The following table shows the mappings from button name to \SpecialChar LaTeX
4514  package.
4515 \end_layout
4516
4517 \begin_layout Standard
4518 \align center
4519 \begin_inset Tabular
4520 <lyxtabular version="3" rows="7" columns="2">
4521 <features tabularvalignment="middle">
4522 <column alignment="center" valignment="top" width="0pt">
4523 <column alignment="center" valignment="top" width="0pt">
4524 <row>
4525 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4526 \begin_inset Text
4527
4528 \begin_layout Plain Layout
4529
4530 \family roman
4531 \series medium
4532 \shape up
4533 \size normal
4534 \emph off
4535 \bar no
4536 \noun off
4537 \color none
4538 Button
4539 \end_layout
4540
4541 \end_inset
4542 </cell>
4543 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4544 \begin_inset Text
4545
4546 \begin_layout Plain Layout
4547
4548 \family roman
4549 \series medium
4550 \shape up
4551 \size normal
4552 \emph off
4553 \bar no
4554 \noun off
4555 \color none
4556 Packages Required
4557 \end_layout
4558
4559 \end_inset
4560 </cell>
4561 </row>
4562 <row>
4563 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4564 \begin_inset Text
4565
4566 \begin_layout Plain Layout
4567
4568 \family sans
4569 \series medium
4570 \shape up
4571 \size normal
4572 \emph off
4573 \bar no
4574 \noun off
4575 \color none
4576 Standard
4577 \end_layout
4578
4579 \end_inset
4580 </cell>
4581 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4582 \begin_inset Text
4583
4584 \begin_layout Plain Layout
4585
4586 \series medium
4587 \shape up
4588 \size normal
4589 \emph off
4590 \bar no
4591 \noun off
4592 \color none
4593 base \SpecialChar LaTeX
4594
4595 \end_layout
4596
4597 \end_inset
4598 </cell>
4599 </row>
4600 <row>
4601 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4602 \begin_inset Text
4603
4604 \begin_layout Plain Layout
4605
4606 \family sans
4607 \series medium
4608 \shape up
4609 \size normal
4610 \emph off
4611 \bar no
4612 \noun off
4613 \color none
4614 Maths
4615 \end_layout
4616
4617 \end_inset
4618 </cell>
4619 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4620 \begin_inset Text
4621
4622 \begin_layout Plain Layout
4623
4624 \family typewriter
4625 \series medium
4626 \shape up
4627 \size normal
4628 \emph off
4629 \bar no
4630 \noun off
4631 \color none
4632 amssymb.sty
4633 \end_layout
4634
4635 \end_inset
4636 </cell>
4637 </row>
4638 <row>
4639 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4640 \begin_inset Text
4641
4642 \begin_layout Plain Layout
4643
4644 \family sans
4645 \series medium
4646 \shape up
4647 \size normal
4648 \emph off
4649 \bar no
4650 \noun off
4651 \color none
4652 Ding1
4653 \end_layout
4654
4655 \end_inset
4656 </cell>
4657 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4658 \begin_inset Text
4659
4660 \begin_layout Plain Layout
4661
4662 \family typewriter
4663 \series medium
4664 \shape up
4665 \size normal
4666 \emph off
4667 \bar no
4668 \noun off
4669 \color none
4670 pifont.sty
4671 \end_layout
4672
4673 \end_inset
4674 </cell>
4675 </row>
4676 <row>
4677 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4678 \begin_inset Text
4679
4680 \begin_layout Plain Layout
4681
4682 \family sans
4683 \series medium
4684 \shape up
4685 \size normal
4686 \emph off
4687 \bar no
4688 \noun off
4689 \color none
4690 Ding2
4691 \end_layout
4692
4693 \end_inset
4694 </cell>
4695 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4696 \begin_inset Text
4697
4698 \begin_layout Plain Layout
4699
4700 \family typewriter
4701 \series medium
4702 \shape up
4703 \size normal
4704 \emph off
4705 \bar no
4706 \noun off
4707 \color none
4708 pifont.sty
4709 \end_layout
4710
4711 \end_inset
4712 </cell>
4713 </row>
4714 <row>
4715 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4716 \begin_inset Text
4717
4718 \begin_layout Plain Layout
4719
4720 \family sans
4721 \series medium
4722 \shape up
4723 \size normal
4724 \emph off
4725 \bar no
4726 \noun off
4727 \color none
4728 Ding3
4729 \end_layout
4730
4731 \end_inset
4732 </cell>
4733 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4734 \begin_inset Text
4735
4736 \begin_layout Plain Layout
4737
4738 \family typewriter
4739 \series medium
4740 \shape up
4741 \size normal
4742 \emph off
4743 \bar no
4744 \noun off
4745 \color none
4746 pifont.sty
4747 \end_layout
4748
4749 \end_inset
4750 </cell>
4751 </row>
4752 <row>
4753 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4754 \begin_inset Text
4755
4756 \begin_layout Plain Layout
4757
4758 \family sans
4759 \series medium
4760 \shape up
4761 \size normal
4762 \emph off
4763 \bar no
4764 \noun off
4765 \color none
4766 Ding4
4767 \end_layout
4768
4769 \end_inset
4770 </cell>
4771 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4772 \begin_inset Text
4773
4774 \begin_layout Plain Layout
4775
4776 \family typewriter
4777 \series medium
4778 \shape up
4779 \size normal
4780 \emph off
4781 \bar no
4782 \noun off
4783 \color none
4784 pifont.sty
4785 \end_layout
4786
4787 \end_inset
4788 </cell>
4789 </row>
4790 </lyxtabular>
4791
4792 \end_inset
4793
4794
4795 \end_layout
4796
4797 \begin_layout Standard
4798 \SpecialChar LyX
4799  doesn't stop you using bullets from packages you don't have.
4800  If you get errors from \SpecialChar LaTeX
4801  when you try to view or print the file, then it
4802  is likely you are missing a package.
4803 \begin_inset Foot
4804 status collapsed
4805
4806 \begin_layout Plain Layout
4807 \SpecialChar LyX
4808  doesn't restrict your use since you may be editing locally and exporting
4809  elsewhere.
4810 \end_layout
4811
4812 \end_inset
4813
4814
4815 \end_layout
4816
4817 \begin_layout Subsection
4818 How to use it
4819 \end_layout
4820
4821 \begin_layout Standard
4822 Select which bullet depth you want to change then select the bullet shape
4823  and size.
4824  Any changes will not be visible in \SpecialChar LyX
4825 , but are visible when viewing the document.
4826 \end_layout
4827
4828 \begin_layout Standard
4829 You can reset a bullet shape to the default simply by clicking your right
4830  mouse button on the appropriate bullet depth button.
4831 \begin_inset Foot
4832 status open
4833
4834 \begin_layout Plain Layout
4835 If you 
4836 \emph on
4837 really
4838 \emph default
4839  want to have multiple sets of paragraphs with different sets of bullets
4840  in each, then you're going to have to get your hands dirty with \SpecialChar TeX
4841  code.
4842  The bullet selection dialog can help though because it provides you with
4843  the \SpecialChar LaTeX
4844  code for a wide range of bullet shapes.
4845  To make your own custom paragraphs you have the following options:
4846 \end_layout
4847
4848 \begin_layout Plain Layout
4849 \begin_inset ERT
4850 status open
4851
4852 \begin_layout Plain Layout
4853
4854
4855 \backslash
4856 let
4857 \backslash
4858 savelabelitemi=
4859 \backslash
4860 labelitemi
4861 \end_layout
4862
4863 \end_inset
4864
4865
4866 \end_layout
4867
4868 \begin_layout Plain Layout
4869 \begin_inset ERT
4870 status open
4871
4872 \begin_layout Plain Layout
4873
4874
4875 \backslash
4876 renewcommand
4877 \backslash
4878 labelitemi[0]{
4879 \backslash
4880 small
4881 \backslash
4882 (
4883 \backslash
4884 sharp
4885 \backslash
4886 )}
4887 \end_layout
4888
4889 \end_inset
4890
4891
4892 \end_layout
4893
4894 \begin_layout Itemize
4895 Use the \SpecialChar LaTeX
4896  command 
4897 \begin_inset Flex Code
4898 status collapsed
4899
4900 \begin_layout Plain Layout
4901
4902 \backslash
4903 renewcommand{}{}
4904 \end_layout
4905
4906 \end_inset
4907
4908  to specify a new bullet shape for a given depth.
4909  You'll also need to save the current bullet shape so you can restore it
4910  again afterwards.
4911  In this itemized list the following \SpecialChar LaTeX
4912  code was used to change the bullet
4913  used for the first depth.
4914 \end_layout
4915
4916 \begin_deeper
4917 \begin_layout LyX-Code
4918
4919 \backslash
4920 let
4921 \backslash
4922 savelabelitemi=
4923 \backslash
4924 labelitemi 
4925 \end_layout
4926
4927 \begin_layout LyX-Code
4928
4929 \backslash
4930 renewcommand
4931 \backslash
4932 labelitemi[0]{
4933 \backslash
4934 small
4935 \backslash
4936 (
4937 \backslash
4938 sharp
4939 \backslash
4940 )}
4941 \end_layout
4942
4943 \end_deeper
4944 \begin_layout Itemize
4945 Note that the itemize depth is specified in Roman numerals as part of the
4946  
4947 \family typewriter
4948
4949 \backslash
4950 labelitem
4951 \family default
4952  command.
4953 \end_layout
4954
4955 \begin_layout Itemize
4956 \begin_inset Argument item:1
4957 status open
4958
4959 \begin_layout Plain Layout
4960 \begin_inset ERT
4961 status open
4962
4963 \begin_layout Plain Layout
4964
4965
4966 \backslash
4967 (
4968 \backslash
4969 star
4970 \backslash
4971 )
4972 \end_layout
4973
4974 \end_inset
4975
4976
4977 \end_layout
4978
4979 \end_inset
4980
4981  Specify each individual entry by starting each item with the bullet shape
4982  enclosed in a 
4983 \begin_inset Quotes eld
4984 \end_inset
4985
4986 Custom Item
4987 \begin_inset Quotes erd
4988 \end_inset
4989
4990  inset (available at 
4991 \family sans
4992 Insert\SpecialChar menuseparator
4993 Custom Item
4994 \family default
4995 ) and set as 
4996 \begin_inset Flex Noun
4997 status collapsed
4998
4999 \begin_layout Plain Layout
5000 \SpecialChar TeX
5001  Code
5002 \end_layout
5003
5004 \end_inset
5005
5006 .
5007  For example, this item was started with 
5008 \begin_inset Flex Code
5009 status collapsed
5010
5011 \begin_layout Plain Layout
5012
5013 \backslash
5014 (
5015 \backslash
5016 star
5017 \backslash
5018 )
5019 \end_layout
5020
5021 \end_inset
5022
5023 .
5024 \end_layout
5025
5026 \begin_layout Plain Layout
5027 \begin_inset ERT
5028 status open
5029
5030 \begin_layout Plain Layout
5031
5032
5033 \backslash
5034 renewcommand
5035 \backslash
5036 labelitemi[0]{
5037 \backslash
5038 savelabelitemi}
5039 \end_layout
5040
5041 \end_inset
5042
5043
5044 \end_layout
5045
5046 \begin_layout Plain Layout
5047 You'll also need to revert the labelitem back to its previous setting for
5048  the global bullet shape settings to remain in effect.
5049  The way used here was:
5050 \end_layout
5051
5052 \begin_layout LyX-Code
5053
5054 \backslash
5055 renewcommand
5056 \backslash
5057 labelitemi[0]{
5058 \backslash
5059 savelabelitemi}
5060 \end_layout
5061
5062 \end_inset
5063
5064
5065 \end_layout
5066
5067 \begin_layout Chapter
5068 \SpecialChar LyX
5069  and the World Wide Web
5070 \end_layout
5071
5072 \begin_layout Standard
5073 \SpecialChar LyX
5074  has long supported the export of documents to various web-friendly formats,
5075  such as HTML.
5076  Before version 2.0, however, HTML export was always accomplished by the
5077  use of external converters.
5078 \begin_inset Foot
5079 status collapsed
5080
5081 \begin_layout Plain Layout
5082 For details on the use of external converters with \SpecialChar LyX
5083 , see the 
5084 \emph on
5085 Converters
5086 \emph default
5087  section of the Customization manual.
5088 \end_layout
5089
5090 \end_inset
5091
5092  These fall into two large groups: there are converters that use \SpecialChar LaTeX
5093  as an
5094  intermediate format, such as 
5095 \begin_inset Flex Code
5096 status collapsed
5097
5098 \begin_layout Plain Layout
5099 htlatex
5100 \end_layout
5101
5102 \end_inset
5103
5104
5105 \begin_inset Flex Code
5106 status collapsed
5107
5108 \begin_layout Plain Layout
5109 html2latex
5110 \end_layout
5111
5112 \end_inset
5113
5114 , and 
5115 \begin_inset Flex Code
5116 status collapsed
5117
5118 \begin_layout Plain Layout
5119 plastex
5120 \end_layout
5121
5122 \end_inset
5123
5124 , relying upon \SpecialChar LyX
5125  to produce the \SpecialChar LaTeX
5126 ; and there is a converter that works directly
5127  on \SpecialChar LyX
5128  files, 
5129 \begin_inset Flex Code
5130 status collapsed
5131
5132 \begin_layout Plain Layout
5133 e\SpecialChar LyX
5134 er
5135 \end_layout
5136
5137 \end_inset
5138
5139 .
5140  All of these have different advantages and disadvantages.
5141  
5142 \end_layout
5143
5144 \begin_layout Standard
5145 The \SpecialChar LaTeX
5146 -based converters have the advantage that, in principle, they know everythin
5147 g about the exported document that \SpecialChar LaTeX
5148  does.
5149  Such converters do not care, for example, if a certain block of code was
5150  produced by \SpecialChar LyX
5151  or was Evil Red Text.
5152  These converters know about 
5153 \begin_inset Flex Code
5154 status collapsed
5155
5156 \begin_layout Plain Layout
5157 aux
5158 \end_layout
5159
5160 \end_inset
5161
5162  files, counters, and references, and can often make use of the 
5163 \begin_inset Flex Code
5164 status collapsed
5165
5166 \begin_layout Plain Layout
5167 bbl
5168 \end_layout
5169
5170 \end_inset
5171
5172  files generated by Bib\SpecialChar TeX
5173 .
5174  On the other hand, \SpecialChar LaTeX
5175  is a very hard language to parse—it is sometimes said
5176  that only \SpecialChar TeX
5177  itself understands \SpecialChar TeX
5178 —and \SpecialChar LaTeX
5179 -based converters will often choke on
5180  what seem to be quite simple constructs; complex ones can throw them completely
5181 , and as of this writing, for example, the 
5182 \emph on
5183 Embedded Objects
5184 \emph default
5185  manual will not export with 
5186 \begin_inset Flex Code
5187 status collapsed
5188
5189 \begin_layout Plain Layout
5190 htlatex
5191 \end_layout
5192
5193 \end_inset
5194
5195 , though the others will.
5196  The other issue concerns how math is handled.
5197  These converters typically convert the formulae into little pictures that
5198  are then linked from the HTML document.
5199  Since these are actually generated by \SpecialChar LaTeX
5200 , they are accurate.
5201  But they do not scale well, and just getting them to look as if they are
5202  actually meant to be in your document—so that the font sizes seem to be
5203  roughly the same—can be a challenge.
5204 \end_layout
5205
5206 \begin_layout Standard
5207 Alex Fernandez's 
5208 \begin_inset Flex Code
5209 status collapsed
5210
5211 \begin_layout Plain Layout
5212 e\SpecialChar LyX
5213 er
5214 \end_layout
5215
5216 \end_inset
5217
5218  (
5219 \begin_inset CommandInset href
5220 LatexCommand href
5221 name "http://pinchito.es/elyxer/"
5222 target "http://pinchito.es/elyxer/"
5223 literal "false"
5224
5225 \end_inset
5226
5227 ) solves some of these problems.
5228  In particular, the formulae it produces scale perfectly, since it renders
5229  math using a combination of HTML and CSS rather than converting the formulae
5230  to images.
5231  But even moderately complex formula are rendered less well than with 
5232 \begin_inset Flex Code
5233 status collapsed
5234
5235 \begin_layout Plain Layout
5236 htlatex
5237 \end_layout
5238
5239 \end_inset
5240
5241 ; this reflects the limitations of HTML.
5242 \begin_inset Foot
5243 status collapsed
5244
5245 \begin_layout Plain Layout
5246 That said, 
5247 \begin_inset Flex Code
5248 status collapsed
5249
5250 \begin_layout Plain Layout
5251 e\SpecialChar LyX
5252 er
5253 \end_layout
5254
5255 \end_inset
5256
5257  can also use jsMath and MathJax for equations, but this setting is only
5258  available globally and requires one to have access to a server that runs
5259  the backend.
5260 \end_layout
5261
5262 \end_inset
5263
5264  More importantly (as of version 1.1.1, at least), 
5265 \begin_inset Flex Code
5266 status collapsed
5267
5268 \begin_layout Plain Layout
5269 e\SpecialChar LyX
5270 er
5271 \end_layout
5272
5273 \end_inset
5274
5275  has limited support for math macros and no support for user-defined paragraph
5276  or character styles.
5277  These limitations make 
5278 \begin_inset Flex Code
5279 status collapsed
5280
5281 \begin_layout Plain Layout
5282 e\SpecialChar LyX
5283 er
5284 \end_layout
5285
5286 \end_inset
5287
5288  unsuitable for many of the documents \SpecialChar LyX
5289  users produce.
5290  In principle, of course, these problems could be solved, but the \SpecialChar LyX
5291  developers
5292  have decided to follow a different path and have made \SpecialChar LyX
5293  itself capable of
5294  writing XHTML, just as it is capable of writing \SpecialChar LaTeX
5295 , DocBook, and plaintext.
5296 \end_layout
5297
5298 \begin_layout Standard
5299 As of this writing, XHTML output remains under development and should probably
5300  be regarded as 
5301 \begin_inset Quotes eld
5302 \end_inset
5303
5304 experimental
5305 \begin_inset Quotes erd
5306 \end_inset
5307
5308 .
5309 \begin_inset Foot
5310 status collapsed
5311
5312 \begin_layout Plain Layout
5313 The file 
5314 \begin_inset Flex Code
5315 status collapsed
5316
5317 \begin_layout Plain Layout
5318 development/HTML/HTML.notes
5319 \end_layout
5320
5321 \end_inset
5322
5323 , which can be found in the \SpecialChar LyX
5324  source tree or 
5325 \begin_inset CommandInset href
5326 LatexCommand href
5327 name "accessed online"
5328 target "https://www.lyx.org/trac/browser/lyxgit/development/HTML/HTML.notes?rev=master"
5329 literal "false"
5330
5331 \end_inset
5332
5333 , usually contains up-to-date information about the state of XHTML output.
5334  See also the list of XHTML bugs on 
5335 \begin_inset CommandInset href
5336 LatexCommand href
5337 name "the bug tracker"
5338 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"
5339 literal "false"
5340
5341 \end_inset
5342
5343 .
5344 \end_layout
5345
5346 \end_inset
5347
5348  Still, the developers have chosen this approach because it has several
5349  potential advantages over the other two.
5350 \end_layout
5351
5352 \begin_layout Standard
5353 These advantages are primarily due to the fact that the XHTML output routines,
5354  since they are part of \SpecialChar LyX
5355 , know everything \SpecialChar LyX
5356  knows about the document being
5357  exported.
5358 \begin_inset Foot
5359 status collapsed
5360
5361 \begin_layout Plain Layout
5362 Another advantage is that, since these routines are internal to \SpecialChar LyX
5363 , they are
5364  immune to changes in \SpecialChar LyX
5365 's file format, or to changes in the semantics of
5366  existing insets.
5367 \end_layout
5368
5369 \end_inset
5370
5371  So they know about the table of contents (as displayed in the outline),
5372  about the counters associated with different paragraph styles, and about
5373  user-defined styles.
5374  The XHTML output routines know what \SpecialChar LyX
5375  knows about internationalization,
5376  too, so they will output 
5377 \begin_inset Quotes eld
5378 \end_inset
5379
5380 Chapter 1
5381 \begin_inset Quotes erd
5382 \end_inset
5383
5384  or 
5385 \begin_inset Quotes eld
5386 \end_inset
5387
5388
5389 \lang ngerman
5390 Kapitel
5391 \lang english
5392  1
5393 \begin_inset Quotes erd
5394 \end_inset
5395
5396 , depending upon the language in effect at the time.
5397  
5398 \end_layout
5399
5400 \begin_layout Standard
5401 Quite generally, the output routines know what \SpecialChar LyX
5402  knows about document layout,
5403  that is, about how the document is to be rendered on screen.
5404  We use this information when we output the document as XHTML.
5405  In particular, \SpecialChar LyX
5406  
5407 \emph on
5408 automatically
5409 \emph default
5410  generates CSS style information corresponding to the layout information
5411  it uses to render the document on screen: if section headings are supposed
5412  to be sans-serif and bold as seen in \SpecialChar LyX
5413 , then (by default) they will be sans-seri
5414 f and bold when viewed in a web browser, too.
5415  And this is true not just for pre-defined styles, like Section, but for
5416  any style, including user-defined styles.
5417  Indeed, the XHTML output routines make no distinction between user-defined
5418  paragraph and character styles and \SpecialChar LyX
5419 's own pre-defined styles: in each case,
5420  everything \SpecialChar LyX
5421  knows about the styles is contained in the layout files.
5422  And much the same is true as regards pre-defined textual insets, such as
5423  footnotes, and various custom insets.
5424  
5425 \end_layout
5426
5427 \begin_layout Standard
5428 The result is that XHTML output can be customized and extended in exactly
5429  the same way \SpecialChar LaTeX
5430  output can be customized and extended: through layout files
5431  and modules.
5432  See chapter five of the 
5433 \emph on
5434 Customization 
5435 \emph default
5436 manual for the details.
5437 \end_layout
5438
5439 \begin_layout Standard
5440 The remainder of this chapter contains more detailed information on XHTML
5441  output, its limitations, and ways to work around those limitations.
5442 \end_layout
5443
5444 \begin_layout Section
5445 Math Output in XHTML
5446 \end_layout
5447
5448 \begin_layout Standard
5449 \SpecialChar LyX
5450  offers four choices for how math is rendered.
5451  These have various advantages and disadvantages:
5452 \end_layout
5453
5454 \begin_layout Itemize
5455 MathML
5456 \begin_inset Newline newline
5457 \end_inset
5458
5459 MathML is a dialect of XML designed specifically for mathematics on the
5460  web, and it typically renders very well in browsers that support it.
5461  The disadvantage is that not all browsers support MathML, and support is
5462  not complete even in the Gecko-based browsers, such as Firefox.
5463 \begin_inset Newline newline
5464 \end_inset
5465
5466 If \SpecialChar LyX
5467  is unable to render a formula as MathML—for example, if the formula
5468  uses the 
5469 \begin_inset Flex Code
5470 status collapsed
5471
5472 \begin_layout Plain Layout
5473 xymatrix
5474 \end_layout
5475
5476 \end_inset
5477
5478  package or ERT—then it will instead output the formula as an image.
5479  
5480 \end_layout
5481
5482 \begin_layout Itemize
5483 HTML
5484 \begin_inset Newline newline
5485 \end_inset
5486
5487 As mentioned above, 
5488 \begin_inset Flex Code
5489 status collapsed
5490
5491 \begin_layout Plain Layout
5492 elyxer
5493 \end_layout
5494
5495 \end_inset
5496
5497  outputs math as HTML, styled by CSS.
5498 \begin_inset Foot
5499 status collapsed
5500
5501 \begin_layout Plain Layout
5502 \SpecialChar LyX
5503  has borrowed some of the CSS for its HTML output from 
5504 \begin_inset Flex Code
5505 status collapsed
5506
5507 \begin_layout Plain Layout
5508 elyxer
5509 \end_layout
5510
5511 \end_inset
5512
5513 .
5514 \end_layout
5515
5516 \end_inset
5517
5518  For simple formulae, this can work quite well, though with more complicated
5519  formulae it tends to break down.
5520  Still, this method has the advantage that it is very widely supported and
5521  so it may be appropriate for documents that contain only a little, fairly
5522  simple math.
5523 \begin_inset Newline newline
5524 \end_inset
5525
5526 If Lyx is unable to render a formula as HTML—for example, if the formula
5527  uses the 
5528 \begin_inset Flex Code
5529 status collapsed
5530
5531 \begin_layout Plain Layout
5532 xymatrix
5533 \end_layout
5534
5535 \end_inset
5536
5537  package or ERT—then it will instead output the formula as an image.
5538  
5539 \end_layout
5540
5541 \begin_layout Itemize
5542 Images
5543 \begin_inset Newline newline
5544 \end_inset
5545
5546 Like 
5547 \begin_inset Flex Code
5548 status collapsed
5549
5550 \begin_layout Plain Layout
5551 htlatex
5552 \end_layout
5553
5554 \end_inset
5555
5556 , \SpecialChar LyX
5557  will output formulae as images, the very same images, in fact, that are
5558  used for instant preview.
5559 \begin_inset Foot
5560 status collapsed
5561
5562 \begin_layout Plain Layout
5563 Instant preview does 
5564 \emph on
5565 not 
5566 \emph default
5567 have to be on for images to be output, however.
5568 \end_layout
5569
5570 \end_inset
5571
5572  The advantage to this method is that the images are simply generated by
5573  \SpecialChar LaTeX
5574 , so they are very accurate.
5575  The disadvantage, as mentioned earlier, is that these are bitmapped images,
5576  so they do not scale terribly well, and one cannot copy them, etc.
5577 \begin_inset Newline newline
5578 \end_inset
5579
5580 The size of the images can be controlled by setting the 
5581 \begin_inset Quotes eld
5582 \end_inset
5583
5584 Math Images Scaling
5585 \begin_inset Quotes erd
5586 \end_inset
5587
5588  parameter under 
5589 \begin_inset Flex Noun
5590 status collapsed
5591
5592 \begin_layout Plain Layout
5593 Document\SpecialChar menuseparator
5594 Settings\SpecialChar menuseparator
5595 Formats
5596 \end_layout
5597
5598 \end_inset
5599
5600 .
5601 \begin_inset Foot
5602 status collapsed
5603
5604 \begin_layout Plain Layout
5605 For those who want to know, this controls the resolution of the image in
5606  dots per inch and is based upon a default of 75 dpi.
5607 \end_layout
5608
5609 \end_inset
5610
5611
5612 \begin_inset Newline newline
5613 \end_inset
5614
5615 If \SpecialChar LyX
5616  for some reason fails to create an image for a formula (e.g., if a required
5617  \SpecialChar LaTeX
5618  package is not installed), then it will fall back to outputing the raw
5619  \SpecialChar LaTeX
5620 .
5621 \end_layout
5622
5623 \begin_layout Itemize
5624 \SpecialChar LaTeX
5625
5626 \begin_inset Newline newline
5627 \end_inset
5628
5629 Finally, \SpecialChar LyX
5630  will happily output math as \SpecialChar LaTeX
5631 .
5632  As well as being the output of last resort, this method can be used with
5633  such tools as 
5634 \begin_inset CommandInset href
5635 LatexCommand href
5636 name "jsMath"
5637 target "http://www.math.union.edu/~dpvc/jsMath/"
5638 literal "false"
5639
5640 \end_inset
5641
5642 , which uses JavaScript to render \SpecialChar LaTeX
5643  embedded in HTML documents.
5644  \SpecialChar LyX
5645  wraps the \SpecialChar LaTeX
5646  in either a 
5647 \begin_inset Flex Code
5648 status collapsed
5649
5650 \begin_layout Plain Layout
5651 span
5652 \end_layout
5653
5654 \end_inset
5655
5656  (for inline formulas) or 
5657 \begin_inset Flex Code
5658 status collapsed
5659
5660 \begin_layout Plain Layout
5661 div
5662 \end_layout
5663
5664 \end_inset
5665
5666  (for displayed formulas) with 
5667 \begin_inset Flex Code
5668 status collapsed
5669
5670 \begin_layout Plain Layout
5671 class='math'
5672 \end_layout
5673
5674 \end_inset
5675
5676 , as is required for jsMath.
5677 \end_layout
5678
5679 \begin_layout Standard
5680 One of these output methods must be selected under 
5681 \begin_inset Flex Noun
5682 status collapsed
5683
5684 \begin_layout Plain Layout
5685 Document\SpecialChar menuseparator
5686 Settings\SpecialChar menuseparator
5687 Formats
5688 \end_layout
5689
5690 \end_inset
5691
5692 .
5693  By default, \SpecialChar LyX
5694  outputs MathML.
5695  This is a document-wide setting, therefore.
5696 \end_layout
5697
5698 \begin_layout Standard
5699 Eventually, \SpecialChar LyX
5700  will offer the user the option to select an alternate output
5701  method for a particular inset, say, one that isn't being rendered very
5702  well by MathML.
5703 \begin_inset Foot
5704 status collapsed
5705
5706 \begin_layout Plain Layout
5707 That said, since \SpecialChar LyX
5708  falls back to images if the inset contains ERT, then one
5709  can force output as an image by putting some harmless ERT into the math,
5710  for example: 
5711 \begin_inset Formula $a=b\relax$
5712 \end_inset
5713
5714 .
5715 \end_layout
5716
5717 \end_inset
5718
5719
5720 \end_layout
5721
5722 \begin_layout Section
5723 Bibliography and Citations
5724 \end_layout
5725
5726 \begin_layout Standard
5727 XHTML output fully supports bibliographies and citations.
5728  
5729 \end_layout
5730
5731 \begin_layout Standard
5732 Citation labels are generated by the same machinery that generates \SpecialChar LyX
5733 's on-screen
5734  labels, so the labels will look in the output much as they do in \SpecialChar LyX
5735 , though
5736  better.
5737  If you are using numerical citations, then \SpecialChar LyX
5738  will output numerical labels,
5739  such as [1] or [17], rather than simply showing the citation key in square
5740  brackets, as it does on-screen.
5741  If you are using author-year citations, then \SpecialChar LyX
5742  will add lowercase letters
5743  to the years, just as Bib\SpecialChar TeX
5744  does, if it finds more than one citation for
5745  a given author-year combination.
5746  The labels will be printed with the bibliography entries.
5747  Note that there is, at present, no way to customize the appearance of the
5748  labels, for example, to choose between square brackets and parentheses.
5749 \end_layout
5750
5751 \begin_layout Standard
5752 Bibliography output is handled by the same machinery that handles the presentati
5753 on of reference information in the citation dialog, so you will see in the
5754  XHTML output pretty much what you would see if you were to look at a given
5755  entry in the citation dialog.
5756  The formatting can be customized in your layout file or, preferably, in
5757  a module.
5758  See the 
5759 \emph on
5760 Customization
5761 \emph default
5762  manual for the details.
5763 \end_layout
5764
5765 \begin_layout Standard
5766 The main defect at present is that cross-referenced information is printed
5767  with every entry with which it is associated.
5768  So you can see things like this:
5769 \end_layout
5770
5771 \begin_layout Quote
5772 Jason Stanley, 
5773 \begin_inset Quotes eld
5774 \end_inset
5775
5776 Context and Logical Form
5777 \begin_inset Quotes erd
5778 \end_inset
5779
5780 , in 
5781 \emph on
5782 Language in Context: Selected Essays
5783 \emph default
5784  (Oxford: Oxford University Press, 2007), pp.
5785  30–68.
5786 \end_layout
5787
5788 \begin_layout Quote
5789 Jason Stanley, 
5790 \begin_inset Quotes eld
5791 \end_inset
5792
5793 Semantics in Context
5794 \begin_inset Quotes erd
5795 \end_inset
5796
5797 , in 
5798 \emph on
5799 Language in Context: Selected Essays
5800 \emph default
5801  (Oxford: Oxford University Press, 2007), pp.
5802  201–30.
5803 \end_layout
5804
5805 \begin_layout Standard
5806 This should be fixed before long.
5807 \end_layout
5808
5809 \begin_layout Standard
5810 There is no support at present for sectioned bibliographies.
5811  If you have multiple bibliographies, then \SpecialChar LyX
5812  will print the same bibliography
5813  over and over.
5814 \end_layout
5815
5816 \begin_layout Section
5817 Indexes
5818 \end_layout
5819
5820 \begin_layout Standard
5821 \SpecialChar LyX
5822  will happily export indexes as XHTML, but with certain limitations at the
5823  moment.
5824 \end_layout
5825
5826 \begin_layout Standard
5827 Index export will be most reliable when you do not attempt to use the fancy
5828  constructs that are described in the section on indexes in the 
5829 \emph on
5830 User's Guide
5831 \emph default
5832 .
5833 \begin_inset Foot
5834 status collapsed
5835
5836 \begin_layout Plain Layout
5837 The main issue here is that \SpecialChar LyX
5838  itself does not really handle these.
5839  It just lets you enter what you would have to enter in raw \SpecialChar LaTeX
5840 .
5841 \end_layout
5842
5843 \end_inset
5844
5845  We'll describe how they are handled using the subsection headings from
5846  that section.
5847 \end_layout
5848
5849 \begin_layout Itemize
5850 Grouping Index Entries (aka, sub-entries): \SpecialChar LyX
5851  makes an effort to support these,
5852  but the entries must be separated by 
5853 \begin_inset Quotes eld
5854 \end_inset
5855
5856  ! 
5857 \begin_inset Quotes erd
5858 \end_inset
5859
5860 , that is, there must be spaces around the exclamation point.
5861  This is because it is otherwise too difficult to check for escaped exclamation
5862  points, ones in math, and so forth.
5863 \end_layout
5864
5865 \begin_layout Itemize
5866 Page Ranges: There is no support at all for page ranges, since these make
5867  no sense with XHMTL.
5868  Instead, you will just get two index entries, one at either end.
5869 \end_layout
5870
5871 \begin_layout Itemize
5872 Cross-referencing: There is no support for cross-referencing.
5873  If \SpecialChar LyX
5874  finds an entry containing the 
5875 \begin_inset Quotes eld
5876 \end_inset
5877
5878 |see\SpecialChar ldots
5879
5880 \begin_inset Quotes erd
5881 \end_inset
5882
5883  construct, it is just dropped, and the rest is treated as an ordinary index
5884  entry.
5885 \end_layout
5886
5887 \begin_layout Itemize
5888 Index Entry Order: \SpecialChar LyX
5889  does support attempts to fix the sorting order.
5890  It will take what is before the first `@' it finds and use that for sorting,
5891  taking what follows the first `@' to be the actual entry.
5892  At present, \SpecialChar LyX
5893  does not check for escaped `@', so do not try to index email
5894  addresses.
5895 \end_layout
5896
5897 \begin_layout Itemize
5898 Index Entry Layout: You can format entries by using the text style dialog,
5899  or by using any other method available within \SpecialChar LyX
5900  itself.
5901  There is no support for constructs like: 
5902 \begin_inset Quotes eld
5903 \end_inset
5904
5905 entry|textbf
5906 \begin_inset Quotes erd
5907 \end_inset
5908
5909 .
5910  Indeed, if \SpecialChar LyX
5911  finds a pipe symbol, `|', in an entry, it will delete it and
5912  everything that follows it.
5913 \end_layout
5914
5915 \begin_layout Itemize
5916 Multiple Indexes: There is no support for multiple indexes.
5917  Rather, all index entries will be printed as one large index.
5918  To avoid our printing several versions of the index, we print only the
5919  main index, so make sure you have one.
5920 \end_layout
5921
5922 \begin_layout Section
5923 Nomenclature and Glossary
5924 \end_layout
5925
5926 \begin_layout Standard
5927 There is at present no support for glossaries.
5928  Adding it would be fairly trivial, and welcome.
5929 \end_layout
5930
5931 \begin_layout Chapter
5932 The \SpecialChar LyX
5933  Server
5934 \end_layout
5935
5936 \begin_layout Section
5937 Introduction
5938 \end_layout
5939
5940 \begin_layout Standard
5941 The `\SpecialChar LyX
5942  server' allows other programs to talk to \SpecialChar LyX
5943 , invoke \SpecialChar LyX
5944  commands, and retrieve
5945  information about the \SpecialChar LyX
5946  internal state.
5947  This is only intended for advanced users, but they should find it useful.
5948  It is by writing to the \SpecialChar LyX
5949  server, for example, that bibliography managers,
5950  such as JabRef, are able to 
5951 \begin_inset Quotes eld
5952 \end_inset
5953
5954 push
5955 \begin_inset Quotes erd
5956 \end_inset
5957
5958  citations to \SpecialChar LyX
5959 .
5960 \end_layout
5961
5962 \begin_layout Section
5963 Starting the \SpecialChar LyX
5964  Server
5965 \begin_inset CommandInset label
5966 LatexCommand label
5967 name "sec:Starting-the-Server"
5968
5969 \end_inset
5970
5971
5972 \end_layout
5973
5974 \begin_layout Standard
5975 The \SpecialChar LyX
5976  server works through the use of a pair of named pipes.
5977  These are usually located in 
5978 \begin_inset Flex Code
5979 status collapsed
5980
5981 \begin_layout Plain Layout
5982 UserDir
5983 \end_layout
5984
5985 \end_inset
5986
5987 , (except on Windows, where 
5988 \emph on
5989 local
5990 \emph default
5991  named pipes are special objects located in 
5992 \begin_inset Flex Code
5993 status collapsed
5994
5995 \begin_layout Plain Layout
5996
5997 \backslash
5998
5999 \backslash
6000 .
6001 \backslash
6002 pipe
6003 \end_layout
6004
6005 \end_inset
6006
6007 ) and have the names 
6008 \begin_inset Quotes eld
6009 \end_inset
6010
6011
6012 \begin_inset Flex Code
6013 status collapsed
6014
6015 \begin_layout Plain Layout
6016 lyxpipe.in
6017 \end_layout
6018
6019 \end_inset
6020
6021
6022 \begin_inset Quotes erd
6023 \end_inset
6024
6025  and 
6026 \begin_inset Quotes eld
6027 \end_inset
6028
6029
6030 \begin_inset Flex Code
6031 status collapsed
6032
6033 \begin_layout Plain Layout
6034 lyxpipe.out
6035 \end_layout
6036
6037 \end_inset
6038
6039
6040 \begin_inset Quotes erd
6041 \end_inset
6042
6043 .
6044  External programs write into 
6045 \begin_inset Flex Code
6046 status collapsed
6047
6048 \begin_layout Plain Layout
6049 lyxpipe.in
6050 \end_layout
6051
6052 \end_inset
6053
6054  and read back data from 
6055 \begin_inset Flex Code
6056 status collapsed
6057
6058 \begin_layout Plain Layout
6059 lyxpipe.out
6060 \end_layout
6061
6062 \end_inset
6063
6064 .
6065  The stem of the pipe names can be defined in the 
6066 \begin_inset Flex Noun
6067 status collapsed
6068
6069 \begin_layout Plain Layout
6070 Tools\SpecialChar menuseparator
6071 Preferences
6072 \end_layout
6073
6074 \end_inset
6075
6076  dialog, for example 
6077 \begin_inset Flex Code
6078 status collapsed
6079
6080 \begin_layout Plain Layout
6081 "/home/myhome/lyxpipe"
6082 \end_layout
6083
6084 \end_inset
6085
6086 , or 
6087 \begin_inset Flex Code
6088 status collapsed
6089
6090 \begin_layout Plain Layout
6091 "
6092 \backslash
6093
6094 \backslash
6095 .
6096 \backslash
6097 pipe
6098 \backslash
6099 lyxpipe"
6100 \end_layout
6101
6102 \end_inset
6103
6104  on Windows (where any working path instead of lyxpipe can be used, for
6105  example 
6106 \begin_inset Flex Code
6107 status collapsed
6108
6109 \begin_layout Plain Layout
6110 "
6111 \backslash
6112
6113 \backslash
6114 .
6115 \backslash
6116 pipe
6117 \backslash
6118 my
6119 \backslash
6120 lyx
6121 \backslash
6122 pipe"
6123 \end_layout
6124
6125 \end_inset
6126
6127  would also work).
6128  You 
6129 \emph on
6130 must
6131 \emph default
6132  configure this manually in order for the server to start.
6133 \end_layout
6134
6135 \begin_layout Standard
6136 \SpecialChar LyX
6137  will add the '
6138 \begin_inset Flex Code
6139 status collapsed
6140
6141 \begin_layout Plain Layout
6142 .in
6143 \end_layout
6144
6145 \end_inset
6146
6147 ' and '
6148 \begin_inset Flex Code
6149 status collapsed
6150
6151 \begin_layout Plain Layout
6152 .out
6153 \end_layout
6154
6155 \end_inset
6156
6157 ' to create the pipes.
6158  If one of the pipes already exists, \SpecialChar LyX
6159  will assume that another \SpecialChar LyX
6160  process
6161  is already running and will not start the server.
6162  On POSIX (Unix like) systems, if for some other reason, an unused 
6163 \begin_inset Quotes eld
6164 \end_inset
6165
6166 stale
6167 \begin_inset Quotes erd
6168 \end_inset
6169
6170  pipe is left in existence when \SpecialChar LyX
6171  closes, then \SpecialChar LyX
6172  will try to delete it.
6173  If this fails for some reason, you will need to delete the pipes manually
6174  and then restart \SpecialChar LyX
6175 .
6176  On Windows, pipes are deleted by the OS on program termination or crash,
6177  so 
6178 \begin_inset Quotes eld
6179 \end_inset
6180
6181 stale
6182 \begin_inset Quotes erd
6183 \end_inset
6184
6185  pipes should not be possible.
6186 \end_layout
6187
6188 \begin_layout Standard
6189 To have several \SpecialChar LyX
6190  processes with servers at the same time, you have to use
6191  different configurations, perhaps by using separate user directories, each
6192  with its own 
6193 \begin_inset Flex Code
6194 status collapsed
6195
6196 \begin_layout Plain Layout
6197 preferences
6198 \end_layout
6199
6200 \end_inset
6201
6202  file, for each process.
6203 \end_layout
6204
6205 \begin_layout Standard
6206 If you are developing a client program, you might find it useful to enable
6207  debugging information from the \SpecialChar LyX
6208  server.
6209  Do this by starting \SpecialChar LyX
6210  as 
6211 \begin_inset Flex Code
6212 status collapsed
6213
6214 \begin_layout Plain Layout
6215 lyx -dbg lyxserver
6216 \end_layout
6217
6218 \end_inset
6219
6220 .
6221 \end_layout
6222
6223 \begin_layout Standard
6224 You can find a complete example client written in C++ in the source distribution
6225  as 
6226 \begin_inset Flex Code
6227 status collapsed
6228
6229 \begin_layout Plain Layout
6230 development/lyxserver/server_monitor.cpp
6231 \end_layout
6232
6233 \end_inset
6234
6235 .
6236 \end_layout
6237
6238 \begin_layout Standard
6239 Another useful tool is the command-line based client found in 
6240 \begin_inset Flex Code
6241 status collapsed
6242
6243 \begin_layout Plain Layout
6244 src/client/lyxclient
6245 \end_layout
6246
6247 \end_inset
6248
6249 .
6250 \end_layout
6251
6252 \begin_layout Section
6253 Normal communication
6254 \end_layout
6255
6256 \begin_layout Standard
6257 To issue a \SpecialChar LyX
6258  call, the client writes a line of ASCII text into the input
6259  pipe.
6260  This line has the following format:
6261 \end_layout
6262
6263 \begin_layout Quote
6264 LYXCMD:
6265 \emph on
6266 clientname
6267 \emph default
6268 :
6269 \emph on
6270 function
6271 \emph default
6272 :
6273 \emph on
6274 argument
6275 \end_layout
6276
6277 \begin_layout Description
6278 clientname is a name that the client can choose arbitrarily.
6279  Its only use is that \SpecialChar LyX
6280  will echo it if it sends an answer—so a client can
6281  dispatch results from different requesters.
6282 \end_layout
6283
6284 \begin_layout Description
6285 function is the function you want \SpecialChar LyX
6286  to perform.
6287  It is the same as the commands you'd use in the minibuffer.
6288 \end_layout
6289
6290 \begin_layout Description
6291 argument is an optional argument which is meaningful only to some functions
6292  (for instance, the 
6293 \begin_inset Quotes eld
6294 \end_inset
6295
6296 self-insert
6297 \begin_inset Quotes erd
6298 \end_inset
6299
6300  LFUN will insert the argument as text at the cursor position).
6301 \end_layout
6302
6303 \begin_layout Standard
6304 The answer from \SpecialChar LyX
6305  will arrive in the output pipe and be of the form
6306 \end_layout
6307
6308 \begin_layout Quote
6309 INFO:
6310 \emph on
6311 clientname
6312 \emph default
6313 :
6314 \emph on
6315 function
6316 \emph default
6317 :
6318 \emph on
6319 data
6320 \end_layout
6321
6322 \begin_layout Standard
6323 where 
6324 \emph on
6325 clientname
6326 \emph default
6327  and 
6328 \emph on
6329 function
6330 \emph default
6331  are just echoed from the command request, while 
6332 \emph on
6333 data
6334 \emph default
6335  is more or less useful information filled according to how the command
6336  execution worked out.
6337  Some commands, such as 
6338 \begin_inset Quotes eld
6339 \end_inset
6340
6341 font-state
6342 \begin_inset Quotes erd
6343 \end_inset
6344
6345 , will return information about the internal state of \SpecialChar LyX
6346 , while other will
6347  return an empty data-response.
6348  This means that the command execution went fine.
6349 \end_layout
6350
6351 \begin_layout Standard
6352 In case of errors, the response from \SpecialChar LyX
6353  will have this form
6354 \end_layout
6355
6356 \begin_layout Quote
6357 ERROR:
6358 \emph on
6359 clientname
6360 \emph default
6361 :
6362 \emph on
6363 function
6364 \emph default
6365 :
6366 \emph on
6367 error message
6368 \end_layout
6369
6370 \begin_layout Standard
6371 where the 
6372 \emph on
6373 error message
6374 \emph default
6375  should contain an explanation of why the command failed.
6376 \end_layout
6377
6378 \begin_layout Standard
6379 Examples:
6380 \end_layout
6381
6382 \begin_layout LyX-Code
6383 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
6384 \begin_inset Newline newline
6385 \end_inset
6386
6387 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
6388 \begin_inset Newline newline
6389 \end_inset
6390
6391 read a <~/.lyxpipe.out
6392 \begin_inset Newline newline
6393 \end_inset
6394
6395 echo $a
6396 \end_layout
6397
6398 \begin_layout Subsection
6399 AppleScript (Mac OS X)
6400 \end_layout
6401
6402 \begin_layout Standard
6403 Since \SpecialChar LyX
6404  2.1, \SpecialChar LyX
6405  supports basic interactions with AppleScript for normal communicatio
6406 n through the command run.
6407  This command takes a direct argument (the 
6408 \series bold
6409 function
6410 \series default
6411  to perform) and an optional argument.
6412  It either returns the output of the function or triggers an error with
6413  the error message and code.
6414 \end_layout
6415
6416 \begin_layout Standard
6417 Example:
6418 \end_layout
6419
6420 \begin_layout LyX-Code
6421 tell application "\SpecialChar LyX
6422 "
6423 \end_layout
6424
6425 \begin_layout LyX-Code
6426   try
6427 \end_layout
6428
6429 \begin_layout LyX-Code
6430     -- Stores the current file name into f
6431 \end_layout
6432
6433 \begin_layout LyX-Code
6434     set f to (run "server-get-filename" with argument "")
6435 \end_layout
6436
6437 \begin_layout LyX-Code
6438     on error the error_message number the error_number
6439 \end_layout
6440
6441 \begin_layout LyX-Code
6442       display dialog "Error: " & the error_number & ".
6443  " ¬
6444 \end_layout
6445
6446 \begin_layout LyX-Code
6447               & the error_message buttons {"OK"} default button 1
6448 \end_layout
6449
6450 \begin_layout LyX-Code
6451   end try
6452 \end_layout
6453
6454 \begin_layout LyX-Code
6455 end tell
6456 \end_layout
6457
6458 \begin_layout Section
6459 Notification
6460 \end_layout
6461
6462 \begin_layout Standard
6463 \SpecialChar LyX
6464  can notify clients of events going on asynchronously.
6465  Currently it will only do this if the user binds a key sequence with the
6466  function 
6467 \begin_inset Quotes eld
6468 \end_inset
6469
6470 notify
6471 \begin_inset Quotes erd
6472 \end_inset
6473
6474 .
6475  The format of the string \SpecialChar LyX
6476  sends is as follows:
6477 \end_layout
6478
6479 \begin_layout Quote
6480 \begin_inset Flex Code
6481 status collapsed
6482
6483 \begin_layout Plain Layout
6484 NOTIFY:
6485 \end_layout
6486
6487 \end_inset
6488
6489
6490 \emph on
6491 key-sequence
6492 \end_layout
6493
6494 \begin_layout Standard
6495 where 
6496 \emph on
6497 key-sequence
6498 \emph default
6499  is the printed representation of the key sequence that was actually typed
6500  by the user.
6501 \end_layout
6502
6503 \begin_layout Standard
6504 This mechanism can be used to extend \SpecialChar LyX
6505 's command set and implement macros.
6506  Bind some key sequence to 
6507 \begin_inset Quotes eld
6508 \end_inset
6509
6510 notify
6511 \begin_inset Quotes erd
6512 \end_inset
6513
6514 .
6515  Then start a client that listens on the output pipe, dispatches the command
6516  according to the sequence, and starts a function that may use \SpecialChar LyX
6517  calls and
6518  \SpecialChar LyX
6519  requests to issue a command or a series of commands to \SpecialChar LyX
6520 .
6521 \end_layout
6522
6523 \begin_layout Section
6524 The simple \SpecialChar LyX
6525  Server Protocol
6526 \end_layout
6527
6528 \begin_layout Standard
6529 \SpecialChar LyX
6530  implements a simple protocol that can be used for session management.
6531  All messages are of the form
6532 \end_layout
6533
6534 \begin_layout Quote
6535 LYXSRV:
6536 \emph on
6537 clientname
6538 \emph default
6539 :
6540 \emph on
6541 protocol message
6542 \end_layout
6543
6544 \begin_layout Standard
6545 where 
6546 \emph on
6547 protocol message
6548 \emph default
6549  can be 
6550 \begin_inset Quotes eld
6551 \end_inset
6552
6553 hello
6554 \begin_inset Quotes erd
6555 \end_inset
6556
6557  or 
6558 \begin_inset Quotes eld
6559 \end_inset
6560
6561 bye
6562 \begin_inset Quotes erd
6563 \end_inset
6564
6565 .
6566  If 
6567 \begin_inset Quotes eld
6568 \end_inset
6569
6570 hello
6571 \begin_inset Quotes erd
6572 \end_inset
6573
6574  is received from a client, \SpecialChar LyX
6575  will report back to inform the client that
6576  it's listening to it's messages, while 
6577 \begin_inset Quotes eld
6578 \end_inset
6579
6580 bye
6581 \begin_inset Quotes erd
6582 \end_inset
6583
6584  sent from \SpecialChar LyX
6585  will inform clients that \SpecialChar LyX
6586  is closing.
6587 \end_layout
6588
6589 \begin_layout Section
6590 Reverse DVI/PDF search
6591 \end_layout
6592
6593 \begin_layout Standard
6594 Some DVI/PDF viewers
6595 \begin_inset Foot
6596 status collapsed
6597
6598 \begin_layout Plain Layout
6599 The following viewers offer the reverse PDF search feature: Okular on KDE/Linux,
6600  Qpdfview on Unix, Skim on Mac OSX and SumatraPDF on Windows.
6601 \end_layout
6602
6603 \end_inset
6604
6605  provide 
6606 \emph on
6607 reverse search
6608 \emph default
6609  facility (also called 
6610 \emph on
6611 inverse search
6612 \emph default
6613 ).
6614  This means that you can tell \SpecialChar LyX
6615  to put the cursor to a specific line in the
6616  document by clicking at the respective position in the DVI/PDF output.
6617  To achieve this, the viewer must be able to communicate with \SpecialChar LyX
6618 .
6619  This is done via the \SpecialChar LyX
6620  server either by using the named pipe (
6621 \emph on
6622 lyxpipe
6623 \emph default
6624 ), or the UNIX domain socket (
6625 \emph on
6626 lyxsocket
6627 \emph default
6628 ) that \SpecialChar LyX
6629  creates in its temporary directory (this is the way the 
6630 \begin_inset Flex Code
6631 status collapsed
6632
6633 \begin_layout Plain Layout
6634 lyxclient
6635 \end_layout
6636
6637 \end_inset
6638
6639  program communicates with \SpecialChar LyX
6640 ).
6641  In some cases, you need a helper script that mediates between the viewer
6642  and \SpecialChar LyX
6643 , in others, the viewer can communicate with \SpecialChar LyX
6644  directly.
6645  This depends on the selected viewer and on your operating system.
6646  The same applies to the way viewers need to be configured and the way the
6647  reverse search is actually performed.
6648  In what follows, we will thus describe how to setup reverse search for
6649  specific viewers.
6650  Before we turn to this, though, we will explain what needs to be done generally
6651  to enable reverse search in the DVI/PDF output.
6652 \end_layout
6653
6654 \begin_layout Subsection
6655 Automatic setup
6656 \begin_inset CommandInset label
6657 LatexCommand label
6658 name "subsec:rev-search"
6659
6660 \end_inset
6661
6662
6663 \end_layout
6664
6665 \begin_layout Standard
6666 In most cases \SpecialChar LyX
6667  will do the work for you by pressing the following button
6668  in the toolbar: 
6669 \begin_inset Info
6670 type  "icon"
6671 arg   "buffer-toggle-output-sync"
6672 \end_inset
6673
6674 .
6675  Alternatively, you can also enable the feature by checking 
6676 \family sans
6677 Synchronize with Output
6678 \family default
6679  in 
6680 \begin_inset Flex Noun
6681 status collapsed
6682
6683 \begin_layout Plain Layout
6684 Document\SpecialChar menuseparator
6685 Settings\SpecialChar menuseparator
6686 Formats
6687 \end_layout
6688
6689 \end_inset
6690
6691 .
6692  In such a case \SpecialChar LyX
6693  will automatically insert the necessary Sync\SpecialChar TeX
6694  macro (for
6695  PDF) or load the srcltx package (for DVI) respectively.
6696  This option can be easily reached also on 
6697 \begin_inset Flex Code
6698 status collapsed
6699
6700 \begin_layout Plain Layout
6701 View/Update
6702 \end_layout
6703
6704 \end_inset
6705
6706  Toolbar.
6707 \end_layout
6708
6709 \begin_layout Standard
6710 If you need a different setting, you can select or input a custom macro
6711  from the drop down box just below 
6712 \begin_inset Flex Noun
6713 status collapsed
6714
6715 \begin_layout Plain Layout
6716 Document\SpecialChar menuseparator
6717 Settings\SpecialChar menuseparator
6718 Output\SpecialChar menuseparator
6719 Synchronize with Output
6720 \end_layout
6721
6722 \end_inset
6723
6724 .
6725 \end_layout
6726
6727 \begin_layout Standard
6728 Note that the method 
6729 \begin_inset Flex Code
6730 status collapsed
6731
6732 \begin_layout Plain Layout
6733
6734 \backslash
6735 synctex=1
6736 \end_layout
6737
6738 \end_inset
6739
6740  enables gzip compression.
6741  If your viewer does not support it, you should instead use 
6742 \begin_inset Flex Code
6743 status collapsed
6744
6745 \begin_layout Plain Layout
6746
6747 \backslash
6748 synctex=-1
6749 \end_layout
6750
6751 \end_inset
6752
6753 .
6754 \end_layout
6755
6756 \begin_layout Standard
6757 Please also note that including the 
6758 \begin_inset Flex Code
6759 status collapsed
6760
6761 \begin_layout Plain Layout
6762 srcltx
6763 \end_layout
6764
6765 \end_inset
6766
6767  package or 
6768 \begin_inset Flex Code
6769 status collapsed
6770
6771 \begin_layout Plain Layout
6772 src-specials
6773 \end_layout
6774
6775 \end_inset
6776
6777  sometimes has an undesired impact on the typesetting.
6778  Thus, you should switch output synchronization off for the final typesetting
6779  if you use the 
6780 \begin_inset Flex Code
6781 status collapsed
6782
6783 \begin_layout Plain Layout
6784 srcltx
6785 \end_layout
6786
6787 \end_inset
6788
6789  package or 
6790 \begin_inset Flex Code
6791 status collapsed
6792
6793 \begin_layout Plain Layout
6794 src-specials
6795 \end_layout
6796
6797 \end_inset
6798
6799 .
6800  
6801 \end_layout
6802
6803 \begin_layout Standard
6804 In case you need some more special settings that are not covered by the
6805  automatic settings, read the next section about how to set up output synchroniz
6806 ation manually.
6807  If the automatic setup suits your needs, you can readily jump to section
6808 \begin_inset space ~
6809 \end_inset
6810
6811
6812 \begin_inset CommandInset ref
6813 LatexCommand ref
6814 reference "subsec:configuring-viewers"
6815
6816 \end_inset
6817
6818 , where the necessary configuration steps in your viewer – needed both with
6819  the automatic and the manual setup – are described.
6820 \end_layout
6821
6822 \begin_layout Subsection
6823 Manual setup
6824 \end_layout
6825
6826 \begin_layout Standard
6827 \SpecialChar LaTeX
6828  provides several different methods for reverse search.
6829  Some are built-in in the 
6830 \begin_inset Flex Code
6831 status collapsed
6832
6833 \begin_layout Plain Layout
6834 latex/pdflatex
6835 \end_layout
6836
6837 \end_inset
6838
6839  program, some are provided by external packages.
6840  Your choice depends on whether your \SpecialChar LaTeX
6841  distribution already provides a given
6842  method (the built-in methods are rather new) and whether your viewer can
6843  cope with it.
6844  The available methods are described in the following.
6845 \end_layout
6846
6847 \begin_layout Subsubsection*
6848 Built-in DVI-search via src-specials (DVI only) 
6849 \end_layout
6850
6851 \begin_layout Standard
6852 This method provides the DVI file with the necessary information for reverse
6853  search.
6854  It is available in \SpecialChar LaTeX
6855  since quite some time (any somewhat recent \SpecialChar LaTeX
6856  distribution
6857  should include it), and it works reliably.
6858  To enable it, change the 
6859 \begin_inset Flex Noun
6860 status collapsed
6861
6862 \begin_layout Plain Layout
6863 La
6864 \family sans
6865 TeX
6866 \family default
6867  (plain)->DVI
6868 \end_layout
6869
6870 \end_inset
6871
6872  or 
6873 \begin_inset Flex Noun
6874 status collapsed
6875
6876 \begin_layout Plain Layout
6877 La
6878 \family sans
6879 TeX
6880 \family default
6881  (plain)->DraftDVI
6882 \end_layout
6883
6884 \end_inset
6885
6886  converter in 
6887 \begin_inset Flex Noun
6888 status collapsed
6889
6890 \begin_layout Plain Layout
6891 Preferences\SpecialChar menuseparator
6892 File Handling\SpecialChar menuseparator
6893 Converters
6894 \end_layout
6895
6896 \end_inset
6897
6898  to 
6899 \begin_inset Flex Code
6900 status collapsed
6901
6902 \begin_layout Plain Layout
6903 latex -src-specials $$i
6904 \end_layout
6905
6906 \end_inset
6907
6908 .
6909  If this doesn't work, check if your \SpecialChar TeX
6910  engine needs different options (the
6911  syntax might differ in some distributions).
6912 \end_layout
6913
6914 \begin_layout Subsubsection*
6915 External Packages (PDFSync and scrltx) 
6916 \end_layout
6917
6918 \begin_layout Standard
6919 The packages 
6920 \emph on
6921 pdfsync
6922 \emph default
6923  and 
6924 \emph on
6925 scrltx
6926 \emph default
6927  provide reverse search facility for PDF output (via pdflatex) and DVI output,
6928  respectively.
6929  In order to enable it, load the packages in the \SpecialChar LyX
6930  preamble: 
6931 \end_layout
6932
6933 \begin_layout Itemize
6934 \begin_inset Flex Code
6935 status collapsed
6936
6937 \begin_layout Plain Layout
6938
6939 \backslash
6940 usepackage{pdfsync}
6941 \end_layout
6942
6943 \end_inset
6944
6945  for reverse PDF search,
6946 \end_layout
6947
6948 \begin_layout Itemize
6949 \begin_inset Flex Code
6950 status collapsed
6951
6952 \begin_layout Plain Layout
6953
6954 \backslash
6955 usepackage[active]{srcltx}
6956 \end_layout
6957
6958 \end_inset
6959
6960  for reverse DVI search.
6961 \end_layout
6962
6963 \begin_layout Standard
6964 If you want to be able to perform both DVI and PDF reverse searches, you
6965  can also insert in the preamble the following lines
6966 \end_layout
6967
6968 \begin_layout LyX-Code
6969
6970 \backslash
6971 usepackage{ifpdf}
6972 \begin_inset Newline newline
6973 \end_inset
6974
6975
6976 \backslash
6977 ifpdf
6978 \begin_inset Newline newline
6979 \end_inset
6980
6981   
6982 \backslash
6983 usepackage{pdfsync}
6984 \begin_inset Newline newline
6985 \end_inset
6986
6987
6988 \backslash
6989 else
6990 \begin_inset Newline newline
6991 \end_inset
6992
6993   
6994 \backslash
6995 usepackage[active]{srcltx}
6996 \begin_inset Newline newline
6997 \end_inset
6998
6999
7000 \backslash
7001 fi
7002 \end_layout
7003
7004 \begin_layout Standard
7005 This way, you can preview the file as either DVI or PDF (pdflatex) and the
7006  right package will be used.
7007 \end_layout
7008
7009 \begin_layout Standard
7010 Note that PDFSync might affect the output layout of your document.
7011  It is therefore advised to disable PDFsync for final documents.
7012 \end_layout
7013
7014 \begin_layout Subsubsection*
7015 Built-in reverse search via Sync\SpecialChar TeX
7016  (DVI and PDF) 
7017 \end_layout
7018
7019 \begin_layout Standard
7020 Recent versions of 
7021 \begin_inset Flex Code
7022 status collapsed
7023
7024 \begin_layout Plain Layout
7025 (pdf)latex
7026 \end_layout
7027
7028 \end_inset
7029
7030  have built-in support for both PDF and DVI reverse search.
7031  This so-called 
7032 \emph on
7033 Sync\SpecialChar TeX
7034
7035 \emph default
7036  facility is basically the result of the integration of the PDFSync package
7037  to the pdftex program and its merge with the 
7038 \emph on
7039 scr-specials
7040 \emph default
7041  approach.
7042  You need at least \SpecialChar TeX
7043 Live 2008 or a recent Mik\SpecialChar TeX
7044  distribution in order to use
7045  it.
7046 \begin_inset Foot
7047 status collapsed
7048
7049 \begin_layout Plain Layout
7050 For some reason, Mik\SpecialChar TeX
7051  does not understand/obey the command \SpecialChar LyX
7052  inserts into
7053  the preamble when you check the "Enable Forward/Reverse Search" button
7054  in the toolbar and does not generate the necessary info.
7055 \end_layout
7056
7057 \begin_layout Plain Layout
7058 The generation of the required info can be forced by changing the converter
7059  "\SpecialChar LaTeX
7060  (pdflatex) -> PDF (pdflatex)" in Preferences->File handling->Converters
7061  from the default "pdflatex $$i" to "pdflatex -synctex=1 $$i" (i.e., by adding
7062  the -synctex=1 switch).
7063 \end_layout
7064
7065 \end_inset
7066
7067  Also note that only a few PDF viewers (such as Okular and Qpdfview on Unix,
7068  Skim on the Mac, SumatraPDF on Windows; see the next section for details)
7069  already provide Sync\SpecialChar TeX
7070  support.
7071 \end_layout
7072
7073 \begin_layout Standard
7074 To enable Sync\SpecialChar TeX
7075  for DVI output, change the 
7076 \begin_inset Flex Noun
7077 status collapsed
7078
7079 \begin_layout Plain Layout
7080 La
7081 \family sans
7082 TeX
7083 \family default
7084  (plain) -> DVI
7085 \end_layout
7086
7087 \end_inset
7088
7089  or 
7090 \begin_inset Flex Noun
7091 status collapsed
7092
7093 \begin_layout Plain Layout
7094 La
7095 \family sans
7096 TeX
7097 \family default
7098  (plain) -> DraftDVI
7099 \end_layout
7100
7101 \end_inset
7102
7103  converter in 
7104 \begin_inset Flex Noun
7105 status collapsed
7106
7107 \begin_layout Plain Layout
7108 Preferences\SpecialChar menuseparator
7109 File Handling\SpecialChar menuseparator
7110 Converters
7111 \end_layout
7112
7113 \end_inset
7114
7115  to 
7116 \begin_inset Flex Code
7117 status collapsed
7118
7119 \begin_layout Plain Layout
7120 latex -synctex=1 $$i
7121 \end_layout
7122
7123 \end_inset
7124
7125 , and for PDF output, change the 
7126 \begin_inset Flex Noun
7127 status collapsed
7128
7129 \begin_layout Plain Layout
7130 La
7131 \family sans
7132 TeX
7133 \family default
7134  (pdflatex) -> PDF (pdflatex)
7135 \end_layout
7136
7137 \end_inset
7138
7139  converter to 
7140 \begin_inset Flex Code
7141 status collapsed
7142
7143 \begin_layout Plain Layout
7144 pdflatex -synctex=1 $$i
7145 \end_layout
7146
7147 \end_inset
7148
7149 .
7150  Should your viewer not be considered in the following description, or in
7151  case of missing success, please check the documentation of your viewer
7152  whether the viewer needs to be configured for the use with Sync\SpecialChar TeX
7153 .
7154 \begin_inset Foot
7155 status collapsed
7156
7157 \begin_layout Plain Layout
7158 Note that the option 
7159 \begin_inset Flex Code
7160 status collapsed
7161
7162 \begin_layout Plain Layout
7163 -synctex=1
7164 \end_layout
7165
7166 \end_inset
7167
7168  option enables gzip compression.
7169  If your viewer does not support it, you should instead use 
7170 \begin_inset Flex Code
7171 status collapsed
7172
7173 \begin_layout Plain Layout
7174 -synctex=-1
7175 \end_layout
7176
7177 \end_inset
7178
7179 .
7180 \end_layout
7181
7182 \end_inset
7183
7184
7185 \end_layout
7186
7187 \begin_layout Subsection
7188 Configuring and using specific viewers
7189 \begin_inset CommandInset label
7190 LatexCommand label
7191 name "subsec:configuring-viewers"
7192
7193 \end_inset
7194
7195
7196 \end_layout
7197
7198 \begin_layout Subsubsection*
7199 Xdvi (all platforms)
7200 \end_layout
7201
7202 \begin_layout Standard
7203 If you use 
7204 \begin_inset Flex Code
7205 status collapsed
7206
7207 \begin_layout Plain Layout
7208 xdvi
7209 \end_layout
7210
7211 \end_inset
7212
7213 , you don't need to do anything else for performing a reverse DVI search,
7214  as \SpecialChar LyX
7215  already provides the necessary hooks for automatically using the 
7216 \begin_inset Flex Code
7217 status collapsed
7218
7219 \begin_layout Plain Layout
7220 lyxclient
7221 \end_layout
7222
7223 \end_inset
7224
7225  program.
7226  Just setup your document as described above (reverse search is triggered
7227  by Ctrl-click or Alt-click on Mac OSX, respectively).
7228 \end_layout
7229
7230 \begin_layout Standard
7231 However, if for whatever reason you want to use the named pipe instead of
7232  the socket for communicating with \SpecialChar LyX
7233 , simply change the DVI viewer in 
7234 \begin_inset Flex Noun
7235 status collapsed
7236
7237 \begin_layout Plain Layout
7238 Preferences\SpecialChar menuseparator
7239 File Handling\SpecialChar menuseparator
7240 File formats
7241 \end_layout
7242
7243 \end_inset
7244
7245  to
7246 \begin_inset Foot
7247 status collapsed
7248
7249 \begin_layout Plain Layout
7250 On Mac OSX you have to use 
7251 \begin_inset Flex Code
7252 status collapsed
7253
7254 \begin_layout Plain Layout
7255 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
7256 \end_layout
7257
7258 \end_inset
7259
7260
7261 \end_layout
7262
7263 \end_inset
7264
7265  
7266 \begin_inset Flex Code
7267 status collapsed
7268
7269 \begin_layout Plain Layout
7270 xdvi -editor "lyxeditor.sh %f %l"
7271 \end_layout
7272
7273 \end_inset
7274
7275 , where 
7276 \begin_inset Flex Code
7277 status collapsed
7278
7279 \begin_layout Plain Layout
7280 lyxeditor.sh
7281 \end_layout
7282
7283 \end_inset
7284
7285  is a suitable script.
7286  For example, a minimal shell script is the following one:
7287 \end_layout
7288
7289 \begin_layout LyX-Code
7290 #!/bin/sh
7291 \begin_inset Newline newline
7292 \end_inset
7293
7294 LYXPIPE="/path/to/lyxpipe"
7295 \begin_inset Newline newline
7296 \end_inset
7297
7298 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
7299 \begin_inset Newline newline
7300 \end_inset
7301
7302 echo "$COMMAND" > "${LYXPIPE}".in || exit
7303 \begin_inset Newline newline
7304 \end_inset
7305
7306 read TMP < "${LYXPIPE}".out || exit
7307 \end_layout
7308
7309 \begin_layout Standard
7310 where 
7311 \begin_inset Flex Code
7312 status collapsed
7313
7314 \begin_layout Plain Layout
7315 /path/to/lyxpipe
7316 \end_layout
7317
7318 \end_inset
7319
7320  is the LyXServer pipe path specified in 
7321 \begin_inset Flex Noun
7322 status collapsed
7323
7324 \begin_layout Plain Layout
7325 Preferences\SpecialChar menuseparator
7326 Paths
7327 \end_layout
7328
7329 \end_inset
7330
7331 .
7332 \begin_inset Foot
7333 status collapsed
7334
7335 \begin_layout Plain Layout
7336 In the 
7337 \begin_inset Flex Code
7338 status collapsed
7339
7340 \begin_layout Plain Layout
7341 development/tools
7342 \end_layout
7343
7344 \end_inset
7345
7346  folder of a source distribution you can find a 
7347 \begin_inset Flex Code
7348 status collapsed
7349
7350 \begin_layout Plain Layout
7351 lyxeditor
7352 \end_layout
7353
7354 \end_inset
7355
7356  script which is able to locate the 
7357 \emph on
7358 lyxpipe
7359 \emph default
7360  based on your preferences.
7361 \end_layout
7362
7363 \end_inset
7364
7365
7366 \end_layout
7367
7368 \begin_layout Subsubsection*
7369 MacDviX (Mac OSX)
7370 \end_layout
7371
7372 \begin_layout Standard
7373 At the end of 
7374 \begin_inset Flex Code
7375 status collapsed
7376
7377 \begin_layout Plain Layout
7378 /Applications/MacDviX_Folder/calleditor.script
7379 \end_layout
7380
7381 \end_inset
7382
7383 , add the following lines:
7384 \end_layout
7385
7386 \begin_layout LyX-Code
7387 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
7388 \begin_inset Newline newline
7389 \end_inset
7390
7391 exit 1
7392 \end_layout
7393
7394 \begin_layout Standard
7395 Modify the lines accordingly if you install \SpecialChar LyX
7396  somewhere else than in the
7397  Applications folder.
7398 \end_layout
7399
7400 \begin_layout Standard
7401 Reverse search is triggered by Alt-click (OPTION-click).
7402 \end_layout
7403
7404 \begin_layout Subsubsection*
7405 Skim (Mac OSX)
7406 \end_layout
7407
7408 \begin_layout Standard
7409 Enter 
7410 \begin_inset Flex Code
7411 status collapsed
7412
7413 \begin_layout Plain Layout
7414 open -a Skim.app $$i
7415 \end_layout
7416
7417 \end_inset
7418
7419  to the viewer setting in 
7420 \begin_inset Flex Noun
7421 status collapsed
7422
7423 \begin_layout Plain Layout
7424 Preferences\SpecialChar menuseparator
7425 File Handling\SpecialChar menuseparator
7426 File formats\SpecialChar menuseparator
7427 PDF (pdflatex)
7428 \end_layout
7429
7430 \end_inset
7431
7432 , and then in 
7433 \begin_inset Flex Noun
7434 status collapsed
7435
7436 \begin_layout Plain Layout
7437 Skim\SpecialChar menuseparator
7438 Preferences\SpecialChar menuseparator
7439 Sync
7440 \end_layout
7441
7442 \end_inset
7443
7444  choose 
7445 \begin_inset Flex Noun
7446 status collapsed
7447
7448 \begin_layout Plain Layout
7449 custom
7450 \end_layout
7451
7452 \end_inset
7453
7454  preset and enter command 
7455 \begin_inset Flex Noun
7456 status collapsed
7457
7458 \begin_layout Plain Layout
7459 /Applications/\SpecialChar LyX
7460 .app/Contents/MacOS/lyxeditor
7461 \end_layout
7462
7463 \end_inset
7464
7465 .
7466 \end_layout
7467
7468 \begin_layout Standard
7469 Reverse search is triggered by COMMAND-SHIFT-click
7470 \end_layout
7471
7472 \begin_layout Subsubsection*
7473 Evince (GNOME)
7474 \end_layout
7475
7476 \begin_layout Standard
7477 Reverse search with evince does not work out of the box, but it can be achieved
7478  by means of some third party helper scripts.
7479  Please refer to 
7480 \begin_inset CommandInset href
7481 LatexCommand href
7482 target "https://wiki.lyx.org/LyX/SyncTeX"
7483 literal "false"
7484
7485 \end_inset
7486
7487  for details.
7488 \end_layout
7489
7490 \begin_layout Subsubsection*
7491 Okular (KDE)
7492 \end_layout
7493
7494 \begin_layout Standard
7495 Go to 
7496 \begin_inset Flex Noun
7497 status collapsed
7498
7499 \begin_layout Plain Layout
7500 Settings\SpecialChar menuseparator
7501 Configure Okular\SpecialChar menuseparator
7502 Editor
7503 \end_layout
7504
7505 \end_inset
7506
7507  and select LyX
7508 \begin_inset Quotes erd
7509 \end_inset
7510
7511  as editor.
7512  This inserts the appropriate command (
7513 \begin_inset Flex Code
7514 status collapsed
7515
7516 \begin_layout Plain Layout
7517 lyxclient -g %f %l
7518 \end_layout
7519
7520 \end_inset
7521
7522 ).
7523 \end_layout
7524
7525 \begin_layout Standard
7526 Reverse search is triggered by SHIFT-click.
7527
7528 \change_inserted -712698321 1578211026
7529  Note that this only works if Okular is in 
7530 \begin_inset Quotes eld
7531 \end_inset
7532
7533 Browse
7534 \begin_inset Quotes erd
7535 \end_inset
7536
7537  mode (i.
7538 \begin_inset space \thinspace{}
7539 \end_inset
7540
7541 e., the hand symbol is clicked).
7542 \change_unchanged
7543
7544 \end_layout
7545
7546 \begin_layout Subsubsection*
7547 Qpdfview (Unix)
7548 \end_layout
7549
7550 \begin_layout Standard
7551 Qpdfview supports Sync\SpecialChar TeX
7552  since version 0.3.5.
7553  Go to 
7554 \begin_inset Flex Noun
7555 status collapsed
7556
7557 \begin_layout Plain Layout
7558 Edit\SpecialChar menuseparator
7559 Settings\SpecialChar menuseparator
7560 Behavior
7561 \end_layout
7562
7563 \end_inset
7564
7565 , click on the input field of the 
7566 \begin_inset Quotes eld
7567 \end_inset
7568
7569 Source editor
7570 \begin_inset Quotes erd
7571 \end_inset
7572
7573  item and add the command 
7574 \begin_inset Flex Code
7575 status collapsed
7576
7577 \begin_layout Plain Layout
7578 lyxclient -g %1 %2
7579 \end_layout
7580
7581 \end_inset
7582
7583 .
7584 \end_layout
7585
7586 \begin_layout Standard
7587 Reverse search is triggered by double-click or, in more recent versions,
7588  by context menu.
7589 \end_layout
7590
7591 \begin_layout Subsubsection*
7592 YAP (Windows)
7593 \end_layout
7594
7595 \begin_layout Standard
7596 Launch yap, choose its 
7597 \begin_inset Flex Noun
7598 status collapsed
7599
7600 \begin_layout Plain Layout
7601 View\SpecialChar menuseparator
7602 Options
7603 \end_layout
7604
7605 \end_inset
7606
7607  menu and select the 
7608 \begin_inset Quotes eld
7609 \end_inset
7610
7611 Inverse DVI Search
7612 \begin_inset Quotes erd
7613 \end_inset
7614
7615  tab.
7616  Click on the 
7617 \begin_inset Quotes eld
7618 \end_inset
7619
7620 New\SpecialChar ldots
7621
7622 \begin_inset Quotes erd
7623 \end_inset
7624
7625  button and, in the window that opens, enter 
7626 \begin_inset Quotes eld
7627 \end_inset
7628
7629 \SpecialChar LyX
7630  Editor
7631 \begin_inset Quotes erd
7632 \end_inset
7633
7634  (or any other name you like) in the 
7635 \begin_inset Quotes eld
7636 \end_inset
7637
7638 Name:
7639 \begin_inset Quotes erd
7640 \end_inset
7641
7642  field.
7643  Now click on the button labeled 
7644 \begin_inset Quotes eld
7645 \end_inset
7646
7647 \SpecialChar ldots
7648
7649 \begin_inset Quotes erd
7650 \end_inset
7651
7652  to open a file dialog and navigate to the directory containing the batch
7653  file 
7654 \begin_inset Flex Code
7655 status collapsed
7656
7657 \begin_layout Plain Layout
7658 lyxeditor.bat
7659 \end_layout
7660
7661 \end_inset
7662
7663  (see below).
7664  Select 
7665 \begin_inset Flex Code
7666 status collapsed
7667
7668 \begin_layout Plain Layout
7669 lyxeditor.bat
7670 \end_layout
7671
7672 \end_inset
7673
7674  and then specify the program arguments as 
7675 \begin_inset Flex Code
7676 status collapsed
7677
7678 \begin_layout Plain Layout
7679 %f %l
7680 \end_layout
7681
7682 \end_inset
7683
7684 .
7685  The 
7686 \begin_inset Flex Code
7687 status collapsed
7688
7689 \begin_layout Plain Layout
7690 lyxeditor.bat
7691 \end_layout
7692
7693 \end_inset
7694
7695  wrapper is used for communicating with \SpecialChar LyX
7696  through the 
7697 \emph on
7698 lyxpipe
7699 \emph default
7700  and is as follows:
7701 \end_layout
7702
7703 \begin_layout LyX-Code
7704 @echo off
7705 \begin_inset Newline newline
7706 \end_inset
7707
7708 echo LYXCMD:revdvi:server-goto-file-row:%~1 %2> 
7709 \backslash
7710
7711 \backslash
7712 .
7713 \backslash
7714 pipe
7715 \backslash
7716 lyxpipe.in
7717 \begin_inset Newline newline
7718 \end_inset
7719
7720 type 
7721 \backslash
7722
7723 \backslash
7724 .
7725 \backslash
7726 pipe
7727 \backslash
7728 lyxpipe.out
7729 \end_layout
7730
7731 \begin_layout Standard
7732 Make sure that the \SpecialChar LyX
7733 Server pipe path you specified in \SpecialChar LyX
7734  is 
7735 \begin_inset Flex Code
7736 status collapsed
7737
7738 \begin_layout Plain Layout
7739
7740 \backslash
7741
7742 \backslash
7743 .
7744 \backslash
7745 pipe
7746 \backslash
7747 lyxpipe
7748 \end_layout
7749
7750 \end_inset
7751
7752 , otherwise change the 
7753 \begin_inset Flex Code
7754 status collapsed
7755
7756 \begin_layout Plain Layout
7757 lyxeditor.bat
7758 \end_layout
7759
7760 \end_inset
7761
7762  wrapper accordingly.
7763 \end_layout
7764
7765 \begin_layout Standard
7766 In yap, reverse search is triggered by double-click.
7767 \end_layout
7768
7769 \begin_layout Subsubsection*
7770 SumatraPDF (Windows)
7771 \end_layout
7772
7773 \begin_layout Standard
7774 In order to use SumatraPDF for inverse search, enter 
7775 \begin_inset Flex Code
7776 status collapsed
7777
7778 \begin_layout Plain Layout
7779 SumatraPDF -inverse-search "lyxeditor.bat "%f" %l"
7780 \end_layout
7781
7782 \end_inset
7783
7784  in the viewer setting in 
7785 \begin_inset Flex Noun
7786 status collapsed
7787
7788 \begin_layout Plain Layout
7789 Preferences\SpecialChar menuseparator
7790 File Handling\SpecialChar menuseparator
7791 File formats\SpecialChar menuseparator
7792 PDF (pdflatex)
7793 \end_layout
7794
7795 \end_inset
7796
7797 , where 
7798 \begin_inset Flex Code
7799 status collapsed
7800
7801 \begin_layout Plain Layout
7802 lyxeditor.bat
7803 \end_layout
7804
7805 \end_inset
7806
7807  is the previous wrapper.
7808  If SumatraPDF.exe is not in your command PATH, use its full file name.
7809 \end_layout
7810
7811 \begin_layout Standard
7812 Reverse search is triggered by double-click.
7813 \end_layout
7814
7815 \begin_layout Subsubsection*
7816 YAP (Cygwin)
7817 \end_layout
7818
7819 \begin_layout Standard
7820 First of all, make sure that yap is your default DVI viewer in the Windows
7821  environment, then launch it, choose its 
7822 \begin_inset Flex Noun
7823 status collapsed
7824
7825 \begin_layout Plain Layout
7826 View\SpecialChar menuseparator
7827 Options
7828 \end_layout
7829
7830 \end_inset
7831
7832  menu and select the 
7833 \begin_inset Quotes eld
7834 \end_inset
7835
7836 Inverse DVI Search
7837 \begin_inset Quotes erd
7838 \end_inset
7839
7840  tab.
7841  Click on the 
7842 \begin_inset Quotes eld
7843 \end_inset
7844
7845 New\SpecialChar ldots
7846
7847 \begin_inset Quotes erd
7848 \end_inset
7849
7850  button and, in the window that opens, enter 
7851 \begin_inset Quotes eld
7852 \end_inset
7853
7854 \SpecialChar LyX
7855  Editor
7856 \begin_inset Quotes erd
7857 \end_inset
7858
7859  (or any other name you like) in the 
7860 \begin_inset Quotes eld
7861 \end_inset
7862
7863 Name:
7864 \begin_inset Quotes erd
7865 \end_inset
7866
7867  field.
7868  Now click on the button labeled 
7869 \begin_inset Quotes eld
7870 \end_inset
7871
7872 \SpecialChar ldots
7873
7874 \begin_inset Quotes erd
7875 \end_inset
7876
7877  to open a file dialog and navigate to the directory containing the 
7878 \begin_inset Flex Code
7879 status collapsed
7880
7881 \begin_layout Plain Layout
7882 lyxeditor.exe
7883 \end_layout
7884
7885 \end_inset
7886
7887  program (which is installed by default on Cygwin along with the \SpecialChar LyX
7888  executable).
7889  Select 
7890 \begin_inset Flex Code
7891 status collapsed
7892
7893 \begin_layout Plain Layout
7894 lyxeditor.exe
7895 \end_layout
7896
7897 \end_inset
7898
7899  and then specify the program arguments as 
7900 \begin_inset Flex Code
7901 status collapsed
7902
7903 \begin_layout Plain Layout
7904 -g %f %l
7905 \end_layout
7906
7907 \end_inset
7908
7909 .
7910  In this way, you will be using the 
7911 \emph on
7912 lyxsocket
7913 \emph default
7914  for communicating with \SpecialChar LyX
7915 .
7916  If, for whatever reason, you want to use the 
7917 \emph on
7918 lyxpipe
7919 \emph default
7920 , omit the 
7921 \begin_inset Flex Code
7922 status collapsed
7923
7924 \begin_layout Plain Layout
7925 -g
7926 \end_layout
7927
7928 \end_inset
7929
7930  option and be sure to specify the \SpecialChar LyX
7931 Server pipe path in the \SpecialChar LyX
7932  preferences.
7933 \end_layout
7934
7935 \begin_layout Standard
7936 In yap, reverse search is triggered by double-click.
7937 \end_layout
7938
7939 \begin_layout Subsubsection*
7940 SumatraPDF (Cygwin)
7941 \end_layout
7942
7943 \begin_layout Standard
7944 In order to use SumatraPDF for inverse search, enter 
7945 \begin_inset Flex Code
7946 status collapsed
7947
7948 \begin_layout Plain Layout
7949 SumatraPDF -inverse-search "lyxeditor -g %f %l"
7950 \end_layout
7951
7952 \end_inset
7953
7954  in the viewer setting in 
7955 \begin_inset Flex Noun
7956 status collapsed
7957
7958 \begin_layout Plain Layout
7959 Preferences\SpecialChar menuseparator
7960 File Handling\SpecialChar menuseparator
7961 File formats\SpecialChar menuseparator
7962 PDF (pdflatex)
7963 \end_layout
7964
7965 \end_inset
7966
7967 .
7968  If SumatraPDF.exe is not in your command PATH, use its full posix path.
7969  The 
7970 \begin_inset Flex Code
7971 status collapsed
7972
7973 \begin_layout Plain Layout
7974 -g
7975 \end_layout
7976
7977 \end_inset
7978
7979  enables communication via the 
7980 \emph on
7981 lyxsocket
7982 \emph default
7983 .
7984  Again, omit the 
7985 \begin_inset Flex Code
7986 status collapsed
7987
7988 \begin_layout Plain Layout
7989 -g
7990 \end_layout
7991
7992 \end_inset
7993
7994  option if you want to use the 
7995 \emph on
7996 lyxpipe
7997 \emph default
7998 , and be sure to specify the \SpecialChar LyX
7999 Server pipe path in the \SpecialChar LyX
8000  preferences.
8001 \end_layout
8002
8003 \begin_layout Standard
8004 Reverse search is triggered by double-click.
8005 \end_layout
8006
8007 \begin_layout Section
8008 Forward search
8009 \end_layout
8010
8011 \begin_layout Standard
8012 Forward search is, as the name implies, in a sense the 
8013 \begin_inset Quotes eld
8014 \end_inset
8015
8016 opposite
8017 \begin_inset Quotes erd
8018 \end_inset
8019
8020  of reverse search.
8021  It allows you to let the viewer jump to a given position from within \SpecialChar LyX
8022 .
8023  If forward search is set up (as described in what follows), you can put
8024  the cursor anywhere in your \SpecialChar LyX
8025  document, and hit 
8026 \begin_inset Flex Noun
8027 status collapsed
8028
8029 \begin_layout Plain Layout
8030 Navigate\SpecialChar menuseparator
8031 Forward search
8032 \end_layout
8033
8034 \end_inset
8035
8036  (or select 
8037 \begin_inset Flex Noun
8038 status collapsed
8039
8040 \begin_layout Plain Layout
8041 Forward search
8042 \end_layout
8043
8044 \end_inset
8045
8046  in the context menu via right mouse click), and then the viewer will jump
8047  to that position as well.
8048  This implies, of course, that your viewer supports this function.
8049 \end_layout
8050
8051 \begin_layout Standard
8052 To make forward search possible, you first need to provide the generated
8053  output PDF/DVI file with additional information about the \SpecialChar TeX
8054  sources.
8055  This can be done via the methods described in the section 
8056 \begin_inset CommandInset ref
8057 LatexCommand ref
8058 reference "subsec:rev-search"
8059
8060 \end_inset
8061
8062 .
8063 \end_layout
8064
8065 \begin_layout Standard
8066 Additionally, you need to configure \SpecialChar LyX
8067  for using your viewers in 
8068 \begin_inset Flex Noun
8069 status collapsed
8070
8071 \begin_layout Plain Layout
8072 Tools\SpecialChar menuseparator
8073 Preferences\SpecialChar menuseparator
8074 Output\SpecialChar menuseparator
8075 General
8076 \end_layout
8077
8078 \end_inset
8079
8080 .
8081  We provide a range of tested configurations for some viewers, which you
8082  can select from the drop down list.
8083  If none of these configurations suits you, you have to find out and enter
8084  a suitable configuration yourself.
8085  The definition syntax uses the following placeholders:
8086 \end_layout
8087
8088 \begin_layout Itemize
8089 \noindent
8090 \begin_inset Flex Code
8091 status collapsed
8092
8093 \begin_layout Plain Layout
8094 $$n
8095 \end_layout
8096
8097 \end_inset
8098
8099 : row number
8100 \end_layout
8101
8102 \begin_layout Itemize
8103 \noindent
8104 \begin_inset Flex Code
8105 status collapsed
8106
8107 \begin_layout Plain Layout
8108 $$t
8109 \end_layout
8110
8111 \end_inset
8112
8113 : name of the (temporary) exported .tex file (without path)
8114 \end_layout
8115
8116 \begin_layout Itemize
8117 \noindent
8118 \begin_inset Flex Code
8119 status collapsed
8120
8121 \begin_layout Plain Layout
8122 $$f
8123 \end_layout
8124
8125 \end_inset
8126
8127 : name of the (temporary) exported .tex file (including path)
8128 \end_layout
8129
8130 \begin_layout Itemize
8131 \noindent
8132 \begin_inset Flex Code
8133 status collapsed
8134
8135 \begin_layout Plain Layout
8136 $$o
8137 \end_layout
8138
8139 \end_inset
8140
8141 : name of the exported output file (either dvi or pdf, depending on which
8142  one exists in the temporary directory)
8143 \end_layout
8144
8145 \begin_layout Standard
8146 Note that only some of the viewers provide full and usable forward search
8147  functionality out of the box, among them yap, xdvi, okular
8148 \begin_inset Foot
8149 status collapsed
8150
8151 \begin_layout Plain Layout
8152 You might want to set 
8153 \begin_inset Flex Code
8154 status collapsed
8155
8156 \begin_layout Plain Layout
8157 okular --unique
8158 \end_layout
8159
8160 \end_inset
8161
8162  in 
8163 \begin_inset Flex Noun
8164 status collapsed
8165
8166 \begin_layout Plain Layout
8167 Tools\SpecialChar menuseparator
8168 Preferences\SpecialChar menuseparator
8169 File Handling\SpecialChar menuseparator
8170 File
8171 \begin_inset space ~
8172 \end_inset
8173
8174 Formats
8175 \end_layout
8176
8177 \end_inset
8178
8179
8180 \end_layout
8181
8182 \end_inset
8183
8184 , qpdfview, and SumatraPDF
8185 \begin_inset Foot
8186 status collapsed
8187
8188 \begin_layout Plain Layout
8189 SumatraPDF can also use DDE commands through the external program CMCDDE
8190  — downloadable from 
8191 \begin_inset CommandInset href
8192 LatexCommand href
8193 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
8194 literal "false"
8195
8196 \end_inset
8197
8198
8199 \end_layout
8200
8201 \end_inset
8202
8203 .
8204  Others, such as evince
8205 \begin_inset Foot
8206 status collapsed
8207
8208 \begin_layout Plain Layout
8209 Forward search with evince can be achieved by means of third party helper
8210  scripts.
8211  Please refer to 
8212 \begin_inset CommandInset href
8213 LatexCommand href
8214 target "https://wiki.lyx.org/LyX/SyncTeX"
8215 literal "false"
8216
8217 \end_inset
8218
8219  for details.
8220 \end_layout
8221
8222 \end_inset
8223
8224 , require some extra tools in order to use forward search.
8225  While many of the widespread PDF viewers (most notably Adobe Reader) do
8226  not support forward search at all, some other viewers – e.
8227 \begin_inset space \thinspace{}
8228 \end_inset
8229
8230 g.
8231  xpdf – allow at least to reload the document and jump to a specific page
8232  of the file, so you can at least navigate 
8233 \begin_inset Quotes eld
8234 \end_inset
8235
8236 near
8237 \begin_inset Quotes erd
8238 \end_inset
8239
8240 .
8241  This latter functionality is provided by an external call of synctex (see
8242  the predefined example configurations).
8243  
8244 \end_layout
8245
8246 \begin_layout Standard
8247 Forward search works both with DVI and PDF output.
8248  \SpecialChar LyX
8249  simply checks which preview format you have used before (i.
8250 \begin_inset space \thinspace{}
8251 \end_inset
8252
8253 e., which format is already there in the temporary directory) and chooses
8254  the appropriate configuration for the respective format.
8255 \end_layout
8256
8257 \begin_layout Chapter
8258 Special Document Classes
8259 \end_layout
8260
8261 \begin_layout Section
8262 A&A Paper
8263 \end_layout
8264
8265 \begin_layout Standard
8266 by 
8267 \noun on
8268 Peter Sütterlin
8269 \end_layout
8270
8271 \begin_layout Subsection
8272 Introduction
8273 \end_layout
8274
8275 \begin_layout Standard
8276 This section describes how \SpecialChar LyX
8277  can be used to write articles for submission
8278  to the scientific journal 
8279 \emph on
8280 Astronomy and Astrophysics
8281 \emph default
8282  (
8283 \begin_inset Flex URL
8284 status collapsed
8285
8286 \begin_layout Plain Layout
8287
8288 https://www.aanda.org/
8289 \end_layout
8290
8291 \end_inset
8292
8293 ) using Version 5.01 of the document class 
8294 \family typewriter
8295 aa.cls
8296 \family default
8297 .
8298  This package can be downloaded from the ftp site
8299 \end_layout
8300
8301 \begin_layout Standard
8302 \begin_inset VSpace medskip
8303 \end_inset
8304
8305
8306 \end_layout
8307
8308 \begin_layout Standard
8309 \align center
8310 \begin_inset Flex URL
8311 status collapsed
8312
8313 \begin_layout Plain Layout
8314
8315 ftp://ftp.edpsciences.org/pub/aa/readme.html
8316 \end_layout
8317
8318 \end_inset
8319
8320
8321 \end_layout
8322
8323 \begin_layout Standard
8324 \begin_inset VSpace medskip
8325 \end_inset
8326
8327
8328 \end_layout
8329
8330 \begin_layout Standard
8331 A manual comes together with that package, and this text is not meant to
8332  replace the original manual but is merely a short guide in how to realize
8333  the correct form of your paper.
8334  
8335 \end_layout
8336
8337 \begin_layout Standard
8338 Please note that the publisher of the journal was changed from Springer
8339  to EDP Sciences starting January 1, 2001.
8340  That change involved also some slight changes to the style files, namely
8341  the removal of the thesaurus command.
8342  The \SpecialChar LyX
8343  class aa supports the newest version of these style files, V 5.01.
8344  If you have an older version installed, please upgrade.
8345  For compatibility, the old (version 4) layout has been kept as 
8346 \family sans
8347 article (A&A V4)
8348 \family default
8349 .
8350  Please refer to the comments in 
8351 \family typewriter
8352 \SpecialChar LyX
8353 Dir/layouts/aapaper.layout
8354 \family default
8355 .
8356 \end_layout
8357
8358 \begin_layout Subsection
8359 Getting started
8360 \end_layout
8361
8362 \begin_layout Standard
8363 It is recommended you start from the example template distributed with \SpecialChar LyX
8364 .
8365  If you are not using a template, note the following settings:
8366 \end_layout
8367
8368 \begin_layout Itemize
8369 Select 
8370 \family sans
8371 article (A&A)
8372 \family default
8373  in the 
8374 \family sans
8375 Document\SpecialChar menuseparator
8376 Settings
8377 \family default
8378  dialog (OK, that one was obvious).
8379 \end_layout
8380
8381 \begin_layout Itemize
8382 Don't change the option 
8383 \family sans
8384 Page
8385 \begin_inset space ~
8386 \end_inset
8387
8388 style
8389 \family default
8390 : Leave it set to 
8391 \family sans
8392 default
8393 \family default
8394 .
8395  The whole layout is done by the macros, you shouldn't change anything.
8396 \end_layout
8397
8398 \begin_layout Subsection
8399 The header block
8400 \end_layout
8401
8402 \begin_layout Standard
8403 First thing to enter is the header information.
8404  It consists of seven entries, of which some are optional.
8405  They are
8406 \end_layout
8407
8408 \begin_layout Itemize
8409
8410 \family sans
8411 Title
8412 \family default
8413 : [required] 
8414 \end_layout
8415
8416 \begin_layout Itemize
8417
8418 \family sans
8419 Subtitle
8420 \family default
8421 : [optional] 
8422 \end_layout
8423
8424 \begin_layout Itemize
8425
8426 \family sans
8427 Author
8428 \family default
8429 : [required]
8430 \end_layout
8431
8432 \begin_layout Itemize
8433
8434 \family sans
8435 Address
8436 \family default
8437 : [required]
8438 \end_layout
8439
8440 \begin_layout Itemize
8441
8442 \family sans
8443 Offprints
8444 \family default
8445 : [optional] if more than one author: whom to contact for offprint requests.
8446 \end_layout
8447
8448 \begin_layout Itemize
8449
8450 \family sans
8451 Mail
8452 \family default
8453 : [optional] mail address for contacts.
8454 \end_layout
8455
8456 \begin_layout Itemize
8457
8458 \family sans
8459 Date
8460 \family default
8461 : [required].
8462  Suggested format is 
8463 \family typewriter
8464 Received: <date>; Accepted <date> 
8465 \end_layout
8466
8467 \begin_layout Standard
8468 There is no need to issue the 
8469 \family typewriter
8470
8471 \backslash
8472 maketitle
8473 \family default
8474  command, this is done automatically by \SpecialChar LyX
8475  when the header is finished.
8476  Although the order of the single header entries doesn't matter it is advised
8477  to keep the above sequence, just to get the best optics and meets the layout
8478  of the real document.
8479 \end_layout
8480
8481 \begin_layout Standard
8482 If you want to place footnotes in the header block, e.
8483 \begin_inset space \thinspace{}
8484 \end_inset
8485
8486 g.
8487 \begin_inset space \space{}
8488 \end_inset
8489
8490 to state your present address, just use the standard footnote via the menu
8491  
8492 \family sans
8493 Insert\SpecialChar menuseparator
8494 Footnote.
8495
8496 \family default
8497  \SpecialChar LyX
8498  will automagically use the term 
8499 \family typewriter
8500
8501 \backslash
8502 thanks{}
8503 \family default
8504  in that case.
8505 \end_layout
8506
8507 \begin_layout Standard
8508 Under 
8509 \family sans
8510 Edit\SpecialChar menuseparator
8511 Text Style
8512 \family default
8513 , you'll find two insets which are relevant for the titling:
8514 \end_layout
8515
8516 \begin_layout Itemize
8517
8518 \family sans
8519 Institute
8520 \family typewriter
8521  
8522 \family default
8523 to mark corresponding author\SpecialChar breakableslash
8524 institute pairs.
8525  The institutes are numbered sequentially as they appear in the 
8526 \family sans
8527 Address
8528 \family default
8529  field, so you have to put a marker to each author.
8530 \end_layout
8531
8532 \begin_layout Itemize
8533
8534 \family sans
8535 Email
8536 \family default
8537  to supply an email address for fast contact.
8538 \end_layout
8539
8540 \begin_layout Standard
8541 In addition to these topics, the macros use one additional \SpecialChar LaTeX
8542  command that
8543  has no counterpart in \SpecialChar LyX
8544 :
8545 \end_layout
8546
8547 \begin_layout Itemize
8548
8549 \family typewriter
8550
8551 \backslash
8552 and
8553 \family default
8554  to separate different names for more than one author and institute, respectivel
8555 y.
8556 \end_layout
8557
8558 \begin_layout Standard
8559 The appropriate command has to be entered in \SpecialChar LyX
8560  and marked as \SpecialChar LaTeX
8561  code.
8562  See the examples.
8563  
8564 \end_layout
8565
8566 \begin_layout Subsection
8567 The abstract
8568 \end_layout
8569
8570 \begin_layout Standard
8571 The abstract should immediately follow the header block.
8572  With version 5 the abstract environment was changed to a command, and there
8573  is now a restriction to only one paragraph.
8574  In addition, it should contain an entry with the keywords.
8575  This is done via the paragraph style 
8576 \family sans
8577 Keywords
8578 \family default
8579 .
8580  Refer to the example paper.
8581 \end_layout
8582
8583 \begin_layout Subsection
8584 Supported environments
8585 \end_layout
8586
8587 \begin_layout Standard
8588 The A&A paper layout supports the following environments for structuring
8589  your text:
8590 \end_layout
8591
8592 \begin_layout Itemize
8593
8594 \family sans
8595 Standard
8596 \end_layout
8597
8598 \begin_layout Itemize
8599
8600 \family sans
8601 Section
8602 \end_layout
8603
8604 \begin_layout Itemize
8605
8606 \family sans
8607 Subsection
8608 \end_layout
8609
8610 \begin_layout Itemize
8611
8612 \family sans
8613 Subsubsection
8614 \end_layout
8615
8616 \begin_layout Itemize
8617
8618 \family sans
8619 Itemize
8620 \end_layout
8621
8622 \begin_layout Itemize
8623
8624 \family sans
8625 Enumerate
8626 \end_layout
8627
8628 \begin_layout Itemize
8629
8630 \family sans
8631 Description
8632 \end_layout
8633
8634 \begin_layout Itemize
8635
8636 \family sans
8637 Caption
8638 \end_layout
8639
8640 \begin_layout Itemize
8641
8642 \family sans
8643 Abstract
8644 \end_layout
8645
8646 \begin_layout Itemize
8647
8648 \family sans
8649 Acknowledgment
8650 \end_layout
8651
8652 \begin_layout Itemize
8653
8654 \family sans
8655 Bibliography
8656 \end_layout
8657
8658 \begin_layout Itemize
8659
8660 \family sans
8661 \SpecialChar LaTeX
8662
8663 \end_layout
8664
8665 \begin_layout Subsection
8666 Commands not supported by \SpecialChar LyX
8667
8668 \end_layout
8669
8670 \begin_layout Standard
8671 Some commands are not yet supported by the 
8672 \family sans
8673 paper (A&A)
8674 \family default
8675  layout for \SpecialChar LyX
8676 .
8677  Some have already been mentioned.
8678  For the sake of completeness, they are listed all together here:
8679 \end_layout
8680
8681 \begin_layout Itemize
8682
8683 \family typewriter
8684
8685 \backslash
8686 and
8687 \end_layout
8688
8689 \begin_layout Itemize
8690
8691 \family typewriter
8692
8693 \backslash
8694 authorrunning
8695 \end_layout
8696
8697 \begin_layout Itemize
8698
8699 \family typewriter
8700
8701 \backslash
8702 object{}
8703 \end_layout
8704
8705 \begin_layout Itemize
8706
8707 \family typewriter
8708
8709 \backslash
8710 titlerunning{}
8711 \end_layout
8712
8713 \begin_layout Standard
8714 If you want to use any of these commands, you have to enter them yourself.
8715  
8716 \series bold
8717 Do not forget to mark them as \SpecialChar LaTeX
8718  code!
8719 \end_layout
8720
8721 \begin_layout Subsection
8722 Figure and Table Floats
8723 \end_layout
8724
8725 \begin_layout Standard
8726 \SpecialChar LyX
8727  provides support for the necessary float environments 
8728 \family sans
8729 figure, figure*, table
8730 \family default
8731  and 
8732 \family sans
8733 table*
8734 \family default
8735 , therefore we won't tell much about it here.
8736  Refer to the 
8737 \emph on
8738 User's
8739 \begin_inset space ~
8740 \end_inset
8741
8742 Guide
8743 \emph default
8744 .
8745  Just remember that tables should be left-aligned.
8746  For that, select the table and change the alignment in 
8747 \family sans
8748 Edit\SpecialChar menuseparator
8749 Paragraph
8750 \begin_inset space ~
8751 \end_inset
8752
8753 Settings.
8754 \end_layout
8755
8756 \begin_layout Standard
8757 There is only one special thing: the figures with caption besides the figure.
8758  To create such a figure, you have to do the following:
8759 \end_layout
8760
8761 \begin_layout Enumerate
8762 Create a wide figure float: 
8763 \family sans
8764 Insert\SpecialChar menuseparator
8765 Float\SpecialChar menuseparator
8766 Figure
8767 \family default
8768 , then right click in the figure and select 
8769 \family sans
8770 Span
8771 \begin_inset space ~
8772 \end_inset
8773
8774 columns
8775 \family default
8776 .
8777 \end_layout
8778
8779 \begin_layout Enumerate
8780 Enter your caption text.
8781 \end_layout
8782
8783 \begin_layout Enumerate
8784 Press 
8785 \family sans
8786 Return
8787 \family default
8788  to move the cursor above the caption.
8789 \end_layout
8790
8791 \begin_layout Enumerate
8792 Insert your figure
8793 \end_layout
8794
8795 \begin_layout Enumerate
8796 Position the cursor behind the figure and insert a horizontal fill: 
8797 \family sans
8798 Insert\SpecialChar menuseparator
8799 Special
8800 \begin_inset space ~
8801 \end_inset
8802
8803 Character\SpecialChar menuseparator
8804 Horizontal
8805 \begin_inset space ~
8806 \end_inset
8807
8808 Fill
8809 \family default
8810 .
8811 \end_layout
8812
8813 \begin_layout Enumerate
8814 Switch to \SpecialChar LaTeX
8815  mode: 
8816 \family sans
8817 M-c
8818 \begin_inset space ~
8819 \end_inset
8820
8821 t
8822 \family default
8823 .
8824 \end_layout
8825
8826 \begin_layout Enumerate
8827 Enter 
8828 \family typewriter
8829
8830 \backslash
8831 parbox[b]{55mm}{
8832 \family default
8833 .
8834  
8835 \series bold
8836 Do not close the brace!
8837 \end_layout
8838
8839 \begin_layout Enumerate
8840 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
8841  mode and insert
8842  the closing brace: 
8843 \family sans
8844 M-c
8845 \begin_inset space ~
8846 \end_inset
8847
8848 t
8849 \family default
8850  
8851 \family typewriter
8852 }
8853 \family default
8854 .
8855 \end_layout
8856
8857 \begin_layout Standard
8858 Also, refer to the figures in the example paper.
8859 \end_layout
8860
8861 \begin_layout Subsection
8862 Referee layout
8863 \end_layout
8864
8865 \begin_layout Standard
8866 For submission, the paper has to be formated in a special double-spacing
8867  layout.
8868  For this purpose, you have to give the option 
8869 \family typewriter
8870 referee
8871 \family default
8872  to the document class.
8873  This must be done using the custom class options field in the 
8874 \family sans
8875 Document\SpecialChar menuseparator
8876 Settings
8877 \family default
8878  dialog.
8879  Just enter the string 
8880 \family typewriter
8881 referee
8882 \family default
8883  there.
8884 \end_layout
8885
8886 \begin_layout Subsection
8887 The example paper
8888 \end_layout
8889
8890 \begin_layout Standard
8891 The 
8892 \family sans
8893 Examples
8894 \family default
8895  directory contains an example paper written with \SpecialChar LyX
8896 .
8897  It is the example paper from the original macro package, translated to
8898  \SpecialChar LyX
8899 .
8900  Use it for inspiration, and compare the original \SpecialChar LaTeX
8901  code with \SpecialChar LyX
8902  way of writing.
8903 \end_layout
8904
8905 \begin_layout Section
8906 AAS\SpecialChar TeX
8907
8908 \end_layout
8909
8910 \begin_layout Standard
8911 by 
8912 \noun on
8913 Mike Ressler
8914 \end_layout
8915
8916 \begin_layout Subsection
8917 Introduction
8918 \end_layout
8919
8920 \begin_layout Standard
8921 AAS\SpecialChar TeX
8922  is a set of macros produced by the American Astronomical Society to
8923  facilitate electronic manuscript submission to the three journals they
8924  publish: the Astrophysical Journal (including the Letters and Supplement),
8925  the Astronomical Journal, and the Publications of the Astronomical Society
8926  of the Pacific.
8927  \SpecialChar LyX
8928  has proven to be an excellent tool for generating these documents, especially
8929  given its equation, citation, and figure handling capabilities.
8930  \SpecialChar LyX
8931  requires version 5.0 (or higher) of these macros; preferably 6.0, which
8932  is the version described here, or higher.
8933  Versions prior to 5.0 are intended for use with \SpecialChar LaTeX
8934 2.09 and are fundamentally
8935  incompatible with \SpecialChar LyX
8936 .
8937  The AAS\SpecialChar TeX
8938  package may be downloaded from the AAS\SpecialChar TeX
8939  Web site
8940 \end_layout
8941
8942 \begin_layout Standard
8943 \begin_inset VSpace medskip
8944 \end_inset
8945
8946
8947 \end_layout
8948
8949 \begin_layout Standard
8950 \align center
8951 \begin_inset Flex URL
8952 status collapsed
8953
8954 \begin_layout Plain Layout
8955
8956 https://aas.org/aastex/aastex-downloads
8957 \end_layout
8958
8959 \end_inset
8960
8961
8962 \end_layout
8963
8964 \begin_layout Standard
8965 \begin_inset VSpace medskip
8966 \end_inset
8967
8968
8969 \end_layout
8970
8971 \begin_layout Standard
8972 A complete user guide is contained in that package and you should familiarize
8973  yourself with it thoroughly before embarking on writing a paper in \SpecialChar LyX
8974 .
8975  \SpecialChar LyX
8976  will not reduce the need to figure out all the AAS\SpecialChar TeX
8977  commands, it will only
8978  reduce the drudgery of typing everything in.
8979  It is your responsibility to ensure that the final exported \SpecialChar LaTeX
8980  document conforms
8981  completely to the requirements of the journal to which you are submitting
8982  your paper.
8983 \end_layout
8984
8985 \begin_layout Subsection
8986 Starting a New Paper
8987 \end_layout
8988
8989 \begin_layout Standard
8990 I strongly suggest that you start with the AAS\SpecialChar TeX
8991  template file.
8992  Click on 
8993 \family sans
8994 File\SpecialChar menuseparator
8995 New from
8996 \family default
8997  
8998 \family sans
8999 Template
9000 \family default
9001 , enter the new file name, then choose the 
9002 \family typewriter
9003 aastex6.lyx
9004 \family default
9005  template.
9006  This will show the most common fields found in a manuscript.
9007  Simply overwrite the existing text (including the brackets, 
9008 \family typewriter
9009 <>
9010 \family default
9011 ) with the correct information.
9012  Many of the AAS\SpecialChar TeX
9013  commands and environments can be implemented directly in
9014  \SpecialChar LyX
9015 , but some cannot.
9016  For commands such as these, the \SpecialChar LaTeX
9017  code must be entered directly and marked
9018  as such.
9019  Such commands are referred to as \SpecialChar TeX
9020  code, or Evil Red Text.
9021  I tried to minimize the amount of \SpecialChar TeX
9022  code needed in an AAS\SpecialChar TeX
9023  document.
9024 \end_layout
9025
9026 \begin_layout Subsection
9027 Finishing Your Paper
9028 \end_layout
9029
9030 \begin_layout Standard
9031 When the paper is finished to your satisfaction and previews/prints correctly,
9032  there are a few 
9033 \begin_inset Quotes eld
9034 \end_inset
9035
9036 postprocessing
9037 \begin_inset Quotes erd
9038 \end_inset
9039
9040  actions which need to be done before you submit it to the journals.
9041  
9042 \end_layout
9043
9044 \begin_layout Enumerate
9045 Export your paper as a \SpecialChar LaTeX
9046  file (
9047 \family sans
9048 File\SpecialChar menuseparator
9049 Export\SpecialChar menuseparator
9050 \SpecialChar LaTeX
9051
9052 \family default
9053 ).
9054  
9055 \end_layout
9056
9057 \begin_layout Enumerate
9058 Edit the resulting 
9059 \family typewriter
9060 .tex
9061 \family default
9062  file with your favorite text editor
9063 \end_layout
9064
9065 \begin_deeper
9066 \begin_layout Enumerate
9067 remove the comment lines before the 
9068 \family typewriter
9069
9070 \backslash
9071 documentclass
9072 \family default
9073  command
9074 \end_layout
9075
9076 \begin_layout Enumerate
9077 remove the 
9078 \family typewriter
9079
9080 \backslash
9081 usepackage...{fontenc}
9082 \family default
9083  line if it appears (usually just after 
9084 \family typewriter
9085
9086 \backslash
9087 documentclass
9088 \family default
9089 }; also remove the 
9090 \family typewriter
9091
9092 \backslash
9093 secnumdepth
9094 \family default
9095  line if it appears.
9096 \end_layout
9097
9098 \begin_layout Enumerate
9099 remove everything between (and including) the 
9100 \family typewriter
9101
9102 \backslash
9103 makeatletter
9104 \family default
9105  and 
9106 \family typewriter
9107
9108 \backslash
9109 makeatother
9110 \family default
9111  commands, except for any commands you specifically put into the \SpecialChar LaTeX
9112  preamble
9113  (which should appear immediately after the 
9114 \begin_inset Quotes eld
9115 \end_inset
9116
9117 User specified \SpecialChar LaTeX
9118  commands
9119 \begin_inset Quotes erd
9120 \end_inset
9121
9122  comment in the 
9123 \family typewriter
9124 .tex
9125 \family default
9126  file).
9127 \end_layout
9128
9129 \end_deeper
9130 \begin_layout Enumerate
9131 Run the resulting file through \SpecialChar LaTeX
9132  to make sure it still processes correctly.
9133 \end_layout
9134
9135 \begin_layout Enumerate
9136 Reread the journal requirements to make sure your filenames and formats
9137  are correct.
9138 \end_layout
9139
9140 \begin_layout Enumerate
9141 Submit it.
9142 \end_layout
9143
9144 \begin_layout Subsection
9145 Comments On Specific Commands
9146 \end_layout
9147
9148 \begin_layout Standard
9149 I will not describe the detailed usage of the individual AAS\SpecialChar TeX
9150  commands: the
9151  AAS\SpecialChar TeX
9152  User Guide (
9153 \family typewriter
9154 aasguide.tex
9155 \family default
9156 ) gives a good description of each.
9157  Thus it's probably easiest for me to go down the list as found in the guide
9158  and offer comments where necessary.
9159  So let's begin \SpecialChar ldots
9160
9161 \end_layout
9162
9163 \begin_layout Subsubsection
9164 Things that work as expected
9165 \end_layout
9166
9167 \begin_layout Standard
9168 Because they work as you might expect, I simply list them and the section
9169  they are found in: 
9170 \family typewriter
9171
9172 \backslash
9173 documentclass
9174 \family default
9175  (2.1.1), 
9176 \family typewriter
9177
9178 \backslash
9179 begin{document}
9180 \family default
9181  (2.2), 
9182 \family typewriter
9183
9184 \backslash
9185 title
9186 \family default
9187  (2.3), 
9188 \family typewriter
9189
9190 \backslash
9191 author
9192 \family default
9193  (2.3), 
9194 \family typewriter
9195
9196 \backslash
9197 affil
9198 \family default
9199  (2.3), 
9200 \family typewriter
9201
9202 \backslash
9203 abstract
9204 \family default
9205  (2.4), 
9206 \family typewriter
9207
9208 \backslash
9209 keywords
9210 \family default
9211  (2.5), 
9212 \family typewriter
9213
9214 \backslash
9215 section
9216 \family default
9217  (2.7), 
9218 \family typewriter
9219
9220 \backslash
9221 subsection
9222 \family default
9223  (2.7), 
9224 \family typewriter
9225
9226 \backslash
9227 subsubsection
9228 \family default
9229  (2.7), 
9230 \family typewriter
9231
9232 \backslash
9233 paragraph
9234 \family default
9235  (2.7), 
9236 \family typewriter
9237
9238 \backslash
9239 facility
9240 \family default
9241  (2.10), 
9242 \family typewriter
9243
9244 \backslash
9245 begin{displaymath}
9246 \family default
9247  (2.12), 
9248 \family typewriter
9249
9250 \backslash
9251 begin{equation}
9252 \family default
9253  (2.12), 
9254 \family typewriter
9255
9256 \backslash
9257 begin{eqnarray}
9258 \family default
9259  (2.12), 
9260 \family typewriter
9261
9262 \backslash
9263 begin{mathletters}
9264 \family default
9265  (2.12), 
9266 \family typewriter
9267
9268 \backslash
9269 begin{thebibliography}
9270 \family default
9271  (2.13.1), 
9272 \family typewriter
9273
9274 \backslash
9275 bibitem
9276 \family default
9277  (2.13.2), all the cite commands and their variations (2.13.2), the generic
9278  graphicx figure commands (2.14.1), 
9279 \family typewriter
9280
9281 \backslash
9282 begin{table}
9283 \family default
9284  (2.15.4), 
9285 \family typewriter
9286
9287 \backslash
9288 begin{tabular}
9289 \family default
9290  (2.15.4), 
9291 \family typewriter
9292
9293 \backslash
9294 caption
9295 \family default
9296  (2.15.4), 
9297 \family typewriter
9298
9299 \backslash
9300 label
9301 \family default
9302  (2.15.4, amongst other places), 
9303 \family typewriter
9304
9305 \backslash
9306 tablerefs
9307 \family default
9308  (2.15.5), 
9309 \family typewriter
9310
9311 \backslash
9312 tablecomments
9313 \family default
9314  (2.15.5), 
9315 \family typewriter
9316
9317 \backslash
9318 url
9319 \family default
9320  (2.17.4), 
9321 \family typewriter
9322
9323 \backslash
9324 end{document}
9325 \family default
9326  (2.18).
9327 \end_layout
9328
9329 \begin_layout Standard
9330 The following style options also work correctly: 
9331 \family typewriter
9332 longabstract
9333 \family default
9334  (2.4), 
9335 \family typewriter
9336 preprint
9337 \family default
9338  (3.2.1), 
9339 \family typewriter
9340 preprint2
9341 \family default
9342  (3.2.2), 
9343 \family typewriter
9344 eqsecnum
9345 \family default
9346  (3.3), 
9347 \family typewriter
9348 flushrt
9349 \family default
9350  (3.4).
9351  Simply put them in the 
9352 \family sans
9353 Options
9354 \family default
9355  box in 
9356 \family sans
9357 Layout\SpecialChar menuseparator
9358 Document
9359 \family default
9360 .
9361 \end_layout
9362
9363 \begin_layout Subsubsection
9364 Things that work, but require more comment
9365 \end_layout
9366
9367 \begin_layout Standard
9368 The following items work, but require a little more discussion:
9369 \end_layout
9370
9371 \begin_layout Itemize
9372 These items are reserved for use by the journal editors, but you can put
9373  them into the \SpecialChar LaTeX
9374  preamble if you feel compelled to do so: 
9375 \family typewriter
9376
9377 \backslash
9378 received
9379 \family default
9380
9381 \family typewriter
9382
9383 \backslash
9384 revised
9385 \family default
9386
9387 \family typewriter
9388
9389 \backslash
9390 accepted
9391 \family default
9392
9393 \family typewriter
9394
9395 \backslash
9396 ccc
9397 \family default
9398
9399 \family typewriter
9400
9401 \backslash
9402 cpright
9403 \family default
9404  (all from 2.1.3)
9405 \end_layout
9406
9407 \begin_layout Itemize
9408 These items may be placed in the \SpecialChar LaTeX
9409  preamble, and are included as blanks in
9410  the template file: 
9411 \family typewriter
9412
9413 \backslash
9414 slugcomment
9415 \family default
9416  (2.1.4), 
9417 \family typewriter
9418
9419 \backslash
9420 shorttitle
9421 \family default
9422  (2.1.5), 
9423 \family typewriter
9424
9425 \backslash
9426 shortauthors
9427 \family default
9428  (2.1.5)
9429 \end_layout
9430
9431 \begin_layout Itemize
9432
9433 \family typewriter
9434
9435 \backslash
9436 email
9437 \family default
9438  (2.3) – can only be used 
9439 \begin_inset Quotes eld
9440 \end_inset
9441
9442 standalone
9443 \begin_inset Quotes erd
9444 \end_inset
9445
9446 , not in the middle of a paragraph.
9447  Use \SpecialChar TeX
9448  code if you need to embed it.
9449 \end_layout
9450
9451 \begin_layout Itemize
9452
9453 \family typewriter
9454
9455 \backslash
9456 and
9457 \family default
9458  (2.3) – will have extra {} after it.
9459  This should not cause an error.
9460 \end_layout
9461
9462 \begin_layout Itemize
9463
9464 \family typewriter
9465
9466 \backslash
9467 notetoeditor
9468 \family default
9469  (2.6) – can only be used 
9470 \begin_inset Quotes eld
9471 \end_inset
9472
9473 standalone
9474 \begin_inset Quotes erd
9475 \end_inset
9476
9477 , not in the middle of a paragraph.
9478  Use \SpecialChar TeX
9479  code if you need to embed it.
9480 \end_layout
9481
9482 \begin_layout Itemize
9483
9484 \family typewriter
9485
9486 \backslash
9487 placetable
9488 \family default
9489  (2.8) – can't insert a cross-reference tag, you must type the tag name by
9490  hand
9491 \end_layout
9492
9493 \begin_layout Itemize
9494
9495 \family typewriter
9496
9497 \backslash
9498 placefigure
9499 \family default
9500  (2.8) – same as for 
9501 \family typewriter
9502
9503 \backslash
9504 placetable
9505 \end_layout
9506
9507 \begin_layout Itemize
9508
9509 \family typewriter
9510
9511 \backslash
9512 acknowledgements
9513 \family default
9514  (2.9) – will have extra {} after it.
9515  This should not cause an error.
9516 \end_layout
9517
9518 \begin_layout Itemize
9519
9520 \family typewriter
9521
9522 \backslash
9523 appendix
9524 \family default
9525  (2.11) – will have extra {} after it.
9526  This should not cause an error.
9527 \end_layout
9528
9529 \begin_layout Itemize
9530
9531 \family typewriter
9532
9533 \backslash
9534 figcaption
9535 \family default
9536  (2.14.2) – you can insert an optional filename argument by placing the cursor
9537  at the beginning of the text and selecting 
9538 \family sans
9539 Insert\SpecialChar menuseparator
9540 Short Title
9541 \family default
9542 .
9543  
9544 \begin_inset Quotes eld
9545 \end_inset
9546
9547 Short Title
9548 \begin_inset Quotes erd
9549 \end_inset
9550
9551  inserts an optional argument of the type needed by 
9552 \family typewriter
9553
9554 \backslash
9555 figcaption
9556 \family default
9557 .
9558  Hopefully it will be renamed someday.
9559 \end_layout
9560
9561 \begin_layout Itemize
9562
9563 \family typewriter
9564
9565 \backslash
9566 objectname
9567 \family default
9568  (2.17.1) – same as 
9569 \family typewriter
9570
9571 \backslash
9572 figcaption
9573 \family default
9574  for the catalog ID optional parameter
9575 \end_layout
9576
9577 \begin_layout Itemize
9578
9579 \family typewriter
9580
9581 \backslash
9582 dataset
9583 \family default
9584  (2.17.1) – same as 
9585 \family typewriter
9586
9587 \backslash
9588 figcaption
9589 \family default
9590  for the catalog ID optional parameter
9591 \end_layout
9592
9593 \begin_layout Subsubsection
9594 Things not implemented, use \SpecialChar TeX
9595  code
9596 \end_layout
9597
9598 \begin_layout Standard
9599
9600 \family typewriter
9601
9602 \backslash
9603 eqnum
9604 \family default
9605  (2.12), 
9606 \family typewriter
9607
9608 \backslash
9609 setcounter{equation}
9610 \family default
9611  (2.12), Journal name abbreviations (2.13.4), 
9612 \family typewriter
9613
9614 \backslash
9615 figurenum
9616 \family default
9617  (2.14.1), 
9618 \family typewriter
9619
9620 \backslash
9621 epsscale
9622 \family default
9623  (2.14.1), 
9624 \family typewriter
9625
9626 \backslash
9627 plotone
9628 \family default
9629  (2.14.1), 
9630 \family typewriter
9631
9632 \backslash
9633 plottwo
9634 \family default
9635  (2.14.1), 
9636 \family typewriter
9637
9638 \backslash
9639 tablenum
9640 \family default
9641  (2.15.4), 
9642 \family typewriter
9643
9644 \backslash
9645 tableline
9646 \family default
9647  (2.15.4, insert it as the first element in the lefthand cell after where
9648  you want it.
9649  Don't use any of \SpecialChar LyX
9650 's rules in the table), 
9651 \family typewriter
9652
9653 \backslash
9654 tablenotemark
9655 \family default
9656  (2.15.5), 
9657 \family typewriter
9658
9659 \backslash
9660 tablenotetext
9661 \family default
9662  (2.15.5), much of Misc (2.17, except 
9663 \family typewriter
9664
9665 \backslash
9666 objectname
9667 \family default
9668
9669 \family typewriter
9670
9671 \backslash
9672 dataset
9673 \family default
9674
9675 \family typewriter
9676
9677 \backslash
9678 url
9679 \family default
9680 , and 
9681 \family typewriter
9682
9683 \backslash
9684 email
9685 \family default
9686 ; see above), 
9687 \family typewriter
9688
9689 \backslash
9690 singlespace
9691 \family default
9692  (3.1), 
9693 \family typewriter
9694
9695 \backslash
9696 doublespace
9697 \family default
9698  (3.1), 
9699 \family typewriter
9700
9701 \backslash
9702 onecolumn
9703 \family default
9704  (3.2), 
9705 \family typewriter
9706
9707 \backslash
9708 twocolumn
9709 \family default
9710  (3.2)
9711 \end_layout
9712
9713 \begin_layout Subsubsection
9714 Things that cannot be implemented
9715 \end_layout
9716
9717 \begin_layout Standard
9718 \SpecialChar ldots
9719  at least in any meaningful sort of way, so I suggest ignoring them.
9720  They are the references environment (2.13.3), and the deluxetable environment
9721  (2.15).
9722  If you really, really need to use deluxetable, I suggest editing it in
9723  a separate file with a text editor, then using 
9724 \family sans
9725 Insert\SpecialChar menuseparator
9726 Child
9727 \begin_inset space ~
9728 \end_inset
9729
9730 Document
9731 \family default
9732  to include it in your \SpecialChar LyX
9733  document.
9734  See the 
9735 \family typewriter
9736 aas_sample.lyx
9737 \family default
9738  file to see an example of this.
9739 \end_layout
9740
9741 \begin_layout Subsection
9742 FAQs, Tips, Tricks, and Other Ruminations
9743 \end_layout
9744
9745 \begin_layout Subsubsection
9746 Getting \SpecialChar LyX
9747  and AAS\SpecialChar TeX
9748  to cooperate
9749 \end_layout
9750
9751 \begin_layout Standard
9752 It can be a bit tricky to get \SpecialChar LyX
9753  to recognize a new layout and document class.
9754  When all else fails, do this:
9755 \end_layout
9756
9757 \begin_layout Enumerate
9758 Make certain that \SpecialChar LaTeX
9759  can find AAS\SpecialChar TeX
9760 .
9761  Copy sample.tex (and perhaps table.tex) from the AAS\SpecialChar TeX
9762  distribution into a
9763  directory completely unrelated to \SpecialChar LaTeX
9764  or AAS\SpecialChar TeX
9765  and run \SpecialChar LaTeX
9766  on 
9767 \family typewriter
9768 sample.tex
9769 \family default
9770 .
9771 \end_layout
9772
9773 \begin_layout Enumerate
9774 Make certain that 
9775 \family typewriter
9776 aastex.layout
9777 \family default
9778  appears in \SpecialChar LyX
9779 's 
9780 \family typewriter
9781 layouts
9782 \family default
9783  folder
9784 \end_layout
9785
9786 \begin_layout Enumerate
9787 Rerun 
9788 \family sans
9789 Tools\SpecialChar menuseparator
9790 Reconfigure
9791 \family default
9792  in \SpecialChar LyX
9793 , then restart \SpecialChar LyX
9794 .
9795 \end_layout
9796
9797 \begin_layout Enumerate
9798 Open a regular new file, not from a template.
9799  Does AAS\SpecialChar TeX
9800  appear in the class list in 
9801 \family sans
9802 Document\SpecialChar menuseparator
9803 Settings
9804 \family default
9805 ?
9806 \end_layout
9807
9808 \begin_layout Standard
9809 If you get a warning from an existing AAS\SpecialChar TeX
9810  document about not being able
9811  to find the AAS\SpecialChar TeX
9812  layout or a message about 
9813 \begin_inset Quotes eld
9814 \end_inset
9815
9816 You should not mix title layouts with normal ones
9817 \begin_inset Quotes erd
9818 \end_inset
9819
9820 , things haven't been installed correctly.
9821 \end_layout
9822
9823 \begin_layout Subsubsection
9824 \SpecialChar LaTeX
9825  error processing a table 
9826 \end_layout
9827
9828 \begin_layout Standard
9829 \SpecialChar LyX
9830 , by default, attempts to center the table caption/title.
9831  This seems to produce a bad interaction in AAS\SpecialChar TeX
9832  so you should click somewhere
9833  in the caption/title, then select 
9834 \family sans
9835 Edit\SpecialChar menuseparator
9836 Paragraph
9837 \begin_inset space ~
9838 \end_inset
9839
9840 Settings
9841 \family default
9842 , then set the 
9843 \family sans
9844 Alignment
9845 \family default
9846  to 
9847 \family sans
9848 Block
9849 \family default
9850 .
9851  This took care of it for me.
9852 \end_layout
9853
9854 \begin_layout Subsubsection
9855 References
9856 \end_layout
9857
9858 \begin_layout Standard
9859 A couple of things: 1) I have noticed some funny spacing in the reference
9860  entries in the text.
9861  When you enter the bibliography item data, make sure their is 
9862 \emph on
9863 no
9864 \emph default
9865  space between the last author and the parenthesis setting off the year;
9866  
9867 \emph on
9868 e.
9869 \begin_inset space \thinspace{}
9870 \end_inset
9871
9872 g.
9873 \begin_inset space \space{}
9874 \end_inset
9875
9876
9877 \emph default
9878 type 
9879 \family typewriter
9880 Ressler(1992)
9881 \family default
9882 , not 
9883 \family typewriter
9884 Ressler (1992)
9885 \family default
9886 .
9887  2) Entering the references at all is not obvious.
9888  The easiest thing is to start typing your first reference at the end of
9889  the document, then mark it as type 
9890 \family sans
9891 References
9892 \family default
9893 .
9894  That will put a small gray box in front of what you just typed.
9895  Click on the box to fill in the rest of the information.
9896  For new references, go to the end of an existing reference and press return.
9897  That will create a new line with its own box, etc.
9898 \end_layout
9899
9900 \begin_layout Subsubsection
9901 Including EPS files
9902 \end_layout
9903
9904 \begin_layout Standard
9905 Even though AAS\SpecialChar TeX
9906  provides its own figure commands (
9907 \family typewriter
9908
9909 \backslash
9910 plotone
9911 \family default
9912 , for example), I much prefer \SpecialChar LaTeX
9913 's standard figure commands (with the default
9914  graphicx).
9915  You can insert the 
9916 \family typewriter
9917
9918 \backslash
9919 plotone
9920 \family default
9921 , etc.
9922 \begin_inset space ~
9923 \end_inset
9924
9925 commands as \SpecialChar TeX
9926  code into a Figure Float box if you desire, but I never have
9927  much luck getting the layout right.
9928  With the standard graphics, \SpecialChar LyX
9929  will insert a 
9930 \family typewriter
9931
9932 \backslash
9933 usepackage{graphicx}
9934 \family default
9935  command into the \SpecialChar LaTeX
9936  preamble and handle the figures in the standard \SpecialChar LaTeX2e
9937  way,
9938  interspersing the figures in the text.
9939  I believe ApJ accepts figures exactly this way now; AJ might still use
9940  the 
9941 \begin_inset Quotes eld
9942 \end_inset
9943
9944 stack everything at the end
9945 \begin_inset Quotes erd
9946 \end_inset
9947
9948  technique.
9949 \end_layout
9950
9951 \begin_layout Subsubsection
9952 Things I could have done, but didn't
9953 \end_layout
9954
9955 \begin_layout Standard
9956 There are a few 
9957 \begin_inset Quotes eld
9958 \end_inset
9959
9960 pretty
9961 \begin_inset Quotes erd
9962 \end_inset
9963
9964  things I could have implemented, but chose not to.
9965  For instance, I saw no point in double-spacing the text in the \SpecialChar LyX
9966  window,
9967  even though it is double-spaced in the paper manuscript.
9968  Also, I chose not to make separate layouts for the preprint and preprint2
9969  styles.
9970  Since I assume you will spend most of your time in the plain manuscript
9971  mode anyway, I decided not to chew up more disk space with this.
9972  
9973 \end_layout
9974
9975 \begin_layout Subsection
9976 Final Caveat
9977 \end_layout
9978
9979 \begin_layout Standard
9980 Your mileage may vary.
9981  I've now had papers published by both ApJ and AJ that have had 98% of the
9982  effort done in \SpecialChar LyX
9983 ; the last 2% was the \SpecialChar LaTeX
9984  post-processing and a few cleanups.
9985  I have had no trouble with the submission process, and I'm sure the journals
9986  were never aware that there might be a difference.
9987  So, go forth and publish!
9988 \end_layout
9989
9990 \begin_layout Section
9991 AMS \SpecialChar LaTeX
9992
9993 \end_layout
9994
9995 \begin_layout Standard
9996 by 
9997 \noun on
9998 David Johnson
9999 \noun default
10000 ; updated by 
10001 \noun on
10002 Richard Heck
10003 \end_layout
10004
10005 \begin_layout Standard
10006 \begin_inset VSpace bigskip
10007 \end_inset
10008
10009
10010 \end_layout
10011
10012 \begin_layout Standard
10013 \noindent
10014 The AMS \SpecialChar LaTeX
10015  layouts are set up to conform to suggested styles for mathematical
10016  papers to be submitted to American Mathematical Society publications.
10017  The layouts are not tailored to a specific journal, but easily can be.
10018  You should refer to the AMS documentation for specific instructions for
10019  each journal (usually it will entail only changing a single line in the
10020  \SpecialChar TeX
10021  output).
10022  That documentation is available on the Web at 
10023 \begin_inset Flex URL
10024 status open
10025
10026 \begin_layout Plain Layout
10027
10028 http://www.ams.org
10029 \end_layout
10030
10031 \end_inset
10032
10033  or by ftp at 
10034 \begin_inset Flex URL
10035 status open
10036
10037 \begin_layout Plain Layout
10038
10039 ftp://ftp.ams.org/pub/tex/amslatex/
10040 \end_layout
10041
10042 \end_inset
10043
10044 .
10045  These layouts are appropriate, and useful, for any mathematical writing.
10046  
10047 \end_layout
10048
10049 \begin_layout Standard
10050 There are two basic AMS \SpecialChar LaTeX
10051  layouts: 
10052 \end_layout
10053
10054 \begin_layout Itemize
10055 amsart: The standard AMS article format.
10056 \end_layout
10057
10058 \begin_layout Itemize
10059 amsbook: the standard AMS book (really, monograph) format.
10060  
10061 \end_layout
10062
10063 \begin_layout Standard
10064 The layouts themselves contain only the minimum necessary to use the AMS
10065  classes.
10066  They do not, in particular, contain any of the `theorem' environments used
10067  for setting theorems, lemmas, and the like.
10068  These are contained, instead, in the 
10069 \begin_inset Flex Code
10070 status collapsed
10071
10072 \begin_layout Plain Layout
10073 Theorems (AMS)
10074 \end_layout
10075
10076 \end_inset
10077
10078  module, which is loaded by default when you select one of the AMS classes.
10079  (It can also be used with other classes and can be removed, if you would
10080  rather use something else.) Less commonly used environments are in the 
10081 \begin_inset Flex Code
10082 status collapsed
10083
10084 \begin_layout Plain Layout
10085 Theorems (AMS-Extended)
10086 \end_layout
10087
10088 \end_inset
10089
10090  module, which must be loaded manually.
10091 \end_layout
10092
10093 \begin_layout Standard
10094 By default, theorems and the like are numbered consecutively throughout
10095  the document, but this may be modified by loading the module 
10096 \begin_inset Flex Code
10097 status collapsed
10098
10099 \begin_layout Plain Layout
10100 Theorems (Order by Section)
10101 \end_layout
10102
10103 \end_inset
10104
10105  or, if you are using 
10106 \begin_inset Flex Code
10107 status collapsed
10108
10109 \begin_layout Plain Layout
10110 book (AMS)
10111 \end_layout
10112
10113 \end_inset
10114
10115 , the module 
10116 \begin_inset Flex Code
10117 status collapsed
10118
10119 \begin_layout Plain Layout
10120 Theorems (Order by Chapter)
10121 \end_layout
10122
10123 \end_inset
10124
10125 .
10126  These will number the results as 
10127 \begin_inset Formula $n.m$
10128 \end_inset
10129
10130 , where the first number refers to the section (or chapter) and the second
10131  refers to the total number of results so far in that section (or chapter).
10132  Many environments are also available unnumbered.
10133  These are indicated by an asterisk at the end.
10134  If you happen to want 
10135 \emph on
10136 only
10137 \emph default
10138  unnumbered results, the module 
10139 \begin_inset Flex Code
10140 status collapsed
10141
10142 \begin_layout Plain Layout
10143 Theorems (Starred)
10144 \end_layout
10145
10146 \end_inset
10147
10148  provides that option.
10149 \end_layout
10150
10151 \begin_layout Standard
10152 Note that these modules do not 
10153 \emph on
10154 have
10155 \emph default
10156  to be used with the AMS classes.
10157  It is perfectly possible to use the 
10158 \begin_inset Flex Code
10159 status collapsed
10160
10161 \begin_layout Plain Layout
10162 Theorems (AMS)
10163 \end_layout
10164
10165 \end_inset
10166
10167  module, and the others mentioned, with other classes, such as 
10168 \begin_inset Flex Code
10169 status collapsed
10170
10171 \begin_layout Plain Layout
10172 article
10173 \end_layout
10174
10175 \end_inset
10176
10177
10178 \begin_inset Flex Code
10179 status collapsed
10180
10181 \begin_layout Plain Layout
10182 report
10183 \end_layout
10184
10185 \end_inset
10186
10187
10188 \begin_inset Flex Code
10189 status collapsed
10190
10191 \begin_layout Plain Layout
10192 book (KOMA-script)
10193 \end_layout
10194
10195 \end_inset
10196
10197 , and so forth.
10198 \end_layout
10199
10200 \begin_layout Subsection
10201 What these layouts provide
10202 \end_layout
10203
10204 \begin_layout Standard
10205 There is a long list of included environments provided by these layouts.
10206  In AMS-\SpecialChar LaTeX
10207 , there is, in fact, an opportunity to define an unlimited variety
10208  of `theorem' environments.
10209  However, the AMS recommends the environments that are available in \SpecialChar LyX
10210 .
10211  
10212 \end_layout
10213
10214 \begin_layout Standard
10215 The following environments—as well as the standard environments, such as
10216  
10217 \begin_inset Flex Noun
10218 status collapsed
10219
10220 \begin_layout Plain Layout
10221 section
10222 \end_layout
10223
10224 \end_inset
10225
10226
10227 \begin_inset Flex Noun
10228 status collapsed
10229
10230 \begin_layout Plain Layout
10231 bibliography
10232 \end_layout
10233
10234 \end_inset
10235
10236
10237 \begin_inset Flex Noun
10238 status collapsed
10239
10240 \begin_layout Plain Layout
10241 title
10242 \end_layout
10243
10244 \end_inset
10245
10246
10247 \begin_inset Flex Noun
10248 status collapsed
10249
10250 \begin_layout Plain Layout
10251 author
10252 \end_layout
10253
10254 \end_inset
10255
10256 , and 
10257 \begin_inset Flex Noun
10258 status collapsed
10259
10260 \begin_layout Plain Layout
10261 date
10262 \end_layout
10263
10264 \end_inset
10265
10266 —are provided by 
10267 \begin_inset Flex Code
10268 status collapsed
10269
10270 \begin_layout Plain Layout
10271 article (AMS)
10272 \end_layout
10273
10274 \end_inset
10275
10276  and 
10277 \begin_inset Flex Code
10278 status collapsed
10279
10280 \begin_layout Plain Layout
10281 book (AMS)
10282 \end_layout
10283
10284 \end_inset
10285
10286 :
10287 \end_layout
10288
10289 \begin_layout Description
10290 Address This should be the author's permanent address.
10291 \end_layout
10292
10293 \begin_layout Description
10294 Current
10295 \begin_inset space ~
10296 \end_inset
10297
10298 Address This should be the author's temporary address at the time of submission,
10299  if different from the Address.
10300 \end_layout
10301
10302 \begin_layout Description
10303 Email Author's e-mail address
10304 \end_layout
10305
10306 \begin_layout Description
10307 URL Author's Web address, if desired.
10308 \end_layout
10309
10310 \begin_layout Description
10311 Keywords Key words or phrases used to identify specific topics discussed
10312  in the paper.
10313 \end_layout
10314
10315 \begin_layout Description
10316 Subjectclass These refer to the AMS Subject Classifications, published and
10317  described in 
10318 \emph on
10319 Mathematical Reviews
10320 \emph default
10321 .
10322  These are also available online at the AMS cites listed above.
10323 \end_layout
10324
10325 \begin_layout Description
10326 Thanks
10327 \end_layout
10328
10329 \begin_layout Description
10330 Dedicatory
10331 \end_layout
10332
10333 \begin_layout Description
10334 Translator
10335 \end_layout
10336
10337 \begin_layout Standard
10338 The following environments are provided by both the 
10339 \begin_inset Flex Code
10340 status collapsed
10341
10342 \begin_layout Plain Layout
10343 Theorems
10344 \end_layout
10345
10346 \end_inset
10347
10348  and 
10349 \begin_inset Flex Code
10350 status collapsed
10351
10352 \begin_layout Plain Layout
10353 Theorems (AMS)
10354 \end_layout
10355
10356 \end_inset
10357
10358  modules, in the latter case in both starred (unnumbered) and unstarred
10359  (numbered) versions.
10360  These same environments are provided only in the starred versions by the
10361  
10362 \begin_inset Flex Code
10363 status collapsed
10364
10365 \begin_layout Plain Layout
10366 Theorems (Starred)
10367 \end_layout
10368
10369 \end_inset
10370
10371  module:
10372 \end_layout
10373
10374 \begin_layout Theorem
10375 This is typically used for the statements of major results.
10376  
10377 \end_layout
10378
10379 \begin_layout Corollary*
10380 This is used for statements which follow fairly directly from previous statement
10381 s.
10382  Again, these can be major results.
10383  
10384 \end_layout
10385
10386 \begin_layout Lemma
10387 These are smaller results needed to prove other statements.
10388 \end_layout
10389
10390 \begin_layout Proposition
10391 These are less major results which (hopefully) add to the general theory
10392  being discussed.
10393 \end_layout
10394
10395 \begin_layout Conjecture
10396 These are statements provided without justification, which the author does
10397  not know how to prove, but which seem to be true (to the author, at least).
10398 \end_layout
10399
10400 \begin_layout Definition*
10401 Guess what this is for.
10402  The font is different for this environment than for the previous ones.
10403  
10404 \end_layout
10405
10406 \begin_layout Example*
10407 Used for examples illustrating proven results.
10408 \end_layout
10409
10410 \begin_layout Problem
10411 It's not really known what this is for.
10412  You should figure it out.
10413 \end_layout
10414
10415 \begin_layout Exercise*
10416 Write a description for this one.
10417 \end_layout
10418
10419 \begin_layout Remark
10420 This environment is also a type of theorem, usually a lesser sort of observation.
10421 \end_layout
10422
10423 \begin_layout Claim*
10424 Often used in the course of giving a proof of a larger result.
10425 \end_layout
10426
10427 \begin_layout Case
10428 Generally, these are used to break up long arguments, using specific instances
10429  of some condition.
10430  
10431 \end_layout
10432
10433 \begin_layout Case
10434 The numbering scheme for cases is on its own, not together with other numbered
10435  statements.
10436  
10437 \end_layout
10438
10439 \begin_layout Proof
10440 At the end of this environment, a QED symbol (usually a square, but it can
10441  vary with different styles) is placed.
10442  If you want to have other environments within this one—for example, Case
10443  environments—and have the QED symbol appear only after them, then the other
10444  environments need to be nested within the proof environment.
10445  See the section 
10446 \emph on
10447 Nesting Environments
10448 \emph default
10449  of the 
10450 \emph on
10451 User's Guide
10452 \emph default
10453  for information on nesting.
10454 \end_layout
10455
10456 \begin_layout Standard
10457 And these environments are provided by 
10458 \begin_inset Flex Code
10459 status collapsed
10460
10461 \begin_layout Plain Layout
10462 Theorems (AMS-Extended)
10463 \end_layout
10464
10465 \end_inset
10466
10467 :
10468 \end_layout
10469
10470 \begin_layout Criterion*
10471 A required condition.
10472 \end_layout
10473
10474 \begin_layout Algorithm*
10475 A general procedure to be used.
10476 \end_layout
10477
10478 \begin_layout Axiom*
10479 This is a property or statement taken as true within the system being discussed.
10480 \end_layout
10481
10482 \begin_layout Condition*
10483 Sometimes used to state a condition assumed within the present context of
10484  discussion.
10485 \end_layout
10486
10487 \begin_layout Note*
10488 Similar to a Remark.
10489 \end_layout
10490
10491 \begin_layout Notation*
10492 Used for the explanation of, yes, notation.
10493 \end_layout
10494
10495 \begin_layout Summary
10496 Do we really need to tell you? 
10497 \end_layout
10498
10499 \begin_layout Acknowledgement*
10500 Acknowledgement.
10501 \end_layout
10502
10503 \begin_layout Conclusion*
10504 Sometimes used at the end of a long train of argument.
10505 \end_layout
10506
10507 \begin_layout Fact
10508 Used in a way similar to Proposition, though perhaps lower on the scale.
10509 \end_layout
10510
10511 \begin_layout Standard
10512 In addition, the AMS classes automatically provide the AMS \SpecialChar LaTeX
10513  and AMS fonts
10514  packages.
10515  They need to be available on your system in order to use these environments.
10516 \end_layout
10517
10518 \begin_layout Section
10519 Broadway
10520 \end_layout
10521
10522 \begin_layout Standard
10523 by 
10524 \shape smallcaps
10525 Garst Reese
10526 \end_layout
10527
10528 \begin_layout Subsection
10529 Introduction
10530 \end_layout
10531
10532 \begin_layout Standard
10533 Broadway is for writing plays.
10534  The format is more decorative than Hollywood, and much less standardized.
10535  This format should be suitable for workshops.
10536 \end_layout
10537
10538 \begin_layout Subsection
10539 Special problems
10540 \end_layout
10541
10542 \begin_layout Standard
10543 The same as in Hollywood.
10544 \end_layout
10545
10546 \begin_layout Subsection
10547 Special features
10548 \end_layout
10549
10550 \begin_layout Standard
10551 Insert the 
10552 \family sans
10553 Speaker
10554 \family default
10555  names as labels then cross-reference the label to insert the name.
10556  The cross-reference dialog will show the current cast of characters.
10557 \end_layout
10558
10559 \begin_layout Subsection
10560 Paper size and Margins
10561 \end_layout
10562
10563 \begin_layout Standard
10564 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
10565 \end_layout
10566
10567 \begin_layout Subsection
10568 Environments
10569 \end_layout
10570
10571 \begin_layout Standard
10572 The following environments are available.
10573  You can use broadway.bind to get the bind keys shown at the right.
10574 \end_layout
10575
10576 \begin_layout Itemize
10577
10578 \family sans
10579 Standard
10580 \begin_inset Newline newline
10581 \end_inset
10582
10583
10584 \family default
10585 You should not have to use this, but it is here for anything that does not
10586  fit otherwise.
10587 \end_layout
10588
10589 \begin_layout Itemize
10590
10591 \family sans
10592 Narrative
10593 \begin_inset space \hfill{}
10594 \end_inset
10595
10596 M-z n
10597 \begin_inset Newline newline
10598 \end_inset
10599
10600
10601 \family default
10602 Used to describe stage setting and the action.
10603  First use of speaker names in all CAPs.
10604 \end_layout
10605
10606 \begin_layout Itemize
10607
10608 \family sans
10609 ACT
10610 \begin_inset space \hfill{}
10611 \end_inset
10612
10613 M-z a
10614 \begin_inset Newline newline
10615 \end_inset
10616
10617
10618 \family default
10619 Automatically numbered.
10620  On screen it will be arabic, but will print as Roman.
10621 \end_layout
10622
10623 \begin_layout Itemize
10624
10625 \family sans
10626 ACT*
10627 \begin_inset space \hfill{}
10628 \end_inset
10629
10630 M-z S at
10631 \begin_inset Newline newline
10632 \end_inset
10633
10634
10635 \family default
10636 Subtitle for 
10637 \family sans
10638 ACT.
10639
10640 \family default
10641  It is just centered text.
10642 \end_layout
10643
10644 \begin_layout Itemize
10645
10646 \family sans
10647 SCENE
10648 \begin_inset space \hfill{}
10649 \end_inset
10650
10651 M-z S-S
10652 \begin_inset Newline newline
10653 \end_inset
10654
10655
10656 \family default
10657 Not automatically numbered.
10658  You supply the number.
10659  This is because I couldn't figure out how.
10660 \end_layout
10661
10662 \begin_layout Itemize
10663
10664 \family sans
10665 AT_RISE:
10666 \begin_inset space \hfill{}
10667 \end_inset
10668
10669 M-z S-R
10670 \begin_inset Newline newline
10671 \end_inset
10672
10673
10674 \family default
10675 A special case of Narrative to describe the setting and action as the curtain
10676  rises.
10677 \end_layout
10678
10679 \begin_layout Itemize
10680
10681 \family sans
10682 Speaker
10683 \begin_inset space \hfill{}
10684 \end_inset
10685
10686 M-z s
10687 \begin_inset Newline newline
10688 \end_inset
10689
10690
10691 \family default
10692 The speaker's (actor's) title, centered in all CAPS.
10693 \end_layout
10694
10695 \begin_layout Itemize
10696
10697 \family sans
10698 Parenthetical
10699 \begin_inset space \hfill{}
10700 \end_inset
10701
10702 M-z p
10703 \begin_inset Newline newline
10704 \end_inset
10705
10706
10707 \family default
10708 Instructions to the speaker.
10709  The parentheses are automatically inserted.
10710  The ( will appear on screen, but both will be in the printed play.
10711  This environment is only used within 
10712 \family sans
10713 Dialogue
10714 \family default
10715 .
10716 \end_layout
10717
10718 \begin_layout Itemize
10719
10720 \family sans
10721 Dialogue
10722 \begin_inset space \hfill{}
10723 \end_inset
10724
10725 M-z d
10726 \begin_inset Newline newline
10727 \end_inset
10728
10729
10730 \family default
10731 What the Speaker says.
10732 \end_layout
10733
10734 \begin_layout Itemize
10735
10736 \family sans
10737 CURTAIN
10738 \begin_inset space \hfill{}
10739 \end_inset
10740
10741 M-z S-C
10742 \begin_inset Newline newline
10743 \end_inset
10744
10745
10746 \family default
10747 The curtain comes down.
10748 \end_layout
10749
10750 \begin_layout Itemize
10751
10752 \family sans
10753 Title
10754 \begin_inset space \hfill{}
10755 \end_inset
10756
10757 M-z S-T
10758 \end_layout
10759
10760 \begin_layout Itemize
10761
10762 \family sans
10763 Author
10764 \begin_inset space \hfill{}
10765 \end_inset
10766
10767 M-z S-A
10768 \end_layout
10769
10770 \begin_layout Itemize
10771
10772 \family sans
10773 Right_Address
10774 \begin_inset space \hfill{}
10775 \end_inset
10776
10777 M-z r
10778 \end_layout
10779
10780 \begin_layout Standard
10781 Hello there.
10782 \end_layout
10783
10784 \begin_layout Section
10785 Dinbrief
10786 \end_layout
10787
10788 \begin_layout Standard
10789 The document class 
10790 \family sans
10791 dinbrief
10792 \family default
10793  can be used to type letters according to German conventions.
10794  A template file is included in 
10795 \family typewriter
10796 .../lyx/share/templates
10797 \family default
10798  for you to use as a starting point.
10799 \end_layout
10800
10801 \begin_layout Section
10802 Elsevier Journals
10803 \end_layout
10804
10805 \begin_layout Standard
10806 See the \SpecialChar LyX
10807  template file 
10808 \family typewriter
10809 elsarticle.lyx
10810 \family default
10811 .
10812  It contains all infos you need.
10813 \end_layout
10814
10815 \begin_layout Section
10816 Foils [aka 
10817 \family sans
10818 Foil\SpecialChar TeX
10819
10820 \family default
10821 ]
10822 \begin_inset CommandInset label
10823 LatexCommand label
10824 name "sec:foiltex"
10825
10826 \end_inset
10827
10828
10829 \end_layout
10830
10831 \begin_layout Standard
10832 by 
10833 \noun on
10834 Allan Rae
10835 \end_layout
10836
10837 \begin_layout Subsection
10838 Introduction
10839 \end_layout
10840
10841 \begin_layout Standard
10842 This section describes how to use \SpecialChar LyX
10843  to make slides for overhead projectors.
10844  There are two document classes that can do this: the default slides class
10845  and the 
10846 \family sans
10847 Foil\SpecialChar TeX
10848
10849 \family default
10850  slides class.
10851  This section documents the latter.
10852 \end_layout
10853
10854 \begin_layout Standard
10855 I'm going to say this again, nice and clear, so that there's no misunderstanding
10856 :
10857 \end_layout
10858
10859 \begin_layout Standard
10860 \begin_inset VSpace bigskip
10861 \end_inset
10862
10863
10864 \end_layout
10865
10866 \begin_layout Standard
10867 \align center
10868
10869 \size large
10870 This section documents the class 
10871 \begin_inset Quotes eld
10872 \end_inset
10873
10874
10875 \family sans
10876 FoilTeX
10877 \family default
10878
10879 \begin_inset Quotes erd
10880 \end_inset
10881
10882  
10883 \emph on
10884 only.
10885 \end_layout
10886
10887 \begin_layout Standard
10888 \begin_inset VSpace bigskip
10889 \end_inset
10890
10891
10892 \end_layout
10893
10894 \begin_layout Standard
10895 If you're looking for the documentation for 
10896 \begin_inset Quotes eld
10897 \end_inset
10898
10899
10900 \family sans
10901 slides (default)
10902 \family default
10903
10904 \begin_inset Quotes erd
10905 \end_inset
10906
10907 , check out section
10908 \begin_inset space ~
10909 \end_inset
10910
10911
10912 \begin_inset CommandInset ref
10913 LatexCommand ref
10914 reference "sec:slitex"
10915
10916 \end_inset
10917
10918 .
10919  If your machine doesn't have the 
10920 \family sans
10921 foils
10922 \family default
10923  class 
10924 \family sans
10925 FoilTeX
10926 \family default
10927  installed, you'll probably have to use the default 
10928 \family sans
10929 slides
10930 \family default
10931  class, which isn't quite as good as 
10932 \family sans
10933 foils.
10934 \end_layout
10935
10936 \begin_layout Standard
10937 The 
10938 \family sans
10939 foils
10940 \family default
10941  class is designed for use with version
10942 \begin_inset space ~
10943 \end_inset
10944
10945 2.1 of the 
10946 \family sans
10947 foils.cls
10948 \family default
10949  \SpecialChar LaTeX
10950  class file which is now an integral part of \SpecialChar LaTeX2e
10951 .
10952 \end_layout
10953
10954 \begin_layout Subsection
10955 Getting Started
10956 \end_layout
10957
10958 \begin_layout Standard
10959 Obviously, to use this document class, you need to select 
10960 \family sans
10961 FoilTeX
10962 \family default
10963  from the 
10964 \family sans
10965 Class
10966 \family default
10967  entry in the 
10968 \family sans
10969 Document
10970 \begin_inset space ~
10971 \end_inset
10972
10973 Layout
10974 \family default
10975  dialog.
10976  There are some settings in the 
10977 \family sans
10978 Document
10979 \begin_inset space ~
10980 \end_inset
10981
10982 Layout
10983 \family default
10984  dialog that you should know about that are specific to this class:
10985 \end_layout
10986
10987 \begin_layout Itemize
10988 Don't change the options 
10989 \family sans
10990 Sides
10991 \family default
10992  and 
10993 \family sans
10994 Columns
10995 \family default
10996  on the 
10997 \family sans
10998 Document
10999 \begin_inset space ~
11000 \end_inset
11001
11002 Layout
11003 \family default
11004  dialog.
11005  They're ignored by the 
11006 \family sans
11007 foils
11008 \family default
11009  class.
11010 \end_layout
11011
11012 \begin_layout Itemize
11013 The default font size is 20
11014 \begin_inset space \thinspace{}
11015 \end_inset
11016
11017 pt with the other options being 17
11018 \begin_inset space \thinspace{}
11019 \end_inset
11020
11021 pt, 25
11022 \begin_inset space \thinspace{}
11023 \end_inset
11024
11025 pt and 30
11026 \begin_inset space \thinspace{}
11027 \end_inset
11028
11029 pt.
11030 \end_layout
11031
11032 \begin_layout Itemize
11033 The default font is 
11034 \family sans
11035 sans
11036 \family default
11037  
11038 \family sans
11039 serif
11040 \family default
11041  but all math equations are still typeset in the usual roman font.
11042 \end_layout
11043
11044 \begin_layout Itemize
11045
11046 \family sans
11047 Foil\SpecialChar TeX
11048
11049 \family default
11050  supports A4 and Letter paper sizes as well as a special size for working
11051  with 35
11052 \begin_inset space \thinspace{}
11053 \end_inset
11054
11055 mm slides.
11056  It doesn't support A5, B5, legal or executive paper sizes.
11057 \end_layout
11058
11059 \begin_layout Itemize
11060 Don't bother changing the 
11061 \family sans
11062 Float Placement
11063 \family default
11064  settings because they are ignored anyway.
11065  All floats appear where they are defined in the text.
11066 \end_layout
11067
11068 \begin_layout Itemize
11069 The 
11070 \family sans
11071 Pagestyle
11072 \family default
11073  setting behaves a bit differently for this class.
11074  
11075 \family sans
11076 Foil\SpecialChar TeX
11077
11078 \family default
11079  provides extensive footer and header capabilities including a user-defined
11080  logo.
11081  See section
11082 \begin_inset space ~
11083 \end_inset
11084
11085
11086 \begin_inset CommandInset ref
11087 LatexCommand ref
11088 reference "sec:foilfoot"
11089
11090 \end_inset
11091
11092  for more details.
11093  The title page is treated differently to all other pages in the document
11094  and is 
11095 \emph on
11096 always
11097 \emph default
11098  unnumbered and 
11099 \emph on
11100 always
11101 \emph default
11102  has the logo centered at the bottom of the page (if one is defined).
11103  The possible page style choices and what they do are as follows:
11104 \end_layout
11105
11106 \begin_deeper
11107 \begin_layout Labeling
11108 \labelwidthstring MMMMMMM
11109
11110 \family sans
11111 \series bold
11112 empty
11113 \family default
11114 \series default
11115  The final output contains no page numbers, or other headers or footers
11116  (except footnotes of course).
11117  
11118 \end_layout
11119
11120 \begin_layout Labeling
11121 \labelwidthstring MMMMMMM
11122
11123 \family sans
11124 \series bold
11125 plain
11126 \family default
11127 \series default
11128  The final output contains page numbers centered at the bottom of the page.
11129  No other headings or footers (other than footnotes).
11130 \end_layout
11131
11132 \begin_layout Labeling
11133 \labelwidthstring MMMMMMM
11134
11135 \series bold
11136 foilheadings
11137 \series default
11138  Page numbers in lower right corner.
11139  Additional headers and footers are also shown.
11140  This is also the default.
11141 \end_layout
11142
11143 \begin_layout Labeling
11144 \labelwidthstring MMMMMMM
11145
11146 \series bold
11147 fancy
11148 \series default
11149  Gives you access to the 
11150 \family sans
11151 fancyheadings
11152 \family default
11153  package although its use with 
11154 \family sans
11155 Foil\SpecialChar TeX
11156
11157 \family default
11158  is discouraged by the writer of the 
11159 \family sans
11160 Foil\SpecialChar TeX
11161
11162 \family default
11163  package because of some potential page layout clashes.
11164 \end_layout
11165
11166 \end_deeper
11167 \begin_layout Subsubsection
11168 Extra Options
11169 \end_layout
11170
11171 \begin_layout Standard
11172 The following options may be used in the extra class options in the 
11173 \family sans
11174 Document\SpecialChar menuseparator
11175 Settings
11176 \family default
11177  dialog.
11178 \end_layout
11179
11180 \begin_layout Labeling
11181 \labelwidthstring MMMMMMx
11182
11183 \series bold
11184 35mmSlide
11185 \series default
11186  This sets up the page layout for 7.33
11187 \begin_inset space \thinspace{}
11188 \end_inset
11189
11190 in by 11
11191 \begin_inset space \thinspace{}
11192 \end_inset
11193
11194 in paper, which is about the same aspect ratio as a 35
11195 \begin_inset space \thinspace{}
11196 \end_inset
11197
11198 mm slide, making it a bit easier to work with this medium.
11199 \end_layout
11200
11201 \begin_layout Labeling
11202 \labelwidthstring MMMMMMx
11203
11204 \series bold
11205 headrule
11206 \series default
11207  Places a rule across the page below the header on every page except the
11208  title page.
11209 \end_layout
11210
11211 \begin_layout Labeling
11212 \labelwidthstring MMMMMMx
11213
11214 \series bold
11215 footrule
11216 \series default
11217  Places a rule across the page above the footer on every page except the
11218  title page.
11219 \end_layout
11220
11221 \begin_layout Labeling
11222 \labelwidthstring MMMMMMx
11223
11224 \series bold
11225 dvips
11226 \series default
11227  This is automatically set each time you create a new 
11228 \family sans
11229 foils
11230 \family default
11231  document.
11232  This option tells 
11233 \family sans
11234 Foil\SpecialChar TeX
11235
11236 \family default
11237  to use the dvips driver to rotate those pages that are set as landscape
11238  foils.
11239 \end_layout
11240
11241 \begin_layout Labeling
11242 \labelwidthstring MMMMMMx
11243
11244 \series bold
11245 landscape
11246 \series default
11247  Simply changes the page dimensions to those of a landscape page but doesn't
11248  do any rotation.
11249  Thus if you use this option you need to use an external program to rotate
11250  each page or feed your paper through your printer as landscape.
11251  Note that this option effectively reverses the roles of the 
11252 \family sans
11253 Foilhead
11254 \family default
11255  and 
11256 \family sans
11257 Rotatefoilhead
11258 \family default
11259  environments (don't worry these are described in the next section).
11260 \end_layout
11261
11262 \begin_layout Labeling
11263 \labelwidthstring MMMMMMx
11264
11265 \series bold
11266 leqno
11267 \series default
11268  Equation numbers on the left.
11269 \end_layout
11270
11271 \begin_layout Labeling
11272 \labelwidthstring MMMMMMx
11273
11274 \series bold
11275 fleqn
11276 \series default
11277  Flush-left equations.
11278 \end_layout
11279
11280 \begin_layout Subsection
11281 Supported Environments
11282 \end_layout
11283
11284 \begin_layout Standard
11285 Most of the environments commonly supported in other classes are also supported
11286  by the 
11287 \family sans
11288 foils
11289 \family default
11290  class.
11291  There are several additional environments provided by 
11292 \family sans
11293 Foil\SpecialChar TeX
11294
11295 \family default
11296  as well as a couple added by \SpecialChar LyX
11297 .
11298  The following environments are shared with other classes:
11299 \end_layout
11300
11301 \begin_layout Standard
11302 \begin_inset Flex Multiple Columns
11303 status open
11304
11305 \begin_layout Itemize
11306
11307 \family sans
11308 Standard
11309 \end_layout
11310
11311 \begin_layout Itemize
11312
11313 \family sans
11314 Itemize
11315 \end_layout
11316
11317 \begin_layout Itemize
11318
11319 \family sans
11320 Enumerate
11321 \end_layout
11322
11323 \begin_layout Itemize
11324
11325 \family sans
11326 Description
11327 \end_layout
11328
11329 \begin_layout Itemize
11330
11331 \family sans
11332 List
11333 \end_layout
11334
11335 \begin_layout Itemize
11336
11337 \family sans
11338 \SpecialChar LyX
11339 -Code
11340 \end_layout
11341
11342 \begin_layout Itemize
11343
11344 \family sans
11345 Verse
11346 \end_layout
11347
11348 \begin_layout Itemize
11349
11350 \family sans
11351 Quote
11352 \end_layout
11353
11354 \begin_layout Itemize
11355
11356 \family sans
11357 Quotation
11358 \end_layout
11359
11360 \begin_layout Itemize
11361
11362 \family sans
11363 TitleAuthor
11364 \end_layout
11365
11366 \begin_layout Itemize
11367
11368 \family sans
11369 Date
11370 \end_layout
11371
11372 \begin_layout Itemize
11373
11374 \family sans
11375 Abstract
11376 \end_layout
11377
11378 \begin_layout Itemize
11379
11380 \family sans
11381 Bibliography
11382 \end_layout
11383
11384 \begin_layout Itemize
11385
11386 \family sans
11387 Address
11388 \end_layout
11389
11390 \begin_layout Itemize
11391
11392 \family sans
11393 RightAddress
11394 \end_layout
11395
11396 \end_inset
11397
11398
11399 \end_layout
11400
11401 \begin_layout Standard
11402 That is, all the major environments apart from the sectioning environments.
11403  Since foils are essentially self-contained sections, with a title and body,
11404  
11405 \family sans
11406 Foil\SpecialChar TeX
11407
11408 \family default
11409  provides specific commands for starting new foils and these are:
11410 \end_layout
11411
11412 \begin_layout Itemize
11413
11414 \family sans
11415 Foilhead
11416 \end_layout
11417
11418 \begin_layout Itemize
11419
11420 \family sans
11421 Rotatefoilhead
11422 \end_layout
11423
11424 \begin_layout Standard
11425 \SpecialChar LyX
11426  also provides slightly modified versions of these two environments called:
11427 \end_layout
11428
11429 \begin_layout Itemize
11430
11431 \family sans
11432 ShortFoilhead
11433 \end_layout
11434
11435 \begin_layout Itemize
11436
11437 \family sans
11438 ShortRotatefoilhead
11439 \end_layout
11440
11441 \begin_layout Standard
11442 and the differences will be explained in the next section.
11443 \end_layout
11444
11445 \begin_layout Standard
11446 Since foils are often used in presenting ideas or new theorems and such
11447  
11448 \family sans
11449 Foil\SpecialChar TeX
11450
11451 \family default
11452  also provides a comprehensive box of goodies for presenting them:
11453 \end_layout
11454
11455 \begin_layout Standard
11456 \begin_inset Flex Multiple Columns
11457 status open
11458
11459 \begin_layout Itemize
11460
11461 \family sans
11462 Theorem
11463 \end_layout
11464
11465 \begin_layout Itemize
11466
11467 \family sans
11468 Lemma
11469 \end_layout
11470
11471 \begin_layout Itemize
11472
11473 \family sans
11474 Corollary
11475 \end_layout
11476
11477 \begin_layout Itemize
11478
11479 \family sans
11480 Proposition
11481 \end_layout
11482
11483 \begin_layout Itemize
11484
11485 \family sans
11486 Definition
11487 \end_layout
11488
11489 \begin_layout Itemize
11490
11491 \family sans
11492 Proof
11493 \end_layout
11494
11495 \begin_layout Itemize
11496
11497 \family sans
11498 Theorem*
11499 \end_layout
11500
11501 \begin_layout Itemize
11502
11503 \family sans
11504 Lemma*
11505 \end_layout
11506
11507 \begin_layout Itemize
11508
11509 \family sans
11510 Corollary*
11511 \end_layout
11512
11513 \begin_layout Itemize
11514
11515 \family sans
11516 Proposition*
11517 \end_layout
11518
11519 \begin_layout Itemize
11520
11521 \family sans
11522 Definition*
11523 \end_layout
11524
11525 \end_inset
11526
11527
11528 \end_layout
11529
11530 \begin_layout Standard
11531 The starred versions are unnumbered while the unstarred versions are numbered.
11532  There are also two list environments added by \SpecialChar LyX
11533  and these are:
11534 \end_layout
11535
11536 \begin_layout Itemize
11537
11538 \family sans
11539 TickList
11540 \end_layout
11541
11542 \begin_layout Itemize
11543
11544 \family sans
11545 CrossList
11546 \end_layout
11547
11548 \begin_layout Standard
11549
11550 \family sans
11551 Foil\SpecialChar TeX
11552
11553 \family default
11554  provides some powerful header and footer capabilities that are best set
11555  in the preamble although they may be set at any point in a document.
11556  If you want to change these settings in your document the best place to
11557  do so is at the very top of a foil, i.
11558 \begin_inset space \thinspace{}
11559 \end_inset
11560
11561 e.
11562 \emph on
11563
11564 \begin_inset space \space{}
11565 \end_inset
11566
11567
11568 \emph default
11569 straight after the foilhead.
11570 \end_layout
11571
11572 \begin_layout Standard
11573 For this purpose, the following command styles are provided [
11574 \shape smallcaps
11575 Martin Vermeer
11576 \shape default
11577 ]:
11578 \end_layout
11579
11580 \begin_layout Standard
11581 \begin_inset Flex Multiple Columns
11582 status open
11583
11584 \begin_layout Itemize
11585
11586 \family sans
11587 My
11588 \begin_inset space ~
11589 \end_inset
11590
11591 Logo
11592 \end_layout
11593
11594 \begin_layout Itemize
11595
11596 \family sans
11597 Restriction
11598 \end_layout
11599
11600 \begin_layout Itemize
11601
11602 \family sans
11603 Right
11604 \begin_inset space ~
11605 \end_inset
11606
11607 Footer
11608 \end_layout
11609
11610 \begin_layout Itemize
11611
11612 \family sans
11613 Right
11614 \begin_inset space ~
11615 \end_inset
11616
11617 Header
11618 \end_layout
11619
11620 \begin_layout Itemize
11621
11622 \family sans
11623 Left
11624 \begin_inset space ~
11625 \end_inset
11626
11627 Header
11628 \end_layout
11629
11630 \begin_deeper
11631 \begin_layout Plain Layout
11632 \begin_inset space ~
11633 \end_inset
11634
11635
11636 \end_layout
11637
11638 \end_deeper
11639 \end_inset
11640
11641
11642 \end_layout
11643
11644 \begin_layout Standard
11645 There are also a few commands provided by 
11646 \family sans
11647 Foil\SpecialChar TeX
11648
11649 \family default
11650  that aren't directly supported by \SpecialChar LyX
11651  but I'll tell you what they do and how
11652  to use them in section
11653 \begin_inset space ~
11654 \end_inset
11655
11656
11657 \begin_inset CommandInset ref
11658 LatexCommand ref
11659 reference "sec:unsuppfoils"
11660
11661 \end_inset
11662
11663 .
11664 \end_layout
11665
11666 \begin_layout Subsection
11667 Building a Set of Foils
11668 \end_layout
11669
11670 \begin_layout Standard
11671 This section will give a simple introduction to using the different environments
11672  to build a set of foils.
11673  If you want to see an example set of foils, take a look at the 
11674 \family typewriter
11675 Foils.lyx
11676 \family default
11677  file you find in \SpecialChar LyX
11678 's 
11679 \family typewriter
11680 examples
11681 \family default
11682  folder.
11683 \end_layout
11684
11685 \begin_layout Subsubsection
11686 Give It a Title Page
11687 \end_layout
11688
11689 \begin_layout Standard
11690 Unlike other classes that provide 
11691 \family sans
11692 Title
11693 \family default
11694
11695 \family sans
11696 Author
11697 \family default
11698
11699 \family sans
11700 Date
11701 \family default
11702  and 
11703 \family sans
11704 Abstract
11705 \family default
11706  environments, 
11707 \family sans
11708 foils
11709 \family default
11710  creates the title on a page of its own.
11711  If you leave out the 
11712 \family sans
11713 Date
11714 \family default
11715  environment \SpecialChar LaTeX
11716  will substitute the current date (every time you regenerate
11717  the output).
11718 \end_layout
11719
11720 \begin_layout Subsubsection
11721 Start a New Foil
11722 \end_layout
11723
11724 \begin_layout Standard
11725 As I mentioned earlier, there are four ways of starting a new foil.
11726  For portrait foils you should use 
11727 \family sans
11728 Foilhead
11729 \family default
11730  or 
11731 \family sans
11732 ShortFoilhead.
11733
11734 \family default
11735  The difference between these two environments is the amount of space between
11736  the title of the foil (the foilhead) and the body of the foil.
11737 \end_layout
11738
11739 \begin_layout Standard
11740 Landscape foils are generated using the 
11741 \family sans
11742 Rotatefoilhead
11743 \family default
11744  and 
11745 \family sans
11746 ShortRotatefoilhead
11747 \family default
11748  environments.
11749  Again the only difference is the spacing between foilhead and body.
11750  Both of the short versions have 0.5
11751 \begin_inset space ~
11752 \end_inset
11753
11754 inches less separation between the foilhead and the body.
11755  
11756 \end_layout
11757
11758 \begin_layout Standard
11759 One problem with the support for landscape foils is the requirement that
11760  you have to use the 
11761 \family typewriter
11762 dvips
11763 \family default
11764  driver to generate the PostScript output otherwise the foils won't be rotated.
11765  It is possible to get landscape foils even if you haven't got the 
11766 \family typewriter
11767 dvips
11768 \family default
11769  driver provided you can feed your foils sideways through your printer ;-)
11770 \end_layout
11771
11772 \begin_layout Subsubsection
11773 Theorems, Lemmas, Proofs and more
11774 \end_layout
11775
11776 \begin_layout Standard
11777 You can't have two of the same type of these environments directly following
11778  each other.
11779  If you use a normal paragraph break, , you will just be extending the previous
11780  environment as if you had merged the two environments together.
11781  Rather than that, you need to insert a so-called separator.
11782  Please refer to the section entitled 
11783 \emph on
11784 Separate Nestings
11785 \emph default
11786  in the 
11787 \emph on
11788 User's Guide
11789 \emph default
11790 .
11791 \end_layout
11792
11793 \begin_layout Subsubsection
11794 Lists
11795 \end_layout
11796
11797 \begin_layout Standard
11798 You get all the commonly supported list styles found in other classes as
11799  well as two new ones.
11800  I'll only describe the new ones here.
11801  If you want to find out more about the other list environments check out
11802  the 
11803 \emph on
11804 User's Guide.
11805
11806 \emph default
11807  If you intend to use itemized lists you might also want to read about the
11808  
11809 \family sans
11810 Itemize
11811 \begin_inset space ~
11812 \end_inset
11813
11814 Bullet
11815 \begin_inset space ~
11816 \end_inset
11817
11818 Selection
11819 \family default
11820  dialog described above in section
11821 \begin_inset space ~
11822 \end_inset
11823
11824
11825 \begin_inset CommandInset ref
11826 LatexCommand ref
11827 reference "sec:bullet"
11828
11829 \end_inset
11830
11831 .
11832 \end_layout
11833
11834 \begin_layout Standard
11835 The two new list styles, 
11836 \family sans
11837 TickList
11838 \family default
11839  and 
11840 \family sans
11841 CrossList
11842 \family default
11843 , are designed to make it easier for you to create lists of do's and don'ts
11844  or right and wrong by providing dedicated environments that use a tick
11845  or a cross as the label of the list.
11846  These lists are in fact dedicated variants of the 
11847 \family sans
11848 Itemize
11849 \family default
11850  environment.
11851  They do however require that you have the 
11852 \family typewriter
11853 psnfss
11854 \family default
11855  packages installed.
11856 \end_layout
11857
11858 \begin_layout Subsubsection
11859 Figures and Tables
11860 \end_layout
11861
11862 \begin_layout Standard
11863
11864 \family sans
11865 Foil\SpecialChar TeX
11866
11867 \family default
11868  redefines the floating tables and figures so that they appear exactly where
11869  they are in the text rather than pushing them to the top of the page or
11870  to some user specified location.
11871  In fact if you change the float placement settings they are simply ignored.
11872 \end_layout
11873
11874 \begin_layout Subsubsection
11875 Page Headers and Footers
11876 \begin_inset CommandInset label
11877 LatexCommand label
11878 name "sec:foilfoot"
11879
11880 \end_inset
11881
11882
11883 \end_layout
11884
11885 \begin_layout Standard
11886
11887 \family sans
11888 My
11889 \begin_inset space ~
11890 \end_inset
11891
11892 Logo
11893 \family default
11894  and 
11895 \family sans
11896 Restriction
11897 \family default
11898  are two commands used to control the left-footer text string.
11899  The first is meant to allow you to include a graphic logo on your foils
11900  and defaults to 
11901 \begin_inset Quotes eld
11902 \end_inset
11903
11904 -Typeset by 
11905 \family sans
11906 Foil\SpecialChar TeX
11907
11908 \family default
11909 -
11910 \begin_inset Quotes erd
11911 \end_inset
11912
11913 .
11914  While the second is meant to provide a classification for the audience,
11915  
11916 \emph on
11917 e.
11918 \begin_inset space \thinspace{}
11919 \end_inset
11920
11921 g.
11922 \emph default
11923
11924 \begin_inset space \space{}
11925 \end_inset
11926
11927 Confidential.
11928  It is empty by default.
11929 \end_layout
11930
11931 \begin_layout Standard
11932 The remaining page corners can be filled by 
11933 \family sans
11934 Right
11935 \begin_inset space ~
11936 \end_inset
11937
11938 Footer
11939 \family default
11940  (which defaults to page numbers), 
11941 \family sans
11942 Right
11943 \begin_inset space ~
11944 \end_inset
11945
11946 Header
11947 \family default
11948  (top right) and 
11949 \family sans
11950 Left
11951 \begin_inset space ~
11952 \end_inset
11953
11954 Header
11955 \family default
11956  (top left).
11957 \end_layout
11958
11959 \begin_layout Subsection
11960 Unsupported 
11961 \family sans
11962 Foil\SpecialChar TeX
11963
11964 \family default
11965  Goodies
11966 \begin_inset CommandInset label
11967 LatexCommand label
11968 name "sec:unsuppfoils"
11969
11970 \end_inset
11971
11972
11973 \end_layout
11974
11975 \begin_layout Standard
11976 All the commands mentioned below need to be set in a 
11977 \family sans
11978 \SpecialChar LaTeX
11979
11980 \family default
11981  environment or as 
11982 \family sans
11983 \SpecialChar TeX
11984
11985 \family default
11986  within another environment.
11987 \end_layout
11988
11989 \begin_layout Subsubsection
11990 Lengths
11991 \end_layout
11992
11993 \begin_layout Standard
11994 All lengths are adjusted using the 
11995 \family typewriter
11996
11997 \backslash
11998 setlength{
11999 \family default
12000 \emph on
12001 lengthname
12002 \family typewriter
12003 \emph default
12004 }{
12005 \family default
12006 \emph on
12007 newlength
12008 \family typewriter
12009 \emph default
12010 }
12011 \family default
12012  command.
12013  Where 
12014 \emph on
12015 lengthname
12016 \emph default
12017  should be replaced by the name given to the length you want to change and
12018  
12019 \emph on
12020 newlength
12021 \emph default
12022  is the length value.
12023  All lengths should be specified in units of length such as inches (
12024 \family typewriter
12025 in
12026 \family default
12027 ), millimeters (
12028 \family typewriter
12029 mm
12030 \family default
12031 ) or points (
12032 \family typewriter
12033 pt
12034 \family default
12035 ) or relative to some document or font-based length such as 
12036 \family typewriter
12037
12038 \backslash
12039 textwidth
12040 \family default
12041 .
12042  
12043 \end_layout
12044
12045 \begin_layout Standard
12046 It's possible to change the spacing between a foilhead and the body of the
12047  foil by adjusting the length specified by 
12048 \family typewriter
12049
12050 \backslash
12051 foilheadskip
12052 \family default
12053 .
12054  For example, to make 
12055 \emph on
12056 all
12057 \emph default
12058  foilheads 0.5
12059 \begin_inset space \space{}
12060 \end_inset
12061
12062 in closer to their bodies put the following in the preamble: 
12063 \family typewriter
12064
12065 \backslash
12066 setlength{
12067 \backslash
12068 foilheadskip}{-0.5in}
12069 \end_layout
12070
12071 \begin_layout Standard
12072 The spacings around floats can be adjusted by setting these lengths:
12073 \end_layout
12074
12075 \begin_layout Labeling
12076 \labelwidthstring MMMMMMMMMMM
12077
12078 \family typewriter
12079
12080 \backslash
12081 abovefloatskip
12082 \family default
12083  Separation between the text and the top of the float
12084 \end_layout
12085
12086 \begin_layout Labeling
12087 \labelwidthstring MMMMMMMMMMM
12088
12089 \family typewriter
12090
12091 \backslash
12092 abovecaptionskip
12093 \family default
12094  Separation between the float and the caption
12095 \end_layout
12096
12097 \begin_layout Labeling
12098 \labelwidthstring MMMMMMMMMMM
12099
12100 \family typewriter
12101
12102 \backslash
12103 belowcaptionskip
12104 \family default
12105  Separation between the caption and the following text
12106 \end_layout
12107
12108 \begin_layout Labeling
12109 \labelwidthstring MMMMMMMMMMM
12110
12111 \family typewriter
12112
12113 \backslash
12114 captionwidth
12115 \family default
12116  You can make the captions narrower than the surrounding text by adjusting
12117  this length.
12118  Best done relative to 
12119 \family typewriter
12120
12121 \backslash
12122 textwidth
12123 \family default
12124 .
12125 \end_layout
12126
12127 \begin_layout Standard
12128 There are also several title page related lengths that you may find useful
12129  if you have a long title or several authors:
12130 \end_layout
12131
12132 \begin_layout Labeling
12133 \labelwidthstring MMMMMMMMMMM
12134
12135 \family typewriter
12136
12137 \backslash
12138 abovetitleskip
12139 \family default
12140  Separation from headers to 
12141 \family sans
12142 Title
12143 \end_layout
12144
12145 \begin_layout Labeling
12146 \labelwidthstring MMMMMMMMMMM
12147
12148 \family typewriter
12149
12150 \backslash
12151 titleauthorskip
12152 \family default
12153  between 
12154 \family sans
12155 Title
12156 \family default
12157  and 
12158 \family sans
12159 Author
12160 \family default
12161  environments
12162 \end_layout
12163
12164 \begin_layout Labeling
12165 \labelwidthstring MMMMMMMMMMM
12166
12167 \family typewriter
12168
12169 \backslash
12170 authorauthorskip
12171 \family default
12172  between multiple 
12173 \family sans
12174 Author
12175 \family default
12176  lines
12177 \end_layout
12178
12179 \begin_layout Labeling
12180 \labelwidthstring MMMMMMMMMMM
12181
12182 \family typewriter
12183
12184 \backslash
12185 authordateskip
12186 \family default
12187  between the 
12188 \family sans
12189 Author
12190 \family default
12191  and the 
12192 \family sans
12193 Date
12194 \end_layout
12195
12196 \begin_layout Labeling
12197 \labelwidthstring MMMMMMMMMMM
12198
12199 \family typewriter
12200
12201 \backslash
12202 dateabstractskip
12203 \family default
12204  between the 
12205 \family sans
12206 Date
12207 \family default
12208  and the 
12209 \family sans
12210 Abstract
12211 \end_layout
12212
12213 \begin_layout Standard
12214 The last length related command affects all the list environments.
12215  If you place 
12216 \family typewriter
12217
12218 \backslash
12219 zerolistvertdimens
12220 \family default
12221  
12222 \emph on
12223 inside
12224 \emph default
12225  a list environment then all the vertical spacing between the list items
12226  is removed.
12227  Note that this is a command not a length so it doesn't require 
12228 \family typewriter
12229
12230 \backslash
12231 setlength
12232 \family default
12233  like the stuff mentioned above.
12234 \end_layout
12235
12236 \begin_layout Subsubsection
12237 Headers and Footers
12238 \end_layout
12239
12240 \begin_layout Standard
12241 The 
12242 \family typewriter
12243
12244 \backslash
12245 LogoOn
12246 \family default
12247  and 
12248 \family typewriter
12249
12250 \backslash
12251 LogoOff
12252 \family default
12253  commands control whether the logo in the 
12254 \family sans
12255 MyLogo
12256 \family default
12257  definition appear on a given page.
12258  If you put 
12259 \family typewriter
12260
12261 \backslash
12262 LogoOff
12263 \family default
12264  in the preamble then none of the foils will have the logo on them.
12265  If you don't want the logo on a particular page place the 
12266 \family typewriter
12267
12268 \backslash
12269 LogoOff
12270 \family default
12271  directly after the foilhead of that page and the 
12272 \family typewriter
12273
12274 \backslash
12275 LogoOn
12276 \family default
12277  directly after the next foilhead.
12278 \end_layout
12279
12280 \begin_layout Standard
12281 If you decide to use the 
12282 \family sans
12283 fancy
12284 \family default
12285  page style setting in the 
12286 \family sans
12287 Document
12288 \begin_inset space ~
12289 \end_inset
12290
12291 Layout
12292 \family default
12293  dialog you should probably add 
12294 \family typewriter
12295
12296 \backslash
12297 let
12298 \backslash
12299 headwidth
12300 \backslash
12301 textwidth
12302 \family default
12303  to your preamble so headers and footers on landscape pages are correctly
12304  placed when rotated.
12305  This is due to some clashes between the page layouts provided by the 
12306 \family sans
12307 fancyheadings
12308 \family default
12309  package and the 
12310 \family sans
12311 foils
12312 \family default
12313  class.
12314 \end_layout
12315
12316 \begin_layout Section
12317 Hollywood (Hollywood spec scripts)
12318 \end_layout
12319
12320 \begin_layout Standard
12321 by 
12322 \shape smallcaps
12323 Garst Reese
12324 \end_layout
12325
12326 \begin_layout Subsection
12327 Introduction
12328 \end_layout
12329
12330 \begin_layout Standard
12331 Getting the format of a Hollywood script right is a 
12332 \begin_inset Quotes eld
12333 \end_inset
12334
12335 rite of passage.
12336 \begin_inset Quotes erd
12337 \end_inset
12338
12339  It is designed to make the readers focus on content and to be easy and
12340  familiar for the actors to read.
12341  Each page of a script should be one minute of film.
12342  Nothing goes in a script that you cannot see or hear on screen.
12343  The courier 12 pt font should be used throughout.
12344  No italics.
12345 \end_layout
12346
12347 \begin_layout Subsection
12348 Special problems
12349 \end_layout
12350
12351 \begin_layout Standard
12352 Speakers' lines should NEVER break in mid-sentence.
12353  If a speaker's lines continue over a page break, repeat the 
12354 \family sans
12355 Speaker
12356 \family default
12357  title followed by (Cont'd).
12358 \end_layout
12359
12360 \begin_layout Subsection
12361 Special features
12362 \end_layout
12363
12364 \begin_layout Standard
12365 Insert the 
12366 \family sans
12367 Speaker
12368 \family default
12369  names as labels then cross-reference the label to insert the name.
12370  The cross-reference dialog will show the current cast of characters.
12371  You can use this to insert the speaker name in narratives also.
12372 \end_layout
12373
12374 \begin_layout Subsection
12375 Paper size and Margins
12376 \end_layout
12377
12378 \begin_layout Standard
12379 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
12380 \end_layout
12381
12382 \begin_layout Subsection
12383 Environments
12384 \end_layout
12385
12386 \begin_layout Standard
12387 The following environments are available.
12388  You can use hollywood.bind to get the bind keys shown at the right.
12389 \end_layout
12390
12391 \begin_layout Itemize
12392
12393 \family sans
12394 Standard
12395 \begin_inset Newline newline
12396 \end_inset
12397
12398
12399 \family default
12400 Used where nothing else works.
12401  Try to avoid it.
12402 \end_layout
12403
12404 \begin_layout Itemize
12405
12406 \family sans
12407 FADE_IN
12408 \family default
12409 :
12410 \begin_inset space \hfill{}
12411 \end_inset
12412
12413
12414 \family sans
12415 M-z S-I
12416 \family default
12417
12418 \begin_inset Newline newline
12419 \end_inset
12420
12421 Usually followed by something like 
12422 \begin_inset Quotes eld
12423 \end_inset
12424
12425 on Sally waking up.
12426 \begin_inset Quotes erd
12427 \end_inset
12428
12429
12430 \end_layout
12431
12432 \begin_layout Itemize
12433
12434 \family sans
12435 INT:
12436 \begin_inset space \hfill{}
12437 \end_inset
12438
12439 M-z i
12440 \begin_inset Newline newline
12441 \end_inset
12442
12443
12444 \family default
12445 Introduces a new INTERIOR camera set-up.
12446  Always followed by DAY or NIGHT, or something similar to define the lighting
12447  required.
12448  Everthing on this line in CAPS.
12449 \end_layout
12450
12451 \begin_layout Itemize
12452
12453 \family sans
12454 EXT:
12455 \begin_inset space \hfill{}
12456 \end_inset
12457
12458 M-z e
12459 \begin_inset Newline newline
12460 \end_inset
12461
12462
12463 \family default
12464 Introduces a new EXTERIOR camera set-up.
12465  Everthing on this line in CAPS.
12466 \end_layout
12467
12468 \begin_layout Itemize
12469
12470 \family sans
12471 Speaker
12472 \begin_inset space \hfill{}
12473 \end_inset
12474
12475 M-z s
12476 \begin_inset Newline newline
12477 \end_inset
12478
12479
12480 \family default
12481 The character speaking.
12482 \end_layout
12483
12484 \begin_layout Itemize
12485
12486 \family sans
12487 Parenthetical
12488 \begin_inset space \hfill{}
12489 \end_inset
12490
12491 M-z p
12492 \begin_inset Newline newline
12493 \end_inset
12494
12495
12496 \family default
12497 Instructions to the speaker.
12498  The () are automatically inserted.
12499 \end_layout
12500
12501 \begin_layout Itemize
12502
12503 \family sans
12504 Dialogue
12505 \begin_inset space \hfill{}
12506 \end_inset
12507
12508 M-z d
12509 \begin_inset Newline newline
12510 \end_inset
12511
12512
12513 \family default
12514 What the 
12515 \family sans
12516 Speaker
12517 \family default
12518  says.
12519 \end_layout
12520
12521 \begin_layout Itemize
12522
12523 \family sans
12524 Transition
12525 \begin_inset space \hfill{}
12526 \end_inset
12527
12528 M-z t
12529 \begin_inset Newline newline
12530 \end_inset
12531
12532
12533 \family default
12534 Camera movement instruction.
12535  e.
12536 \begin_inset space \thinspace{}
12537 \end_inset
12538
12539 g.
12540 \begin_inset space \space{}
12541 \end_inset
12542
12543 CUT TO:
12544 \end_layout
12545
12546 \begin_layout Itemize
12547
12548 \family sans
12549 FADE OUT:
12550 \begin_inset space \hfill{}
12551 \end_inset
12552
12553 M-z S-I
12554 \end_layout
12555
12556 \begin_layout Itemize
12557
12558 \family sans
12559 Author
12560 \begin_inset space \hfill{}
12561 \end_inset
12562
12563 M-z S-A
12564 \end_layout
12565
12566 \begin_layout Itemize
12567
12568 \family sans
12569 Title
12570 \begin_inset space \hfill{}
12571 \end_inset
12572
12573 M-z S-T
12574 \end_layout
12575
12576 \begin_layout Itemize
12577
12578 \family sans
12579 Right_Address
12580 \begin_inset space \hfill{}
12581 \end_inset
12582
12583 M-z r
12584 \end_layout
12585
12586 \begin_layout Subsection
12587 Script jargon
12588 \end_layout
12589
12590 \begin_layout Itemize
12591 (O.S) — off screen
12592 \end_layout
12593
12594 \begin_layout Itemize
12595 (V.0) — voice over
12596 \end_layout
12597
12598 \begin_layout Itemize
12599 b.
12600 \begin_inset space \thinspace{}
12601 \end_inset
12602
12603 g.
12604  — background
12605 \end_layout
12606
12607 \begin_layout Itemize
12608 C.U.
12609  — close-up
12610 \end_layout
12611
12612 \begin_layout Itemize
12613 PAN — camera movement
12614 \end_layout
12615
12616 \begin_layout Itemize
12617 INSERT — cut to close-up of
12618 \end_layout
12619
12620 \begin_layout Section
12621 ijmpc and ijmpd
12622 \end_layout
12623
12624 \begin_layout Standard
12625 by 
12626 \noun on
12627 Panayotis Papasotiriou
12628 \end_layout
12629
12630 \begin_layout Subsection
12631 Overview
12632 \end_layout
12633
12634 \begin_layout Standard
12635 The ijmpc package is a set of macros that facilitates electronic manuscript
12636  submission to the 
12637 \emph on
12638 International Journal of Modern Physics C
12639 \emph default
12640 .
12641  Similarly, the ijmpd package is for creating manuscripts to be submitted
12642  to the 
12643 \emph on
12644 International Journal of Modern Physics D
12645 \emph default
12646 .
12647  Both journals are published by World Scientific.
12648  The corresponding document classes are named 
12649 \family typewriter
12650 ws-ijmpc.cls
12651 \family default
12652  and 
12653 \family typewriter
12654 ws-ijmpd.cls
12655 \family default
12656 , respectively.
12657  These files, together with instructions for the authors, can be downloaded
12658  from the sites 
12659 \begin_inset Flex URL
12660 status collapsed
12661
12662 \begin_layout Plain Layout
12663
12664 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
12665 \end_layout
12666
12667 \end_inset
12668
12669  and 
12670 \begin_inset Flex URL
12671 status collapsed
12672
12673 \begin_layout Plain Layout
12674
12675 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
12676 \end_layout
12677
12678 \end_inset
12679
12680 .
12681  Both packages are modified versions of the standard 
12682 \begin_inset Quotes eld
12683 \end_inset
12684
12685 article
12686 \begin_inset Quotes erd
12687 \end_inset
12688
12689  package, and they are almost (but not exactly) identical.
12690  Most of their features are supported by \SpecialChar LyX
12691 .
12692  I have used \SpecialChar LyX
12693  successfully to write articles submitted to both journals
12694  without any problem.
12695 \end_layout
12696
12697 \begin_layout Subsection
12698 Writing a paper
12699 \end_layout
12700
12701 \begin_layout Standard
12702 As usual, the easiest way to write a paper is to start with a template.
12703  Click on 
12704 \family sans
12705 File\SpecialChar menuseparator
12706 New from
12707 \family default
12708  
12709 \family sans
12710 Template
12711 \family default
12712 , then choose the 
12713 \family typewriter
12714 ijmpc.lyx
12715 \family default
12716  or 
12717 \family typewriter
12718 ijmpd.lyx
12719 \family default
12720  template.
12721  This will give an (almost) empty document that includes the most common
12722  fields found in a manuscript.
12723  Simply overwrite the existing text (including the brackets, 
12724 \family typewriter
12725 <>
12726 \family default
12727 ) with your text.
12728  You should keep in mind the following remarks.
12729 \end_layout
12730
12731 \begin_layout Enumerate
12732 \SpecialChar LyX
12733  won't let you change the font size and the page style of the document,
12734  because such modifications are not allowed by both packages.
12735 \end_layout
12736
12737 \begin_layout Enumerate
12738 The language of the document should not be changed.
12739  Before previewing your paper, be sure that the babel package is not used.
12740  To do this, click on 
12741 \begin_inset Info
12742 type  "menu"
12743 arg   "dialog-show document"
12744 \end_inset
12745
12746  
12747 \family sans
12748 \SpecialChar menuseparator
12749 Language
12750 \family default
12751 , and select 
12752 \begin_inset Quotes eld
12753 \end_inset
12754
12755 None
12756 \begin_inset Quotes erd
12757 \end_inset
12758
12759  as 
12760 \family sans
12761 Language Package
12762 \family default
12763 .
12764 \end_layout
12765
12766 \begin_layout Enumerate
12767 The 
12768 \begin_inset Quotes eld
12769 \end_inset
12770
12771 Keywords
12772 \begin_inset Quotes erd
12773 \end_inset
12774
12775  style must be used to define keywords.
12776 \end_layout
12777
12778 \begin_layout Enumerate
12779 The ijmpc package provides a style named 
12780 \begin_inset Quotes eld
12781 \end_inset
12782
12783 Classification Codes
12784 \begin_inset Quotes erd
12785 \end_inset
12786
12787 , which can be used to define classification codes, such as PACS numbers.
12788  Note that this facility is not supported by the ijmpd package.
12789 \end_layout
12790
12791 \begin_layout Enumerate
12792 Several new environments are available: 
12793 \begin_inset Quotes eld
12794 \end_inset
12795
12796 Definition
12797 \begin_inset Quotes erd
12798 \end_inset
12799
12800
12801 \begin_inset Quotes eld
12802 \end_inset
12803
12804 Step
12805 \begin_inset Quotes erd
12806 \end_inset
12807
12808
12809 \begin_inset Quotes eld
12810 \end_inset
12811
12812 Example
12813 \begin_inset Quotes erd
12814 \end_inset
12815
12816
12817 \begin_inset Quotes eld
12818 \end_inset
12819
12820 Remark
12821 \begin_inset Quotes erd
12822 \end_inset
12823
12824
12825 \begin_inset Quotes eld
12826 \end_inset
12827
12828 Notation
12829 \begin_inset Quotes erd
12830 \end_inset
12831
12832
12833 \begin_inset Quotes eld
12834 \end_inset
12835
12836 Theorem
12837 \begin_inset Quotes erd
12838 \end_inset
12839
12840
12841 \begin_inset Quotes eld
12842 \end_inset
12843
12844 Proof
12845 \begin_inset Quotes erd
12846 \end_inset
12847
12848
12849 \begin_inset Quotes eld
12850 \end_inset
12851
12852 Corollary
12853 \begin_inset Quotes erd
12854 \end_inset
12855
12856
12857 \begin_inset Quotes eld
12858 \end_inset
12859
12860 Lemma
12861 \begin_inset Quotes erd
12862 \end_inset
12863
12864
12865 \begin_inset Quotes eld
12866 \end_inset
12867
12868 Proposition
12869 \begin_inset Quotes erd
12870 \end_inset
12871
12872
12873 \begin_inset Quotes eld
12874 \end_inset
12875
12876 Prop
12877 \begin_inset Quotes erd
12878 \end_inset
12879
12880
12881 \begin_inset Quotes eld
12882 \end_inset
12883
12884 Question
12885 \begin_inset Quotes erd
12886 \end_inset
12887
12888
12889 \begin_inset Quotes eld
12890 \end_inset
12891
12892 Claim
12893 \begin_inset Quotes erd
12894 \end_inset
12895
12896 , and 
12897 \begin_inset Quotes eld
12898 \end_inset
12899
12900 Conjecture
12901 \begin_inset Quotes erd
12902 \end_inset
12903
12904 .
12905  Their use is more or less obvious.
12906  \SpecialChar LyX
12907  supports all these environments; it will use the proper label, text style,
12908  and numbering scheme for each of them.
12909 \end_layout
12910
12911 \begin_layout Enumerate
12912 Both packages use basic citations; the natbib package should not be used.
12913  In \SpecialChar LyX
12914 , citation references are shown as usual; in the output, citations are
12915  shown as superscripts.
12916  If you want to use a citation as normal text, you should use the 
12917 \family typewriter
12918 refcite
12919 \family default
12920  command, e.
12921 \begin_inset space \thinspace{}
12922 \end_inset
12923
12924 g.
12925 \begin_inset space \space{}
12926 \end_inset
12927
12928
12929 \begin_inset Quotes eld
12930 \end_inset
12931
12932 See Ref.
12933 \begin_inset space \space{}
12934 \end_inset
12935
12936
12937 \family typewriter
12938
12939 \backslash
12940 refcite{key}
12941 \family default
12942
12943 \begin_inset Quotes erd
12944 \end_inset
12945
12946 .
12947 \end_layout
12948
12949 \begin_layout Enumerate
12950 There is no 
12951 \begin_inset Quotes eld
12952 \end_inset
12953
12954 Acknowledgments
12955 \begin_inset Quotes erd
12956 \end_inset
12957
12958  section in both packages.
12959  To put acknowledgments, just use the 
12960 \begin_inset Quotes eld
12961 \end_inset
12962
12963 Section*
12964 \begin_inset Quotes erd
12965 \end_inset
12966
12967  environment.
12968 \end_layout
12969
12970 \begin_layout Enumerate
12971 Appendices may be added to the paper, 
12972 \emph on
12973 after
12974 \emph default
12975  the Acknowledgments and 
12976 \shape italic
12977 before
12978 \shape default
12979  the References.
12980  \SpecialChar LyX
12981  provides a special environment, called 
12982 \begin_inset Quotes eld
12983 \end_inset
12984
12985 Appendices Section
12986 \begin_inset Quotes erd
12987 \end_inset
12988
12989  which marks the beginning of the appendices.
12990  This environment should be left blank; it just sends a \SpecialChar LaTeX
12991  command, but nothing
12992  is really printed.
12993  In \SpecialChar LyX
12994 , the word 
12995 \begin_inset Quotes eld
12996 \end_inset
12997
12998 Appendix
12999 \begin_inset Quotes erd
13000 \end_inset
13001
13002  is printed with blue letters, as a signal that all sections after that
13003  point are appendices.
13004  To write an appendix, use the 
13005 \begin_inset Quotes eld
13006 \end_inset
13007
13008 Appendix
13009 \begin_inset Quotes erd
13010 \end_inset
13011
13012  environment.
13013  \SpecialChar LyX
13014  will number each appendix with capital letters, as required by both journals.
13015  Note that 
13016 \begin_inset Quotes eld
13017 \end_inset
13018
13019 Appendices Section
13020 \begin_inset Quotes erd
13021 \end_inset
13022
13023  
13024 \emph on
13025 must
13026 \emph default
13027  be present before the first appendix; if not, all appendices will be numbered
13028  as normal sections in the output.
13029 \end_layout
13030
13031 \begin_layout Enumerate
13032 The ijmpc and the ijmpd packages use the 
13033 \family typewriter
13034 tbl
13035 \family default
13036  command to implement table captions.
13037  As a result, a table created by \SpecialChar LyX
13038  is printed correctly, but its caption
13039  is ignored.
13040  However, you can use some \SpecialChar TeX
13041  code to overcome this problem, so that captions
13042  are printed as expected.
13043  To do so, create a float table as usual, remove the caption, and replace
13044  it with the \SpecialChar TeX
13045  code 
13046 \family typewriter
13047
13048 \backslash
13049 tbl{
13050 \emph on
13051 your table caption
13052 \emph default
13053 }{
13054 \family default
13055  (sic); you must also the \SpecialChar TeX
13056  code 
13057 \family typewriter
13058 }
13059 \family default
13060  immediately after the tabular material.
13061  Study the example table included in the template files to see how this
13062  trick is implemented.
13063  Alternatively, If you need table captions, you should implement the whole
13064  table float in a 
13065 \family typewriter
13066 .tex
13067 \family default
13068  file, then include this file to the \SpecialChar LyX
13069  document (
13070 \family sans
13071 Insert\SpecialChar menuseparator
13072 File\SpecialChar menuseparator
13073 Child
13074 \begin_inset space ~
13075 \end_inset
13076
13077 Document
13078 \family default
13079 ).
13080  Details on how to create a table float can be found in the files 
13081 \family typewriter
13082 ws-ijmpc.tex
13083 \family default
13084  and 
13085 \family typewriter
13086 ws-ijmpd.tex
13087 \family default
13088 , included in the corresponding packages.
13089 \end_layout
13090
13091 \begin_layout Subsection
13092 Preparing a paper for submission
13093 \end_layout
13094
13095 \begin_layout Standard
13096 Before you submit your paper you must export the \SpecialChar LyX
13097  document as a \SpecialChar LaTeX
13098  file (
13099 \family sans
13100 File\SpecialChar menuseparator
13101 Export\SpecialChar menuseparator
13102 \SpecialChar LaTeX
13103
13104 \family default
13105 )
13106 \begin_inset Foot
13107 status open
13108
13109 \begin_layout Plain Layout
13110 Actually you have the choice between \SpecialChar LaTeX
13111  (plain) and pdflatex.
13112  If you intend to use pdflatex to prepare the paper, you should use the
13113  pdflatex option so that included graphics are converted to PDF format,
13114  ready for use by pdflatex.
13115 \end_layout
13116
13117 \end_inset
13118
13119 , then make the following changes to the resulting 
13120 \family typewriter
13121 .tex
13122 \family default
13123  file.
13124 \end_layout
13125
13126 \begin_layout Enumerate
13127 Remove the comment lines before the 
13128 \family typewriter
13129
13130 \backslash
13131 documentclass
13132 \family default
13133  command.
13134 \end_layout
13135
13136 \begin_layout Enumerate
13137 Remove everything between (and including) the 
13138 \family typewriter
13139
13140 \backslash
13141 makeatletter
13142 \family default
13143  and 
13144 \family typewriter
13145
13146 \backslash
13147 makeatother
13148 \family default
13149  commands, except for any commands you specifically put into the \SpecialChar LaTeX
13150  preamble.
13151 \end_layout
13152
13153 \begin_layout Standard
13154 The modified 
13155 \family typewriter
13156 .tex
13157 \family default
13158  file should be saved and processed through \SpecialChar LaTeX
13159  as many times as necessary.
13160  You may also want to check the resulting 
13161 \family typewriter
13162 .dvi
13163 \family default
13164  document.
13165 \end_layout
13166
13167 \begin_layout Section
13168 iopart
13169 \end_layout
13170
13171 \begin_layout Standard
13172 by 
13173 \noun on
13174 Uwe Stöhr
13175 \end_layout
13176
13177 \begin_layout Subsection
13178 Overview
13179 \end_layout
13180
13181 \begin_layout Standard
13182 The iopart package provides a document class to create electronic manuscript
13183  submission to the journals published by the Institute of Physics.
13184  Instructions for the authors how to create a paper using the iopart class
13185  can be downloaded together with the iopart package from the site 
13186 \begin_inset Flex URL
13187 status collapsed
13188
13189 \begin_layout Plain Layout
13190
13191 ftp://ftp.iop.org/pub/journals/latex2e
13192 \end_layout
13193
13194 \end_inset
13195
13196 .
13197 \end_layout
13198
13199 \begin_layout Subsection
13200 Writing a paper
13201 \end_layout
13202
13203 \begin_layout Standard
13204 The easiest way to write a paper is to start with the template 
13205 \emph on
13206 IOP-article.lyx
13207 \emph default
13208  that is available via 
13209 \family sans
13210 File\SpecialChar menuseparator
13211 New From Template
13212 \family default
13213  The template explains how to use the special text environments.
13214  Here are the most important advices:
13215 \end_layout
13216
13217 \begin_layout Itemize
13218 To be able to compile your document to a PDF, PS, or DVI, ensure that the
13219  no AMS packages are loaded in 
13220 \family sans
13221 Document\SpecialChar menuseparator
13222 Settings\SpecialChar menuseparator
13223 Math Options
13224 \family default
13225 !
13226 \end_layout
13227
13228 \begin_layout Itemize
13229
13230 \size normal
13231 The title environment defines the kind of your paper.
13232  So use one of the following environments for the title:
13233 \end_layout
13234
13235 \begin_deeper
13236 \begin_layout Itemize
13237
13238 \family sans
13239 \size normal
13240 Title
13241 \family default
13242  for a Paper
13243 \end_layout
13244
13245 \begin_layout Itemize
13246
13247 \family sans
13248 \size normal
13249 Review
13250 \family default
13251  for a Review
13252 \end_layout
13253
13254 \begin_layout Itemize
13255
13256 \family sans
13257 \size normal
13258 Topical
13259 \family default
13260  for a Topical review
13261 \end_layout
13262
13263 \begin_layout Itemize
13264
13265 \family sans
13266 \size normal
13267 Comment
13268 \family default
13269  for a Comment
13270 \end_layout
13271
13272 \begin_layout Itemize
13273
13274 \family sans
13275 \size normal
13276 Note
13277 \family default
13278  for a Note
13279 \end_layout
13280
13281 \begin_layout Itemize
13282
13283 \family sans
13284 \size normal
13285 Paper
13286 \family default
13287  for a Paper (same as Title)
13288 \end_layout
13289
13290 \begin_layout Itemize
13291
13292 \family sans
13293 \size normal
13294 Prelim
13295 \family default
13296  for a Preliminary communication
13297 \end_layout
13298
13299 \begin_layout Itemize
13300
13301 \family sans
13302 \size normal
13303 Rapid
13304 \family default
13305  for a Rapid communication
13306 \end_layout
13307
13308 \begin_layout Itemize
13309
13310 \family sans
13311 \size normal
13312 Letter
13313 \family default
13314  for a Letter to the editor
13315 \end_layout
13316
13317 \end_deeper
13318 \begin_layout Itemize
13319
13320 \size normal
13321 All title environments except of 
13322 \family sans
13323 Letter
13324 \family default
13325  can have an optional short title.
13326 \end_layout
13327
13328 \begin_layout Itemize
13329 There is a general title environment 
13330 \family sans
13331 Article
13332 \family default
13333  which is not directly supported by \SpecialChar LyX
13334 .
13335  This can be used as \SpecialChar TeX
13336  code when your document doesn't fit into one of the
13337  other title types.
13338 \end_layout
13339
13340 \begin_layout Standard
13341 For more informations like hints for special table and formula formatting,
13342  look at the IOP author guidelines.
13343 \end_layout
13344
13345 \begin_layout Section
13346 Kluwer
13347 \end_layout
13348
13349 \begin_layout Standard
13350 by 
13351 \noun on
13352 Panayotis Papasotiriou
13353 \end_layout
13354
13355 \begin_layout Subsection
13356 Overview
13357 \end_layout
13358
13359 \begin_layout Standard
13360 The Kluwer package is a set of macros produced by Kluwer Academic Publishers
13361  that facilitates electronic manuscript submission to the journals they
13362  publish.
13363  Most known of them (at least in my domain of interest) are 
13364 \emph on
13365 Astrophysics and Space Science
13366 \emph default
13367  and 
13368 \emph on
13369 Solar Physics
13370 \emph default
13371 , but there are many others (see a complete list at 
13372 \begin_inset Flex URL
13373 status collapsed
13374
13375 \begin_layout Plain Layout
13376
13377 http://www.wkap.nl/jrnllist.htm/JRNLHOME
13378 \end_layout
13379
13380 \end_inset
13381
13382 ).
13383  The Kluwer package may be downloaded from the site 
13384 \begin_inset Flex URL
13385 status collapsed
13386
13387 \begin_layout Plain Layout
13388
13389 http://www.wkap.nl/kaphtml.htm/STYLEFILES
13390 \end_layout
13391
13392 \end_inset
13393
13394 .
13395  A complete user guide is contained in that package (but it can also be
13396  downloaded separately).
13397 \end_layout
13398
13399 \begin_layout Standard
13400 \SpecialChar LyX
13401  supports many features of the package but not everything.
13402  However, the \SpecialChar TeX
13403  code needed is reduced to some 
13404 \begin_inset Quotes eld
13405 \end_inset
13406
13407 peculiar
13408 \begin_inset Quotes erd
13409 \end_inset
13410
13411  commands of the package (see
13412 \begin_inset space ~
13413 \end_inset
13414
13415
13416 \begin_inset CommandInset ref
13417 LatexCommand ref
13418 reference "subsec:kluwer_peculiarities"
13419
13420 \end_inset
13421
13422 ).
13423  I have recently used \SpecialChar LyX
13424  to write an article submitted to the 
13425 \emph on
13426 Astrophysics and Space Science
13427 \emph default
13428  without any problem.
13429 \end_layout
13430
13431 \begin_layout Subsection
13432 Writing a paper
13433 \end_layout
13434
13435 \begin_layout Standard
13436 The easiest way to write a paper is to start with the Kluwer template file.
13437  Click on 
13438 \family sans
13439 File\SpecialChar menuseparator
13440 New from
13441 \family default
13442  
13443 \family sans
13444 Template
13445 \family default
13446 , then choose the 
13447 \family typewriter
13448 kluwer.lyx
13449 \family default
13450  template.
13451  This will give an (almost) empty document that includes the most common
13452  fields found in a manuscript and a short description of their use.
13453  As in most templates, simply overwrite the existing text (including the
13454  brackets, 
13455 \family typewriter
13456 <>
13457 \family default
13458 ) with the correct information.
13459 \end_layout
13460
13461 \begin_layout Subsection
13462 Preparing a paper for submission
13463 \end_layout
13464
13465 \begin_layout Standard
13466 As in the AAS\SpecialChar TeX
13467  package, before you submit your paper to a journal you must
13468  
13469 \begin_inset Quotes eld
13470 \end_inset
13471
13472 postprocess
13473 \begin_inset Quotes erd
13474 \end_inset
13475
13476  it as follows.
13477 \end_layout
13478
13479 \begin_layout Enumerate
13480 Export your paper as a \SpecialChar LaTeX
13481  file.
13482  To do this, click on 
13483 \family sans
13484 File\SpecialChar menuseparator
13485 Export\SpecialChar menuseparator
13486 \SpecialChar LaTeX
13487
13488 \family default
13489 .
13490  
13491 \end_layout
13492
13493 \begin_layout Enumerate
13494 Edit the resulting 
13495 \family typewriter
13496 .tex
13497 \family default
13498  file with a text editor and make the following changes
13499 \end_layout
13500
13501 \begin_deeper
13502 \begin_layout Enumerate
13503 remove the comment lines before the 
13504 \family typewriter
13505
13506 \backslash
13507 documentclass
13508 \family default
13509  command,
13510 \end_layout
13511
13512 \begin_layout Enumerate
13513 remove everything between (and including) the 
13514 \family typewriter
13515
13516 \backslash
13517 makeatletter
13518 \family default
13519  and 
13520 \family typewriter
13521
13522 \backslash
13523 makeatother
13524 \family default
13525  commands, except for any commands you specifically put into the \SpecialChar LaTeX
13526  preamble.
13527 \end_layout
13528
13529 \begin_layout Standard
13530 Save the resulting 
13531 \family typewriter
13532 .tex
13533 \family default
13534  file.
13535 \end_layout
13536
13537 \end_deeper
13538 \begin_layout Enumerate
13539 Run the 
13540 \family typewriter
13541 .tex
13542 \family default
13543  file through \SpecialChar LaTeX
13544  as many times as necessary (usually up to three).
13545 \end_layout
13546
13547 \begin_layout Enumerate
13548 View the resulting 
13549 \family typewriter
13550 .dvi
13551 \family default
13552  document using, e.
13553 \begin_inset space \thinspace{}
13554 \end_inset
13555
13556 g.
13557 \begin_inset space \space{}
13558 \end_inset
13559
13560
13561 \family sans
13562 xdvi
13563 \family default
13564 , and check if everything is OK (it should, if you didn't make any mistake).
13565 \end_layout
13566
13567 \begin_layout Subsection
13568 \begin_inset Quotes eld
13569 \end_inset
13570
13571 Peculiarities
13572 \begin_inset Quotes erd
13573 \end_inset
13574
13575  of the Kluwer package
13576 \begin_inset CommandInset label
13577 LatexCommand label
13578 name "subsec:kluwer_peculiarities"
13579
13580 \end_inset
13581
13582
13583 \end_layout
13584
13585 \begin_layout Standard
13586 The Kluwer package has the following 
13587 \begin_inset Quotes eld
13588 \end_inset
13589
13590 peculiarities
13591 \begin_inset Quotes erd
13592 \end_inset
13593
13594 .
13595 \end_layout
13596
13597 \begin_layout Enumerate
13598 It is possible to write multiple articles in the same \SpecialChar LaTeX
13599  file
13600 \begin_inset Foot
13601 status collapsed
13602
13603 \begin_layout Plain Layout
13604 I can't imagine any good reason to do this.
13605 \end_layout
13606
13607 \end_inset
13608
13609 .
13610  Each article must be included in the environment 
13611 \begin_inset Quotes eld
13612 \end_inset
13613
13614 article
13615 \begin_inset Quotes erd
13616 \end_inset
13617
13618 .
13619  Unfortunately, this environment cannot be omitted, even if you write just
13620  one article.
13621  Therefore, each article starts with the command 
13622 \family typewriter
13623
13624 \backslash
13625 begin{article}
13626 \family default
13627  and, obviously, ends with the command 
13628 \family typewriter
13629
13630 \backslash
13631 end{article}
13632 \family default
13633 .
13634  Although this can be implemented in \SpecialChar LyX
13635 , I didn't included it, since it looks
13636  ugly and can confuse the novice user.
13637  Therefore, you need to enter them directly and mark them as \SpecialChar LaTeX
13638  code (the
13639  well-known 
13640 \begin_inset Quotes eld
13641 \end_inset
13642
13643 \SpecialChar TeX
13644  code
13645 \begin_inset Quotes erd
13646 \end_inset
13647
13648 ).
13649 \end_layout
13650
13651 \begin_layout Enumerate
13652 Information given at the beginning of the article (i.
13653 \begin_inset space \thinspace{}
13654 \end_inset
13655
13656 e.
13657 \begin_inset space \space{}
13658 \end_inset
13659
13660 title, subtitle, author, institution, running title, running author, abstract
13661  and keywords) must be included in an environment called 
13662 \begin_inset Quotes eld
13663 \end_inset
13664
13665 opening
13666 \begin_inset Quotes erd
13667 \end_inset
13668
13669 .
13670  This is not implemented in \SpecialChar LyX
13671 , so you must enter title, subtitle etc.
13672 \begin_inset space ~
13673 \end_inset
13674
13675 between two \SpecialChar TeX
13676  code lines (
13677 \family typewriter
13678
13679 \backslash
13680 begin{opening}
13681 \family default
13682  and 
13683 \family typewriter
13684
13685 \backslash
13686 end{opening}
13687 \family default
13688 ).
13689 \end_layout
13690
13691 \begin_layout Enumerate
13692 According to the user manual, the label of each bibliography item must be
13693  written as 
13694 \family typewriter
13695
13696 \backslash
13697 protect
13698 \backslash
13699 citeauthoryear{
13700 \family default
13701 \emph on
13702 author(s)
13703 \family typewriter
13704 \emph default
13705 }{
13706 \family default
13707 \emph on
13708 year
13709 \family typewriter
13710 \emph default
13711 }
13712 \family default
13713 .
13714 \end_layout
13715
13716 \begin_layout Standard
13717 The 
13718 \family typewriter
13719 kluwer.lyx
13720 \family default
13721  template takes care of all these 
13722 \begin_inset Quotes eld
13723 \end_inset
13724
13725 peculiarities
13726 \begin_inset Quotes erd
13727 \end_inset
13728
13729 .
13730  If you start a new paper using this template you don't need to do anything
13731  special.
13732  Just 
13733 \end_layout
13734
13735 \begin_layout Enumerate
13736 don't delete the \SpecialChar TeX
13737  code included in the template, and
13738 \end_layout
13739
13740 \begin_layout Enumerate
13741 copy the example bibliography item included in the template and modify it
13742  as necessary to enter new bibliography items.
13743 \end_layout
13744
13745 \begin_layout Section
13746 Koma-Script
13747 \end_layout
13748
13749 \begin_layout Standard
13750 by 
13751 \noun on
13752 Bernd Rellermeyer
13753 \end_layout
13754
13755 \begin_layout Subsection
13756 Overview
13757 \end_layout
13758
13759 \begin_layout Standard
13760 The \SpecialChar LyX
13761  document classes 
13762 \emph on
13763 article (koma-script)
13764 \emph default
13765
13766 \emph on
13767 report (koma-script)
13768 \emph default
13769
13770 \emph on
13771 book
13772 \emph default
13773  
13774 \emph on
13775 (koma-script)
13776 \emph default
13777 , and 
13778 \emph on
13779 letter
13780 \emph default
13781  
13782 \emph on
13783 (koma-script)
13784 \emph default
13785  correspond to the \SpecialChar LaTeX
13786  document classes 
13787 \family typewriter
13788 scrartcl.cls
13789 \family default
13790
13791 \family typewriter
13792 scrreprt.cls
13793 \family default
13794
13795 \family typewriter
13796 scrbook.cls
13797 \family default
13798 , and 
13799 \family typewriter
13800 scrlettr.cls
13801 \family default
13802 , resp.
13803 \begin_inset space ~
13804 \end_inset
13805
13806 of the Koma-Script family.
13807  They are replacements for the standard document classes 
13808 \family typewriter
13809 article.cls
13810 \family default
13811
13812 \family typewriter
13813 report.cls
13814 \family default
13815
13816 \family typewriter
13817 book.cls
13818 \family default
13819  and 
13820 \family typewriter
13821 letter.cls
13822 \family default
13823 , resp., and fit better to European typography conventions in a number of
13824  points.
13825 \end_layout
13826
13827 \begin_layout Itemize
13828 Standard character size is 11pt in 
13829 \emph on
13830 article (koma-script)
13831 \emph default
13832
13833 \emph on
13834 report (koma-script)
13835 \emph default
13836 , and 
13837 \emph on
13838 book (koma-script)
13839 \emph default
13840 , and 12pt in 
13841 \emph on
13842 letter (koma-script)
13843 \emph default
13844 .
13845 \end_layout
13846
13847 \begin_layout Itemize
13848 Headings, labels of the description environment, and a number of elements
13849  of the 
13850 \emph on
13851 letter (koma-script)
13852 \emph default
13853  document class are set in a bold sans serif font.
13854 \begin_inset Foot
13855 status collapsed
13856
13857 \begin_layout Plain Layout
13858 There is a big difference between the bold sans serif old cm fonts and new
13859  ec fonts, especially in the appearance of headings.
13860  In comparison, the ec bold sans serif fonts look a bit thin.
13861  Here the \SpecialChar LaTeX
13862  package 
13863 \family typewriter
13864 cmsd.sty by
13865 \family default
13866  
13867 \shape smallcaps
13868 Walter Schmidt
13869 \shape default
13870  helps to produce the 
13871 \begin_inset Quotes eld
13872 \end_inset
13873
13874 usual
13875 \begin_inset Quotes erd
13876 \end_inset
13877
13878  appearance when using the ec fonts.
13879 \end_layout
13880
13881 \end_inset
13882
13883  The numbering of chapter headings is made in the same way as the numbering
13884  of section headings, that is without the extra line 
13885 \begin_inset Quotes eld
13886 \end_inset
13887
13888 Chapter\SpecialChar ldots
13889
13890 \begin_inset Quotes erd
13891 \end_inset
13892
13893 .
13894  In addition, the appearance of the headings can be modified by using a
13895  number of options (in \SpecialChar LyX
13896  to be entered in the field 
13897 \family sans
13898 Extra
13899 \begin_inset space ~
13900 \end_inset
13901
13902 Options
13903 \family default
13904  of the dialog 
13905 \family sans
13906 Layout\SpecialChar menuseparator
13907 Document
13908 \family default
13909 ).
13910  
13911 \end_layout
13912
13913 \begin_layout Itemize
13914 The main means in the Koma-Script document classes to design the type area
13915  are the options 
13916 \family sans
13917 BCOR
13918 \family default
13919  and 
13920 \family sans
13921 DIV
13922 \family default
13923  (in \SpecialChar LyX
13924  to be entered in the extra class options field in the dialog 
13925 \family sans
13926 Document\SpecialChar menuseparator
13927 Settings
13928 \family default
13929 ).
13930  They make a clearer modification of page margins possible as do the options
13931  of the dialog 
13932 \family sans
13933 Document\SpecialChar menuseparator
13934 Settings
13935 \family default
13936 .
13937  
13938 \end_layout
13939
13940 \begin_layout Itemize
13941 The \SpecialChar LaTeX
13942  document classes of the Koma-Script family define a number of additional
13943  commands.
13944  Those part of it which makes sense in \SpecialChar LyX
13945  is implemented in corresponding
13946  paragraph types.
13947 \end_layout
13948
13949 \begin_layout Standard
13950 Detailed descriptions of the \SpecialChar LaTeX
13951  document classes of the Koma-Script family
13952  can be found in the Koma-Script documentation 
13953 \emph on
13954 scrguide
13955 \emph default
13956  (German) and 
13957 \emph on
13958 scrguien
13959 \emph default
13960  (English).
13961 \end_layout
13962
13963 \begin_layout Subsection
13964 article (koma-script), report (koma-script), and book (koma-script)
13965 \end_layout
13966
13967 \begin_layout Standard
13968 The document classes 
13969 \emph on
13970 article (koma-script)
13971 \emph default
13972
13973 \emph on
13974 report (koma-script)
13975 \emph default
13976 , and 
13977 \emph on
13978 book
13979 \emph default
13980  
13981 \emph on
13982 (koma-script)
13983 \emph default
13984  are implemented in the layout files 
13985 \family typewriter
13986 scrartcl.layout
13987 \family default
13988
13989 \family typewriter
13990 scrreprt.layout
13991 \family default
13992 , and 
13993 \family typewriter
13994 scrbook.layout
13995 \family default
13996 , resp.
13997  They contain all the paragraph types of the corresponding standard document
13998  classes 
13999 \emph on
14000 article
14001 \emph default
14002
14003 \emph on
14004 report
14005 \emph default
14006 , and 
14007 \emph on
14008 book
14009 \emph default
14010 , resp., partly modified, with the exception of the \SpecialChar LyX
14011  specific 
14012 \family sans
14013 List
14014 \family default
14015 -type, which is replaced by the new 
14016 \family sans
14017 Labeling
14018 \family default
14019 -type having the same functionality.
14020  Beside the 
14021 \family sans
14022 Labeling
14023 \family default
14024 -Type there is a number of new paragraph types added.
14025  They are 
14026 \emph on
14027 not
14028 \emph default
14029  part of 
14030 \emph on
14031 letter (koma-script)
14032 \emph default
14033 .
14034 \end_layout
14035
14036 \begin_layout Itemize
14037
14038 \family sans
14039 Addpart, Addchap
14040 \family default
14041
14042 \family sans
14043 Addsec
14044 \family default
14045 : are equivalents to 
14046 \family sans
14047 Part*, Chapter*
14048 \family default
14049  and 
14050 \family sans
14051 Section*
14052 \family default
14053 , resp., additionally inserting an entry in the table of contents.
14054  
14055 \family sans
14056 Addpart
14057 \family default
14058  and 
14059 \family sans
14060 Addchap
14061 \family default
14062  are not contained in 
14063 \emph on
14064 article (koma-script)
14065 \emph default
14066 .
14067 \end_layout
14068
14069 \begin_layout Itemize
14070
14071 \family sans
14072 Addchap*
14073 \family default
14074
14075 \family sans
14076 Addsec*
14077 \family default
14078 : behave exactly as 
14079 \family sans
14080 Addchap
14081 \family default
14082  and 
14083 \family sans
14084 Addsec
14085 \family default
14086 , resp., additionally clearing running heads.
14087  
14088 \family sans
14089 Addchap*
14090 \family default
14091  is not contained in 
14092 \emph on
14093 article (koma-script)
14094 \emph default
14095 .
14096 \begin_inset Foot
14097 status collapsed
14098
14099 \begin_layout Plain Layout
14100 There is also an 
14101 \family typewriter
14102
14103 \backslash
14104 addpart*
14105 \family default
14106  command in 
14107 \emph on
14108 book (koma-script)
14109 \emph default
14110  and in 
14111 \emph on
14112 report (koma-script)
14113 \emph default
14114 , but since this is identical to 
14115 \family sans
14116 Part*
14117 \family default
14118 , is has not been implemented in \SpecialChar LyX
14119 .
14120 \end_layout
14121
14122 \end_inset
14123
14124
14125 \end_layout
14126
14127 \begin_layout Itemize
14128
14129 \family sans
14130 Minisec
14131 \family default
14132 : generates a heading directly above the following paragraph in the standard
14133  character size without affecting the structure of the document.
14134 \end_layout
14135
14136 \begin_layout Itemize
14137
14138 \family sans
14139 Captionabove
14140 \family default
14141  and 
14142 \family sans
14143 Captionbelow
14144 \family default
14145  are special captions which respect the different space settings needed
14146  for captions placed above or below an element (if you follow strict typographic
14147  rules, you might want to place table captions always above the table).
14148  You can also use the class option 
14149 \family typewriter
14150 tablecaptionsabove
14151 \family default
14152 , which will switch 
14153 \family sans
14154 caption
14155 \family default
14156  to 
14157 \family sans
14158 captionabove
14159 \family default
14160  for tables and 
14161 \family sans
14162 captionbelow
14163 \family default
14164  for figures.
14165  You need at least Koma-Script version 2.8q to use this.
14166 \end_layout
14167
14168 \begin_layout Itemize
14169
14170 \family sans
14171 Dictum
14172 \family default
14173 : can be used to set a bonmot, e.
14174 \begin_inset space \thinspace{}
14175 \end_inset
14176
14177 g.
14178 \begin_inset space \space{}
14179 \end_inset
14180
14181 at the beginning of a chapter.
14182  If you use the optional argument (
14183 \family sans
14184 Insert\SpecialChar menuseparator
14185 Dictum
14186 \begin_inset space ~
14187 \end_inset
14188
14189 Author
14190 \family default
14191 ), you can insert the dictum's author there.
14192  Dictum and author are separated by a line.
14193  You need at least Koma-Script version 2.8q to use this.
14194  
14195 \family sans
14196 Dictum
14197 \family default
14198  is not contained in 
14199 \emph on
14200 article (koma-script)
14201 \emph default
14202 .
14203 \end_layout
14204
14205 \begin_layout Standard
14206 The following types, together with the standard types 
14207 \family sans
14208 Title
14209 \family default
14210
14211 \family sans
14212 Author
14213 \family default
14214 , and 
14215 \family sans
14216 Date
14217 \family default
14218 , form the title area of the document.
14219  They must be entered ahead of the first 
14220 \begin_inset Quotes eld
14221 \end_inset
14222
14223 ordinary
14224 \begin_inset Quotes erd
14225 \end_inset
14226
14227  paragraph.
14228 \begin_inset Foot
14229 status collapsed
14230
14231 \begin_layout Plain Layout
14232 The corresponding \SpecialChar LaTeX
14233  commands must appear before the 
14234 \family typewriter
14235
14236 \backslash
14237 maketitle
14238 \family default
14239  command.
14240 \end_layout
14241
14242 \end_inset
14243
14244  When such a type is used more than once, the latter usage overwrites the
14245  former one, that means, for every type only the latest usage is valid.
14246  The order of the different types however has, like 
14247 \family sans
14248 Title
14249 \family default
14250
14251 \family sans
14252 Author
14253 \family default
14254 , and 
14255 \family sans
14256 Date
14257 \family default
14258 , no effect on the appearance of the produced document.
14259 \end_layout
14260
14261 \begin_layout Itemize
14262
14263 \family sans
14264 Subject
14265 \family default
14266 : produces a centered paragraph above the ordinary title (
14267 \family sans
14268 Title
14269 \family default
14270
14271 \family sans
14272 Author
14273 \family default
14274
14275 \family sans
14276 Date
14277 \family default
14278 ) for the subject of the document.
14279 \end_layout
14280
14281 \begin_layout Itemize
14282
14283 \family sans
14284 Publishers
14285 \family default
14286 : produces a centered paragraph below the ordinary title (
14287 \family sans
14288 Title
14289 \family default
14290
14291 \family sans
14292 Author
14293 \family default
14294
14295 \family sans
14296 Date
14297 \family default
14298 ) for the publishers' name.
14299 \end_layout
14300
14301 \begin_layout Itemize
14302
14303 \family sans
14304 Dedication
14305 \family default
14306 : in 
14307 \emph on
14308 report (koma-script)
14309 \emph default
14310  and 
14311 \emph on
14312 book (koma-script)
14313 \emph default
14314  produces a centered paragraph on its own page behind the title page, or
14315  in 
14316 \emph on
14317 article (koma-script)
14318 \emph default
14319  produces a centered paragraph below the ordinary title (
14320 \family sans
14321 Title
14322 \family default
14323
14324 \family sans
14325 Author
14326 \family default
14327
14328 \family sans
14329 Date
14330 \family default
14331
14332 \family sans
14333 Publishers
14334 \family default
14335 ) for a dedication.
14336 \end_layout
14337
14338 \begin_layout Itemize
14339
14340 \family sans
14341 Titlehead
14342 \family default
14343 : produces a left aligned paragraph above the ordinary title (
14344 \family sans
14345 Title
14346 \family default
14347
14348 \family sans
14349 Author
14350 \family default
14351
14352 \family sans
14353 Date
14354 \family default
14355
14356 \family sans
14357 Subject
14358 \family default
14359 ) for a document`s head.
14360 \end_layout
14361
14362 \begin_layout Itemize
14363
14364 \family sans
14365 Uppertitleback
14366 \family default
14367 : produces in a double-sided print in 
14368 \emph on
14369 report (koma-script)
14370 \emph default
14371  and 
14372 \emph on
14373 book (koma-script)
14374 \emph default
14375  a left-aligned paragraph at the top of the title page`s back or has no
14376  effect in a single-sided print or in 
14377 \emph on
14378 article (koma-script)
14379 \emph default
14380 .
14381 \end_layout
14382
14383 \begin_layout Itemize
14384
14385 \family sans
14386 Lowertitleback
14387 \family default
14388 : produces in a double-sided print in 
14389 \emph on
14390 report (koma-script)
14391 \emph default
14392  and 
14393 \emph on
14394 book (koma-script)
14395 \emph default
14396  a left-aligned paragraph at the bottom of the title page`s back or has
14397  no effect in a single-sided print or in 
14398 \emph on
14399 article (koma-script)
14400 \emph default
14401 .
14402 \end_layout
14403
14404 \begin_layout Itemize
14405
14406 \family sans
14407 Extratitle
14408 \family default
14409 : produces a special 
14410 \begin_inset Quotes eld
14411 \end_inset
14412
14413 dirty
14414 \begin_inset Quotes erd
14415 \end_inset
14416
14417  page ahead of the actual document containing a paragraph without special
14418  formatting.
14419 \end_layout
14420
14421 \begin_layout Standard
14422 The layout files for the document classes 
14423 \emph on
14424 article (koma-script)
14425 \emph default
14426
14427 \emph on
14428 report (koma-script)
14429 \emph default
14430 , and 
14431 \emph on
14432 book (koma-script)
14433 \emph default
14434  do include the file 
14435 \family typewriter
14436 scrmacros.inc
14437 \family default
14438 .
14439  This is thought of as a place to define your own types.
14440  Copy scrmacros
14441 \family typewriter
14442 .inc
14443 \family default
14444  in your personal layout directory and edit the file!
14445 \end_layout
14446
14447 \begin_layout Subsection
14448 letter (koma-script)
14449 \end_layout
14450
14451 \begin_layout Description
14452 Note: This section discusses the obsolete 
14453 \family sans
14454 KOMA-Script-Letter (v.
14455 \begin_inset space ~
14456 \end_inset
14457
14458 1)
14459 \family default
14460 , which is not even included anymore in recent KOMA releases.
14461  Please refer to the next section for the current KOMA-Script-Letter class
14462  (v.
14463 \begin_inset space ~
14464 \end_inset
14465
14466 2)!
14467 \end_layout
14468
14469 \begin_layout Standard
14470 \noindent
14471 The document class 
14472 \emph on
14473 letter (koma-script)
14474 \emph default
14475  is implemented in the layout file 
14476 \family typewriter
14477 scrlettr.layout
14478 \family default
14479 .
14480  It contains all the paragraph types of the corresponding standard document
14481  class 
14482 \emph on
14483 letter
14484 \emph default
14485 , partly modified, with the exception of the \SpecialChar LyX
14486  specific types 
14487 \family sans
14488 \SpecialChar LyX
14489 -Code
14490 \family default
14491  and 
14492 \family sans
14493 Comment
14494 \family default
14495  and the 
14496 \family sans
14497 List
14498 \family default
14499  type, which is replaced by the new 
14500 \family sans
14501 Labeling
14502 \family default
14503  type.
14504  In addition, it contains, in contrast to the standard document class, the
14505  standard types 
14506 \family sans
14507 \SpecialChar LaTeX
14508
14509 \family default
14510
14511 \family sans
14512 Quotation
14513 \family default
14514
14515 \family sans
14516 Quote
14517 \family default
14518 , and 
14519 \family sans
14520 Verse
14521 \family default
14522 .
14523  Furthermore, there are a number of new letter specific types.
14524 \end_layout
14525
14526 \begin_layout Standard
14527 The appearance of the letter produced by this document class can be controlled
14528  by a number of \SpecialChar LaTeX
14529  commands, which you can put in the \SpecialChar LaTeX
14530  preamble.
14531 \begin_inset Foot
14532 status collapsed
14533
14534 \begin_layout Plain Layout
14535 For example, the standard appearance of the letter`s heading, consisting
14536  of name and address, is quite self-willed.
14537  An 
14538 \begin_inset Quotes eld
14539 \end_inset
14540
14541 ordinary
14542 \begin_inset Quotes erd
14543 \end_inset
14544
14545  heading is produced by the following \SpecialChar LaTeX
14546  commands in the preamble:
14547 \end_layout
14548
14549 \begin_layout LyX-Code
14550
14551 \backslash
14552 firsthead{
14553 \backslash
14554 parbox[b]{
14555 \backslash
14556 textwidth}
14557 \end_layout
14558
14559 \begin_layout LyX-Code
14560   {
14561 \backslash
14562 ignorespaces 
14563 \backslash
14564 fromname
14565 \backslash
14566
14567 \backslash
14568  
14569 \backslash
14570 ignorespaces 
14571 \backslash
14572 fromaddress}} 
14573 \end_layout
14574
14575 \begin_layout LyX-Code
14576
14577 \backslash
14578 nexthead{
14579 \backslash
14580 parbox[b]{
14581 \backslash
14582 textwidth}
14583 \end_layout
14584
14585 \begin_layout LyX-Code
14586   {
14587 \backslash
14588 ignorespaces 
14589 \backslash
14590 fromname 
14591 \backslash
14592 hfill 
14593 \backslash
14594 ignorespaces 
14595 \backslash
14596 pagename
14597 \backslash
14598  
14599 \backslash
14600 thepage}}
14601 \end_layout
14602
14603 \end_inset
14604
14605  A detailed German description of such \SpecialChar LaTeX
14606  commands can be found in the Koma-Script
14607  documentation 
14608 \emph on
14609 scrguide
14610 \emph default
14611 .
14612  With it, the letter's author can produce his personal letter layout.
14613 \end_layout
14614
14615 \begin_layout Standard
14616 The types 
14617 \family sans
14618 Letter
14619 \family default
14620  and 
14621 \family sans
14622 Opening
14623 \family default
14624  define the beginning of the letter and must be used in every letter.
14625  To emphasize them in the \SpecialChar LyX
14626  document class, they are marked with the letter
14627  
14628 \shape italic
14629 L
14630 \shape default
14631  or 
14632 \shape italic
14633 O
14634 \shape default
14635 , resp.
14636 \begin_inset space ~
14637 \end_inset
14638
14639 in the left margin.
14640  It is possible to write any number of letters in one file.
14641  An 
14642 \family sans
14643 Opening
14644 \family default
14645  type produces a new letter using the same addressee and a 
14646 \family sans
14647 Letter
14648 \family default
14649  type produces a new addressee.
14650  The types 
14651 \family sans
14652 Closing
14653 \family default
14654
14655 \family sans
14656 PS
14657 \family default
14658
14659 \family sans
14660 CC
14661 \family default
14662 , and 
14663 \family sans
14664 Encl
14665 \family default
14666  are ordinary paragraph types and can also be used several times in one
14667  and the same letter.
14668 \end_layout
14669
14670 \begin_layout Itemize
14671
14672 \family sans
14673 Letter
14674 \family default
14675 : produces a paragraph for the addressee and implicitly defines the beginning
14676  of the letter.
14677 \end_layout
14678
14679 \begin_layout Itemize
14680
14681 \family sans
14682 Opening
14683 \family default
14684 : produces a paragraph for the form of address and implicitly produces a
14685  new letter.
14686 \end_layout
14687
14688 \begin_layout Itemize
14689
14690 \family sans
14691 Closing
14692 \family default
14693 : produces a paragraph for a close.
14694 \end_layout
14695
14696 \begin_layout Itemize
14697
14698 \family sans
14699 PS
14700 \family default
14701 : produces a paragraph for a postscript.
14702 \end_layout
14703
14704 \begin_layout Itemize
14705
14706 \family sans
14707 CC
14708 \family default
14709 : produces a paragraph for a distribution list.
14710 \end_layout
14711
14712 \begin_layout Itemize
14713
14714 \family sans
14715 Encl
14716 \family default
14717 : produces a paragraph for enclosures.
14718 \end_layout
14719
14720 \begin_layout Standard
14721 The types 
14722 \family sans
14723 Name
14724 \family default
14725
14726 \family sans
14727 Signature
14728 \family default
14729
14730 \family sans
14731 Address
14732 \family default
14733
14734 \family sans
14735 Telephone
14736 \family default
14737
14738 \family sans
14739 Place
14740 \family default
14741
14742 \family sans
14743 Backaddress
14744 \family default
14745
14746 \family sans
14747 Specialmail
14748 \family default
14749
14750 \family sans
14751 Location
14752 \family default
14753
14754 \family sans
14755 Title
14756 \family default
14757 , and 
14758 \family sans
14759 Subject
14760 \family default
14761  are input types provided with a label to enter information, which will
14762  be processed by the document class.
14763 \begin_inset Foot
14764 status collapsed
14765
14766 \begin_layout Plain Layout
14767 It could be seen as a matter of inconsequence, that the types 
14768 \family sans
14769 Letter
14770 \family default
14771  and 
14772 \family sans
14773 Opening
14774 \family default
14775  described above are not such input types as well.
14776  Because of the special meaning of those types, however, I have implemented
14777  them as ordinary paragraph types with a one letter mark in the left margin.
14778  Moreover, it would affect my feeling of symmetry, if the 
14779 \family sans
14780 Opening
14781 \family default
14782  type and the 
14783 \family sans
14784 Closing
14785 \family default
14786  type had such a serious different appearance.
14787 \end_layout
14788
14789 \end_inset
14790
14791  The types must be used ahead of the corresponding 
14792 \family sans
14793 Opening
14794 \family default
14795  type.
14796 \end_layout
14797
14798 \begin_layout Standard
14799 An implementation of these types in a WYSIWYG fashion does not seem to make
14800  sense, because the real appearance of the produced letter does not only
14801  depend on the usage of the particular type, but also on other factors.
14802  For example, a signature entered in the 
14803 \family sans
14804 Signature
14805 \family default
14806  type will in the standard behavior appear in the produced letter only,
14807  when in the same letter also a 
14808 \family sans
14809 Closing
14810 \family default
14811  type is used.
14812  The entered value of the 
14813 \family sans
14814 Telephone
14815 \family default
14816  type will in the standard behavior not appear in the produced letter at
14817  all.
14818  The possibility to design the letter`s heading freely is already indicated
14819  in a footnote above.
14820 \end_layout
14821
14822 \begin_layout Standard
14823 The input types can also be used as empty paragraphs.
14824  This makes sense e.
14825 \begin_inset space \thinspace{}
14826 \end_inset
14827
14828 g.
14829 \begin_inset space \space{}
14830 \end_inset
14831
14832 for the 
14833 \family sans
14834 Signature
14835 \family default
14836  type.
14837  If the 
14838 \family sans
14839 Signature
14840 \family default
14841  type is not used at all, in the standard behavior the value of the 
14842 \family sans
14843 Name
14844 \family default
14845  type is used as signature, whereas if an empty 
14846 \family sans
14847 Signature
14848 \family default
14849  type is used, no signature value is defined.
14850 \end_layout
14851
14852 \begin_layout Standard
14853 By using the input types it is possible to write a letter template, containing
14854  filled input types with your personal dates (name, address, etc.) and empty
14855  input types for other dates you want to enter.
14856 \end_layout
14857
14858 \begin_layout Itemize
14859
14860 \family sans
14861 Name
14862 \family default
14863 : sender's name, in the standard behavior appears as a centered paragraph
14864  in small caps in the letter`s heading.
14865 \end_layout
14866
14867 \begin_layout Itemize
14868
14869 \family sans
14870 Signature
14871 \family default
14872 : sender's signature, in the standard behavior appears below the 
14873 \family sans
14874 Closing
14875 \family default
14876  type.
14877  If no 
14878 \family sans
14879 Signature
14880 \family default
14881  type is used, the value of the 
14882 \family sans
14883 Name
14884 \family default
14885  type appears instead.
14886 \end_layout
14887
14888 \begin_layout Itemize
14889
14890 \family sans
14891 Address
14892 \family default
14893 : sender's address, in the standard behavior appears in a centered paragraph
14894  in the letter`s heading below the sender's name.
14895 \end_layout
14896
14897 \begin_layout Itemize
14898
14899 \family sans
14900 Telephone
14901 \family default
14902 : sender's telephone number, in the standard behavior only sets the \SpecialChar LaTeX
14903  variable
14904  
14905 \family typewriter
14906
14907 \backslash
14908 telephonenum
14909 \family default
14910 .
14911 \end_layout
14912
14913 \begin_layout Itemize
14914
14915 \family sans
14916 Place
14917 \family default
14918 : place of the letter`s making.
14919 \end_layout
14920
14921 \begin_layout Itemize
14922
14923 \family sans
14924 Date
14925 \family default
14926 : date of the letter`s making.
14927  
14928 \family sans
14929 Place
14930 \family default
14931  and 
14932 \family sans
14933 Date
14934 \family default
14935 , in the standard behavior, produce the place and the date in a right-aligned
14936  line below the addressee's field.
14937  If an empty 
14938 \family sans
14939 Date
14940 \family default
14941  type is used, neither place nor date appear, independent of the value of
14942  the 
14943 \family sans
14944 Place
14945 \family default
14946  type.
14947  If no 
14948 \family sans
14949 Date
14950 \family default
14951  type is used, the date of the letter `s production is used.
14952 \end_layout
14953
14954 \begin_layout Itemize
14955
14956 \family sans
14957 Backaddress
14958 \family default
14959 : sender`s back address, in the standard behavior appears above the addressee's
14960  field in a small sans serif font.
14961 \end_layout
14962
14963 \begin_layout Itemize
14964
14965 \family sans
14966 Specialmail
14967 \family default
14968 : special mail information, in the standard behavior appears underlined
14969  above the addressee's field below the back address.
14970 \end_layout
14971
14972 \begin_layout Itemize
14973
14974 \family sans
14975 Location
14976 \family default
14977 : additional information, in the standard behavior appears on right side
14978  below the addressee`s field.
14979 \end_layout
14980
14981 \begin_layout Itemize
14982
14983 \family sans
14984 Title
14985 \family default
14986 : the letter's title, in the standard behavior appears in a big, bold, sans
14987  serif font above the subject.
14988 \end_layout
14989
14990 \begin_layout Itemize
14991
14992 \family sans
14993 Subject
14994 \family default
14995 : the letter's subject, in the standard behavior appears in a bold font
14996  above the 
14997 \family sans
14998 Opening
14999 \family default
15000  paragraph.
15001 \end_layout
15002
15003 \begin_layout Standard
15004 The types 
15005 \family sans
15006 Yourref
15007 \family default
15008
15009 \family sans
15010 Yourmail
15011 \family default
15012
15013 \family sans
15014 Myref
15015 \family default
15016
15017 \family sans
15018 Customer
15019 \family default
15020 , and 
15021 \family sans
15022 Invoice
15023 \family default
15024  produce a business letter like line above the 
15025 \family sans
15026 Title
15027 \family default
15028  line containing the fields 
15029 \begin_inset Quotes eld
15030 \end_inset
15031
15032 Your ref.
15033 \begin_inset Quotes erd
15034 \end_inset
15035
15036
15037 \begin_inset Quotes eld
15038 \end_inset
15039
15040 Your letter of
15041 \begin_inset Quotes erd
15042 \end_inset
15043
15044
15045 \begin_inset Quotes eld
15046 \end_inset
15047
15048 Our ref.
15049 \begin_inset Quotes erd
15050 \end_inset
15051
15052
15053 \begin_inset Quotes eld
15054 \end_inset
15055
15056 Customer no.
15057 \begin_inset Quotes erd
15058 \end_inset
15059
15060
15061 \begin_inset Quotes eld
15062 \end_inset
15063
15064 Invoice no.
15065 \begin_inset Quotes erd
15066 \end_inset
15067
15068 , and 
15069 \begin_inset Quotes eld
15070 \end_inset
15071
15072 Date
15073 \begin_inset Quotes erd
15074 \end_inset
15075
15076 .
15077  For the date field, the value of the 
15078 \family sans
15079 Date
15080 \family default
15081  type is used.
15082  If one of these 
15083 \begin_inset Quotes eld
15084 \end_inset
15085
15086 business letter types
15087 \begin_inset Quotes erd
15088 \end_inset
15089
15090  is used, the value of the 
15091 \family sans
15092 Place
15093 \family default
15094  type however does not appear, but only the \SpecialChar LaTeX
15095  variable 
15096 \family typewriter
15097
15098 \backslash
15099 fromplace
15100 \family default
15101  is set.
15102  The ordinary output of place and date in a right-aligned line below the
15103  addressee`s field is suppressed.
15104  The types are implemented as input types provided with a label and must
15105  be used ahead of the corresponding 
15106 \family sans
15107 Opening
15108 \family default
15109  type.
15110 \end_layout
15111
15112 \begin_layout Itemize
15113
15114 \family sans
15115 Yourref
15116 \family default
15117 : Your ref.
15118 \end_layout
15119
15120 \begin_layout Itemize
15121
15122 \family sans
15123 Yourmail
15124 \family default
15125 : Your letter of.
15126 \end_layout
15127
15128 \begin_layout Itemize
15129
15130 \family sans
15131 Myref
15132 \family default
15133 : Our ref.
15134 \end_layout
15135
15136 \begin_layout Itemize
15137
15138 \family sans
15139 Customer
15140 \family default
15141 : Customer no.
15142 \end_layout
15143
15144 \begin_layout Itemize
15145
15146 \family sans
15147 Invoice
15148 \family default
15149 : Invoice no.
15150 \end_layout
15151
15152 \begin_layout Subsection
15153 The new letter class: letter (koma-script v.2)
15154 \end_layout
15155
15156 \begin_layout Standard
15157 by 
15158 \noun on
15159 Jürgen Spitzmüller
15160 \end_layout
15161
15162 \begin_layout Standard
15163 \begin_inset VSpace medskip
15164 \end_inset
15165
15166
15167 \end_layout
15168
15169 \begin_layout Standard
15170 \noindent
15171 Koma-Script version 2.8 has introduced a new letter class 
15172 \family typewriter
15173 scrlttr2
15174 \family default
15175  which supersedes the now unsupported 
15176 \family typewriter
15177 scrlettr
15178 \family default
15179 .
15180  It has — on the \SpecialChar LaTeX
15181  side — a completely new interface and is not compatible
15182  with the old class.
15183  Therefore, \SpecialChar LyX
15184  supports both, though it is recommended you use the new class.
15185 \end_layout
15186
15187 \begin_layout Standard
15188 This class covers the same functionality as 
15189 \emph on
15190 letter (koma-script),
15191 \emph default
15192  and a few more.
15193  The basic items are 
15194 \family sans
15195 Address
15196 \family default
15197  (receiver's address, same as 
15198 \family sans
15199 Letter
15200 \family default
15201  in the old layout), 
15202 \family sans
15203 Opening
15204 \family default
15205 , and 
15206 \family sans
15207 Closing
15208 \family default
15209 .
15210  
15211 \family sans
15212 NextAddress
15213 \family default
15214  will start a new letter (i.
15215 \begin_inset space \thinspace{}
15216 \end_inset
15217
15218 e.
15219 \begin_inset space \space{}
15220 \end_inset
15221
15222 you can write several letters per document).
15223  New elements are sender's 
15224 \family sans
15225 E-Mail
15226 \family default
15227
15228 \family sans
15229 URL
15230 \family default
15231
15232 \family sans
15233 Fax
15234 \family default
15235
15236 \family sans
15237 Bank
15238 \family default
15239  and the possibility to use a 
15240 \family sans
15241 Logo
15242 \family default
15243  (via 
15244 \family sans
15245 Insert\SpecialChar menuseparator
15246 Graphics
15247 \family default
15248 ) in the header.
15249 \end_layout
15250
15251 \begin_layout Standard
15252 The biggest improvement is, though, that the letter's layout is configurable
15253  to meet almost any needs.
15254  This can be done via the preamble or with a special style file (Letter
15255  Class Option, extension 
15256 \family typewriter
15257 *.lco
15258 \family default
15259 ), that will be read in as a class option.
15260 \begin_inset Foot
15261 status collapsed
15262
15263 \begin_layout Plain Layout
15264 The KOMA package comes with some default 
15265 \family typewriter
15266 *.lco
15267 \family default
15268  files.
15269  There is, for instance, a 
15270 \family typewriter
15271 DIN.lco
15272 \family default
15273  file that follows german typesetting rules, or a 
15274 \family typewriter
15275 KOMAold.lco
15276 \family default
15277  that provides the default layout of the old 
15278 \family typewriter
15279 scrlettr
15280 \family default
15281  class.
15282  The latter can be loaded with the class option 
15283 \family typewriter
15284 KOMAold
15285 \family default
15286 , inserted via the 
15287 \family sans
15288 Layout\SpecialChar menuseparator
15289 Document\SpecialChar menuseparator
15290 Extra Options
15291 \family default
15292  field.
15293 \end_layout
15294
15295 \end_inset
15296
15297  Have a look at the 
15298 \emph on
15299 koma-letter2
15300 \emph default
15301  template that is included in \SpecialChar LyX
15302  for examples.
15303  A detailed description is to be found in the Koma-Script documentation
15304  (
15305 \emph on
15306 scrguide
15307 \emph default
15308 ).
15309 \end_layout
15310
15311 \begin_layout Subsection
15312 Problems
15313 \end_layout
15314
15315 \begin_layout Standard
15316 Visualizing the Koma-Script document classes in \SpecialChar LyX
15317 , the \SpecialChar LyX
15318  internals cause some
15319  problems.
15320 \end_layout
15321
15322 \begin_layout Itemize
15323 The chapter number of a 
15324 \family sans
15325 Chapter
15326 \family default
15327  type appears on a line of its own above the chapter heading instead of
15328  appearing in the same line ahead of it.
15329  The cause for that is the \SpecialChar LyX
15330  internal behavior for the labeltype 
15331 \family sans
15332 Counter_Chapter
15333 \family default
15334  in the layout file.
15335 \end_layout
15336
15337 \begin_layout Itemize
15338 The headings of the types 
15339 \family sans
15340 Addchap
15341 \family default
15342  and 
15343 \family sans
15344 Addsec
15345 \family default
15346  are only put in the 
15347 \begin_inset Quotes eld
15348 \end_inset
15349
15350 true
15351 \begin_inset Quotes erd
15352 \end_inset
15353
15354  \SpecialChar LaTeX
15355  table of contents, but not in the \SpecialChar LyX
15356  table of contents (
15357 \family sans
15358 Document\SpecialChar menuseparator
15359 Table
15360 \begin_inset space ~
15361 \end_inset
15362
15363 of
15364 \begin_inset space ~
15365 \end_inset
15366
15367 Contents
15368 \family default
15369 ).
15370 \end_layout
15371
15372 \begin_layout Itemize
15373 The paragraphs in a 
15374 \emph on
15375 letter
15376 \emph default
15377  document class appear in a skip separation mode, not indented.
15378  This is the standard behavior, no special \SpecialChar LaTeX
15379  commands are needed for that.
15380  But in the 
15381 \family sans
15382 Document\SpecialChar menuseparator
15383 Settings
15384 \family default
15385  dialog the corresponding radio button indicates 
15386 \family sans
15387 Indent
15388 \family default
15389 .
15390  A 
15391 \family sans
15392 Skip
15393 \family default
15394  value always has the effect that extra \SpecialChar LaTeX
15395  commands are inserted in the document
15396  to produce the gap, which is not what is wanted in this case.
15397 \end_layout
15398
15399 \begin_layout Section
15400 Memoir
15401 \end_layout
15402
15403 \begin_layout Standard
15404 By 
15405 \noun on
15406 Jürgen Spitzmüller
15407 \end_layout
15408
15409 \begin_layout Subsection
15410 Overview
15411 \end_layout
15412
15413 \begin_layout Standard
15414 Memoir is a very powerful and constantly evolving class.
15415  It has been designed with regard to fictional and non-fictional literature.
15416  Its aim is to let the user have maximum control over the typesetting of
15417  his document.
15418  Memoir is based on the standard book class, but it can also emulate the
15419  article class (see below).
15420 \end_layout
15421
15422 \begin_layout Standard
15423 Peter Wilson, the developer of Memoir, is known as the author of lots of
15424  useful packages in the \SpecialChar LaTeX
15425  world.
15426  Most of them have been merged with Memoir.
15427  Therefore, it is much easier to layout the table of contents, appendices,
15428  chapter designs and such.
15429  \SpecialChar LyX
15430 , though, does not support all of these goodies natively.
15431  Some of them might be added to forthcoming releases
15432 \begin_inset Foot
15433 status collapsed
15434
15435 \begin_layout Plain Layout
15436 You are invited to send suggestions to 
15437 \begin_inset Flex URL
15438 status collapsed
15439
15440 \begin_layout Plain Layout
15441
15442 lyx-devel@lists.lyx.org
15443 \end_layout
15444
15445 \end_inset
15446
15447 .
15448 \end_layout
15449
15450 \end_inset
15451
15452 , lots will probably never be supported, due to the limitations of \SpecialChar LyX
15453 's framework.
15454  Of course you can still use all features with the help of some native \SpecialChar LaTeX
15455
15456  commands (\SpecialChar TeX
15457  code
15458 \begin_inset Foot
15459 status collapsed
15460
15461 \begin_layout Plain Layout
15462 Cf.
15463 \begin_inset ERT
15464 status collapsed
15465
15466 \begin_layout Plain Layout
15467
15468
15469 \backslash
15470  
15471 \end_layout
15472
15473 \end_inset
15474
15475 section
15476 \begin_inset space ~
15477 \end_inset
15478
15479
15480 \begin_inset CommandInset ref
15481 LatexCommand ref
15482 reference "sec:Inserting-TeX-Code"
15483
15484 \end_inset
15485
15486  for details.
15487 \end_layout
15488
15489 \end_inset
15490
15491 ).
15492  In this section, we can only list those features that are natively supported
15493  by \SpecialChar LyX
15494 .
15495  For detailed descriptions (and for the rest of features) we recommend you
15496  have a look at the detailed manual of the Memoir class
15497 \begin_inset Foot
15498 status collapsed
15499
15500 \begin_layout Plain Layout
15501 Cf.
15502 \begin_inset ERT
15503 status collapsed
15504
15505 \begin_layout Plain Layout
15506
15507
15508 \backslash
15509  
15510 \end_layout
15511
15512 \end_inset
15513
15514
15515 \begin_inset Flex URL
15516 status collapsed
15517
15518 \begin_layout Plain Layout
15519
15520 CTAN:/macros/latex/memoir/memman.pdf
15521 \end_layout
15522
15523 \end_inset
15524
15525 .
15526 \end_layout
15527
15528 \end_inset
15529
15530 , which is not only a user guide for the class, but also both a comprehensive
15531  description on good typesetting and a superb example for good typesetting
15532  itself.
15533 \end_layout
15534
15535 \begin_layout Subsection
15536 Basic features and restrictions
15537 \end_layout
15538
15539 \begin_layout Standard
15540 Memoir supports basically all features of the standard book classes.
15541  There are, however, some differences, as follows:
15542 \end_layout
15543
15544 \begin_layout Description
15545 Font
15546 \begin_inset space ~
15547 \end_inset
15548
15549 sizes: Memoir has a broader range of font sizes: 9, 10, 11, 12, 14, 17
15550 \end_layout
15551
15552 \begin_layout Description
15553 Page
15554 \begin_inset space ~
15555 \end_inset
15556
15557 style: The fancy page style is not supported, due to a command clash between
15558  Memoir and the fancyhdr package (they both define a command with the same
15559  name, which confuses \SpecialChar LaTeX
15560 ).
15561  Instead, Memoir comes with a number of its own page styles (see 
15562 \family sans
15563 Document\SpecialChar menuseparator
15564 Settings\SpecialChar menuseparator
15565 Page
15566 \begin_inset space ~
15567 \end_inset
15568
15569 Style
15570 \family default
15571 ).
15572  If you want to use these for the chapter pages, you have to use the command
15573  
15574 \family typewriter
15575
15576 \backslash
15577 chapterstyle
15578 \family default
15579  in the main text or in preamble (e.
15580 \begin_inset space \thinspace{}
15581 \end_inset
15582
15583 g.
15584 \begin_inset space \space{}
15585 \end_inset
15586
15587
15588 \family typewriter
15589
15590 \backslash
15591 chapterstyle{companion}
15592 \family default
15593 ).
15594 \end_layout
15595
15596 \begin_layout Description
15597 Sectioning: Sectionings (chapter, section, subsection etc.) come with an
15598  optional argument in the standard classes.
15599  With this, you can specify an alternative version of the title for the
15600  table of contents and the headers (for instance, if the title is too long).
15601  In \SpecialChar LyX
15602 , you can do this via 
15603 \family sans
15604 Insert\SpecialChar menuseparator
15605 Short
15606 \begin_inset space ~
15607 \end_inset
15608
15609 Title
15610 \family default
15611  at the beginning of a chapter/section.
15612  Memoir features a second optional argument and thus separates the table
15613  of contents from the header.
15614  You can define three variants of a title with this: one for the main text,
15615  one for the table of contents, and one for the headers.
15616  \SpecialChar LyX
15617  makes these available in form of specific 
15618 \family sans
15619 Short Title
15620 \family default
15621  variants in the 
15622 \family sans
15623 Insert
15624 \family default
15625  menu.
15626 \end_layout
15627
15628 \begin_layout Description
15629 TOC/LOT/LOF: In the standard classes (and in many other classes), the table
15630  of contents, the list of figures and the list of table start a new page
15631  automatically.
15632  Memoir does not follow this route.
15633  You have to insert a page break yourself, if you want to have one.
15634 \end_layout
15635
15636 \begin_layout Description
15637 Titlepage: For some unknown reason, Memoir uses pagination on the title
15638  page (in the standard classes, title pages are 
15639 \begin_inset Quotes eld
15640 \end_inset
15641
15642 empty
15643 \begin_inset Quotes erd
15644 \end_inset
15645
15646 ).
15647  If you want an empty title page, type 
15648 \family typewriter
15649
15650 \backslash
15651 aliaspagestyle{title}{empty}
15652 \family default
15653  in the preamble.
15654 \end_layout
15655
15656 \begin_layout Description
15657 Article: With the class option 
15658 \emph on
15659 article
15660 \emph default
15661  (to be inserted in 
15662 \family sans
15663 Document\SpecialChar menuseparator
15664 Settings\SpecialChar menuseparator
15665 Class Settings\SpecialChar menuseparator
15666 Custom
15667 \begin_inset space ~
15668 \end_inset
15669
15670 Options
15671 \family default
15672 ), you can emulate article style.
15673  That is, counters (footnotes, figures, tables etc.) will not be reset on
15674  new chapters, chapters don't start a new page (but are—in contrary to 
15675 \begin_inset Quotes eld
15676 \end_inset
15677
15678 real
15679 \begin_inset Quotes erd
15680 \end_inset
15681
15682  article classes—still allowed), parts, though, use their own page, as in
15683  book.
15684 \end_layout
15685
15686 \begin_layout Description
15687 Oldfontcommands: By default, Memoir does not allow the use of the deprecated
15688  font commands, which have been used in the old \SpecialChar LaTeX
15689  version 2.09 (e.
15690 \begin_inset space \thinspace{}
15691 \end_inset
15692
15693 g.
15694 \begin_inset space \space{}
15695 \end_inset
15696
15697
15698 \family typewriter
15699
15700 \backslash
15701 rm
15702 \family default
15703
15704 \family typewriter
15705
15706 \backslash
15707 it
15708 \family default
15709 ).
15710  It produces an error and stops \SpecialChar LaTeX
15711  whenever such a command appears.
15712  The class option 
15713 \emph on
15714 oldfontcommands
15715 \emph default
15716  reallows the commands and spits out warnings instead (which does at least
15717  not stop \SpecialChar LaTeX
15718 ).
15719  Since a lot of packages and particularly Bib\SpecialChar TeX
15720  style files are still using
15721  those commands, we have decided to use this option by default.
15722 \end_layout
15723
15724 \begin_layout Subsection
15725 Extra features
15726 \end_layout
15727
15728 \begin_layout Standard
15729 We will only describe the features supported by \SpecialChar LyX
15730  (which is not much currently).
15731  Please consult the Memoir manual
15732 \begin_inset Foot
15733 status collapsed
15734
15735 \begin_layout Plain Layout
15736 Cf.
15737 \begin_inset ERT
15738 status collapsed
15739
15740 \begin_layout Plain Layout
15741
15742
15743 \backslash
15744  
15745 \end_layout
15746
15747 \end_inset
15748
15749
15750 \begin_inset Flex URL
15751 status collapsed
15752
15753 \begin_layout Plain Layout
15754
15755 CTAN:/macros/latex/memoir/memman.pdf
15756 \end_layout
15757
15758 \end_inset
15759
15760 .
15761 \end_layout
15762
15763 \end_inset
15764
15765  for details.
15766 \end_layout
15767
15768 \begin_layout Description
15769 Abstract: You may wonder why an abstract is an extra feature.
15770  Well, it is in book class.
15771  Usually books don't have abstracts.
15772  Memoir, however, has.
15773  You can use it wherever and how often you like.
15774 \end_layout
15775
15776 \begin_layout Description
15777 Chapterprecis: You may know this older typesetting style: The contents of
15778  a chapter are summarized below the title and also in the table of contents
15779  (e.
15780 \begin_inset space \thinspace{}
15781 \end_inset
15782
15783 g.
15784 \begin_inset space \space{}
15785 \end_inset
15786
15787
15788 \emph on
15789 Our hero arrives in Troia; he loses some friends; he finds others
15790 \emph default
15791 ).
15792  Chapterprecis does exactly this.
15793  It is therefore only sensible below a chapter.
15794 \end_layout
15795
15796 \begin_layout Description
15797 Epigraph: An epigraph is a smart slogan or motto at the beginning of a chapter.
15798  The epigraph environment provides an elegant way of typesetting such a
15799  motto.
15800  The motto itself (text) and its (optional) author (source) are divided
15801  by a short line.
15802  The author (source) can be inserted via 
15803 \family sans
15804 Insert\SpecialChar menuseparator
15805 Epigraph Source
15806 \family default
15807 \emph on
15808 .
15809 \end_layout
15810
15811 \begin_layout Description
15812 Poemtitle: Memoir has lots of possibilities to typeset poetry (up to very
15813  complex figurative poems).
15814  \SpecialChar LyX
15815  can only support a few of them.
15816  One is poemtitle, which is a centered title for poems, which will also
15817  be added to the table of contents (verse is the standard environment for
15818  poems.
15819  Memoir has some enhanced versions of verse, but you need to use \SpecialChar TeX
15820  code,
15821  because they have to be nested inside regular verse environments, which
15822  is not possible with \SpecialChar LyX
15823 ).
15824 \end_layout
15825
15826 \begin_layout Description
15827 Poemtitle*: Same as poemtitle, but it adds no entry to the table of contents.
15828 \end_layout
15829
15830 \begin_layout Section
15831 Article (mwart), book (mwbk) and report (mwrep)
15832 \begin_inset Argument status
15833 status collapsed
15834
15835 \begin_layout Plain Layout
15836 The 
15837 \family typewriter
15838 mw
15839 \family default
15840  Classes
15841 \end_layout
15842
15843 \end_inset
15844
15845
15846 \end_layout
15847
15848 \begin_layout Standard
15849 by 
15850 \noun on
15851 Tomasz Luczak
15852 \end_layout
15853
15854 \begin_layout Standard
15855 The \SpecialChar LyX
15856  document classes 
15857 \emph on
15858 article (mwart)
15859 \emph default
15860
15861 \emph on
15862 report (mwrep)
15863 \emph default
15864  and 
15865 \emph on
15866 book
15867 \emph default
15868  
15869 \emph on
15870 (mwbk)
15871 \emph default
15872  correspond to the \SpecialChar LaTeX
15873  document classes 
15874 \family typewriter
15875 mwart.cls
15876 \family default
15877
15878 \family typewriter
15879 mwrep.cls
15880 \family default
15881  and 
15882 \family typewriter
15883 mwbk.cls
15884 \family default
15885 , resp.
15886  They are replacements for the standard document classes 
15887 \family typewriter
15888 article.cls
15889 \family default
15890
15891 \family typewriter
15892 report.cls
15893 \family default
15894  and 
15895 \family typewriter
15896 book.cls
15897 \family default
15898 , resp., and fit better to Polish typography conventions in a number of points.
15899  
15900 \end_layout
15901
15902 \begin_layout Standard
15903 Basic differences:
15904 \end_layout
15905
15906 \begin_layout Itemize
15907 Unnumbered titles (with star, e.
15908 \begin_inset space \thinspace{}
15909 \end_inset
15910
15911 g.
15912 \begin_inset space \space{}
15913 \end_inset
15914
15915
15916 \family sans
15917 Section*
15918 \family default
15919 ) are added into table of contents,
15920 \end_layout
15921
15922 \begin_layout Itemize
15923 Additional page styles:
15924 \end_layout
15925
15926 \begin_deeper
15927 \begin_layout Description
15928 uheadings header with separated lines,
15929 \end_layout
15930
15931 \begin_layout Description
15932 myheadings custom header, contents headers via commands: 
15933 \family typewriter
15934
15935 \backslash
15936 markright
15937 \family default
15938  and 
15939 \family typewriter
15940
15941 \backslash
15942 markboth
15943 \family default
15944 ,
15945 \end_layout
15946
15947 \begin_layout Description
15948 myuheadings custom header with separated lines,
15949 \end_layout
15950
15951 \begin_layout Description
15952 outer page number is placed on outer side of page
15953 \end_layout
15954
15955 \end_deeper
15956 \begin_layout Itemize
15957 Options 
15958 \end_layout
15959
15960 \begin_deeper
15961 \begin_layout Description
15962 rmheadings serif titles — default,
15963 \end_layout
15964
15965 \begin_layout Description
15966 sfheadings sansserif titles,
15967 \end_layout
15968
15969 \begin_layout Description
15970 authortitle on title page first placed is author next title — default,
15971 \end_layout
15972
15973 \begin_layout Description
15974 titleauthor on title page first placed is title next author,
15975 \end_layout
15976
15977 \begin_layout Description
15978 withmarginpar reserve place on page for margins.
15979 \end_layout
15980
15981 \end_deeper
15982 \begin_layout Section
15983 Paper
15984 \end_layout
15985
15986 \begin_layout Standard
15987 The document class 
15988 \family sans
15989 paper
15990 \family default
15991  provides an alternative to the standard 
15992 \family sans
15993 article
15994 \family default
15995  class.
15996  It provides similar functionality, but you might prefer this layout with
15997  sans serif sections, headings, and more.
15998 \end_layout
15999
16000 \begin_layout Section
16001 Rev\SpecialChar TeX
16002 4
16003 \end_layout
16004
16005 \begin_layout Standard
16006 by 
16007 \noun on
16008 Amir Karger
16009 \end_layout
16010
16011 \begin_layout Standard
16012 \begin_inset VSpace bigskip
16013 \end_inset
16014
16015
16016 \end_layout
16017
16018 \begin_layout Standard
16019 \noindent
16020 The 
16021 \family sans
16022 Revtex
16023 \begin_inset space ~
16024 \end_inset
16025
16026 4
16027 \family default
16028  textclass works with the American Physical Sociey's Rev\SpecialChar TeX
16029  4.0 (the 
16030 \begin_inset Formula $\beta$
16031 \end_inset
16032
16033  release of May, 1999) class.
16034 \end_layout
16035
16036 \begin_layout Standard
16037 \SpecialChar LyX
16038  has a 
16039 \family sans
16040 Revtex
16041 \family default
16042  textclass, which works with Rev\SpecialChar TeX
16043  3.1.
16044  However, v3.1 is basically obsolete, as it works with \SpecialChar LaTeX
16045  2.09.
16046  That means that it doesn't interact very well with \SpecialChar LyX
16047 , which requires \SpecialChar LaTeX2e
16048 , although
16049  it has been kludged to work.
16050  Since Rev\SpecialChar TeX
16051  4.0 has been designed to work much more cleanly with \SpecialChar LaTeX2e
16052 , \SpecialChar LyX
16053  with the
16054  
16055 \family sans
16056 Rev\SpecialChar TeX
16057
16058 \begin_inset space ~
16059 \end_inset
16060
16061 4
16062 \family default
16063  textclass should also be pretty easy to use.
16064 \end_layout
16065
16066 \begin_layout Standard
16067 These documents are supposed to be used in 
16068 \emph on
16069 addition
16070 \emph default
16071  to the Rev\SpecialChar TeX
16072  4.0 documents, so we don't describe any of the special Rev\SpecialChar TeX
16073  macros,
16074  and assume you'll know what to put in the preamble if necessary.
16075 \end_layout
16076
16077 \begin_layout Subsection
16078 Installation
16079 \end_layout
16080
16081 \begin_layout Standard
16082 All you need to do is install Rev\SpecialChar TeX
16083  4, as described in the package's README
16084  file.
16085  The package can be found at The Rev\SpecialChar TeX
16086  4 Web Site 
16087 \begin_inset Flex URL
16088 status collapsed
16089
16090 \begin_layout Plain Layout
16091
16092 http://publish.aps.org/revtex4/
16093 \end_layout
16094
16095 \end_inset
16096
16097 .
16098  Install it somewhere that \SpecialChar LaTeX
16099  can see it.
16100  Test it by trying to \SpecialChar LaTeX
16101  a short Rev\SpecialChar TeX
16102  4 document in some random directory (i.
16103 \begin_inset space \thinspace{}
16104 \end_inset
16105
16106 e.
16107 \begin_inset space \space{}
16108 \end_inset
16109
16110 not the directory where you installed the class file.) Then, if you reconfigure
16111  \SpecialChar LyX
16112 , it will find the class file and let you use the Rev\SpecialChar TeX
16113 4 textclass.
16114 \end_layout
16115
16116 \begin_layout Standard
16117 Probably the easiest way to get started is either to import a Rev\SpecialChar TeX
16118  4 document
16119  using 
16120 \family typewriter
16121 tex2lyx
16122 \family default
16123 , or to use the 
16124 \family sans
16125 Revtex
16126 \begin_inset space ~
16127 \end_inset
16128
16129 4
16130 \family default
16131  template, found in the templates directory.
16132 \end_layout
16133
16134 \begin_layout Subsection
16135 Preamble Matter
16136 \end_layout
16137
16138 \begin_layout Standard
16139 Optional arguments to 
16140 \family typewriter
16141
16142 \backslash
16143 documentclass
16144 \family default
16145 , like 
16146 \begin_inset Quotes eld
16147 \end_inset
16148
16149 preprint
16150 \begin_inset Quotes erd
16151 \end_inset
16152
16153  and 
16154 \begin_inset Quotes eld
16155 \end_inset
16156
16157 aps
16158 \begin_inset Quotes erd
16159 \end_inset
16160
16161 , go in the 
16162 \family sans
16163 Extra
16164 \begin_inset space ~
16165 \end_inset
16166
16167 Options
16168 \family default
16169  field in the 
16170 \family sans
16171 Document
16172 \begin_inset space ~
16173 \end_inset
16174
16175 Layout
16176 \family default
16177  dialog, as usual.
16178  Remember that in Rev\SpecialChar TeX
16179 , at least one optional argument is required! 
16180 \end_layout
16181
16182 \begin_layout Standard
16183 Other preamble matter, like 
16184 \family typewriter
16185
16186 \backslash
16187 draft
16188 \family default
16189  etc.
16190 \begin_inset space ~
16191 \end_inset
16192
16193 goes in the 
16194 \family sans
16195 \SpecialChar LaTeX
16196
16197 \begin_inset space ~
16198 \end_inset
16199
16200 Preamble
16201 \family default
16202  dialog, also as usual.
16203 \end_layout
16204
16205 \begin_layout Subsection
16206 Layouts
16207 \end_layout
16208
16209 \begin_layout Standard
16210 The layouts basically correspond to the commands in Rev\SpecialChar TeX
16211 4.0.
16212  For example, the Email layout corresponds to 
16213 \family typewriter
16214
16215 \backslash
16216 email{}
16217 \family default
16218 .
16219  Note that (at least as of Rev\SpecialChar TeX
16220  4.0 Beta), the 
16221 \family sans
16222 Address
16223 \family default
16224  and 
16225 \family sans
16226 Affiliation
16227 \family default
16228  layouts are exactly equivalent, so you shouldn't need to use both.
16229 \begin_inset Foot
16230 status collapsed
16231
16232 \begin_layout Plain Layout
16233 In case you're curious, both were included so that 
16234 \family typewriter
16235 tex2lyx
16236 \family default
16237  would be able to translate both 
16238 \family typewriter
16239
16240 \backslash
16241 address
16242 \family default
16243  and 
16244 \family typewriter
16245
16246 \backslash
16247 affiliation
16248 \family default
16249 .
16250 \end_layout
16251
16252 \end_inset
16253
16254
16255 \end_layout
16256
16257 \begin_layout Subsection
16258 Important Notes
16259 \end_layout
16260
16261 \begin_layout Standard
16262 There are a couple of important unique aspects of Rev\SpecialChar TeX
16263  4 which might cause
16264  bugs that will be even more confusing in \SpecialChar LyX
16265 .
16266 \end_layout
16267
16268 \begin_layout Standard
16269 In Rev\SpecialChar TeX
16270 , the 
16271 \family typewriter
16272
16273 \backslash
16274 thanks
16275 \family default
16276  command goes 
16277 \emph on
16278 outside
16279 \emph default
16280  the 
16281 \family typewriter
16282
16283 \backslash
16284 author
16285 \family default
16286  command.
16287  The \SpecialChar LyX
16288  equivalent is that there is a separate Thanks layout.
16289  Do 
16290 \emph on
16291 not
16292 \emph default
16293  write footnotes in the 
16294 \family sans
16295 Author
16296 \family default
16297  layout, or weird things may happen.
16298  See the Rev\SpecialChar TeX
16299  4 documentation for more details.
16300 \end_layout
16301
16302 \begin_layout Standard
16303 Also, the 
16304 \family sans
16305 Author
16306 \begin_inset space ~
16307 \end_inset
16308
16309 Email
16310 \family default
16311
16312 \family sans
16313 Author
16314 \begin_inset space ~
16315 \end_inset
16316
16317 URL
16318 \family default
16319 , and 
16320 \family sans
16321 Thanks
16322 \family default
16323  layouts must be placed 
16324 \emph on
16325 in between
16326 \emph default
16327  the 
16328 \family sans
16329 Author
16330 \family default
16331  layout and the corresponding 
16332 \family sans
16333 Address
16334 \family default
16335  (or equivalent 
16336 \family sans
16337 Affiliation
16338 \family default
16339 ) layout.
16340  If you put the 
16341 \family sans
16342 Thanks
16343 \family default
16344  after the 
16345 \family sans
16346 Address
16347 \family default
16348 , the \SpecialChar LaTeX
16349  won't compile.
16350 \end_layout
16351
16352 \begin_layout Section
16353 Springer Journals (
16354 \family sans
16355 svjour
16356 \family default
16357 )
16358 \end_layout
16359
16360 \begin_layout Standard
16361 by 
16362 \noun on
16363 Martin Vermeer
16364 \end_layout
16365
16366 \begin_layout Subsection
16367 Description
16368 \end_layout
16369
16370 \begin_layout Standard
16371 These are the layout files for some of the journal formats used by Springer
16372  Verlag and listed on 
16373 \begin_inset Flex URL
16374 status collapsed
16375
16376 \begin_layout Plain Layout
16377
16378 http://www.springer.de/author/tex/help-journals.html
16379 \end_layout
16380
16381 \end_inset
16382
16383 , where you should also go to fetch the class files (yes, these are \SpecialChar LaTeX2e
16384  now!).
16385  It is a modular system: the things common to all journals are implemented
16386  in 
16387 \family typewriter
16388 svjour.inc
16389 \family default
16390 , which journal-specific layout files (such as, e.
16391 \begin_inset space \thinspace{}
16392 \end_inset
16393
16394 g.
16395 \begin_inset space \space{}
16396 \end_inset
16397
16398
16399 \family typewriter
16400 svjog.layout
16401 \family default
16402  for Journal of Geodesy) can include.
16403 \end_layout
16404
16405 \begin_layout Standard
16406 This means that implementing support for any other Springer journal on this
16407  list is as simple as writing your own 
16408 \family typewriter
16409 sv
16410 \family default
16411 <myjournal>
16412 \family typewriter
16413 .layout
16414 \family default
16415  file following the outline given in 
16416 \family typewriter
16417 svjog.layout
16418 \family default
16419 .
16420  
16421 \end_layout
16422
16423 \begin_layout Standard
16424 It is reasonably well tested only for the Journal of Geodesy.
16425  
16426 \family typewriter
16427 svjour
16428 \family default
16429  and 
16430 \family typewriter
16431 svjog
16432 \family default
16433  come with the standard \SpecialChar LyX
16434  distribution.
16435  Install the relevant class file (downloaded from Springer) in a proper
16436  directory, reconfigure \SpecialChar LaTeX
16437  (in the te\SpecialChar TeX
16438  case by running 
16439 \family typewriter
16440 texhash
16441 \family default
16442 , as root if necessary — doesn't \SpecialChar LyX
16443  take care of this?), reconfigure \SpecialChar LyX
16444  and
16445  it should work.
16446 \end_layout
16447
16448 \begin_layout Subsection
16449 New styles
16450 \end_layout
16451
16452 \begin_layout Standard
16453 A large number of theorem-like styles — 
16454 \family sans
16455 Claim, Conjecture,
16456 \family default
16457  
16458 \family sans
16459 \SpecialChar ldots
16460 Theorem
16461 \family default
16462 .
16463 \end_layout
16464
16465 \begin_layout Standard
16466
16467 \family sans
16468 Headnote, Dedication, Subtitle, Running_\SpecialChar LaTeX
16469 _Title, Author_Running, Institute,
16470  Mail, Offprints, Keywords, Acknowledgements, Acknowledgement
16471 \family default
16472 .
16473  See the Springer class file documentation for details.
16474 \end_layout
16475
16476 \begin_layout Subsection
16477 Supported journals
16478 \end_layout
16479
16480 \begin_layout Itemize
16481
16482 \emph on
16483 Journal of Geodesy
16484 \emph default
16485
16486 \family typewriter
16487 svjog.layout
16488 \family default
16489  — Martin Vermeer
16490 \end_layout
16491
16492 \begin_layout Itemize
16493
16494 \emph on
16495 Probability Theory and Related Fields
16496 \emph default
16497
16498 \family typewriter
16499 svprobth.layout
16500 \family default
16501  — Jean-Marc Lasgouttes
16502 \end_layout
16503
16504 \begin_layout Standard
16505 Add your own, it isn't so hard!
16506 \end_layout
16507
16508 \begin_layout Subsection
16509 Credits
16510 \end_layout
16511
16512 \begin_layout Standard
16513 These files are partly based on the older 
16514 \family typewriter
16515 ejour2.layout
16516 \family default
16517 , which was again based on a tinkered-with version of an old \SpecialChar LaTeX
16518  2.09 style
16519  file from Springer.
16520  All this, and the 
16521 \family typewriter
16522 ejour2
16523 \family default
16524  layout, are now defunct.
16525  Jean-Marc Lasgouttes helped out big in making me find my way around the
16526  \SpecialChar LyX
16527  layout file mechanism.
16528 \end_layout
16529
16530 \begin_layout Subsection
16531 Bugs
16532 \end_layout
16533
16534 \begin_layout Standard
16535 Probably.
16536  But probably less than in the old hacked-\SpecialChar LaTeX
16537  
16538 \family typewriter
16539 ejour2
16540 \family default
16541 .
16542 \end_layout
16543
16544 \begin_layout Section
16545 Slides [aka 
16546 \noun on
16547 Sli\SpecialChar TeX
16548
16549 \noun default
16550 ]
16551 \begin_inset CommandInset label
16552 LatexCommand label
16553 name "sec:slitex"
16554
16555 \end_inset
16556
16557
16558 \end_layout
16559
16560 \begin_layout Standard
16561 by 
16562 \noun on
16563 John Weiss
16564 \noun default
16565  
16566 \end_layout
16567
16568 \begin_layout Subsection
16569 Introduction
16570 \end_layout
16571
16572 \begin_layout Standard
16573 This section describes how to use \SpecialChar LyX
16574  to make slides for overhead projectors.
16575  There are two document classes that can do this: the default slides class
16576  and the 
16577 \family sans
16578 Foil\SpecialChar TeX
16579
16580 \family default
16581  slides class.
16582  This section documents the former.
16583 \end_layout
16584
16585 \begin_layout Standard
16586 I'm going to say this again, nice and clear, so that there's no misunderstanding
16587 :
16588 \end_layout
16589
16590 \begin_layout Standard
16591 \begin_inset VSpace bigskip
16592 \end_inset
16593
16594
16595 \end_layout
16596
16597 \begin_layout Standard
16598 \align center
16599
16600 \size large
16601 This section documents the class 
16602 \begin_inset Quotes eld
16603 \end_inset
16604
16605
16606 \family sans
16607 slides (default)
16608 \family default
16609
16610 \begin_inset Quotes erd
16611 \end_inset
16612
16613  
16614 \emph on
16615 only.
16616 \end_layout
16617
16618 \begin_layout Standard
16619 \begin_inset VSpace bigskip
16620 \end_inset
16621
16622
16623 \end_layout
16624
16625 \begin_layout Standard
16626 If you're looking for the documentation for 
16627 \begin_inset Quotes eld
16628 \end_inset
16629
16630
16631 \family sans
16632 slides (Foil\SpecialChar TeX
16633 )
16634 \family default
16635
16636 \begin_inset Quotes erd
16637 \end_inset
16638
16639 , check out section
16640 \begin_inset space ~
16641 \end_inset
16642
16643
16644 \begin_inset CommandInset ref
16645 LatexCommand ref
16646 reference "sec:foiltex"
16647
16648 \end_inset
16649
16650 .
16651  The 
16652 \family sans
16653 foils
16654 \family default
16655  class [
16656 \begin_inset Quotes eld
16657 \end_inset
16658
16659
16660 \family sans
16661 slides (Foil\SpecialChar TeX
16662 )
16663 \family default
16664
16665 \begin_inset Quotes erd
16666 \end_inset
16667
16668 ] is actually somewhat better than the default 
16669 \family sans
16670 slides
16671 \family default
16672  class,
16673 \begin_inset Foot
16674 status collapsed
16675
16676 \begin_layout Plain Layout
16677 \SpecialChar ldots
16678 or so I've been told repeatedly by its advocates.
16679  Having never used it, I have no idea if this claim is true or not.
16680 \end_layout
16681
16682 \end_inset
16683
16684  which this section documents.
16685 \end_layout
16686
16687 \begin_layout Standard
16688 This class is the \SpecialChar LaTeX2e
16689  improvement of the old 
16690 \noun on
16691 Sli\SpecialChar TeX
16692
16693 \noun default
16694  package.
16695  Every \SpecialChar LaTeX2e
16696  distribution includes this class [which I'll just refer to as 
16697 \begin_inset Quotes eld
16698 \end_inset
16699
16700
16701 \family sans
16702 slides
16703 \family default
16704
16705 \begin_inset Quotes erd
16706 \end_inset
16707
16708  from now on], so you're bound to have it.
16709  As I noted earlier, there are other classes, such as 
16710 \family sans
16711 foils
16712 \family default
16713 , which also produce slides for overhead projectors and do a better job
16714  at it.
16715  However, there are some things which 
16716 \family sans
16717 slides
16718 \family default
16719  can do which the others can't, such as generate overlays.
16720  Read on to learn more!
16721 \end_layout
16722
16723 \begin_layout Subsection
16724 Getting Started
16725 \begin_inset CommandInset label
16726 LatexCommand label
16727 name "sec:slidesetup"
16728
16729 \end_inset
16730
16731
16732 \end_layout
16733
16734 \begin_layout Standard
16735 Obviously, to use this document class, you need to select 
16736 \begin_inset Quotes eld
16737 \end_inset
16738
16739
16740 \family sans
16741 slides (default)
16742 \family default
16743
16744 \begin_inset Quotes erd
16745 \end_inset
16746
16747  from the class list in the 
16748 \family sans
16749 Document\SpecialChar menuseparator
16750 Settings
16751 \family default
16752  dialog.
16753  There are some other special things you should know about this class:
16754 \end_layout
16755
16756 \begin_layout Itemize
16757 Don't bother changing the options 
16758 \family sans
16759 Sides and Columns
16760 \family default
16761 .
16762  They're not supported by the 
16763 \family sans
16764 slides
16765 \family default
16766  class, anyways.
16767 \end_layout
16768
16769 \begin_layout Itemize
16770 The option 
16771 \family sans
16772 Page
16773 \begin_inset space ~
16774 \end_inset
16775
16776 style
16777 \family default
16778  behaves a bit differently for this class.
16779  The possible choices and what they do are as follows:
16780 \end_layout
16781
16782 \begin_deeper
16783 \begin_layout Description
16784
16785 \family sans
16786 plain
16787 \family default
16788  The final output contains page numbers in the lower right corner.
16789 \end_layout
16790
16791 \begin_layout Description
16792
16793 \family sans
16794 headings
16795 \family default
16796  Like 
16797 \family sans
16798 plain
16799 \family default
16800 , but also prints out any time markers you've put in.
16801  This is the default.
16802 \end_layout
16803
16804 \begin_layout Description
16805
16806 \family sans
16807 empty
16808 \family default
16809  The final output contains no page numbers, time markers, or alignment markers.
16810 \end_layout
16811
16812 \end_deeper
16813 \begin_layout Itemize
16814 The 
16815 \family sans
16816 slides
16817 \family default
16818  class has an extra option: 
16819 \family typewriter
16820 clock
16821 \family default
16822 .
16823  To use it, put 
16824 \begin_inset Quotes eld
16825 \end_inset
16826
16827
16828 \family typewriter
16829 clock
16830 \family default
16831
16832 \begin_inset Quotes erd
16833 \end_inset
16834
16835  in the extra class options.
16836 \end_layout
16837
16838 \begin_deeper
16839 \begin_layout Standard
16840 Using this options allows you to add time markers to 
16841 \family sans
16842 Note
16843 \family default
16844 s.
16845  See section
16846 \begin_inset space ~
16847 \end_inset
16848
16849
16850 \begin_inset CommandInset ref
16851 LatexCommand ref
16852 reference "sec:slideNote"
16853
16854 \end_inset
16855
16856  for more details.
16857 \end_layout
16858
16859 \end_deeper
16860 \begin_layout Standard
16861 You can also use the template file 
16862 \begin_inset Quotes eld
16863 \end_inset
16864
16865
16866 \family typewriter
16867 slides.lyx
16868 \family default
16869
16870 \begin_inset Quotes erd
16871 \end_inset
16872
16873  to automatically set up a document to use the 
16874 \family sans
16875 slides
16876 \family default
16877  class [using 
16878 \family sans
16879 File\SpecialChar menuseparator
16880 New
16881 \begin_inset space ~
16882 \end_inset
16883
16884 from
16885 \begin_inset space ~
16886 \end_inset
16887
16888 Template
16889 \family default
16890  to open your new document].
16891  The template file also contains some examples of the special paragraph
16892  environments used by this class.
16893  I'll describe those next.
16894 \end_layout
16895
16896 \begin_layout Subsection
16897 Paragraph Environments
16898 \end_layout
16899
16900 \begin_layout Subsubsection
16901 Supported Environments
16902 \end_layout
16903
16904 \begin_layout Standard
16905 The first thing you'll notice when you start up a new 
16906 \family sans
16907 slides
16908 \family default
16909  document is the font size and type: it's the equivalent of the size 
16910 \begin_inset Quotes eld
16911 \end_inset
16912
16913
16914 \family sans
16915 Largest
16916 \family default
16917
16918 \begin_inset Quotes erd
16919 \end_inset
16920
16921  in the 
16922 \family sans
16923 Sans
16924 \begin_inset space ~
16925 \end_inset
16926
16927 Serif
16928 \family default
16929  font.
16930  This is also what's used in the output.
16931  Think of this as a 
16932 \begin_inset Quotes eld
16933 \end_inset
16934
16935 visual cue
16936 \begin_inset Quotes erd
16937 \end_inset
16938
16939  to remind you that this is a slide.
16940  Your final slides will use a larger font; ergo, you'll have less space.
16941  Of course, the larger default screen font isn't WYSIWYG, only a reminder.
16942 \end_layout
16943
16944 \begin_layout Standard
16945 The next thing that becomes obvious is the changes to the paragraph environment
16946  pull-down box [at the far-left end of the toolbar].
16947  Most of the paragraph environments you're used to seeing are missing.
16948  There are also five new ones.
16949  That's because the 
16950 \family sans
16951 slides
16952 \family default
16953  class itself only supports certain paragraph environments:
16954 \end_layout
16955
16956 \begin_layout Itemize
16957
16958 \family sans
16959 Standard
16960 \end_layout
16961
16962 \begin_layout Itemize
16963
16964 \family sans
16965 Itemize
16966 \end_layout
16967
16968 \begin_layout Itemize
16969
16970 \family sans
16971 Enumerate
16972 \end_layout
16973
16974 \begin_layout Itemize
16975
16976 \family sans
16977 Description
16978 \end_layout
16979
16980 \begin_layout Itemize
16981
16982 \family sans
16983 List
16984 \end_layout
16985
16986 \begin_layout Itemize
16987
16988 \family sans
16989 Quotation
16990 \end_layout
16991
16992 \begin_layout Itemize
16993
16994 \family sans
16995 Quote
16996 \end_layout
16997
16998 \begin_layout Itemize
16999
17000 \family sans
17001 Verse
17002 \end_layout
17003
17004 \begin_layout Itemize
17005
17006 \family sans
17007 Caption
17008 \end_layout
17009
17010 \begin_layout Itemize
17011
17012 \family sans
17013 \SpecialChar LyX
17014 -Code
17015 \end_layout
17016
17017 \begin_layout Standard
17018 All of the other standard environments, including the section-heading environmen
17019 ts, aren't used in the 
17020 \family sans
17021 slides
17022 \family default
17023  class.
17024 \end_layout
17025
17026 \begin_layout Standard
17027 On the other hand, you'll notice the following new environments:
17028 \end_layout
17029
17030 \begin_layout Itemize
17031
17032 \family sans
17033 Slide
17034 \end_layout
17035
17036 \begin_layout Itemize
17037
17038 \family sans
17039 Overlay
17040 \end_layout
17041
17042 \begin_layout Itemize
17043
17044 \family sans
17045 Note
17046 \end_layout
17047
17048 \begin_layout Itemize
17049
17050 \family sans
17051 InvisibleText
17052 \end_layout
17053
17054 \begin_layout Itemize
17055
17056 \family sans
17057 VisibleText
17058 \end_layout
17059
17060 \begin_layout Standard
17061 These five are kind of quirky, due to a 
17062 \begin_inset Quotes eld
17063 \end_inset
17064
17065 feature
17066 \begin_inset Quotes erd
17067 \end_inset
17068
17069  in \SpecialChar LyX
17070 .
17071  You see, \SpecialChar LyX
17072  doesn't permit you to nest any other paragraph environment into
17073  an empty environment.
17074  Now, that's fine and dandy, but it means that you wouldn't be able to start
17075  a slide with anything except plain text.
17076  To deal with this, I've performed a little 
17077 \begin_inset Quotes eld
17078 \end_inset
17079
17080 \SpecialChar LaTeX
17081  magic.
17082 \begin_inset Quotes erd
17083 \end_inset
17084
17085  
17086 \end_layout
17087
17088 \begin_layout Subsubsection
17089 Quirks of the New Environments
17090 \begin_inset CommandInset label
17091 LatexCommand label
17092 name "sec:slideQuirk"
17093
17094 \end_inset
17095
17096
17097 \end_layout
17098
17099 \begin_layout Standard
17100 All five of the new paragraph environments are somewhat quirky due to inherent
17101  limitiations in the current version of \SpecialChar LyX
17102 .
17103  As I just mentioned, \SpecialChar LyX
17104  forbids environments that begin with another environment.
17105  To get around this, the 
17106 \family sans
17107 Slide
17108 \family default
17109  environment isn't a paragraph environment as described in the 
17110 \emph on
17111 User's Guide
17112 \emph default
17113 .
17114  
17115 \end_layout
17116
17117 \begin_layout Standard
17118 You should consider 
17119 \family sans
17120 Slide
17121 \family default
17122
17123 \family sans
17124 Overlay
17125 \family default
17126 , and 
17127 \family sans
17128 Note
17129 \family default
17130  to be 
17131 \begin_inset Quotes eld
17132 \end_inset
17133
17134 pseudo-environments.
17135 \begin_inset Quotes erd
17136 \end_inset
17137
17138  They look like a section heading or a 
17139 \begin_inset Quotes eld
17140 \end_inset
17141
17142
17143 \family sans
17144 Caption
17145 \family default
17146 ,
17147 \begin_inset Quotes erd
17148 \end_inset
17149
17150  but really begin a [and, if necessary, end the previous] paragraph environment.
17151  Likewise, treat 
17152 \family sans
17153 InvisibleText
17154 \family default
17155  and 
17156 \family sans
17157 VisibleText
17158 \family default
17159  as 
17160 \begin_inset Quotes eld
17161 \end_inset
17162
17163 pseudo-commands.
17164 \begin_inset Quotes erd
17165 \end_inset
17166
17167  These two perform some action.
17168 \end_layout
17169
17170 \begin_layout Standard
17171 A common feature of all five environments, 
17172 \family sans
17173 Slide
17174 \family default
17175
17176 \family sans
17177 Overlay
17178 \family default
17179
17180 \family sans
17181 Note
17182 \family default
17183
17184 \family sans
17185 InvisibleText
17186 \family default
17187  and 
17188 \family sans
17189 VisibleText
17190 \family default
17191 , is a rather long-ish label.
17192  The text following this label — ordinarily the contents of the paragraph
17193  environment — is utterly irrelevant for 
17194 \family sans
17195 Slide
17196 \family default
17197
17198 \family sans
17199 Overlay
17200 \family default
17201
17202 \family sans
17203 Note
17204 \family default
17205
17206 \family sans
17207 InvisibleText
17208 \family default
17209  and 
17210 \family sans
17211 VisibleText
17212 \family default
17213 .
17214  \SpecialChar LyX
17215  completely ignores it.
17216  In fact, you can leave these five environments completely empty.
17217  
17218 \end_layout
17219
17220 \begin_layout Standard
17221 While you don't 
17222 \emph on
17223 have
17224 \emph default
17225  to put any text after the rather long-ish label, you might want to.
17226  This could be a short description of the contents of the 
17227 \family sans
17228 Slide
17229 \family default
17230 , for example.
17231  In that case, enter your descriptive comment and hit 
17232 \family sans
17233 Return
17234 \family default
17235  as you normally would.
17236 \end_layout
17237
17238 \begin_layout Standard
17239 If, on the other hand, you don't want to enter any descriptive text, you'll
17240  hit another \SpecialChar LyX
17241  quirk.
17242  \SpecialChar LyX
17243 , like nature, abhors a vacuum, and will not let you start a new paragraph
17244  environment until you put something in the old one.
17245  So, do this:
17246 \end_layout
17247
17248 \begin_layout Itemize
17249 Start entering the text that will 
17250 \emph on
17251 follow
17252 \emph default
17253  the new 
17254 \family sans
17255 Slide
17256 \family default
17257
17258 \family sans
17259 Overlay
17260 \family default
17261
17262 \family sans
17263 Note
17264 \family default
17265
17266 \family sans
17267 InvisibleText
17268 \family default
17269  or 
17270 \family sans
17271 VisibleText
17272 \family default
17273 .
17274  
17275 \end_layout
17276
17277 \begin_layout Itemize
17278 Now move to the beginning of that paragraph.
17279  
17280 \end_layout
17281
17282 \begin_layout Itemize
17283 Next, hit 
17284 \family sans
17285 Return
17286 \family default
17287 .
17288  
17289 \end_layout
17290
17291 \begin_layout Itemize
17292 Finally, change this new, empty paragraph to a 
17293 \family sans
17294 Slide
17295 \family default
17296
17297 \family sans
17298 Overlay
17299 \family default
17300
17301 \family sans
17302 Note
17303 \family default
17304
17305 \family sans
17306 InvisibleText
17307 \family default
17308  or 
17309 \family sans
17310 VisibleText
17311 \family default
17312 .
17313  
17314 \end_layout
17315
17316 \begin_layout Standard
17317 Some future version of \SpecialChar LyX
17318  will, hopefully, resolve this quirkiness\SpecialChar ldots
17319
17320 \end_layout
17321
17322 \begin_layout Subsection
17323 Making a Presentation with 
17324 \family sans
17325 Slide
17326 \family default
17327
17328 \family sans
17329 Overlay
17330 \family default
17331  and 
17332 \family sans
17333 Note
17334 \end_layout
17335
17336 \begin_layout Subsubsection
17337 Using the 
17338 \family sans
17339 Slide
17340 \family default
17341  Environment
17342 \end_layout
17343
17344 \begin_layout Standard
17345 If you're expecting this section to teach you how to actually make a presentatio
17346 n, you'll be sorely disappointed.
17347  Naturally, I'll describe all of the ways the 
17348 \family sans
17349 slides
17350 \family default
17351  class can assist you in preparing the materials for a presentation.
17352  Filling in the contents, however, is up to you.
17353  [Then again, that 
17354 \emph on
17355 is
17356 \emph default
17357  the \SpecialChar LyX
17358  philosophy.]
17359 \end_layout
17360
17361 \begin_layout Standard
17362 Choosing the 
17363 \family sans
17364 Slide
17365 \family default
17366  environment [in the manner described in section
17367 \begin_inset space ~
17368 \end_inset
17369
17370
17371 \begin_inset CommandInset ref
17372 LatexCommand ref
17373 reference "sec:slideQuirk"
17374
17375 \end_inset
17376
17377 ] tells \SpecialChar LyX
17378  to begin a new slide [duh].
17379  The label for this environment/
17380 \begin_inset Quotes erd
17381 \end_inset
17382
17383 pseudo-command
17384 \begin_inset Quotes erd
17385 \end_inset
17386
17387  is an 
17388 \begin_inset Quotes eld
17389 \end_inset
17390
17391 ASCII line,
17392 \begin_inset Quotes erd
17393 \end_inset
17394
17395  in cool blue, followed by the label, 
17396 \begin_inset Quotes eld
17397 \end_inset
17398
17399 NewSlide:
17400 \begin_inset Quotes erd
17401 \end_inset
17402
17403 .
17404  Any text or paragraph environments that follow this one go on the new slide.
17405  It's that simple.
17406 \end_layout
17407
17408 \begin_layout Standard
17409 Slides are probably the only time you'll need to forcibly end pages in \SpecialChar LyX
17410
17411  (this can be specified in the 
17412 \family sans
17413 Paragraph Layout
17414 \family default
17415  dialog).
17416  In fact, you'll want to, once you finish entering the contents of one slide.
17417  If you've entered more text than can physically fit on a slide, the extra
17418  overflows onto a new slide.
17419  I don't recommend doing this, however, since the overflow slide won't have
17420  any page number on it.
17421  Furthermore, it may interfere with any 
17422 \family sans
17423 Overlay
17424 \family default
17425  you've made to accompany the oversized 
17426 \family sans
17427 Slide
17428 \family default
17429 .
17430 \end_layout
17431
17432 \begin_layout Standard
17433 The 
17434 \family sans
17435 Overlay
17436 \family default
17437  and 
17438 \family sans
17439 Note
17440 \family default
17441  environments work the same way as the 
17442 \family sans
17443 Slide
17444 \family default
17445  environment.
17446  They both create an 
17447 \begin_inset Quotes eld
17448 \end_inset
17449
17450 ASCII line
17451 \begin_inset Quotes erd
17452 \end_inset
17453
17454  followed by a label [
17455 \begin_inset Quotes eld
17456 \end_inset
17457
17458 NewOverlay:
17459 \begin_inset Quotes erd
17460 \end_inset
17461
17462  and 
17463 \begin_inset Quotes eld
17464 \end_inset
17465
17466 NewNote:
17467 \begin_inset Quotes erd
17468 \end_inset
17469
17470 , respectively].
17471  The color is a stunning magenta instead of blue, and the 
17472 \begin_inset Quotes eld
17473 \end_inset
17474
17475 ASCII line
17476 \begin_inset Quotes erd
17477 \end_inset
17478
17479  will look different, in style and in length.
17480  The label fonts of all three also differ from one another.
17481 \end_layout
17482
17483 \begin_layout Standard
17484 As with a 
17485 \family sans
17486 Slide
17487 \family default
17488 , if the contents of a 
17489 \family sans
17490 Note
17491 \family default
17492  or 
17493 \family sans
17494 Overlay
17495 \family default
17496  exceed the physical size of a slide or sheet of paper, the extra will overflow
17497  onto a new sheet.
17498  Again, you should avoid this.
17499  It defeats the whole purpose of 
17500 \family sans
17501 Note
17502 \family default
17503 s and 
17504 \family sans
17505 Overlay
17506 \family default
17507 s.
17508 \end_layout
17509
17510 \begin_layout Subsubsection
17511 Using 
17512 \family sans
17513 Overlay
17514 \family default
17515  with 
17516 \family sans
17517 Slide
17518 \end_layout
17519
17520 \begin_layout Standard
17521 The idea behind an 
17522 \family sans
17523 Overlay
17524 \family default
17525  is a slide that sits atop another slide.
17526  Perhaps you wish to discuss a figure on the main 
17527 \family sans
17528 Slide
17529 \family default
17530  before displaying the text associated with it.
17531  One way to accomplish this is tape a flap of dark paper over the part of
17532  the 
17533 \family sans
17534 Slide
17535 \family default
17536  you want to display later.
17537  This method fails, however, if you wish to overlap one graph with another,
17538  for example.
17539  You would then have to fumble while speaking to align the two separate,
17540  overlapping 
17541 \family sans
17542 Slide
17543 \family default
17544 s to align the two graphs.
17545  The use of an 
17546 \family sans
17547 Overlay
17548 \family default
17549  environment in both cases makes life much easier.
17550 \end_layout
17551
17552 \begin_layout Standard
17553 Each 
17554 \family sans
17555 Overlay
17556 \family default
17557  receives the page number of its 
17558 \begin_inset Quotes eld
17559 \end_inset
17560
17561 parent
17562 \begin_inset Quotes erd
17563 \end_inset
17564
17565  
17566 \family sans
17567 Slide
17568 \family default
17569 , appended by 
17570 \begin_inset Quotes eld
17571 \end_inset
17572
17573
17574 \family typewriter
17575 -a
17576 \family default
17577
17578 \begin_inset Quotes erd
17579 \end_inset
17580
17581 .
17582 \begin_inset Foot
17583 status collapsed
17584
17585 \begin_layout Plain Layout
17586 Presumably, mutliple 
17587 \family sans
17588 Overlay
17589 \family default
17590 s would have 
17591 \begin_inset Quotes eld
17592 \end_inset
17593
17594
17595 \family typewriter
17596 -a
17597 \family default
17598
17599 \begin_inset Quotes erd
17600 \end_inset
17601
17602
17603 \begin_inset Quotes eld
17604 \end_inset
17605
17606
17607 \family typewriter
17608 -b
17609 \family default
17610
17611 \begin_inset Quotes erd
17612 \end_inset
17613
17614
17615 \begin_inset Quotes eld
17616 \end_inset
17617
17618
17619 \family typewriter
17620 -c
17621 \family default
17622
17623 \begin_inset Quotes erd
17624 \end_inset
17625
17626 , etc.
17627 \begin_inset space ~
17628 \end_inset
17629
17630 appended to the page number of the parent 
17631 \family sans
17632 Slide
17633 \family default
17634 .
17635  
17636 \end_layout
17637
17638 \end_inset
17639
17640  Clearly, you want the contents of both the 
17641 \family sans
17642 Slide
17643 \family default
17644  and the 
17645 \family sans
17646 Overlay
17647 \family default
17648  to each fit on a single physical slide! You should probably consider an
17649  
17650 \family sans
17651 Overlay
17652 \family default
17653  as 
17654 \begin_inset Quotes eld
17655 \end_inset
17656
17657 part of
17658 \begin_inset Quotes erd
17659 \end_inset
17660
17661  a 
17662 \family sans
17663 Slide
17664 \family default
17665 .
17666  Indeed, the \SpecialChar LyX
17667  
17668 \family sans
17669 slides
17670 \family default
17671  class provides a visual cue for this: the label at the start of an 
17672 \family sans
17673 Overlay
17674 \family default
17675  is shorter than that at the start of a 
17676 \family sans
17677 Slide
17678 \family default
17679 .
17680  Lastly, when you generate printable output, you'll find alignment markers
17681  in all four corners of both the 
17682 \family sans
17683 Overlay
17684 \family default
17685  page and its parent 
17686 \family sans
17687 Slide
17688 \family default
17689 .
17690  These will assist you in lining up the two physical slides.
17691 \end_layout
17692
17693 \begin_layout Standard
17694 The major problem in overlaying two slides is aligning the contents of the
17695  two transparencies.
17696  How much space should you leave for that graph on the second slide? Worse
17697  still, what if you want a graph and a sentence on second slide, but there
17698  is text on the main transparency that goes in between them? You could try
17699  and insert vertical space of the right size.
17700  The better way is to use 
17701 \family sans
17702 InvisibleText
17703 \family default
17704  and 
17705 \family sans
17706 VisibleText
17707 \family default
17708 .
17709 \end_layout
17710
17711 \begin_layout Standard
17712 As their names imply, 
17713 \family sans
17714 InvisibleText
17715 \family default
17716  and 
17717 \family sans
17718 VisibleText
17719 \family default
17720  are two command-like paragraph environments that make all subsequent text
17721  invisible and visible, respectively.
17722  Note from section
17723 \begin_inset space ~
17724 \end_inset
17725
17726
17727 \begin_inset CommandInset ref
17728 LatexCommand ref
17729 reference "sec:slideQuirk"
17730
17731 \end_inset
17732
17733  that you don't place anything 
17734 \emph on
17735 into
17736 \emph default
17737  these two environments, however.
17738  When you create an 
17739 \family sans
17740 InvisibleText
17741 \family default
17742 , it inserts a centered, sky-blue label into the page reading 
17743 \begin_inset Quotes eld
17744 \end_inset
17745
17746 <Invisible Text Follows>
17747 \begin_inset Quotes erd
17748 \end_inset
17749
17750 .
17751  For paragraphs following this label, the parts of the 
17752 \family sans
17753 Slide
17754 \family default
17755  [or 
17756 \family sans
17757 Overlay
17758 \family default
17759 ; it doesn't matter which] where they would be contain instead blank space.
17760  
17761 \end_layout
17762
17763 \begin_layout Standard
17764 For 
17765 \family sans
17766 VisibleText
17767 \family default
17768 , the corresponding centered label is 
17769 \begin_inset Quotes eld
17770 \end_inset
17771
17772 <Visible Text Follows>
17773 \begin_inset Quotes erd
17774 \end_inset
17775
17776  in blazing green.
17777  Paragraphs following this label behave normally.
17778  Note that the beginning of a new 
17779 \family sans
17780 Slide
17781 \family default
17782
17783 \family sans
17784 Overlay
17785 \family default
17786 , or 
17787 \family sans
17788 Note
17789 \family default
17790  automatically shuts off an 
17791 \family sans
17792 InvisibleText
17793 \family default
17794 .
17795  It's therefore not necessary to use 
17796 \family sans
17797 VisibleText
17798 \family default
17799  at the end of a 
17800 \family sans
17801 Slide
17802 \family default
17803 .
17804 \end_layout
17805
17806 \begin_layout Standard
17807 By now, it should be obvious how to create overlay transparencies using
17808  the proper combination of 
17809 \family sans
17810 InvisibleText
17811 \family default
17812  and 
17813 \family sans
17814 VisibleText
17815 \family default
17816  on a 
17817 \family sans
17818 Slide
17819 \family default
17820  and 
17821 \family sans
17822 Overlay
17823 \family default
17824 :
17825 \end_layout
17826
17827 \begin_layout Enumerate
17828 Create a 
17829 \family sans
17830 Slide
17831 \family default
17832 , including everything that will appear on it, whether on the main slide
17833  or on the 
17834 \family sans
17835 Overlay
17836 \family default
17837 .
17838 \end_layout
17839
17840 \begin_layout Enumerate
17841 Before each figure or paragraph that will appear only on the 
17842 \family sans
17843 Overlay
17844 \family default
17845 , insert an 
17846 \family sans
17847 InvisibleText
17848 \family default
17849  environment.
17850  If necessary, insert a 
17851 \family sans
17852 VisibleText
17853 \family default
17854  environment after the 
17855 \family sans
17856 Overlay
17857 \family default
17858 -only text.
17859 \end_layout
17860
17861 \begin_layout Enumerate
17862 Start an 
17863 \family sans
17864 Overlay
17865 \family default
17866  immediately following the 
17867 \family sans
17868 Slide
17869 \family default
17870 .
17871 \end_layout
17872
17873 \begin_layout Enumerate
17874 Copy the contents of this 
17875 \family sans
17876 Slide
17877 \family default
17878  into the 
17879 \family sans
17880 Overlay
17881 \family default
17882 .
17883 \end_layout
17884
17885 \begin_layout Enumerate
17886 Within the 
17887 \family sans
17888 Overlay
17889 \family default
17890 , change all of the 
17891 \family sans
17892 InvisibleText
17893 \family default
17894  lines to 
17895 \family sans
17896 VisibleText
17897 \family default
17898  and vice-versa.
17899 \end_layout
17900
17901 \begin_layout Standard
17902 That's it.
17903  You've just made an 
17904 \family sans
17905 Overlay
17906 \family default
17907 .
17908 \end_layout
17909
17910 \begin_layout Standard
17911 There's one problem with the way I've designed the \SpecialChar LyX
17912  
17913 \family sans
17914 slides
17915 \family default
17916  class: you can't make text in the middle of a paragraph invisible, nor
17917  make text in the middle of an invisible paragraph visible again.
17918  To accomplish this feat, you'll need to use some inlined \SpecialChar LaTeX
17919  codes.
17920 \begin_inset Foot
17921 status collapsed
17922
17923 \begin_layout Plain Layout
17924 The commands of interest are: 
17925 \end_layout
17926
17927 \begin_layout Itemize
17928
17929 \family typewriter
17930 {
17931 \backslash
17932 invisible \SpecialChar ldots
17933  }
17934 \end_layout
17935
17936 \begin_layout Itemize
17937
17938 \family typewriter
17939 {
17940 \backslash
17941 visible \SpecialChar ldots
17942  }
17943 \end_layout
17944
17945 \begin_layout Plain Layout
17946 \SpecialChar ldots
17947 and need to be marked as \SpecialChar TeX
17948 .
17949  The text whose 
17950 \begin_inset Quotes eld
17951 \end_inset
17952
17953 visibility
17954 \begin_inset Quotes erd
17955 \end_inset
17956
17957  you wish to change goes in between the brackets [and after the 
17958 \family typewriter
17959
17960 \backslash
17961 invisible
17962 \family default
17963  or 
17964 \family typewriter
17965
17966 \backslash
17967 visible
17968 \family default
17969  command].
17970  If you don't know how to mark text as \SpecialChar TeX
17971 , see the appropriate section of
17972  the 
17973 \emph on
17974 User's Guide
17975 \emph default
17976 .
17977 \end_layout
17978
17979 \end_inset
17980
17981
17982 \end_layout
17983
17984 \begin_layout Subsubsection
17985 Using 
17986 \family sans
17987 Note
17988 \family default
17989  with 
17990 \family sans
17991 Slide
17992 \family default
17993
17994 \begin_inset CommandInset label
17995 LatexCommand label
17996 name "sec:slideNote"
17997
17998 \end_inset
17999
18000
18001 \end_layout
18002
18003 \begin_layout Standard
18004 Like an 
18005 \family sans
18006 Overlay
18007 \family default
18008 , a 
18009 \family sans
18010 Note
18011 \family default
18012  is associated with a 
18013 \begin_inset Quotes eld
18014 \end_inset
18015
18016 parent
18017 \begin_inset Quotes erd
18018 \end_inset
18019
18020  
18021 \family sans
18022 Slide
18023 \family default
18024 .
18025  Here, too, the \SpecialChar LyX
18026  
18027 \family sans
18028 slides
18029 \family default
18030  class provides visual cues.
18031  The label for a 
18032 \family sans
18033 Note
18034 \family default
18035  is shorter than that of a 
18036 \family sans
18037 Slide
18038 \family default
18039  [yet longer than that of an 
18040 \family sans
18041 Overlay
18042 \family default
18043 ] and, like the label of an 
18044 \family sans
18045 Overlay
18046 \family default
18047  is shockingly magenta.
18048  Additionally, the printed 
18049 \family sans
18050 Note
18051 \family default
18052  has the page number of its 
18053 \begin_inset Quotes eld
18054 \end_inset
18055
18056 parent
18057 \begin_inset Quotes erd
18058 \end_inset
18059
18060  
18061 \family sans
18062 Slide
18063 \family default
18064 , appended by 
18065 \begin_inset Quotes eld
18066 \end_inset
18067
18068
18069 \family typewriter
18070 -
18071 \family default
18072 1
18073 \begin_inset Quotes erd
18074 \end_inset
18075
18076
18077 \begin_inset Quotes eld
18078 \end_inset
18079
18080
18081 \family typewriter
18082 -
18083 \family default
18084 2
18085 \begin_inset Quotes erd
18086 \end_inset
18087
18088
18089 \begin_inset Quotes eld
18090 \end_inset
18091
18092
18093 \family typewriter
18094 -
18095 \family default
18096 3
18097 \begin_inset Quotes erd
18098 \end_inset
18099
18100 , etc.
18101  You can have multiple 
18102 \family sans
18103 Note
18104 \family default
18105 s associated with a single 
18106 \family sans
18107 Slide
18108 \family default
18109 , and, as with 
18110 \family sans
18111 Slide
18112 \family default
18113  and 
18114 \family sans
18115 Overlay
18116 \family default
18117 , you'll probably want to break up long 
18118 \family sans
18119 Note
18120 \family default
18121 s so that they fit on a single sheet of paper.
18122 \end_layout
18123
18124 \begin_layout Standard
18125 The purpose of a 
18126 \family sans
18127 Note
18128 \family default
18129  is obvious: it contains anything additional you might want to say about
18130  a 
18131 \family sans
18132 Slide
18133 \family default
18134 .
18135  It could also be used as a sheet of reminders for a particular 
18136 \family sans
18137 Slide
18138 \family default
18139 .
18140  In the case of the latter, you might want to make use of time markers.
18141  Currently, the \SpecialChar LyX
18142  
18143 \family sans
18144 slides
18145 \family default
18146  class has no 
18147 \begin_inset Quotes eld
18148 \end_inset
18149
18150 native
18151 \begin_inset Quotes erd
18152 \end_inset
18153
18154  support for time markers, a 
18155 \noun on
18156 Sli\SpecialChar TeX
18157
18158 \noun default
18159  feature.
18160  So, you'll have to resort to using the \SpecialChar LaTeX
18161  codes.
18162 \end_layout
18163
18164 \begin_layout Standard
18165 To use time markers, you'll need to specify the extra class option 
18166 \begin_inset Quotes eld
18167 \end_inset
18168
18169
18170 \family typewriter
18171 clock
18172 \family default
18173
18174 \begin_inset Quotes erd
18175 \end_inset
18176
18177  [see section
18178 \begin_inset space ~
18179 \end_inset
18180
18181
18182 \begin_inset CommandInset ref
18183 LatexCommand ref
18184 reference "sec:slidesetup"
18185
18186 \end_inset
18187
18188 ].
18189  This option turns on timing marks, which will appear in the lower-left-hand
18190  corner of every 
18191 \family sans
18192 Note
18193 \family default
18194  you generate.
18195  To set what appears in the time marker, you use the \SpecialChar LaTeX
18196  commands 
18197 \begin_inset Quotes eld
18198 \end_inset
18199
18200
18201 \family typewriter
18202
18203 \backslash
18204 settime{}
18205 \family default
18206
18207 \begin_inset Quotes erd
18208 \end_inset
18209
18210  and 
18211 \begin_inset Quotes eld
18212 \end_inset
18213
18214
18215 \family typewriter
18216
18217 \backslash
18218 addtime{}
18219 \family default
18220
18221 \begin_inset Quotes erd
18222 \end_inset
18223
18224 .
18225  The arguments of both commands are time measured in seconds.
18226  
18227 \begin_inset Quotes eld
18228 \end_inset
18229
18230
18231 \family typewriter
18232
18233 \backslash
18234 settime{}
18235 \family default
18236
18237 \begin_inset Quotes erd
18238 \end_inset
18239
18240  sets the time marker to a given time.
18241  
18242 \begin_inset Quotes eld
18243 \end_inset
18244
18245
18246 \family typewriter
18247
18248 \backslash
18249 addtime{}
18250 \family default
18251
18252 \begin_inset Quotes erd
18253 \end_inset
18254
18255  increments the time marker by the specified amount.
18256  Using time markers and 
18257 \family sans
18258 Note
18259 \family default
18260 s in this fashion, you can remind yourself how much time to spend on a particula
18261
18262 \family sans
18263 Slide
18264 \family default
18265 .
18266 \end_layout
18267
18268 \begin_layout Standard
18269 There's one last feature to describe.
18270  Clearly, you'd like to print out all of your 
18271 \family sans
18272 Slide
18273 \family default
18274 s and 
18275 \family sans
18276 Overlay
18277 \family default
18278 s on transparencies while printing all of your 
18279 \family sans
18280 Note
18281 \family default
18282 s on plain paper.
18283  However, a 
18284 \family sans
18285 Note
18286 \family default
18287  
18288 \emph on
18289 must
18290 \emph default
18291  follow the 
18292 \family sans
18293 Slide
18294 \family default
18295  with which it is associated.
18296  What's a person to do?
18297 \end_layout
18298
18299 \begin_layout Standard
18300 Luckily, there are two \SpecialChar LaTeX
18301  commands that allow you to select what to print
18302  out.
18303  Both must be placed into the preamble of your document.
18304  The command 
18305 \begin_inset Quotes eld
18306 \end_inset
18307
18308
18309 \family typewriter
18310
18311 \backslash
18312 onlyslides{
18313 \backslash
18314 slides}
18315 \family default
18316
18317 \begin_inset Quotes erd
18318 \end_inset
18319
18320  will cause the output to contain only the 
18321 \family sans
18322 Slide
18323 \family default
18324 s and 
18325 \family sans
18326 Overlay
18327 \family default
18328 s.
18329  Correspondingly, the command 
18330 \begin_inset Quotes eld
18331 \end_inset
18332
18333
18334 \family typewriter
18335
18336 \backslash
18337 onlynotes{
18338 \backslash
18339 notes}
18340 \family default
18341
18342 \begin_inset Quotes erd
18343 \end_inset
18344
18345  prevents the output of anything but 
18346 \family sans
18347 Note
18348 \family default
18349 s.
18350  I'd advise placing both commands in the preamble and initially comment
18351  both out.
18352  You can then preview your entire presentation as you write.
18353  When you're done writing, you can then uncomment one of the two to select
18354  what you want to print.
18355  I like to uncomment 
18356 \begin_inset Quotes eld
18357 \end_inset
18358
18359
18360 \family typewriter
18361
18362 \backslash
18363 onlyslides{
18364 \backslash
18365 slides}
18366 \family default
18367
18368 \begin_inset Quotes erd
18369 \end_inset
18370
18371  , print to a file with 
18372 \begin_inset Quotes eld
18373 \end_inset
18374
18375
18376 \family typewriter
18377 -slides
18378 \family default
18379
18380 \begin_inset Quotes erd
18381 \end_inset
18382
18383  in its name, comment it back out, then uncomment 
18384 \begin_inset Quotes eld
18385 \end_inset
18386
18387
18388 \family typewriter
18389
18390 \backslash
18391 onlynotes{
18392 \backslash
18393 notes}
18394 \family default
18395
18396 \begin_inset Quotes erd
18397 \end_inset
18398
18399  and print to a 
18400 \begin_inset Quotes eld
18401 \end_inset
18402
18403
18404 \family typewriter
18405 *-notes.ps
18406 \family default
18407
18408 \begin_inset Quotes erd
18409 \end_inset
18410
18411  file.
18412  I can then send either file to a printer, loading transparencies or plain
18413  paper as appropriate.
18414 \end_layout
18415
18416 \begin_layout Standard
18417 You can also provide other arguments to the 
18418 \begin_inset Quotes eld
18419 \end_inset
18420
18421
18422 \family typewriter
18423
18424 \backslash
18425 onlyslides{}
18426 \family default
18427
18428 \begin_inset Quotes erd
18429 \end_inset
18430
18431  and 
18432 \begin_inset Quotes eld
18433 \end_inset
18434
18435
18436 \family typewriter
18437
18438 \backslash
18439 onlynotes{}
18440 \family default
18441
18442 \begin_inset Quotes erd
18443 \end_inset
18444
18445  commands.
18446  See a good \SpecialChar LaTeX
18447  book for details.
18448 \end_layout
18449
18450 \begin_layout Subsection
18451 The 
18452 \family sans
18453 slides
18454 \family default
18455  Class Template File
18456 \end_layout
18457
18458 \begin_layout Standard
18459 I have also provided a template file, 
18460 \begin_inset Quotes eld
18461 \end_inset
18462
18463
18464 \family typewriter
18465 slides.lyx
18466 \family default
18467
18468 \begin_inset Quotes erd
18469 \end_inset
18470
18471 , with the 
18472 \family sans
18473 slides
18474 \family default
18475  class.
18476  To use it, begin your new presentation with 
18477 \family sans
18478 File\SpecialChar menuseparator
18479 New
18480 \begin_inset space ~
18481 \end_inset
18482
18483 from
18484 \begin_inset space ~
18485 \end_inset
18486
18487 Template
18488 \family default
18489 .
18490  Your new \SpecialChar LyX
18491  presentation file will contain an example 
18492 \family sans
18493 Slide
18494 \family default
18495  – 
18496 \family sans
18497 Overlay
18498 \family default
18499  – 
18500 \family sans
18501 Note
18502 \family default
18503  triplet.
18504  The 
18505 \family sans
18506 Slide
18507 \family default
18508  and 
18509 \family sans
18510 Overlay
18511 \family default
18512  additionally contain an example of the use of 
18513 \family sans
18514 InvisibleText
18515 \family default
18516  and 
18517 \family sans
18518 VisibleText
18519 \family default
18520 .
18521  Lastly, the preamble will contain:
18522 \end_layout
18523
18524 \begin_layout LyX-Code
18525 % Uncomment to print out only slides and overlays
18526 \end_layout
18527
18528 \begin_layout LyX-Code
18529 %
18530 \end_layout
18531
18532 \begin_layout LyX-Code
18533 %
18534 \backslash
18535 onlyslides{
18536 \backslash
18537 slides}
18538 \begin_inset Newline newline
18539 \end_inset
18540
18541  
18542 \end_layout
18543
18544 \begin_layout LyX-Code
18545 % Uncomment to print out only notes
18546 \end_layout
18547
18548 \begin_layout LyX-Code
18549 %
18550 \end_layout
18551
18552 \begin_layout LyX-Code
18553 %
18554 \backslash
18555 onlynotes{
18556 \backslash
18557 notes}
18558 \end_layout
18559
18560 \begin_layout Standard
18561 One final thing: I created this class to support the \SpecialChar LaTeX2e
18562  
18563 \begin_inset Quotes eld
18564 \end_inset
18565
18566
18567 \noun on
18568 Sli\SpecialChar TeX
18569
18570 \noun default
18571  emulation
18572 \begin_inset Quotes erd
18573 \end_inset
18574
18575  class, one of the built-in \SpecialChar LaTeX2e
18576  classes.
18577  Neither I nor the rest of the \SpecialChar LyX
18578  Team endorse or oppose the use of this built-in
18579  slide class.
18580  It's here if you want it or need it.
18581  There exist other \SpecialChar LaTeX2e
18582  classes for creating presentations, such as the 
18583 \family sans
18584 Foils
18585 \family default
18586  class [see section
18587 \begin_inset space ~
18588 \end_inset
18589
18590
18591 \begin_inset CommandInset ref
18592 LatexCommand ref
18593 reference "sec:foiltex"
18594
18595 \end_inset
18596
18597 ] or the 
18598 \begin_inset Quotes eld
18599 \end_inset
18600
18601
18602 \family typewriter
18603 seminar
18604 \family default
18605
18606 \begin_inset Quotes erd
18607 \end_inset
18608
18609  package [present on some \SpecialChar TeX
18610  distributions].
18611  The latter is not yet supported under \SpecialChar LyX
18612 .
18613 \begin_inset Foot
18614 status collapsed
18615
18616 \begin_layout Plain Layout
18617 Perhaps you can take on the task\SpecialChar ldots
18618
18619 \end_layout
18620
18621 \end_inset
18622
18623  I know nothing about these other classes.
18624  Try them out to see what sort of alternative they provide.
18625 \end_layout
18626
18627 \begin_layout Chapter
18628 \SpecialChar LyX
18629  Features needing Extra Software
18630 \end_layout
18631
18632 \begin_layout Section
18633 Checking \SpecialChar TeX
18634
18635 \end_layout
18636
18637 \begin_layout Standard
18638 by 
18639 \noun on
18640 Asger Alstrup
18641 \end_layout
18642
18643 \begin_layout Subsection
18644 Introduction
18645 \end_layout
18646
18647 \begin_layout Standard
18648 If you have the 
18649 \family typewriter
18650 chktex
18651 \family default
18652  program installed
18653 \begin_inset Foot
18654 status collapsed
18655
18656 \begin_layout Plain Layout
18657
18658 \family typewriter
18659 chktex
18660 \family default
18661  is not yet available when you are using the \SpecialChar LaTeX
18662  distribution MiK\SpecialChar TeX
18663 .
18664 \end_layout
18665
18666 \end_inset
18667
18668 , you'll find in the 
18669 \family sans
18670 Tools
18671 \family default
18672  menu the entry: 
18673 \family sans
18674 Check
18675 \begin_inset space ~
18676 \end_inset
18677
18678 TeX
18679 \family default
18680 .
18681  You can get 
18682 \family typewriter
18683 chktex
18684 \family default
18685  from CTAN,
18686 \begin_inset Newline newline
18687 \end_inset
18688
18689
18690 \begin_inset CommandInset href
18691 LatexCommand href
18692 target "https://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
18693 literal "false"
18694
18695 \end_inset
18696
18697 .
18698 \end_layout
18699
18700 \begin_layout Standard
18701 The 
18702 \family sans
18703 Chk\SpecialChar TeX
18704
18705 \family default
18706  package is a program that was written by 
18707 \begin_inset Flex Noun
18708 status collapsed
18709
18710 \begin_layout Plain Layout
18711 Jens T.
18712 \begin_inset space ~
18713 \end_inset
18714
18715 Berger Thielemann
18716 \end_layout
18717
18718 \end_inset
18719
18720  in frustration because some constructs in \SpecialChar LaTeX
18721  are sometimes non-intuitive,
18722  and easy to forget.
18723  The program runs over your \SpecialChar LaTeX
18724  file, checks the integrity of the file, and
18725  flags some common errors.
18726  In other technical words, it is 
18727 \family typewriter
18728 lint
18729 \family default
18730  for \SpecialChar LaTeX
18731 .
18732 \end_layout
18733
18734 \begin_layout Standard
18735 Well, what is a syntax checker doing in \SpecialChar LyX
18736  which is supposed to produce correct
18737  \SpecialChar LaTeX
18738  anyways? The answer is simple: Just as 
18739 \family typewriter
18740 Lint
18741 \family default
18742  not only checks the 
18743 \emph on
18744 syntax
18745 \emph default
18746  of C programs, but also does 
18747 \emph on
18748 semantic
18749 \emph default
18750  checks for type-errors, 
18751 \family sans
18752 Chk\SpecialChar TeX
18753
18754 \family default
18755  catches some common 
18756 \emph on
18757 typographic
18758 \emph default
18759  errors, in addition to the syntactical ones.
18760  Specifically, 
18761 \family sans
18762 Chk\SpecialChar TeX
18763
18764 \family default
18765  is capable of detecting several common errors, such as
18766 \end_layout
18767
18768 \begin_layout Itemize
18769 Ellipsis detection:
18770 \begin_inset Newline newline
18771 \end_inset
18772
18773 Use \SpecialChar ldots
18774  instead of ...
18775 \end_layout
18776
18777 \begin_layout Itemize
18778 No space in front of/after parenthesis:
18779 \begin_inset Newline newline
18780 \end_inset
18781
18782 ( wrong spacing )
18783 \end_layout
18784
18785 \begin_layout Itemize
18786 Enforcement of normal space after common abbreviations:
18787 \begin_inset Newline newline
18788 \end_inset
18789
18790 e.
18791 \begin_inset space \thinspace{}
18792 \end_inset
18793
18794 g.
18795 \begin_inset space \space{}
18796 \end_inset
18797
18798 is too wide spacing.
18799 \end_layout
18800
18801 \begin_layout Itemize
18802 Enforcement of end-of-sentence space when the last sentence ends with a
18803  capital letter:
18804 \begin_inset Newline newline
18805 \end_inset
18806
18807 This is a TEST.
18808  And this is wrong spacing.
18809 \end_layout
18810
18811 \begin_layout Itemize
18812 Space in front of labels and similar commands:
18813 \begin_inset Newline newline
18814 \end_inset
18815
18816 The label should stick right up to the text to avoid falling to a wrong
18817  page.
18818  
18819 \begin_inset CommandInset label
18820 LatexCommand label
18821 name "sec:chktex"
18822
18823 \end_inset
18824
18825  
18826 \begin_inset Foot
18827 status collapsed
18828
18829 \begin_layout Plain Layout
18830 This footnote is in danger of falling off to a wrong page
18831 \end_layout
18832
18833 \end_inset
18834
18835  The label is separated too much.
18836 \end_layout
18837
18838 \begin_layout Itemize
18839 Space in front of references, instead of hard spaces:
18840 \begin_inset Newline newline
18841 \end_inset
18842
18843 If you have bad luck, the text will break right between the referenced text
18844  and reference number, and that's a pity.
18845  See section 
18846 \begin_inset CommandInset ref
18847 LatexCommand ref
18848 reference "sec:chktex"
18849
18850 \end_inset
18851
18852 .
18853 \end_layout
18854
18855 \begin_layout Itemize
18856 Use of 
18857 \begin_inset Quotes eld
18858 \end_inset
18859
18860 x
18861 \begin_inset Quotes erd
18862 \end_inset
18863
18864  instead of 
18865 \begin_inset Formula $\times$
18866 \end_inset
18867
18868  between numbers:
18869 \begin_inset Newline newline
18870 \end_inset
18871
18872 2x2 looks cheap compared to 
18873 \begin_inset Formula $2\times2$
18874 \end_inset
18875
18876 .
18877 \end_layout
18878
18879 \begin_layout Standard
18880 and more \SpecialChar ldots
18881  It is an invaluable tool when you are 
18882 \begin_inset Quotes eld
18883 \end_inset
18884
18885 finishing up
18886 \begin_inset Quotes erd
18887 \end_inset
18888
18889  your document before printing, and you should run it right after the obligatory
18890  spelling check, and before you go fine tuning the typesetting.
18891 \end_layout
18892
18893 \begin_layout Subsection
18894 How to use it
18895 \end_layout
18896
18897 \begin_layout Standard
18898 If you have the program installed, usage is as simple as choosing 
18899 \family sans
18900 Tools\SpecialChar menuseparator
18901 Check
18902 \begin_inset space ~
18903 \end_inset
18904
18905 TeX
18906 \family default
18907 .
18908  This will make \SpecialChar LyX
18909  generate a \SpecialChar LaTeX
18910  file of your document, start 
18911 \family sans
18912 Chk\SpecialChar TeX
18913
18914 \family default
18915  to check it, and then make \SpecialChar LyX
18916  insert 
18917 \begin_inset Quotes eld
18918 \end_inset
18919
18920 error boxes
18921 \begin_inset Quotes erd
18922 \end_inset
18923
18924  with the warnings from 
18925 \family sans
18926 Chk\SpecialChar TeX
18927
18928 \family default
18929 , if there were any.
18930  The warnings will be placed close to the point of the mistake, and you
18931  can quickly find them by using the 
18932 \family sans
18933 Navigate\SpecialChar menuseparator
18934 Error
18935 \family default
18936  menu item, or the shortcut key 
18937 \family sans
18938 C-g
18939 \family default
18940  from the default 
18941 \family typewriter
18942 cua
18943 \family default
18944  bind file.
18945  Open the error boxes by clicking on them with the mouse, or use the shortcut
18946  key 
18947 \family sans
18948 C-i
18949 \family default
18950  from 
18951 \family typewriter
18952 cua
18953 \family default
18954  bindings, or the corresponding 
18955 \family sans
18956 C-o
18957 \family default
18958  for the alternate 
18959 \family typewriter
18960 emacs
18961 \family default
18962  bind file.
18963  Read the warning and correct the mistake, if it is a mistake.
18964  If you have trouble understanding what the warning is about, you can safely
18965  ignore it.
18966  Remember that there is a hidden layer between the document on screen and
18967  the technical details in invoking 
18968 \family sans
18969 Chk\SpecialChar TeX
18970
18971 \family default
18972 , and this gap can make some warnings seem arcane or just plain silly.
18973 \end_layout
18974
18975 \begin_layout Standard
18976 This document is an excellent testing bed for the feature, and it should
18977  provide quite a few warnings for you to fiddle with.
18978  Since computers are only so smart, expect most of the warnings to be false
18979  alarms, though.
18980 \end_layout
18981
18982 \begin_layout Subsection
18983 How to fine tune it
18984 \end_layout
18985
18986 \begin_layout Standard
18987 Sometimes, you'll find that 
18988 \family sans
18989 Chk\SpecialChar TeX
18990
18991 \family default
18992  makes more noise than suits your mood.
18993  Then you can choose not to use it, wait until your mood changes, or try
18994  to customize 
18995 \family sans
18996 Chk\SpecialChar TeX
18997
18998 \family default
18999  to get better along with you.
19000 \end_layout
19001
19002 \begin_layout Standard
19003 Although 
19004 \family sans
19005 Chk\SpecialChar TeX
19006
19007 \family default
19008  
19009 \emph on
19010 is
19011 \emph default
19012  very configurable and extensible, you should not expect to solve all problems
19013  with 
19014 \family sans
19015 Chk\SpecialChar TeX
19016
19017 \family default
19018  in \SpecialChar LyX
19019  this way.
19020  Since \SpecialChar LyX
19021  has to generate a somewhat special \SpecialChar LaTeX
19022  file to be able to match the
19023  line numbers from the 
19024 \family sans
19025 Chk\SpecialChar TeX
19026
19027 \family default
19028  output
19029 \begin_inset Foot
19030 status collapsed
19031
19032 \begin_layout Plain Layout
19033 You can inspect the specific output from 
19034 \family sans
19035 chktex
19036 \family default
19037  by using 
19038 \family sans
19039 Document\SpecialChar menuseparator
19040 \SpecialChar LaTeX
19041
19042 \begin_inset space ~
19043 \end_inset
19044
19045 Log
19046 \family default
19047  right after a 
19048 \family sans
19049 chktex
19050 \family default
19051  run.
19052 \end_layout
19053
19054 \end_inset
19055
19056  to the internal document structure, some of the warnings will not appear
19057  correctly.
19058  There are two things you can do about this:
19059 \end_layout
19060
19061 \begin_layout Itemize
19062 Fine tune the 
19063 \family sans
19064 Chk\SpecialChar TeX
19065
19066 \family default
19067  invocation command line in 
19068 \begin_inset Flex Noun
19069 status collapsed
19070
19071 \begin_layout Plain Layout
19072 Tools\SpecialChar menuseparator
19073 Preferences\SpecialChar menuseparator
19074 Output\SpecialChar menuseparator
19075 LaTeX\SpecialChar menuseparator
19076 CheckTeX command
19077 \end_layout
19078
19079 \end_inset
19080
19081 , or the global 
19082 \family sans
19083 Chk\SpecialChar TeX
19084
19085 \family default
19086  installation configuration file (usually with the file 
19087 \family typewriter
19088 chktexrc
19089 \family default
19090 ).
19091  See below to learn what warnings can be enabled and disabled on the command
19092  line.
19093 \end_layout
19094
19095 \begin_layout Itemize
19096 Export your document as a raw \SpecialChar LaTeX
19097  file using 
19098 \family sans
19099 File\SpecialChar menuseparator
19100 Export\SpecialChar menuseparator
19101 \SpecialChar LaTeX
19102
19103 \family default
19104  and run 
19105 \family typewriter
19106 chktex
19107 \family default
19108  manually on that.
19109  Invoked in this way, it can be a hassle to find the corresponding place
19110  in the document inside \SpecialChar LyX
19111 , but with a little patience, you should be able
19112  to do it.
19113 \end_layout
19114
19115 \begin_layout Standard
19116 Here follows the warning messages that can be enabled and disabled in 
19117 \family sans
19118 Preferences
19119 \family default
19120 .
19121  Use 
19122 \family typewriter
19123 -n#
19124 \family default
19125  to disable a warning, and 
19126 \family typewriter
19127 -w#
19128 \family default
19129  to enable a warning.
19130  The emphasized entries are disabled by default, because the default is
19131  "
19132 \family typewriter
19133 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
19134 \family default
19135 ".
19136 \end_layout
19137
19138 \begin_layout Standard
19139 Notice that you should only use the options that enable and disable warnings,
19140  because \SpecialChar LyX
19141  relies on some of the other command line parameters to be set
19142  in a specific way to have a chance to communicate with 
19143 \family typewriter
19144 chktex
19145 \family default
19146 .
19147 \end_layout
19148
19149 \begin_layout Enumerate
19150
19151 \size small
19152 \emph on
19153 Command terminated with space.
19154 \end_layout
19155
19156 \begin_layout Enumerate
19157
19158 \size small
19159 Non-breaking space (
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 ) should have been used.
19172 \end_layout
19173
19174 \begin_layout Enumerate
19175
19176 \size small
19177 \emph on
19178 You should enclose the previous parenthesis with 
19179 \begin_inset Quotes eld
19180 \end_inset
19181
19182
19183 \family typewriter
19184 {}
19185 \family default
19186
19187 \begin_inset Quotes erd
19188 \end_inset
19189
19190 .
19191 \end_layout
19192
19193 \begin_layout Enumerate
19194
19195 \size small
19196 Italic correction (
19197 \begin_inset Quotes eld
19198 \end_inset
19199
19200
19201 \family typewriter
19202
19203 \backslash
19204 /
19205 \family default
19206
19207 \begin_inset Quotes erd
19208 \end_inset
19209
19210 ) found in non-italic buffer.
19211 \end_layout
19212
19213 \begin_layout Enumerate
19214
19215 \size small
19216 Italic correction (
19217 \begin_inset Quotes eld
19218 \end_inset
19219
19220
19221 \family typewriter
19222
19223 \backslash
19224 /
19225 \family default
19226
19227 \begin_inset Quotes erd
19228 \end_inset
19229
19230 ) found more than once.
19231 \end_layout
19232
19233 \begin_layout Enumerate
19234
19235 \size small
19236 \emph on
19237 No italic correction (
19238 \begin_inset Quotes eld
19239 \end_inset
19240
19241
19242 \family typewriter
19243
19244 \backslash
19245 /
19246 \family default
19247
19248 \begin_inset Quotes erd
19249 \end_inset
19250
19251 ) found.
19252 \end_layout
19253
19254 \begin_layout Enumerate
19255
19256 \size small
19257 Accent command 
19258 \begin_inset Quotes eld
19259 \end_inset
19260
19261
19262 \family typewriter
19263 cmd
19264 \family default
19265
19266 \begin_inset Quotes erd
19267 \end_inset
19268
19269  needs use of 
19270 \begin_inset Quotes eld
19271 \end_inset
19272
19273
19274 \family typewriter
19275 cmd
19276 \family default
19277
19278 \begin_inset Quotes erd
19279 \end_inset
19280
19281 .
19282 \end_layout
19283
19284 \begin_layout Enumerate
19285
19286 \size small
19287 Wrong length of dash may have been used.
19288 \end_layout
19289
19290 \begin_layout Enumerate
19291
19292 \size small
19293 \emph on
19294 \begin_inset Quotes eld
19295 \end_inset
19296
19297
19298 \family typewriter
19299 %s
19300 \family default
19301
19302 \begin_inset Quotes erd
19303 \end_inset
19304
19305  expected, found 
19306 \begin_inset Quotes eld
19307 \end_inset
19308
19309
19310 \family typewriter
19311 %s
19312 \family default
19313
19314 \begin_inset Quotes erd
19315 \end_inset
19316
19317 .
19318 \end_layout
19319
19320 \begin_layout Enumerate
19321
19322 \size small
19323 Solo 
19324 \begin_inset Quotes eld
19325 \end_inset
19326
19327
19328 \family typewriter
19329 %s
19330 \family default
19331
19332 \begin_inset Quotes erd
19333 \end_inset
19334
19335  found.
19336 \end_layout
19337
19338 \begin_layout Enumerate
19339
19340 \size small
19341 You should use 
19342 \begin_inset Quotes eld
19343 \end_inset
19344
19345
19346 \family typewriter
19347 %s
19348 \family default
19349
19350 \begin_inset Quotes erd
19351 \end_inset
19352
19353  to achieve an ellipsis.
19354 \end_layout
19355
19356 \begin_layout Enumerate
19357
19358 \size small
19359 Inter-word spacing (
19360 \begin_inset Quotes eld
19361 \end_inset
19362
19363
19364 \family typewriter
19365
19366 \backslash
19367
19368 \family default
19369  
19370 \begin_inset Quotes eld
19371 \end_inset
19372
19373 ) should perhaps be used.
19374 \end_layout
19375
19376 \begin_layout Enumerate
19377
19378 \size small
19379 Inter-sentence spacing (
19380 \begin_inset Quotes eld
19381 \end_inset
19382
19383
19384 \family typewriter
19385
19386 \backslash
19387 @
19388 \family default
19389
19390 \begin_inset Quotes erd
19391 \end_inset
19392
19393 ) should perhaps be used.
19394 \end_layout
19395
19396 \begin_layout Enumerate
19397
19398 \size small
19399 Could not find argument for command.
19400 \end_layout
19401
19402 \begin_layout Enumerate
19403
19404 \size small
19405 No match found for 
19406 \begin_inset Quotes eld
19407 \end_inset
19408
19409
19410 \family typewriter
19411 %s
19412 \family default
19413
19414 \begin_inset Quotes erd
19415 \end_inset
19416
19417 .
19418 \end_layout
19419
19420 \begin_layout Enumerate
19421
19422 \size small
19423 Math mode still on at end of \SpecialChar LaTeX
19424  file.
19425 \end_layout
19426
19427 \begin_layout Enumerate
19428
19429 \size small
19430 Number of 
19431 \begin_inset Quotes eld
19432 \end_inset
19433
19434
19435 \family typewriter
19436 char
19437 \family default
19438
19439 \begin_inset Quotes erd
19440 \end_inset
19441
19442  doesn't match the number of 
19443 \begin_inset Quotes eld
19444 \end_inset
19445
19446
19447 \family typewriter
19448 char
19449 \family default
19450
19451 \begin_inset Quotes erd
19452 \end_inset
19453
19454 .
19455 \end_layout
19456
19457 \begin_layout Enumerate
19458
19459 \size small
19460 You should use either 
19461 \family typewriter
19462
19463 \begin_inset Quotes eld
19464 \end_inset
19465
19466
19467 \family default
19468  or 
19469 \family typewriter
19470
19471 \begin_inset Quotes erd
19472 \end_inset
19473
19474
19475 \family default
19476  as an alternative to 
19477 \begin_inset Quotes eld
19478 \end_inset
19479
19480
19481 \family typewriter
19482 "
19483 \family default
19484
19485 \begin_inset Quotes erd
19486 \end_inset
19487
19488 .
19489 \end_layout
19490
19491 \begin_layout Enumerate
19492
19493 \size small
19494 You should use "
19495 \family typewriter
19496 '
19497 \family default
19498 " (ASCII 39) instead of "
19499 \family typewriter
19500 ´
19501 \family default
19502 " (ASCII 180).
19503 \end_layout
19504
19505 \begin_layout Enumerate
19506
19507 \size small
19508 User-specified pattern found.
19509 \end_layout
19510
19511 \begin_layout Enumerate
19512
19513 \size small
19514 This command might not be intended.
19515 \end_layout
19516
19517 \begin_layout Enumerate
19518
19519 \size small
19520 \emph on
19521 Comment displayed.
19522 \end_layout
19523
19524 \begin_layout Enumerate
19525
19526 \size small
19527 Either 
19528 \family typewriter
19529 ''
19530 \backslash
19531 ,'
19532 \family default
19533  or 
19534 \family typewriter
19535 '
19536 \backslash
19537 ,''
19538 \family default
19539  will look better.
19540 \end_layout
19541
19542 \begin_layout Enumerate
19543
19544 \size small
19545 Delete this space to maintain correct page references.
19546 \end_layout
19547
19548 \begin_layout Enumerate
19549
19550 \size small
19551 \emph on
19552 You might wish to put this between a pair of 
19553 \begin_inset Quotes eld
19554 \end_inset
19555
19556
19557 \family typewriter
19558 {}
19559 \family default
19560
19561 \begin_inset Quotes erd
19562 \end_inset
19563
19564 .
19565 \end_layout
19566
19567 \begin_layout Enumerate
19568
19569 \size small
19570 You ought to remove spaces in front of punctuation.
19571 \end_layout
19572
19573 \begin_layout Enumerate
19574
19575 \size small
19576 Could not execute \SpecialChar LaTeX
19577  command.
19578 \end_layout
19579
19580 \begin_layout Enumerate
19581
19582 \size small
19583 Don't use 
19584 \family typewriter
19585
19586 \backslash
19587 /
19588 \family default
19589  in front of small punctuation.
19590 \end_layout
19591
19592 \begin_layout Enumerate
19593
19594 \family typewriter
19595 \size small
19596 $
19597 \backslash
19598 times$
19599 \family default
19600  may look prettier here.
19601 \end_layout
19602
19603 \begin_layout Enumerate
19604
19605 \size small
19606 \emph on
19607 Multiple spaces detected in output.
19608 \end_layout
19609
19610 \begin_layout Enumerate
19611
19612 \size small
19613 This text may be ignored.
19614 \end_layout
19615
19616 \begin_layout Enumerate
19617
19618 \size small
19619 Use 
19620 \family typewriter
19621
19622 \begin_inset Quotes eld
19623 \end_inset
19624
19625
19626 \family default
19627  to begin quotation, not 
19628 \family typewriter
19629 '
19630 \family default
19631 .
19632 \end_layout
19633
19634 \begin_layout Enumerate
19635
19636 \size small
19637 Use 
19638 \family typewriter
19639 '
19640 \family default
19641  to end quotation, not 
19642 \family typewriter
19643
19644 \begin_inset Quotes eld
19645 \end_inset
19646
19647
19648 \family default
19649 .
19650 \end_layout
19651
19652 \begin_layout Enumerate
19653
19654 \size small
19655 Don't mix quotes.
19656 \end_layout
19657
19658 \begin_layout Enumerate
19659
19660 \size small
19661 You should perhaps use 
19662 \begin_inset Quotes eld
19663 \end_inset
19664
19665
19666 \family typewriter
19667 cmd
19668 \family default
19669
19670 \begin_inset Quotes erd
19671 \end_inset
19672
19673  instead.
19674 \end_layout
19675
19676 \begin_layout Enumerate
19677
19678 \size small
19679 You should put a space in front of/after parenthesis.
19680 \end_layout
19681
19682 \begin_layout Enumerate
19683
19684 \size small
19685 You should avoid spaces in front of/after parenthesis.
19686 \end_layout
19687
19688 \begin_layout Enumerate
19689
19690 \size small
19691 \emph on
19692 You should not use punctuation in front of/after quotes.
19693 \end_layout
19694
19695 \begin_layout Enumerate
19696
19697 \size small
19698 Double space found.
19699 \end_layout
19700
19701 \begin_layout Enumerate
19702
19703 \size small
19704 You should put punctuation outside inner/inside display math mode.
19705 \end_layout
19706
19707 \begin_layout Enumerate
19708
19709 \size small
19710 You ought to not use primitive \SpecialChar TeX
19711  in \SpecialChar LaTeX
19712  code.
19713 \end_layout
19714
19715 \begin_layout Enumerate
19716
19717 \size small
19718 You should remove spaces in front of 
19719 \begin_inset Quotes eld
19720 \end_inset
19721
19722
19723 \family typewriter
19724 %s
19725 \family default
19726
19727 \begin_inset Quotes erd
19728 \end_inset
19729
19730
19731 \end_layout
19732
19733 \begin_layout Enumerate
19734
19735 \size small
19736 \begin_inset Quotes eld
19737 \end_inset
19738
19739
19740 \family typewriter
19741 %s
19742 \family default
19743
19744 \begin_inset Quotes erd
19745 \end_inset
19746
19747  is normally not followed by 
19748 \begin_inset Quotes eld
19749 \end_inset
19750
19751
19752 \family typewriter
19753 %c
19754 \family default
19755
19756 \begin_inset Quotes erd
19757 \end_inset
19758
19759 .
19760 \end_layout
19761
19762 \begin_layout Standard
19763 In later versions of \SpecialChar LyX
19764 , we hope to provide a more complete interface to this
19765  tool (and it's smaller cousin 
19766 \family typewriter
19767 lacheck
19768 \family default
19769 ) to exploit the full power of it.
19770  But it's not exactly useless as it is now: go try it on one of your existing
19771  documents of a certain length and be surprised.
19772 \end_layout
19773
19774 \begin_layout Section
19775 Version Control in \SpecialChar LyX
19776
19777 \end_layout
19778
19779 \begin_layout Standard
19780 by
19781 \noun on
19782  Lars Gullik Bjønnes 
19783 \noun default
19784 and 
19785 \noun on
19786 Pavel Sanda
19787 \end_layout
19788
19789 \begin_layout Subsection
19790 Introduction
19791 \end_layout
19792
19793 \begin_layout Standard
19794 \SpecialChar LyX
19795  supports some of the most basic RCS/CVS/SVN/GIT commands.
19796  If you need something a bit more sophisticated you will have to do that
19797  manually in a terminal.
19798 \end_layout
19799
19800 \begin_layout Standard
19801 Also note that CVS support is not as good as subversion support, so we advise
19802  using SVN instead.
19803  A good place to start learning Subversion is the SVN Book
19804 \begin_inset Foot
19805 status collapsed
19806
19807 \begin_layout Plain Layout
19808 \begin_inset CommandInset href
19809 LatexCommand href
19810 target "http://svnbook.red-bean.com/"
19811 literal "false"
19812
19813 \end_inset
19814
19815
19816 \end_layout
19817
19818 \end_inset
19819
19820 .
19821  In the case of RCS you should read 
19822 \begin_inset Quotes eld
19823 \end_inset
19824
19825 rcsintro
19826 \begin_inset Quotes erd
19827 \end_inset
19828
19829  (a man file, read it with 
19830 \family typewriter
19831 man rcsintro
19832 \family default
19833 ).
19834  This file describes all the basic features of RCS.
19835  You should especially notice the comment about a RCS directory, and the
19836  notion of a master RCS file (the file ending in 
19837 \family typewriter
19838 ,v
19839 \family default
19840 ).
19841 \end_layout
19842
19843 \begin_layout Standard
19844 Before you begin to use the version control features in \SpecialChar LyX
19845 , you should be
19846  familiar with RCS/CVS/SVN/GIT usage.
19847  The implementation in \SpecialChar LyX
19848  assumes a recent version of the GNU RCS or CVS/SVN
19849  package — no guarantees are made for older versions.
19850  Most of the log messages are not currently displayed after operations —
19851  you can check them in the Messages pane if you are unsure.
19852  Regular users of version control will appreciate the VC toolbar, which
19853  can be enabled via 
19854 \family sans
19855 View\SpecialChar menuseparator
19856 Toolbars\SpecialChar menuseparator
19857 Version
19858 \begin_inset space ~
19859 \end_inset
19860
19861 Control
19862 \family default
19863 .
19864 \end_layout
19865
19866 \begin_layout Standard
19867 For introducing your own external commands consult 
19868 \begin_inset Flex Code
19869 status collapsed
19870
19871 \begin_layout Plain Layout
19872 vc-command
19873 \end_layout
19874
19875 \end_inset
19876
19877  in the manual 
19878 \emph on
19879 \SpecialChar LyX
19880  Functions
19881 \emph default
19882 .
19883 \end_layout
19884
19885 \begin_layout Standard
19886 It is strongly recommended to store documents in uncompressed format if
19887  using version control (uncheck 
19888 \family sans
19889 Document\SpecialChar menuseparator
19890 Compressed
19891 \family default
19892  if it is checked): Uncompressed LyX documents are text files and therefore
19893  for merging two different versions by version control systems.
19894  Compressed LyX documents are binary files, which cannot be merged by version
19895  control systems.
19896 \end_layout
19897
19898 \begin_layout Subsection
19899 RCS commands in \SpecialChar LyX
19900
19901 \end_layout
19902
19903 \begin_layout Standard
19904 The following sections describe the RCS commands supported by \SpecialChar LyX
19905 .
19906  You can find them in the 
19907 \family sans
19908 File\SpecialChar menuseparator
19909 Version
19910 \begin_inset space ~
19911 \end_inset
19912
19913 Control
19914 \family default
19915  submenu.
19916  \SpecialChar LyX
19917  was tested against RCS 5.7/5.8.
19918 \end_layout
19919
19920 \begin_layout Subsubsection
19921
19922 \family sans
19923 Register
19924 \end_layout
19925
19926 \begin_layout Standard
19927 If your document is not under revision control, this is the only item shown
19928  in the menu.
19929  And if it is under revision control, the 
19930 \family sans
19931 Register
19932 \family default
19933  item is not visible.
19934  
19935 \end_layout
19936
19937 \begin_layout Standard
19938 This command registers your document with RCS (unless you are under the
19939  directory managed by CVS)\SpecialChar endofsentence
19940  You are asked interactively to supply an initial
19941  description of the document.
19942  The document is now set in Read-Only mode and you have to 
19943 \family sans
19944 Check
19945 \begin_inset space ~
19946 \end_inset
19947
19948 Out
19949 \begin_inset space ~
19950 \end_inset
19951
19952 For
19953 \begin_inset space ~
19954 \end_inset
19955
19956 Edit
19957 \family default
19958 , before making any changes to it.
19959  A document under revision control has a 
19960 \begin_inset Quotes eld
19961 \end_inset
19962
19963 [RCS:<version> <locker>]
19964 \begin_inset Quotes erd
19965 \end_inset
19966
19967  item tagged to the filename in the minibuffer.
19968 \end_layout
19969
19970 \begin_layout Standard
19971 RCS command that is run:
19972 \end_layout
19973
19974 \begin_layout LyX-Code
19975
19976 \family typewriter
19977 ci -q -u -i -t-"<initial description>" <file-name>
19978 \end_layout
19979
19980 \begin_layout Standard
19981 Read 
19982 \family typewriter
19983 man ci
19984 \family default
19985  to understand the switches.
19986  
19987 \end_layout
19988
19989 \begin_layout Subsubsection
19990
19991 \family sans
19992 Check In Changes
19993 \end_layout
19994
19995 \begin_layout Standard
19996 When you are finished editing a file, you check in your changes.
19997  When you do this, you are asked for a description of the changes.
19998  This is stored in the history log.
19999  The version number is bumped, your changes are applied to the master RCS
20000  file, the document is unlocked and set to Read-Only mode.
20001 \end_layout
20002
20003 \begin_layout Itemize
20004 RCS command: 
20005 \family typewriter
20006 ci -q -u -m"<description>" <file-name>
20007 \end_layout
20008
20009 \begin_layout Subsubsection
20010
20011 \family sans
20012 Check Out For Edit
20013 \end_layout
20014
20015 \begin_layout Standard
20016 By doing this you lock the document so that only you can edit it.
20017  This will also make the document Read-Write only for you.
20018  You will usually continue editing for a while and when you are finished
20019  you check in your changes.
20020  The status line is changed to reflect that you have locked the file.
20021 \end_layout
20022
20023 \begin_layout Itemize
20024 RCS command: 
20025 \family typewriter
20026 co -q -l <file-name>
20027 \end_layout
20028
20029 \begin_layout Subsubsection
20030
20031 \family sans
20032 Revert To Repository Version
20033 \end_layout
20034
20035 \begin_layout Standard
20036 This will discard all changes made to the document since the last check
20037  in.
20038  You get a warning before changes are discarded.
20039 \end_layout
20040
20041 \begin_layout Itemize
20042 RCS command: 
20043 \family typewriter
20044 co -f -u<version> <file-name>
20045 \end_layout
20046
20047 \begin_layout Subsubsection
20048
20049 \family sans
20050 Copy
20051 \end_layout
20052
20053 \begin_layout Standard
20054 This will create a copy of the current document.
20055  Since RCS does not support copy operations natively, the version history
20056  is not preserved, and the copy is added as a new file.
20057  It requires a clean document without any changes since the last checkin.
20058  You are asked for a file name and a description of the copy operation.
20059  After that the copy is created, both locally and in the repository.
20060  If the parent directories of the copied and original document differ, all
20061  relative paths of included files of the copy are adjusted (like in 
20062 \family sans
20063 File\SpecialChar menuseparator
20064 Save As
20065 \family default
20066 \SpecialChar ldots
20067 ).
20068  Finally, the copy is loaded instead of the original document.
20069 \end_layout
20070
20071 \begin_layout Labeling
20072 \labelwidthstring 00.00.0000
20073 RCS
20074 \begin_inset space ~
20075 \end_inset
20076
20077 commands: 
20078 \begin_inset space ~
20079 \end_inset
20080
20081
20082 \begin_inset Newline newline
20083 \end_inset
20084
20085 Copy 
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 <file-name>
20096 \begin_inset Quotes qld
20097 \end_inset
20098
20099
20100 \end_layout
20101
20102 \end_inset
20103
20104  to 
20105 \begin_inset Flex Code
20106 status collapsed
20107
20108 \begin_layout Plain Layout
20109
20110 \family typewriter
20111 \begin_inset Quotes qld
20112 \end_inset
20113
20114 <new-file-name>
20115 \begin_inset Quotes qld
20116 \end_inset
20117
20118
20119 \end_layout
20120
20121 \end_inset
20122
20123
20124 \begin_inset Newline newline
20125 \end_inset
20126
20127
20128 \begin_inset Flex Code
20129 status collapsed
20130
20131 \begin_layout Plain Layout
20132 ci -q -u 
20133 \family typewriter
20134 -i 
20135 \begin_inset Quotes qld
20136 \end_inset
20137
20138 <new-file-name>
20139 \begin_inset Quotes qld
20140 \end_inset
20141
20142
20143 \end_layout
20144
20145 \end_inset
20146
20147
20148 \end_layout
20149
20150 \begin_layout Subsubsection
20151
20152 \family sans
20153 Undo Last Checkin
20154 \end_layout
20155
20156 \begin_layout Standard
20157 This makes as if the last check in never happened.
20158  No changes are made to the document loaded into \SpecialChar LyX
20159 , but the last version
20160  is removed from the master RCS file.
20161 \end_layout
20162
20163 \begin_layout Itemize
20164 RCS command: 
20165 \family typewriter
20166 rcs -o<version> <file-name>
20167 \end_layout
20168
20169 \begin_layout Subsubsection
20170
20171 \family sans
20172 Show History
20173 \end_layout
20174
20175 \begin_layout Standard
20176 This shows the complete history of the RCS document.
20177  The output of 
20178 \family typewriter
20179 rlog <file-name>
20180 \family default
20181  is shown in a browser.
20182  See 
20183 \family typewriter
20184 man rlog
20185 \family default
20186  for more info.
20187 \end_layout
20188
20189 \begin_layout Subsubsection
20190 Revision info
20191 \end_layout
20192
20193 \begin_layout Standard
20194 \SpecialChar LyX
20195  supports RCS version number, author name, date and time of last commit.
20196  All those are extracted from 
20197 \family typewriter
20198 rlog -r <file-name>
20199 \family default
20200 .
20201  See 
20202 \begin_inset CommandInset ref
20203 LatexCommand ref
20204 reference "subsec:VCS-Revision-Information"
20205
20206 \end_inset
20207
20208  for details.
20209 \end_layout
20210
20211 \begin_layout Subsection
20212 CVS commands in \SpecialChar LyX
20213
20214 \end_layout
20215
20216 \begin_layout Standard
20217 A subset of CVS operations is supported by \SpecialChar LyX
20218 .
20219  You can find the commands in the 
20220 \family sans
20221 File\SpecialChar menuseparator
20222 Version
20223 \begin_inset space ~
20224 \end_inset
20225
20226 Control
20227 \family default
20228  submenu.
20229  The version control system SVN is more powerful, so please use it instead
20230  of CVS if possible.
20231 \end_layout
20232
20233 \begin_layout Subsubsection
20234
20235 \family sans
20236 General CVS usage
20237 \end_layout
20238
20239 \begin_layout Standard
20240 If you start from scratch with CVS you have to create your repository and
20241  checkout the working copy with external tools.
20242  If you're using a client-server setup you may need to login before doing
20243  the first repository checkout.
20244 \end_layout
20245
20246 \begin_layout Standard
20247 If your documents are under revision control and others are using the same
20248  repository problems arise when different changes to the same document at
20249  the same location happen.
20250  Standard CVS repositories don't operate with a file locking mechanism.
20251  This may be surprising, but conflicts only occur if people disagree on
20252  the proper content of the same part of a document.
20253  So, if co-workers are used to communicate regularly, these conflicts occur
20254  rarely.
20255  If they don't communicate they have a fundamental problem anyway.
20256  Nevertheless some people like to work with so called 
20257 \begin_inset Quotes eld
20258 \end_inset
20259
20260 reserved checkouts
20261 \begin_inset Quotes erd
20262 \end_inset
20263
20264 .
20265  If they do so the working copy of all files is readonly when checked out
20266  first and the user starts editing after using a special command to make
20267  the working copy writable.
20268  When the changes are checked in the working copy returns to readonly state.
20269  With \SpecialChar LyX
20270  one has to edit the 
20271 \begin_inset Flex Code
20272 status collapsed
20273
20274 \begin_layout Plain Layout
20275 .cvsrc
20276 \end_layout
20277
20278 \end_inset
20279
20280  file and add the line 
20281 \begin_inset Flex Code
20282 status collapsed
20283
20284 \begin_layout Plain Layout
20285 cvs -r
20286 \end_layout
20287
20288 \end_inset
20289
20290  to work with reserved checkouts.
20291  The benefit is the possibility to see who is using a writable copy of some
20292  document.
20293  It's not guaranteed only one user makes a copy writable.
20294 \end_layout
20295
20296 \begin_layout Standard
20297 \SpecialChar LyX
20298  tries to guess if you're using reserved or non-reserved checkouts.
20299  If your working copy is readonly or it is writable and an additional copy
20300  of your document exists in the CVS/Base sub-directory a reserved otherwise
20301  a non-reserved checkout is assumed.
20302  When a reserved checkout is detected you have to use 
20303 \begin_inset Flex Noun
20304 status collapsed
20305
20306 \begin_layout Plain Layout
20307 Check Out
20308 \end_layout
20309
20310 \end_inset
20311
20312  to make your working copy writable if it's readonly.
20313  After doing so the 
20314 \begin_inset Flex Noun
20315 status collapsed
20316
20317 \begin_layout Plain Layout
20318 Check In
20319 \end_layout
20320
20321 \end_inset
20322
20323  operation is possible and that makes your working copy readonly again after
20324  transferring your changes to the repository.
20325 \end_layout
20326
20327 \begin_layout Standard
20328 More information about CVS can be found here 
20329 \begin_inset Flex URL
20330 status collapsed
20331
20332 \begin_layout Plain Layout
20333
20334 http://www.nongnu.org/cvs
20335 \end_layout
20336
20337 \end_inset
20338
20339  and here 
20340 \begin_inset Flex URL
20341 status collapsed
20342
20343 \begin_layout Plain Layout
20344
20345 http://ximbiot.com/cvs
20346 \end_layout
20347
20348 \end_inset
20349
20350 .
20351 \end_layout
20352
20353 \begin_layout Standard
20354 Read 
20355 \family typewriter
20356 man cvs
20357 \family default
20358  to understand the sub-commands and the switches mentioned below.
20359 \end_layout
20360
20361 \begin_layout Subsubsection
20362
20363 \family sans
20364 Register
20365 \end_layout
20366
20367 \begin_layout Standard
20368 If your document is not under revision control, this is the only item shown
20369  in the menu.
20370  And if it is under revision control, the 
20371 \family sans
20372 Register
20373 \family default
20374  item is not visible.
20375  
20376 \end_layout
20377
20378 \begin_layout Standard
20379 This command registers in CVS your document 
20380 \begin_inset Flex Strong
20381 status collapsed
20382
20383 \begin_layout Plain Layout
20384
20385 \emph on
20386 only
20387 \end_layout
20388
20389 \end_inset
20390
20391  in the case you have already the documents directory under CVS control
20392  (in particular 
20393 \family typewriter
20394 CVS/Entries
20395 \family default
20396  file exists).
20397  This means you have to create or checkout the archive by yourself using
20398  external tools.
20399  (In case you forget that step \SpecialChar LyX
20400  registers the document with RCS.)
20401 \end_layout
20402
20403 \begin_layout Standard
20404 Then you are asked interactively to supply an initial description of the
20405  document.
20406  Don't forget that registered file is not yet checked in.
20407 \end_layout
20408
20409 \begin_layout Standard
20410 CVS command that is run: 
20411 \family typewriter
20412 cvs -q add -m"<entered message>" "<file-name>"
20413 \end_layout
20414
20415 \begin_layout Standard
20416 The term 
20417 \family typewriter
20418 "<file-name>"
20419 \family default
20420  above and for all other CVS commands is an abbreviation for 
20421 \begin_inset Quotes eld
20422 \end_inset
20423
20424 change the current working directory to file location and use the file name
20425  without path component as argument
20426 \begin_inset Quotes erd
20427 \end_inset
20428
20429 .
20430 \end_layout
20431
20432 \begin_layout Subsubsection
20433
20434 \family sans
20435 Check In Changes
20436 \end_layout
20437
20438 \begin_layout Standard
20439 When you are finished editing a file, you commit your changes.
20440  When you do this and you had changed the document, you are asked for a
20441  description of the changes.
20442  After that changes are written to the repository.
20443  In case you didn't change the document and a reserved checkout is detected
20444  the reservation made on 
20445 \begin_inset Flex Noun
20446 status collapsed
20447
20448 \begin_layout Plain Layout
20449 Check Out
20450 \end_layout
20451
20452 \end_inset
20453
20454  is undone.
20455 \end_layout
20456
20457 \begin_layout Labeling
20458 \labelwidthstring 00.00.0000
20459 CVS
20460 \begin_inset space ~
20461 \end_inset
20462
20463 command: 
20464 \begin_inset space ~
20465 \end_inset
20466
20467
20468 \begin_inset Newline newline
20469 \end_inset
20470
20471
20472 \begin_inset Flex Code
20473 status collapsed
20474
20475 \begin_layout Plain Layout
20476 cvs 
20477 \family typewriter
20478 -q commit -m"<description>" "<file-name>"
20479 \end_layout
20480
20481 \end_inset
20482
20483  or
20484 \begin_inset Newline newline
20485 \end_inset
20486
20487
20488 \begin_inset Flex Code
20489 status collapsed
20490
20491 \begin_layout Plain Layout
20492 cvs -q unedit 
20493 \family typewriter
20494 "<file-name>"
20495 \end_layout
20496
20497 \end_inset
20498
20499
20500 \end_layout
20501
20502 \begin_layout Subsubsection
20503
20504 \family sans
20505 Check Out Changes
20506 \end_layout
20507
20508 \begin_layout Standard
20509 When you are sharing a repository with others, you may have to incorporate
20510  their changes into your working copy.
20511 \end_layout
20512
20513 \begin_layout Standard
20514 CVS command: 
20515 \family typewriter
20516 cvs -q update "<file-name>"
20517 \end_layout
20518
20519 \begin_layout Standard
20520 If a readonly checkout is detected the working copy is made writable and
20521  reserved.
20522 \end_layout
20523
20524 \begin_layout Standard
20525 CVS command: 
20526 \family typewriter
20527 cvs -q edit "<file-name>"
20528 \end_layout
20529
20530 \begin_layout Subsubsection
20531
20532 \family sans
20533 Revert To Repository Version
20534 \end_layout
20535
20536 \begin_layout Standard
20537 This will discard all changes made to the document since the last check
20538  in.
20539  You get a warning before changes are discarded.
20540  Firstly the file is deleted, secondly CVS update command is run.
20541 \end_layout
20542
20543 \begin_layout Standard
20544 CVS command: 
20545 \family typewriter
20546 cvs -q update "<file-name>"
20547 \end_layout
20548
20549 \begin_layout Standard
20550 If a reserved checkout is detected and the working copy has no changes only
20551  the reservation is undone.
20552 \end_layout
20553
20554 \begin_layout Standard
20555 CVS command: 
20556 \family typewriter
20557 cvs -q unedit "<file-name>"
20558 \end_layout
20559
20560 \begin_layout Subsubsection
20561
20562 \family sans
20563 Copy
20564 \end_layout
20565
20566 \begin_layout Standard
20567 This will create a copy of the current document.
20568  Since CVS does not support copy operations natively, the version history
20569  is not preserved, and the copy is added as a new file.
20570  It requires a clean document without any changes since the last checkin.
20571  You are asked for a file name and a description of the copy operation.
20572  After that the copy is created, both locally and in the repository.
20573  If the parent directories of the copied and original document differ, all
20574  relative paths of included files of the copy are adjusted (like in 
20575 \family sans
20576 File\SpecialChar menuseparator
20577 Save As
20578 \family default
20579 \SpecialChar ldots
20580 ).
20581  Finally, the copy is loaded instead of the original document.
20582 \end_layout
20583
20584 \begin_layout Labeling
20585 \labelwidthstring 00.00.0000
20586 CVS
20587 \begin_inset space ~
20588 \end_inset
20589
20590 commands: 
20591 \begin_inset space ~
20592 \end_inset
20593
20594
20595 \begin_inset Newline newline
20596 \end_inset
20597
20598 Copy 
20599 \begin_inset Flex Code
20600 status collapsed
20601
20602 \begin_layout Plain Layout
20603
20604 \family typewriter
20605 \lang ngerman
20606 "
20607 \lang english
20608 <file-name>
20609 \lang ngerman
20610 "
20611 \end_layout
20612
20613 \end_inset
20614
20615  to 
20616 \begin_inset Flex Code
20617 status collapsed
20618
20619 \begin_layout Plain Layout
20620
20621 \family typewriter
20622 \lang ngerman
20623 "
20624 \lang english
20625 <new-file-name>
20626 \lang ngerman
20627 "
20628 \end_layout
20629
20630 \end_inset
20631
20632
20633 \begin_inset Newline newline
20634 \end_inset
20635
20636
20637 \begin_inset Flex Code
20638 status collapsed
20639
20640 \begin_layout Plain Layout
20641 cvs -q add 
20642 \family typewriter
20643 \lang ngerman
20644 "
20645 \lang english
20646 <new-file-name>
20647 \lang ngerman
20648 "
20649 \end_layout
20650
20651 \end_inset
20652
20653
20654 \end_layout
20655
20656 \begin_layout Subsubsection
20657
20658 \family sans
20659 Rename
20660 \end_layout
20661
20662 \begin_layout Standard
20663 This will rename the current document.
20664  Since CVS does not support rename operations natively, the version history
20665  is not preserved, the renamed document is added as a new file, and the
20666  original document is deleted.
20667  It requires a clean document without any changes since the last checkin.
20668  You are asked for a file name and a description of the rename operation.
20669  After that the document is renamed, both locally and in the repository.
20670  If the parent directories of the new and old file names differ, all relative
20671  paths of included files are adjusted (like in 
20672 \family sans
20673 File\SpecialChar menuseparator
20674 Save As
20675 \family default
20676 \SpecialChar ldots
20677 ).
20678  Finally, the document is reloaded using the new name.
20679 \end_layout
20680
20681 \begin_layout Labeling
20682 \labelwidthstring 00.00.0000
20683 CVS
20684 \begin_inset space ~
20685 \end_inset
20686
20687 commands: 
20688 \begin_inset space ~
20689 \end_inset
20690
20691
20692 \begin_inset Newline newline
20693 \end_inset
20694
20695 Rename 
20696 \begin_inset Flex Code
20697 status collapsed
20698
20699 \begin_layout Plain Layout
20700
20701 \family typewriter
20702 \lang ngerman
20703 "
20704 \lang english
20705 <file-name>
20706 \lang ngerman
20707 "
20708 \end_layout
20709
20710 \end_inset
20711
20712  to 
20713 \begin_inset Flex Code
20714 status collapsed
20715
20716 \begin_layout Plain Layout
20717
20718 \family typewriter
20719 \lang ngerman
20720 "
20721 \lang english
20722 <new-file-name>
20723 \lang ngerman
20724 "
20725 \end_layout
20726
20727 \end_inset
20728
20729
20730 \begin_inset Newline newline
20731 \end_inset
20732
20733
20734 \begin_inset Flex Code
20735 status collapsed
20736
20737 \begin_layout Plain Layout
20738 cvs -q add 
20739 \family typewriter
20740 \lang ngerman
20741 "
20742 \lang english
20743 <new-file-name>
20744 \lang ngerman
20745 "
20746 \end_layout
20747
20748 \end_inset
20749
20750
20751 \begin_inset Newline newline
20752 \end_inset
20753
20754
20755 \begin_inset Flex Code
20756 status collapsed
20757
20758 \begin_layout Plain Layout
20759 cvs -q remove 
20760 \family typewriter
20761 \lang ngerman
20762 "
20763 \lang english
20764 <file-name>
20765 \lang ngerman
20766 "
20767 \end_layout
20768
20769 \end_inset
20770
20771
20772 \end_layout
20773
20774 \begin_layout Subsubsection
20775 Update of the local directory checkout from repository
20776 \end_layout
20777
20778 \begin_layout Standard
20779 Once your documents gets more complex, containing sub-documents and pictures,
20780  including external 
20781 \begin_inset Flex Code
20782 status collapsed
20783
20784 \begin_layout Plain Layout
20785 .tex
20786 \end_layout
20787
20788 \end_inset
20789
20790  files and so on using version control becomes more complicated.
20791  \SpecialChar LyX
20792  supports updating the whole tree in which resides the document.
20793  This become especially useful once you cooperate with people which neither
20794  have detailed knowledge about CVS usage nor they have ambition to commit
20795  additional material to the repository.
20796  You have to organize the files structure so that all external files are
20797  in the same directory or subdirectories of the document.
20798  It's good practice anyway to store multipart documents in an extra directory.
20799 \end_layout
20800
20801 \begin_layout Standard
20802 The 
20803 \begin_inset Flex Code
20804 status collapsed
20805
20806 \begin_layout Plain Layout
20807 Update local directory from repository
20808 \end_layout
20809
20810 \end_inset
20811
20812  command updates the whole directory.
20813  If local changes are detected user is warned before update starts.
20814  In case of merge conflicts both versions of the conflicting document parts
20815  are placed in the final document.
20816  You have to review and correct the result of the merge.
20817  You'll find the conflicts enclosed in pairs of 
20818 \begin_inset Flex Code
20819 status collapsed
20820
20821 \begin_layout Plain Layout
20822 <<<<<<<
20823 \end_layout
20824
20825 \end_inset
20826
20827  and 
20828 \begin_inset Flex Code
20829 status collapsed
20830
20831 \begin_layout Plain Layout
20832 >>>>>>>
20833 \end_layout
20834
20835 \end_inset
20836
20837  separated by 
20838 \begin_inset Flex Code
20839 status collapsed
20840
20841 \begin_layout Plain Layout
20842 =======
20843 \end_layout
20844
20845 \end_inset
20846
20847 .
20848  The first part is your version as before the update operation with the
20849  document name prepended.
20850  The second one is the repository version with the version number after
20851  the sequence of 
20852 \begin_inset Flex Code
20853 status collapsed
20854
20855 \begin_layout Plain Layout
20856 >
20857 \end_layout
20858
20859 \end_inset
20860
20861  signs.
20862 \end_layout
20863
20864 \begin_layout Labeling
20865 \labelwidthstring 00.00.0000
20866 CVS
20867 \begin_inset space ~
20868 \end_inset
20869
20870 commands: 
20871 \begin_inset space ~
20872 \end_inset
20873
20874
20875 \begin_inset Newline newline
20876 \end_inset
20877
20878
20879 \begin_inset Flex Code
20880 status collapsed
20881
20882 \begin_layout Plain Layout
20883 cd $path; cvs diff 
20884 \family typewriter
20885 "."
20886 \end_layout
20887
20888 \end_inset
20889
20890  (Ask if changes are detected.)
20891 \begin_inset Newline newline
20892 \end_inset
20893
20894
20895 \begin_inset Flex Code
20896 status collapsed
20897
20898 \begin_layout Plain Layout
20899 cd $path; cvs -q update 
20900 \family typewriter
20901 "."
20902 \end_layout
20903
20904 \end_inset
20905
20906
20907 \end_layout
20908
20909 \begin_layout Standard
20910 where 
20911 \begin_inset Flex Code
20912 status collapsed
20913
20914 \begin_layout Plain Layout
20915 $path
20916 \end_layout
20917
20918 \end_inset
20919
20920  stands for the path to the document.
20921 \end_layout
20922
20923 \begin_layout Subsubsection
20924
20925 \family sans
20926 Show History
20927 \end_layout
20928
20929 \begin_layout Standard
20930 This shows the complete history of the CVS document.
20931  The output of 
20932 \family typewriter
20933 cvs log "<file-name>"
20934 \family default
20935  is shown in a browser.
20936 \end_layout
20937
20938 \begin_layout Subsubsection
20939 Revision info
20940 \end_layout
20941
20942 \begin_layout Standard
20943 \SpecialChar LyX
20944  supports CVS version number, author name, date and time of last commit.
20945  All those are extracted from 
20946 \family typewriter
20947 cvs log -r <file-name>
20948 \family default
20949 .
20950  See 
20951 \begin_inset CommandInset ref
20952 LatexCommand ref
20953 reference "subsec:VCS-Revision-Information"
20954
20955 \end_inset
20956
20957  for details.
20958 \end_layout
20959
20960 \begin_layout Subsection
20961 SVN commands in \SpecialChar LyX
20962
20963 \end_layout
20964
20965 \begin_layout Standard
20966 SVN is now partially supported by \SpecialChar LyX
20967 .
20968  You can find the commands in the 
20969 \family sans
20970 File\SpecialChar menuseparator
20971 Version
20972 \begin_inset space ~
20973 \end_inset
20974
20975 Control
20976 \family default
20977  submenu.
20978  Please note that if you use password protected access to repository via
20979  ssh, you will be asked in terminal window.
20980  \SpecialChar LyX
20981  was tested against SVN 1.5, 1.6, 1.7 and 1.8
20982 \begin_inset Foot
20983 status collapsed
20984
20985 \begin_layout Plain Layout
20986 Most of the commands will work with 1.4 too, see 
20987 \begin_inset CommandInset ref
20988 LatexCommand ref
20989 reference "subsec:SVN-Repo-Update"
20990
20991 \end_inset
20992
20993 .
20994  There seems to be currently unresolved permissions problem under SVN 1.8
20995  with reverting changes when file is locked.
20996 \end_layout
20997
20998 \end_inset
20999
21000
21001 \end_layout
21002
21003 \begin_layout Subsubsection
21004
21005 \family sans
21006 Register
21007 \end_layout
21008
21009 \begin_layout Standard
21010 If your document is not under revision control, this is the only item shown
21011  in the menu.
21012  And if it is under revision control, the 
21013 \family sans
21014 Register
21015 \family default
21016  item is not visible.
21017 \end_layout
21018
21019 \begin_layout Standard
21020 This command registers in SVN your document ONLY in case you have already
21021  the documents directory under SVN control (in particular 
21022 \family typewriter
21023 .svn/entries
21024 \family default
21025  file exists).
21026  This means you have to checkout the archive by yourself.
21027 \end_layout
21028
21029 \begin_layout Standard
21030 Then you are asked interactively to supply an initial description of the
21031  document.
21032  Don't forget that registered file is not yet commited.
21033 \end_layout
21034
21035 \begin_layout Standard
21036 SVN command that is run: 
21037 \family typewriter
21038 svn add -q 
21039 \begin_inset Quotes qld
21040 \end_inset
21041
21042 <file-name>
21043 \begin_inset Quotes qld
21044 \end_inset
21045
21046
21047 \end_layout
21048
21049 \begin_layout Standard
21050 Read 
21051 \family typewriter
21052 man svn
21053 \family default
21054  to understand the switches.
21055 \end_layout
21056
21057 \begin_layout Subsubsection
21058
21059 \family sans
21060 Check In Changes
21061 \end_layout
21062
21063 \begin_layout Standard
21064 When you are finished editing a file, you commit your changes.
21065  When you do this, you are asked for a description of the changes.
21066  After that changes are commited.
21067 \end_layout
21068
21069 \begin_layout Standard
21070 SVN command:
21071 \begin_inset Foot
21072 status collapsed
21073
21074 \begin_layout Plain Layout
21075 In case locking is not enabled.
21076  See Section 
21077 \begin_inset CommandInset ref
21078 LatexCommand ref
21079 reference "subsec:SVN-File-Locking"
21080
21081 \end_inset
21082
21083 .
21084 \end_layout
21085
21086 \end_inset
21087
21088  
21089 \family typewriter
21090 svn commit -q -m"<description>" <file-name>
21091 \end_layout
21092
21093 \begin_layout Subsubsection
21094
21095 \family sans
21096 Check Out For Edit
21097 \end_layout
21098
21099 \begin_layout Standard
21100 Updates the changes of this file from the repository.
21101  Be sure you understand SVN merging and conflicts resolving before using
21102  this function, because all conflicts has to be resolved manually by you!
21103 \end_layout
21104
21105 \begin_layout Standard
21106 SVN command:
21107 \begin_inset Foot
21108 status collapsed
21109
21110 \begin_layout Plain Layout
21111 Ditto.
21112 \end_layout
21113
21114 \end_inset
21115
21116  
21117 \family typewriter
21118 svn update --non-interactive 
21119 \begin_inset Quotes qld
21120 \end_inset
21121
21122 <file-name>
21123 \begin_inset Quotes qld
21124 \end_inset
21125
21126
21127 \end_layout
21128
21129 \begin_layout Subsubsection
21130
21131 \family sans
21132 Revert To Repository Version
21133 \end_layout
21134
21135 \begin_layout Standard
21136 This will discard all changes made to the document since the last check
21137  in.
21138  You get a warning before changes are discarded.
21139 \end_layout
21140
21141 \begin_layout Standard
21142 SVN command: 
21143 \family typewriter
21144 svn revert -q 
21145 \begin_inset Quotes qld
21146 \end_inset
21147
21148 <file-name>
21149 \begin_inset Quotes qld
21150 \end_inset
21151
21152
21153 \end_layout
21154
21155 \begin_layout Subsubsection
21156
21157 \family sans
21158 Copy
21159 \end_layout
21160
21161 \begin_layout Standard
21162 This will create a copy of the current document including the version history.
21163  It requires a clean document without any changes since the last checkin.
21164  You are asked for a file name and a description of the copy operation.
21165  After that the copy is created, both locally and in the repository.
21166  If the parent directories of the copied and original document differ, all
21167  relative paths of included files of the copy are adjusted (like in 
21168 \family sans
21169 File\SpecialChar menuseparator
21170 Save As
21171 \family default
21172 \SpecialChar ldots
21173 ).
21174  Finally, the copy is loaded instead of the original document.
21175 \end_layout
21176
21177 \begin_layout Labeling
21178 \labelwidthstring 00.00.0000
21179 SVN
21180 \begin_inset space ~
21181 \end_inset
21182
21183 commands: 
21184 \begin_inset space ~
21185 \end_inset
21186
21187
21188 \begin_inset Newline newline
21189 \end_inset
21190
21191
21192 \begin_inset Flex Code
21193 status collapsed
21194
21195 \begin_layout Plain Layout
21196 svn copy -q 
21197 \family typewriter
21198
21199 \begin_inset Quotes qld
21200 \end_inset
21201
21202 <file-name>
21203 \begin_inset Quotes qld
21204 \end_inset
21205
21206  
21207 \begin_inset Quotes qld
21208 \end_inset
21209
21210 <new-file-name>
21211 \begin_inset Quotes qld
21212 \end_inset
21213
21214
21215 \end_layout
21216
21217 \end_inset
21218
21219
21220 \begin_inset Newline newline
21221 \end_inset
21222
21223
21224 \begin_inset Flex Code
21225 status collapsed
21226
21227 \begin_layout Plain Layout
21228 svn commit
21229 \end_layout
21230
21231 \end_inset
21232
21233
21234 \end_layout
21235
21236 \begin_layout Subsubsection
21237
21238 \family sans
21239 Rename
21240 \end_layout
21241
21242 \begin_layout Standard
21243 This will rename the current document including the version history.
21244  It requires a clean document without any changes since the last checkin.
21245  You are asked for a file name and a description of the rename operation.
21246  After that the document is renamed, both locally and in the repository.
21247  If the parent directories of the new and old file names differ, all relative
21248  paths of included files are adjusted (like in 
21249 \family sans
21250 File\SpecialChar menuseparator
21251 Save As
21252 \family default
21253 \SpecialChar ldots
21254 ).
21255  Finally, the document is reloaded using the new name.
21256 \end_layout
21257
21258 \begin_layout Labeling
21259 \labelwidthstring 00.00.0000
21260 SVN
21261 \begin_inset space ~
21262 \end_inset
21263
21264 commands: 
21265 \begin_inset space ~
21266 \end_inset
21267
21268
21269 \begin_inset Newline newline
21270 \end_inset
21271
21272
21273 \begin_inset Flex Code
21274 status collapsed
21275
21276 \begin_layout Plain Layout
21277 svn move -q 
21278 \family typewriter
21279
21280 \begin_inset Quotes qld
21281 \end_inset
21282
21283 <file-name>
21284 \begin_inset Quotes qld
21285 \end_inset
21286
21287  
21288 \begin_inset Quotes qld
21289 \end_inset
21290
21291 <new-file-name>
21292 \begin_inset Quotes qld
21293 \end_inset
21294
21295
21296 \end_layout
21297
21298 \end_inset
21299
21300
21301 \begin_inset Newline newline
21302 \end_inset
21303
21304
21305 \begin_inset Flex Code
21306 status collapsed
21307
21308 \begin_layout Plain Layout
21309 svn commit
21310 \end_layout
21311
21312 \end_inset
21313
21314
21315 \end_layout
21316
21317 \begin_layout Subsubsection
21318 \begin_inset CommandInset label
21319 LatexCommand label
21320 name "subsec:SVN-Repo-Update"
21321
21322 \end_inset
21323
21324 Update of the local directory checkout from repository
21325 \begin_inset Foot
21326 status collapsed
21327
21328 \begin_layout Plain Layout
21329 Note that this command will work only with subversion 
21330 \begin_inset Formula $\geqq1.5$
21331 \end_inset
21332
21333
21334 \end_layout
21335
21336 \end_inset
21337
21338
21339 \end_layout
21340
21341 \begin_layout Standard
21342 All the commands above have one shortcoming – they deal with the current
21343  document only.
21344  Once your document contains pictures, includes external 
21345 \begin_inset Flex Code
21346 status collapsed
21347
21348 \begin_layout Plain Layout
21349 .tex
21350 \end_layout
21351
21352 \end_inset
21353
21354  files and so on administration becomes more complicated.
21355  \SpecialChar LyX
21356  now supports updating the whole tree in which resides the document
21357 \begin_inset Foot
21358 status collapsed
21359
21360 \begin_layout Plain Layout
21361 One need to organize the files structure so that all external files are
21362  in the same directory or subdirectories of the document.
21363  
21364 \end_layout
21365
21366 \end_inset
21367
21368 .
21369  This become especially useful once you cooperate with people which neither
21370  know about subversion management nor they have ambition to commit additional
21371  material to the repository.
21372  
21373 \end_layout
21374
21375 \begin_layout Standard
21376 \begin_inset Flex Code
21377 status collapsed
21378
21379 \begin_layout Plain Layout
21380 Update local directory from repository
21381 \end_layout
21382
21383 \end_inset
21384
21385  command updates the whole directory and in case of merge conflicts local
21386  version of the files are left, so no unintended data loss occurs.
21387  If local changes are detected user is warned before update starts.
21388 \end_layout
21389
21390 \begin_layout Labeling
21391 \labelwidthstring 00.00.0000
21392 SVN
21393 \begin_inset space ~
21394 \end_inset
21395
21396 commands: 
21397 \begin_inset space ~
21398 \end_inset
21399
21400
21401 \begin_inset Newline newline
21402 \end_inset
21403
21404
21405 \begin_inset Flex Code
21406 status collapsed
21407
21408 \begin_layout Plain Layout
21409 svn diff $path
21410 \end_layout
21411
21412 \end_inset
21413
21414  (Ask if changes are detected.)
21415 \begin_inset Newline newline
21416 \end_inset
21417
21418
21419 \begin_inset Flex Code
21420 status collapsed
21421
21422 \begin_layout Plain Layout
21423 svn update --accept mine-full $path
21424 \end_layout
21425
21426 \end_inset
21427
21428
21429 \end_layout
21430
21431 \begin_layout Standard
21432 where 
21433 \begin_inset Flex Code
21434 status collapsed
21435
21436 \begin_layout Plain Layout
21437 $path
21438 \end_layout
21439
21440 \end_inset
21441
21442  stands for the path to the document.
21443 \end_layout
21444
21445 \begin_layout Subsubsection
21446
21447 \family sans
21448 Show History
21449 \end_layout
21450
21451 \begin_layout Standard
21452 This shows the complete history of the SVN document.
21453  The output of 
21454 \family typewriter
21455 svn log 
21456 \begin_inset Quotes qld
21457 \end_inset
21458
21459 <file-name>
21460 \begin_inset Quotes qld
21461 \end_inset
21462
21463
21464 \family default
21465  is shown in a browser.
21466 \end_layout
21467
21468 \begin_layout Subsubsection
21469 File Locking
21470 \begin_inset CommandInset label
21471 LatexCommand label
21472 name "subsec:SVN-File-Locking"
21473
21474 \end_inset
21475
21476
21477 \end_layout
21478
21479 \begin_layout Standard
21480 The file exchange through various revision control systems brings the problem
21481  of merge conflicts in case two different users try to edit the same (parts
21482  of) document.
21483  When such a conflict happens it needs manual resolving and one reasonable
21484  alternative is to provide some kind of locking mechanism, which guarantees
21485  that only one user is allowed to edit file at the given time.
21486 \end_layout
21487
21488 \begin_layout Standard
21489 SVN has two such mechanisms to provide mutual exclusivity for file access
21490  – locks and automatic setting of write permissions (see sec.
21491  
21492 \begin_inset CommandInset ref
21493 LatexCommand ref
21494 reference "subsec:Automatical-Locking-Property"
21495
21496 \end_inset
21497
21498 ) based on 
21499 \begin_inset Flex Code
21500 status collapsed
21501
21502 \begin_layout Plain Layout
21503 svn:needs-lock
21504 \end_layout
21505
21506 \end_inset
21507
21508  file svn property
21509 \begin_inset Foot
21510 status collapsed
21511
21512 \begin_layout Plain Layout
21513 \begin_inset Flex URL
21514 status open
21515
21516 \begin_layout Plain Layout
21517
21518 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
21519 \end_layout
21520
21521 \end_inset
21522
21523
21524 \end_layout
21525
21526 \end_inset
21527
21528 .
21529  If this property is detected for a given document \SpecialChar LyX
21530  starts to use SVN locks
21531  for document editing automatically and the whole check-in/out mechanism
21532  switches to the same regimen as for RCS.
21533  This in particular means there are two different modes of file use in \SpecialChar LyX
21534 :
21535 \end_layout
21536
21537 \begin_layout Itemize
21538 Unlocked state.
21539  The loaded file is in the read-only mode.
21540  For editing on needs to check-out.
21541  
21542 \emph on
21543 Check-out
21544 \emph default
21545  consists of updating from the repository and gaining write lock.
21546  If the lock is not possible to obtain, we remain in unlocked state.
21547 \end_layout
21548
21549 \begin_layout Itemize
21550 Locked state.
21551  The loaded file is in the 
21552 \begin_inset Quotes els
21553 \end_inset
21554
21555 normal
21556 \begin_inset Quotes ers
21557 \end_inset
21558
21559  edit mode.
21560  No other user is allowed to edit the file.
21561  
21562 \emph on
21563 Check-in
21564 \emph default
21565  consists of commiting changes and releasing write-lock.
21566  If no changes have been made to the document, no commit will be produced
21567 \begin_inset Foot
21568 status collapsed
21569
21570 \begin_layout Plain Layout
21571 Don't be puzzled by the fact that you will be asked for commit message anyway.
21572 \end_layout
21573
21574 \end_inset
21575
21576  and only the write-lock will be released.
21577 \end_layout
21578
21579 \begin_layout Standard
21580 SVN commands:
21581 \end_layout
21582
21583 \begin_layout Labeling
21584 \labelwidthstring 00.00.0000
21585 Check-in:
21586 \family typewriter
21587  svn commit -q -m"<description>" "<file-name>"
21588 \begin_inset Newline newline
21589 \end_inset
21590
21591 svn unlock "<file-name>"
21592 \end_layout
21593
21594 \begin_layout Labeling
21595 \labelwidthstring 00.00.0000
21596 Check-out: 
21597 \family typewriter
21598 svn update "<file-name>"
21599 \begin_inset Newline newline
21600 \end_inset
21601
21602 svn lock "<file-name>"
21603 \end_layout
21604
21605 \begin_layout Subsubsection
21606
21607 \family typewriter
21608 \begin_inset CommandInset label
21609 LatexCommand label
21610 name "subsec:Automatical-Locking-Property"
21611
21612 \end_inset
21613
21614
21615 \family default
21616 Automatic Locking Property
21617 \end_layout
21618
21619 \begin_layout Standard
21620 The above mentioned automatic setting of write permissions of the .lyx file
21621  can be set through
21622 \family sans
21623  File\SpecialChar menuseparator
21624 Version
21625 \begin_inset space ~
21626 \end_inset
21627
21628 Control\SpecialChar menuseparator
21629 Use Locking Property
21630 \family default
21631 .
21632  This command is active only when the file is not locked on the svn server
21633  (i.e.
21634  you need to check-out before proceeding).
21635 \end_layout
21636
21637 \begin_layout Labeling
21638 \labelwidthstring 00.00.0000
21639 SVN
21640 \begin_inset space ~
21641 \end_inset
21642
21643 commands:
21644 \end_layout
21645
21646 \begin_layout Labeling
21647 \labelwidthstring 00.00.0000
21648 Set:
21649 \family typewriter
21650  svn propset svn:needs-lock ON "<file-name>"
21651 \end_layout
21652
21653 \begin_layout Labeling
21654 \labelwidthstring 00.00.0000
21655 Unset: 
21656 \family typewriter
21657 svn propdel svn:needs-lock "<file-name>"
21658 \end_layout
21659
21660 \begin_layout Subsubsection
21661 \begin_inset CommandInset label
21662 LatexCommand label
21663 name "subsec:VCS-Revision-Information"
21664
21665 \end_inset
21666
21667 Revision Information in Documents
21668 \end_layout
21669
21670 \begin_layout Standard
21671 There are more possibilities how to activate revision information in our
21672  document.
21673 \end_layout
21674
21675 \begin_layout Itemize
21676 \SpecialChar LyX
21677  supports directly:
21678 \end_layout
21679
21680 \begin_deeper
21681 \begin_layout Itemize
21682 tree revision information (
21683 \begin_inset Flex Code
21684 status collapsed
21685
21686 \begin_layout Plain Layout
21687 vcs-tree-revision
21688 \end_layout
21689
21690 \end_inset
21691
21692 ).
21693  The result is the output of the 
21694 \begin_inset Flex Code
21695 status collapsed
21696
21697 \begin_layout Plain Layout
21698 svnversion
21699 \end_layout
21700
21701 \end_inset
21702
21703  command, the following table gives you an idea, how to read the results.
21704 \end_layout
21705
21706 \begin_layout Standard
21707 \align center
21708 \begin_inset Tabular
21709 <lyxtabular version="3" rows="6" columns="2">
21710 <features tabularvalignment="middle">
21711 <column alignment="left" valignment="top">
21712 <column alignment="left" valignment="top">
21713 <row>
21714 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21715 \begin_inset Text
21716
21717 \begin_layout Plain Layout
21718
21719 \series bold
21720 Output
21721 \end_layout
21722
21723 \end_inset
21724 </cell>
21725 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21726 \begin_inset Text
21727
21728 \begin_layout Plain Layout
21729
21730 \series bold
21731 Meaning
21732 \end_layout
21733
21734 \end_inset
21735 </cell>
21736 </row>
21737 <row>
21738 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
21739 \begin_inset Text
21740
21741 \begin_layout Plain Layout
21742 4123:4168
21743 \end_layout
21744
21745 \end_inset
21746 </cell>
21747 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21748 \begin_inset Text
21749
21750 \begin_layout Plain Layout
21751 mixed revision working copy
21752 \end_layout
21753
21754 \end_inset
21755 </cell>
21756 </row>
21757 <row>
21758 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
21759 \begin_inset Text
21760
21761 \begin_layout Plain Layout
21762 4168M
21763 \end_layout
21764
21765 \end_inset
21766 </cell>
21767 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21768 \begin_inset Text
21769
21770 \begin_layout Plain Layout
21771 modified working copy
21772 \end_layout
21773
21774 \end_inset
21775 </cell>
21776 </row>
21777 <row>
21778 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
21779 \begin_inset Text
21780
21781 \begin_layout Plain Layout
21782 4123S
21783 \end_layout
21784
21785 \end_inset
21786 </cell>
21787 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21788 \begin_inset Text
21789
21790 \begin_layout Plain Layout
21791 switched working copy
21792 \end_layout
21793
21794 \end_inset
21795 </cell>
21796 </row>
21797 <row>
21798 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
21799 \begin_inset Text
21800
21801 \begin_layout Plain Layout
21802 4123P
21803 \end_layout
21804
21805 \end_inset
21806 </cell>
21807 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21808 \begin_inset Text
21809
21810 \begin_layout Plain Layout
21811 partial working copy, from a sparse checkout
21812 \end_layout
21813
21814 \end_inset
21815 </cell>
21816 </row>
21817 <row>
21818 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21819 \begin_inset Text
21820
21821 \begin_layout Plain Layout
21822 4123:4168MS
21823 \end_layout
21824
21825 \end_inset
21826 </cell>
21827 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21828 \begin_inset Text
21829
21830 \begin_layout Plain Layout
21831 mixed revision, modified, switched working copy
21832 \end_layout
21833
21834 \end_inset
21835 </cell>
21836 </row>
21837 </lyxtabular>
21838
21839 \end_inset
21840
21841
21842 \end_layout
21843
21844 \begin_layout Itemize
21845 file revision information.
21846  The result comes from parsing the output of 
21847 \begin_inset Flex Code
21848 status collapsed
21849
21850 \begin_layout Plain Layout
21851 svn
21852 \begin_inset space ~
21853 \end_inset
21854
21855 info
21856 \begin_inset space ~
21857 \end_inset
21858
21859 --xml
21860 \begin_inset space ~
21861 \end_inset
21862
21863 file.lyx
21864 \end_layout
21865
21866 \end_inset
21867
21868 .
21869  Supported flags are:
21870 \end_layout
21871
21872 \begin_deeper
21873 \begin_layout Itemize
21874 version number of the last commit (
21875 \begin_inset Flex Code
21876 status collapsed
21877
21878 \begin_layout Plain Layout
21879 vcs-revision
21880 \end_layout
21881
21882 \end_inset
21883
21884 )
21885 \end_layout
21886
21887 \begin_layout Itemize
21888 author of the last commit (
21889 \begin_inset Flex Code
21890 status collapsed
21891
21892 \begin_layout Plain Layout
21893 vcs-author
21894 \end_layout
21895
21896 \end_inset
21897
21898 )
21899 \end_layout
21900
21901 \begin_layout Itemize
21902 date of the last commit (
21903 \begin_inset Flex Code
21904 status collapsed
21905
21906 \begin_layout Plain Layout
21907 vcs-date
21908 \end_layout
21909
21910 \end_inset
21911
21912 )
21913 \end_layout
21914
21915 \begin_layout Itemize
21916 time of the last commit (
21917 \begin_inset Flex Code
21918 status collapsed
21919
21920 \begin_layout Plain Layout
21921 vcs-time
21922 \end_layout
21923
21924 \end_inset
21925
21926 )
21927 \end_layout
21928
21929 \end_deeper
21930 \begin_layout Standard
21931 You can obtain this info via InsetInfo (
21932 \change_inserted 5863208 1564400022
21933
21934 \lang american
21935 Insert\SpecialChar menuseparator
21936 Field\SpecialChar menuseparator
21937 Version Control Revision
21938 \change_deleted 5863208 1564399852
21939
21940 \lang english
21941 e.g.
21942  
21943 \begin_inset Flex Code
21944 status collapsed
21945
21946 \begin_layout Plain Layout
21947 info-insert buffer vcs-date
21948 \end_layout
21949
21950 \end_inset
21951
21952
21953 \change_unchanged
21954 ).
21955  The information will be available only when you have the file stored under
21956  svn managment (i.e.
21957  the 
21958 \begin_inset Flex Code
21959 status collapsed
21960
21961 \begin_layout Plain Layout
21962 .svn
21963 \end_layout
21964
21965 \end_inset
21966
21967  directory is available with your document).
21968 \end_layout
21969
21970 \end_deeper
21971 \begin_layout Itemize
21972 Another—a hacking one—possibility is to use svn keywords
21973 \begin_inset Foot
21974 status collapsed
21975
21976 \begin_layout Plain Layout
21977 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
21978 \end_layout
21979
21980 \end_inset
21981
21982 .
21983  In short – you set file keywords property (e.g.
21984  
21985 \family sans
21986 svn propset svn:keywords 'Rev' file.lyx
21987 \family default
21988 ) and then paste keyword \SpecialChar TeX
21989  code
21990 \begin_inset Foot
21991 status collapsed
21992
21993 \begin_layout Plain Layout
21994 This is an easy way how to ensure that \SpecialChar LyX
21995  won't break the line in the middle
21996  of keyword tag.
21997 \end_layout
21998
21999 \end_inset
22000
22001  tag in your document (e.g.
22002  
22003 \begin_inset Flex Code
22004 status collapsed
22005
22006 \begin_layout Plain Layout
22007 $Rev$
22008 \end_layout
22009
22010 \end_inset
22011
22012 ).
22013  This way svn client will automatically substitute revision number (e.g.
22014  
22015 \begin_inset Flex Code
22016 status collapsed
22017
22018 \begin_layout Plain Layout
22019 $Rev: 59 $
22020 \end_layout
22021
22022 \end_inset
22023
22024 ) after each update and commit.
22025  There are more problems with this approach.
22026  Firstly, the '$' character is used in \SpecialChar TeX
22027  world for math equations, so any
22028  occurence of math formula 
22029 \begin_inset Formula $Rev$
22030 \end_inset
22031
22032  become 
22033 \begin_inset Formula $Rev:59$
22034 \end_inset
22035
22036  in your \SpecialChar LyX
22037  document.
22038  Similarly for other keywords like Id, Date, Author, etc.
22039  Secondly svn output is dependent on your locales, so its very easy that
22040  svn would produce some problematic strings once Date is used.
22041  Thirdly you get the whole 'Rev: 59' string in your document instead of
22042  the plain number.
22043  Until subversion implements user's custom keywords it will be hard to use
22044  this approach reliably or let \SpecialChar LyX
22045  to support it directly.
22046 \end_layout
22047
22048 \begin_layout Subsection
22049 SVN and Windows Environment
22050 \end_layout
22051
22052 \begin_layout Quote
22053 My inclination is to say that if the user cannot figure out the command
22054  line operations on their own fairly quickly, they would be well advised
22055  to use TortoiseSVN.
22056  —P.
22057  A.
22058  Rubin
22059 \end_layout
22060
22061 \begin_layout Subsubsection
22062 Preparation
22063 \end_layout
22064
22065 \begin_layout Standard
22066 In addition to installing \SpecialChar LyX
22067 , and having access to a Subversion repository,
22068  the user will need to install the Subversion client program.
22069  A Windows installer for the client program is available from 
22070 \begin_inset CommandInset href
22071 LatexCommand href
22072 name "CollabNet"
22073 target "http://www.collab.net/nonav/downloads/subversion/"
22074 literal "false"
22075
22076 \end_inset
22077
22078 .
22079  The user may also want to install 
22080 \begin_inset CommandInset href
22081 LatexCommand href
22082 name "TortoiseSVN"
22083 target "http://tortoisesvn.tigris.org/"
22084 literal "false"
22085
22086 \end_inset
22087
22088 , which integrates Subversion operations into the context (rightclick) menu
22089  of Windows Explorer.
22090  Operations done outside \SpecialChar LyX
22091  will typically be more convenient using the Explorer
22092  context menu.
22093  Note that TortoiseSVN is not a replacement for the client program, which
22094  is what \SpecialChar LyX
22095  itself will use.
22096 \end_layout
22097
22098 \begin_layout Subsubsection
22099 Bringing a document under Subversion control
22100 \end_layout
22101
22102 \begin_layout Standard
22103 Before a \SpecialChar LyX
22104  document can be brought under version control in Subversion, its
22105  parent directory needs to be under version control.
22106  If the document is being added to a project already in the repository,
22107  this is accomplished by checking the project out to the directory where
22108  the new document will be placed.
22109  If the project itself is not yet under version control (for instance, if
22110  this document starts a new project), the directory must be imported into
22111  the repository.
22112  This is done outside \SpecialChar LyX
22113 .
22114  Both import and checkout are easily accomplished from the Explorer context
22115  menu using TortoiseSVN, or alternatively can be done using the command
22116  line client at a DOS prompt.
22117  The procedure for importing the project using TortoiseSVN is described
22118  below, assuming an existing repository and a new project being started
22119  in 
22120 \family typewriter
22121 C:
22122 \backslash
22123 new project
22124 \family default
22125 .
22126  For information on using the Subversion client program, run 
22127 \family typewriter
22128 svn --help 
22129 \family default
22130 in a DOS shell.
22131 \end_layout
22132
22133 \begin_layout Enumerate
22134 Locate 
22135 \family typewriter
22136 C:
22137 \backslash
22138 new project 
22139 \family default
22140 in Windows Explorer, right click it, and select 
22141 \family sans
22142 TortoiseSVN\SpecialChar menuseparator
22143 Repo-browser
22144 \family default
22145 .
22146  If necessary, adjust the URL for the repository, then click OK.
22147 \end_layout
22148
22149 \begin_layout Enumerate
22150 Right click the level of the repository under which you want to place the
22151  new project folder (typically the top level) and click 
22152 \family sans
22153 Create folder
22154 \family default
22155  Supply a name for the project folder and click OK.
22156  Add a message for the log file if desired, then click OK again.
22157  The new project folder should appear in the repository.
22158  Finally, click OK again to exit the repository browser.
22159 \end_layout
22160
22161 \begin_layout Enumerate
22162 Once again right click 
22163 \family typewriter
22164 C:
22165 \backslash
22166 new project
22167 \family default
22168 , this time selecting SVN Checkout\SpecialChar ldots
22169  Select the URL of the project folder
22170  you just created in the repository, and set the checkout directory to 
22171 \family typewriter
22172 C:
22173 \backslash
22174 new project.
22175
22176 \family default
22177  Click OK.
22178  You will be warned about a non-empty folder; click OK to proceed.
22179  You should now have a 
22180 \family typewriter
22181 .svn
22182 \family default
22183  directory under 
22184 \family typewriter
22185 C:
22186 \backslash
22187 new project.
22188 \end_layout
22189
22190 \begin_layout Enumerate
22191 Create or open your document in \SpecialChar LyX
22192  and click 
22193 \family sans
22194 File\SpecialChar menuseparator
22195 Version
22196 \begin_inset space ~
22197 \end_inset
22198
22199 Control\SpecialChar menuseparator
22200 Register.
22201  
22202 \family default
22203 Add a log message and click OK to commit the document to version control.
22204 \end_layout
22205
22206 \begin_layout Standard
22207 From this point onward, you should have full functionality in the 
22208 \family sans
22209 File\SpecialChar menuseparator
22210 Version
22211 \begin_inset space ~
22212 \end_inset
22213
22214 Control
22215 \family default
22216  menu.
22217  You also have the option of checking the document in and out, viewing its
22218  history, etc.
22219  using the TortoiseSVN context menu in Windows Explorer or the Subversion
22220  client program from a command prompt.
22221 \end_layout
22222
22223 \begin_layout Subsubsection
22224 SSH tunnel used with SVN under Windows
22225 \end_layout
22226
22227 \begin_layout Standard
22228 Compared with Linux setting up an svn client to communicate over ssh under
22229  Windows is a rather troublesome task.
22230  We will at least offer some hints how to setup the client side but prior
22231  knowledge about ssh and the Windows command line is needed, also be prepared
22232  for a great deal of frustration\SpecialChar ldots
22233
22234 \end_layout
22235
22236 \begin_layout Enumerate
22237 Get an svn client for windows, as described in the previous sections.
22238  When it is a fresh install run some svn command (e.g.
22239  
22240 \begin_inset Flex Code
22241 status collapsed
22242
22243 \begin_layout Plain Layout
22244 svn --version
22245 \end_layout
22246
22247 \end_inset
22248
22249 ) to create config files, which you will need to change later on.
22250 \end_layout
22251
22252 \begin_layout Enumerate
22253 Choose an ssh client for Windows.
22254  There are several possibilities, we will use the one from Putty tools
22255 \begin_inset Foot
22256 status collapsed
22257
22258 \begin_layout Plain Layout
22259 \begin_inset Flex URL
22260 status collapsed
22261
22262 \begin_layout Plain Layout
22263
22264 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
22265 \end_layout
22266
22267 \end_inset
22268
22269
22270 \end_layout
22271
22272 \end_inset
22273
22274 .
22275  You will need to set the connection up so that the client doesn't ask for
22276  any password from you.
22277  To keep things easy we will use only keys without any additional password
22278  protection etc.
22279 \end_layout
22280
22281 \begin_deeper
22282 \begin_layout Enumerate
22283 Generate keys by 
22284 \begin_inset Flex Code
22285 status collapsed
22286
22287 \begin_layout Plain Layout
22288 puttygen
22289 \end_layout
22290
22291 \end_inset
22292
22293 .
22294  Save your private .ppk key file and put the public one on the server side.
22295  If the SVN server runs on Linux, note that the format of the public key
22296  is not compatible with Linux openssh and you will need to direcly copy-paste
22297  the key from the 
22298 \begin_inset Quotes eld
22299 \end_inset
22300
22301
22302 \emph on
22303 Public key for pasting into OpenSSH authorized_keys file
22304 \emph default
22305 :
22306 \begin_inset Quotes erd
22307 \end_inset
22308
22309  edit field into the server's 
22310 \begin_inset Flex Code
22311 status collapsed
22312
22313 \begin_layout Plain Layout
22314 ~/.ssh/authorized_keys
22315 \end_layout
22316
22317 \end_inset
22318
22319  / 
22320 \begin_inset Flex Code
22321 status collapsed
22322
22323 \begin_layout Plain Layout
22324 authorized_keys2
22325 \end_layout
22326
22327 \end_inset
22328
22329  file.
22330 \end_layout
22331
22332 \begin_layout Enumerate
22333 Get the Putty's 
22334 \begin_inset Flex Code
22335 status collapsed
22336
22337 \begin_layout Plain Layout
22338 plink
22339 \end_layout
22340
22341 \end_inset
22342
22343 .
22344  In the SVN config file
22345 \begin_inset Foot
22346 status collapsed
22347
22348 \begin_layout Plain Layout
22349 Exact path depends on Windows version, usually somewhere around 
22350 \begin_inset Flex Code
22351 status collapsed
22352
22353 \begin_layout Plain Layout
22354 c:
22355 \backslash
22356 Documents and Settings
22357 \backslash
22358 user
22359 \backslash
22360 Application Data
22361 \backslash
22362 Subversion
22363 \backslash
22364 config
22365 \end_layout
22366
22367 \end_inset
22368
22369  / 
22370 \begin_inset Flex Code
22371 status collapsed
22372
22373 \begin_layout Plain Layout
22374 AppData
22375 \backslash
22376 Roaming
22377 \backslash
22378 Subversion
22379 \end_layout
22380
22381 \end_inset
22382
22383 .
22384 \end_layout
22385
22386 \end_inset
22387
22388 , section [tunnels], setup ssh command, e.g.
22389  
22390 \begin_inset Flex Code
22391 status collapsed
22392
22393 \begin_layout Plain Layout
22394 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
22395 \end_layout
22396
22397 \end_inset
22398
22399 .
22400 \begin_inset Foot
22401 status collapsed
22402
22403 \begin_layout Plain Layout
22404 It will usually take a lot of time to get exact command right and it depends
22405  on many things.
22406  For example do not have some remote server saved as a default session in
22407  Putty etc.
22408  If things fail, try to connect via plink without SVN first.
22409 \end_layout
22410
22411 \end_inset
22412
22413
22414 \end_layout
22415
22416 \end_deeper
22417 \begin_layout Enumerate
22418 Checkout the SVN archive, e.
22419 \begin_inset space \thinspace{}
22420 \end_inset
22421
22422 g.
22423 \begin_inset Newline newline
22424 \end_inset
22425
22426
22427 \begin_inset Flex Code
22428 status collapsed
22429
22430 \begin_layout Plain Layout
22431 svn co svn+ssh://user@server/repository_path
22432 \end_layout
22433
22434 \end_inset
22435
22436 .
22437 \end_layout
22438
22439 \begin_layout Subsubsection
22440 End-of-Line Conversions
22441 \end_layout
22442
22443 \begin_layout Standard
22444 When the collaborators are mixing Linux and Windows environments, \SpecialChar LyX
22445  will
22446  use different line endings inside the .lyx files.
22447  This is not a problem as far as \SpecialChar LyX
22448  functionality is concerned, but the commit
22449  diffs will be huge and merge-conflicts prone.
22450  Fortunately SVN itself knows
22451 \begin_inset Foot
22452 status collapsed
22453
22454 \begin_layout Plain Layout
22455 \begin_inset Flex URL
22456 status collapsed
22457
22458 \begin_layout Plain Layout
22459
22460 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
22461 \end_layout
22462
22463 \end_inset
22464
22465
22466 \end_layout
22467
22468 \end_inset
22469
22470  how to deal with CR/LF problems when switching .lyx files to the 
22471 \begin_inset Flex Code
22472 status collapsed
22473
22474 \begin_layout Plain Layout
22475 native
22476 \end_layout
22477
22478 \end_inset
22479
22480  mode.
22481 \begin_inset Foot
22482 status collapsed
22483
22484 \begin_layout Plain Layout
22485 For the lazy guys: 
22486 \begin_inset Flex Code
22487 status collapsed
22488
22489 \begin_layout Plain Layout
22490 svn propset svn:eol-style native FILE_NAME
22491 \end_layout
22492
22493 \end_inset
22494
22495
22496 \end_layout
22497
22498 \end_inset
22499
22500
22501 \end_layout
22502
22503 \begin_layout Subsection
22504 GIT commands in \SpecialChar LyX
22505
22506 \end_layout
22507
22508 \begin_layout Standard
22509 A minimal subset of GIT commands is now supported by \SpecialChar LyX
22510 .
22511  You can find the commands in the 
22512 \family sans
22513 File\SpecialChar menuseparator
22514 Version
22515 \begin_inset space ~
22516 \end_inset
22517
22518 Control
22519 \family default
22520  submenu.
22521  Please note that if you use password protected access to repository via
22522  ssh, you will be asked in terminal window.
22523  \SpecialChar LyX
22524  was tested against GIT 1.7.
22525 \begin_inset Foot
22526 status collapsed
22527
22528 \begin_layout Plain Layout
22529 Windows users please note that you need to ensure that git is on the path.
22530  This can be set from within \SpecialChar LyX
22531  at 
22532 \family sans
22533 Tools\SpecialChar menuseparator
22534 Preferences\SpecialChar menuseparator
22535 Paths\SpecialChar menuseparator
22536 PATH prefix
22537 \family default
22538 .
22539 \end_layout
22540
22541 \end_inset
22542
22543
22544 \end_layout
22545
22546 \begin_layout Standard
22547 One big difference of GIT and the other supported version control systems
22548  is the distributed nature of GIT: With traditional version control systems
22549  there is one central server which hosts the repository.
22550  Users commit their changes to the server, and get updates made by other
22551  users from it.
22552  With GIT, users commit to a local repository.
22553  The local repository can be synchronized with one or more remote repositories
22554  using the 
22555 \begin_inset Flex Code
22556 status collapsed
22557
22558 \begin_layout Plain Layout
22559 pull
22560 \end_layout
22561
22562 \end_inset
22563
22564  and 
22565 \begin_inset Flex Code
22566 status collapsed
22567
22568 \begin_layout Plain Layout
22569 push
22570 \end_layout
22571
22572 \end_inset
22573
22574  GIT commands.
22575  \SpecialChar LyX
22576  does not interact in any way with remote GIT repositories.
22577  It works exclusively with the local repository in a very similar way as
22578  with a central CVS or SVN repository.
22579  If you use remote GIT repositories you need to do the 
22580 \begin_inset Flex Code
22581 status collapsed
22582
22583 \begin_layout Plain Layout
22584 pull
22585 \end_layout
22586
22587 \end_inset
22588
22589  and 
22590 \begin_inset Flex Code
22591 status collapsed
22592
22593 \begin_layout Plain Layout
22594 push
22595 \end_layout
22596
22597 \end_inset
22598
22599  operations with your favourite GIT client.
22600 \end_layout
22601
22602 \begin_layout Subsubsection
22603
22604 \family sans
22605 Register
22606 \end_layout
22607
22608 \begin_layout Standard
22609 If your document is not under revision control, this is the only item shown
22610  in the menu.
22611  And if it is under revision control, the 
22612 \family sans
22613 Register
22614 \family default
22615  item is not visible.
22616 \end_layout
22617
22618 \begin_layout Standard
22619 This command registers in GIT your document ONLY in case you have already
22620  the documents directory under GIT control (in particular 
22621 \family typewriter
22622 .git/index
22623 \family default
22624  file exists).
22625  This means you have to checkout the archive by yourself.
22626 \end_layout
22627
22628 \begin_layout Standard
22629 Then you are asked interactively to supply an initial description of the
22630  document.
22631  Don't forget that registered file is not yet committed.
22632 \end_layout
22633
22634 \begin_layout Standard
22635 GIT command that is run: 
22636 \family typewriter
22637 git add 
22638 \begin_inset Quotes qld
22639 \end_inset
22640
22641 <file-name>
22642 \begin_inset Quotes qld
22643 \end_inset
22644
22645
22646 \end_layout
22647
22648 \begin_layout Standard
22649 Read 
22650 \family typewriter
22651 man git
22652 \family default
22653  to understand the switches.
22654 \end_layout
22655
22656 \begin_layout Subsubsection
22657
22658 \family sans
22659 Check In Changes
22660 \end_layout
22661
22662 \begin_layout Standard
22663 When you are finished editing a file, you commit your changes.
22664  When you do this, you are asked for a description of the changes.
22665  After that changes are committed.
22666 \end_layout
22667
22668 \begin_layout Standard
22669 GIT command: 
22670 \family typewriter
22671 git commit -q -m"<description>" <file-name>
22672 \end_layout
22673
22674 \begin_layout Subsubsection
22675
22676 \family sans
22677 Revert To Repository Version
22678 \end_layout
22679
22680 \begin_layout Standard
22681 This will discard all changes made to the document since the last check
22682  in.
22683  You get a warning before changes are discarded.
22684 \end_layout
22685
22686 \begin_layout Standard
22687 GIT command: 
22688 \family typewriter
22689 git checkout -q 
22690 \begin_inset Quotes qld
22691 \end_inset
22692
22693 <file-name>
22694 \begin_inset Quotes qld
22695 \end_inset
22696
22697
22698 \end_layout
22699
22700 \begin_layout Subsubsection
22701
22702 \family sans
22703 Rename
22704 \end_layout
22705
22706 \begin_layout Standard
22707 This will rename the current document including the version history.
22708  It requires a clean document without any changes since the last checkin.
22709  You are asked for a file name and a description of the rename operation.
22710  After that the document is renamed, both locally and in the repository.
22711  If the parent directories of the new and old file names differ, all relative
22712  paths of included files are adjusted (like in 
22713 \family sans
22714 File\SpecialChar menuseparator
22715 Save As
22716 \family default
22717 \SpecialChar ldots
22718 ).
22719  Finally, the document is reloaded using the new name.
22720 \end_layout
22721
22722 \begin_layout Labeling
22723 \labelwidthstring 00.00.0000
22724 GIT
22725 \begin_inset space ~
22726 \end_inset
22727
22728 commands: 
22729 \begin_inset space ~
22730 \end_inset
22731
22732
22733 \begin_inset Newline newline
22734 \end_inset
22735
22736
22737 \begin_inset Flex Code
22738 status collapsed
22739
22740 \begin_layout Plain Layout
22741 git mv 
22742 \family typewriter
22743
22744 \begin_inset Quotes qld
22745 \end_inset
22746
22747 <file-name>
22748 \begin_inset Quotes qld
22749 \end_inset
22750
22751  
22752 \begin_inset Quotes qld
22753 \end_inset
22754
22755 <new-file-name>
22756 \begin_inset Quotes qld
22757 \end_inset
22758
22759
22760 \end_layout
22761
22762 \end_inset
22763
22764
22765 \begin_inset Newline newline
22766 \end_inset
22767
22768
22769 \begin_inset Flex Code
22770 status collapsed
22771
22772 \begin_layout Plain Layout
22773 git commit
22774 \end_layout
22775
22776 \end_inset
22777
22778
22779 \end_layout
22780
22781 \begin_layout Subsubsection
22782
22783 \family sans
22784 Show History
22785 \end_layout
22786
22787 \begin_layout Standard
22788 This shows the complete history of the GIT document.
22789  The output of 
22790 \family typewriter
22791 git log 
22792 \begin_inset Quotes qld
22793 \end_inset
22794
22795 <file-name>
22796 \begin_inset Quotes qld
22797 \end_inset
22798
22799
22800 \family default
22801  is shown in a browser.
22802 \end_layout
22803
22804 \begin_layout Subsubsection
22805 Version Info
22806 \end_layout
22807
22808 \begin_layout Standard
22809 \SpecialChar LyX
22810  supports GIT hash number of the last commit to the file, 
22811 \change_inserted 1119979965 1564297456
22812 its abbreviated form, 
22813 \change_unchanged
22814 author name, date and time of last commit.
22815  All those are extracted from 
22816 \family typewriter
22817 git log -n 1 --pretty=format:%H%n
22818 \change_inserted 1119979965 1564297427
22819 %h%n
22820 \change_unchanged
22821 %an%n%ai
22822 \family default
22823 .
22824  Tree version information is obtained via 
22825 \family typewriter
22826 git describe --abbrev --dirty --long
22827 \family default
22828 .
22829  See 
22830 \begin_inset CommandInset ref
22831 LatexCommand ref
22832 reference "subsec:VCS-Revision-Information"
22833
22834 \end_inset
22835
22836  for other details.
22837 \end_layout
22838
22839 \begin_layout Subsection
22840 Further tuning
22841 \end_layout
22842
22843 \begin_layout Standard
22844 With the recent addition of the 
22845 \begin_inset Flex Code
22846 status collapsed
22847
22848 \begin_layout Plain Layout
22849 vc-command
22850 \end_layout
22851
22852 \end_inset
22853
22854  function \SpecialChar LyX
22855  power users are allowed to create their own commands for revision
22856  control.
22857 \end_layout
22858
22859 \begin_layout Standard
22860 As an example you can see how two TortoiseSVN commands could be integrated
22861  directly:
22862 \end_layout
22863
22864 \begin_layout Description
22865 Commit: 
22866 \begin_inset Flex Code
22867 status collapsed
22868
22869 \begin_layout Plain Layout
22870 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
22871 \end_layout
22872
22873 \end_inset
22874
22875
22876 \end_layout
22877
22878 \begin_layout Description
22879 Revert: 
22880 \begin_inset Flex Code
22881 status collapsed
22882
22883 \begin_layout Plain Layout
22884 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
22885 \end_layout
22886
22887 \end_inset
22888
22889
22890 \end_layout
22891
22892 \begin_layout Subsection
22893 Version control and Document comparison
22894 \end_layout
22895
22896 \begin_layout Standard
22897 One of the typical uses of version control is to inspect the changes between
22898  revisions, usually by creating 
22899 \begin_inset Flex Code
22900 status collapsed
22901
22902 \begin_layout Plain Layout
22903 diff
22904 \end_layout
22905
22906 \end_inset
22907
22908  dumps.
22909  While this is useful for plain text files, it is much less useful in the
22910  case of \SpecialChar LyX
22911  files, which have more a complicated structure.
22912  Hence we provide binding to the Document comparison feature.
22913  There are two ways of calling this feature – either by direct call of 
22914 \begin_inset Flex Code
22915 status collapsed
22916
22917 \begin_layout Plain Layout
22918 vc-compare
22919 \end_layout
22920
22921 \end_inset
22922
22923  \SpecialChar LyX
22924  function (for details see \SpecialChar LyX
22925  functions manual) or by the toolbar icon 
22926 \begin_inset Info
22927 type  "icon"
22928 arg   "vc-compare"
22929 \end_inset
22930
22931  or the menu item 
22932 \begin_inset Info
22933 type  "menu"
22934 arg   "vc-compare"
22935 \end_inset
22936
22937 , respectively.
22938  One can either compare two chosen revisions of the document or he can simply
22939  compare the current version of edited text with older revisions (where
22940  '
22941 \begin_inset Flex Noun
22942 status collapsed
22943
22944 \begin_layout Plain Layout
22945 0
22946 \end_layout
22947
22948 \end_inset
22949
22950 ' revisions back means comparison of the edited file with last commited
22951  revision).
22952  
22953 \end_layout
22954
22955 \begin_layout Standard
22956 This feature is supported for SVN and RCS though due to the more complicated
22957  versioning scheme of RCS there is a constraint – when addressing the revisions
22958  in dialog, numbers always point to the last number in RCS revision number,
22959  i.e.
22960  '35' in '1.2.35'.
22961  We don't currently support GIT addressing of revisions, one can just compare
22962  edited document with its revision X steps backs, where X is addressed as
22963  
22964 \begin_inset Flex Code
22965 status collapsed
22966
22967 \begin_layout Plain Layout
22968 HEAD~X
22969 \end_layout
22970
22971 \end_inset
22972
22973 .
22974 \end_layout
22975
22976 \begin_layout Section
22977 Literate Programming
22978 \end_layout
22979
22980 \begin_layout Standard
22981 Updated by 
22982 \noun on
22983 Kayvan Sylvan 
22984 \noun default
22985 (kayvan@sylvan.com)
22986 \noun on
22987
22988 \noun default
22989 original documentation written by 
22990 \noun on
22991 Edmar Wienskoski Jr.
22992
22993 \noun default
22994  (edmar-w-jr@technologist.com)
22995 \end_layout
22996
22997 \begin_layout Subsection
22998 Introduction
22999 \end_layout
23000
23001 \begin_layout Standard
23002 The main purpose of this documentation is to show you how to use \SpecialChar LyX
23003  for literate
23004  programming, where it is assumed that you are familiar with this programming
23005  technique, and know what 
23006 \begin_inset Quotes eld
23007 \end_inset
23008
23009 tangling
23010 \begin_inset Quotes erd
23011 \end_inset
23012
23013  and 
23014 \begin_inset Quotes eld
23015 \end_inset
23016
23017 weaving
23018 \begin_inset Quotes erd
23019 \end_inset
23020
23021  means.
23022  If that is not the case, please follow the web links provided in the following
23023  sections.
23024  There is a lot of good documentation out there covering old development
23025  history to the latest tools tips.
23026 \end_layout
23027
23028 \begin_layout Standard
23029 It is also assumed that you are familiar with \SpecialChar LyX
23030  itself to a point that you
23031  are comfortable changing your \SpecialChar LyX
23032  preferences, and X resources file.
23033  If that is not the case please refer to other \SpecialChar LyX
23034  documentation to cover your
23035  specific needs.
23036 \end_layout
23037
23038 \begin_layout Subsection
23039 Literate Programming
23040 \end_layout
23041
23042 \begin_layout Standard
23043 From the Literate Programming FAQ: 
23044 \end_layout
23045
23046 \begin_layout Quotation
23047 Literate programming is the combination of documentation and source together
23048  in a fashion suited for reading by human beings.
23049  In fact, literate programs should be enjoyable reading, even inviting!
23050  (Sorry Bob, I couldn't resist!) In general, literate programs combine source
23051  and documentation in a single file.
23052  Literate programming tools then parse the file to produce either readable
23053  documentation or compilable source.
23054  The WEB style of literate programming was created by D.
23055 \begin_inset space \thinspace{}
23056 \end_inset
23057
23058 E.
23059  Knuth during the development of his \SpecialChar TeX
23060  typesetting software.
23061  
23062 \end_layout
23063
23064 \begin_layout Standard
23065 Another excerpt says:
23066 \end_layout
23067
23068 \begin_layout Quotation
23069
23070 \emph on
23071 How is literate programming different from verbose commenting?
23072 \end_layout
23073
23074 \begin_layout Quotation
23075 There are three distinguishing characteristics.
23076  In order of importance, they are: 
23077 \end_layout
23078
23079 \begin_deeper
23080 \begin_layout Itemize
23081 flexible order of elaboration 
23082 \end_layout
23083
23084 \begin_layout Itemize
23085 automatic support for browsing 
23086 \end_layout
23087
23088 \begin_layout Itemize
23089 typeset documentation, especially diagrams and mathematics 
23090 \end_layout
23091
23092 \end_deeper
23093 \begin_layout Standard
23094 Now that I sparked your curiosity, take a look in the references.
23095 \end_layout
23096
23097 \begin_layout Subsubsection
23098 References
23099 \end_layout
23100
23101 \begin_layout Standard
23102 The complete Literate Programming FAQ can be found at:
23103 \end_layout
23104
23105 \begin_layout Quote
23106 Literate Programming FAQ 
23107 \begin_inset Flex URL
23108 status open
23109
23110 \begin_layout Plain Layout
23111
23112 http://www.literateprogramming.com/lpfaq.pdf
23113 \end_layout
23114
23115 \end_inset
23116
23117
23118 \end_layout
23119
23120 \begin_layout Standard
23121 The FAQ lists 23 (twenty three!) different literate programming tools.
23122  Where some are specialized or 
23123 \begin_inset Quotes eld
23124 \end_inset
23125
23126 tailored
23127 \begin_inset Quotes erd
23128 \end_inset
23129
23130  for particular programming languages, while other have general scope.
23131  I selected 
23132 \noun on
23133 Noweb
23134 \noun default
23135  for my own use for several reasons:
23136 \end_layout
23137
23138 \begin_layout Itemize
23139 It can generate the documentation either in \SpecialChar LaTeX
23140  or HTML.
23141 \end_layout
23142
23143 \begin_layout Itemize
23144 It has a open architecture, i.
23145 \begin_inset space \thinspace{}
23146 \end_inset
23147
23148 e.
23149 \begin_inset space \space{}
23150 \end_inset
23151
23152 it is easy to plug in new filters
23153 \begin_inset Foot
23154 status collapsed
23155
23156 \begin_layout Plain Layout
23157
23158 \emph on
23159 Filters 
23160 \emph default
23161 are programs that read a given data stream and output a manipulated data
23162  stream.
23163  That way, a WEB file (consisting of literate code) can be turned into a
23164  file consisting only of C program code or \SpecialChar LaTeX
23165  code.
23166 \end_layout
23167
23168 \end_inset
23169
23170  and to perform special processing that you may need.
23171  
23172 \end_layout
23173
23174 \begin_layout Itemize
23175 There is a good selection of filters available already (the HTML is one
23176  of them).
23177 \end_layout
23178
23179 \begin_layout Itemize
23180 It is free.
23181 \end_layout
23182
23183 \begin_layout Standard
23184 The Noweb web page can be found at: 
23185 \end_layout
23186
23187 \begin_layout Quote
23188 Noweb home page 
23189 \begin_inset Flex URL
23190 status collapsed
23191
23192 \begin_layout Plain Layout
23193
23194 https://www.cs.tufts.edu/~nr/noweb/
23195 \end_layout
23196
23197 \end_inset
23198
23199
23200 \end_layout
23201
23202 \begin_layout Standard
23203 Starting from there you can reach many other interesting links and even
23204  some literate program examples.
23205 \end_layout
23206
23207 \begin_layout Subsection
23208 \SpecialChar LyX
23209  and Literate Programming with Noweb
23210 \end_layout
23211
23212 \begin_layout Standard
23213 The \SpecialChar LyX
23214  support for Literate Programming is provided by using the generic \SpecialChar LyX
23215
23216  converters mechanism.
23217  This support is provided in a 
23218 \begin_inset Quotes eld
23219 \end_inset
23220
23221 Noweb independent
23222 \begin_inset Quotes erd
23223 \end_inset
23224
23225  way, i.
23226 \begin_inset space \thinspace{}
23227 \end_inset
23228
23229 e.
23230 \begin_inset space \space{}
23231 \end_inset
23232
23233 you will be able to use this new \SpecialChar LyX
23234  feature with some other literate programming
23235  tool of your choice by just changing your \SpecialChar LyX
23236  preferences.
23237 \end_layout
23238
23239 \begin_layout Subsubsection
23240 Generating documents and code (weaving and tangling)
23241 \end_layout
23242
23243 \begin_layout Paragraph
23244 Using the noweb module
23245 \end_layout
23246
23247 \begin_layout Standard
23248 If you have installed Noweb and \SpecialChar LyX
23249  successfully, whenever you open a new document,
23250  after you have chosen its document class, use the 
23251 \family sans
23252 Document\SpecialChar menuseparator
23253 Settings
23254 \family default
23255  menu to add the 
23256 \begin_inset Quotes eld
23257 \end_inset
23258
23259 noweb
23260 \begin_inset Quotes erd
23261 \end_inset
23262
23263  module.
23264  If Noweb is correctly installed, when you click on the 
23265 \begin_inset Quotes eld
23266 \end_inset
23267
23268 Modules
23269 \begin_inset Quotes erd
23270 \end_inset
23271
23272  link, you will see the 
23273 \begin_inset Quotes eld
23274 \end_inset
23275
23276 noweb
23277 \begin_inset Quotes erd
23278 \end_inset
23279
23280  module in the available list and you can add it to your document.
23281 \end_layout
23282
23283 \begin_layout Paragraph
23284 Typing code in
23285 \end_layout
23286
23287 \begin_layout Standard
23288 \SpecialChar LyX
23289  enables you to write code with a custom inset named 
23290 \begin_inset Flex Noun
23291 status collapsed
23292
23293 \begin_layout Plain Layout
23294 Chunk
23295 \end_layout
23296
23297 \end_inset
23298
23299 .
23300  Noweb delimits chunks like this:
23301 \end_layout
23302
23303 \begin_layout LyX-Code
23304 <<My code>>=
23305 \end_layout
23306
23307 \begin_layout LyX-Code
23308   code
23309 \end_layout
23310
23311 \begin_layout LyX-Code
23312   more code
23313 \end_layout
23314
23315 \begin_layout LyX-Code
23316   even more code
23317 \end_layout
23318
23319 \begin_layout LyX-Code
23320   @
23321 \end_layout
23322
23323 \begin_layout Standard
23324 The problem is that whatever is written in between the << and the 
23325 \family typewriter
23326 @
23327 \family default
23328  must be taken literally, i.
23329 \begin_inset space \thinspace{}
23330 \end_inset
23331
23332 e.
23333 \begin_inset space \space{}
23334 \end_inset
23335
23336 \SpecialChar LyX
23337  should be prevented from making any special interpretation of what has
23338  been written.
23339  This is also handled by 
23340 \begin_inset Flex Noun
23341 status collapsed
23342
23343 \begin_layout Plain Layout
23344 Chunk
23345 \end_layout
23346
23347 \end_inset
23348
23349 , that works like a normal text inset but has a free spacing capability.
23350 \end_layout
23351
23352 \begin_layout Standard
23353 As a special note, you can also use the 
23354 \begin_inset Quotes eld
23355 \end_inset
23356
23357 %def
23358 \begin_inset Quotes erd
23359 \end_inset
23360
23361  construct of Noweb in your chunks to add items to Noweb's identifier cross-refe
23362 rence:
23363 \end_layout
23364
23365 \begin_layout LyX-Code
23366 <<My chunk>>=
23367 \end_layout
23368
23369 \begin_layout LyX-Code
23370 def some_function(args):
23371 \end_layout
23372
23373 \begin_layout LyX-Code
23374    "This is the doc string for this function."
23375 \end_layout
23376
23377 \begin_layout LyX-Code
23378    print "My args: ", args
23379 \end_layout
23380
23381 \begin_layout LyX-Code
23382 @ %def some_function
23383 \end_layout
23384
23385 \begin_layout Standard
23386 For an example of this usage and the resulting cross-reference output, look
23387  at the Literate python program in 
23388 \emph on
23389 LIBDIR/examples/listerrors.lyx
23390 \emph default
23391  which should make this all clear.
23392 \end_layout
23393
23394 \begin_layout Paragraph
23395 Generating the documentation
23396 \end_layout
23397
23398 \begin_layout Standard
23399 At this point you already have a new document file with a proper document
23400  class, and with some code and text on it.
23401  How do I print it? The answer is simple, you select 
23402 \family sans
23403 View\SpecialChar menuseparator
23404 DVI,
23405 \family default
23406  etc.
23407  Just like you would do for a plain document.
23408  No special procedure is required.
23409 \end_layout
23410
23411 \begin_layout Standard
23412 To help orientate you, I will now explain what happens inside \SpecialChar LyX
23413 :
23414 \end_layout
23415
23416 \begin_layout Enumerate
23417 When the 
23418 \family sans
23419 Update\SpecialChar menuseparator
23420 DVI
23421 \family default
23422  menu option is chosen, a \SpecialChar LaTeX
23423  file is generated.
23424  
23425 \end_layout
23426
23427 \begin_deeper
23428 \begin_layout Standard
23429 If the document is of any literate class the generated file will be named
23430  with an extension name defined by the 
23431 \begin_inset Quotes eld
23432 \end_inset
23433
23434 literate
23435 \begin_inset Quotes erd
23436 \end_inset
23437
23438  format (defined in the Preferences panel), otherwise the file will have
23439  the usual 
23440 \family typewriter
23441 .tex
23442 \family default
23443  extension.
23444 \end_layout
23445
23446 \end_deeper
23447 \begin_layout Enumerate
23448 Note that the only difference so far is in the name of the file, no special
23449  processing is required by \SpecialChar LyX
23450 .
23451  Given that you formatted the code using the 
23452 \begin_inset Flex Noun
23453 status collapsed
23454
23455 \begin_layout Plain Layout
23456 Chunk
23457 \end_layout
23458
23459 \end_inset
23460
23461  inset that, by itself, takes care of the business.
23462 \end_layout
23463
23464 \begin_layout Enumerate
23465 If the document is of any literate class \SpecialChar LyX
23466  will then use the internal \SpecialChar LyX
23467  to
23468  Noweb converter, followed by the Noweb to \SpecialChar LaTeX
23469  converter
23470 \begin_inset Foot
23471 status collapsed
23472
23473 \begin_layout Plain Layout
23474 The converters are defined in the 
23475 \family sans
23476 Tools\SpecialChar menuseparator
23477 Preferences
23478 \family default
23479  panel, under the 
23480 \begin_inset Quotes eld
23481 \end_inset
23482
23483 Conversion
23484 \begin_inset Quotes erd
23485 \end_inset
23486
23487  tab.
23488  See section 
23489 \emph on
23490 Converters
23491 \emph default
23492  of the 
23493 \emph on
23494 Customization
23495 \emph default
23496  manual for general information about converters.
23497 \end_layout
23498
23499 \end_inset
23500
23501  to generate the \SpecialChar LaTeX
23502  file.
23503 \end_layout
23504
23505 \begin_deeper
23506 \begin_layout Standard
23507 Otherwise it will just skip this step.
23508 \end_layout
23509
23510 \end_deeper
23511 \begin_layout Enumerate
23512 Finally, \SpecialChar LaTeX
23513  is invoked and the regular post processing continues as in a plain
23514  document.
23515 \end_layout
23516
23517 \begin_layout Standard
23518 Independence from a particular 
23519 \begin_inset Quotes eld
23520 \end_inset
23521
23522 literate tool
23523 \begin_inset Quotes erd
23524 \end_inset
23525
23526  is easily achieved by changing the commands that are run by the various
23527  converters.
23528 \end_layout
23529
23530 \begin_layout Paragraph
23531 Generating the code
23532 \end_layout
23533
23534 \begin_layout Standard
23535 When the build menu option is chosen or the corresponding button in the
23536  toolbar is pressed, a \SpecialChar LaTeX
23537  file is generated just like step 1 above.
23538  Next, \SpecialChar LyX
23539  invokes the 
23540 \family typewriter
23541 Noweb->Program
23542 \family default
23543  converter.
23544  This converter needs to be defined by the user and is not installed by
23545  default, though the Program format is.
23546  This converter (like any other converter) will have two parts:
23547 \end_layout
23548
23549 \begin_layout Enumerate
23550 The converter program itself.
23551  This program performs the conversion from the one format to the other (in
23552  this case, from the Noweb format to the Program pseudo-format).
23553 \end_layout
23554
23555 \begin_layout Enumerate
23556 The error log parser.
23557  This is a program whose sole purpose is to rewrite error messages in a
23558  format that \SpecialChar LyX
23559  understands.
23560  This makes it possible for \SpecialChar LyX
23561  to place error boxes in the right places in
23562  the file buffer.
23563 \end_layout
23564
23565 \begin_layout Standard
23566 The first part, the 
23567 \begin_inset Quotes eld
23568 \end_inset
23569
23570 Converter
23571 \begin_inset Quotes erd
23572 \end_inset
23573
23574  setting, should be set to
23575 \end_layout
23576
23577 \begin_layout LyX-Code
23578
23579 \family typewriter
23580 build-script $$i
23581 \family default
23582  $$r
23583 \end_layout
23584
23585 \begin_layout Standard
23586 This basically means that \SpecialChar LyX
23587  will call 
23588 \begin_inset Quotes eld
23589 \end_inset
23590
23591 build-script
23592 \begin_inset Quotes erd
23593 \end_inset
23594
23595  (a program or script) with the name of the Noweb file (normally a file
23596  in the \SpecialChar LyX
23597  temp directory) and the directory path of the original \SpecialChar LyX
23598  file.
23599  
23600 \end_layout
23601
23602 \begin_layout Standard
23603 This is an implementation of 
23604 \begin_inset Quotes eld
23605 \end_inset
23606
23607 build-script
23608 \begin_inset Quotes erd
23609 \end_inset
23610
23611  that you can place in a directory on your path:
23612 \end_layout
23613
23614 \begin_layout LyX-Code
23615
23616 \family sans
23617 #!/bin/sh
23618 \end_layout
23619
23620 \begin_layout LyX-Code
23621
23622 \family sans
23623 #
23624 \end_layout
23625
23626 \begin_layout LyX-Code
23627
23628 \family sans
23629 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
23630 \end_layout
23631
23632 \begin_layout Standard
23633 The next part of the converter setting is the 
23634 \begin_inset Quotes eld
23635 \end_inset
23636
23637 Flags
23638 \begin_inset Quotes erd
23639 \end_inset
23640
23641  which is to be set to
23642 \end_layout
23643
23644 \begin_layout LyX-Code
23645
23646 \family typewriter
23647 parselog=$$s/scripts/listerrors
23648 \end_layout
23649
23650 \begin_layout Standard
23651 This will run any errors that are generated by the 
23652 \begin_inset Quotes eld
23653 \end_inset
23654
23655 build-script
23656 \begin_inset Quotes erd
23657 \end_inset
23658
23659  process through the 
23660 \begin_inset Quotes eld
23661 \end_inset
23662
23663 listerrors
23664 \begin_inset Quotes erd
23665 \end_inset
23666
23667  program.
23668 \end_layout
23669
23670 \begin_layout Standard
23671 The build will normally take place in \SpecialChar LyX
23672 's temporary directory, so the files
23673  produced by the conversion will be in that directory.
23674  \SpecialChar LyX
23675  will copy out what it regards as the `main' file, but the 
23676 \family typewriter
23677 Noweb->Program
23678 \family default
23679  conversion may produce several files, and so most of these would then be
23680  deleted when \SpecialChar LyX
23681  was closed.
23682  This is why we pass in the NOWEB_OUTPUT_DIR environment variable so that
23683  the build-script chunk can place the generated files in that location.
23684 \end_layout
23685
23686 \begin_layout Paragraph
23687 Build instructions in the document
23688 \end_layout
23689
23690 \begin_layout Standard
23691 The last piece of the integration between \SpecialChar LyX
23692  and noweb is the 
23693 \begin_inset Quotes eld
23694 \end_inset
23695
23696 build-script
23697 \begin_inset Quotes erd
23698 \end_inset
23699
23700  chunk.
23701  Generally, the instructions for building your program should be embedded
23702  in a chunk of its own.
23703  The noweb-specific 
23704 \begin_inset Quotes eld
23705 \end_inset
23706
23707 build-script
23708 \begin_inset Quotes erd
23709 \end_inset
23710
23711  above uses the notangle command to look for this chunk (called 
23712 \begin_inset Quotes eld
23713 \end_inset
23714
23715 build-script
23716 \begin_inset Quotes erd
23717 \end_inset
23718
23719 ) and runs its contents through 
23720 \begin_inset Quotes eld
23721 \end_inset
23722
23723 sh
23724 \begin_inset Quotes erd
23725 \end_inset
23726
23727 .
23728 \end_layout
23729
23730 \begin_layout Standard
23731 Typically, such a chunk would look something like this:
23732 \end_layout
23733
23734 \begin_layout LyX-Code
23735 <<build-script>>=
23736 \end_layout
23737
23738 \begin_layout LyX-Code
23739 #!/bin/sh
23740 \begin_inset Newline newline
23741 \end_inset
23742
23743 if [ -z "${NOWEB_SOURCE}" ]
23744 \begin_inset Newline newline
23745 \end_inset
23746
23747 then
23748 \end_layout
23749
23750 \begin_layout LyX-Code
23751 NOWEB_SOURCE=myfile.nw
23752 \begin_inset Newline newline
23753 \end_inset
23754
23755 fi
23756 \begin_inset Newline newline
23757 \end_inset
23758
23759 [...
23760  code to extract files ...
23761  use NOWEB_OUTPUT_DIR here ...]
23762 \begin_inset Newline newline
23763 \end_inset
23764
23765 [...
23766  code to compile files ...]
23767 \begin_inset Newline newline
23768 \end_inset
23769
23770 @
23771 \end_layout
23772
23773 \begin_layout Standard
23774 Look in 
23775 \emph on
23776 LIBDIR/examples/listerrors.lyx
23777 \emph default
23778  or in 
23779 \emph on
23780 LIBDIR/examples/Literate.lyx
23781 \emph default
23782  which implement two versions of the 
23783 \begin_inset Quotes eld
23784 \end_inset
23785
23786 listerrors
23787 \begin_inset Quotes erd
23788 \end_inset
23789
23790  program for some illustrations of how all of these pieces go together or
23791  in 
23792 \emph on
23793 LIBDIR/examples/noweb2lyx.lyx.
23794
23795 \emph default
23796  Interestingly, these three files show off the language-indepence of the
23797  \SpecialChar LyX
23798  literate programming support since they are written in Python, C and Perl
23799  respectively.
23800 \end_layout
23801
23802 \begin_layout Subsubsection
23803 Configuring \SpecialChar LyX
23804
23805 \end_layout
23806
23807 \begin_layout Standard
23808 All the Literate Programming support is configured by the 
23809 \family sans
23810 Tools\SpecialChar menuseparator
23811 Preferences
23812 \family default
23813  panel in the 
23814 \begin_inset Quotes eld
23815 \end_inset
23816
23817 File Handling
23818 \begin_inset Quotes erd
23819 \end_inset
23820
23821  tab.
23822  The important parts are:
23823 \end_layout
23824
23825 \begin_layout Description
23826 the
23827 \begin_inset space ~
23828 \end_inset
23829
23830
23831 \begin_inset Quotes eld
23832 \end_inset
23833
23834 NoWeb
23835 \begin_inset Quotes erd
23836 \end_inset
23837
23838
23839 \begin_inset space ~
23840 \end_inset
23841
23842 format Set up via the File Formats tab, this is where the Noweb-specific
23843  pieces are set up.
23844  The 
23845 \family sans
23846 GUI Name
23847 \family default
23848  is set to 
23849 \family typewriter
23850 NoWeb
23851 \family default
23852 , the file extension is set to 
23853 \family typewriter
23854 .nw
23855 \family default
23856 .
23857  This tells \SpecialChar LyX
23858  to create a file with a 
23859 \family typewriter
23860 .nw
23861 \family default
23862  extension in the first step of the conversion process.
23863 \end_layout
23864
23865 \begin_layout Description
23866 the
23867 \begin_inset space ~
23868 \end_inset
23869
23870
23871 \family sans
23872 Program
23873 \family default
23874
23875 \begin_inset space ~
23876 \end_inset
23877
23878 format This is an empty format whose sole purpose is to be the endpoint
23879  of a conversion (which then allows us to set up a converter for it).
23880 \end_layout
23881
23882 \begin_layout Description
23883
23884 \family sans
23885 NoWeb
23886 \family default
23887 ->
23888 \family sans
23889 \SpecialChar LaTeX
23890
23891 \family default
23892  This converter performs the 
23893 \begin_inset Quotes eld
23894 \end_inset
23895
23896 weaving
23897 \begin_inset Quotes erd
23898 \end_inset
23899
23900  of the literate document.
23901  For Noweb, it is set to 
23902 \begin_inset Quotes eld
23903 \end_inset
23904
23905
23906 \family typewriter
23907 noweave -delay -index $$i > $$o
23908 \family default
23909
23910 \begin_inset Quotes erd
23911 \end_inset
23912
23913
23914 \end_layout
23915
23916 \begin_layout Description
23917
23918 \family sans
23919 NoWeb
23920 \family default
23921 ->
23922 \family sans
23923 Program
23924 \family default
23925  This performs the 
23926 \begin_inset Quotes eld
23927 \end_inset
23928
23929 tangling step
23930 \begin_inset Quotes erd
23931 \end_inset
23932
23933 .
23934  As stated above, the Converter is set to 
23935 \begin_inset Quotes eld
23936 \end_inset
23937
23938
23939 \family typewriter
23940 build-script $$i
23941 \family default
23942  $$r
23943 \begin_inset Quotes erd
23944 \end_inset
23945
23946 , with Flags set to
23947 \begin_inset Newline newline
23948 \end_inset
23949
23950
23951 \begin_inset Quotes eld
23952 \end_inset
23953
23954
23955 \family typewriter
23956 parselog=$$s/scripts/listerrors
23957 \family default
23958
23959 \begin_inset Quotes erd
23960 \end_inset
23961
23962 .
23963 \end_layout
23964
23965 \begin_layout Subsubsection
23966 Debug extensions
23967 \end_layout
23968
23969 \begin_layout Standard
23970 There is also a new function implemented in the \SpecialChar LyX
23971  server, the 
23972 \begin_inset Quotes eld
23973 \end_inset
23974
23975 server-goto-file-row" function, to be used with ddd/gdb or other debugger.
23976  
23977 \end_layout
23978
23979 \begin_layout Standard
23980 When debugging code with ddd/gdb, it is possible to invoke a text editor
23981  at the current execution position with a single key stroke.
23982  The default ddd configuration for that is shift-ctrl-V.
23983  It happens that you can define the editor command line invocation in ddd
23984  by accessing the 
23985 \family sans
23986 Edit\SpecialChar menuseparator
23987 Preferences\SpecialChar menuseparator
23988 Helpers
23989 \family default
23990  dialog and changing the "Edit Sources" entry.
23991 \end_layout
23992
23993 \begin_layout Standard
23994 I take advantage of the newly created \SpecialChar LyX
23995  server function and this ddd feature,
23996  and set 
23997 \begin_inset Quotes eld
23998 \end_inset
23999
24000 Edit Sources
24001 \begin_inset Quotes erd
24002 \end_inset
24003
24004  to:
24005 \end_layout
24006
24007 \begin_layout LyX-Code
24008 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
24009 \end_layout
24010
24011 \begin_layout Standard
24012 With this, whenever you are using ddd and find a point in the program that
24013  you want to edit, you just press shift-ctrl-V (in the ddd window), and
24014  ddd will forward this information to \SpecialChar LyX
24015  through the \SpecialChar LyX
24016  server and then the
24017  \SpecialChar LyX
24018  window will show the same file with the cursor at the same position ddd
24019  was pointing to.
24020  No more guessing or long scrolling to locate a point in the program back
24021  from debugging !
24022 \end_layout
24023
24024 \begin_layout Standard
24025 Note however that you must enable the \SpecialChar LyX
24026  server to get this feature working
24027  (it is disabled by default).
24028  Sec.
24029 \begin_inset space ~
24030 \end_inset
24031
24032
24033 \begin_inset CommandInset ref
24034 LatexCommand ref
24035 reference "sec:Starting-the-Server"
24036
24037 \end_inset
24038
24039  explains how to do that.
24040 \end_layout
24041
24042 \begin_layout Subsubsection
24043 Toolbar extensions
24044 \end_layout
24045
24046 \begin_layout Standard
24047 There are six new buttons that can be added to your \SpecialChar LyX
24048  toolbar.
24049  Four of these buttons are short cuts to layout styles: 
24050 \family sans
24051 Standard
24052 \family default
24053
24054 \family sans
24055 Section
24056 \family default
24057
24058 \family sans
24059 \SpecialChar LaTeX
24060
24061 \family default
24062 , and 
24063 \family sans
24064 \SpecialChar LyX
24065 -Code
24066 \family default
24067 , one for the custom inset 
24068 \family sans
24069 Chunk
24070 \family default
24071 .
24072  The last one is a short cut to the 
24073 \begin_inset Quotes eld
24074 \end_inset
24075
24076 Build Program
24077 \begin_inset Quotes erd
24078 \end_inset
24079
24080  File menu entry.
24081  
24082 \end_layout
24083
24084 \begin_layout Standard
24085 \SpecialChar LyX
24086  has a range of buttons that are available for tool bar customization.
24087  In my toolbar I like to combine the six short cuts above with two more:
24088  One for 
24089 \family sans
24090 Document
24091 \family default
24092 \SpecialChar menuseparator
24093
24094 \family sans
24095 Update
24096 \family default
24097 \SpecialChar menuseparator
24098
24099 \family sans
24100 DVI
24101 \family default
24102  and the other for 
24103 \family sans
24104 Document\SpecialChar menuseparator
24105 View\SpecialChar menuseparator
24106 DVI
24107 \family default
24108  File menu entries.
24109  Here is how it looks like:
24110 \end_layout
24111
24112 \begin_layout LyX-Code
24113 Toolbar
24114 \end_layout
24115
24116 \begin_layout LyX-Code
24117   Layouts
24118 \end_layout
24119
24120 \begin_layout LyX-Code
24121   Icon "layout Standard"
24122 \end_layout
24123
24124 \begin_layout LyX-Code
24125   Icon "layout Section"
24126 \end_layout
24127
24128 \begin_layout LyX-Code
24129   Icon "layout \SpecialChar LaTeX
24130 "
24131 \end_layout
24132
24133 \begin_layout LyX-Code
24134   Icon "layout \SpecialChar LyX
24135 -Code"
24136 \end_layout
24137
24138 \begin_layout LyX-Code
24139   Icon "flex.insert Chunk"
24140 \end_layout
24141
24142 \begin_layout LyX-Code
24143   Separator
24144 \end_layout
24145
24146 \begin_layout LyX-Code
24147   Icon "buffer-view"
24148 \end_layout
24149
24150 \begin_layout LyX-Code
24151   Icon "buffer-typeset"
24152 \end_layout
24153
24154 \begin_layout LyX-Code
24155   Icon "build-program"
24156 \end_layout
24157
24158 \begin_layout LyX-Code
24159   Separator
24160 \end_layout
24161
24162 \begin_layout LyX-Code
24163 .
24164 \end_layout
24165
24166 \begin_layout LyX-Code
24167 .
24168 \end_layout
24169
24170 \begin_layout LyX-Code
24171 .
24172 \end_layout
24173
24174 \begin_layout LyX-Code
24175 End
24176 \end_layout
24177
24178 \begin_layout Subsubsection
24179 Colors customization
24180 \end_layout
24181
24182 \begin_layout Standard
24183 There are a number of colors in \SpecialChar LyX
24184  that can be customized in 
24185 \family sans
24186 Preferences
24187 \family default
24188 .
24189  One of the things that bothers people is the \SpecialChar LaTeX
24190  font color.
24191  The default color is red, since the chunks uses \SpecialChar LaTeX
24192  font, and there is a lot
24193  of chunks in literate documents, you may get tired of seeing everything
24194  in red.
24195  You can change it by going to the tabs 
24196 \family sans
24197 Look&Feel
24198 \family default
24199
24200 \family sans
24201 Colors.
24202 \end_layout
24203
24204 \begin_layout Standard
24205 The next thing is the visible presence of the newline character in the screen.
24206  You can choose the color of this particular character and make it blend
24207  in the background.
24208  I recommend you choosing a color that is close to the background but not
24209  equal, that way you still can see it is there, but it is not bothering
24210  you anymore.
24211 \end_layout
24212
24213 \begin_layout Subsection
24214 \SpecialChar LyX
24215  and knitr/Sweave
24216 \end_layout
24217
24218 \begin_layout Standard
24219 Support for 
24220 \family sans
24221 knitr
24222 \family default
24223  and 
24224 \family sans
24225 Sweave
24226 \family default
24227  is documented in the 
24228 \emph on
24229 knitr.lyx
24230 \emph default
24231  example file and in the Sweave manual (menu 
24232 \family sans
24233 Help\SpecialChar menuseparator
24234 Specific Manuals
24235 \family default
24236 ).
24237 \end_layout
24238
24239 \begin_layout Chapter
24240 Special features
24241 \end_layout
24242
24243 \begin_layout Standard
24244 You can do everything with \SpecialChar LyX
24245  that you can do with \SpecialChar LaTeX
24246 .
24247  However, \SpecialChar LyX
24248  cannot support every \SpecialChar LaTeX
24249  feature directly.
24250  But you can always use \SpecialChar TeX
24251  Code.
24252  This chapter shows you some more special things you might want to use.
24253  For other special things you can do with figures, tables, floats, boxes
24254  and notes, have a look at the 
24255 \emph on
24256 Embedded
24257 \begin_inset space ~
24258 \end_inset
24259
24260 Objects
24261 \emph default
24262  manual.
24263 \end_layout
24264
24265 \begin_layout Section
24266 Multiple Text Columns
24267 \end_layout
24268
24269 \begin_layout Standard
24270 This feature is independent of the option 
24271 \family sans
24272 Two-column document
24273 \family default
24274  in the document settings under 
24275 \family sans
24276 Text Layout
24277 \family default
24278 .
24279  If you want to have 2
24280 \begin_inset space ~
24281 \end_inset
24282
24283 columns for the whole document, it is recommended to use the 
24284 \family sans
24285 Two-column document
24286 \family default
24287  option.
24288  For all other cases use this feature.
24289 \end_layout
24290
24291 \begin_layout Standard
24292 To use multiple text columns in your document, you have to load the module
24293  
24294 \family sans
24295 Multiple Columns
24296 \family default
24297  (menu 
24298 \family sans
24299 Document\SpecialChar menuseparator
24300 Settings\SpecialChar menuseparator
24301 Modules
24302 \family default
24303 ) and must have the \SpecialChar LaTeX
24304 -package 
24305 \begin_inset Flex Code
24306 status collapsed
24307
24308 \begin_layout Plain Layout
24309 multicol
24310 \end_layout
24311
24312 \end_inset
24313
24314  installed.
24315 \end_layout
24316
24317 \begin_layout Standard
24318 Footnotes within multiple columns will be placed at the bottom of the page
24319  and not under each column.
24320  Within the different columns you can use everything, with the limitation
24321  that for floats you need to use the float option 
24322 \family sans
24323 Span columns
24324 \family default
24325 .
24326 \end_layout
24327
24328 \begin_layout Subsection
24329 Basics
24330 \end_layout
24331
24332 \begin_layout Standard
24333 If you want to have 2
24334 \begin_inset space ~
24335 \end_inset
24336
24337 columns in your text, insert a multicolumn inset via the menu 
24338 \family sans
24339 Insert\SpecialChar menuseparator
24340 Custom
24341 \begin_inset space ~
24342 \end_inset
24343
24344 Insets\SpecialChar menuseparator
24345 Multiple
24346 \begin_inset space ~
24347 \end_inset
24348
24349 Columns
24350 \family default
24351  where the columns should start.
24352  Write all text that should be printed in 2
24353 \begin_inset space ~
24354 \end_inset
24355
24356 columns into this inset.
24357 \end_layout
24358
24359 \begin_layout Standard
24360 Here is an example:
24361 \end_layout
24362
24363 \begin_layout Standard
24364 \noindent
24365 \begin_inset Flex Multiple Columns
24366 status open
24367
24368 \begin_layout Plain Layout
24369 \noindent
24370
24371 \series bold
24372 \size small
24373 The Adventure of the Empty House
24374 \series default
24375
24376 \begin_inset Newline newline
24377 \end_inset
24378
24379 by Sir Arthur Conan Doyle
24380 \end_layout
24381
24382 \begin_layout Plain Layout
24383
24384 \size small
24385 It was in the spring of the year 1894 that all London was interested, and
24386  the fashionable world dismayed, by the murder of the Honourable Ronald
24387  Adair under most unusual and inexplicable circumstances.
24388  The public has already learned those particulars of the crime which came
24389  out in the police investigation, but a good deal was suppressed upon that
24390  occasion, since the case for the prosecution was so overwhelmingly strong
24391  that it was not necessary to bring forward all the facts.
24392  Only now, at the end of nearly ten years, am I allowed to supply those
24393  missing links which make up the whole of that remarkable chain.
24394  The crime was of interest in itself, but that interest was as nothing to
24395  me compared to the inconceivable sequel, which afforded me the greatest
24396  shock and surprise of any event in my adventurous life.
24397  Even now, after this long interval, I find myself thrilling as I think
24398  of it, and feeling once more that sudden flood of joy, amazement, and increduli
24399 ty which utterly submerged my mind.
24400  Let me say to that public, which has shown some interest in those glimpses
24401  which I have occasionally given them of the thoughts and actions of a very
24402  remarkable man, that they are not to blame me if I have not shared my knowledge
24403  with them, for I should have considered it my first duty to do so, had
24404  I not been barred by a positive prohibition from his own lips, which was
24405  only withdrawn upon the third of last month.
24406 \end_layout
24407
24408 \end_inset
24409
24410
24411 \end_layout
24412
24413 \begin_layout Standard
24414 To get 3 or more columns, set the cursor into the multicolumn inset and
24415  use the menu 
24416 \family sans
24417 Insert\SpecialChar menuseparator
24418 Number
24419 \begin_inset space ~
24420 \end_inset
24421
24422 of
24423 \begin_inset space ~
24424 \end_inset
24425
24426 Columns
24427 \family default
24428 .
24429  The number of the desired columns is written into that inset (for 3
24430 \begin_inset space ~
24431 \end_inset
24432
24433 columns write 
24434 \begin_inset Quotes eld
24435 \end_inset
24436
24437 3
24438 \begin_inset Quotes erd
24439 \end_inset
24440
24441 ).
24442 \begin_inset Newline newline
24443 \end_inset
24444
24445 Here is an example with 3
24446 \begin_inset space ~
24447 \end_inset
24448
24449 columns:
24450 \end_layout
24451
24452 \begin_layout Standard
24453 \begin_inset Flex Multiple Columns
24454 status open
24455
24456 \begin_layout Plain Layout
24457
24458 \size footnotesize
24459 \begin_inset Argument 1
24460 status open
24461
24462 \begin_layout Plain Layout
24463
24464 3
24465 \end_layout
24466
24467 \end_inset
24468
24469 It can be imagined that my close intimacy with Sherlock Holmes had interested
24470  me deeply in crime, and that after his disappearance I never failed to
24471  read with care the various problems which came before the public.
24472  And I even attempted, more than once, for my own private satisfaction,
24473  to employ his methods in their solution, though with indifferent success.
24474  There was none, however, which appealed to me like this tragedy of Ronald
24475  Adair.
24476  As I read the evidence at the inquest, which led up to a verdict of willful
24477  murder against some person or persons unknown, I realized more clearly
24478  than I had ever done the loss which the community had sustained by the
24479  death of Sherlock Holmes.
24480  There were points about this strange business which would, I was sure,
24481  have specially appealed to him, and the efforts of the police would have
24482  been supplemented, or more probably anticipated, by the trained observation
24483  and the alert mind of the first criminal agent in Europe.
24484  All day, as I drove upon my round, I turned over the case in my mind and
24485  found no explanation which appeared to me to be adequate.
24486  At the risk of telling a twice-told tale, I will recapitulate the facts
24487  as they were known to the public at the conclusion of the inquest.
24488 \end_layout
24489
24490 \end_inset
24491
24492
24493 \end_layout
24494
24495 \begin_layout Standard
24496 You can have up to 10
24497 \begin_inset space ~
24498 \end_inset
24499
24500 columns if you want to, but that might not be very pleasant for the readers
24501  of your document.
24502 \end_layout
24503
24504 \begin_layout Standard
24505 \begin_inset Newpage newpage
24506 \end_inset
24507
24508
24509 \end_layout
24510
24511 \begin_layout Subsection
24512 Columns inside Columns
24513 \end_layout
24514
24515 \begin_layout Standard
24516 You can also have columns inside columns:
24517 \end_layout
24518
24519 \begin_layout Standard
24520 \begin_inset Flex Multiple Columns
24521 status open
24522
24523 \begin_layout Plain Layout
24524
24525 \size footnotesize
24526 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
24527  at that time governor of one of the Australian colonies.
24528  Adair's mother had returned from Australia to undergo the operation for
24529  cataract, and she, her son Ronald, and her daughter Hilda were living together
24530  at 427 Park Lane.
24531 \end_layout
24532
24533 \begin_layout Plain Layout
24534 \begin_inset Flex Multiple Columns
24535 status open
24536
24537 \begin_layout Plain Layout
24538
24539 \size footnotesize
24540 The youth moved in the best society
24541 \begin_inset space ~
24542 \end_inset
24543
24544 – had, so far as was known, no enemies and no particular vices.
24545  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
24546  had been broken off by mutual consent some months before, and there was
24547  no sign that it had left any very profound feeling behind it.
24548  For the rest {sic} the man's life moved in a narrow and conventional circle,
24549  for his habits were quiet and his nature unemotional.
24550  Yet it was upon this easy-going young aristocrat that death came, in most
24551  strange and unexpected form, between the hours of ten and eleven-twenty
24552  on the night of March 30, 1894.
24553 \end_layout
24554
24555 \end_inset
24556
24557
24558 \end_layout
24559
24560 \begin_layout Plain Layout
24561
24562 \size footnotesize
24563 Ronald Adair was fond of cards
24564 \begin_inset space ~
24565 \end_inset
24566
24567 – playing continually, but never for such stakes as would hurt him.
24568  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
24569  It was shown that, after dinner on the day of his death, he had played
24570  a rubber of whist at the latter club.
24571  He had also played there in the afternoon.
24572
24573 \size default
24574  
24575 \size footnotesize
24576 The evidence of those who had played with him
24577 \begin_inset space ~
24578 \end_inset
24579
24580 – Mr.
24581  Murray, Sir John Hardy, and Colonel Moran
24582 \begin_inset space ~
24583 \end_inset
24584
24585 – showed that the game was whist, and that there was a fairly equal fall
24586  of the cards.
24587  Adair might have lost five pounds, but not more.
24588  His fortune was a considerable one, and such a loss could not in any way
24589  affect him.
24590  He had played nearly every day at one club or other, but he was a cautious
24591  player, and usually rose a winner.
24592  It came out in evidence that, in partnership with Colonel Moran, he had
24593  actually won as much as four hundred and twenty pounds in a sitting, some
24594  weeks before, from Godfrey Milner and Lord Balmoral.
24595  So much for his recent history as it came out at the inquest.
24596 \end_layout
24597
24598 \end_inset
24599
24600
24601 \end_layout
24602
24603 \begin_layout Subsection
24604 Advanced Examples
24605 \end_layout
24606
24607 \begin_layout Standard
24608 The examples in this section show some more special features of multiple
24609  columns.
24610 \end_layout
24611
24612 \begin_layout Standard
24613 For more features of multiple columns, have a look at the 
24614 \begin_inset CommandInset href
24615 LatexCommand href
24616 name "documentation"
24617 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
24618 literal "false"
24619
24620 \end_inset
24621
24622  of the \SpecialChar LaTeX
24623 -package 
24624 \begin_inset Flex Code
24625 status collapsed
24626
24627 \begin_layout Plain Layout
24628 multicol
24629 \end_layout
24630
24631 \end_inset
24632
24633 .
24634 \end_layout
24635
24636 \begin_layout Subsubsection
24637 Preface
24638 \end_layout
24639
24640 \begin_layout Standard
24641 To add a preface text for multiple columns, set the cursor into the multicolumn
24642  inset and use the menu 
24643 \family sans
24644 Insert\SpecialChar menuseparator
24645 Preface
24646 \family default
24647 .
24648  Write your preface text into that inset.
24649 \begin_inset Newline newline
24650 \end_inset
24651
24652 This is an example with some preface text:
24653 \end_layout
24654
24655 \begin_layout Standard
24656 \begin_inset VSpace bigskip
24657 \end_inset
24658
24659
24660 \end_layout
24661
24662 \begin_layout Standard
24663 \begin_inset Flex Multiple Columns
24664 status open
24665
24666 \begin_layout Plain Layout
24667 \begin_inset Argument 2
24668 status open
24669
24670 \begin_layout Plain Layout
24671 And the story continues and continues and continues and continues\SpecialChar ldots
24672
24673 \end_layout
24674
24675 \end_inset
24676
24677
24678 \size small
24679 On the evening of the crime, he returned from the club exactly at ten.
24680  His mother and sister were out spending the evening with a relation.
24681  The servant deposed that she heard him enter the front room on the second
24682  floor, generally used as his sitting-room.
24683  She had lit a fire there, and as it smoked she had opened the window.
24684  No sound was heard from the room until eleven-twenty, the hour of the return
24685  of Lady Maynooth and her daughter.
24686  Desiring to say good-night, she attempted to enter her son's room.
24687  The door was locked on the inside, and no answer could be got to their
24688  cries and knocking.
24689  Help was obtained, and the door forced.
24690  The unfortunate young man was found lying near the table.
24691  His head had been horribly mutilated by an expanding revolver bullet, but
24692  no weapon of any sort was to be found in the room.
24693 \end_layout
24694
24695 \end_inset
24696
24697
24698 \end_layout
24699
24700 \begin_layout Standard
24701 You can also use a section heading as the preface if you use a section command
24702  as \SpecialChar TeX
24703  Code.
24704  For example the command
24705 \end_layout
24706
24707 \begin_layout LyX-Code
24708
24709 \backslash
24710 subsection{subsection title}
24711 \end_layout
24712
24713 \begin_layout Standard
24714 creates a subsection.
24715  In this example the preface is a subsubsection:
24716 \end_layout
24717
24718 \begin_layout Standard
24719 \begin_inset Flex Multiple Columns
24720 status open
24721
24722 \begin_layout Plain Layout
24723 \begin_inset Argument 2
24724 status open
24725
24726 \begin_layout Plain Layout
24727 \begin_inset ERT
24728 status collapsed
24729
24730 \begin_layout Plain Layout
24731
24732
24733 \backslash
24734 subsubsection{
24735 \end_layout
24736
24737 \end_inset
24738
24739 This is a subsubsection heading as a preface
24740 \begin_inset ERT
24741 status collapsed
24742
24743 \begin_layout Plain Layout
24744
24745 }
24746 \end_layout
24747
24748 \end_inset
24749
24750
24751 \end_layout
24752
24753 \end_inset
24754
24755
24756 \size small
24757 A minute examination of the circumstances served only to make the case more
24758  complex.
24759  In the first place, no reason could be given why the young man should have
24760  fastened the door upon the inside.
24761  There was the possibility that the murderer had done this, and had afterwards
24762  escaped by the window.
24763  The drop was at least twenty feet, however, and a bed of crocuses in full
24764  bloom lay beneath.
24765  Neither the flowers nor the earth showed any sign of having been disturbed,
24766  nor were there any marks upon the narrow strip of grass which separated
24767  the house from the road.
24768  Apparently, therefore, it was the young man himself who had fastened the
24769  door.
24770  But how did he come by his death? No one could have climbed up to the window
24771  without leaving traces.
24772  Suppose a man had fired through the window, he would indeed be a remarkable
24773  shot who could with a revolver inflict so deadly a wound.
24774  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
24775  a hundred yards of the house.
24776  No one had heard a shot.
24777 \end_layout
24778
24779 \end_inset
24780
24781
24782 \end_layout
24783
24784 \begin_layout Standard
24785 If there is less vertical space than 6
24786 \begin_inset space ~
24787 \end_inset
24788
24789 text lines is left on the page at the beginning of the multiple columns,
24790  a page break will be inserted before the multiple columns.
24791  Depending on the number of lines of the preface text, you might want to
24792  change this space.
24793  This is done by setting the cursor into the mulitcolumn inset behind the
24794  preface (if there is any) and using the menu 
24795 \family sans
24796 Insert\SpecialChar menuseparator
24797 Space
24798 \begin_inset space ~
24799 \end_inset
24800
24801 Before
24802 \begin_inset space ~
24803 \end_inset
24804
24805 Page
24806 \begin_inset space ~
24807 \end_inset
24808
24809 Break
24810 \family default
24811 .
24812  Insert into that inset the amount of space like e.
24813 \begin_inset space \thinspace{}
24814 \end_inset
24815
24816 g.
24817 \begin_inset space \space{}
24818 \end_inset
24819
24820
24821 \begin_inset Quotes eld
24822 \end_inset
24823
24824 5cm
24825 \begin_inset Quotes erd
24826 \end_inset
24827
24828 .
24829 \begin_inset Newline newline
24830 \end_inset
24831
24832 In this example the space is set to 7
24833 \begin_inset space ~
24834 \end_inset
24835
24836 text lines by using 
24837 \begin_inset Flex Code
24838 status collapsed
24839
24840 \begin_layout Plain Layout
24841 7
24842 \backslash
24843 baselineskip
24844 \end_layout
24845
24846 \end_inset
24847
24848  (where the command 
24849 \begin_inset Flex Code
24850 status collapsed
24851
24852 \begin_layout Plain Layout
24853
24854 \backslash
24855 baselineskip
24856 \end_layout
24857
24858 \end_inset
24859
24860  needs to be inserted as \SpecialChar TeX
24861  code):
24862 \end_layout
24863
24864 \begin_layout Standard
24865 \begin_inset Flex Multiple Columns
24866 status open
24867
24868 \begin_layout Plain Layout
24869 \begin_inset Argument 3
24870 status open
24871
24872 \begin_layout Plain Layout
24873 7
24874 \begin_inset ERT
24875 status collapsed
24876
24877 \begin_layout Plain Layout
24878
24879
24880 \backslash
24881 baselineskip
24882 \end_layout
24883
24884 \end_inset
24885
24886
24887 \end_layout
24888
24889 \end_inset
24890
24891
24892 \size small
24893 On the evening of the crime, he returned from the club exactly at ten.
24894  His mother and sister were out spending the evening with a relation.
24895  The servant deposed that she heard him enter the front room on the second
24896  floor, generally used as his sitting-room.
24897  She had lit a fire there, and as it smoked she had opened the window.
24898  No sound was heard from the room until eleven-twenty, the hour of the return
24899  of Lady Maynooth and her daughter.
24900  Desiring to say good-night, she attempted to enter her son's room.
24901  The door was locked on the inside, and no answer could be got to their
24902  cries and knocking.
24903  Help was obtained, and the door forced.
24904  The unfortunate young man was found lying near the table.
24905  His head had been horribly mutilated by an expanding revolver bullet, but
24906  no weapon of any sort was to be found in the room.
24907 \end_layout
24908
24909 \end_inset
24910
24911
24912 \end_layout
24913
24914 \begin_layout Subsubsection
24915 Surrounding Space
24916 \end_layout
24917
24918 \begin_layout Standard
24919 The amount of space before and after multiple columns can be changed by
24920  changing the length 
24921 \begin_inset Flex Code
24922 status collapsed
24923
24924 \begin_layout Plain Layout
24925
24926 \backslash
24927 multicolsep
24928 \end_layout
24929
24930 \end_inset
24931
24932 .
24933  For example the command
24934 \end_layout
24935
24936 \begin_layout LyX-Code
24937
24938 \backslash
24939 setlength{
24940 \backslash
24941 multicolsep}{3cm}
24942 \end_layout
24943
24944 \begin_layout Standard
24945 in \SpecialChar TeX
24946  Code changes its value to 3
24947 \begin_inset space \thinspace{}
24948 \end_inset
24949
24950 cm.
24951  The change must be made before the multiple columns' start.
24952  The predefined value is 13
24953 \begin_inset space \thinspace{}
24954 \end_inset
24955
24956 pt.
24957 \end_layout
24958
24959 \begin_layout Standard
24960 For this example 
24961 \begin_inset Flex Code
24962 status collapsed
24963
24964 \begin_layout Plain Layout
24965
24966 \backslash
24967 multicolsep
24968 \end_layout
24969
24970 \end_inset
24971
24972  was set to 2.5
24973 \begin_inset space \thinspace{}
24974 \end_inset
24975
24976 cm:
24977 \end_layout
24978
24979 \begin_layout Standard
24980 \begin_inset ERT
24981 status open
24982
24983 \begin_layout Plain Layout
24984
24985
24986 \backslash
24987 setlength{
24988 \backslash
24989 multicolsep}{2.5cm}
24990 \end_layout
24991
24992 \end_inset
24993
24994
24995 \end_layout
24996
24997 \begin_layout Standard
24998 \begin_inset Flex Multiple Columns
24999 status open
25000
25001 \begin_layout Plain Layout
25002
25003 \size small
25004 All day I turned these facts over in my mind, endeavouring to hit upon some
25005  theory which could reconcile them all, and to find that line of least resistanc
25006 e which my poor friend had declared to be the starting-point of every investigat
25007 ion.
25008  I confess that I made little progress.
25009  In the evening I strolled across the Park, and found myself about six o'clock
25010  at the Oxford Street end of Park Lane.
25011  A group of loafers upon the pavements, all staring up at a particular window,
25012  directed me to the house which I had come to see.
25013  A tall, thin man with coloured glasses, whom I strongly suspected of being
25014  a plain-clothes detective, was pointing out some theory of his own, while
25015  the others crowded round to listen to what he said.
25016  I got as near him as I could, but his observations seemed to me to be absurd,
25017  so I withdrew again in some disgust.
25018  As I did so I struck against an elderly, deformed man, who had been behind
25019  me, and I knocked down several books which he was carrying.
25020 \end_layout
25021
25022 \end_inset
25023
25024
25025 \end_layout
25026
25027 \begin_layout Standard
25028 \begin_inset Note Greyedout
25029 status open
25030
25031 \begin_layout Plain Layout
25032
25033 \series bold
25034 Note:
25035 \series default
25036  The values you set with 
25037 \begin_inset Flex Code
25038 status collapsed
25039
25040 \begin_layout Plain Layout
25041
25042 \backslash
25043 setlength
25044 \end_layout
25045
25046 \end_inset
25047
25048  will be used for all following multiple columns until you change them again.
25049 \end_layout
25050
25051 \end_inset
25052
25053
25054 \end_layout
25055
25056 \begin_layout Standard
25057 \begin_inset ERT
25058 status collapsed
25059
25060 \begin_layout Plain Layout
25061
25062
25063 \backslash
25064 setlength{
25065 \backslash
25066 multicolsep}{13pt}
25067 \end_layout
25068
25069 \end_inset
25070
25071
25072 \begin_inset Note Note
25073 status collapsed
25074
25075 \begin_layout Plain Layout
25076 go back to the default
25077 \end_layout
25078
25079 \end_inset
25080
25081
25082 \end_layout
25083
25084 \begin_layout Standard
25085 \begin_inset Newpage newpage
25086 \end_inset
25087
25088
25089 \end_layout
25090
25091 \begin_layout Subsubsection
25092 Column Breaks
25093 \end_layout
25094
25095 \begin_layout Standard
25096 A column break can be forced by inserting the command 
25097 \begin_inset Flex Code
25098 status collapsed
25099
25100 \begin_layout Plain Layout
25101
25102 \backslash
25103 columnbreak{}
25104 \end_layout
25105
25106 \end_inset
25107
25108  as \SpecialChar TeX
25109  Code to that position in the text where the column should be broken.
25110  Note that this leads in most cases to whitespace in the text.
25111 \begin_inset Newline newline
25112 \end_inset
25113
25114 Here is an example:
25115 \end_layout
25116
25117 \begin_layout Standard
25118 \begin_inset Flex Multiple Columns
25119 status open
25120
25121 \begin_layout Plain Layout
25122
25123 \size small
25124 \begin_inset Quotes eld
25125 \end_inset
25126
25127 You're surprised to see me, sir,
25128 \begin_inset Quotes erd
25129 \end_inset
25130
25131  said he, in a strange, croaking voice.
25132 \end_layout
25133
25134 \begin_layout Plain Layout
25135
25136 \size small
25137 I acknowledged that I was.
25138 \end_layout
25139
25140 \begin_layout Plain Layout
25141
25142 \size small
25143 \begin_inset Quotes eld
25144 \end_inset
25145
25146 Well, I've a conscience, sir, and when I chanced to see you go into this
25147  house, as I came hobbling after you, I thought to myself, I'll just step
25148  in and see that kind gentleman, and tell him that if I was a bit gruff
25149  in my manner there was not any harm meant, and that I am much obliged to
25150  him for picking up my books.
25151 \begin_inset Quotes erd
25152 \end_inset
25153
25154
25155 \end_layout
25156
25157 \begin_layout Plain Layout
25158
25159 \size small
25160 \begin_inset Quotes eld
25161 \end_inset
25162
25163 You make too much of a trifle,
25164 \begin_inset Quotes erd
25165 \end_inset
25166
25167  said I.
25168  
25169 \begin_inset Quotes eld
25170 \end_inset
25171
25172 May I ask how you knew who I was?
25173 \begin_inset Quotes erd
25174 \end_inset
25175
25176  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
25177 \begin_inset ERT
25178 status collapsed
25179
25180 \begin_layout Plain Layout
25181
25182
25183 \backslash
25184 columnbreak{}
25185 \end_layout
25186
25187 \end_inset
25188
25189
25190 \end_layout
25191
25192 \begin_layout Plain Layout
25193
25194 \size small
25195 \begin_inset Quotes eld
25196 \end_inset
25197
25198 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25199  you'll find my little bookshop at the corner of Church Street, and very
25200  happy to see you, I am sure.
25201  Maybe you collect yourself, sir.
25202  Here's 
25203 \noun on
25204 British
25205 \begin_inset space ~
25206 \end_inset
25207
25208 Birds
25209 \noun default
25210 , and 
25211 \noun on
25212 Catullus
25213 \noun default
25214 , and 
25215 \noun on
25216 The Holy War
25217 \noun default
25218
25219 \begin_inset space ~
25220 \end_inset
25221
25222 – a bargain, every one of them.
25223  With five volumes you could just fill that gap on that second shelf.
25224  It looks untidy, does it not, sir?
25225 \begin_inset Quotes erd
25226 \end_inset
25227
25228
25229 \end_layout
25230
25231 \end_inset
25232
25233
25234 \end_layout
25235
25236 \begin_layout Subsubsection
25237 Column Separation
25238 \end_layout
25239
25240 \begin_layout Standard
25241 The width of the columns is automatically calculated, but you can modify
25242  the space between the columns.
25243  This is done by changing the length 
25244 \begin_inset Flex Code
25245 status collapsed
25246
25247 \begin_layout Plain Layout
25248
25249 \backslash
25250 columnsep
25251 \end_layout
25252
25253 \end_inset
25254
25255 .
25256  Its predefined value is 10
25257 \begin_inset space \thinspace{}
25258 \end_inset
25259
25260 pt.
25261  Here is an example where 
25262 \begin_inset Flex Code
25263 status collapsed
25264
25265 \begin_layout Plain Layout
25266
25267 \backslash
25268 columnsep
25269 \end_layout
25270
25271 \end_inset
25272
25273  is set to 3
25274 \begin_inset space \thinspace{}
25275 \end_inset
25276
25277 cm:
25278 \end_layout
25279
25280 \begin_layout Standard
25281 \begin_inset ERT
25282 status open
25283
25284 \begin_layout Plain Layout
25285
25286
25287 \backslash
25288 setlength{
25289 \backslash
25290 columnsep}{3cm}
25291 \end_layout
25292
25293 \end_inset
25294
25295
25296 \end_layout
25297
25298 \begin_layout Standard
25299 \begin_inset Flex Multiple Columns
25300 status open
25301
25302 \begin_layout Plain Layout
25303
25304 \size small
25305 My observations of No.
25306 \begin_inset space \space{}
25307 \end_inset
25308
25309 427 Park Lane did little to clear up the problem in which I was interested.
25310  The house was separated from the street by a low wall and railing, the
25311  whole not more than five feet high.
25312  It was perfectly easy, therefore, for anyone to get into the garden, but
25313  the window was entirely inaccessible, since there was no water pipe or
25314  anything which could help the most active man to climb it.
25315  More puzzled than ever, I retraced my steps to Kensington.
25316  I had not been in my study five minutes when the maid entered to say that
25317  a person desired to see me.
25318  To my astonishment it was none other than my strange old book collector,
25319  his sharp, wizened face peering out from a frame of white hair, and his
25320  precious volumes, a dozen of them at least, wedged under his right arm.
25321 \end_layout
25322
25323 \end_inset
25324
25325
25326 \end_layout
25327
25328 \begin_layout Standard
25329 \begin_inset ERT
25330 status collapsed
25331
25332 \begin_layout Plain Layout
25333
25334
25335 \backslash
25336 setlength{
25337 \backslash
25338 columnsep}{10pt}
25339 \end_layout
25340
25341 \end_inset
25342
25343
25344 \begin_inset Note Note
25345 status collapsed
25346
25347 \begin_layout Plain Layout
25348 go back to the default
25349 \end_layout
25350
25351 \end_inset
25352
25353
25354 \end_layout
25355
25356 \begin_layout Subsubsection
25357 Vertical Lines
25358 \end_layout
25359
25360 \begin_layout Standard
25361 Between the columns a rule with a width of the length 
25362 \begin_inset Flex Code
25363 status collapsed
25364
25365 \begin_layout Plain Layout
25366
25367 \backslash
25368 columnseprule
25369 \end_layout
25370
25371 \end_inset
25372
25373  is placed.
25374  If this rule width is set to 0
25375 \begin_inset space \thinspace{}
25376 \end_inset
25377
25378 pt (this is the default), the rule is suppressed.
25379  In the following example the rule is 2
25380 \begin_inset space \thinspace{}
25381 \end_inset
25382
25383 pt wide:
25384 \end_layout
25385
25386 \begin_layout Standard
25387 \begin_inset ERT
25388 status open
25389
25390 \begin_layout Plain Layout
25391
25392
25393 \backslash
25394 setlength{
25395 \backslash
25396 columnseprule}{2pt}
25397 \end_layout
25398
25399 \end_inset
25400
25401
25402 \end_layout
25403
25404 \begin_layout Standard
25405 \begin_inset Flex Multiple Columns
25406 status open
25407
25408 \begin_layout Plain Layout
25409
25410 \size small
25411 \begin_inset Quotes eld
25412 \end_inset
25413
25414 You're surprised to see me, sir,
25415 \begin_inset Quotes erd
25416 \end_inset
25417
25418  said he, in a strange, croaking voice.
25419 \end_layout
25420
25421 \begin_layout Plain Layout
25422
25423 \size small
25424 I acknowledged that I was.
25425 \end_layout
25426
25427 \begin_layout Plain Layout
25428
25429 \size small
25430 \begin_inset Quotes eld
25431 \end_inset
25432
25433 Well, I've a conscience, sir, and when I chanced to see you go into this
25434  house, as I came hobbling after you, I thought to myself, I'll just step
25435  in and see that kind gentleman, and tell him that if I was a bit gruff
25436  in my manner there was not any harm meant, and that I am much obliged to
25437  him for picking up my books.
25438 \begin_inset Quotes erd
25439 \end_inset
25440
25441
25442 \end_layout
25443
25444 \begin_layout Plain Layout
25445
25446 \size small
25447 \begin_inset Quotes eld
25448 \end_inset
25449
25450 You make too much of a trifle,
25451 \begin_inset Quotes erd
25452 \end_inset
25453
25454  said I.
25455  
25456 \begin_inset Quotes eld
25457 \end_inset
25458
25459 May I ask how you knew who I was?
25460 \begin_inset Quotes erd
25461 \end_inset
25462
25463
25464 \end_layout
25465
25466 \begin_layout Plain Layout
25467
25468 \size small
25469 \begin_inset Quotes eld
25470 \end_inset
25471
25472 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25473  you'll find my little bookshop at the corner of Church Street, and very
25474  happy to see you, I am sure.
25475  Maybe you collect yourself, sir.
25476  Here's 
25477 \noun on
25478 British
25479 \begin_inset space ~
25480 \end_inset
25481
25482 Birds
25483 \noun default
25484 , and 
25485 \noun on
25486 Catullus
25487 \noun default
25488 , and 
25489 \noun on
25490 The Holy War
25491 \noun default
25492
25493 \begin_inset space ~
25494 \end_inset
25495
25496 – a bargain, every one of them.
25497  With five volumes you could just fill that gap on that second shelf.
25498  It looks untidy, does it not, sir?
25499 \begin_inset Quotes erd
25500 \end_inset
25501
25502
25503 \end_layout
25504
25505 \end_inset
25506
25507
25508 \end_layout
25509
25510 \begin_layout Standard
25511 \begin_inset VSpace defskip
25512 \end_inset
25513
25514
25515 \end_layout
25516
25517 \begin_layout Standard
25518 The rule can be colored by redefining the command 
25519 \begin_inset Flex Code
25520 status collapsed
25521
25522 \begin_layout Plain Layout
25523
25524 \backslash
25525 columnseprulecolor
25526 \end_layout
25527
25528 \end_inset
25529
25530 .
25531  This is done by inserting the command
25532 \end_layout
25533
25534 \begin_layout LyX-Code
25535
25536 \backslash
25537 renewcommand{
25538 \backslash
25539 columnseprulecolor}{
25540 \backslash
25541 color{red}}
25542 \end_layout
25543
25544 \begin_layout Standard
25545 as \SpecialChar TeX
25546  Code before the multicolumn inset.
25547  Replace 
25548 \begin_inset Flex Code
25549 status collapsed
25550
25551 \begin_layout Plain Layout
25552 red
25553 \end_layout
25554
25555 \end_inset
25556
25557  in this command by a color of your choice.
25558  You can use all pre- and self-defined colors.
25559  See the 
25560 \emph on
25561 EmbeddedObjects
25562 \emph default
25563  manual, section 
25564 \emph on
25565 Colored
25566 \begin_inset space ~
25567 \end_inset
25568
25569 Tables
25570 \emph default
25571  for more information about pre- and self-defined colors.
25572  To go back to the default color insert the command
25573 \end_layout
25574
25575 \begin_layout LyX-Code
25576
25577 \backslash
25578 renewcommand{
25579 \backslash
25580 columnseprulecolor}{
25581 \backslash
25582 normalcolor}
25583 \end_layout
25584
25585 \begin_layout Standard
25586 Here is the example with a cyan rule and 1
25587 \begin_inset space \thinspace{}
25588 \end_inset
25589
25590 cm column separation:
25591 \end_layout
25592
25593 \begin_layout Standard
25594 \begin_inset ERT
25595 status open
25596
25597 \begin_layout Plain Layout
25598
25599
25600 \backslash
25601 setlength{
25602 \backslash
25603 columnsep}{1cm}
25604 \end_layout
25605
25606 \begin_layout Plain Layout
25607
25608
25609 \backslash
25610 renewcommand{
25611 \backslash
25612 columnseprulecolor}{
25613 \backslash
25614 color{cyan}}
25615 \end_layout
25616
25617 \end_inset
25618
25619
25620 \end_layout
25621
25622 \begin_layout Standard
25623 \begin_inset Flex Multiple Columns
25624 status open
25625
25626 \begin_layout Plain Layout
25627
25628 \size small
25629 \begin_inset Quotes eld
25630 \end_inset
25631
25632 You're surprised to see me, sir,
25633 \begin_inset Quotes erd
25634 \end_inset
25635
25636  said he, in a strange, croaking voice.
25637 \end_layout
25638
25639 \begin_layout Plain Layout
25640
25641 \size small
25642 I acknowledged that I was.
25643 \end_layout
25644
25645 \begin_layout Plain Layout
25646
25647 \size small
25648 \begin_inset Quotes eld
25649 \end_inset
25650
25651 Well, I've a conscience, sir, and when I chanced to see you go into this
25652  house, as I came hobbling after you, I thought to myself, I'll just step
25653  in and see that kind gentleman, and tell him that if I was a bit gruff
25654  in my manner there was not any harm meant, and that I am much obliged to
25655  him for picking up my books.
25656 \begin_inset Quotes erd
25657 \end_inset
25658
25659
25660 \end_layout
25661
25662 \begin_layout Plain Layout
25663
25664 \size small
25665 \begin_inset Quotes eld
25666 \end_inset
25667
25668 You make too much of a trifle,
25669 \begin_inset Quotes erd
25670 \end_inset
25671
25672  said I.
25673  
25674 \begin_inset Quotes eld
25675 \end_inset
25676
25677 May I ask how you knew who I was?
25678 \begin_inset Quotes erd
25679 \end_inset
25680
25681
25682 \end_layout
25683
25684 \begin_layout Plain Layout
25685
25686 \size small
25687 \begin_inset Quotes eld
25688 \end_inset
25689
25690 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25691  you'll find my little bookshop at the corner of Church Street, and very
25692  happy to see you, I am sure.
25693  Maybe you collect yourself, sir.
25694  Here's 
25695 \noun on
25696 British
25697 \begin_inset space ~
25698 \end_inset
25699
25700 Birds
25701 \noun default
25702 , and 
25703 \noun on
25704 Catullus
25705 \noun default
25706 , and 
25707 \noun on
25708 The Holy War
25709 \noun default
25710
25711 \begin_inset space ~
25712 \end_inset
25713
25714 – a bargain, every one of them.
25715  With five volumes you could just fill that gap on that second shelf.
25716  It looks untidy, does it not, sir?
25717 \begin_inset Quotes erd
25718 \end_inset
25719
25720
25721 \end_layout
25722
25723 \end_inset
25724
25725
25726 \end_layout
25727
25728 \begin_layout Standard
25729 \begin_inset ERT
25730 status collapsed
25731
25732 \begin_layout Plain Layout
25733
25734
25735 \backslash
25736 setlength{
25737 \backslash
25738 columnseprule}{0pt}
25739 \end_layout
25740
25741 \begin_layout Plain Layout
25742
25743
25744 \backslash
25745 renewcommand{
25746 \backslash
25747 columnseprulecolor}{
25748 \backslash
25749 normalcolor}
25750 \end_layout
25751
25752 \end_inset
25753
25754
25755 \begin_inset Note Note
25756 status collapsed
25757
25758 \begin_layout Plain Layout
25759 go back to the default
25760 \end_layout
25761
25762 \end_inset
25763
25764
25765 \end_layout
25766
25767 \begin_layout Section
25768 Non-standard Paragraph Shapes
25769 \end_layout
25770
25771 \begin_layout Standard
25772 \noindent
25773 \SpecialChar LaTeX
25774  as well as any other text processor uses by default rectangular paragraphs.
25775  For special cases like for example posters, invitation cards or poems you
25776  can modify the paragraph shape to one of your choice.
25777  This can be done by using the \SpecialChar LaTeX
25778 -package 
25779 \begin_inset Flex Code
25780 status collapsed
25781
25782 \begin_layout Plain Layout
25783 shapepar
25784 \end_layout
25785
25786 \end_inset
25787
25788  which is loaded by using in the document settings the module 
25789 \family sans
25790 Custom paragraph shapes
25791 \family default
25792 .
25793 \end_layout
25794
25795 \begin_layout Subsection
25796 Predefined shapes
25797 \end_layout
25798
25799 \begin_layout Standard
25800
25801 \series bold
25802 shapepar
25803 \series default
25804  provides the following shapes:
25805 \end_layout
25806
25807 \begin_layout Standard
25808 \begin_inset Tabular
25809 <lyxtabular version="3" rows="13" columns="3">
25810 <features booktabs="true" islongtable="true" longtabularalignment="center">
25811 <column alignment="left" valignment="middle" width="16col%">
25812 <column alignment="left" valignment="middle" width="40col%">
25813 <column alignment="left" valignment="middle" width="35col%">
25814 <row endhead="true">
25815 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25816 \begin_inset Text
25817
25818 \begin_layout Plain Layout
25819
25820 \series bold
25821 \size small
25822 Name
25823 \end_layout
25824
25825 \end_inset
25826 </cell>
25827 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25828 \begin_inset Text
25829
25830 \begin_layout Plain Layout
25831
25832 \series bold
25833 \size small
25834 Description
25835 \end_layout
25836
25837 \end_inset
25838 </cell>
25839 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25840 \begin_inset Text
25841
25842 \begin_layout Plain Layout
25843
25844 \series bold
25845 \size small
25846 Annotation
25847 \end_layout
25848
25849 \end_inset
25850 </cell>
25851 </row>
25852 <row interlinespace="default">
25853 <cell alignment="left" valignment="top" usebox="none">
25854 \begin_inset Text
25855
25856 \begin_layout Plain Layout
25857
25858 \size small
25859 CDlabel
25860 \end_layout
25861
25862 \end_inset
25863 </cell>
25864 <cell alignment="left" valignment="top" usebox="none">
25865 \begin_inset Text
25866
25867 \begin_layout Plain Layout
25868
25869 \size small
25870 Circle with circular hole (in the size of a CD/DVD)
25871 \end_layout
25872
25873 \end_inset
25874 </cell>
25875 <cell alignment="left" valignment="top" usebox="none">
25876 \begin_inset Text
25877
25878 \begin_layout Plain Layout
25879
25880 \size small
25881 Cannot be scaled, take care there is not too much text
25882 \end_layout
25883
25884 \end_inset
25885 </cell>
25886 </row>
25887 <row interlinespace="default">
25888 <cell alignment="left" valignment="top" usebox="none">
25889 \begin_inset Text
25890
25891 \begin_layout Plain Layout
25892
25893 \size small
25894 Circle
25895 \end_layout
25896
25897 \end_inset
25898 </cell>
25899 <cell alignment="left" valignment="top" usebox="none">
25900 \begin_inset Text
25901
25902 \begin_layout Plain Layout
25903
25904 \size small
25905 Circle
25906 \end_layout
25907
25908 \end_inset
25909 </cell>
25910 <cell alignment="left" valignment="top" usebox="none">
25911 \begin_inset Text
25912
25913 \begin_layout Plain Layout
25914
25915 \size small
25916 Fragile, calculation might fail
25917 \end_layout
25918
25919 \end_inset
25920 </cell>
25921 </row>
25922 <row interlinespace="default">
25923 <cell alignment="left" valignment="top" usebox="none">
25924 \begin_inset Text
25925
25926 \begin_layout Plain Layout
25927
25928 \size small
25929 Diamond
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 Rhomboid (symbolizing a 
25941 \begin_inset Quotes eld
25942 \end_inset
25943
25944 diamond
25945 \begin_inset Quotes erd
25946 \end_inset
25947
25948 )
25949 \end_layout
25950
25951 \end_inset
25952 </cell>
25953 <cell alignment="left" valignment="top" usebox="none">
25954 \begin_inset Text
25955
25956 \begin_layout Plain Layout
25957
25958 \size small
25959 -
25960 \end_layout
25961
25962 \end_inset
25963 </cell>
25964 </row>
25965 <row interlinespace="default">
25966 <cell alignment="left" valignment="top" usebox="none">
25967 \begin_inset Text
25968
25969 \begin_layout Plain Layout
25970
25971 \size small
25972 Heart
25973 \end_layout
25974
25975 \end_inset
25976 </cell>
25977 <cell alignment="left" valignment="top" usebox="none">
25978 \begin_inset Text
25979
25980 \begin_layout Plain Layout
25981
25982 \size small
25983 Heart-like shape
25984 \end_layout
25985
25986 \end_inset
25987 </cell>
25988 <cell alignment="left" valignment="top" usebox="none">
25989 \begin_inset Text
25990
25991 \begin_layout Plain Layout
25992
25993 \size small
25994 -
25995 \end_layout
25996
25997 \end_inset
25998 </cell>
25999 </row>
26000 <row interlinespace="default">
26001 <cell alignment="left" valignment="top" usebox="none">
26002 \begin_inset Text
26003
26004 \begin_layout Plain Layout
26005
26006 \size small
26007 Hexagon
26008 \end_layout
26009
26010 \end_inset
26011 </cell>
26012 <cell alignment="left" valignment="top" usebox="none">
26013 \begin_inset Text
26014
26015 \begin_layout Plain Layout
26016
26017 \size small
26018 Hexagon
26019 \end_layout
26020
26021 \end_inset
26022 </cell>
26023 <cell alignment="left" valignment="top" usebox="none">
26024 \begin_inset Text
26025
26026 \begin_layout Plain Layout
26027
26028 \size small
26029 -
26030 \end_layout
26031
26032 \end_inset
26033 </cell>
26034 </row>
26035 <row interlinespace="default">
26036 <cell alignment="left" valignment="top" usebox="none">
26037 \begin_inset Text
26038
26039 \begin_layout Plain Layout
26040
26041 \size small
26042 Nut
26043 \end_layout
26044
26045 \end_inset
26046 </cell>
26047 <cell alignment="left" valignment="top" usebox="none">
26048 \begin_inset Text
26049
26050 \begin_layout Plain Layout
26051
26052 \size small
26053 Nut for bolt (hexagon with circular hole)
26054 \end_layout
26055
26056 \end_inset
26057 </cell>
26058 <cell alignment="left" valignment="top" usebox="none">
26059 \begin_inset Text
26060
26061 \begin_layout Plain Layout
26062
26063 \size small
26064 -
26065 \end_layout
26066
26067 \end_inset
26068 </cell>
26069 </row>
26070 <row interlinespace="default">
26071 <cell alignment="left" valignment="top" usebox="none">
26072 \begin_inset Text
26073
26074 \begin_layout Plain Layout
26075
26076 \size small
26077 Square
26078 \end_layout
26079
26080 \end_inset
26081 </cell>
26082 <cell alignment="left" valignment="top" usebox="none">
26083 \begin_inset Text
26084
26085 \begin_layout Plain Layout
26086
26087 \size small
26088 Square
26089 \end_layout
26090
26091 \end_inset
26092 </cell>
26093 <cell alignment="left" valignment="top" usebox="none">
26094 \begin_inset Text
26095
26096 \begin_layout Plain Layout
26097
26098 \size small
26099 -
26100 \end_layout
26101
26102 \end_inset
26103 </cell>
26104 </row>
26105 <row interlinespace="default">
26106 <cell alignment="left" valignment="top" usebox="none">
26107 \begin_inset Text
26108
26109 \begin_layout Plain Layout
26110
26111 \size small
26112 Star
26113 \end_layout
26114
26115 \end_inset
26116 </cell>
26117 <cell alignment="left" valignment="top" usebox="none">
26118 \begin_inset Text
26119
26120 \begin_layout Plain Layout
26121
26122 \size small
26123 Five-point star
26124 \end_layout
26125
26126 \end_inset
26127 </cell>
26128 <cell alignment="left" valignment="top" usebox="none">
26129 \begin_inset Text
26130
26131 \begin_layout Plain Layout
26132
26133 \size small
26134 -
26135 \end_layout
26136
26137 \end_inset
26138 </cell>
26139 </row>
26140 <row interlinespace="default">
26141 <cell alignment="left" valignment="top" usebox="none">
26142 \begin_inset Text
26143
26144 \begin_layout Plain Layout
26145
26146 \size small
26147 Candle
26148 \end_layout
26149
26150 \end_inset
26151 </cell>
26152 <cell alignment="left" valignment="top" usebox="none">
26153 \begin_inset Text
26154
26155 \begin_layout Plain Layout
26156
26157 \size small
26158 Burning candle
26159 \end_layout
26160
26161 \end_inset
26162 </cell>
26163 <cell alignment="left" valignment="top" usebox="none">
26164 \begin_inset Text
26165
26166 \begin_layout Plain Layout
26167
26168 \size small
26169 -
26170 \end_layout
26171
26172 \end_inset
26173 </cell>
26174 </row>
26175 <row interlinespace="default">
26176 <cell alignment="left" valignment="top" usebox="none">
26177 \begin_inset Text
26178
26179 \begin_layout Plain Layout
26180
26181 \size small
26182 Drop down/up
26183 \end_layout
26184
26185 \end_inset
26186 </cell>
26187 <cell alignment="left" valignment="top" usebox="none">
26188 \begin_inset Text
26189
26190 \begin_layout Plain Layout
26191
26192 \size small
26193 Normal/reversed rain drop
26194 \end_layout
26195
26196 \end_inset
26197 </cell>
26198 <cell alignment="left" valignment="top" usebox="none">
26199 \begin_inset Text
26200
26201 \begin_layout Plain Layout
26202
26203 \size small
26204 Fragile, calculation might fail
26205 \end_layout
26206
26207 \end_inset
26208 </cell>
26209 </row>
26210 <row interlinespace="default">
26211 <cell alignment="left" valignment="top" usebox="none">
26212 \begin_inset Text
26213
26214 \begin_layout Plain Layout
26215
26216 \size small
26217 \SpecialChar TeX
26218
26219 \end_layout
26220
26221 \end_inset
26222 </cell>
26223 <cell alignment="left" valignment="top" usebox="none">
26224 \begin_inset Text
26225
26226 \begin_layout Plain Layout
26227
26228 \size small
26229 The \SpecialChar TeX
26230  logo
26231 \end_layout
26232
26233 \end_inset
26234 </cell>
26235 <cell alignment="left" valignment="top" usebox="none">
26236 \begin_inset Text
26237
26238 \begin_layout Plain Layout
26239
26240 \size small
26241 -
26242 \end_layout
26243
26244 \end_inset
26245 </cell>
26246 </row>
26247 <row interlinespace="default">
26248 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
26249 \begin_inset Text
26250
26251 \begin_layout Plain Layout
26252
26253 \size small
26254 Triangle up/down/
26255 \begin_inset Newline newline
26256 \end_inset
26257
26258 left/right
26259 \end_layout
26260
26261 \end_inset
26262 </cell>
26263 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
26264 \begin_inset Text
26265
26266 \begin_layout Plain Layout
26267
26268 \size small
26269 Triangles in different orientations
26270 \end_layout
26271
26272 \end_inset
26273 </cell>
26274 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
26275 \begin_inset Text
26276
26277 \begin_layout Plain Layout
26278
26279 \size small
26280 -
26281 \end_layout
26282
26283 \end_inset
26284 </cell>
26285 </row>
26286 </lyxtabular>
26287
26288 \end_inset
26289
26290
26291 \end_layout
26292
26293 \begin_layout Standard
26294 To use a shape for your paragraph, simply select it in \SpecialChar LyX
26295 's pull-down box
26296  for environments in the toolbar.
26297 \end_layout
26298
26299 \begin_layout Standard
26300 \begin_inset Newpage newpage
26301 \end_inset
26302
26303
26304 \end_layout
26305
26306 \begin_layout Standard
26307 Here is an example paragraph in the shape of a nut:
26308 \end_layout
26309
26310 \begin_layout Standard
26311 \begin_inset VSpace bigskip
26312 \end_inset
26313
26314
26315 \end_layout
26316
26317 \begin_layout Nut
26318
26319 \lang latin
26320 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26321  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26322  voluptua.
26323  At vero eos et accusam et justo duo dolores et ea rebum.
26324  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26325  sit amet.
26326  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26327  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26328  voluptua.
26329 \end_layout
26330
26331 \begin_layout Standard
26332 \begin_inset VSpace bigskip
26333 \end_inset
26334
26335
26336 \end_layout
26337
26338 \begin_layout Standard
26339 \begin_inset Note Greyedout
26340 status open
26341
26342 \begin_layout Plain Layout
26343
26344 \series bold
26345 Note
26346 \series default
26347
26348 \family sans
26349 shapepar
26350 \family default
26351  paragraphs cannot run over a page break.
26352 \end_layout
26353
26354 \end_inset
26355
26356
26357 \end_layout
26358
26359 \begin_layout Standard
26360 \begin_inset VSpace bigskip
26361 \end_inset
26362
26363
26364 \end_layout
26365
26366 \begin_layout Standard
26367 The package 
26368 \begin_inset Flex Code
26369 status collapsed
26370
26371 \begin_layout Plain Layout
26372 shapepar
26373 \end_layout
26374
26375 \end_inset
26376
26377  takes care that the shape will always be preserved, no matter how much
26378  text is in the paragraph.
26379  Therefore the paragraph size changes with the amount of contained text.
26380  This can lead to paragraph sizes exceeding the page margins.
26381  To demonstrate the size scaling, here is the same example paragraph but
26382  with twice as much text:
26383 \end_layout
26384
26385 \begin_layout Standard
26386 \begin_inset Newpage newpage
26387 \end_inset
26388
26389
26390 \end_layout
26391
26392 \begin_layout Nut
26393
26394 \lang latin
26395 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26396  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26397  voluptua.
26398  At vero eos et accusam et justo duo dolores et ea rebum.
26399  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26400  sit amet.
26401  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26402  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26403  voluptua.
26404  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26405  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26406  voluptua.
26407  At vero eos et accusam et justo duo dolores et ea rebum.
26408  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26409  sit amet.
26410  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26411  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26412  voluptua.
26413 \end_layout
26414
26415 \begin_layout Standard
26416 \begin_inset VSpace bigskip
26417 \end_inset
26418
26419
26420 \end_layout
26421
26422 \begin_layout Standard
26423 An exception is the shape 
26424 \family sans
26425 CDlabel
26426 \family default
26427 .
26428  It cannot be scaled because it must fit the size of a CD/DVD.
26429  Therefore the amount of text that fits into the shape is limited.
26430 \begin_inset Newline newline
26431 \end_inset
26432
26433 The 
26434 \family sans
26435 drop
26436 \family default
26437  shapes and the 
26438 \family sans
26439 circle
26440 \family default
26441  shape are fragile, meaning that the calculation of their size can fail,
26442  depending on the amount of text.
26443  You will then get the \SpecialChar LaTeX
26444  error 
26445 \begin_inset Quotes eld
26446 \end_inset
26447
26448 Arithmetic overflow
26449 \begin_inset Quotes erd
26450 \end_inset
26451
26452 .
26453  In this case one can try to remove or add some text; if nothing works one
26454  has to use another shape.
26455 \end_layout
26456
26457 \begin_layout Standard
26458 \begin_inset VSpace bigskip
26459 \end_inset
26460
26461
26462 \end_layout
26463
26464 \begin_layout Standard
26465 For shapes with tips you will maybe see that \SpecialChar LaTeX
26466 's hyphenation routine fails
26467  for text in the tips.
26468  Therefore it is often necessary to add hyphenation points 
26469 \family sans
26470 (
26471 \begin_inset Info
26472 type  "shortcut"
26473 arg   "specialchar-insert hyphenation"
26474 \end_inset
26475
26476
26477 \family default
26478 ) to the corresponding text parts.
26479 \end_layout
26480
26481 \begin_layout Standard
26482 \begin_inset VSpace bigskip
26483 \end_inset
26484
26485
26486 \end_layout
26487
26488 \begin_layout Standard
26489 Shapepar paragraphs are either always centered or placed on the page so
26490  that their left border touches the left page margin.
26491  You can therefore not use the paragraph dialog to align such paragraphs.
26492  A solution is to put the paragraph into a minipage or parbox and align
26493  the box.
26494  The problem is hereby to find the right width for the box.
26495  Because if it is too wide and you center the box, the paragraph is not
26496  centered too because it sticks at the left side of the box.
26497  So you might have to play a bit with the width until it fits.
26498  Here are two heart-shaped paragraphs, the first one is not aligned, the
26499  second one is right-aligned:
26500 \end_layout
26501
26502 \begin_layout Standard
26503 \begin_inset Newpage newpage
26504 \end_inset
26505
26506
26507 \end_layout
26508
26509 \begin_layout Heart
26510 \noindent
26511
26512 \lang latin
26513 Lo\SpecialChar softhyphen
26514 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26515  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26516  voluptua.
26517  At vero eos et accusam et justo duo dolores et ea rebum.
26518  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26519  sit amet.
26520 \end_layout
26521
26522 \begin_layout Standard
26523 \begin_inset VSpace bigskip
26524 \end_inset
26525
26526
26527 \end_layout
26528
26529 \begin_layout Standard
26530 \noindent
26531 \align right
26532 \begin_inset Box Frameless
26533 position "t"
26534 hor_pos "c"
26535 has_inner_box 1
26536 inner_pos "t"
26537 use_parbox 1
26538 use_makebox 0
26539 width "42col%"
26540 special "none"
26541 height "1in"
26542 height_special "totalheight"
26543 thickness "0.4pt"
26544 separation "3pt"
26545 shadowsize "4pt"
26546 framecolor "black"
26547 backgroundcolor "none"
26548 status open
26549
26550 \begin_layout Heart
26551 \noindent
26552
26553 \lang latin
26554 Lo\SpecialChar softhyphen
26555 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26556  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26557  voluptua.
26558  At vero eos et accusam et justo duo dolores et ea rebum.
26559  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26560  sit amet.
26561 \end_layout
26562
26563 \end_inset
26564
26565
26566 \end_layout
26567
26568 \begin_layout Subsection
26569 Custom shapes
26570 \end_layout
26571
26572 \begin_layout Standard
26573 You can define any shape you want.
26574  Doing this manually is a lot of work because every coordinate must be specified.
26575  But there is a way to let the computer calculate the coordinates:
26576 \end_layout
26577
26578 \begin_layout Enumerate
26579 Install the program 
26580 \begin_inset CommandInset href
26581 LatexCommand href
26582 name "Jpgfdraw"
26583 target "https://www.ctan.org/tex-archive/graphics/jpgfdraw"
26584 literal "false"
26585
26586 \end_inset
26587
26588 .
26589 \end_layout
26590
26591 \begin_layout Enumerate
26592 In 
26593 \family sans
26594 Jpgfdraw
26595 \family default
26596  go to the menu 
26597 \family sans
26598 TeX/LaTeX\SpecialChar menuseparator
26599 Settings\SpecialChar menuseparator
26600 Set Normal Size
26601 \family default
26602  and select the font size you are using in your document.
26603  For example this document uses the size 12
26604 \begin_inset space \thinspace{}
26605 \end_inset
26606
26607 pt.
26608 \end_layout
26609
26610 \begin_layout Enumerate
26611 Draw a shape.
26612 \end_layout
26613
26614 \begin_layout Enumerate
26615 Use the menu 
26616 \family sans
26617 TeX/LaTeX\SpecialChar menuseparator
26618 Shapepar
26619 \family default
26620  to export the shape to coordinates.
26621  In the appearing dialog use either the outline of your shape for the coordinate
26622 s or the path itself.
26623 \begin_inset Foot
26624 status collapsed
26625
26626 \begin_layout Plain Layout
26627 For more information see 
26628 \begin_inset CommandInset href
26629 LatexCommand href
26630 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
26631 literal "false"
26632
26633 \end_inset
26634
26635
26636 \end_layout
26637
26638 \end_inset
26639
26640
26641 \end_layout
26642
26643 \begin_layout Standard
26644 The coordinates are written into a \SpecialChar TeX
26645  file.
26646  To use it for your \SpecialChar LyX
26647  document
26648 \end_layout
26649
26650 \begin_layout Enumerate
26651 Place the cursor before the first character of your paragraph (or into a
26652  new empty one).
26653 \end_layout
26654
26655 \begin_layout Enumerate
26656 Open in \SpecialChar LyX
26657  the menu 
26658 \family sans
26659 Insert\SpecialChar menuseparator
26660 File\SpecialChar menuseparator
26661 Child
26662 \begin_inset space ~
26663 \end_inset
26664
26665 Document
26666 \family default
26667 , select the file and use 
26668 \family sans
26669 Input
26670 \family default
26671  as 
26672 \family sans
26673 Include Type.
26674 \end_layout
26675
26676 \begin_layout Standard
26677 \begin_inset VSpace defskip
26678 \end_inset
26679
26680
26681 \end_layout
26682
26683 \begin_layout Standard
26684 \begin_inset Note Greyedout
26685 status open
26686
26687 \begin_layout Plain Layout
26688
26689 \series bold
26690 Note
26691 \series default
26692 : The changed shape only applies to the current paragraph; everything is
26693  reset to normal for the next paragraph.
26694  Therefore the shape definition file must be input into every paragraph
26695  with the desired shape.
26696 \end_layout
26697
26698 \end_inset
26699
26700
26701 \end_layout
26702
26703 \begin_layout Standard
26704 \begin_inset VSpace bigskip
26705 \end_inset
26706
26707
26708 \end_layout
26709
26710 \begin_layout Standard
26711 Here is an example:
26712 \end_layout
26713
26714 \begin_layout Standard
26715 \begin_inset VSpace bigskip
26716 \end_inset
26717
26718
26719 \end_layout
26720
26721 \begin_layout Standard
26722 \begin_inset CommandInset include
26723 LatexCommand input
26724 filename "SpecialParagraphShape.tex"
26725 literal "true"
26726
26727 \end_inset
26728
26729
26730 \lang latin
26731 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26732  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26733  voluptua.
26734  At vero eos et accusam et justo duo dolores et ea rebum.
26735  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26736  sit amet.
26737  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26738  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26739  voluptua.
26740 \end_layout
26741
26742 \begin_layout Standard
26743 \begin_inset VSpace bigskip
26744 \end_inset
26745
26746
26747 \end_layout
26748
26749 \begin_layout Standard
26750
26751 \series bold
26752 A tip:
26753 \series default
26754  to draw complexer shapes in 
26755 \family sans
26756 Jpgfdraw
26757 \family default
26758  you can draw the shape in a program of your choice and import the resulting
26759  image to 
26760 \family sans
26761 Jpgfdraw
26762 \family default
26763 .
26764  Then you only need to draw a line or spline along the outline of the image.
26765 \end_layout
26766
26767 \begin_layout Standard
26768 \begin_inset VSpace bigskip
26769 \end_inset
26770
26771
26772 \end_layout
26773
26774 \begin_layout Standard
26775 The module 
26776 \family sans
26777 Custom paragraph shapes
26778 \family default
26779  also provides the two commands 
26780 \family sans
26781 shapepar
26782 \family default
26783  and 
26784 \family sans
26785 Shapepar
26786 \family default
26787  which can be used to define custom shapes coordinate by coordinate.
26788 \begin_inset Foot
26789 status collapsed
26790
26791 \begin_layout Plain Layout
26792 These commands are internally used for all shapes described here.
26793 \end_layout
26794
26795 \end_inset
26796
26797  For information how these styles are used and about further customization
26798  possibilities, have a look at the 
26799 \begin_inset CommandInset href
26800 LatexCommand href
26801 name "documentation"
26802 target "https://www.ctan.org/tex-archive/macros/latex/contrib/shapepar/shapepar.pdf"
26803 literal "false"
26804
26805 \end_inset
26806
26807  of the package 
26808 \begin_inset Flex Code
26809 status collapsed
26810
26811 \begin_layout Plain Layout
26812 shapepar
26813 \end_layout
26814
26815 \end_inset
26816
26817 .
26818 \end_layout
26819
26820 \end_body
26821 \end_document