]> git.lyx.org Git - lyx.git/blob - lib/doc/Additional.lyx
Update Russian localization
[lyx.git] / lib / doc / Additional.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 600
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 no
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 \postpone_fragile_content false
126 \html_math_output 0
127 \html_css_as_file 0
128 \html_be_strict true
129 \docbook_table_output 0
130 \author -712698321 "Jürgen Spitzmüller"
131 \author 5863208 "ab"
132 \author 244031559 "Yuriy"
133 \author 1119979965 "Joel A. Kulesza"
134 \end_header
135
136 \begin_body
137
138 \begin_layout Title
139 Additional \SpecialChar LyX
140  Features
141 \end_layout
142
143 \begin_layout Subtitle
144 Version 2.3.x
145 \end_layout
146
147 \begin_layout Author
148 by the \SpecialChar LyX
149  Team
150 \begin_inset Foot
151 status collapsed
152
153 \begin_layout Plain Layout
154 \noindent
155 Principal maintainer of this file is
156 \noun on
157  Richard Kimberly Heck
158 \noun default
159 .
160  If you have comments or error corrections, please send them to the \SpecialChar LyX
161  Documentati
162 on mailing list, 
163 \begin_inset Flex Code
164 status collapsed
165
166 \begin_layout Plain Layout
167 <lyx-docs@lists.lyx.org>
168 \end_layout
169
170 \end_inset
171
172 .
173 \end_layout
174
175 \end_inset
176
177
178 \end_layout
179
180 \begin_layout Standard
181 \begin_inset CommandInset toc
182 LatexCommand tableofcontents
183
184 \end_inset
185
186
187 \end_layout
188
189 \begin_layout Chapter
190 Introduction
191 \end_layout
192
193 \begin_layout Standard
194 This manual is essentially Part II of the 
195 \emph on
196 User's Guide\SpecialChar endofsentence
197
198 \emph default
199  The reason for separating the two documents is simple: the 
200 \emph on
201 User's Guide
202 \emph default
203  is already quite lengthy, and it contains information on all of the basic
204  features one needs to know in order to prepare most documents.
205  However, the \SpecialChar LyX
206  Team has worked to make \SpecialChar LyX
207  extensible through various configuration
208  files and external packages.
209  That means that if you want to support the Fizzwizzle \SpecialChar LaTeX
210  package, you can
211  create a layout file (or module) for it without having to alter \SpecialChar LyX
212  itself.
213  We've already had contributions of several new features this way, and some
214  of them are documented here.
215  There are also some more `advanced' features, such as how to control the
216  presentation of bibliographies and how to work with multi-part documents,
217  that are not covered in the 
218 \emph on
219 User's Guide
220 \emph default
221  and are discussed here.
222 \end_layout
223
224 \begin_layout Standard
225 This manual also documents some special features, like fax support
226 \change_deleted 244031559 1603802929
227 ,
228 \change_inserted 244031559 1603802931
229  and
230 \change_unchanged
231  version control
232 \change_deleted 244031559 1603802954
233 , and SGML support
234 \change_unchanged
235 , which require additional software to work properly.
236  There is also a chapter on \SpecialChar LyX
237 's support for HTML.
238  And lastly, there's a chapter of \SpecialChar LaTeX
239  tools and tips, things you can use to
240  spruce up your documents by directly using the powerful features of \SpecialChar LaTeX
241 .
242  After all, \SpecialChar LyX
243  
244 \emph on
245 is
246 \emph default
247  only WYSIWYM and will only ever interface to some, not all, \SpecialChar LaTeX
248  features.
249 \end_layout
250
251 \begin_layout Standard
252 If you haven't read the 
253 \emph on
254 Introduction
255 \emph default
256  yet, you are definitely in the wrong manual.
257  The 
258 \emph on
259 Introduction
260 \emph default
261  is the first place to go, since it describes the notation and format of
262  all of the manuals.
263  You should also be thoroughly familiar with the 
264 \emph on
265 User's Guide
266 \emph default
267  and all of the basic features of \SpecialChar LyX
268  before attempting to read this one.
269 \end_layout
270
271 \begin_layout Standard
272 Since many of the topics in this manual depend heavily on \SpecialChar LyX
273 's interaction
274  with \SpecialChar LaTeX
275 , this first chapter covers the inner workings of \SpecialChar LyX
276  and how to direct
277  \SpecialChar LyX
278  to generate exactly the \SpecialChar LaTeX
279  code you want.
280  It is obviously for more seasoned \SpecialChar LyX
281  users.
282 \end_layout
283
284 \begin_layout Chapter
285 \SpecialChar LyX
286  and \SpecialChar LaTeX
287
288 \end_layout
289
290 \begin_layout Section
291 How \SpecialChar LyX
292  Uses \SpecialChar LaTeX
293
294 \end_layout
295
296 \begin_layout Standard
297 This chapter is for both \SpecialChar TeX
298 -nicians and the \SpecialChar LaTeX
299 -curious.
300  In it, we'll explain how \SpecialChar LyX
301  and \SpecialChar LaTeX
302  work together to produce printable output.
303  This is the only place in any of the manuals where we assume you know something
304  about \SpecialChar LaTeX
305 .
306 \end_layout
307
308 \begin_layout Standard
309 At one time, \SpecialChar LyX
310  was called a 
311 \begin_inset Quotes eld
312 \end_inset
313
314 WYSIWYM frontend to \SpecialChar LaTeX
315 ,
316 \begin_inset Quotes erd
317 \end_inset
318
319  but that's no longer true.
320  There are frontends to \SpecialChar LaTeX
321  out there.
322 \begin_inset Foot
323 status collapsed
324
325 \begin_layout Plain Layout
326 Some familar ones are \SpecialChar TeX
327 maker and kile, on Linux, and \SpecialChar TeX
328 shop, OSX.
329  There are also the \SpecialChar LaTeX
330  modes for vi and emacs, of course.
331 \end_layout
332
333 \end_inset
334
335  These are basically text editors with the ability to run \SpecialChar LaTeX
336  and mark any
337  errors in the file you're editing.
338  Although \SpecialChar LyX
339  
340 \emph on
341 is
342 \emph default
343  an editor, and it 
344 \emph on
345 does
346 \emph default
347  run \SpecialChar LaTeX
348 , and it also indicates errors in the file, it also does much, much
349  more.
350  For one thing, you don't need to know \SpecialChar LaTeX
351  to use \SpecialChar LyX
352  effectively.
353  And \SpecialChar LyX
354  has added its own extensions to \SpecialChar LaTeX
355 .
356  Try the following sometime: select 
357 \begin_inset Flex Noun
358 status collapsed
359
360 \begin_layout Plain Layout
361 Export\SpecialChar menuseparator
362 LaTeX
363 \end_layout
364
365 \end_inset
366
367  from the 
368 \begin_inset Flex Noun
369 status collapsed
370
371 \begin_layout Plain Layout
372 File
373 \end_layout
374
375 \end_inset
376
377  menu (or 
378 \begin_inset Flex Noun
379 status collapsed
380
381 \begin_layout Plain Layout
382 View\SpecialChar menuseparator
383 Source
384 \begin_inset space ~
385 \end_inset
386
387 Pane
388 \end_layout
389
390 \end_inset
391
392 ), then look at the preamble of the resulting 
393 \begin_inset Flex Code
394 status collapsed
395
396 \begin_layout Plain Layout
397 .tex
398 \end_layout
399
400 \end_inset
401
402  file.
403  You'll notice a variety of new macros defined specifically by \SpecialChar LyX
404 .
405  These macros are defined automatically, according to the features you use
406  in the document.
407 \end_layout
408
409 \begin_layout Standard
410 There are several commands that automatically invoke \SpecialChar LaTeX
411 .
412  They are:
413 \end_layout
414
415 \begin_layout Itemize
416 \begin_inset Flex Noun
417 status collapsed
418
419 \begin_layout Plain Layout
420 Document\SpecialChar menuseparator
421 View
422 \end_layout
423
424 \end_inset
425
426
427 \end_layout
428
429 \begin_layout Itemize
430 \begin_inset Flex Noun
431 status collapsed
432
433 \begin_layout Plain Layout
434 Document\SpecialChar menuseparator
435 Update
436 \end_layout
437
438 \end_inset
439
440
441 \end_layout
442
443 \begin_layout Standard
444 They will only invoke \SpecialChar LaTeX
445  if the file has changed since the last time \SpecialChar LaTeX
446  was
447  run.
448  
449 \end_layout
450
451 \begin_layout Standard
452 When \SpecialChar LyX
453  runs \SpecialChar LaTeX
454  on the file you're editing, it performs these steps:
455 \end_layout
456
457 \begin_layout Enumerate
458 Convert the document to \SpecialChar LaTeX
459  and save to a file with the extension 
460 \begin_inset Flex Code
461 status collapsed
462
463 \begin_layout Plain Layout
464 .tex
465 \end_layout
466
467 \end_inset
468
469  in place of 
470 \begin_inset Flex Code
471 status collapsed
472
473 \begin_layout Plain Layout
474 .lyx
475 \end_layout
476
477 \end_inset
478
479 .
480 \end_layout
481
482 \begin_layout Enumerate
483 Run \SpecialChar LaTeX
484  on the 
485 \begin_inset Flex Code
486 status collapsed
487
488 \begin_layout Plain Layout
489 .tex
490 \end_layout
491
492 \end_inset
493
494  file (maybe several times), and run any other commands (such as 
495 \begin_inset Flex Code
496 status collapsed
497
498 \begin_layout Plain Layout
499 bibtex
500 \end_layout
501
502 \end_inset
503
504  or 
505 \begin_inset Flex Code
506 status collapsed
507
508 \begin_layout Plain Layout
509 makeindex
510 \end_layout
511
512 \end_inset
513
514 ) needed to compile the \SpecialChar LaTeX
515  file.
516 \end_layout
517
518 \begin_layout Enumerate
519 If there are any errors, show the error log.
520 \end_layout
521
522 \begin_layout Standard
523 If you have run \SpecialChar LaTeX
524  using 
525 \begin_inset Flex Noun
526 status collapsed
527
528 \begin_layout Plain Layout
529 View\SpecialChar menuseparator
530 DVI
531 \end_layout
532
533 \end_inset
534
535 , \SpecialChar LyX
536  then runs a DVI viewer to display the DVI-file.
537  If you have used 
538 \begin_inset Flex Noun
539 status collapsed
540
541 \begin_layout Plain Layout
542 View\SpecialChar menuseparator
543 PostScript
544 \end_layout
545
546 \end_inset
547
548 , \SpecialChar LyX
549  performs further steps:
550 \end_layout
551
552 \begin_layout Enumerate
553 Run 
554 \begin_inset Flex Code
555 status collapsed
556
557 \begin_layout Plain Layout
558 dvips
559 \end_layout
560
561 \end_inset
562
563  to convert the DVI file to PostScript.
564 \end_layout
565
566 \begin_layout Enumerate
567 Run a PostScript viewer, such as 
568 \begin_inset Flex Code
569 status collapsed
570
571 \begin_layout Plain Layout
572 ghostview
573 \end_layout
574
575 \end_inset
576
577 , to display the PostScript file.
578 \end_layout
579
580 \begin_layout Standard
581 \SpecialChar LyX
582  does similar things when viewing, or exporting, other formats.
583 \end_layout
584
585 \begin_layout Section
586 Translating \SpecialChar LaTeX
587  files into \SpecialChar LyX
588
589 \end_layout
590
591 \begin_layout Standard
592 You can import a \SpecialChar LaTeX
593  file into \SpecialChar LyX
594  by using the 
595 \begin_inset Flex Noun
596 status collapsed
597
598 \begin_layout Plain Layout
599 File\SpecialChar menuseparator
600 Import\SpecialChar menuseparator
601 LaTeX
602 \end_layout
603
604 \end_inset
605
606  command in \SpecialChar LyX
607 .
608  This will call a program named 
609 \begin_inset Flex Code
610 status collapsed
611
612 \begin_layout Plain Layout
613 tex2lyx
614 \end_layout
615
616 \end_inset
617
618  which will create a file 
619 \begin_inset Flex Code
620 status collapsed
621
622 \begin_layout Plain Layout
623 foo.lyx
624 \end_layout
625
626 \end_inset
627
628  from the file 
629 \begin_inset Flex Code
630 status collapsed
631
632 \begin_layout Plain Layout
633 foo.tex
634 \end_layout
635
636 \end_inset
637
638 .
639  \SpecialChar LyX
640  will then open that file.
641 \begin_inset Foot
642 status collapsed
643
644 \begin_layout Plain Layout
645 \begin_inset Flex Code
646 status collapsed
647
648 \begin_layout Plain Layout
649 tex2lyx
650 \end_layout
651
652 \end_inset
653
654  can also be run from the command line, of course.
655 \end_layout
656
657 \end_inset
658
659
660 \end_layout
661
662 \begin_layout Standard
663 \begin_inset Flex Code
664 status collapsed
665
666 \begin_layout Plain Layout
667 tex2lyx
668 \end_layout
669
670 \end_inset
671
672  will translate most legal \SpecialChar LaTeX
673 , but not everything.
674  It will put things it doesn't understand into \SpecialChar TeX
675  code, so after translating
676  a file with 
677 \begin_inset Flex Code
678 status collapsed
679
680 \begin_layout Plain Layout
681 tex2lyx
682 \end_layout
683
684 \end_inset
685
686 , you can look for \SpecialChar TeX
687  code and hand-edit it until it looks right.
688 \end_layout
689
690 \begin_layout Standard
691 If you don't know what \SpecialChar TeX
692  code is, read the next section.
693 \end_layout
694
695 \begin_layout Section
696 \begin_inset CommandInset label
697 LatexCommand label
698 name "sec:Inserting-TeX-Code"
699
700 \end_inset
701
702 Inserting \SpecialChar TeX
703  Code into \SpecialChar LyX
704  Documents 
705 \end_layout
706
707 \begin_layout Standard
708 Anything you can do in \SpecialChar LaTeX
709  you can do in \SpecialChar LyX
710 , for a very simple reason: You can
711  always insert \SpecialChar TeX
712  code into any \SpecialChar LyX
713  document.
714  \SpecialChar LyX
715  cannot, and will never be able to, display every possible \SpecialChar LaTeX
716  construct.
717  If ever you need to insert \SpecialChar LaTeX
718  commands into your \SpecialChar LyX
719  document, you can use the
720  
721 \begin_inset Flex Code
722 status collapsed
723
724 \begin_layout Plain Layout
725 \SpecialChar TeX
726  Code
727 \end_layout
728
729 \end_inset
730
731  box, which you can insert into your document with 
732 \begin_inset Flex Noun
733 status collapsed
734
735 \begin_layout Plain Layout
736 Insert\SpecialChar menuseparator
737
738 \family sans
739 TeX
740 \family default
741  Code
742 \end_layout
743
744 \end_inset
745
746  or the keyboard shortcut 
747 \begin_inset Info
748 type  "shortcut"
749 arg   "ert-insert"
750 \end_inset
751
752 .
753 \end_layout
754
755 \begin_layout Standard
756 Here's an example of inserting \SpecialChar LaTeX
757  commands in a \SpecialChar LyX
758  document.
759  The code looks like this:
760 \end_layout
761
762 \begin_layout LyX-Code
763
764 \backslash
765 begin{tabular}{ll}
766 \begin_inset Newline newline
767 \end_inset
768
769
770 \backslash
771 begin{minipage}{5cm}
772 \begin_inset Newline newline
773 \end_inset
774
775 This is an example of a minipage environment.
776  You 
777 \begin_inset Newline newline
778 \end_inset
779
780 can put nearly everything in it, even (non-floating) 
781 \begin_inset Newline newline
782 \end_inset
783
784 figures and tables.
785  
786 \begin_inset Newline newline
787 \end_inset
788
789
790 \backslash
791 end{minipage}
792 \begin_inset Newline newline
793 \end_inset
794
795 &
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
806 \backslash
807 begin{verbatim}
808 \begin_inset Newline newline
809 \end_inset
810
811
812 \backslash
813 begin{minipage}{5cm}
814 \begin_inset Newline newline
815 \end_inset
816
817 This ...
818  
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{verbatim}
831 \begin_inset Newline newline
832 \end_inset
833
834
835 \backslash
836 end{minipage}
837 \begin_inset Newline newline
838 \end_inset
839
840
841 \backslash
842 end{tabular}
843 \end_layout
844
845 \begin_layout LyX-Code
846
847 \end_layout
848
849 \begin_layout Standard
850 The 
851 \begin_inset Flex Code
852 status collapsed
853
854 \begin_layout Plain Layout
855 \SpecialChar TeX
856  Code
857 \end_layout
858
859 \end_inset
860
861  box containing this text is directly after this paragraph.
862  Those of you reading the manual in \SpecialChar LyX
863  will only see the \SpecialChar TeX
864  code inset.
865  Those reading a printed version of the manuals will see the actual results:
866 \begin_inset VSpace bigskip
867 \end_inset
868
869
870 \end_layout
871
872 \begin_layout Standard
873 \begin_inset ERT
874 status open
875
876 \begin_layout Plain Layout
877
878
879 \backslash
880 begin{tabular}{ll}
881 \end_layout
882
883 \begin_layout Plain Layout
884
885
886 \backslash
887 begin{minipage}{5cm}
888 \end_layout
889
890 \begin_layout Plain Layout
891
892 This is an example of a minipage environment.
893  You can put nearly everything in it, even (non-floating) figures and tables.
894  
895 \end_layout
896
897 \begin_layout Plain Layout
898
899
900 \backslash
901 end{minipage}
902 \end_layout
903
904 \begin_layout Plain Layout
905
906 &
907 \end_layout
908
909 \begin_layout Plain Layout
910
911
912 \backslash
913 begin{minipage}{5cm}
914 \end_layout
915
916 \begin_layout Plain Layout
917
918
919 \backslash
920 begin{verbatim}
921 \end_layout
922
923 \begin_layout Plain Layout
924
925
926 \backslash
927 begin{minipage}{5cm}
928 \end_layout
929
930 \begin_layout Plain Layout
931
932 This ...
933  
934 \end_layout
935
936 \begin_layout Plain Layout
937
938
939 \backslash
940 end{minipage}
941 \end_layout
942
943 \begin_layout Plain Layout
944
945
946 \backslash
947 end{verbatim}
948 \end_layout
949
950 \begin_layout Plain Layout
951
952
953 \backslash
954 end{minipage}
955 \end_layout
956
957 \begin_layout Plain Layout
958
959
960 \backslash
961 end{tabular}
962 \end_layout
963
964 \end_inset
965
966
967 \begin_inset VSpace bigskip
968 \end_inset
969
970
971 \end_layout
972
973 \begin_layout Standard
974 In addition to using \SpecialChar TeX
975  code, you can also create a separate file containing
976  some complex \SpecialChar LaTeX
977  structure and then use 
978 \begin_inset Flex Noun
979 status collapsed
980
981 \begin_layout Plain Layout
982 Insert\SpecialChar menuseparator
983 Child
984 \begin_inset space ~
985 \end_inset
986
987 Document
988 \end_layout
989
990 \end_inset
991
992  to include your file (you should select the type 
993 \begin_inset Flex Code
994 status collapsed
995
996 \begin_layout Plain Layout
997 Input
998 \end_layout
999
1000 \end_inset
1001
1002 ).
1003  We recommend that you only do this if you have a 
1004 \begin_inset Flex Code
1005 status collapsed
1006
1007 \begin_layout Plain Layout
1008 .tex
1009 \end_layout
1010
1011 \end_inset
1012
1013  file which you 
1014 \emph on
1015 know
1016 \emph default
1017  works already.
1018  Otherwise, you'll have a big job tracking down \SpecialChar LaTeX
1019  errors.
1020 \end_layout
1021
1022 \begin_layout Standard
1023 There are a few last points to emphasize:
1024 \end_layout
1025
1026 \begin_layout Itemize
1027 \SpecialChar LyX
1028  
1029 \emph on
1030 does not
1031 \emph default
1032  check if your \SpecialChar LaTeX
1033  code is correct.
1034 \end_layout
1035
1036 \begin_layout Itemize
1037 Beware of reinventing the wheel.
1038 \end_layout
1039
1040 \begin_layout Standard
1041 On that last point, \SpecialChar LyX
1042  does have quite a few features tucked into it, and
1043  more are coming.
1044  Be sure to check the manuals to make sure that \SpecialChar LyX
1045  doesn't have such-and-such
1046  feature before you decide you have to do it by hand.
1047  Moreover, there are numerous \SpecialChar LaTeX
1048  packages out there to do all sorts of things,
1049  from labels to envelopes to fancy multipage tables.
1050  Check out 
1051 \change_inserted 244031559 1603815732
1052
1053 \begin_inset CommandInset href
1054 LatexCommand href
1055 name "CTAN"
1056 target "https://www.ctan.org/"
1057 literal "false"
1058
1059 \end_inset
1060
1061
1062 \change_deleted 244031559 1603815732
1063
1064 \begin_inset CommandInset href
1065 LatexCommand href
1066 name "CTAN"
1067 target "http://www.ctan.org/"
1068 literal "false"
1069
1070 \end_inset
1071
1072
1073 \change_unchanged
1074  for details.
1075 \end_layout
1076
1077 \begin_layout Standard
1078 If you do need to do some wild and fancy things within your document, be
1079  sure to check out a good \SpecialChar LaTeX
1080  book for assistance.
1081  There are a number of them listed in the bibliography of the 
1082 \emph on
1083 User's Guide
1084 \emph default
1085 .
1086 \end_layout
1087
1088 \begin_layout Section
1089 \SpecialChar LyX
1090  and the \SpecialChar LaTeX
1091  Preamble
1092 \end_layout
1093
1094 \begin_layout Subsection
1095 About the \SpecialChar LaTeX
1096  Preamble
1097 \end_layout
1098
1099 \begin_layout Standard
1100 If you already know \SpecialChar LaTeX
1101 , there is no need to explain here what the preamble
1102  is good for.
1103  If you don't, the following will give you some ideas—we recommend again
1104  that you consult a \SpecialChar LaTeX
1105  book for further information.
1106  In any case, you should read the points below, because they explain what
1107  you can do and what you don't need to do in the \SpecialChar LaTeX
1108  preamble of a \SpecialChar LyX
1109  document.
1110 \end_layout
1111
1112 \begin_layout Standard
1113 The \SpecialChar LaTeX
1114  preamble comes at the very beginning of a document, 
1115 \emph on
1116 before
1117 \emph default
1118  the text.
1119  It serves to:
1120 \end_layout
1121
1122 \begin_layout Itemize
1123 Declare the document class.
1124  
1125 \begin_inset Newline newline
1126 \end_inset
1127
1128 \SpecialChar LyX
1129  already does this for you.
1130  If you're a seasoned \SpecialChar LaTeX
1131 -nician, and you have a custom document class you
1132  want to use, check out the 
1133 \emph on
1134 Customization Manual
1135 \emph default
1136  for information on how to make \SpecialChar LyX
1137  interface to it.
1138 \end_layout
1139
1140 \begin_layout Itemize
1141 Declare the usage of packages.
1142  
1143 \begin_inset Newline newline
1144 \end_inset
1145
1146 \SpecialChar LaTeX
1147  packages provide special commands, which are only available within a document
1148  when the package has been declared in the preamble.
1149  In addition to providing special commands, the inclusion of a package can
1150  change the document.
1151  For example, the package 
1152 \begin_inset Flex Code
1153 status collapsed
1154
1155 \begin_layout Plain Layout
1156 indentfirst
1157 \end_layout
1158
1159 \end_inset
1160
1161  forces all paragraphs to be indented.
1162  There are other packages for labels, envelopes, margins, etc.
1163  
1164 \end_layout
1165
1166 \begin_layout Itemize
1167 Set counters, variables, lengths and widths.
1168  
1169 \begin_inset Newline newline
1170 \end_inset
1171
1172 There are several \SpecialChar LaTeX
1173  counters and variables that 
1174 \emph on
1175 must
1176 \emph default
1177  be set globally from within the preamble in order to have the desired effect.
1178  (There are variables that you can set and reset inside the document, too.)
1179  Margins are a good example of something that must be set in the preamble.
1180  Another example is the label format for lists.
1181  You can actually set these just about anywhere, but it's best to do it
1182  just once, inside the preamble.
1183 \end_layout
1184
1185 \begin_layout Itemize
1186 Declare user defined commands (with 
1187 \begin_inset Flex Code
1188 status collapsed
1189
1190 \begin_layout Plain Layout
1191
1192 \backslash
1193 newcommand
1194 \end_layout
1195
1196 \end_inset
1197
1198  or 
1199 \begin_inset Flex Code
1200 status collapsed
1201
1202 \begin_layout Plain Layout
1203
1204 \backslash
1205 renewcommand
1206 \end_layout
1207
1208 \end_inset
1209
1210 ).
1211 \begin_inset Newline newline
1212 \end_inset
1213
1214 These are abbreviations for \SpecialChar LaTeX
1215  commands which appear very often inside a document.
1216  Although the preamble is a good place to declare such commands, they 
1217 \emph on
1218 can
1219 \emph default
1220  be declared anywhere (before they are used for the first time, of course).
1221  This can be useful if there is a lot of raw \SpecialChar LaTeX
1222  code in your document, which
1223  normally should not be the case.
1224 \end_layout
1225
1226 \begin_layout Standard
1227 \SpecialChar LyX
1228  adds its own set of definitions to the preamble of the 
1229 \begin_inset Flex Code
1230 status collapsed
1231
1232 \begin_layout Plain Layout
1233 .tex
1234 \end_layout
1235
1236 \end_inset
1237
1238  file it produces.
1239  This makes \SpecialChar LaTeX
1240  files generated by \SpecialChar LyX
1241  portable.
1242 \end_layout
1243
1244 \begin_layout Subsection
1245 Changing the Preamble
1246 \end_layout
1247
1248 \begin_layout Standard
1249 The commands which \SpecialChar LyX
1250  adds to the preamble of a \SpecialChar LaTeX
1251  file are fixed; you can't
1252  change them without patching \SpecialChar LyX
1253  itself.
1254  You can, however, add your own stuff to the preamble by selecting 
1255 \begin_inset Flex Noun
1256 status collapsed
1257
1258 \begin_layout Plain Layout
1259 \SpecialChar LaTeX
1260
1261 \begin_inset space ~
1262 \end_inset
1263
1264 Preamble
1265 \end_layout
1266
1267 \end_inset
1268
1269  in the 
1270 \begin_inset Flex Noun
1271 status collapsed
1272
1273 \begin_layout Plain Layout
1274 Document\SpecialChar menuseparator
1275 Settings
1276 \end_layout
1277
1278 \end_inset
1279
1280  dialog.
1281  \SpecialChar LyX
1282  adds anything in the 
1283 \begin_inset Flex Noun
1284 status collapsed
1285
1286 \begin_layout Plain Layout
1287 Preamble
1288 \end_layout
1289
1290 \end_inset
1291
1292  dialog to its own built-in preamble.
1293  Before adding your own declarations in the preamble, you should make sure
1294  that \SpecialChar LyX
1295  doesn't already support what you want to do.
1296  (Remember what we said about reinventing the wheel?) Also, 
1297 \emph on
1298 make sure your preamble code is correct
1299 \emph default
1300 .
1301  \SpecialChar LyX
1302  doesn't check it for you.
1303  If there is an error, you're likely to get an error like 
1304 \begin_inset Quotes eld
1305 \end_inset
1306
1307
1308 \begin_inset Flex Code
1309 status collapsed
1310
1311 \begin_layout Plain Layout
1312 Missing 
1313 \backslash
1314 begin{document}
1315 \end_layout
1316
1317 \end_inset
1318
1319
1320 \begin_inset Quotes erd
1321 \end_inset
1322
1323 .
1324  If you see this error, check your preamble.
1325 \end_layout
1326
1327 \begin_layout Subsection
1328 Examples
1329 \end_layout
1330
1331 \begin_layout Standard
1332 Here are some examples of what you can add to a preamble, and what they
1333  do.
1334 \end_layout
1335
1336 \begin_layout Subsubsection
1337 Example #1: Offsets
1338 \end_layout
1339
1340 \begin_layout Standard
1341 There are two variables under \SpecialChar LaTeX
1342  that control page position: 
1343 \begin_inset Flex Code
1344 status collapsed
1345
1346 \begin_layout Plain Layout
1347
1348 \backslash
1349 hoffset
1350 \end_layout
1351
1352 \end_inset
1353
1354  and 
1355 \begin_inset Flex Code
1356 status collapsed
1357
1358 \begin_layout Plain Layout
1359
1360 \backslash
1361 voffset
1362 \end_layout
1363
1364 \end_inset
1365
1366 .
1367  Their names should be self-explanatory.
1368  These variables are useful if you think for a moment about computer labels.
1369  Sometimes, the size of a print medium and the area of the medium that you
1370  can actually print on aren't the same.
1371  This is where 
1372 \begin_inset Flex Code
1373 status collapsed
1374
1375 \begin_layout Plain Layout
1376
1377 \backslash
1378 hoffset
1379 \end_layout
1380
1381 \end_inset
1382
1383  and 
1384 \begin_inset Flex Code
1385 status collapsed
1386
1387 \begin_layout Plain Layout
1388
1389 \backslash
1390 voffset
1391 \end_layout
1392
1393 \end_inset
1394
1395  come in.
1396 \end_layout
1397
1398 \begin_layout Standard
1399 The default values for 
1400 \begin_inset Flex Code
1401 status collapsed
1402
1403 \begin_layout Plain Layout
1404
1405 \backslash
1406 hoffset
1407 \end_layout
1408
1409 \end_inset
1410
1411  and 
1412 \begin_inset Flex Code
1413 status collapsed
1414
1415 \begin_layout Plain Layout
1416
1417 \backslash
1418 voffset
1419 \end_layout
1420
1421 \end_inset
1422
1423  are both 0
1424 \begin_inset space \thinspace{}
1425 \end_inset
1426
1427 points, i.
1428 \begin_inset space \thinspace{}
1429 \end_inset
1430
1431 e.
1432 \begin_inset space \space{}
1433 \end_inset
1434
1435 the page isn't shifted.
1436  Unfortunately, some DVI drivers always seem to shift the page.
1437  We have no idea why, or why the sysadmin hasn't fixed such behavior.
1438  If you're using \SpecialChar LyX
1439  on a system that you don't personally maintain, and your
1440  sysadmin is a doofus, 
1441 \begin_inset Flex Code
1442 status collapsed
1443
1444 \begin_layout Plain Layout
1445
1446 \backslash
1447 hoffset
1448 \end_layout
1449
1450 \end_inset
1451
1452  and 
1453 \begin_inset Flex Code
1454 status collapsed
1455
1456 \begin_layout Plain Layout
1457
1458 \backslash
1459 voffset
1460 \end_layout
1461
1462 \end_inset
1463
1464  can save the day.
1465  Suppose your left and top margins are always 0.5
1466 \begin_inset space \thinspace{}
1467 \end_inset
1468
1469 inches too big.
1470  You can add this to the preamble:
1471 \end_layout
1472
1473 \begin_layout LyX-Code
1474
1475 \backslash
1476 setlength{
1477 \backslash
1478 hoffset}{-0.5 in}
1479 \end_layout
1480
1481 \begin_layout LyX-Code
1482
1483 \backslash
1484 setlength{
1485 \backslash
1486 voffset}{-0.5 in}
1487 \end_layout
1488
1489 \begin_layout Standard
1490 and your margins should now be correct.
1491 \end_layout
1492
1493 \begin_layout Subsubsection
1494 Example #2: Labels
1495 \end_layout
1496
1497 \begin_layout Standard
1498 Speaking of labels, suppose you wanted to print out a bunch of address labels.
1499  There's a rather nice package, available at your nearest CTAN archive,
1500  for printing sheets of labels: 
1501 \begin_inset Flex Code
1502 status collapsed
1503
1504 \begin_layout Plain Layout
1505 labels.sty
1506 \end_layout
1507
1508 \end_inset
1509
1510 .
1511  Now, your system may not have this package installed by default.
1512  We leave that up to you to check.
1513  You'll also want to read the documentation for it; we're not going to do
1514  that for you.
1515  Since this is an example, however, we'll give you an example of how you
1516  use this package.
1517 \end_layout
1518
1519 \begin_layout Standard
1520 First, make sure you're using the 
1521 \begin_inset Flex Code
1522 status collapsed
1523
1524 \begin_layout Plain Layout
1525 article
1526 \end_layout
1527
1528 \end_inset
1529
1530  document class.
1531  Next, you need to put the following in your preamble:
1532 \end_layout
1533
1534 \begin_layout LyX-Code
1535
1536 \backslash
1537 usepackage{labels}
1538 \end_layout
1539
1540 \begin_layout LyX-Code
1541
1542 \backslash
1543 LabelCols=3
1544 \end_layout
1545
1546 \begin_layout LyX-Code
1547
1548 \backslash
1549 LabelRows=7
1550 \end_layout
1551
1552 \begin_layout LyX-Code
1553
1554 \backslash
1555 LeftBorder=8mm
1556 \end_layout
1557
1558 \begin_layout LyX-Code
1559
1560 \backslash
1561 RightBorder=8mm
1562 \end_layout
1563
1564 \begin_layout LyX-Code
1565
1566 \backslash
1567 TopBorder=9mm
1568 \end_layout
1569
1570 \begin_layout LyX-Code
1571
1572 \backslash
1573 BottomBorder=2mm
1574 \end_layout
1575
1576 \begin_layout Standard
1577 This sets things up for Avery label sheets, stock #5360.
1578  You're now ready to print labels, but you'll need to insert \SpecialChar LaTeX
1579  code, placing
1580  the commands 
1581 \begin_inset Flex Code
1582 status collapsed
1583
1584 \begin_layout Plain Layout
1585
1586 \backslash
1587 begin{labels}
1588 \end_layout
1589
1590 \end_inset
1591
1592  and 
1593 \begin_inset Flex Code
1594 status collapsed
1595
1596 \begin_layout Plain Layout
1597
1598 \backslash
1599 end{labels}
1600 \end_layout
1601
1602 \end_inset
1603
1604  around each label text.
1605  This and other special features of 
1606 \begin_inset Flex Code
1607 status collapsed
1608
1609 \begin_layout Plain Layout
1610 labels.sty
1611 \end_layout
1612
1613 \end_inset
1614
1615  are explained in its documentation.
1616 \end_layout
1617
1618 \begin_layout Standard
1619 Someday, someone may write a \SpecialChar LyX
1620  layout file to support this package directly.
1621  Maybe that someone is you.
1622 \end_layout
1623
1624 \begin_layout Subsubsection
1625 Example #3: Paragraph Indentation
1626 \end_layout
1627
1628 \begin_layout Standard
1629 Americans are trained to indent the first line of 
1630 \emph on
1631 every
1632 \emph default
1633  paragraph.
1634  As with all of their other weird quirks, most Americans will whine and
1635  moan until they can have their way and indent the first line of all paragraphs.
1636  (Yes, we're joking.
1637  (We are?) 
1638 \emph on
1639 Yeah
1640 \emph default
1641 , we are.)
1642 \end_layout
1643
1644 \begin_layout Standard
1645 Of course, this behavior isn't standard typography.
1646  In books, you typically only indent the first line of a paragraph 
1647 \emph on
1648 if
1649 \emph default
1650  it follows another one.
1651  The idea behind indenting the first line of a paragraph is to distinguish
1652  neighboring paragraphs from one another.
1653  If there is no previous paragraph—for example, if it follows a figure or
1654  is the first paragraph in a section—then there is no need for indentation.
1655  
1656 \end_layout
1657
1658 \begin_layout Standard
1659 If you're a typical American (we're still joking!), though, you don't care
1660  about such esoteric things; you want your indentation! Add this to the
1661  preamble:
1662 \end_layout
1663
1664 \begin_layout LyX-Code
1665
1666 \backslash
1667 usepackage{indentfirst}
1668 \end_layout
1669
1670 \begin_layout Standard
1671 If your \SpecialChar TeX
1672  distribution isn't braindead, you'll have this package, and all
1673  of your paragraphs will get the indentation the Founding Fathers intended
1674  they should have.
1675 \end_layout
1676
1677 \begin_layout Subsubsection
1678 Example #4: This Document
1679 \end_layout
1680
1681 \begin_layout Standard
1682 You can also check out the preamble of this document to get an idea of some
1683  of the advanced things you can do.
1684 \end_layout
1685
1686 \begin_layout Section
1687 \SpecialChar LyX
1688  and \SpecialChar LaTeX
1689  Errors
1690 \end_layout
1691
1692 \begin_layout Standard
1693 When \SpecialChar LyX
1694  calls \SpecialChar LaTeX
1695 , it tells \SpecialChar LaTeX
1696  to blithely ignore any errors and keep going.
1697  It then uses the logfile from the \SpecialChar LaTeX
1698  run to do a post-mortem.
1699  After analyzing the logfile, \SpecialChar LyX
1700  displays a dialog listing the errors.
1701  Clicking on any one of them will take you to the position in your \SpecialChar LyX
1702  file
1703  where the error occurred.
1704 \begin_inset Foot
1705 status collapsed
1706
1707 \begin_layout Plain Layout
1708 Well, usually.
1709  Analyzing the logfile is a tough job, and \SpecialChar LyX
1710  doesn't always go to the right
1711  line.
1712  There are also cases where \SpecialChar LaTeX
1713  reports the error on one line, but the actual
1714  error is earlier.
1715  This is not unlike forgetting a closing brace in a program: You'll get
1716  an error, but only later.
1717 \end_layout
1718
1719 \end_inset
1720
1721
1722 \end_layout
1723
1724 \begin_layout Standard
1725 Some folks also like to look at the log file directly: It is available from
1726  
1727 \begin_inset Flex Noun
1728 status collapsed
1729
1730 \begin_layout Plain Layout
1731 Document\SpecialChar menuseparator
1732 LaTeX
1733 \begin_inset space ~
1734 \end_inset
1735
1736 Log
1737 \end_layout
1738
1739 \end_inset
1740
1741 .
1742  There are some fairly common error messages and warnings.
1743  We'll cover those here.
1744  You should look at a good \SpecialChar LaTeX
1745  book for a complete listing.
1746 \end_layout
1747
1748 \begin_layout Itemize
1749 \begin_inset Flex Code
1750 status collapsed
1751
1752 \begin_layout Plain Layout
1753 LaTeX Warning
1754 \end_layout
1755
1756 \end_inset
1757
1758
1759 \begin_inset Newline newline
1760 \end_inset
1761
1762 Anything beginning with these words is a warning message for the purpose
1763  of 
1764 \begin_inset Quotes eld
1765 \end_inset
1766
1767 debugging
1768 \begin_inset Quotes erd
1769 \end_inset
1770
1771  the \SpecialChar LaTeX
1772  code itself.
1773  You'll get messages like this if you added or changed cross-references
1774  or bibliography entries, in which case, \SpecialChar LaTeX
1775  is trying to tell you that you
1776  need to make another run.
1777  You can by-and-large ignore these.
1778 \end_layout
1779
1780 \begin_layout Itemize
1781 \begin_inset Flex Code
1782 status collapsed
1783
1784 \begin_layout Plain Layout
1785 LaTeX Font Warning
1786 \end_layout
1787
1788 \end_inset
1789
1790
1791 \begin_inset Newline newline
1792 \end_inset
1793
1794 Another warning message, this time about fonts which \SpecialChar LaTeX
1795  couldn't find.
1796  The rest of the message will often say something about a replacement font
1797  that \SpecialChar LaTeX
1798  used.
1799  You can safely ignore these, too.
1800 \end_layout
1801
1802 \begin_layout Itemize
1803 \begin_inset Flex Code
1804 status collapsed
1805
1806 \begin_layout Plain Layout
1807 Overfull 
1808 \backslash
1809 hbox
1810 \end_layout
1811
1812 \end_inset
1813
1814
1815 \begin_inset Newline newline
1816 \end_inset
1817
1818 \SpecialChar LaTeX
1819  absolutely 
1820 \emph on
1821 loves
1822 \emph default
1823  to spew these out.
1824  It seems to generate at least one of these messages for just about any
1825  document you write.
1826  They are warnings about lines that were too long and run past the right
1827  margin.
1828  This happens if \SpecialChar LaTeX
1829  does not find a reasonable way to break the lines (notoriously
1830  often with typewriter font, since this does not allow for automatic break
1831  points).
1832  In many cases, this is unnoticeable in the final output.
1833  (It can be just a point or two.) Sometimes, however, the lines run rather
1834  visibly into the margin; something you will not want to have in your final
1835  print.
1836  
1837 \begin_inset Newline newline
1838 \end_inset
1839
1840 There are several global ways to try to minimize the overfull lines.
1841  Clicking 
1842 \family sans
1843 Enable micro-typographic extensions
1844 \family default
1845  in 
1846 \family sans
1847 Document\SpecialChar menuseparator
1848 Settings\SpecialChar menuseparator
1849 Fonts
1850 \family default
1851  might already improve things a lot.
1852  Furthermore, \SpecialChar LaTeX
1853  code such as the following in 
1854 \family sans
1855 Document\SpecialChar menuseparator
1856 Settings\SpecialChar menuseparator
1857 Preamble
1858 \family default
1859  usually reduces the overfull lines drastically (we use this in the preamble
1860  of this document):
1861 \end_layout
1862
1863 \begin_deeper
1864 \begin_layout LyX-Code
1865
1866 \backslash
1867 tolerance 1414
1868 \begin_inset Newline newline
1869 \end_inset
1870
1871
1872 \backslash
1873 hbadness 1414
1874 \begin_inset Newline newline
1875 \end_inset
1876
1877
1878 \backslash
1879 emergencystretch 1.5em
1880 \begin_inset Newline newline
1881 \end_inset
1882
1883
1884 \backslash
1885 hfuzz 0.3pt
1886 \end_layout
1887
1888 \begin_layout Standard
1889 In some cases, however, you eventually have to rewrite the text to get the
1890  line breaking right.
1891 \begin_inset Foot
1892 status collapsed
1893
1894 \begin_layout Plain Layout
1895 For more information, see 
1896 \begin_inset Flex URL
1897 status open
1898
1899 \begin_layout Plain Layout
1900
1901 http://www.tex.ac.uk/FAQ-overfull.html
1902 \end_layout
1903
1904 \end_inset
1905
1906
1907 \end_layout
1908
1909 \end_inset
1910
1911
1912 \end_layout
1913
1914 \begin_layout Standard
1915 In any case, you should check the respective lines, at least for the final
1916  version of your document.
1917  Your eyes will tell you if there's a problem with something that's too
1918  wide.
1919 \begin_inset Foot
1920 status collapsed
1921
1922 \begin_layout Plain Layout
1923 You can also enable the `draft' option in 
1924 \begin_inset Flex Noun
1925 status collapsed
1926
1927 \begin_layout Plain Layout
1928 Document\SpecialChar menuseparator
1929 Settings
1930 \end_layout
1931
1932 \end_inset
1933
1934 , and then \SpecialChar LaTeX
1935  will draw a black box in the margin of lines that are overfull.
1936 \end_layout
1937
1938 \end_inset
1939
1940  
1941 \end_layout
1942
1943 \end_deeper
1944 \begin_layout Itemize
1945 \begin_inset Flex Code
1946 status collapsed
1947
1948 \begin_layout Plain Layout
1949 Underfull 
1950 \backslash
1951 hbox
1952 \end_layout
1953
1954 \end_inset
1955
1956
1957 \begin_inset Newline newline
1958 \end_inset
1959
1960 Not quite as common as its cousin.
1961  This happens again if \SpecialChar LaTeX
1962  does not find a reasonable break point and consequently
1963  generates too loose lines.
1964  As with the overfull lines, you should check if this is a visible problem.
1965 \end_layout
1966
1967 \begin_layout Itemize
1968 \begin_inset Flex Code
1969 status collapsed
1970
1971 \begin_layout Plain Layout
1972 Overfull 
1973 \backslash
1974 vbox
1975 \end_layout
1976
1977 \end_inset
1978
1979  and 
1980 \begin_inset Flex Code
1981 status collapsed
1982
1983 \begin_layout Plain Layout
1984 Underfull 
1985 \backslash
1986 vbox
1987 \end_layout
1988
1989 \end_inset
1990
1991
1992 \begin_inset Newline newline
1993 \end_inset
1994
1995 Warnings about troubles breaking the page.
1996  Once again, just look at the output.
1997  Your eyes will tell you where something has gone wrong.
1998 \end_layout
1999
2000 \begin_layout Itemize
2001 \begin_inset Flex Code
2002 status collapsed
2003
2004 \begin_layout Plain Layout
2005 LaTeX Error: File 
2006 \begin_inset Quotes els
2007 \end_inset
2008
2009 Xxxx
2010 \begin_inset Quotes ers
2011 \end_inset
2012
2013  not found
2014 \end_layout
2015
2016 \end_inset
2017
2018
2019 \begin_inset Newline newline
2020 \end_inset
2021
2022 The file 
2023 \begin_inset Quotes eld
2024 \end_inset
2025
2026 Xxxx
2027 \begin_inset Quotes erd
2028 \end_inset
2029
2030  isn't installed on this system.
2031  This usually appears because some package your document needs isn't installed.
2032  If you didn't touch the preamble or didn't use the 
2033 \begin_inset Flex Code
2034 status collapsed
2035
2036 \begin_layout Plain Layout
2037
2038 \backslash
2039 usepackage{}
2040 \end_layout
2041
2042 \end_inset
2043
2044  command, then one of the packages \SpecialChar LyX
2045  tried to load is missing.
2046  Use 
2047 \begin_inset Flex Noun
2048 status collapsed
2049
2050 \begin_layout Plain Layout
2051 Help\SpecialChar menuseparator
2052 \SpecialChar LaTeX
2053  Configuration
2054 \end_layout
2055
2056 \end_inset
2057
2058  to get a list of packages that \SpecialChar LyX
2059  knows about.
2060  This file is updated whenever you reconfigure \SpecialChar LyX
2061  (using 
2062 \begin_inset Flex Noun
2063 status collapsed
2064
2065 \begin_layout Plain Layout
2066 Tools\SpecialChar menuseparator
2067 Reconfigure
2068 \end_layout
2069
2070 \end_inset
2071
2072 ) and tells you which packages have been detected and what they do.
2073 \begin_inset Newline newline
2074 \end_inset
2075
2076 If you did use the 
2077 \begin_inset Flex Code
2078 status collapsed
2079
2080 \begin_layout Plain Layout
2081
2082 \backslash
2083 usepackage{}
2084 \end_layout
2085
2086 \end_inset
2087
2088  command and the package in question isn't installed, then you'll need to
2089  install it yourself.
2090 \end_layout
2091
2092 \begin_layout Itemize
2093 \begin_inset Flex Code
2094 status collapsed
2095
2096 \begin_layout Plain Layout
2097 LaTeX Error: Unknown option
2098 \end_layout
2099
2100 \end_inset
2101
2102
2103 \begin_inset Newline newline
2104 \end_inset
2105
2106 Error messages beginning with this are trying to tell you that you specified
2107  a bad or undefined option to a package.
2108  Check the package's documentation.
2109 \end_layout
2110
2111 \begin_layout Itemize
2112 \begin_inset Flex Code
2113 status collapsed
2114
2115 \begin_layout Plain Layout
2116 Undefined control sequence
2117 \end_layout
2118
2119 \end_inset
2120
2121
2122 \begin_inset Newline newline
2123 \end_inset
2124
2125 If you've inserted \SpecialChar LaTeX
2126  code into your document, but made a typo, you'll get
2127  one of these.
2128  You may have forgotten to load a package.
2129  In any case, this error message usually means that you used an undefined
2130  command.
2131  
2132 \end_layout
2133
2134 \begin_layout Standard
2135 There are other error and warning messages.
2136  Some are self-explanatory.
2137  These are usually \SpecialChar LaTeX
2138  messages.
2139  Others are downright cryptic.
2140  These are usually \SpecialChar TeX
2141  error messages, and we really have 
2142 \emph on
2143 no clue
2144 \emph default
2145  what they mean or how to decipher them.
2146  No-one does.
2147 \end_layout
2148
2149 \begin_layout Standard
2150 There's a general sequence you should follow if you get error messages:
2151 \end_layout
2152
2153 \begin_layout Enumerate
2154 Look at the \SpecialChar LaTeX
2155  code you inserted for typos.
2156 \end_layout
2157
2158 \begin_layout Enumerate
2159 If there are no typos, check that you used the command(s) correctly.
2160 \end_layout
2161
2162 \begin_layout Enumerate
2163 If you get a bunch of error boxes piled up at the very top of the document—and
2164  especially if you see a 
2165 \begin_inset Quotes eld
2166 \end_inset
2167
2168
2169 \begin_inset Flex Code
2170 status collapsed
2171
2172 \begin_layout Plain Layout
2173 Missing 
2174 \backslash
2175 begin{document}
2176 \end_layout
2177
2178 \end_inset
2179
2180
2181 \begin_inset Quotes erd
2182 \end_inset
2183
2184  error—it means that there are errors in the preamble.
2185  Start debugging your preamble.
2186 \end_layout
2187
2188 \begin_layout Enumerate
2189 If you didn't add anything to the preamble and didn't add any \SpecialChar LaTeX
2190  code to the
2191  document, the first suspect is your \SpecialChar LaTeX
2192  distribution itself.
2193  Check for missing packages and install them.
2194 \end_layout
2195
2196 \begin_layout Enumerate
2197 Okay, so there are no missing packages.
2198  Did you use any of the fine-tuning options in \SpecialChar LyX
2199 ? Specifically, did you 
2200 \emph on
2201 misuse
2202 \emph default
2203  any of them, like trying to manually insert lots of 
2204 \begin_inset Flex Code
2205 status collapsed
2206
2207 \begin_layout Plain Layout
2208 Protected
2209 \begin_inset space ~
2210 \end_inset
2211
2212 Blanks
2213 \end_layout
2214
2215 \end_inset
2216
2217
2218 \begin_inset Flex Code
2219 status collapsed
2220
2221 \begin_layout Plain Layout
2222 Linebreaks
2223 \end_layout
2224
2225 \end_inset
2226
2227 , or 
2228 \begin_inset Flex Code
2229 status collapsed
2230
2231 \begin_layout Plain Layout
2232 Pagebreaks
2233 \end_layout
2234
2235 \end_inset
2236
2237 ? Did you try to kludge something together with these instead of using the
2238  appropriate paragraph environment?
2239 \end_layout
2240
2241 \begin_layout Enumerate
2242 All right, you didn't use any of the fine-tuning options, you played by
2243  the rules.
2244  Did you try to pull a fancy maneuver? Did you do something funky inside
2245  a table or an equation, like inserting a graphic into a table cell?
2246 \end_layout
2247
2248 \begin_layout Enumerate
2249 Do you have long sections of text where \SpecialChar LaTeX
2250  cannot find a place to break a
2251  line? By default, \SpecialChar LaTeX
2252  is rather strict about how much extra inter-word spacing
2253  it will add in order to break a line.
2254  Preferably, you should rework the paragraph to avoid the problem.
2255 \end_layout
2256
2257 \begin_layout Enumerate
2258 Did you go overboard with the nesting? \SpecialChar LyX
2259  (currently) doesn't check to make
2260  sure you're in the limits for nesting environments.
2261  If you nested a bunch of environments to the 
2262 \begin_inset Formula $17^{\mathrm{th}}$
2263 \end_inset
2264
2265  level, that's the problem.
2266  (The limit in \SpecialChar LaTeX
2267  is five.)
2268 \end_layout
2269
2270 \begin_layout Enumerate
2271 Okay, you didn't get any error messages, but your output looks awful.
2272  If you have a table or figure that's too wide or long for the page, you
2273  need to:
2274 \end_layout
2275
2276 \begin_deeper
2277 \begin_layout Enumerate
2278 rescale the figure so it fits.
2279 \end_layout
2280
2281 \begin_layout Enumerate
2282 trim down the table so it fits.
2283 \end_layout
2284
2285 \end_deeper
2286 \begin_layout Enumerate
2287 If something else is wrong with the output, and you didn't try to pull anything
2288  fancy or kludge the fine-tuning options, we're not sure what's wrong.
2289 \end_layout
2290
2291 \begin_layout Standard
2292 If all this doesn't help—well, then 
2293 \emph on
2294 perhaps
2295 \emph default
2296  you might have found a bug in \SpecialChar LyX
2297 \SpecialChar ldots
2298 .
2299 \end_layout
2300
2301 \begin_layout Chapter
2302 Supplemental Tools
2303 \end_layout
2304
2305 \begin_layout Section
2306 Customizing Bibliographies with Bib\SpecialChar TeX
2307  or Biblatex
2308 \end_layout
2309
2310 \begin_layout Standard
2311 The most basic information about how to use Bib\SpecialChar TeX
2312  or 
2313 \family sans
2314 Biblatex
2315 \family default
2316  with \SpecialChar LyX
2317  is contained in the section 
2318 \emph on
2319 Bibliography databases
2320 \emph default
2321  of the 
2322 \emph on
2323 User's Guide
2324 \emph default
2325 .
2326  The following subsections explain special bibliography features supported
2327  by \SpecialChar LyX
2328 .
2329 \end_layout
2330
2331 \begin_layout Subsection
2332 Alternative Citation Styles
2333 \end_layout
2334
2335 \begin_layout Standard
2336 Standard Bib\SpecialChar TeX
2337  uses numbers (e.
2338 \begin_inset space \thinspace{}
2339 \end_inset
2340
2341 g.
2342 \begin_inset space \space{}
2343 \end_inset
2344
2345
2346 \begin_inset Quotes eld
2347 \end_inset
2348
2349 [12]
2350 \begin_inset Quotes erd
2351 \end_inset
2352
2353 ) to refer to a cited work.
2354  However, in many scientific disciplines, other citation styles are in use.
2355  The most common one is the author-year style (e.
2356 \begin_inset space \thinspace{}
2357 \end_inset
2358
2359 g.
2360 \begin_inset space \space{}
2361 \end_inset
2362
2363
2364 \begin_inset Quotes eld
2365 \end_inset
2366
2367 Knuth 1984a
2368 \begin_inset Quotes erd
2369 \end_inset
2370
2371 ).
2372  \SpecialChar LyX
2373  supports three packages that provide this style, 
2374 \begin_inset Flex Code
2375 status collapsed
2376
2377 \begin_layout Plain Layout
2378 biblatex
2379 \end_layout
2380
2381 \end_inset
2382
2383
2384 \begin_inset Flex Code
2385 status collapsed
2386
2387 \begin_layout Plain Layout
2388 natbib
2389 \end_layout
2390
2391 \end_inset
2392
2393 , and 
2394 \begin_inset Flex Code
2395 status collapsed
2396
2397 \begin_layout Plain Layout
2398 jurabib
2399 \end_layout
2400
2401 \end_inset
2402
2403 .
2404  Each of these packages has their pros and cons, which cannot be listed
2405  in detail.
2406  If you only want to have simple author-year (or author-numerical) style,
2407  or if you want to use one of the countless style files for 
2408 \begin_inset Flex Code
2409 status collapsed
2410
2411 \begin_layout Plain Layout
2412 natbib
2413 \end_layout
2414
2415 \end_inset
2416
2417 , then the established 
2418 \begin_inset Flex Code
2419 status collapsed
2420
2421 \begin_layout Plain Layout
2422 natbib
2423 \end_layout
2424
2425 \end_inset
2426
2427  package is probably your choice.
2428  If you look for specific citation styles common in law studies, you might
2429  consider the 
2430 \begin_inset Flex Code
2431 status collapsed
2432
2433 \begin_layout Plain Layout
2434 jurabib
2435 \end_layout
2436
2437 \end_inset
2438
2439  package.
2440  If you want to have full control over the formatting or look for advanced
2441  features such as ibidem, footnote citations, full title citations, advanced
2442  date formats (such as 400 BC) or full localization to other languages than
2443  English, you should definitely consider 
2444 \begin_inset Flex Code
2445 status collapsed
2446
2447 \begin_layout Plain Layout
2448 biblatex
2449 \end_layout
2450
2451 \end_inset
2452
2453 , which exceeds all other packages in terms of features, but is also quite
2454  heavy and more resource-hungry.
2455 \end_layout
2456
2457 \begin_layout Standard
2458 The handling of these packages in \SpecialChar LyX
2459  is basically the same.
2460  Go to 
2461 \begin_inset Flex Noun
2462 status collapsed
2463
2464 \begin_layout Plain Layout
2465 Document\SpecialChar menuseparator
2466 Settings
2467 \end_layout
2468
2469 \end_inset
2470
2471  and select under 
2472 \begin_inset Flex Noun
2473 status collapsed
2474
2475 \begin_layout Plain Layout
2476 Bibliography
2477 \end_layout
2478
2479 \end_inset
2480
2481  the 
2482 \begin_inset Flex Noun
2483 status collapsed
2484
2485 \begin_layout Plain Layout
2486 Style Format
2487 \end_layout
2488
2489 \end_inset
2490
2491  
2492 \begin_inset Flex Noun
2493 status collapsed
2494
2495 \begin_layout Plain Layout
2496 Basic (BibTeX)
2497 \end_layout
2498
2499 \end_inset
2500
2501
2502 \begin_inset Flex Noun
2503 status collapsed
2504
2505 \begin_layout Plain Layout
2506 Biblatex
2507 \end_layout
2508
2509 \end_inset
2510
2511
2512 \begin_inset Flex Noun
2513 status collapsed
2514
2515 \begin_layout Plain Layout
2516 Biblatex (Natbib mode)
2517 \end_layout
2518
2519 \end_inset
2520
2521
2522 \begin_inset Flex Noun
2523 status collapsed
2524
2525 \begin_layout Plain Layout
2526 Natbib (BibTeX)
2527 \end_layout
2528
2529 \end_inset
2530
2531  or 
2532 \begin_inset Flex Noun
2533 status collapsed
2534
2535 \begin_layout Plain Layout
2536 Jurabib (BibTeX)
2537 \end_layout
2538
2539 \end_inset
2540
2541  (see sec.
2542 \begin_inset space ~
2543 \end_inset
2544
2545 6.5.3 in the User's Guide for more information on these choices).
2546  With all these packages, you will get some extra features in the citation
2547  dialog and you can select the style of the reference (
2548 \begin_inset Quotes eld
2549 \end_inset
2550
2551 Knuth 1984
2552 \begin_inset Quotes erd
2553 \end_inset
2554
2555
2556 \begin_inset Quotes eld
2557 \end_inset
2558
2559 Knuth (1984)
2560 \begin_inset Quotes erd
2561 \end_inset
2562
2563
2564 \begin_inset Quotes eld
2565 \end_inset
2566
2567 Knuth, 1984
2568 \begin_inset Quotes erd
2569 \end_inset
2570
2571
2572 \begin_inset Quotes eld
2573 \end_inset
2574
2575 1984
2576 \begin_inset Quotes erd
2577 \end_inset
2578
2579  etc.).
2580  Note that either package needs specifically designed style files.
2581  They all ship their own, but there are lots of additional style files,
2582  and there is even an interactive style file builder
2583 \begin_inset Foot
2584 status collapsed
2585
2586 \begin_layout Plain Layout
2587 See 
2588 \begin_inset Flex URL
2589 status open
2590
2591 \begin_layout Plain Layout
2592
2593 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
2594 \end_layout
2595
2596 \end_inset
2597
2598
2599 \end_layout
2600
2601 \end_inset
2602
2603  for 
2604 \begin_inset Flex Code
2605 status collapsed
2606
2607 \begin_layout Plain Layout
2608 natbib
2609 \end_layout
2610
2611 \end_inset
2612
2613 .
2614 \end_layout
2615
2616 \begin_layout Subsection
2617 Subdivided Bibliographies
2618 \end_layout
2619
2620 \begin_layout Standard
2621 Sometimes you might need to divide your bibliography into several sections.
2622  If you are for instance a historian, the possibility to separate sources
2623  and scientific works is most likely a 
2624 \begin_inset Quotes eld
2625 \end_inset
2626
2627 must have
2628 \begin_inset Quotes erd
2629 \end_inset
2630
2631 .
2632  Unfortunately, Bib\SpecialChar TeX
2633  itself does not allow you to do this.
2634  But with the help of some \SpecialChar LaTeX
2635  packages, Bib\SpecialChar TeX
2636  can be extended to fit your needs.
2637 \end_layout
2638
2639 \begin_layout Standard
2640 \SpecialChar LyX
2641  provides native support for one of these packages, 
2642 \family typewriter
2643 bibtopic
2644 \family default
2645 .
2646 \begin_inset Foot
2647 status collapsed
2648
2649 \begin_layout Plain Layout
2650 Available from 
2651 \begin_inset Flex URL
2652 status open
2653
2654 \begin_layout Plain Layout
2655
2656 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
2657 \end_layout
2658
2659 \end_inset
2660
2661
2662 \end_layout
2663
2664 \end_inset
2665
2666  The advantage of this package (compared to other packages such as 
2667 \family typewriter
2668 multibib
2669 \family default
2670 ) is that you don't need to define new citation commands.
2671  Instead, you need to prepare different bibliographic databases which include
2672  the entries for the different sections of the bibliography.
2673  For example: If you want to divide your bibliography into the sections
2674  
2675 \begin_inset Quotes eld
2676 \end_inset
2677
2678 Sources
2679 \begin_inset Quotes erd
2680 \end_inset
2681
2682  and 
2683 \begin_inset Quotes eld
2684 \end_inset
2685
2686 Scientific works
2687 \begin_inset Quotes erd
2688 \end_inset
2689
2690 , you first need to create two bibliographic databases, e.
2691 \begin_inset space \thinspace{}
2692 \end_inset
2693
2694 g.
2695 \begin_inset space \space{}
2696 \end_inset
2697
2698
2699 \begin_inset Flex Code
2700 status collapsed
2701
2702 \begin_layout Plain Layout
2703 sources.bib
2704 \end_layout
2705
2706 \end_inset
2707
2708  and 
2709 \begin_inset Flex Code
2710 status collapsed
2711
2712 \begin_layout Plain Layout
2713 scientific.bib
2714 \end_layout
2715
2716 \end_inset
2717
2718 .
2719  
2720 \end_layout
2721
2722 \begin_layout Standard
2723 Go to 
2724 \begin_inset Flex Noun
2725 status collapsed
2726
2727 \begin_layout Plain Layout
2728 Document\SpecialChar menuseparator
2729 Settings
2730 \end_layout
2731
2732 \end_inset
2733
2734  and check under 
2735 \begin_inset Flex Noun
2736 status collapsed
2737
2738 \begin_layout Plain Layout
2739 Bibliography
2740 \end_layout
2741
2742 \end_inset
2743
2744  the option 
2745 \begin_inset Flex Noun
2746 status collapsed
2747
2748 \begin_layout Plain Layout
2749 Subdivided bibliography
2750 \end_layout
2751
2752 \end_inset
2753
2754 .
2755  Now you can insert multiple Bib\SpecialChar TeX
2756  bibliographies, one for each section of
2757  your bibliography.
2758  Returning to our example: Insert the Bib\SpecialChar TeX
2759  bibliography 
2760 \begin_inset Flex Code
2761 status collapsed
2762
2763 \begin_layout Plain Layout
2764 sources.bib
2765 \end_layout
2766
2767 \end_inset
2768
2769  and a second one for the database 
2770 \begin_inset Flex Code
2771 status collapsed
2772
2773 \begin_layout Plain Layout
2774 scientific.bib
2775 \end_layout
2776
2777 \end_inset
2778
2779 .
2780  You are free to use the same or different styles for each section.
2781  Additionally, you can choose if the bibliography section should contain
2782  
2783 \begin_inset Quotes eld
2784 \end_inset
2785
2786 all cited references
2787 \begin_inset Quotes erd
2788 \end_inset
2789
2790  of the specified database(s) (which is the default), 
2791 \begin_inset Quotes eld
2792 \end_inset
2793
2794 all uncited references
2795 \begin_inset Quotes erd
2796 \end_inset
2797
2798  or even 
2799 \begin_inset Quotes eld
2800 \end_inset
2801
2802 all references
2803 \begin_inset Quotes erd
2804 \end_inset
2805
2806 .
2807  This might be useful if you would like to separate your bibliography into
2808  three sections: 
2809 \begin_inset Quotes eld
2810 \end_inset
2811
2812 Cited sources
2813 \begin_inset Quotes erd
2814 \end_inset
2815
2816
2817 \begin_inset Quotes eld
2818 \end_inset
2819
2820 Uncited sources
2821 \begin_inset Quotes erd
2822 \end_inset
2823
2824 , and 
2825 \begin_inset Quotes eld
2826 \end_inset
2827
2828 Scientific works
2829 \begin_inset Quotes erd
2830 \end_inset
2831
2832 .
2833  The titles for the sections can be added as ordinary sections or subsections.
2834  Since 
2835 \begin_inset Flex Code
2836 status collapsed
2837
2838 \begin_layout Plain Layout
2839 bibtopic
2840 \end_layout
2841
2842 \end_inset
2843
2844  removes the bibliography title, you have to manually re-add that, too (as
2845  a chapter* or section*, for instance).
2846 \end_layout
2847
2848 \begin_layout Standard
2849 With 
2850 \family sans
2851 Biblatex
2852 \family default
2853 , the procedure is a bit different.
2854  Since 
2855 \family typewriter
2856 bibtopic
2857 \family default
2858  does not work with 
2859 \family sans
2860 Biblatex
2861 \family default
2862 , the aforementioned 
2863 \begin_inset Flex Noun
2864 status collapsed
2865
2866 \begin_layout Plain Layout
2867 Subdivided bibliography
2868 \end_layout
2869
2870 \end_inset
2871
2872  option is disabled if you use 
2873 \family sans
2874 Biblatex
2875 \family default
2876 .
2877  However, 
2878 \family sans
2879 Biblatex
2880 \family default
2881  provides its own means to generate subdivided bibliographies.
2882  You can either add keywords to bibliography entries via the 
2883 \begin_inset Flex Code
2884 status collapsed
2885
2886 \begin_layout Plain Layout
2887 keywords
2888 \end_layout
2889
2890 \end_inset
2891
2892  entry option and then filter bibliography sections by keyword (by adding
2893  
2894 \begin_inset Flex Code
2895 status collapsed
2896
2897 \begin_layout Plain Layout
2898 keyword=mykeyword
2899 \end_layout
2900
2901 \end_inset
2902
2903  to the 
2904 \begin_inset Flex Noun
2905 status collapsed
2906
2907 \begin_layout Plain Layout
2908 Options
2909 \end_layout
2910
2911 \end_inset
2912
2913  field of the dialog that opens if you left-click on the 
2914 \begin_inset Flex Noun
2915 status collapsed
2916
2917 \begin_layout Plain Layout
2918 Biblatex Generated Bibliography
2919 \end_layout
2920
2921 \end_inset
2922
2923  button), or you can filter by entry types (such as 
2924 \emph on
2925 book
2926 \emph default
2927  or 
2928 \emph on
2929 article
2930 \emph default
2931 ) by entering e.
2932 \begin_inset space \thinspace{}
2933 \end_inset
2934
2935 g.
2936  
2937 \begin_inset Flex Code
2938 status collapsed
2939
2940 \begin_layout Plain Layout
2941 type=book
2942 \end_layout
2943
2944 \end_inset
2945
2946  or 
2947 \begin_inset Flex Code
2948 status collapsed
2949
2950 \begin_layout Plain Layout
2951 nottype=collection
2952 \end_layout
2953
2954 \end_inset
2955
2956  to the mentioned 
2957 \begin_inset Flex Noun
2958 status collapsed
2959
2960 \begin_layout Plain Layout
2961 Options
2962 \end_layout
2963
2964 \end_inset
2965
2966  field, or you can create so-called 
2967 \begin_inset Quotes eld
2968 \end_inset
2969
2970 Bibliography Categories
2971 \begin_inset Quotes erd
2972 \end_inset
2973
2974  to which you can assign individual entries.
2975  Please refer to the Biblatex manual, section 
2976 \emph on
2977 Subdivided Bibliographies
2978 \emph default
2979 , for details.
2980 \end_layout
2981
2982 \begin_layout Subsection
2983 Multiple Bibliographies
2984 \begin_inset CommandInset label
2985 LatexCommand label
2986 name "subsec:Multiple-Bibliographies"
2987
2988 \end_inset
2989
2990
2991 \end_layout
2992
2993 \begin_layout Standard
2994 Multiple bibliographies, e.
2995 \begin_inset space \thinspace{}
2996 \end_inset
2997
2998 g.
2999 \begin_inset space \space{}
3000 \end_inset
3001
3002 a bibliography for each part, chapter, section, subsection or child (sub-documen
3003 t) of the document, are also supported by \SpecialChar LyX
3004 .
3005  In order to enable it, go to 
3006 \begin_inset Flex Noun
3007 status collapsed
3008
3009 \begin_layout Plain Layout
3010 Document\SpecialChar menuseparator
3011 Settings\SpecialChar menuseparator
3012 Bibliography
3013 \end_layout
3014
3015 \end_inset
3016
3017  and select the relevant unit (e.
3018 \begin_inset space \thinspace{}
3019 \end_inset
3020
3021 g., 
3022 \begin_inset Quotes eld
3023 \end_inset
3024
3025 per section
3026 \begin_inset Quotes erd
3027 \end_inset
3028
3029 ) in the 
3030 \begin_inset Flex Noun
3031 status collapsed
3032
3033 \begin_layout Plain Layout
3034 Multiple Bibliographies
3035 \end_layout
3036
3037 \end_inset
3038
3039  combo box.
3040  Then add a Bib(la)\SpecialChar TeX
3041  bibliography to each unit (e.
3042 \begin_inset space \thinspace{}
3043 \end_inset
3044
3045 g., section) of your document.
3046  In the output, a separate bibliography, containing only the references
3047  done in the current unit is generated.
3048 \end_layout
3049
3050 \begin_layout Standard
3051 If you use Bib\SpecialChar TeX
3052 , either the 
3053 \begin_inset Flex Code
3054 status collapsed
3055
3056 \begin_layout Plain Layout
3057 chapterbib
3058 \end_layout
3059
3060 \end_inset
3061
3062  or the 
3063 \begin_inset Flex Code
3064 status collapsed
3065
3066 \begin_layout Plain Layout
3067 bibtopic
3068 \end_layout
3069
3070 \end_inset
3071
3072  package is used to create multiple bibliographies.
3073  The former package is used if you select 
3074 \begin_inset Quotes eld
3075 \end_inset
3076
3077 per child document
3078 \begin_inset Quotes erd
3079 \end_inset
3080
3081  and do 
3082 \emph on
3083 not
3084 \emph default
3085  check 
3086 \begin_inset Flex Noun
3087 status collapsed
3088
3089 \begin_layout Plain Layout
3090 Sectioned Bibliography
3091 \end_layout
3092
3093 \end_inset
3094
3095 .
3096  In all other cases, 
3097 \begin_inset Flex Code
3098 status collapsed
3099
3100 \begin_layout Plain Layout
3101 bibtopic
3102 \end_layout
3103
3104 \end_inset
3105
3106  is used.
3107 \begin_inset Foot
3108 status collapsed
3109
3110 \begin_layout Plain Layout
3111 An alternative approach, if you are willing to use some 
3112 \begin_inset Flex Noun
3113 status collapsed
3114
3115 \begin_layout Plain Layout
3116 \SpecialChar TeX
3117  Code
3118 \end_layout
3119
3120 \end_inset
3121
3122  (see section
3123 \begin_inset space ~
3124 \end_inset
3125
3126
3127 \begin_inset CommandInset ref
3128 LatexCommand ref
3129 reference "sec:Inserting-TeX-Code"
3130
3131 \end_inset
3132
3133 ), is to use the 
3134 \begin_inset Flex Code
3135 status collapsed
3136
3137 \begin_layout Plain Layout
3138 bibunits
3139 \end_layout
3140
3141 \end_inset
3142
3143  package.
3144 \end_layout
3145
3146 \end_inset
3147
3148  If 
3149 \begin_inset Flex Code
3150 status collapsed
3151
3152 \begin_layout Plain Layout
3153 bibtopic
3154 \end_layout
3155
3156 \end_inset
3157
3158  is used, \SpecialChar LyX
3159  encloses the specified units in 
3160 \begin_inset Flex Code
3161 status collapsed
3162
3163 \begin_layout Plain Layout
3164 bibtopic
3165 \end_layout
3166
3167 \end_inset
3168
3169 's 
3170 \begin_inset Flex Code
3171 status collapsed
3172
3173 \begin_layout Plain Layout
3174
3175 \backslash
3176 begin{btUnit}
3177 \end_layout
3178
3179 \end_inset
3180
3181  and 
3182 \begin_inset Flex Code
3183 status collapsed
3184
3185 \begin_layout Plain Layout
3186
3187 \backslash
3188 end{btUnit}
3189 \end_layout
3190
3191 \end_inset
3192
3193  in order to create the units.
3194  Note that this approach has some limitations.
3195  First, every citation reference has to be inside some 
3196 \begin_inset Flex Code
3197 status collapsed
3198
3199 \begin_layout Plain Layout
3200 btUnit
3201 \end_layout
3202
3203 \end_inset
3204
3205 .
3206  So citations outside a defined unit (e.
3207 \begin_inset space \thinspace{}
3208 \end_inset
3209
3210 g., before the first section if you use 
3211 \begin_inset Quotes eld
3212 \end_inset
3213
3214 by section
3215 \begin_inset Quotes erd
3216 \end_inset
3217
3218 ) will appear as 
3219 \begin_inset Quotes eld
3220 \end_inset
3221
3222 ???
3223 \begin_inset Quotes erd
3224 \end_inset
3225
3226 .
3227  You can also create your own units by entering 
3228 \begin_inset Flex Code
3229 status collapsed
3230
3231 \begin_layout Plain Layout
3232
3233 \backslash
3234 begin{btUnit}
3235 \end_layout
3236
3237 \end_inset
3238
3239  and 
3240 \begin_inset Flex Code
3241 status collapsed
3242
3243 \begin_layout Plain Layout
3244
3245 \backslash
3246 end{btUnit}
3247 \end_layout
3248
3249 \end_inset
3250
3251  as \SpecialChar TeX
3252  code (for instance to work around the mentioned limitation).
3253  Note, though, that 
3254 \begin_inset Flex Code
3255 status collapsed
3256
3257 \begin_layout Plain Layout
3258 btUnit
3259 \end_layout
3260
3261 \end_inset
3262
3263 s cannot be nested.
3264  A second limitation is that 
3265 \begin_inset Flex Code
3266 status collapsed
3267
3268 \begin_layout Plain Layout
3269 bibtopic
3270 \end_layout
3271
3272 \end_inset
3273
3274  always processes all references of a bibliography database, even if they
3275  are not cited.
3276  This can result in odd labels (e.
3277 \begin_inset space \thinspace{}
3278 \end_inset
3279
3280 g.
3281  
3282 \begin_inset Quotes eld
3283 \end_inset
3284
3285 Miller 2014b
3286 \begin_inset Quotes erd
3287 \end_inset
3288
3289  if two works of this author from 2014 are in the database, even if only
3290  one is cited).
3291 \end_layout
3292
3293 \begin_layout Standard
3294 If you use 
3295 \family sans
3296 Biblatex
3297 \family default
3298 , the 
3299 \begin_inset Flex Code
3300 status collapsed
3301
3302 \begin_layout Plain Layout
3303 refsection
3304 \end_layout
3305
3306 \end_inset
3307
3308  option is used instead.
3309  If you need specific units, you can start them with the \SpecialChar TeX
3310  code 
3311 \begin_inset Flex Code
3312 status collapsed
3313
3314 \begin_layout Plain Layout
3315
3316 \backslash
3317 newrefsection
3318 \end_layout
3319
3320 \end_inset
3321
3322  or 
3323 \begin_inset Flex Code
3324 status collapsed
3325
3326 \begin_layout Plain Layout
3327
3328 \backslash
3329 newrefsegment
3330 \end_layout
3331
3332 \end_inset
3333
3334 , respectively.
3335  If you also want to control the end of the unit, use the environment 
3336 \begin_inset Flex Code
3337 status collapsed
3338
3339 \begin_layout Plain Layout
3340
3341 \backslash
3342 begin{refsection}
3343 \end_layout
3344
3345 \end_inset
3346
3347  \SpecialChar ldots
3348  
3349 \begin_inset Flex Code
3350 status collapsed
3351
3352 \begin_layout Plain Layout
3353
3354 \backslash
3355 end{refsection}
3356 \end_layout
3357
3358 \end_inset
3359
3360  instead.
3361  Note, though, that 
3362 \begin_inset Flex Code
3363 status collapsed
3364
3365 \begin_layout Plain Layout
3366 refsection
3367 \end_layout
3368
3369 \end_inset
3370
3371 s cannot be nested.
3372  In addition to the individual bibliography of the current unit, 
3373 \family sans
3374 Biblatex
3375 \family default
3376  also provides an easy way to output all bibliographies, subsequently, at
3377  one place (e.
3378 \begin_inset space \thinspace{}
3379 \end_inset
3380
3381 g., at the end of the document).
3382  Select 
3383 \begin_inset Quotes eld
3384 \end_inset
3385
3386 all reference units
3387 \begin_inset Quotes erd
3388 \end_inset
3389
3390  from the Content combo box of the Bib(la)TeX inset dialog in order to achieve
3391  this.
3392  Please refer to the 
3393 \family sans
3394 Biblatex
3395 \family default
3396  manual for more information on this topic.
3397 \end_layout
3398
3399 \begin_layout Section
3400 Multipart Documents
3401 \end_layout
3402
3403 \begin_layout Subsection
3404 General Operation
3405 \end_layout
3406
3407 \begin_layout Standard
3408 When you are working on a large file with many sections, it is often convenient
3409  to break up the document into several files, or perhaps you have something
3410  where a table may change from time to time, but the preceding text does
3411  not.
3412  In these cases, you should seriously consider using multipart documents.
3413  For example, scientific papers often have five major sections: the introduction
3414 , observations, results, discussion, and conclusion.
3415  Each of these could be its own separate \SpecialChar LyX
3416  file, with one 
3417 \begin_inset Quotes eld
3418 \end_inset
3419
3420 master
3421 \begin_inset Quotes erd
3422 \end_inset
3423
3424  file which contains the title, authors, abstract, references, etc., plus
3425  the five included files.
3426  It is important to note that each of these files is a full \SpecialChar LyX
3427  file which
3428  can be formatted and printed on its own, as well as included in a master
3429  file.
3430  Each of these files must have the same document class, however—don't attempt
3431  to mix book classes with article classes.
3432  You may also include \SpecialChar LaTeX
3433  files; however, these files must not have their own
3434  preamble (i.
3435 \begin_inset space \thinspace{}
3436 \end_inset
3437
3438 e.
3439 \begin_inset space \space{}
3440 \end_inset
3441
3442 everything up to and including the 
3443 \begin_inset Flex Code
3444 status collapsed
3445
3446 \begin_layout Plain Layout
3447
3448 \backslash
3449 begin{document}
3450 \end_layout
3451
3452 \end_inset
3453
3454  line as well as the 
3455 \begin_inset Flex Code
3456 status collapsed
3457
3458 \begin_layout Plain Layout
3459
3460 \backslash
3461 end{document}
3462 \end_layout
3463
3464 \end_inset
3465
3466  line must be deleted) or else errors will be generated when you try to
3467  make a DVI file.
3468 \end_layout
3469
3470 \begin_layout Standard
3471 \SpecialChar LyX
3472  allows you to include files quite easily with 
3473 \begin_inset Flex Noun
3474 status collapsed
3475
3476 \begin_layout Plain Layout
3477 Insert\SpecialChar menuseparator
3478 Child
3479 \begin_inset space ~
3480 \end_inset
3481
3482 Document
3483 \end_layout
3484
3485 \end_inset
3486
3487 .
3488  When you click on this selection a small box is inserted into the file
3489  at the current cursor location.
3490  Clicking on the box raises a dialog which allows you to select the file
3491  to be included, and the method of its inclusion.
3492  
3493 \end_layout
3494
3495 \begin_layout Standard
3496 The file selection box should by now be obvious.
3497  The three inclusion methods are 
3498 \begin_inset Quotes eld
3499 \end_inset
3500
3501 include
3502 \begin_inset Quotes erd
3503 \end_inset
3504
3505
3506 \begin_inset Quotes eld
3507 \end_inset
3508
3509 input
3510 \begin_inset Quotes erd
3511 \end_inset
3512
3513 , and 
3514 \begin_inset Quotes eld
3515 \end_inset
3516
3517 verbatim
3518 \begin_inset Quotes erd
3519 \end_inset
3520
3521 .
3522  The methods 
3523 \begin_inset Quotes eld
3524 \end_inset
3525
3526 include
3527 \begin_inset Quotes erd
3528 \end_inset
3529
3530  and 
3531 \begin_inset Quotes eld
3532 \end_inset
3533
3534 input
3535 \begin_inset Quotes erd
3536 \end_inset
3537
3538  are similar in many ways, but there are also some notable differences:
3539 \end_layout
3540
3541 \begin_layout Enumerate
3542 Files that are 
3543 \begin_inset Quotes eld
3544 \end_inset
3545
3546 included
3547 \begin_inset Quotes erd
3548 \end_inset
3549
3550  are typeset beginning on a new page, while files that are 
3551 \begin_inset Quotes eld
3552 \end_inset
3553
3554 inputted
3555 \begin_inset Quotes erd
3556 \end_inset
3557
3558  are typeset starting on the current page.
3559 \end_layout
3560
3561 \begin_layout Enumerate
3562 \begin_inset Quotes eld
3563 \end_inset
3564
3565 Included
3566 \begin_inset Quotes erd
3567 \end_inset
3568
3569  files cannot themselves 
3570 \begin_inset Quotes eld
3571 \end_inset
3572
3573 include
3574 \begin_inset Quotes erd
3575 \end_inset
3576
3577  further files (
3578 \begin_inset Quotes eld
3579 \end_inset
3580
3581 grandchilds
3582 \begin_inset Quotes erd
3583 \end_inset
3584
3585 ).
3586  With 
3587 \begin_inset Quotes eld
3588 \end_inset
3589
3590 input
3591 \begin_inset Quotes erd
3592 \end_inset
3593
3594 , on the other hand, infinite sub-inputting is possible.
3595 \end_layout
3596
3597 \begin_layout Enumerate
3598 \begin_inset Quotes eld
3599 \end_inset
3600
3601 Include
3602 \begin_inset Quotes erd
3603 \end_inset
3604
3605  allow for the output of only selected 
3606 \begin_inset Quotes eld
3607 \end_inset
3608
3609 included
3610 \begin_inset Quotes erd
3611 \end_inset
3612
3613  files, while maintaining the actual counters (pagination etc.) and references
3614  (please refer to the section 
3615 \emph on
3616 Child
3617 \begin_inset space ~
3618 \end_inset
3619
3620 Documents
3621 \emph default
3622  of the 
3623 \emph on
3624 Embedded
3625 \begin_inset space ~
3626 \end_inset
3627
3628 Objects
3629 \emph default
3630  manual for details).
3631 \end_layout
3632
3633 \begin_layout Standard
3634 Hence, 
3635 \begin_inset Quotes eld
3636 \end_inset
3637
3638 include
3639 \begin_inset Quotes erd
3640 \end_inset
3641
3642  is the preferred method for chapters that are outsourced to child documents,
3643  while 
3644 \begin_inset Quotes eld
3645 \end_inset
3646
3647 input
3648 \begin_inset Quotes erd
3649 \end_inset
3650
3651  is more suitable for arbitrary file inheritance.
3652 \end_layout
3653
3654 \begin_layout Standard
3655
3656 \begin_inset Quotes eld
3657 \end_inset
3658
3659 verbatim
3660 \begin_inset Quotes erd
3661 \end_inset
3662
3663  included file allows you to include a file typeset exactly as it appears
3664  in the file, i.
3665 \begin_inset space \thinspace{}
3666 \end_inset
3667
3668 e.
3669 \begin_inset space \space{}
3670 \end_inset
3671
3672 in 
3673 \begin_inset Flex Code
3674 status collapsed
3675
3676 \begin_layout Plain Layout
3677 verbatim
3678 \end_layout
3679
3680 \end_inset
3681
3682  mode, with the characters set in a fixed-width typewriter font.
3683  Normally, spaces in this file are invisible, though two consecutive spaces
3684  are conserved, unlike \SpecialChar LyX
3685 's normal treatment of spaces.
3686  However, setting the 
3687 \begin_inset Flex Noun
3688 status collapsed
3689
3690 \begin_layout Plain Layout
3691 Mark
3692 \begin_inset space ~
3693 \end_inset
3694
3695 spaces
3696 \begin_inset space ~
3697 \end_inset
3698
3699 in
3700 \begin_inset space ~
3701 \end_inset
3702
3703 output
3704 \end_layout
3705
3706 \end_inset
3707
3708  checkbox typesets a mark to unambiguously define the presence of a space.
3709  
3710 \end_layout
3711
3712 \begin_layout Standard
3713 Generally, the master file is converted into a full \SpecialChar LaTeX
3714  file before typesetting,
3715  while the included files are converted to \SpecialChar LaTeX
3716  files that do not have all the
3717  preamble information.
3718 \end_layout
3719
3720 \begin_layout Subsection
3721 Cross-References Between Files
3722 \end_layout
3723
3724 \begin_layout Standard
3725 \begin_inset Box Shadowbox
3726 position "t"
3727 hor_pos "c"
3728 has_inner_box 1
3729 inner_pos "t"
3730 use_parbox 0
3731 use_makebox 0
3732 width "100col%"
3733 special "none"
3734 height "1in"
3735 height_special "totalheight"
3736 thickness "0.4pt"
3737 separation "3pt"
3738 shadowsize "4pt"
3739 framecolor "black"
3740 backgroundcolor "none"
3741 status open
3742
3743 \begin_layout Plain Layout
3744 This section is somewhat out of date.
3745  Need to describe default master documents and how children are opened when
3746  the master is.
3747  [[FIXME]]
3748 \end_layout
3749
3750 \end_inset
3751
3752
3753 \end_layout
3754
3755 \begin_layout Standard
3756 It is possible to set up cross-references between the different files.
3757  First, open all the files in question: let's call them A and B in a two
3758  file example, where B is included in A.
3759  Let's say you insert a label in A, then want to reference it in B.
3760  Open the cross-reference dialog whilst in document B, and you can select
3761  the 
3762 \begin_inset Quotes eld
3763 \end_inset
3764
3765 buffer
3766 \begin_inset Quotes erd
3767 \end_inset
3768
3769  to use.
3770 \end_layout
3771
3772 \begin_layout Subsection
3773 Bibliography Lists in all Subdocuments
3774 \end_layout
3775
3776 \begin_layout Standard
3777 If you work with child documents, you might want to have only one main bibliogra
3778 phy at the end, but still be able to have a selected bibliography for the
3779  child if you output it on its own.
3780  Here is how to achieve this.
3781 \end_layout
3782
3783 \begin_layout Standard
3784 For the main document, you just insert a bibliography inset at the place
3785  where the main bibliography has to appear (within the master file or within
3786  a child).
3787  If the bibliography inset is in the master file, the references will be
3788  inherited by all children, so they are available in the citation dialog
3789  within each child.
3790 \end_layout
3791
3792 \begin_layout Standard
3793 For child-specific bibliographies, insert bibliography insets within the
3794  child documents, at the place where the bibliography should appear when
3795  the child is compiled separately.
3796  However, the trick is to insert them into a branch (
3797 \family sans
3798 Insert\SpecialChar menuseparator
3799 Branch\SpecialChar menuseparator
3800 Insert New Branch...
3801 \family default
3802 ), e.
3803 \begin_inset space \thinspace{}
3804 \end_inset
3805
3806 g.
3807  called 
3808 \begin_inset Quotes eld
3809 \end_inset
3810
3811 Childonly
3812 \begin_inset Quotes erd
3813 \end_inset
3814
3815 .
3816  Within the children, activate the branch (
3817 \family sans
3818 Document\SpecialChar menuseparator
3819 Settings...\SpecialChar menuseparator
3820 Branches
3821 \family default
3822 ).
3823  Within the master, deactivate the branch (
3824 \family sans
3825 Document\SpecialChar menuseparator
3826 Settings...\SpecialChar menuseparator
3827 Branches
3828 \family default
3829 ).
3830  Now the child's bibliography will be ignored by the master, but considered
3831  by the child.
3832 \end_layout
3833
3834 \begin_layout Standard
3835 If you need multiple bibliographies (e.
3836 \begin_inset space \thinspace{}
3837 \end_inset
3838
3839 g., one per child in the 
3840 \emph on
3841 main document
3842 \emph default
3843 ), please refer to sec.
3844 \begin_inset space ~
3845 \end_inset
3846
3847
3848 \begin_inset CommandInset ref
3849 LatexCommand ref
3850 reference "subsec:Multiple-Bibliographies"
3851
3852 \end_inset
3853
3854 .
3855 \end_layout
3856
3857 \begin_layout Section
3858 \SpecialChar LyX
3859  Archives
3860 \end_layout
3861
3862 \begin_layout Standard
3863 Users sometimes need to be able to 
3864 \begin_inset Quotes eld
3865 \end_inset
3866
3867 bundle
3868 \begin_inset Quotes erd
3869 \end_inset
3870
3871  a \SpecialChar LyX
3872  file together with all the images (and other files) on which it depends,
3873  either for sending to a publisher or for sharing with a co-author.
3874  \SpecialChar LyX
3875  includes a Python script (
3876 \begin_inset Flex Code
3877 status collapsed
3878
3879 \begin_layout Plain Layout
3880 lyxpak.py
3881 \end_layout
3882
3883 \end_inset
3884
3885 ) that automates this process.
3886  To use it, you must have either the 
3887 \begin_inset Flex Code
3888 status collapsed
3889
3890 \begin_layout Plain Layout
3891 zipfile
3892 \end_layout
3893
3894 \end_inset
3895
3896  or 
3897 \begin_inset Flex Code
3898 status collapsed
3899
3900 \begin_layout Plain Layout
3901 tarfile
3902 \end_layout
3903
3904 \end_inset
3905
3906  python modules installed on your system.
3907  By default, the script prefers the 
3908 \begin_inset Flex Code
3909 status collapsed
3910
3911 \begin_layout Plain Layout
3912 gzip
3913 \end_layout
3914
3915 \end_inset
3916
3917 -compressed 
3918 \begin_inset Flex Code
3919 status collapsed
3920
3921 \begin_layout Plain Layout
3922 tar
3923 \end_layout
3924
3925 \end_inset
3926
3927  format on Unix-like systems and the 
3928 \begin_inset Flex Code
3929 status collapsed
3930
3931 \begin_layout Plain Layout
3932 zip
3933 \end_layout
3934
3935 \end_inset
3936
3937  format on Windows.
3938 \end_layout
3939
3940 \begin_layout Standard
3941 \SpecialChar LyX
3942 's configuration process will set the script up to export a `\SpecialChar LyX
3943  Archive',
3944  and this format will then be available under 
3945 \begin_inset Flex Code
3946 status collapsed
3947
3948 \begin_layout Plain Layout
3949 File\SpecialChar menuseparator
3950 Export
3951 \end_layout
3952
3953 \end_inset
3954
3955 .
3956 \end_layout
3957
3958 \begin_layout Standard
3959 Independently of the platform, the generation of a particular archive format
3960  can be forced by adding either the 
3961 \begin_inset Flex Code
3962 status collapsed
3963
3964 \begin_layout Plain Layout
3965 -t
3966 \end_layout
3967
3968 \end_inset
3969
3970  (for the 
3971 \begin_inset Flex Code
3972 status collapsed
3973
3974 \begin_layout Plain Layout
3975 tar
3976 \end_layout
3977
3978 \end_inset
3979
3980  format) or 
3981 \begin_inset Flex Code
3982 status collapsed
3983
3984 \begin_layout Plain Layout
3985 -z
3986 \end_layout
3987
3988 \end_inset
3989
3990  (for the 
3991 \begin_inset Flex Code
3992 status collapsed
3993
3994 \begin_layout Plain Layout
3995 zip
3996 \end_layout
3997
3998 \end_inset
3999
4000  format) switch to the 
4001 \begin_inset Flex Code
4002 status collapsed
4003
4004 \begin_layout Plain Layout
4005 \SpecialChar LyX
4006 \SpecialChar menuseparator
4007 \SpecialChar LyX
4008  Archive
4009 \end_layout
4010
4011 \end_inset
4012
4013  converter in 
4014 \begin_inset Flex Code
4015 status collapsed
4016
4017 \begin_layout Plain Layout
4018 Tools\SpecialChar menuseparator
4019 Preferences\SpecialChar menuseparator
4020 File Handling\SpecialChar menuseparator
4021 Converters
4022 \end_layout
4023
4024 \end_inset
4025
4026 .
4027  (Make sure you add the switch after the script name, not before it.)
4028 \end_layout
4029
4030 \begin_layout Section
4031 Fancy Headers and Footers
4032 \end_layout
4033
4034 \begin_layout Standard
4035 The default page layout is rather plain; for an 
4036 \begin_inset Flex Code
4037 status collapsed
4038
4039 \begin_layout Plain Layout
4040 article
4041 \end_layout
4042
4043 \end_inset
4044
4045  document class, all you get is a centered page number at the bottom of
4046  the page.
4047  This document uses KOMA-script's book class, so it appears to be a bit
4048  fancier.
4049  But to really put on a show, you need to set the document page style to
4050  
4051 \begin_inset Quotes eld
4052 \end_inset
4053
4054 fancy
4055 \begin_inset Quotes erd
4056 \end_inset
4057
4058 , as mentioned in the 
4059 \emph on
4060 User Guide
4061 \emph default
4062 .
4063  This section describes the \SpecialChar LaTeX
4064  code you need to insert in your \SpecialChar LaTeX
4065  preamble in
4066  order to get the desired effects.
4067 \end_layout
4068
4069 \begin_layout Standard
4070 For more information on fancy headers, see the 
4071 \begin_inset Flex Code
4072 status collapsed
4073
4074 \begin_layout Plain Layout
4075 fancyhdr
4076 \end_layout
4077
4078 \end_inset
4079
4080  package documentation.
4081  (
4082 \begin_inset Flex URL
4083 status collapsed
4084
4085 \begin_layout Plain Layout
4086
4087 https://www.ctan.org/tex-archive/help/Catalogue/entries/fancyhdr.html
4088 \end_layout
4089
4090 \end_inset
4091
4092 )
4093 \end_layout
4094
4095 \begin_layout Standard
4096 The page header is divided into three fields, not surprisingly labeled 
4097 \begin_inset Quotes eld
4098 \end_inset
4099
4100 left
4101 \begin_inset Quotes erd
4102 \end_inset
4103
4104
4105 \begin_inset Quotes eld
4106 \end_inset
4107
4108 center
4109 \begin_inset Quotes erd
4110 \end_inset
4111
4112 , and 
4113 \begin_inset Quotes eld
4114 \end_inset
4115
4116 right
4117 \begin_inset Quotes erd
4118 \end_inset
4119
4120 .
4121  The footer is also divided into these three fields.
4122  The \SpecialChar LaTeX
4123  commands to set these fields in the simplest manner are 
4124 \begin_inset Flex Code
4125 status collapsed
4126
4127 \begin_layout Plain Layout
4128
4129 \backslash
4130 lhead
4131 \end_layout
4132
4133 \end_inset
4134
4135
4136 \begin_inset Flex Code
4137 status collapsed
4138
4139 \begin_layout Plain Layout
4140
4141 \backslash
4142 chead
4143 \end_layout
4144
4145 \end_inset
4146
4147
4148 \begin_inset Flex Code
4149 status collapsed
4150
4151 \begin_layout Plain Layout
4152
4153 \backslash
4154 rhead
4155 \end_layout
4156
4157 \end_inset
4158
4159
4160 \begin_inset Flex Code
4161 status collapsed
4162
4163 \begin_layout Plain Layout
4164
4165 \backslash
4166 lfoot
4167 \end_layout
4168
4169 \end_inset
4170
4171 , etc.
4172  Suppose you wish to put your name in the upper left hand corner of each
4173  page.
4174  Simply insert the following command in the preamble: 
4175 \end_layout
4176
4177 \begin_layout Standard
4178
4179 \family typewriter
4180
4181 \backslash
4182 lhead{John Q.
4183  DocWriter}
4184 \end_layout
4185
4186 \begin_layout Standard
4187 You will now see your name in the upper left.
4188  If a field has a default entry that you would like to get rid of (often
4189  the page number appears in the central footer) simply include a command
4190  with a blank argument, e.
4191 \begin_inset space \thinspace{}
4192 \end_inset
4193
4194 g.:
4195 \end_layout
4196
4197 \begin_layout Standard
4198
4199 \family typewriter
4200
4201 \backslash
4202 cfoot{}
4203 \end_layout
4204
4205 \begin_layout Standard
4206 Let's get really fancy: lets put the section number with the word 
4207 \begin_inset Quotes eld
4208 \end_inset
4209
4210 Section
4211 \begin_inset Quotes erd
4212 \end_inset
4213
4214  (e.
4215 \begin_inset space \thinspace{}
4216 \end_inset
4217
4218 g.
4219 \begin_inset space \space{}
4220 \end_inset
4221
4222 Section 3) in the upper left, the page number (e.
4223 \begin_inset space \thinspace{}
4224 \end_inset
4225
4226 g.
4227 \begin_inset space \space{}
4228 \end_inset
4229
4230 Page 4) in the upper right, your name in the lower left, and the date in
4231  the lower right.
4232  The following commands should now appear in the preamble:
4233 \end_layout
4234
4235 \begin_layout Standard
4236
4237 \family typewriter
4238
4239 \backslash
4240 lhead{Section 
4241 \backslash
4242 thesection}
4243 \end_layout
4244
4245 \begin_layout Standard
4246
4247 \family typewriter
4248
4249 \backslash
4250 chead{}
4251 \end_layout
4252
4253 \begin_layout Standard
4254
4255 \family typewriter
4256
4257 \backslash
4258 rhead{Page 
4259 \backslash
4260 thepage}
4261 \end_layout
4262
4263 \begin_layout Standard
4264
4265 \family typewriter
4266
4267 \backslash
4268 lfoot{John Q.
4269  DocWriter}
4270 \end_layout
4271
4272 \begin_layout Standard
4273
4274 \family typewriter
4275
4276 \backslash
4277 cfoot{}
4278 \end_layout
4279
4280 \begin_layout Standard
4281
4282 \family typewriter
4283
4284 \backslash
4285 rfoot{
4286 \backslash
4287 today}
4288 \end_layout
4289
4290 \begin_layout Standard
4291 The commands 
4292 \begin_inset Flex Code
4293 status collapsed
4294
4295 \begin_layout Plain Layout
4296
4297 \backslash
4298 thesection
4299 \end_layout
4300
4301 \end_inset
4302
4303  and 
4304 \begin_inset Flex Code
4305 status collapsed
4306
4307 \begin_layout Plain Layout
4308
4309 \backslash
4310 thepage
4311 \end_layout
4312
4313 \end_inset
4314
4315  access \SpecialChar LaTeX
4316 's section and page counters, and so print out the current section
4317  and page number.
4318  
4319 \begin_inset Flex Code
4320 status collapsed
4321
4322 \begin_layout Plain Layout
4323
4324 \backslash
4325 today
4326 \end_layout
4327
4328 \end_inset
4329
4330  simply prints out today's date.
4331 \end_layout
4332
4333 \begin_layout Standard
4334 The thicknesses of the horizontal rules drawn beneath the header and above
4335  the footer can also be modified.
4336  If you don't want one of the rules, set its thickness to 0.
4337  The header rule has a default thickness of 0.4pt, the footer rule is 0pt.
4338  Use commands
4339 \family typewriter
4340  
4341 \family default
4342 like 
4343 \begin_inset Flex Code
4344 status collapsed
4345
4346 \begin_layout Plain Layout
4347
4348 \backslash
4349 renewcommand{
4350 \backslash
4351 headrulewidth}{0.4pt}
4352 \end_layout
4353
4354 \end_inset
4355
4356  and 
4357 \begin_inset Flex Code
4358 status collapsed
4359
4360 \begin_layout Plain Layout
4361
4362 \backslash
4363 renewcommand{
4364 \backslash
4365 footrulewidth}{0.4pt}
4366 \end_layout
4367
4368 \end_inset
4369
4370  to set the thicknesses.
4371 \end_layout
4372
4373 \begin_layout Standard
4374 You can switch the header/footer settings on and off for individual pages
4375  using commands like 
4376 \begin_inset Flex Code
4377 status collapsed
4378
4379 \begin_layout Plain Layout
4380
4381 \backslash
4382 thispagestyle{empty}
4383 \end_layout
4384
4385 \end_inset
4386
4387
4388 \begin_inset Flex Code
4389 status collapsed
4390
4391 \begin_layout Plain Layout
4392
4393 \backslash
4394 thispagestyle{plain}
4395 \end_layout
4396
4397 \end_inset
4398
4399 , and 
4400 \begin_inset Flex Code
4401 status collapsed
4402
4403 \begin_layout Plain Layout
4404
4405 \backslash
4406 thispagestyle{fancy}
4407 \end_layout
4408
4409 \end_inset
4410
4411 .
4412  Simply insert them in the text on the page you want changed and mark them
4413  as \SpecialChar TeX
4414  code.
4415  In fact, title pages are marked as plain by default, while following pages
4416  are marked fancy when using the global fancy setting.
4417 \end_layout
4418
4419 \begin_layout Standard
4420 As a final example, it is possible to include an image in the header or
4421  footer.
4422  Suppose you want to put a company logo in the upper lefthand corner.
4423  You might try something like
4424 \end_layout
4425
4426 \begin_layout Standard
4427
4428 \family typewriter
4429
4430 \backslash
4431 lhead{
4432 \backslash
4433 resizebox{1in}{!}{
4434 \backslash
4435 includegraphics{logo.eps}}}
4436 \end_layout
4437
4438 \begin_layout Standard
4439 \noindent
4440 (you may need to preface this with 
4441 \begin_inset Flex Code
4442 status collapsed
4443
4444 \begin_layout Plain Layout
4445
4446 \backslash
4447 usepackage{graphics}
4448 \end_layout
4449
4450 \end_inset
4451
4452  if you don't include graphics elsewhere in your document).
4453 \end_layout
4454
4455 \begin_layout Section
4456 Itemize Bullet Selection
4457 \begin_inset CommandInset label
4458 LatexCommand label
4459 name "sec:bullet"
4460
4461 \end_inset
4462
4463
4464 \end_layout
4465
4466 \begin_layout Standard
4467 by
4468 \noun on
4469  Allan Rae
4470 \end_layout
4471
4472 \begin_layout Subsection
4473 Introduction
4474 \end_layout
4475
4476 \begin_layout Standard
4477 \SpecialChar LyX
4478  provides 216 bullet shapes that can be accessed from a simple dialog.
4479  Using this dialog you can easily specify what bullet shape to use at each
4480  level of an itemized list.
4481  These settings are document-wide so you won't be able to specify different
4482  sets of bullets for different paragraphs.
4483 \begin_inset Foot
4484 status collapsed
4485
4486 \begin_layout Plain Layout
4487 Well, actually you can but you'll have to do it by hand.
4488 \end_layout
4489
4490 \end_inset
4491
4492
4493 \end_layout
4494
4495 \begin_layout Subsection
4496 How it looks
4497 \end_layout
4498
4499 \begin_layout Standard
4500 Open the dialog by selecting the 
4501 \begin_inset Flex Noun
4502 status collapsed
4503
4504 \begin_layout Plain Layout
4505 Document\SpecialChar menuseparator
4506 Settings
4507 \end_layout
4508
4509 \end_inset
4510
4511  menu item and then select the 
4512 \begin_inset Flex Noun
4513 status collapsed
4514
4515 \begin_layout Plain Layout
4516 Bullets
4517 \end_layout
4518
4519 \end_inset
4520
4521  tab.
4522 \end_layout
4523
4524 \begin_layout Standard
4525 The dialog provides you with a table of bullet shapes.
4526  A column of buttons on the left of the table provides access to the six
4527  different panels of bullet shapes.
4528  The row of buttons across the top is used to select which bullet depth
4529  you are changing.
4530
4531 \change_deleted 244031559 1603875981
4532  A text entry under the table shows the currently selected bullet shape's
4533  \SpecialChar LaTeX
4534  equivalent and this can be edited if desired.
4535  If you do modify the text you will also need to specify any needed packages
4536  in the \SpecialChar LaTeX
4537  preamble.
4538 \change_unchanged
4539
4540 \end_layout
4541
4542 \begin_layout Standard
4543 The six panels are divided up by the packages they require.
4544  The following table shows the mappings from button name to \SpecialChar LaTeX
4545  package.
4546 \end_layout
4547
4548 \begin_layout Standard
4549 \align center
4550 \begin_inset Tabular
4551 <lyxtabular version="3" rows="7" columns="2">
4552 <features tabularvalignment="middle">
4553 <column alignment="center" valignment="top" width="0pt">
4554 <column alignment="center" valignment="top" width="0pt">
4555 <row>
4556 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4557 \begin_inset Text
4558
4559 \begin_layout Plain Layout
4560
4561 \family roman
4562 \series medium
4563 \shape up
4564 \size normal
4565 \emph off
4566 \bar no
4567 \noun off
4568 \color none
4569 Button
4570 \end_layout
4571
4572 \end_inset
4573 </cell>
4574 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4575 \begin_inset Text
4576
4577 \begin_layout Plain Layout
4578
4579 \family roman
4580 \series medium
4581 \shape up
4582 \size normal
4583 \emph off
4584 \bar no
4585 \noun off
4586 \color none
4587 Packages Required
4588 \end_layout
4589
4590 \end_inset
4591 </cell>
4592 </row>
4593 <row>
4594 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4595 \begin_inset Text
4596
4597 \begin_layout Plain Layout
4598
4599 \family sans
4600 \series medium
4601 \shape up
4602 \size normal
4603 \emph off
4604 \bar no
4605 \noun off
4606 \color none
4607 Standard
4608 \end_layout
4609
4610 \end_inset
4611 </cell>
4612 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4613 \begin_inset Text
4614
4615 \begin_layout Plain Layout
4616
4617 \series medium
4618 \shape up
4619 \size normal
4620 \emph off
4621 \bar no
4622 \noun off
4623 \color none
4624 base \SpecialChar LaTeX
4625
4626 \end_layout
4627
4628 \end_inset
4629 </cell>
4630 </row>
4631 <row>
4632 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4633 \begin_inset Text
4634
4635 \begin_layout Plain Layout
4636
4637 \family sans
4638 \series medium
4639 \shape up
4640 \size normal
4641 \emph off
4642 \bar no
4643 \noun off
4644 \color none
4645 Maths
4646 \end_layout
4647
4648 \end_inset
4649 </cell>
4650 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4651 \begin_inset Text
4652
4653 \begin_layout Plain Layout
4654
4655 \family typewriter
4656 \series medium
4657 \shape up
4658 \size normal
4659 \emph off
4660 \bar no
4661 \noun off
4662 \color none
4663 amssymb.sty
4664 \end_layout
4665
4666 \end_inset
4667 </cell>
4668 </row>
4669 <row>
4670 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4671 \begin_inset Text
4672
4673 \begin_layout Plain Layout
4674
4675 \family sans
4676 \series medium
4677 \shape up
4678 \size normal
4679 \emph off
4680 \bar no
4681 \noun off
4682 \color none
4683 Ding1
4684 \end_layout
4685
4686 \end_inset
4687 </cell>
4688 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4689 \begin_inset Text
4690
4691 \begin_layout Plain Layout
4692
4693 \family typewriter
4694 \series medium
4695 \shape up
4696 \size normal
4697 \emph off
4698 \bar no
4699 \noun off
4700 \color none
4701 pifont.sty
4702 \end_layout
4703
4704 \end_inset
4705 </cell>
4706 </row>
4707 <row>
4708 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4709 \begin_inset Text
4710
4711 \begin_layout Plain Layout
4712
4713 \family sans
4714 \series medium
4715 \shape up
4716 \size normal
4717 \emph off
4718 \bar no
4719 \noun off
4720 \color none
4721 Ding2
4722 \end_layout
4723
4724 \end_inset
4725 </cell>
4726 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4727 \begin_inset Text
4728
4729 \begin_layout Plain Layout
4730
4731 \family typewriter
4732 \series medium
4733 \shape up
4734 \size normal
4735 \emph off
4736 \bar no
4737 \noun off
4738 \color none
4739 pifont.sty
4740 \end_layout
4741
4742 \end_inset
4743 </cell>
4744 </row>
4745 <row>
4746 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4747 \begin_inset Text
4748
4749 \begin_layout Plain Layout
4750
4751 \family sans
4752 \series medium
4753 \shape up
4754 \size normal
4755 \emph off
4756 \bar no
4757 \noun off
4758 \color none
4759 Ding3
4760 \end_layout
4761
4762 \end_inset
4763 </cell>
4764 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4765 \begin_inset Text
4766
4767 \begin_layout Plain Layout
4768
4769 \family typewriter
4770 \series medium
4771 \shape up
4772 \size normal
4773 \emph off
4774 \bar no
4775 \noun off
4776 \color none
4777 pifont.sty
4778 \end_layout
4779
4780 \end_inset
4781 </cell>
4782 </row>
4783 <row>
4784 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4785 \begin_inset Text
4786
4787 \begin_layout Plain Layout
4788
4789 \family sans
4790 \series medium
4791 \shape up
4792 \size normal
4793 \emph off
4794 \bar no
4795 \noun off
4796 \color none
4797 Ding4
4798 \end_layout
4799
4800 \end_inset
4801 </cell>
4802 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4803 \begin_inset Text
4804
4805 \begin_layout Plain Layout
4806
4807 \family typewriter
4808 \series medium
4809 \shape up
4810 \size normal
4811 \emph off
4812 \bar no
4813 \noun off
4814 \color none
4815 pifont.sty
4816 \end_layout
4817
4818 \end_inset
4819 </cell>
4820 </row>
4821 </lyxtabular>
4822
4823 \end_inset
4824
4825
4826 \end_layout
4827
4828 \begin_layout Standard
4829 \SpecialChar LyX
4830  doesn't stop you using bullets from packages you don't have.
4831  If you get errors from \SpecialChar LaTeX
4832  when you try to view or print the file, then it
4833  is likely you are missing a package.
4834 \begin_inset Foot
4835 status collapsed
4836
4837 \begin_layout Plain Layout
4838 \SpecialChar LyX
4839  doesn't restrict your use since you may be editing locally and exporting
4840  elsewhere.
4841 \end_layout
4842
4843 \end_inset
4844
4845
4846 \end_layout
4847
4848 \begin_layout Subsection
4849 How to use it
4850 \end_layout
4851
4852 \begin_layout Standard
4853 Select which bullet depth you want to change then select the bullet shape
4854  and size.
4855  Any changes will not be visible in \SpecialChar LyX
4856 , but are visible when viewing the document.
4857 \end_layout
4858
4859 \begin_layout Standard
4860 You can reset a bullet shape to the default simply by clicking your right
4861  mouse button on the appropriate bullet depth button.
4862 \begin_inset Foot
4863 status open
4864
4865 \begin_layout Plain Layout
4866 If you 
4867 \emph on
4868 really
4869 \emph default
4870  want to have multiple sets of paragraphs with different sets of bullets
4871  in each, then you're going to have to get your hands dirty with \SpecialChar TeX
4872  code.
4873  The bullet selection dialog can help though because it provides you with
4874  the \SpecialChar LaTeX
4875  code for a wide range of bullet shapes.
4876  To make your own custom paragraphs you have the following options:
4877 \end_layout
4878
4879 \begin_layout Plain Layout
4880 \begin_inset ERT
4881 status open
4882
4883 \begin_layout Plain Layout
4884
4885
4886 \backslash
4887 let
4888 \backslash
4889 savelabelitemi=
4890 \backslash
4891 labelitemi
4892 \end_layout
4893
4894 \end_inset
4895
4896
4897 \end_layout
4898
4899 \begin_layout Plain Layout
4900 \begin_inset ERT
4901 status open
4902
4903 \begin_layout Plain Layout
4904
4905
4906 \backslash
4907 renewcommand
4908 \backslash
4909 labelitemi[0]{
4910 \backslash
4911 small
4912 \backslash
4913 (
4914 \backslash
4915 sharp
4916 \backslash
4917 )}
4918 \end_layout
4919
4920 \end_inset
4921
4922
4923 \end_layout
4924
4925 \begin_layout Itemize
4926 Use the \SpecialChar LaTeX
4927  command 
4928 \begin_inset Flex Code
4929 status collapsed
4930
4931 \begin_layout Plain Layout
4932
4933 \backslash
4934 renewcommand{}{}
4935 \end_layout
4936
4937 \end_inset
4938
4939  to specify a new bullet shape for a given depth.
4940  You'll also need to save the current bullet shape so you can restore it
4941  again afterwards.
4942  In this itemized list the following \SpecialChar LaTeX
4943  code was used to change the bullet
4944  used for the first depth.
4945 \end_layout
4946
4947 \begin_deeper
4948 \begin_layout LyX-Code
4949
4950 \backslash
4951 let
4952 \backslash
4953 savelabelitemi=
4954 \backslash
4955 labelitemi 
4956 \end_layout
4957
4958 \begin_layout LyX-Code
4959
4960 \backslash
4961 renewcommand
4962 \backslash
4963 labelitemi[0]{
4964 \backslash
4965 small
4966 \backslash
4967 (
4968 \backslash
4969 sharp
4970 \backslash
4971 )}
4972 \end_layout
4973
4974 \end_deeper
4975 \begin_layout Itemize
4976 Note that the itemize depth is specified in Roman numerals as part of the
4977  
4978 \family typewriter
4979
4980 \backslash
4981 labelitem
4982 \family default
4983  command.
4984 \end_layout
4985
4986 \begin_layout Itemize
4987 \begin_inset Argument item:1
4988 status open
4989
4990 \begin_layout Plain Layout
4991 \begin_inset ERT
4992 status open
4993
4994 \begin_layout Plain Layout
4995
4996
4997 \backslash
4998 (
4999 \backslash
5000 star
5001 \backslash
5002 )
5003 \end_layout
5004
5005 \end_inset
5006
5007
5008 \end_layout
5009
5010 \end_inset
5011
5012  Specify each individual entry by starting each item with the bullet shape
5013  enclosed in a 
5014 \begin_inset Quotes eld
5015 \end_inset
5016
5017 Custom Item
5018 \begin_inset Quotes erd
5019 \end_inset
5020
5021  inset (available at 
5022 \family sans
5023 Insert\SpecialChar menuseparator
5024 Custom Item
5025 \family default
5026 ) and set as 
5027 \begin_inset Flex Noun
5028 status collapsed
5029
5030 \begin_layout Plain Layout
5031 \SpecialChar TeX
5032  Code
5033 \end_layout
5034
5035 \end_inset
5036
5037 .
5038  For example, this item was started with 
5039 \begin_inset Flex Code
5040 status collapsed
5041
5042 \begin_layout Plain Layout
5043
5044 \backslash
5045 (
5046 \backslash
5047 star
5048 \backslash
5049 )
5050 \end_layout
5051
5052 \end_inset
5053
5054 .
5055 \end_layout
5056
5057 \begin_layout Plain Layout
5058 \begin_inset ERT
5059 status open
5060
5061 \begin_layout Plain Layout
5062
5063
5064 \backslash
5065 renewcommand
5066 \backslash
5067 labelitemi[0]{
5068 \backslash
5069 savelabelitemi}
5070 \end_layout
5071
5072 \end_inset
5073
5074
5075 \end_layout
5076
5077 \begin_layout Plain Layout
5078 You'll also need to revert the labelitem back to its previous setting for
5079  the global bullet shape settings to remain in effect.
5080  The way used here was:
5081 \end_layout
5082
5083 \begin_layout LyX-Code
5084
5085 \backslash
5086 renewcommand
5087 \backslash
5088 labelitemi[0]{
5089 \backslash
5090 savelabelitemi}
5091 \end_layout
5092
5093 \end_inset
5094
5095
5096 \end_layout
5097
5098 \begin_layout Chapter
5099 \SpecialChar LyX
5100  and the World Wide Web
5101 \end_layout
5102
5103 \begin_layout Standard
5104 \SpecialChar LyX
5105  has long supported the export of documents to various web-friendly formats,
5106  such as HTML.
5107  Before version 2.0, however, HTML export was always accomplished by the
5108  use of external converters.
5109 \begin_inset Foot
5110 status collapsed
5111
5112 \begin_layout Plain Layout
5113 For details on the use of external converters with \SpecialChar LyX
5114 , see the 
5115 \emph on
5116 Converters
5117 \emph default
5118  section of the Customization manual.
5119 \end_layout
5120
5121 \end_inset
5122
5123  These fall into two large groups: there are converters that use \SpecialChar LaTeX
5124  as an
5125  intermediate format, such as 
5126 \begin_inset Flex Code
5127 status collapsed
5128
5129 \begin_layout Plain Layout
5130 htlatex
5131 \end_layout
5132
5133 \end_inset
5134
5135
5136 \begin_inset Flex Code
5137 status collapsed
5138
5139 \begin_layout Plain Layout
5140 html2latex
5141 \end_layout
5142
5143 \end_inset
5144
5145 , and 
5146 \begin_inset Flex Code
5147 status collapsed
5148
5149 \begin_layout Plain Layout
5150 plastex
5151 \end_layout
5152
5153 \end_inset
5154
5155 , relying upon \SpecialChar LyX
5156  to produce the \SpecialChar LaTeX
5157 ; and there is a converter that works directly
5158  on \SpecialChar LyX
5159  files, 
5160 \begin_inset Flex Code
5161 status collapsed
5162
5163 \begin_layout Plain Layout
5164 e\SpecialChar LyX
5165 er
5166 \end_layout
5167
5168 \end_inset
5169
5170 .
5171  All of these have different advantages and disadvantages.
5172  
5173 \end_layout
5174
5175 \begin_layout Standard
5176 The \SpecialChar LaTeX
5177 -based converters have the advantage that, in principle, they know everythin
5178 g about the exported document that \SpecialChar LaTeX
5179  does.
5180  Such converters do not care, for example, if a certain block of code was
5181  produced by \SpecialChar LyX
5182  or was Evil Red Text.
5183  These converters know about 
5184 \begin_inset Flex Code
5185 status collapsed
5186
5187 \begin_layout Plain Layout
5188 aux
5189 \end_layout
5190
5191 \end_inset
5192
5193  files, counters, and references, and can often make use of the 
5194 \begin_inset Flex Code
5195 status collapsed
5196
5197 \begin_layout Plain Layout
5198 bbl
5199 \end_layout
5200
5201 \end_inset
5202
5203  files generated by Bib\SpecialChar TeX
5204 .
5205  On the other hand, \SpecialChar LaTeX
5206  is a very hard language to parse—it is sometimes said
5207  that only \SpecialChar TeX
5208  itself understands \SpecialChar TeX
5209 —and \SpecialChar LaTeX
5210 -based converters will often choke on
5211  what seem to be quite simple constructs; complex ones can throw them completely
5212 , and as of this writing, for example, the 
5213 \emph on
5214 Embedded Objects
5215 \emph default
5216  manual will not export with 
5217 \begin_inset Flex Code
5218 status collapsed
5219
5220 \begin_layout Plain Layout
5221 htlatex
5222 \end_layout
5223
5224 \end_inset
5225
5226 , though the others will.
5227  The other issue concerns how math is handled.
5228  These converters typically convert the formulae into little pictures that
5229  are then linked from the HTML document.
5230  Since these are actually generated by \SpecialChar LaTeX
5231 , they are accurate.
5232  But they do not scale well, and just getting them to look as if they are
5233  actually meant to be in your document—so that the font sizes seem to be
5234  roughly the same—can be a challenge.
5235 \end_layout
5236
5237 \begin_layout Standard
5238 Alex Fernandez's 
5239 \begin_inset Flex Code
5240 status collapsed
5241
5242 \begin_layout Plain Layout
5243 e\SpecialChar LyX
5244 er
5245 \end_layout
5246
5247 \end_inset
5248
5249  (
5250 \begin_inset CommandInset href
5251 LatexCommand href
5252 name "http://pinchito.es/elyxer/"
5253 target "http://pinchito.es/elyxer/"
5254 literal "false"
5255
5256 \end_inset
5257
5258 ) solves some of these problems.
5259  In particular, the formulae it produces scale perfectly, since it renders
5260  math using a combination of HTML and CSS rather than converting the formulae
5261  to images.
5262  But even moderately complex formula are rendered less well than with 
5263 \begin_inset Flex Code
5264 status collapsed
5265
5266 \begin_layout Plain Layout
5267 htlatex
5268 \end_layout
5269
5270 \end_inset
5271
5272 ; this reflects the limitations of HTML.
5273 \begin_inset Foot
5274 status collapsed
5275
5276 \begin_layout Plain Layout
5277 That said, 
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  can also use jsMath and MathJax for equations, but this setting is only
5289  available globally and requires one to have access to a server that runs
5290  the backend.
5291 \end_layout
5292
5293 \end_inset
5294
5295  More importantly (as of version 1.1.1, at least), 
5296 \begin_inset Flex Code
5297 status collapsed
5298
5299 \begin_layout Plain Layout
5300 e\SpecialChar LyX
5301 er
5302 \end_layout
5303
5304 \end_inset
5305
5306  has limited support for math macros and no support for user-defined paragraph
5307  or character styles.
5308  These limitations make 
5309 \begin_inset Flex Code
5310 status collapsed
5311
5312 \begin_layout Plain Layout
5313 e\SpecialChar LyX
5314 er
5315 \end_layout
5316
5317 \end_inset
5318
5319  unsuitable for many of the documents \SpecialChar LyX
5320  users produce.
5321  In principle, of course, these problems could be solved, but the \SpecialChar LyX
5322  developers
5323  have decided to follow a different path and have made \SpecialChar LyX
5324  itself capable of
5325  writing XHTML, just as it is capable of writing \SpecialChar LaTeX
5326 , DocBook, and plaintext.
5327 \end_layout
5328
5329 \begin_layout Standard
5330 As of this writing, XHTML output remains under development and should probably
5331  be regarded as 
5332 \begin_inset Quotes eld
5333 \end_inset
5334
5335 experimental
5336 \begin_inset Quotes erd
5337 \end_inset
5338
5339 .
5340 \begin_inset Foot
5341 status collapsed
5342
5343 \begin_layout Plain Layout
5344 The file 
5345 \begin_inset Flex Code
5346 status collapsed
5347
5348 \begin_layout Plain Layout
5349 development/HTML/HTML.notes
5350 \end_layout
5351
5352 \end_inset
5353
5354 , which can be found in the \SpecialChar LyX
5355  source tree or 
5356 \begin_inset CommandInset href
5357 LatexCommand href
5358 name "accessed online"
5359 target "https://www.lyx.org/trac/browser/lyxgit/development/HTML/HTML.notes?rev=master"
5360 literal "false"
5361
5362 \end_inset
5363
5364 , usually contains up-to-date information about the state of XHTML output.
5365  See also the list of XHTML bugs on 
5366 \begin_inset CommandInset href
5367 LatexCommand href
5368 name "the bug tracker"
5369 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"
5370 literal "false"
5371
5372 \end_inset
5373
5374 .
5375 \end_layout
5376
5377 \end_inset
5378
5379  Still, the developers have chosen this approach because it has several
5380  potential advantages over the other two.
5381 \end_layout
5382
5383 \begin_layout Standard
5384 These advantages are primarily due to the fact that the XHTML output routines,
5385  since they are part of \SpecialChar LyX
5386 , know everything \SpecialChar LyX
5387  knows about the document being
5388  exported.
5389 \begin_inset Foot
5390 status collapsed
5391
5392 \begin_layout Plain Layout
5393 Another advantage is that, since these routines are internal to \SpecialChar LyX
5394 , they are
5395  immune to changes in \SpecialChar LyX
5396 's file format, or to changes in the semantics of
5397  existing insets.
5398 \end_layout
5399
5400 \end_inset
5401
5402  So they know about the table of contents (as displayed in the outline),
5403  about the counters associated with different paragraph styles, and about
5404  user-defined styles.
5405  The XHTML output routines know what \SpecialChar LyX
5406  knows about internationalization,
5407  too, so they will output 
5408 \begin_inset Quotes eld
5409 \end_inset
5410
5411 Chapter 1
5412 \begin_inset Quotes erd
5413 \end_inset
5414
5415  or 
5416 \begin_inset Quotes eld
5417 \end_inset
5418
5419
5420 \lang ngerman
5421 Kapitel
5422 \lang english
5423  1
5424 \begin_inset Quotes erd
5425 \end_inset
5426
5427 , depending upon the language in effect at the time.
5428  
5429 \end_layout
5430
5431 \begin_layout Standard
5432 Quite generally, the output routines know what \SpecialChar LyX
5433  knows about document layout,
5434  that is, about how the document is to be rendered on screen.
5435  We use this information when we output the document as XHTML.
5436  In particular, \SpecialChar LyX
5437  
5438 \emph on
5439 automatically
5440 \emph default
5441  generates CSS style information corresponding to the layout information
5442  it uses to render the document on screen: if section headings are supposed
5443  to be sans-serif and bold as seen in \SpecialChar LyX
5444 , then (by default) they will be sans-seri
5445 f and bold when viewed in a web browser, too.
5446  And this is true not just for pre-defined styles, like Section, but for
5447  any style, including user-defined styles.
5448  Indeed, the XHTML output routines make no distinction between user-defined
5449  paragraph and 
5450 \change_deleted 244031559 1603876931
5451 character
5452 \change_inserted 244031559 1603876940
5453 text
5454 \change_unchanged
5455  styles and \SpecialChar LyX
5456 's own pre-defined styles: in each case, everything \SpecialChar LyX
5457  knows about
5458  the styles is contained in the layout files.
5459  And much the same is true as regards pre-defined textual insets, such as
5460  footnotes, and various custom insets.
5461  
5462 \end_layout
5463
5464 \begin_layout Standard
5465 The result is that XHTML output can be customized and extended in exactly
5466  the same way \SpecialChar LaTeX
5467  output can be customized and extended: through layout files
5468  and modules.
5469  See chapter five of the 
5470 \emph on
5471 Customization 
5472 \emph default
5473 manual for the details.
5474 \end_layout
5475
5476 \begin_layout Standard
5477 The remainder of this chapter contains more detailed information on XHTML
5478  output, its limitations, and ways to work around those limitations.
5479 \end_layout
5480
5481 \begin_layout Section
5482 Math Output in XHTML
5483 \end_layout
5484
5485 \begin_layout Standard
5486 \SpecialChar LyX
5487  offers four choices for how math is rendered.
5488  These have various advantages and disadvantages:
5489 \end_layout
5490
5491 \begin_layout Itemize
5492 MathML
5493 \begin_inset Newline newline
5494 \end_inset
5495
5496 MathML is a dialect of XML designed specifically for mathematics on the
5497  web, and it typically renders very well in browsers that support it.
5498  The disadvantage is that not all browsers support MathML, and support is
5499  not complete even in the Gecko-based browsers, such as Firefox.
5500 \begin_inset Newline newline
5501 \end_inset
5502
5503 If \SpecialChar LyX
5504  is unable to render a formula as MathML—for example, if the formula
5505  uses the 
5506 \begin_inset Flex Code
5507 status collapsed
5508
5509 \begin_layout Plain Layout
5510 xymatrix
5511 \end_layout
5512
5513 \end_inset
5514
5515  package or ERT—then it will instead output the formula as an image.
5516  
5517 \end_layout
5518
5519 \begin_layout Itemize
5520 HTML
5521 \begin_inset Newline newline
5522 \end_inset
5523
5524 As mentioned above, 
5525 \begin_inset Flex Code
5526 status collapsed
5527
5528 \begin_layout Plain Layout
5529 elyxer
5530 \end_layout
5531
5532 \end_inset
5533
5534  outputs math as HTML, styled by CSS.
5535 \begin_inset Foot
5536 status collapsed
5537
5538 \begin_layout Plain Layout
5539 \SpecialChar LyX
5540  has borrowed some of the CSS for its HTML output from 
5541 \begin_inset Flex Code
5542 status collapsed
5543
5544 \begin_layout Plain Layout
5545 elyxer
5546 \end_layout
5547
5548 \end_inset
5549
5550 .
5551 \end_layout
5552
5553 \end_inset
5554
5555  For simple formulae, this can work quite well, though with more complicated
5556  formulae it tends to break down.
5557  Still, this method has the advantage that it is very widely supported and
5558  so it may be appropriate for documents that contain only a little, fairly
5559  simple math.
5560 \begin_inset Newline newline
5561 \end_inset
5562
5563 If Lyx is unable to render a formula as HTML—for example, if the formula
5564  uses the 
5565 \begin_inset Flex Code
5566 status collapsed
5567
5568 \begin_layout Plain Layout
5569 xymatrix
5570 \end_layout
5571
5572 \end_inset
5573
5574  package or ERT—then it will instead output the formula as an image.
5575  
5576 \end_layout
5577
5578 \begin_layout Itemize
5579 Images
5580 \begin_inset Newline newline
5581 \end_inset
5582
5583 Like 
5584 \begin_inset Flex Code
5585 status collapsed
5586
5587 \begin_layout Plain Layout
5588 htlatex
5589 \end_layout
5590
5591 \end_inset
5592
5593 , \SpecialChar LyX
5594  will output formulae as images, the very same images, in fact, that are
5595  used for instant preview.
5596 \begin_inset Foot
5597 status collapsed
5598
5599 \begin_layout Plain Layout
5600 Instant preview does 
5601 \emph on
5602 not 
5603 \emph default
5604 have to be on for images to be output, however.
5605 \end_layout
5606
5607 \end_inset
5608
5609  The advantage to this method is that the images are simply generated by
5610  \SpecialChar LaTeX
5611 , so they are very accurate.
5612  The disadvantage, as mentioned earlier, is that these are bitmapped images,
5613  so they do not scale terribly well, and one cannot copy them, etc.
5614 \begin_inset Newline newline
5615 \end_inset
5616
5617 The size of the images can be controlled by setting the 
5618 \begin_inset Quotes eld
5619 \end_inset
5620
5621 Math Images Scaling
5622 \begin_inset Quotes erd
5623 \end_inset
5624
5625  parameter under 
5626 \begin_inset Flex Noun
5627 status collapsed
5628
5629 \begin_layout Plain Layout
5630 Document\SpecialChar menuseparator
5631 Settings\SpecialChar menuseparator
5632 Formats
5633 \end_layout
5634
5635 \end_inset
5636
5637 .
5638 \begin_inset Foot
5639 status collapsed
5640
5641 \begin_layout Plain Layout
5642 For those who want to know, this controls the resolution of the image in
5643  dots per inch and is based upon a default of 75 dpi.
5644 \end_layout
5645
5646 \end_inset
5647
5648
5649 \begin_inset Newline newline
5650 \end_inset
5651
5652 If \SpecialChar LyX
5653  for some reason fails to create an image for a formula (e.g., if a required
5654  \SpecialChar LaTeX
5655  package is not installed), then it will fall back to outputing the raw
5656  \SpecialChar LaTeX
5657 .
5658 \end_layout
5659
5660 \begin_layout Itemize
5661 \SpecialChar LaTeX
5662
5663 \begin_inset Newline newline
5664 \end_inset
5665
5666 Finally, \SpecialChar LyX
5667  will happily output math as \SpecialChar LaTeX
5668 .
5669  As well as being the output of last resort, this method can be used with
5670  such tools as 
5671 \begin_inset CommandInset href
5672 LatexCommand href
5673 name "jsMath"
5674 target "http://www.math.union.edu/~dpvc/jsMath/"
5675 literal "false"
5676
5677 \end_inset
5678
5679 , which uses JavaScript to render \SpecialChar LaTeX
5680  embedded in HTML documents.
5681  \SpecialChar LyX
5682  wraps the \SpecialChar LaTeX
5683  in either a 
5684 \begin_inset Flex Code
5685 status collapsed
5686
5687 \begin_layout Plain Layout
5688 span
5689 \end_layout
5690
5691 \end_inset
5692
5693  (for inline formulas) or 
5694 \begin_inset Flex Code
5695 status collapsed
5696
5697 \begin_layout Plain Layout
5698 div
5699 \end_layout
5700
5701 \end_inset
5702
5703  (for displayed formulas) with 
5704 \begin_inset Flex Code
5705 status collapsed
5706
5707 \begin_layout Plain Layout
5708 class='math'
5709 \end_layout
5710
5711 \end_inset
5712
5713 , as is required for jsMath.
5714 \end_layout
5715
5716 \begin_layout Standard
5717 One of these output methods must be selected under 
5718 \begin_inset Flex Noun
5719 status collapsed
5720
5721 \begin_layout Plain Layout
5722 Document\SpecialChar menuseparator
5723 Settings\SpecialChar menuseparator
5724 Formats
5725 \end_layout
5726
5727 \end_inset
5728
5729 .
5730  By default, \SpecialChar LyX
5731  outputs MathML.
5732  This is a document-wide setting, therefore.
5733 \end_layout
5734
5735 \begin_layout Standard
5736 Eventually, \SpecialChar LyX
5737  will offer the user the option to select an alternate output
5738  method for a particular inset, say, one that isn't being rendered very
5739  well by MathML.
5740 \begin_inset Foot
5741 status collapsed
5742
5743 \begin_layout Plain Layout
5744 That said, since \SpecialChar LyX
5745  falls back to images if the inset contains ERT, then one
5746  can force output as an image by putting some harmless ERT into the math,
5747  for example: 
5748 \begin_inset Formula $a=b\relax$
5749 \end_inset
5750
5751 .
5752 \end_layout
5753
5754 \end_inset
5755
5756
5757 \end_layout
5758
5759 \begin_layout Section
5760 Bibliography and Citations
5761 \end_layout
5762
5763 \begin_layout Standard
5764 XHTML output fully supports bibliographies and citations.
5765  
5766 \end_layout
5767
5768 \begin_layout Standard
5769 Citation labels are generated by the same machinery that generates \SpecialChar LyX
5770 's on-screen
5771  labels, so the labels will look in the output much as they do in \SpecialChar LyX
5772 , though
5773  better.
5774  If you are using numerical citations, then \SpecialChar LyX
5775  will output numerical labels,
5776  such as [1] or [17], rather than simply showing the citation key in square
5777  brackets, as it does on-screen.
5778  If you are using author-year citations, then \SpecialChar LyX
5779  will add lowercase letters
5780  to the years, just as Bib\SpecialChar TeX
5781  does, if it finds more than one citation for
5782  a given author-year combination.
5783  The labels will be printed with the bibliography entries.
5784  Note that there is, at present, no way to customize the appearance of the
5785  labels, for example, to choose between square brackets and parentheses.
5786 \end_layout
5787
5788 \begin_layout Standard
5789 Bibliography output is handled by the same machinery that handles the presentati
5790 on of reference information in the citation dialog, so you will see in the
5791  XHTML output pretty much what you would see if you were to look at a given
5792  entry in the citation dialog.
5793  The formatting can be customized in your layout file or, preferably, in
5794  a module.
5795  See the 
5796 \emph on
5797 Customization
5798 \emph default
5799  manual for the details.
5800 \end_layout
5801
5802 \begin_layout Standard
5803 The main defect at present is that cross-referenced information is printed
5804  with every entry with which it is associated.
5805  So you can see things like this:
5806 \end_layout
5807
5808 \begin_layout Quote
5809 Jason Stanley, 
5810 \begin_inset Quotes eld
5811 \end_inset
5812
5813 Context and Logical Form
5814 \begin_inset Quotes erd
5815 \end_inset
5816
5817 , in 
5818 \emph on
5819 Language in Context: Selected Essays
5820 \emph default
5821  (Oxford: Oxford University Press, 2007), pp.
5822  30–68.
5823 \end_layout
5824
5825 \begin_layout Quote
5826 Jason Stanley, 
5827 \begin_inset Quotes eld
5828 \end_inset
5829
5830 Semantics in Context
5831 \begin_inset Quotes erd
5832 \end_inset
5833
5834 , in 
5835 \emph on
5836 Language in Context: Selected Essays
5837 \emph default
5838  (Oxford: Oxford University Press, 2007), pp.
5839  201–30.
5840 \end_layout
5841
5842 \begin_layout Standard
5843 This should be fixed before long.
5844 \end_layout
5845
5846 \begin_layout Standard
5847 There is no support at present for sectioned bibliographies.
5848  If you have multiple bibliographies, then \SpecialChar LyX
5849  will print the same bibliography
5850  over and over.
5851 \end_layout
5852
5853 \begin_layout Section
5854 Indexes
5855 \end_layout
5856
5857 \begin_layout Standard
5858 \SpecialChar LyX
5859  will happily export indexes as XHTML, but with certain limitations at the
5860  moment.
5861 \end_layout
5862
5863 \begin_layout Standard
5864 Index export will be most reliable when you do not attempt to use the fancy
5865  constructs that are described in the section on indexes in the 
5866 \emph on
5867 User's Guide
5868 \emph default
5869 .
5870 \begin_inset Foot
5871 status collapsed
5872
5873 \begin_layout Plain Layout
5874 The main issue here is that \SpecialChar LyX
5875  itself does not really handle these.
5876  It just lets you enter what you would have to enter in raw \SpecialChar LaTeX
5877 .
5878 \end_layout
5879
5880 \end_inset
5881
5882  We'll describe how they are handled using the subsection headings from
5883  that section.
5884 \end_layout
5885
5886 \begin_layout Itemize
5887 Grouping Index Entries (aka, sub-entries): \SpecialChar LyX
5888  makes an effort to support these,
5889  but the entries must be separated by 
5890 \begin_inset Quotes eld
5891 \end_inset
5892
5893  ! 
5894 \begin_inset Quotes erd
5895 \end_inset
5896
5897 , that is, there must be spaces around the exclamation point.
5898  This is because it is otherwise too difficult to check for escaped exclamation
5899  points, ones in math, and so forth.
5900 \end_layout
5901
5902 \begin_layout Itemize
5903 Page Ranges: There is no support at all for page ranges, since these make
5904  no sense with XHMTL.
5905  Instead, you will just get two index entries, one at either end.
5906 \end_layout
5907
5908 \begin_layout Itemize
5909 Cross-referencing: There is no support for cross-referencing.
5910  If \SpecialChar LyX
5911  finds an entry containing the 
5912 \begin_inset Quotes eld
5913 \end_inset
5914
5915 |see\SpecialChar ldots
5916
5917 \begin_inset Quotes erd
5918 \end_inset
5919
5920  construct, it is just dropped, and the rest is treated as an ordinary index
5921  entry.
5922 \end_layout
5923
5924 \begin_layout Itemize
5925 Index Entry Order: \SpecialChar LyX
5926  does support attempts to fix the sorting order.
5927  It will take what is before the first `@' it finds and use that for sorting,
5928  taking what follows the first `@' to be the actual entry.
5929  At present, \SpecialChar LyX
5930  does not check for escaped `@', so do not try to index email
5931  addresses.
5932 \end_layout
5933
5934 \begin_layout Itemize
5935 Index Entry Layout: You can format entries by using the text style dialog,
5936  or by using any other method available within \SpecialChar LyX
5937  itself.
5938  There is no support for constructs like: 
5939 \begin_inset Quotes eld
5940 \end_inset
5941
5942 entry|textbf
5943 \begin_inset Quotes erd
5944 \end_inset
5945
5946 .
5947  Indeed, if \SpecialChar LyX
5948  finds a pipe symbol, `|', in an entry, it will delete it and
5949  everything that follows it.
5950 \end_layout
5951
5952 \begin_layout Itemize
5953 Multiple Indexes: There is no support for multiple indexes.
5954  Rather, all index entries will be printed as one large index.
5955  To avoid our printing several versions of the index, we print only the
5956  main index, so make sure you have one.
5957 \end_layout
5958
5959 \begin_layout Section
5960 Nomenclature and Glossary
5961 \end_layout
5962
5963 \begin_layout Standard
5964 There is at present no support for glossaries.
5965  Adding it would be fairly trivial, and welcome.
5966 \end_layout
5967
5968 \begin_layout Chapter
5969 The \SpecialChar LyX
5970  Server
5971 \end_layout
5972
5973 \begin_layout Section
5974 Introduction
5975 \end_layout
5976
5977 \begin_layout Standard
5978 The `\SpecialChar LyX
5979  server' allows other programs to talk to \SpecialChar LyX
5980 , invoke \SpecialChar LyX
5981  commands, and retrieve
5982  information about the \SpecialChar LyX
5983  internal state.
5984  This is only intended for advanced users, but they should find it useful.
5985  It is by writing to the \SpecialChar LyX
5986  server, for example, that bibliography managers,
5987  such as JabRef, are able to 
5988 \begin_inset Quotes eld
5989 \end_inset
5990
5991 push
5992 \begin_inset Quotes erd
5993 \end_inset
5994
5995  citations to \SpecialChar LyX
5996 .
5997 \end_layout
5998
5999 \begin_layout Section
6000 Starting the \SpecialChar LyX
6001  Server
6002 \begin_inset CommandInset label
6003 LatexCommand label
6004 name "sec:Starting-the-Server"
6005
6006 \end_inset
6007
6008
6009 \end_layout
6010
6011 \begin_layout Standard
6012 The \SpecialChar LyX
6013  server works through the use of a pair of named pipes.
6014  These are usually located in 
6015 \begin_inset Flex Code
6016 status collapsed
6017
6018 \begin_layout Plain Layout
6019 UserDir
6020 \end_layout
6021
6022 \end_inset
6023
6024 , (except on Windows, where 
6025 \emph on
6026 local
6027 \emph default
6028  named pipes are special objects located in 
6029 \begin_inset Flex Code
6030 status collapsed
6031
6032 \begin_layout Plain Layout
6033
6034 \backslash
6035
6036 \backslash
6037 .
6038 \backslash
6039 pipe
6040 \end_layout
6041
6042 \end_inset
6043
6044 ) and have the names 
6045 \begin_inset Quotes eld
6046 \end_inset
6047
6048
6049 \begin_inset Flex Code
6050 status collapsed
6051
6052 \begin_layout Plain Layout
6053 lyxpipe.in
6054 \end_layout
6055
6056 \end_inset
6057
6058
6059 \begin_inset Quotes erd
6060 \end_inset
6061
6062  and 
6063 \begin_inset Quotes eld
6064 \end_inset
6065
6066
6067 \begin_inset Flex Code
6068 status collapsed
6069
6070 \begin_layout Plain Layout
6071 lyxpipe.out
6072 \end_layout
6073
6074 \end_inset
6075
6076
6077 \begin_inset Quotes erd
6078 \end_inset
6079
6080 .
6081  External programs write into 
6082 \begin_inset Flex Code
6083 status collapsed
6084
6085 \begin_layout Plain Layout
6086 lyxpipe.in
6087 \end_layout
6088
6089 \end_inset
6090
6091  and read back data from 
6092 \begin_inset Flex Code
6093 status collapsed
6094
6095 \begin_layout Plain Layout
6096 lyxpipe.out
6097 \end_layout
6098
6099 \end_inset
6100
6101 .
6102  The stem of the pipe names can be defined in the 
6103 \begin_inset Flex Noun
6104 status collapsed
6105
6106 \begin_layout Plain Layout
6107 Tools\SpecialChar menuseparator
6108 Preferences
6109 \end_layout
6110
6111 \end_inset
6112
6113  dialog, for example 
6114 \begin_inset Flex Code
6115 status collapsed
6116
6117 \begin_layout Plain Layout
6118 "/home/myhome/lyxpipe"
6119 \end_layout
6120
6121 \end_inset
6122
6123 , or 
6124 \begin_inset Flex Code
6125 status collapsed
6126
6127 \begin_layout Plain Layout
6128 "
6129 \backslash
6130
6131 \backslash
6132 .
6133 \backslash
6134 pipe
6135 \backslash
6136 lyxpipe"
6137 \end_layout
6138
6139 \end_inset
6140
6141  on Windows (where any working path instead of lyxpipe can be used, for
6142  example 
6143 \begin_inset Flex Code
6144 status collapsed
6145
6146 \begin_layout Plain Layout
6147 "
6148 \backslash
6149
6150 \backslash
6151 .
6152 \backslash
6153 pipe
6154 \backslash
6155 my
6156 \backslash
6157 lyx
6158 \backslash
6159 pipe"
6160 \end_layout
6161
6162 \end_inset
6163
6164  would also work).
6165  You 
6166 \emph on
6167 must
6168 \emph default
6169  configure this manually in order for the server to start.
6170 \end_layout
6171
6172 \begin_layout Standard
6173 \SpecialChar LyX
6174  will add the '
6175 \begin_inset Flex Code
6176 status collapsed
6177
6178 \begin_layout Plain Layout
6179 .in
6180 \end_layout
6181
6182 \end_inset
6183
6184 ' and '
6185 \begin_inset Flex Code
6186 status collapsed
6187
6188 \begin_layout Plain Layout
6189 .out
6190 \end_layout
6191
6192 \end_inset
6193
6194 ' to create the pipes.
6195  If one of the pipes already exists, \SpecialChar LyX
6196  will assume that another \SpecialChar LyX
6197  process
6198  is already running and will not start the server.
6199  On POSIX (Unix like) systems, if for some other reason, an unused 
6200 \begin_inset Quotes eld
6201 \end_inset
6202
6203 stale
6204 \begin_inset Quotes erd
6205 \end_inset
6206
6207  pipe is left in existence when \SpecialChar LyX
6208  closes, then \SpecialChar LyX
6209  will try to delete it.
6210  If this fails for some reason, you will need to delete the pipes manually
6211  and then restart \SpecialChar LyX
6212 .
6213  On Windows, pipes are deleted by the OS on program termination or crash,
6214  so 
6215 \begin_inset Quotes eld
6216 \end_inset
6217
6218 stale
6219 \begin_inset Quotes erd
6220 \end_inset
6221
6222  pipes should not be possible.
6223 \end_layout
6224
6225 \begin_layout Standard
6226 To have several \SpecialChar LyX
6227  processes with servers at the same time, you have to use
6228  different configurations, perhaps by using separate user directories, each
6229  with its own 
6230 \begin_inset Flex Code
6231 status collapsed
6232
6233 \begin_layout Plain Layout
6234 preferences
6235 \end_layout
6236
6237 \end_inset
6238
6239  file, for each process.
6240 \end_layout
6241
6242 \begin_layout Standard
6243 If you are developing a client program, you might find it useful to enable
6244  debugging information from the \SpecialChar LyX
6245  server.
6246  Do this by starting \SpecialChar LyX
6247  as 
6248 \begin_inset Flex Code
6249 status collapsed
6250
6251 \begin_layout Plain Layout
6252 lyx -dbg lyxserver
6253 \end_layout
6254
6255 \end_inset
6256
6257 .
6258 \end_layout
6259
6260 \begin_layout Standard
6261 You can find a complete example client written in C++ in the source distribution
6262  as 
6263 \begin_inset Flex Code
6264 status collapsed
6265
6266 \begin_layout Plain Layout
6267 development/lyxserver/server_monitor.cpp
6268 \end_layout
6269
6270 \end_inset
6271
6272 .
6273 \end_layout
6274
6275 \begin_layout Standard
6276 Another useful tool is the command-line based client found in 
6277 \begin_inset Flex Code
6278 status collapsed
6279
6280 \begin_layout Plain Layout
6281 src/client/lyxclient
6282 \end_layout
6283
6284 \end_inset
6285
6286 .
6287 \end_layout
6288
6289 \begin_layout Section
6290 Normal communication
6291 \end_layout
6292
6293 \begin_layout Standard
6294 To issue a \SpecialChar LyX
6295  call, the client writes a line of ASCII text into the input
6296  pipe.
6297  This line has the following format:
6298 \end_layout
6299
6300 \begin_layout Quote
6301 LYXCMD:
6302 \emph on
6303 clientname
6304 \emph default
6305 :
6306 \emph on
6307 function
6308 \emph default
6309 :
6310 \emph on
6311 argument
6312 \end_layout
6313
6314 \begin_layout Description
6315 clientname is a name that the client can choose arbitrarily.
6316  Its only use is that \SpecialChar LyX
6317  will echo it if it sends an answer—so a client can
6318  dispatch results from different requesters.
6319 \end_layout
6320
6321 \begin_layout Description
6322 function is the function you want \SpecialChar LyX
6323  to perform.
6324  It is the same as the commands you'd use in the minibuffer.
6325 \end_layout
6326
6327 \begin_layout Description
6328 argument is an optional argument which is meaningful only to some functions
6329  (for instance, the 
6330 \begin_inset Quotes eld
6331 \end_inset
6332
6333 self-insert
6334 \begin_inset Quotes erd
6335 \end_inset
6336
6337  LFUN will insert the argument as text at the cursor position).
6338 \end_layout
6339
6340 \begin_layout Standard
6341 The answer from \SpecialChar LyX
6342  will arrive in the output pipe and be of the form
6343 \end_layout
6344
6345 \begin_layout Quote
6346 INFO:
6347 \emph on
6348 clientname
6349 \emph default
6350 :
6351 \emph on
6352 function
6353 \emph default
6354 :
6355 \emph on
6356 data
6357 \end_layout
6358
6359 \begin_layout Standard
6360 where 
6361 \emph on
6362 clientname
6363 \emph default
6364  and 
6365 \emph on
6366 function
6367 \emph default
6368  are just echoed from the command request, while 
6369 \emph on
6370 data
6371 \emph default
6372  is more or less useful information filled according to how the command
6373  execution worked out.
6374  Some commands, such as 
6375 \begin_inset Quotes eld
6376 \end_inset
6377
6378 font-state
6379 \begin_inset Quotes erd
6380 \end_inset
6381
6382 , will return information about the internal state of \SpecialChar LyX
6383 , while other will
6384  return an empty data-response.
6385  This means that the command execution went fine.
6386 \end_layout
6387
6388 \begin_layout Standard
6389 In case of errors, the response from \SpecialChar LyX
6390  will have this form
6391 \end_layout
6392
6393 \begin_layout Quote
6394 ERROR:
6395 \emph on
6396 clientname
6397 \emph default
6398 :
6399 \emph on
6400 function
6401 \emph default
6402 :
6403 \emph on
6404 error message
6405 \end_layout
6406
6407 \begin_layout Standard
6408 where the 
6409 \emph on
6410 error message
6411 \emph default
6412  should contain an explanation of why the command failed.
6413 \end_layout
6414
6415 \begin_layout Standard
6416 Examples:
6417 \end_layout
6418
6419 \begin_layout LyX-Code
6420 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
6421 \begin_inset Newline newline
6422 \end_inset
6423
6424 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
6425 \begin_inset Newline newline
6426 \end_inset
6427
6428 read a <~/.lyxpipe.out
6429 \begin_inset Newline newline
6430 \end_inset
6431
6432 echo $a
6433 \end_layout
6434
6435 \begin_layout Subsection
6436 AppleScript (Mac OS X)
6437 \end_layout
6438
6439 \begin_layout Standard
6440 Since \SpecialChar LyX
6441  2.1, \SpecialChar LyX
6442  supports basic interactions with AppleScript for normal communicatio
6443 n through the command run.
6444  This command takes a direct argument (the 
6445 \series bold
6446 function
6447 \series default
6448  to perform) and an optional argument.
6449  It either returns the output of the function or triggers an error with
6450  the error message and code.
6451 \end_layout
6452
6453 \begin_layout Standard
6454 Example:
6455 \end_layout
6456
6457 \begin_layout LyX-Code
6458 tell application "\SpecialChar LyX
6459 "
6460 \end_layout
6461
6462 \begin_layout LyX-Code
6463   try
6464 \end_layout
6465
6466 \begin_layout LyX-Code
6467     -- Stores the current file name into f
6468 \end_layout
6469
6470 \begin_layout LyX-Code
6471     set f to (run "server-get-filename" with argument "")
6472 \end_layout
6473
6474 \begin_layout LyX-Code
6475     on error the error_message number the error_number
6476 \end_layout
6477
6478 \begin_layout LyX-Code
6479       display dialog "Error: " & the error_number & ".
6480  " ¬
6481 \end_layout
6482
6483 \begin_layout LyX-Code
6484               & the error_message buttons {"OK"} default button 1
6485 \end_layout
6486
6487 \begin_layout LyX-Code
6488   end try
6489 \end_layout
6490
6491 \begin_layout LyX-Code
6492 end tell
6493 \end_layout
6494
6495 \begin_layout Section
6496 Notification
6497 \end_layout
6498
6499 \begin_layout Standard
6500 \SpecialChar LyX
6501  can notify clients of events going on asynchronously.
6502  Currently it will only do this if the user binds a key sequence with the
6503  function 
6504 \begin_inset Quotes eld
6505 \end_inset
6506
6507 notify
6508 \begin_inset Quotes erd
6509 \end_inset
6510
6511 .
6512  The format of the string \SpecialChar LyX
6513  sends is as follows:
6514 \end_layout
6515
6516 \begin_layout Quote
6517 \begin_inset Flex Code
6518 status collapsed
6519
6520 \begin_layout Plain Layout
6521 NOTIFY:
6522 \end_layout
6523
6524 \end_inset
6525
6526
6527 \emph on
6528 key-sequence
6529 \end_layout
6530
6531 \begin_layout Standard
6532 where 
6533 \emph on
6534 key-sequence
6535 \emph default
6536  is the printed representation of the key sequence that was actually typed
6537  by the user.
6538 \end_layout
6539
6540 \begin_layout Standard
6541 This mechanism can be used to extend \SpecialChar LyX
6542 's command set and implement macros.
6543  Bind some key sequence to 
6544 \begin_inset Quotes eld
6545 \end_inset
6546
6547 notify
6548 \begin_inset Quotes erd
6549 \end_inset
6550
6551 .
6552  Then start a client that listens on the output pipe, dispatches the command
6553  according to the sequence, and starts a function that may use \SpecialChar LyX
6554  calls and
6555  \SpecialChar LyX
6556  requests to issue a command or a series of commands to \SpecialChar LyX
6557 .
6558 \end_layout
6559
6560 \begin_layout Section
6561 The simple \SpecialChar LyX
6562  Server Protocol
6563 \end_layout
6564
6565 \begin_layout Standard
6566 \SpecialChar LyX
6567  implements a simple protocol that can be used for session management.
6568  All messages are of the form
6569 \end_layout
6570
6571 \begin_layout Quote
6572 LYXSRV:
6573 \emph on
6574 clientname
6575 \emph default
6576 :
6577 \emph on
6578 protocol message
6579 \end_layout
6580
6581 \begin_layout Standard
6582 where 
6583 \emph on
6584 protocol message
6585 \emph default
6586  can be 
6587 \begin_inset Quotes eld
6588 \end_inset
6589
6590 hello
6591 \begin_inset Quotes erd
6592 \end_inset
6593
6594  or 
6595 \begin_inset Quotes eld
6596 \end_inset
6597
6598 bye
6599 \begin_inset Quotes erd
6600 \end_inset
6601
6602 .
6603  If 
6604 \begin_inset Quotes eld
6605 \end_inset
6606
6607 hello
6608 \begin_inset Quotes erd
6609 \end_inset
6610
6611  is received from a client, \SpecialChar LyX
6612  will report back to inform the client that
6613  it's listening to it's messages, while 
6614 \begin_inset Quotes eld
6615 \end_inset
6616
6617 bye
6618 \begin_inset Quotes erd
6619 \end_inset
6620
6621  sent from \SpecialChar LyX
6622  will inform clients that \SpecialChar LyX
6623  is closing.
6624 \end_layout
6625
6626 \begin_layout Section
6627 Reverse DVI/PDF search
6628 \end_layout
6629
6630 \begin_layout Standard
6631 Some DVI/PDF viewers
6632 \begin_inset Foot
6633 status collapsed
6634
6635 \begin_layout Plain Layout
6636 The following viewers offer the reverse PDF search feature: Okular on KDE/Linux,
6637  Qpdfview on Unix, Skim on Mac OSX and SumatraPDF on Windows.
6638 \end_layout
6639
6640 \end_inset
6641
6642  provide 
6643 \emph on
6644 reverse search
6645 \emph default
6646  facility (also called 
6647 \emph on
6648 inverse search
6649 \emph default
6650 ).
6651  This means that you can tell \SpecialChar LyX
6652  to put the cursor to a specific line in the
6653  document by clicking at the respective position in the DVI/PDF output.
6654  To achieve this, the viewer must be able to communicate with \SpecialChar LyX
6655 .
6656  This is done via the \SpecialChar LyX
6657  server either by using the named pipe (
6658 \emph on
6659 lyxpipe
6660 \emph default
6661 ), or the UNIX domain socket (
6662 \emph on
6663 lyxsocket
6664 \emph default
6665 ) that \SpecialChar LyX
6666  creates in its temporary directory (this is the way the 
6667 \begin_inset Flex Code
6668 status collapsed
6669
6670 \begin_layout Plain Layout
6671 lyxclient
6672 \end_layout
6673
6674 \end_inset
6675
6676  program communicates with \SpecialChar LyX
6677 ).
6678  In some cases, you need a helper script that mediates between the viewer
6679  and \SpecialChar LyX
6680 , in others, the viewer can communicate with \SpecialChar LyX
6681  directly.
6682  This depends on the selected viewer and on your operating system.
6683  The same applies to the way viewers need to be configured and the way the
6684  reverse search is actually performed.
6685  In what follows, we will thus describe how to setup reverse search for
6686  specific viewers.
6687  Before we turn to this, though, we will explain what needs to be done generally
6688  to enable reverse search in the DVI/PDF output.
6689 \end_layout
6690
6691 \begin_layout Subsection
6692 Automatic setup
6693 \begin_inset CommandInset label
6694 LatexCommand label
6695 name "subsec:rev-search"
6696
6697 \end_inset
6698
6699
6700 \end_layout
6701
6702 \begin_layout Standard
6703 In most cases \SpecialChar LyX
6704  will do the work for you by pressing the following button
6705  in the toolbar: 
6706 \begin_inset Info
6707 type  "icon"
6708 arg   "buffer-toggle-output-sync"
6709 \end_inset
6710
6711 .
6712  Alternatively, you can also enable the feature by checking 
6713 \family sans
6714 Synchronize with Output
6715 \family default
6716  in 
6717 \begin_inset Flex Noun
6718 status collapsed
6719
6720 \begin_layout Plain Layout
6721 Document\SpecialChar menuseparator
6722 Settings\SpecialChar menuseparator
6723 Formats
6724 \end_layout
6725
6726 \end_inset
6727
6728 .
6729  In such a case \SpecialChar LyX
6730  will automatically insert the necessary Sync\SpecialChar TeX
6731  macro (for
6732  PDF) or load the srcltx package (for DVI) respectively.
6733  This option can be easily reached also on 
6734 \begin_inset Flex Code
6735 status collapsed
6736
6737 \begin_layout Plain Layout
6738 View/Update
6739 \end_layout
6740
6741 \end_inset
6742
6743  Toolbar.
6744 \end_layout
6745
6746 \begin_layout Standard
6747 If you need a different setting, you can select or input a custom macro
6748  from the drop down box just below 
6749 \begin_inset Flex Noun
6750 status collapsed
6751
6752 \begin_layout Plain Layout
6753 Document\SpecialChar menuseparator
6754 Settings\SpecialChar menuseparator
6755 Output\SpecialChar menuseparator
6756 Synchronize with Output
6757 \end_layout
6758
6759 \end_inset
6760
6761 .
6762 \end_layout
6763
6764 \begin_layout Standard
6765 Note that the method 
6766 \begin_inset Flex Code
6767 status collapsed
6768
6769 \begin_layout Plain Layout
6770
6771 \backslash
6772 synctex=1
6773 \end_layout
6774
6775 \end_inset
6776
6777  enables gzip compression.
6778  If your viewer does not support it, you should instead use 
6779 \begin_inset Flex Code
6780 status collapsed
6781
6782 \begin_layout Plain Layout
6783
6784 \backslash
6785 synctex=-1
6786 \end_layout
6787
6788 \end_inset
6789
6790 .
6791 \end_layout
6792
6793 \begin_layout Standard
6794 Please also note that including the 
6795 \begin_inset Flex Code
6796 status collapsed
6797
6798 \begin_layout Plain Layout
6799 srcltx
6800 \end_layout
6801
6802 \end_inset
6803
6804  package or 
6805 \begin_inset Flex Code
6806 status collapsed
6807
6808 \begin_layout Plain Layout
6809 src-specials
6810 \end_layout
6811
6812 \end_inset
6813
6814  sometimes has an undesired impact on the typesetting.
6815  Thus, you should switch output synchronization off for the final typesetting
6816  if you use the 
6817 \begin_inset Flex Code
6818 status collapsed
6819
6820 \begin_layout Plain Layout
6821 srcltx
6822 \end_layout
6823
6824 \end_inset
6825
6826  package or 
6827 \begin_inset Flex Code
6828 status collapsed
6829
6830 \begin_layout Plain Layout
6831 src-specials
6832 \end_layout
6833
6834 \end_inset
6835
6836 .
6837  
6838 \end_layout
6839
6840 \begin_layout Standard
6841 In case you need some more special settings that are not covered by the
6842  automatic settings, read the next section about how to set up output synchroniz
6843 ation manually.
6844  If the automatic setup suits your needs, you can readily jump to section
6845 \begin_inset space ~
6846 \end_inset
6847
6848
6849 \begin_inset CommandInset ref
6850 LatexCommand ref
6851 reference "subsec:configuring-viewers"
6852
6853 \end_inset
6854
6855 , where the necessary configuration steps in your viewer – needed both with
6856  the automatic and the manual setup – are described.
6857 \end_layout
6858
6859 \begin_layout Subsection
6860 Manual setup
6861 \end_layout
6862
6863 \begin_layout Standard
6864 \SpecialChar LaTeX
6865  provides several different methods for reverse search.
6866  Some are built-in in the 
6867 \begin_inset Flex Code
6868 status collapsed
6869
6870 \begin_layout Plain Layout
6871 latex/pdflatex
6872 \end_layout
6873
6874 \end_inset
6875
6876  program, some are provided by external packages.
6877  Your choice depends on whether your \SpecialChar LaTeX
6878  distribution already provides a given
6879  method (the built-in methods are rather new) and whether your viewer can
6880  cope with it.
6881  The available methods are described in the following.
6882 \end_layout
6883
6884 \begin_layout Subsubsection*
6885 Built-in DVI-search via src-specials (DVI only) 
6886 \end_layout
6887
6888 \begin_layout Standard
6889 This method provides the DVI file with the necessary information for reverse
6890  search.
6891  It is available in \SpecialChar LaTeX
6892  since quite some time (any somewhat recent \SpecialChar LaTeX
6893  distribution
6894  should include it), and it works reliably.
6895  To enable it, change the 
6896 \begin_inset Flex Noun
6897 status collapsed
6898
6899 \begin_layout Plain Layout
6900 La
6901 \family sans
6902 TeX
6903 \family default
6904  (plain)->DVI
6905 \end_layout
6906
6907 \end_inset
6908
6909  or 
6910 \begin_inset Flex Noun
6911 status collapsed
6912
6913 \begin_layout Plain Layout
6914 La
6915 \family sans
6916 TeX
6917 \family default
6918  (plain)->DraftDVI
6919 \end_layout
6920
6921 \end_inset
6922
6923  converter in 
6924 \begin_inset Flex Noun
6925 status collapsed
6926
6927 \begin_layout Plain Layout
6928 Preferences\SpecialChar menuseparator
6929 File Handling\SpecialChar menuseparator
6930 Converters
6931 \end_layout
6932
6933 \end_inset
6934
6935  to 
6936 \begin_inset Flex Code
6937 status collapsed
6938
6939 \begin_layout Plain Layout
6940 latex -src-specials $$i
6941 \end_layout
6942
6943 \end_inset
6944
6945 .
6946  If this doesn't work, check if your \SpecialChar TeX
6947  engine needs different options (the
6948  syntax might differ in some distributions).
6949 \end_layout
6950
6951 \begin_layout Subsubsection*
6952 External Packages (PDFSync and scrltx) 
6953 \end_layout
6954
6955 \begin_layout Standard
6956 The packages 
6957 \emph on
6958 pdfsync
6959 \emph default
6960  and 
6961 \emph on
6962 scrltx
6963 \emph default
6964  provide reverse search facility for PDF output (via pdflatex) and DVI output,
6965  respectively.
6966  In order to enable it, load the packages in the \SpecialChar LyX
6967  preamble: 
6968 \end_layout
6969
6970 \begin_layout Itemize
6971 \begin_inset Flex Code
6972 status collapsed
6973
6974 \begin_layout Plain Layout
6975
6976 \backslash
6977 usepackage{pdfsync}
6978 \end_layout
6979
6980 \end_inset
6981
6982  for reverse PDF search,
6983 \end_layout
6984
6985 \begin_layout Itemize
6986 \begin_inset Flex Code
6987 status collapsed
6988
6989 \begin_layout Plain Layout
6990
6991 \backslash
6992 usepackage[active]{srcltx}
6993 \end_layout
6994
6995 \end_inset
6996
6997  for reverse DVI search.
6998 \end_layout
6999
7000 \begin_layout Standard
7001 If you want to be able to perform both DVI and PDF reverse searches, you
7002  can also insert in the preamble the following lines
7003 \end_layout
7004
7005 \begin_layout LyX-Code
7006
7007 \backslash
7008 usepackage{ifpdf}
7009 \begin_inset Newline newline
7010 \end_inset
7011
7012
7013 \backslash
7014 ifpdf
7015 \begin_inset Newline newline
7016 \end_inset
7017
7018   
7019 \backslash
7020 usepackage{pdfsync}
7021 \begin_inset Newline newline
7022 \end_inset
7023
7024
7025 \backslash
7026 else
7027 \begin_inset Newline newline
7028 \end_inset
7029
7030   
7031 \backslash
7032 usepackage[active]{srcltx}
7033 \begin_inset Newline newline
7034 \end_inset
7035
7036
7037 \backslash
7038 fi
7039 \end_layout
7040
7041 \begin_layout Standard
7042 This way, you can preview the file as either DVI or PDF (pdflatex) and the
7043  right package will be used.
7044 \end_layout
7045
7046 \begin_layout Standard
7047 Note that PDFSync might affect the output layout of your document.
7048  It is therefore advised to disable PDFsync for final documents.
7049 \end_layout
7050
7051 \begin_layout Subsubsection*
7052 Built-in reverse search via Sync\SpecialChar TeX
7053  (DVI and PDF) 
7054 \end_layout
7055
7056 \begin_layout Standard
7057 Recent versions of 
7058 \begin_inset Flex Code
7059 status collapsed
7060
7061 \begin_layout Plain Layout
7062 (pdf)latex
7063 \end_layout
7064
7065 \end_inset
7066
7067  have built-in support for both PDF and DVI reverse search.
7068  This so-called 
7069 \emph on
7070 Sync\SpecialChar TeX
7071
7072 \emph default
7073  facility is basically the result of the integration of the PDFSync package
7074  to the pdftex program and its merge with the 
7075 \emph on
7076 scr-specials
7077 \emph default
7078  approach.
7079  You need at least \SpecialChar TeX
7080 Live 2008 or a recent Mik\SpecialChar TeX
7081  distribution in order to use
7082  it.
7083 \begin_inset Foot
7084 status collapsed
7085
7086 \begin_layout Plain Layout
7087 For some reason, Mik\SpecialChar TeX
7088  does not understand/obey the command \SpecialChar LyX
7089  inserts into
7090  the preamble when you check the "Enable Forward/Reverse Search" button
7091  in the toolbar and does not generate the necessary info.
7092 \end_layout
7093
7094 \begin_layout Plain Layout
7095 The generation of the required info can be forced by changing the converter
7096  "\SpecialChar LaTeX
7097  (pdflatex) -> PDF (pdflatex)" in Preferences->File handling->Converters
7098  from the default "pdflatex $$i" to "pdflatex -synctex=1 $$i" (i.e., by adding
7099  the -synctex=1 switch).
7100 \end_layout
7101
7102 \end_inset
7103
7104  Also note that only a few PDF viewers (such as Okular and Qpdfview on Unix,
7105  Skim on the Mac, SumatraPDF on Windows; see the next section for details)
7106  already provide Sync\SpecialChar TeX
7107  support.
7108 \end_layout
7109
7110 \begin_layout Standard
7111 To enable Sync\SpecialChar TeX
7112  for DVI output, change the 
7113 \begin_inset Flex Noun
7114 status collapsed
7115
7116 \begin_layout Plain Layout
7117 La
7118 \family sans
7119 TeX
7120 \family default
7121  (plain) -> DVI
7122 \end_layout
7123
7124 \end_inset
7125
7126  or 
7127 \begin_inset Flex Noun
7128 status collapsed
7129
7130 \begin_layout Plain Layout
7131 La
7132 \family sans
7133 TeX
7134 \family default
7135  (plain) -> DraftDVI
7136 \end_layout
7137
7138 \end_inset
7139
7140  converter in 
7141 \begin_inset Flex Noun
7142 status collapsed
7143
7144 \begin_layout Plain Layout
7145 Preferences\SpecialChar menuseparator
7146 File Handling\SpecialChar menuseparator
7147 Converters
7148 \end_layout
7149
7150 \end_inset
7151
7152  to 
7153 \begin_inset Flex Code
7154 status collapsed
7155
7156 \begin_layout Plain Layout
7157 latex -synctex=1 $$i
7158 \end_layout
7159
7160 \end_inset
7161
7162 , and for PDF output, change the 
7163 \begin_inset Flex Noun
7164 status collapsed
7165
7166 \begin_layout Plain Layout
7167 La
7168 \family sans
7169 TeX
7170 \family default
7171  (pdflatex) -> PDF (pdflatex)
7172 \end_layout
7173
7174 \end_inset
7175
7176  converter to 
7177 \begin_inset Flex Code
7178 status collapsed
7179
7180 \begin_layout Plain Layout
7181 pdflatex -synctex=1 $$i
7182 \end_layout
7183
7184 \end_inset
7185
7186 .
7187  Should your viewer not be considered in the following description, or in
7188  case of missing success, please check the documentation of your viewer
7189  whether the viewer needs to be configured for the use with Sync\SpecialChar TeX
7190 .
7191 \begin_inset Foot
7192 status collapsed
7193
7194 \begin_layout Plain Layout
7195 Note that the option 
7196 \begin_inset Flex Code
7197 status collapsed
7198
7199 \begin_layout Plain Layout
7200 -synctex=1
7201 \end_layout
7202
7203 \end_inset
7204
7205  option enables gzip compression.
7206  If your viewer does not support it, you should instead use 
7207 \begin_inset Flex Code
7208 status collapsed
7209
7210 \begin_layout Plain Layout
7211 -synctex=-1
7212 \end_layout
7213
7214 \end_inset
7215
7216 .
7217 \end_layout
7218
7219 \end_inset
7220
7221
7222 \end_layout
7223
7224 \begin_layout Subsection
7225 Configuring and using specific viewers
7226 \begin_inset CommandInset label
7227 LatexCommand label
7228 name "subsec:configuring-viewers"
7229
7230 \end_inset
7231
7232
7233 \end_layout
7234
7235 \begin_layout Subsubsection*
7236 Xdvi (all platforms)
7237 \end_layout
7238
7239 \begin_layout Standard
7240 If you use 
7241 \begin_inset Flex Code
7242 status collapsed
7243
7244 \begin_layout Plain Layout
7245 xdvi
7246 \end_layout
7247
7248 \end_inset
7249
7250 , you don't need to do anything else for performing a reverse DVI search,
7251  as \SpecialChar LyX
7252  already provides the necessary hooks for automatically using the 
7253 \begin_inset Flex Code
7254 status collapsed
7255
7256 \begin_layout Plain Layout
7257 lyxclient
7258 \end_layout
7259
7260 \end_inset
7261
7262  program.
7263  Just setup your document as described above (reverse search is triggered
7264  by Ctrl-click or Alt-click on Mac OSX, respectively).
7265 \end_layout
7266
7267 \begin_layout Standard
7268 However, if for whatever reason you want to use the named pipe instead of
7269  the socket for communicating with \SpecialChar LyX
7270 , simply change the DVI viewer in 
7271 \begin_inset Flex Noun
7272 status collapsed
7273
7274 \begin_layout Plain Layout
7275 Preferences\SpecialChar menuseparator
7276 File Handling\SpecialChar menuseparator
7277 File formats
7278 \end_layout
7279
7280 \end_inset
7281
7282  to
7283 \begin_inset Foot
7284 status collapsed
7285
7286 \begin_layout Plain Layout
7287 On Mac OSX you have to use 
7288 \begin_inset Flex Code
7289 status collapsed
7290
7291 \begin_layout Plain Layout
7292 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
7293 \end_layout
7294
7295 \end_inset
7296
7297
7298 \end_layout
7299
7300 \end_inset
7301
7302  
7303 \begin_inset Flex Code
7304 status collapsed
7305
7306 \begin_layout Plain Layout
7307 xdvi -editor "lyxeditor.sh %f %l"
7308 \end_layout
7309
7310 \end_inset
7311
7312 , where 
7313 \begin_inset Flex Code
7314 status collapsed
7315
7316 \begin_layout Plain Layout
7317 lyxeditor.sh
7318 \end_layout
7319
7320 \end_inset
7321
7322  is a suitable script.
7323  For example, a minimal shell script is the following one:
7324 \end_layout
7325
7326 \begin_layout LyX-Code
7327 #!/bin/sh
7328 \begin_inset Newline newline
7329 \end_inset
7330
7331 LYXPIPE="/path/to/lyxpipe"
7332 \begin_inset Newline newline
7333 \end_inset
7334
7335 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
7336 \begin_inset Newline newline
7337 \end_inset
7338
7339 echo "$COMMAND" > "${LYXPIPE}".in || exit
7340 \begin_inset Newline newline
7341 \end_inset
7342
7343 read TMP < "${LYXPIPE}".out || exit
7344 \end_layout
7345
7346 \begin_layout Standard
7347 where 
7348 \begin_inset Flex Code
7349 status collapsed
7350
7351 \begin_layout Plain Layout
7352 /path/to/lyxpipe
7353 \end_layout
7354
7355 \end_inset
7356
7357  is the LyXServer pipe path specified in 
7358 \begin_inset Flex Noun
7359 status collapsed
7360
7361 \begin_layout Plain Layout
7362 Preferences\SpecialChar menuseparator
7363 Paths
7364 \end_layout
7365
7366 \end_inset
7367
7368 .
7369 \begin_inset Foot
7370 status collapsed
7371
7372 \begin_layout Plain Layout
7373 In the 
7374 \begin_inset Flex Code
7375 status collapsed
7376
7377 \begin_layout Plain Layout
7378 development/tools
7379 \end_layout
7380
7381 \end_inset
7382
7383  folder of a source distribution you can find a 
7384 \begin_inset Flex Code
7385 status collapsed
7386
7387 \begin_layout Plain Layout
7388 lyxeditor
7389 \end_layout
7390
7391 \end_inset
7392
7393  script which is able to locate the 
7394 \emph on
7395 lyxpipe
7396 \emph default
7397  based on your preferences.
7398 \end_layout
7399
7400 \end_inset
7401
7402
7403 \end_layout
7404
7405 \begin_layout Subsubsection*
7406 MacDviX (Mac OSX)
7407 \end_layout
7408
7409 \begin_layout Standard
7410 At the end of 
7411 \begin_inset Flex Code
7412 status collapsed
7413
7414 \begin_layout Plain Layout
7415 /Applications/MacDviX_Folder/calleditor.script
7416 \end_layout
7417
7418 \end_inset
7419
7420 , add the following lines:
7421 \end_layout
7422
7423 \begin_layout LyX-Code
7424 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
7425 \begin_inset Newline newline
7426 \end_inset
7427
7428 exit 1
7429 \end_layout
7430
7431 \begin_layout Standard
7432 Modify the lines accordingly if you install \SpecialChar LyX
7433  somewhere else than in the
7434  Applications folder.
7435 \end_layout
7436
7437 \begin_layout Standard
7438 Reverse search is triggered by Alt-click (OPTION-click).
7439 \end_layout
7440
7441 \begin_layout Subsubsection*
7442 Skim (Mac OSX)
7443 \end_layout
7444
7445 \begin_layout Standard
7446 Enter 
7447 \begin_inset Flex Code
7448 status collapsed
7449
7450 \begin_layout Plain Layout
7451 open -a Skim.app $$i
7452 \end_layout
7453
7454 \end_inset
7455
7456  to the viewer setting in 
7457 \begin_inset Flex Noun
7458 status collapsed
7459
7460 \begin_layout Plain Layout
7461 Preferences\SpecialChar menuseparator
7462 File Handling\SpecialChar menuseparator
7463 File formats\SpecialChar menuseparator
7464 PDF (pdflatex)
7465 \end_layout
7466
7467 \end_inset
7468
7469 , and then in 
7470 \begin_inset Flex Noun
7471 status collapsed
7472
7473 \begin_layout Plain Layout
7474 Skim\SpecialChar menuseparator
7475 Preferences\SpecialChar menuseparator
7476 Sync
7477 \end_layout
7478
7479 \end_inset
7480
7481  choose 
7482 \begin_inset Flex Noun
7483 status collapsed
7484
7485 \begin_layout Plain Layout
7486 custom
7487 \end_layout
7488
7489 \end_inset
7490
7491  preset and enter command 
7492 \begin_inset Flex Noun
7493 status collapsed
7494
7495 \begin_layout Plain Layout
7496 /Applications/\SpecialChar LyX
7497 .app/Contents/MacOS/lyxeditor
7498 \end_layout
7499
7500 \end_inset
7501
7502 .
7503 \end_layout
7504
7505 \begin_layout Standard
7506 Reverse search is triggered by COMMAND-SHIFT-click
7507 \end_layout
7508
7509 \begin_layout Subsubsection*
7510 Evince (GNOME)
7511 \end_layout
7512
7513 \begin_layout Standard
7514 Reverse search with evince does not work out of the box, but it can be achieved
7515  by means of some third party helper scripts.
7516  Please refer to 
7517 \begin_inset CommandInset href
7518 LatexCommand href
7519 target "https://wiki.lyx.org/LyX/SyncTeX"
7520 literal "false"
7521
7522 \end_inset
7523
7524  for details.
7525 \end_layout
7526
7527 \begin_layout Subsubsection*
7528 Okular (KDE)
7529 \end_layout
7530
7531 \begin_layout Standard
7532 Go to 
7533 \begin_inset Flex Noun
7534 status collapsed
7535
7536 \begin_layout Plain Layout
7537 Settings\SpecialChar menuseparator
7538 Configure Okular\SpecialChar menuseparator
7539 Editor
7540 \end_layout
7541
7542 \end_inset
7543
7544  and select LyX
7545 \begin_inset Quotes erd
7546 \end_inset
7547
7548  as editor.
7549  This inserts the appropriate command (
7550 \begin_inset Flex Code
7551 status collapsed
7552
7553 \begin_layout Plain Layout
7554 lyxclient -g %f %l
7555 \end_layout
7556
7557 \end_inset
7558
7559 ).
7560 \end_layout
7561
7562 \begin_layout Standard
7563 Reverse search is triggered by SHIFT-click.
7564
7565 \change_inserted -712698321 1578211026
7566  Note that this only works if Okular is in 
7567 \begin_inset Quotes eld
7568 \end_inset
7569
7570 Browse
7571 \begin_inset Quotes erd
7572 \end_inset
7573
7574  mode (i.
7575 \begin_inset space \thinspace{}
7576 \end_inset
7577
7578 e., the hand symbol is clicked).
7579 \change_unchanged
7580
7581 \end_layout
7582
7583 \begin_layout Subsubsection*
7584 Qpdfview (Unix)
7585 \end_layout
7586
7587 \begin_layout Standard
7588 Qpdfview supports Sync\SpecialChar TeX
7589  since version 0.3.5.
7590  Go to 
7591 \begin_inset Flex Noun
7592 status collapsed
7593
7594 \begin_layout Plain Layout
7595 Edit\SpecialChar menuseparator
7596 Settings\SpecialChar menuseparator
7597 Behavior
7598 \end_layout
7599
7600 \end_inset
7601
7602 , click on the input field of the 
7603 \begin_inset Quotes eld
7604 \end_inset
7605
7606 Source editor
7607 \begin_inset Quotes erd
7608 \end_inset
7609
7610  item and add the command 
7611 \begin_inset Flex Code
7612 status collapsed
7613
7614 \begin_layout Plain Layout
7615 lyxclient -g %1 %2
7616 \end_layout
7617
7618 \end_inset
7619
7620 .
7621 \end_layout
7622
7623 \begin_layout Standard
7624 Reverse search is triggered by double-click or, in more recent versions,
7625  by context menu.
7626 \end_layout
7627
7628 \begin_layout Subsubsection*
7629 YAP (Windows)
7630 \end_layout
7631
7632 \begin_layout Standard
7633 Launch yap, choose its 
7634 \begin_inset Flex Noun
7635 status collapsed
7636
7637 \begin_layout Plain Layout
7638 View\SpecialChar menuseparator
7639 Options
7640 \end_layout
7641
7642 \end_inset
7643
7644  menu and select the 
7645 \begin_inset Quotes eld
7646 \end_inset
7647
7648 Inverse DVI Search
7649 \begin_inset Quotes erd
7650 \end_inset
7651
7652  tab.
7653  Click on the 
7654 \begin_inset Quotes eld
7655 \end_inset
7656
7657 New\SpecialChar ldots
7658
7659 \begin_inset Quotes erd
7660 \end_inset
7661
7662  button and, in the window that opens, enter 
7663 \begin_inset Quotes eld
7664 \end_inset
7665
7666 \SpecialChar LyX
7667  Editor
7668 \begin_inset Quotes erd
7669 \end_inset
7670
7671  (or any other name you like) in the 
7672 \begin_inset Quotes eld
7673 \end_inset
7674
7675 Name:
7676 \begin_inset Quotes erd
7677 \end_inset
7678
7679  field.
7680  Now click on the button labeled 
7681 \begin_inset Quotes eld
7682 \end_inset
7683
7684 \SpecialChar ldots
7685
7686 \begin_inset Quotes erd
7687 \end_inset
7688
7689  to open a file dialog and navigate to the directory containing the batch
7690  file 
7691 \begin_inset Flex Code
7692 status collapsed
7693
7694 \begin_layout Plain Layout
7695 lyxeditor.bat
7696 \end_layout
7697
7698 \end_inset
7699
7700  (see below).
7701  Select 
7702 \begin_inset Flex Code
7703 status collapsed
7704
7705 \begin_layout Plain Layout
7706 lyxeditor.bat
7707 \end_layout
7708
7709 \end_inset
7710
7711  and then specify the program arguments as 
7712 \begin_inset Flex Code
7713 status collapsed
7714
7715 \begin_layout Plain Layout
7716 %f %l
7717 \end_layout
7718
7719 \end_inset
7720
7721 .
7722  The 
7723 \begin_inset Flex Code
7724 status collapsed
7725
7726 \begin_layout Plain Layout
7727 lyxeditor.bat
7728 \end_layout
7729
7730 \end_inset
7731
7732  wrapper is used for communicating with \SpecialChar LyX
7733  through the 
7734 \emph on
7735 lyxpipe
7736 \emph default
7737  and is as follows:
7738 \end_layout
7739
7740 \begin_layout LyX-Code
7741 @echo off
7742 \begin_inset Newline newline
7743 \end_inset
7744
7745 echo LYXCMD:revdvi:server-goto-file-row:%~1 %2> 
7746 \backslash
7747
7748 \backslash
7749 .
7750 \backslash
7751 pipe
7752 \backslash
7753 lyxpipe.in
7754 \begin_inset Newline newline
7755 \end_inset
7756
7757 type 
7758 \backslash
7759
7760 \backslash
7761 .
7762 \backslash
7763 pipe
7764 \backslash
7765 lyxpipe.out
7766 \end_layout
7767
7768 \begin_layout Standard
7769 Make sure that the \SpecialChar LyX
7770 Server pipe path you specified in \SpecialChar LyX
7771  is 
7772 \begin_inset Flex Code
7773 status collapsed
7774
7775 \begin_layout Plain Layout
7776
7777 \backslash
7778
7779 \backslash
7780 .
7781 \backslash
7782 pipe
7783 \backslash
7784 lyxpipe
7785 \end_layout
7786
7787 \end_inset
7788
7789 , otherwise change the 
7790 \begin_inset Flex Code
7791 status collapsed
7792
7793 \begin_layout Plain Layout
7794 lyxeditor.bat
7795 \end_layout
7796
7797 \end_inset
7798
7799  wrapper accordingly.
7800 \end_layout
7801
7802 \begin_layout Standard
7803 In yap, reverse search is triggered by double-click.
7804 \end_layout
7805
7806 \begin_layout Subsubsection*
7807 SumatraPDF (Windows)
7808 \end_layout
7809
7810 \begin_layout Standard
7811 In order to use SumatraPDF for inverse search, enter 
7812 \begin_inset Flex Code
7813 status collapsed
7814
7815 \begin_layout Plain Layout
7816 SumatraPDF -inverse-search "lyxeditor.bat "%f" %l"
7817 \end_layout
7818
7819 \end_inset
7820
7821  in the viewer setting in 
7822 \begin_inset Flex Noun
7823 status collapsed
7824
7825 \begin_layout Plain Layout
7826 Preferences\SpecialChar menuseparator
7827 File Handling\SpecialChar menuseparator
7828 File formats\SpecialChar menuseparator
7829 PDF (pdflatex)
7830 \end_layout
7831
7832 \end_inset
7833
7834 , where 
7835 \begin_inset Flex Code
7836 status collapsed
7837
7838 \begin_layout Plain Layout
7839 lyxeditor.bat
7840 \end_layout
7841
7842 \end_inset
7843
7844  is the previous wrapper.
7845  If SumatraPDF.exe is not in your command PATH, use its full file name.
7846 \end_layout
7847
7848 \begin_layout Standard
7849 Reverse search is triggered by double-click.
7850 \end_layout
7851
7852 \begin_layout Subsubsection*
7853 YAP (Cygwin)
7854 \end_layout
7855
7856 \begin_layout Standard
7857 First of all, make sure that yap is your default DVI viewer in the Windows
7858  environment, then launch it, choose its 
7859 \begin_inset Flex Noun
7860 status collapsed
7861
7862 \begin_layout Plain Layout
7863 View\SpecialChar menuseparator
7864 Options
7865 \end_layout
7866
7867 \end_inset
7868
7869  menu and select the 
7870 \begin_inset Quotes eld
7871 \end_inset
7872
7873 Inverse DVI Search
7874 \begin_inset Quotes erd
7875 \end_inset
7876
7877  tab.
7878  Click on the 
7879 \begin_inset Quotes eld
7880 \end_inset
7881
7882 New\SpecialChar ldots
7883
7884 \begin_inset Quotes erd
7885 \end_inset
7886
7887  button and, in the window that opens, enter 
7888 \begin_inset Quotes eld
7889 \end_inset
7890
7891 \SpecialChar LyX
7892  Editor
7893 \begin_inset Quotes erd
7894 \end_inset
7895
7896  (or any other name you like) in the 
7897 \begin_inset Quotes eld
7898 \end_inset
7899
7900 Name:
7901 \begin_inset Quotes erd
7902 \end_inset
7903
7904  field.
7905  Now click on the button labeled 
7906 \begin_inset Quotes eld
7907 \end_inset
7908
7909 \SpecialChar ldots
7910
7911 \begin_inset Quotes erd
7912 \end_inset
7913
7914  to open a file dialog and navigate to the directory containing the 
7915 \begin_inset Flex Code
7916 status collapsed
7917
7918 \begin_layout Plain Layout
7919 lyxeditor.exe
7920 \end_layout
7921
7922 \end_inset
7923
7924  program (which is installed by default on Cygwin along with the \SpecialChar LyX
7925  executable).
7926  Select 
7927 \begin_inset Flex Code
7928 status collapsed
7929
7930 \begin_layout Plain Layout
7931 lyxeditor.exe
7932 \end_layout
7933
7934 \end_inset
7935
7936  and then specify the program arguments as 
7937 \begin_inset Flex Code
7938 status collapsed
7939
7940 \begin_layout Plain Layout
7941 -g %f %l
7942 \end_layout
7943
7944 \end_inset
7945
7946 .
7947  In this way, you will be using the 
7948 \emph on
7949 lyxsocket
7950 \emph default
7951  for communicating with \SpecialChar LyX
7952 .
7953  If, for whatever reason, you want to use the 
7954 \emph on
7955 lyxpipe
7956 \emph default
7957 , omit the 
7958 \begin_inset Flex Code
7959 status collapsed
7960
7961 \begin_layout Plain Layout
7962 -g
7963 \end_layout
7964
7965 \end_inset
7966
7967  option and be sure to specify the \SpecialChar LyX
7968 Server pipe path in the \SpecialChar LyX
7969  preferences.
7970 \end_layout
7971
7972 \begin_layout Standard
7973 In yap, reverse search is triggered by double-click.
7974 \end_layout
7975
7976 \begin_layout Subsubsection*
7977 SumatraPDF (Cygwin)
7978 \end_layout
7979
7980 \begin_layout Standard
7981 In order to use SumatraPDF for inverse search, enter 
7982 \begin_inset Flex Code
7983 status collapsed
7984
7985 \begin_layout Plain Layout
7986 SumatraPDF -inverse-search "lyxeditor -g %f %l"
7987 \end_layout
7988
7989 \end_inset
7990
7991  in the viewer setting in 
7992 \begin_inset Flex Noun
7993 status collapsed
7994
7995 \begin_layout Plain Layout
7996 Preferences\SpecialChar menuseparator
7997 File Handling\SpecialChar menuseparator
7998 File formats\SpecialChar menuseparator
7999 PDF (pdflatex)
8000 \end_layout
8001
8002 \end_inset
8003
8004 .
8005  If SumatraPDF.exe is not in your command PATH, use its full posix path.
8006  The 
8007 \begin_inset Flex Code
8008 status collapsed
8009
8010 \begin_layout Plain Layout
8011 -g
8012 \end_layout
8013
8014 \end_inset
8015
8016  enables communication via the 
8017 \emph on
8018 lyxsocket
8019 \emph default
8020 .
8021  Again, omit the 
8022 \begin_inset Flex Code
8023 status collapsed
8024
8025 \begin_layout Plain Layout
8026 -g
8027 \end_layout
8028
8029 \end_inset
8030
8031  option if you want to use the 
8032 \emph on
8033 lyxpipe
8034 \emph default
8035 , and be sure to specify the \SpecialChar LyX
8036 Server pipe path in the \SpecialChar LyX
8037  preferences.
8038 \end_layout
8039
8040 \begin_layout Standard
8041 Reverse search is triggered by double-click.
8042 \end_layout
8043
8044 \begin_layout Section
8045 Forward search
8046 \end_layout
8047
8048 \begin_layout Standard
8049 Forward search is, as the name implies, in a sense the 
8050 \begin_inset Quotes eld
8051 \end_inset
8052
8053 opposite
8054 \begin_inset Quotes erd
8055 \end_inset
8056
8057  of reverse search.
8058  It allows you to let the viewer jump to a given position from within \SpecialChar LyX
8059 .
8060  If forward search is set up (as described in what follows), you can put
8061  the cursor anywhere in your \SpecialChar LyX
8062  document, and hit 
8063 \begin_inset Flex Noun
8064 status collapsed
8065
8066 \begin_layout Plain Layout
8067 Navigate\SpecialChar menuseparator
8068 Forward search
8069 \end_layout
8070
8071 \end_inset
8072
8073  (or select 
8074 \begin_inset Flex Noun
8075 status collapsed
8076
8077 \begin_layout Plain Layout
8078 Forward search
8079 \end_layout
8080
8081 \end_inset
8082
8083  in the context menu via right mouse click), and then the viewer will jump
8084  to that position as well.
8085  This implies, of course, that your viewer supports this function.
8086 \end_layout
8087
8088 \begin_layout Standard
8089 To make forward search possible, you first need to provide the generated
8090  output PDF/DVI file with additional information about the \SpecialChar TeX
8091  sources.
8092  This can be done via the methods described in the section 
8093 \begin_inset CommandInset ref
8094 LatexCommand ref
8095 reference "subsec:rev-search"
8096
8097 \end_inset
8098
8099 .
8100 \end_layout
8101
8102 \begin_layout Standard
8103 Additionally, you need to configure \SpecialChar LyX
8104  for using your viewers in 
8105 \begin_inset Flex Noun
8106 status collapsed
8107
8108 \begin_layout Plain Layout
8109 Tools\SpecialChar menuseparator
8110 Preferences\SpecialChar menuseparator
8111 Output\SpecialChar menuseparator
8112 General
8113 \end_layout
8114
8115 \end_inset
8116
8117 .
8118  We provide a range of tested configurations for some viewers, which you
8119  can select from the drop down list.
8120  If none of these configurations suits you, you have to find out and enter
8121  a suitable configuration yourself.
8122  The definition syntax uses the following placeholders:
8123 \end_layout
8124
8125 \begin_layout Itemize
8126 \noindent
8127 \begin_inset Flex Code
8128 status collapsed
8129
8130 \begin_layout Plain Layout
8131 $$n
8132 \end_layout
8133
8134 \end_inset
8135
8136 : row number
8137 \end_layout
8138
8139 \begin_layout Itemize
8140 \noindent
8141 \begin_inset Flex Code
8142 status collapsed
8143
8144 \begin_layout Plain Layout
8145 $$t
8146 \end_layout
8147
8148 \end_inset
8149
8150 : name of the (temporary) exported .tex file (without path)
8151 \end_layout
8152
8153 \begin_layout Itemize
8154 \noindent
8155 \begin_inset Flex Code
8156 status collapsed
8157
8158 \begin_layout Plain Layout
8159 $$f
8160 \end_layout
8161
8162 \end_inset
8163
8164 : name of the (temporary) exported .tex file (including path)
8165 \end_layout
8166
8167 \begin_layout Itemize
8168 \noindent
8169 \begin_inset Flex Code
8170 status collapsed
8171
8172 \begin_layout Plain Layout
8173 $$o
8174 \end_layout
8175
8176 \end_inset
8177
8178 : name of the exported output file (either dvi or pdf, depending on which
8179  one exists in the temporary directory)
8180 \end_layout
8181
8182 \begin_layout Standard
8183 Note that only some of the viewers provide full and usable forward search
8184  functionality out of the box, among them yap, xdvi, okular
8185 \begin_inset Foot
8186 status collapsed
8187
8188 \begin_layout Plain Layout
8189 You might want to set 
8190 \begin_inset Flex Code
8191 status collapsed
8192
8193 \begin_layout Plain Layout
8194 okular --unique
8195 \end_layout
8196
8197 \end_inset
8198
8199  in 
8200 \begin_inset Flex Noun
8201 status collapsed
8202
8203 \begin_layout Plain Layout
8204 Tools\SpecialChar menuseparator
8205 Preferences\SpecialChar menuseparator
8206 File Handling\SpecialChar menuseparator
8207 File
8208 \begin_inset space ~
8209 \end_inset
8210
8211 Formats
8212 \end_layout
8213
8214 \end_inset
8215
8216
8217 \end_layout
8218
8219 \end_inset
8220
8221 , qpdfview, and SumatraPDF
8222 \begin_inset Foot
8223 status collapsed
8224
8225 \begin_layout Plain Layout
8226 SumatraPDF can also use DDE commands through the external program CMCDDE
8227  — downloadable from 
8228 \begin_inset CommandInset href
8229 LatexCommand href
8230 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
8231 literal "false"
8232
8233 \end_inset
8234
8235
8236 \end_layout
8237
8238 \end_inset
8239
8240 .
8241  Others, such as evince
8242 \begin_inset Foot
8243 status collapsed
8244
8245 \begin_layout Plain Layout
8246 Forward search with evince can be achieved by means of third party helper
8247  scripts.
8248  Please refer to 
8249 \begin_inset CommandInset href
8250 LatexCommand href
8251 target "https://wiki.lyx.org/LyX/SyncTeX"
8252 literal "false"
8253
8254 \end_inset
8255
8256  for details.
8257 \end_layout
8258
8259 \end_inset
8260
8261 , require some extra tools in order to use forward search.
8262  While many of the widespread PDF viewers (most notably Adobe Reader) do
8263  not support forward search at all, some other viewers – e.
8264 \begin_inset space \thinspace{}
8265 \end_inset
8266
8267 g.
8268  xpdf – allow at least to reload the document and jump to a specific page
8269  of the file, so you can at least navigate 
8270 \begin_inset Quotes eld
8271 \end_inset
8272
8273 near
8274 \begin_inset Quotes erd
8275 \end_inset
8276
8277 .
8278  This latter functionality is provided by an external call of synctex (see
8279  the predefined example configurations).
8280  
8281 \end_layout
8282
8283 \begin_layout Standard
8284 Forward search works both with DVI and PDF output.
8285  \SpecialChar LyX
8286  simply checks which preview format you have used before (i.
8287 \begin_inset space \thinspace{}
8288 \end_inset
8289
8290 e., which format is already there in the temporary directory) and chooses
8291  the appropriate configuration for the respective format.
8292 \end_layout
8293
8294 \begin_layout Chapter
8295 Special Document Classes
8296 \end_layout
8297
8298 \begin_layout Section
8299 A&A Paper
8300 \end_layout
8301
8302 \begin_layout Standard
8303 by 
8304 \noun on
8305 Peter Sütterlin
8306 \end_layout
8307
8308 \begin_layout Subsection
8309 Introduction
8310 \end_layout
8311
8312 \begin_layout Standard
8313 This section describes how \SpecialChar LyX
8314  can be used to write articles for submission
8315  to the scientific journal 
8316 \emph on
8317 Astronomy and Astrophysics
8318 \emph default
8319  (
8320 \begin_inset Flex URL
8321 status collapsed
8322
8323 \begin_layout Plain Layout
8324
8325 https://www.aanda.org/
8326 \end_layout
8327
8328 \end_inset
8329
8330 ) using Version 5.01 of the document class 
8331 \family typewriter
8332 aa.cls
8333 \family default
8334 .
8335  This package can be downloaded from the ftp site
8336 \end_layout
8337
8338 \begin_layout Standard
8339 \begin_inset VSpace medskip
8340 \end_inset
8341
8342
8343 \end_layout
8344
8345 \begin_layout Standard
8346 \align center
8347 \begin_inset Flex URL
8348 status collapsed
8349
8350 \begin_layout Plain Layout
8351
8352 ftp://ftp.edpsciences.org/pub/aa/readme.html
8353 \end_layout
8354
8355 \end_inset
8356
8357
8358 \end_layout
8359
8360 \begin_layout Standard
8361 \begin_inset VSpace medskip
8362 \end_inset
8363
8364
8365 \end_layout
8366
8367 \begin_layout Standard
8368 A manual comes together with that package, and this text is not meant to
8369  replace the original manual but is merely a short guide in how to realize
8370  the correct form of your paper.
8371  
8372 \end_layout
8373
8374 \begin_layout Standard
8375 Please note that the publisher of the journal was changed from Springer
8376  to EDP Sciences starting January 1, 2001.
8377  That change involved also some slight changes to the style files, namely
8378  the removal of the thesaurus command.
8379  The \SpecialChar LyX
8380  class aa supports the newest version of these style files, V 5.01.
8381  If you have an older version installed, please upgrade.
8382  For compatibility, the old (version 4) layout has been kept as 
8383 \family sans
8384 article (A&A V4)
8385 \family default
8386 .
8387  Please refer to the comments in 
8388 \family typewriter
8389 \SpecialChar LyX
8390 Dir/layouts/aapaper.layout
8391 \family default
8392 .
8393 \end_layout
8394
8395 \begin_layout Subsection
8396 Getting started
8397 \end_layout
8398
8399 \begin_layout Standard
8400 It is recommended you start from the example template distributed with \SpecialChar LyX
8401 .
8402  If you are not using a template, note the following settings:
8403 \end_layout
8404
8405 \begin_layout Itemize
8406 Select 
8407 \family sans
8408 article (A&A)
8409 \family default
8410  in the 
8411 \family sans
8412 Document\SpecialChar menuseparator
8413 Settings
8414 \family default
8415  dialog (OK, that one was obvious).
8416 \end_layout
8417
8418 \begin_layout Itemize
8419 Don't change the option 
8420 \family sans
8421 Page
8422 \begin_inset space ~
8423 \end_inset
8424
8425 style
8426 \family default
8427 : Leave it set to 
8428 \family sans
8429 default
8430 \family default
8431 .
8432  The whole layout is done by the macros, you shouldn't change anything.
8433 \end_layout
8434
8435 \begin_layout Subsection
8436 The header block
8437 \end_layout
8438
8439 \begin_layout Standard
8440 First thing to enter is the header information.
8441  It consists of seven entries, of which some are optional.
8442  They are
8443 \end_layout
8444
8445 \begin_layout Itemize
8446
8447 \family sans
8448 Title
8449 \family default
8450 : [required] 
8451 \end_layout
8452
8453 \begin_layout Itemize
8454
8455 \family sans
8456 Subtitle
8457 \family default
8458 : [optional] 
8459 \end_layout
8460
8461 \begin_layout Itemize
8462
8463 \family sans
8464 Author
8465 \family default
8466 : [required]
8467 \end_layout
8468
8469 \begin_layout Itemize
8470
8471 \family sans
8472 Address
8473 \family default
8474 : [required]
8475 \end_layout
8476
8477 \begin_layout Itemize
8478
8479 \family sans
8480 Offprints
8481 \family default
8482 : [optional] if more than one author: whom to contact for offprint requests.
8483 \end_layout
8484
8485 \begin_layout Itemize
8486
8487 \family sans
8488 Mail
8489 \family default
8490 : [optional] mail address for contacts.
8491 \end_layout
8492
8493 \begin_layout Itemize
8494
8495 \family sans
8496 Date
8497 \family default
8498 : [required].
8499  Suggested format is 
8500 \family typewriter
8501 Received: <date>; Accepted <date> 
8502 \end_layout
8503
8504 \begin_layout Standard
8505 There is no need to issue the 
8506 \family typewriter
8507
8508 \backslash
8509 maketitle
8510 \family default
8511  command, this is done automatically by \SpecialChar LyX
8512  when the header is finished.
8513  Although the order of the single header entries doesn't matter it is advised
8514  to keep the above sequence, just to get the best optics and meets the layout
8515  of the real document.
8516 \end_layout
8517
8518 \begin_layout Standard
8519 If you want to place footnotes in the header block, e.
8520 \begin_inset space \thinspace{}
8521 \end_inset
8522
8523 g.
8524 \begin_inset space \space{}
8525 \end_inset
8526
8527 to state your present address, just use the standard footnote via the menu
8528  
8529 \family sans
8530 Insert\SpecialChar menuseparator
8531 Footnote.
8532
8533 \family default
8534  \SpecialChar LyX
8535  will automagically use the term 
8536 \family typewriter
8537
8538 \backslash
8539 thanks{}
8540 \family default
8541  in that case.
8542 \end_layout
8543
8544 \begin_layout Standard
8545 Under 
8546 \family sans
8547 Edit\SpecialChar menuseparator
8548 Text Style
8549 \family default
8550 , you'll find two insets which are relevant for the titling:
8551 \end_layout
8552
8553 \begin_layout Itemize
8554
8555 \family sans
8556 Institute
8557 \family typewriter
8558  
8559 \family default
8560 to mark corresponding author\SpecialChar breakableslash
8561 institute pairs.
8562  The institutes are numbered sequentially as they appear in the 
8563 \family sans
8564 Address
8565 \family default
8566  field, so you have to put a marker to each author.
8567 \end_layout
8568
8569 \begin_layout Itemize
8570
8571 \family sans
8572 Email
8573 \family default
8574  to supply an email address for fast contact.
8575 \end_layout
8576
8577 \begin_layout Standard
8578 In addition to these topics, the macros use one additional \SpecialChar LaTeX
8579  command that
8580  has no counterpart in \SpecialChar LyX
8581 :
8582 \end_layout
8583
8584 \begin_layout Itemize
8585
8586 \family typewriter
8587
8588 \backslash
8589 and
8590 \family default
8591  to separate different names for more than one author and institute, respectivel
8592 y.
8593 \end_layout
8594
8595 \begin_layout Standard
8596 The appropriate command has to be entered in \SpecialChar LyX
8597  and marked as \SpecialChar LaTeX
8598  code.
8599  See the examples.
8600  
8601 \end_layout
8602
8603 \begin_layout Subsection
8604 The abstract
8605 \end_layout
8606
8607 \begin_layout Standard
8608 The abstract should immediately follow the header block.
8609  With version 5 the abstract environment was changed to a command, and there
8610  is now a restriction to only one paragraph.
8611  In addition, it should contain an entry with the keywords.
8612  This is done via the paragraph style 
8613 \family sans
8614 Keywords
8615 \family default
8616 .
8617  Refer to the example paper.
8618 \end_layout
8619
8620 \begin_layout Subsection
8621 Supported environments
8622 \end_layout
8623
8624 \begin_layout Standard
8625 The A&A paper layout supports the following environments for structuring
8626  your text:
8627 \end_layout
8628
8629 \begin_layout Itemize
8630
8631 \family sans
8632 Standard
8633 \end_layout
8634
8635 \begin_layout Itemize
8636
8637 \family sans
8638 Section
8639 \end_layout
8640
8641 \begin_layout Itemize
8642
8643 \family sans
8644 Subsection
8645 \end_layout
8646
8647 \begin_layout Itemize
8648
8649 \family sans
8650 Subsubsection
8651 \end_layout
8652
8653 \begin_layout Itemize
8654
8655 \family sans
8656 Itemize
8657 \end_layout
8658
8659 \begin_layout Itemize
8660
8661 \family sans
8662 Enumerate
8663 \end_layout
8664
8665 \begin_layout Itemize
8666
8667 \family sans
8668 Description
8669 \end_layout
8670
8671 \begin_layout Itemize
8672
8673 \family sans
8674 Caption
8675 \end_layout
8676
8677 \begin_layout Itemize
8678
8679 \family sans
8680 Abstract
8681 \end_layout
8682
8683 \begin_layout Itemize
8684
8685 \family sans
8686 Acknowledgment
8687 \end_layout
8688
8689 \begin_layout Itemize
8690
8691 \family sans
8692 Bibliography
8693 \end_layout
8694
8695 \begin_layout Itemize
8696
8697 \family sans
8698 \SpecialChar LaTeX
8699
8700 \end_layout
8701
8702 \begin_layout Subsection
8703 Commands not supported by \SpecialChar LyX
8704
8705 \end_layout
8706
8707 \begin_layout Standard
8708 Some commands are not yet supported by the 
8709 \family sans
8710 paper (A&A)
8711 \family default
8712  layout for \SpecialChar LyX
8713 .
8714  Some have already been mentioned.
8715  For the sake of completeness, they are listed all together here:
8716 \end_layout
8717
8718 \begin_layout Itemize
8719
8720 \family typewriter
8721
8722 \backslash
8723 and
8724 \end_layout
8725
8726 \begin_layout Itemize
8727
8728 \family typewriter
8729
8730 \backslash
8731 authorrunning
8732 \end_layout
8733
8734 \begin_layout Itemize
8735
8736 \family typewriter
8737
8738 \backslash
8739 object{}
8740 \end_layout
8741
8742 \begin_layout Itemize
8743
8744 \family typewriter
8745
8746 \backslash
8747 titlerunning{}
8748 \end_layout
8749
8750 \begin_layout Standard
8751 If you want to use any of these commands, you have to enter them yourself.
8752  
8753 \series bold
8754 Do not forget to mark them as \SpecialChar LaTeX
8755  code!
8756 \end_layout
8757
8758 \begin_layout Subsection
8759 Figure and Table Floats
8760 \end_layout
8761
8762 \begin_layout Standard
8763 \SpecialChar LyX
8764  provides support for the necessary float environments 
8765 \family sans
8766 figure, figure*, table
8767 \family default
8768  and 
8769 \family sans
8770 table*
8771 \family default
8772 , therefore we won't tell much about it here.
8773  Refer to the 
8774 \emph on
8775 User's
8776 \begin_inset space ~
8777 \end_inset
8778
8779 Guide
8780 \emph default
8781 .
8782  Just remember that tables should be left-aligned.
8783  For that, select the table and change the alignment in 
8784 \family sans
8785 Edit\SpecialChar menuseparator
8786 Paragraph
8787 \begin_inset space ~
8788 \end_inset
8789
8790 Settings.
8791 \end_layout
8792
8793 \begin_layout Standard
8794 There is only one special thing: the figures with caption besides the figure.
8795  To create such a figure, you have to do the following:
8796 \end_layout
8797
8798 \begin_layout Enumerate
8799 Create a wide figure float: 
8800 \family sans
8801 Insert\SpecialChar menuseparator
8802 Float\SpecialChar menuseparator
8803 Figure
8804 \family default
8805 , then right click in the figure and select 
8806 \family sans
8807 Span
8808 \begin_inset space ~
8809 \end_inset
8810
8811 columns
8812 \family default
8813 .
8814 \end_layout
8815
8816 \begin_layout Enumerate
8817 Enter your caption text.
8818 \end_layout
8819
8820 \begin_layout Enumerate
8821 Press 
8822 \family sans
8823 Return
8824 \family default
8825  to move the cursor above the caption.
8826 \end_layout
8827
8828 \begin_layout Enumerate
8829 Insert your figure
8830 \end_layout
8831
8832 \begin_layout Enumerate
8833 Position the cursor behind the figure and insert a horizontal fill: 
8834 \family sans
8835 Insert\SpecialChar menuseparator
8836 Special
8837 \begin_inset space ~
8838 \end_inset
8839
8840 Character\SpecialChar menuseparator
8841 Horizontal
8842 \begin_inset space ~
8843 \end_inset
8844
8845 Fill
8846 \family default
8847 .
8848 \end_layout
8849
8850 \begin_layout Enumerate
8851 Switch to \SpecialChar LaTeX
8852  mode: 
8853 \family sans
8854 M-c
8855 \begin_inset space ~
8856 \end_inset
8857
8858 t
8859 \family default
8860 .
8861 \end_layout
8862
8863 \begin_layout Enumerate
8864 Enter 
8865 \family typewriter
8866
8867 \backslash
8868 parbox[b]{55mm}{
8869 \family default
8870 .
8871  
8872 \series bold
8873 Do not close the brace!
8874 \end_layout
8875
8876 \begin_layout Enumerate
8877 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
8878  mode and insert
8879  the closing brace: 
8880 \family sans
8881 M-c
8882 \begin_inset space ~
8883 \end_inset
8884
8885 t
8886 \family default
8887  
8888 \family typewriter
8889 }
8890 \family default
8891 .
8892 \end_layout
8893
8894 \begin_layout Standard
8895 Also, refer to the figures in the example paper.
8896 \end_layout
8897
8898 \begin_layout Subsection
8899 Referee layout
8900 \end_layout
8901
8902 \begin_layout Standard
8903 For submission, the paper has to be formated in a special double-spacing
8904  layout.
8905  For this purpose, you have to give the option 
8906 \family typewriter
8907 referee
8908 \family default
8909  to the document class.
8910  This must be done using the custom class options field in the 
8911 \family sans
8912 Document\SpecialChar menuseparator
8913 Settings
8914 \family default
8915  dialog.
8916  Just enter the string 
8917 \family typewriter
8918 referee
8919 \family default
8920  there.
8921 \end_layout
8922
8923 \begin_layout Subsection
8924 The example paper
8925 \end_layout
8926
8927 \begin_layout Standard
8928 The 
8929 \family sans
8930 Examples
8931 \family default
8932  directory contains an example paper written with \SpecialChar LyX
8933 .
8934  It is the example paper from the original macro package, translated to
8935  \SpecialChar LyX
8936 .
8937  Use it for inspiration, and compare the original \SpecialChar LaTeX
8938  code with \SpecialChar LyX
8939  way of writing.
8940 \end_layout
8941
8942 \begin_layout Section
8943 AAS\SpecialChar TeX
8944
8945 \end_layout
8946
8947 \begin_layout Standard
8948 by 
8949 \noun on
8950 Mike Ressler
8951 \end_layout
8952
8953 \begin_layout Subsection
8954 Introduction
8955 \end_layout
8956
8957 \begin_layout Standard
8958 AAS\SpecialChar TeX
8959  is a set of macros produced by the American Astronomical Society to
8960  facilitate electronic manuscript submission to the three journals they
8961  publish: the Astrophysical Journal (including the Letters and Supplement),
8962  the Astronomical Journal, and the Publications of the Astronomical Society
8963  of the Pacific.
8964  \SpecialChar LyX
8965  has proven to be an excellent tool for generating these documents, especially
8966  given its equation, citation, and figure handling capabilities.
8967  \SpecialChar LyX
8968  requires version 5.0 (or higher) of these macros; preferably 6.0, which
8969  is the version described here, or higher.
8970  Versions prior to 5.0 are intended for use with \SpecialChar LaTeX
8971 2.09 and are fundamentally
8972  incompatible with \SpecialChar LyX
8973 .
8974  The AAS\SpecialChar TeX
8975  package may be downloaded from the AAS\SpecialChar TeX
8976  Web site
8977 \end_layout
8978
8979 \begin_layout Standard
8980 \begin_inset VSpace medskip
8981 \end_inset
8982
8983
8984 \end_layout
8985
8986 \begin_layout Standard
8987 \align center
8988 \begin_inset Flex URL
8989 status collapsed
8990
8991 \begin_layout Plain Layout
8992
8993 https://aas.org/aastex/aastex-downloads
8994 \end_layout
8995
8996 \end_inset
8997
8998
8999 \end_layout
9000
9001 \begin_layout Standard
9002 \begin_inset VSpace medskip
9003 \end_inset
9004
9005
9006 \end_layout
9007
9008 \begin_layout Standard
9009 A complete user guide is contained in that package and you should familiarize
9010  yourself with it thoroughly before embarking on writing a paper in \SpecialChar LyX
9011 .
9012  \SpecialChar LyX
9013  will not reduce the need to figure out all the AAS\SpecialChar TeX
9014  commands, it will only
9015  reduce the drudgery of typing everything in.
9016  It is your responsibility to ensure that the final exported \SpecialChar LaTeX
9017  document conforms
9018  completely to the requirements of the journal to which you are submitting
9019  your paper.
9020 \end_layout
9021
9022 \begin_layout Subsection
9023 Starting a New Paper
9024 \end_layout
9025
9026 \begin_layout Standard
9027 I strongly suggest that you start with the AAS\SpecialChar TeX
9028  template file.
9029  Click on 
9030 \family sans
9031 File\SpecialChar menuseparator
9032 New from
9033 \family default
9034  
9035 \family sans
9036 Template
9037 \family default
9038 , enter the new file name, then choose the 
9039 \family typewriter
9040 aastex6.lyx
9041 \family default
9042  template.
9043  This will show the most common fields found in a manuscript.
9044  Simply overwrite the existing text (including the brackets, 
9045 \family typewriter
9046 <>
9047 \family default
9048 ) with the correct information.
9049  Many of the AAS\SpecialChar TeX
9050  commands and environments can be implemented directly in
9051  \SpecialChar LyX
9052 , but some cannot.
9053  For commands such as these, the \SpecialChar LaTeX
9054  code must be entered directly and marked
9055  as such.
9056  Such commands are referred to as \SpecialChar TeX
9057  code, or Evil Red Text.
9058  I tried to minimize the amount of \SpecialChar TeX
9059  code needed in an AAS\SpecialChar TeX
9060  document.
9061 \end_layout
9062
9063 \begin_layout Subsection
9064 Finishing Your Paper
9065 \end_layout
9066
9067 \begin_layout Standard
9068 When the paper is finished to your satisfaction and previews/prints correctly,
9069  there are a few 
9070 \begin_inset Quotes eld
9071 \end_inset
9072
9073 postprocessing
9074 \begin_inset Quotes erd
9075 \end_inset
9076
9077  actions which need to be done before you submit it to the journals.
9078  
9079 \end_layout
9080
9081 \begin_layout Enumerate
9082 Export your paper as a \SpecialChar LaTeX
9083  file (
9084 \family sans
9085 File\SpecialChar menuseparator
9086 Export\SpecialChar menuseparator
9087 \SpecialChar LaTeX
9088
9089 \family default
9090 ).
9091  
9092 \end_layout
9093
9094 \begin_layout Enumerate
9095 Edit the resulting 
9096 \family typewriter
9097 .tex
9098 \family default
9099  file with your favorite text editor
9100 \end_layout
9101
9102 \begin_deeper
9103 \begin_layout Enumerate
9104 remove the comment lines before the 
9105 \family typewriter
9106
9107 \backslash
9108 documentclass
9109 \family default
9110  command
9111 \end_layout
9112
9113 \begin_layout Enumerate
9114 remove the 
9115 \family typewriter
9116
9117 \backslash
9118 usepackage...{fontenc}
9119 \family default
9120  line if it appears (usually just after 
9121 \family typewriter
9122
9123 \backslash
9124 documentclass
9125 \family default
9126 }; also remove the 
9127 \family typewriter
9128
9129 \backslash
9130 secnumdepth
9131 \family default
9132  line if it appears.
9133 \end_layout
9134
9135 \begin_layout Enumerate
9136 remove everything between (and including) the 
9137 \family typewriter
9138
9139 \backslash
9140 makeatletter
9141 \family default
9142  and 
9143 \family typewriter
9144
9145 \backslash
9146 makeatother
9147 \family default
9148  commands, except for any commands you specifically put into the \SpecialChar LaTeX
9149  preamble
9150  (which should appear immediately after the 
9151 \begin_inset Quotes eld
9152 \end_inset
9153
9154 User specified \SpecialChar LaTeX
9155  commands
9156 \begin_inset Quotes erd
9157 \end_inset
9158
9159  comment in the 
9160 \family typewriter
9161 .tex
9162 \family default
9163  file).
9164 \end_layout
9165
9166 \end_deeper
9167 \begin_layout Enumerate
9168 Run the resulting file through \SpecialChar LaTeX
9169  to make sure it still processes correctly.
9170 \end_layout
9171
9172 \begin_layout Enumerate
9173 Reread the journal requirements to make sure your filenames and formats
9174  are correct.
9175 \end_layout
9176
9177 \begin_layout Enumerate
9178 Submit it.
9179 \end_layout
9180
9181 \begin_layout Subsection
9182 Comments On Specific Commands
9183 \end_layout
9184
9185 \begin_layout Standard
9186 I will not describe the detailed usage of the individual AAS\SpecialChar TeX
9187  commands: the
9188  AAS\SpecialChar TeX
9189  User Guide (
9190 \family typewriter
9191 aasguide.tex
9192 \family default
9193 ) gives a good description of each.
9194  Thus it's probably easiest for me to go down the list as found in the guide
9195  and offer comments where necessary.
9196  So let's begin \SpecialChar ldots
9197
9198 \end_layout
9199
9200 \begin_layout Subsubsection
9201 Things that work as expected
9202 \end_layout
9203
9204 \begin_layout Standard
9205 Because they work as you might expect, I simply list them and the section
9206  they are found in: 
9207 \family typewriter
9208
9209 \backslash
9210 documentclass
9211 \family default
9212  (2.1.1), 
9213 \family typewriter
9214
9215 \backslash
9216 begin{document}
9217 \family default
9218  (2.2), 
9219 \family typewriter
9220
9221 \backslash
9222 title
9223 \family default
9224  (2.3), 
9225 \family typewriter
9226
9227 \backslash
9228 author
9229 \family default
9230  (2.3), 
9231 \family typewriter
9232
9233 \backslash
9234 affil
9235 \family default
9236  (2.3), 
9237 \family typewriter
9238
9239 \backslash
9240 abstract
9241 \family default
9242  (2.4), 
9243 \family typewriter
9244
9245 \backslash
9246 keywords
9247 \family default
9248  (2.5), 
9249 \family typewriter
9250
9251 \backslash
9252 section
9253 \family default
9254  (2.7), 
9255 \family typewriter
9256
9257 \backslash
9258 subsection
9259 \family default
9260  (2.7), 
9261 \family typewriter
9262
9263 \backslash
9264 subsubsection
9265 \family default
9266  (2.7), 
9267 \family typewriter
9268
9269 \backslash
9270 paragraph
9271 \family default
9272  (2.7), 
9273 \family typewriter
9274
9275 \backslash
9276 facility
9277 \family default
9278  (2.10), 
9279 \family typewriter
9280
9281 \backslash
9282 begin{displaymath}
9283 \family default
9284  (2.12), 
9285 \family typewriter
9286
9287 \backslash
9288 begin{equation}
9289 \family default
9290  (2.12), 
9291 \family typewriter
9292
9293 \backslash
9294 begin{eqnarray}
9295 \family default
9296  (2.12), 
9297 \family typewriter
9298
9299 \backslash
9300 begin{mathletters}
9301 \family default
9302  (2.12), 
9303 \family typewriter
9304
9305 \backslash
9306 begin{thebibliography}
9307 \family default
9308  (2.13.1), 
9309 \family typewriter
9310
9311 \backslash
9312 bibitem
9313 \family default
9314  (2.13.2), all the cite commands and their variations (2.13.2), the generic
9315  graphicx figure commands (2.14.1), 
9316 \family typewriter
9317
9318 \backslash
9319 begin{table}
9320 \family default
9321  (2.15.4), 
9322 \family typewriter
9323
9324 \backslash
9325 begin{tabular}
9326 \family default
9327  (2.15.4), 
9328 \family typewriter
9329
9330 \backslash
9331 caption
9332 \family default
9333  (2.15.4), 
9334 \family typewriter
9335
9336 \backslash
9337 label
9338 \family default
9339  (2.15.4, amongst other places), 
9340 \family typewriter
9341
9342 \backslash
9343 tablerefs
9344 \family default
9345  (2.15.5), 
9346 \family typewriter
9347
9348 \backslash
9349 tablecomments
9350 \family default
9351  (2.15.5), 
9352 \family typewriter
9353
9354 \backslash
9355 url
9356 \family default
9357  (2.17.4), 
9358 \family typewriter
9359
9360 \backslash
9361 end{document}
9362 \family default
9363  (2.18).
9364 \end_layout
9365
9366 \begin_layout Standard
9367 The following style options also work correctly: 
9368 \family typewriter
9369 longabstract
9370 \family default
9371  (2.4), 
9372 \family typewriter
9373 preprint
9374 \family default
9375  (3.2.1), 
9376 \family typewriter
9377 preprint2
9378 \family default
9379  (3.2.2), 
9380 \family typewriter
9381 eqsecnum
9382 \family default
9383  (3.3), 
9384 \family typewriter
9385 flushrt
9386 \family default
9387  (3.4).
9388  Simply put them in the 
9389 \family sans
9390 Options
9391 \family default
9392  box in 
9393 \family sans
9394 Layout\SpecialChar menuseparator
9395 Document
9396 \family default
9397 .
9398 \end_layout
9399
9400 \begin_layout Subsubsection
9401 Things that work, but require more comment
9402 \end_layout
9403
9404 \begin_layout Standard
9405 The following items work, but require a little more discussion:
9406 \end_layout
9407
9408 \begin_layout Itemize
9409 These items are reserved for use by the journal editors, but you can put
9410  them into the \SpecialChar LaTeX
9411  preamble if you feel compelled to do so: 
9412 \family typewriter
9413
9414 \backslash
9415 received
9416 \family default
9417
9418 \family typewriter
9419
9420 \backslash
9421 revised
9422 \family default
9423
9424 \family typewriter
9425
9426 \backslash
9427 accepted
9428 \family default
9429
9430 \family typewriter
9431
9432 \backslash
9433 ccc
9434 \family default
9435
9436 \family typewriter
9437
9438 \backslash
9439 cpright
9440 \family default
9441  (all from 2.1.3)
9442 \end_layout
9443
9444 \begin_layout Itemize
9445 These items may be placed in the \SpecialChar LaTeX
9446  preamble, and are included as blanks in
9447  the template file: 
9448 \family typewriter
9449
9450 \backslash
9451 slugcomment
9452 \family default
9453  (2.1.4), 
9454 \family typewriter
9455
9456 \backslash
9457 shorttitle
9458 \family default
9459  (2.1.5), 
9460 \family typewriter
9461
9462 \backslash
9463 shortauthors
9464 \family default
9465  (2.1.5)
9466 \end_layout
9467
9468 \begin_layout Itemize
9469
9470 \family typewriter
9471
9472 \backslash
9473 email
9474 \family default
9475  (2.3) – can only be used 
9476 \begin_inset Quotes eld
9477 \end_inset
9478
9479 standalone
9480 \begin_inset Quotes erd
9481 \end_inset
9482
9483 , not in the middle of a paragraph.
9484  Use \SpecialChar TeX
9485  code if you need to embed it.
9486 \end_layout
9487
9488 \begin_layout Itemize
9489
9490 \family typewriter
9491
9492 \backslash
9493 and
9494 \family default
9495  (2.3) – will have extra {} after it.
9496  This should not cause an error.
9497 \end_layout
9498
9499 \begin_layout Itemize
9500
9501 \family typewriter
9502
9503 \backslash
9504 notetoeditor
9505 \family default
9506  (2.6) – can only be used 
9507 \begin_inset Quotes eld
9508 \end_inset
9509
9510 standalone
9511 \begin_inset Quotes erd
9512 \end_inset
9513
9514 , not in the middle of a paragraph.
9515  Use \SpecialChar TeX
9516  code if you need to embed it.
9517 \end_layout
9518
9519 \begin_layout Itemize
9520
9521 \family typewriter
9522
9523 \backslash
9524 placetable
9525 \family default
9526  (2.8) – can't insert a cross-reference tag, you must type the tag name by
9527  hand
9528 \end_layout
9529
9530 \begin_layout Itemize
9531
9532 \family typewriter
9533
9534 \backslash
9535 placefigure
9536 \family default
9537  (2.8) – same as for 
9538 \family typewriter
9539
9540 \backslash
9541 placetable
9542 \end_layout
9543
9544 \begin_layout Itemize
9545
9546 \family typewriter
9547
9548 \backslash
9549 acknowledgements
9550 \family default
9551  (2.9) – will have extra {} after it.
9552  This should not cause an error.
9553 \end_layout
9554
9555 \begin_layout Itemize
9556
9557 \family typewriter
9558
9559 \backslash
9560 appendix
9561 \family default
9562  (2.11) – will have extra {} after it.
9563  This should not cause an error.
9564 \end_layout
9565
9566 \begin_layout Itemize
9567
9568 \family typewriter
9569
9570 \backslash
9571 figcaption
9572 \family default
9573  (2.14.2) – you can insert an optional filename argument by placing the cursor
9574  at the beginning of the text and selecting 
9575 \family sans
9576 Insert\SpecialChar menuseparator
9577 Short Title
9578 \family default
9579 .
9580  
9581 \begin_inset Quotes eld
9582 \end_inset
9583
9584 Short Title
9585 \begin_inset Quotes erd
9586 \end_inset
9587
9588  inserts an optional argument of the type needed by 
9589 \family typewriter
9590
9591 \backslash
9592 figcaption
9593 \family default
9594 .
9595  Hopefully it will be renamed someday.
9596 \end_layout
9597
9598 \begin_layout Itemize
9599
9600 \family typewriter
9601
9602 \backslash
9603 objectname
9604 \family default
9605  (2.17.1) – same as 
9606 \family typewriter
9607
9608 \backslash
9609 figcaption
9610 \family default
9611  for the catalog ID optional parameter
9612 \end_layout
9613
9614 \begin_layout Itemize
9615
9616 \family typewriter
9617
9618 \backslash
9619 dataset
9620 \family default
9621  (2.17.1) – same as 
9622 \family typewriter
9623
9624 \backslash
9625 figcaption
9626 \family default
9627  for the catalog ID optional parameter
9628 \end_layout
9629
9630 \begin_layout Subsubsection
9631 Things not implemented, use \SpecialChar TeX
9632  code
9633 \end_layout
9634
9635 \begin_layout Standard
9636
9637 \family typewriter
9638
9639 \backslash
9640 eqnum
9641 \family default
9642  (2.12), 
9643 \family typewriter
9644
9645 \backslash
9646 setcounter{equation}
9647 \family default
9648  (2.12), Journal name abbreviations (2.13.4), 
9649 \family typewriter
9650
9651 \backslash
9652 figurenum
9653 \family default
9654  (2.14.1), 
9655 \family typewriter
9656
9657 \backslash
9658 epsscale
9659 \family default
9660  (2.14.1), 
9661 \family typewriter
9662
9663 \backslash
9664 plotone
9665 \family default
9666  (2.14.1), 
9667 \family typewriter
9668
9669 \backslash
9670 plottwo
9671 \family default
9672  (2.14.1), 
9673 \family typewriter
9674
9675 \backslash
9676 tablenum
9677 \family default
9678  (2.15.4), 
9679 \family typewriter
9680
9681 \backslash
9682 tableline
9683 \family default
9684  (2.15.4, insert it as the first element in the lefthand cell after where
9685  you want it.
9686  Don't use any of \SpecialChar LyX
9687 's rules in the table), 
9688 \family typewriter
9689
9690 \backslash
9691 tablenotemark
9692 \family default
9693  (2.15.5), 
9694 \family typewriter
9695
9696 \backslash
9697 tablenotetext
9698 \family default
9699  (2.15.5), much of Misc (2.17, except 
9700 \family typewriter
9701
9702 \backslash
9703 objectname
9704 \family default
9705
9706 \family typewriter
9707
9708 \backslash
9709 dataset
9710 \family default
9711
9712 \family typewriter
9713
9714 \backslash
9715 url
9716 \family default
9717 , and 
9718 \family typewriter
9719
9720 \backslash
9721 email
9722 \family default
9723 ; see above), 
9724 \family typewriter
9725
9726 \backslash
9727 singlespace
9728 \family default
9729  (3.1), 
9730 \family typewriter
9731
9732 \backslash
9733 doublespace
9734 \family default
9735  (3.1), 
9736 \family typewriter
9737
9738 \backslash
9739 onecolumn
9740 \family default
9741  (3.2), 
9742 \family typewriter
9743
9744 \backslash
9745 twocolumn
9746 \family default
9747  (3.2)
9748 \end_layout
9749
9750 \begin_layout Subsubsection
9751 Things that cannot be implemented
9752 \end_layout
9753
9754 \begin_layout Standard
9755 \SpecialChar ldots
9756  at least in any meaningful sort of way, so I suggest ignoring them.
9757  They are the references environment (2.13.3), and the deluxetable environment
9758  (2.15).
9759  If you really, really need to use deluxetable, I suggest editing it in
9760  a separate file with a text editor, then using 
9761 \family sans
9762 Insert\SpecialChar menuseparator
9763 Child
9764 \begin_inset space ~
9765 \end_inset
9766
9767 Document
9768 \family default
9769  to include it in your \SpecialChar LyX
9770  document.
9771  See the 
9772 \family typewriter
9773 aas_sample.lyx
9774 \family default
9775  file to see an example of this.
9776 \end_layout
9777
9778 \begin_layout Subsection
9779 FAQs, Tips, Tricks, and Other Ruminations
9780 \end_layout
9781
9782 \begin_layout Subsubsection
9783 Getting \SpecialChar LyX
9784  and AAS\SpecialChar TeX
9785  to cooperate
9786 \end_layout
9787
9788 \begin_layout Standard
9789 It can be a bit tricky to get \SpecialChar LyX
9790  to recognize a new layout and document class.
9791  When all else fails, do this:
9792 \end_layout
9793
9794 \begin_layout Enumerate
9795 Make certain that \SpecialChar LaTeX
9796  can find AAS\SpecialChar TeX
9797 .
9798  Copy sample.tex (and perhaps table.tex) from the AAS\SpecialChar TeX
9799  distribution into a
9800  directory completely unrelated to \SpecialChar LaTeX
9801  or AAS\SpecialChar TeX
9802  and run \SpecialChar LaTeX
9803  on 
9804 \family typewriter
9805 sample.tex
9806 \family default
9807 .
9808 \end_layout
9809
9810 \begin_layout Enumerate
9811 Make certain that 
9812 \family typewriter
9813 aastex.layout
9814 \family default
9815  appears in \SpecialChar LyX
9816 's 
9817 \family typewriter
9818 layouts
9819 \family default
9820  folder
9821 \end_layout
9822
9823 \begin_layout Enumerate
9824 Rerun 
9825 \family sans
9826 Tools\SpecialChar menuseparator
9827 Reconfigure
9828 \family default
9829  in \SpecialChar LyX
9830 , then restart \SpecialChar LyX
9831 .
9832 \end_layout
9833
9834 \begin_layout Enumerate
9835 Open a regular new file, not from a template.
9836  Does AAS\SpecialChar TeX
9837  appear in the class list in 
9838 \family sans
9839 Document\SpecialChar menuseparator
9840 Settings
9841 \family default
9842 ?
9843 \end_layout
9844
9845 \begin_layout Standard
9846 If you get a warning from an existing AAS\SpecialChar TeX
9847  document about not being able
9848  to find the AAS\SpecialChar TeX
9849  layout or a message about 
9850 \begin_inset Quotes eld
9851 \end_inset
9852
9853 You should not mix title layouts with normal ones
9854 \begin_inset Quotes erd
9855 \end_inset
9856
9857 , things haven't been installed correctly.
9858 \end_layout
9859
9860 \begin_layout Subsubsection
9861 \SpecialChar LaTeX
9862  error processing a table 
9863 \end_layout
9864
9865 \begin_layout Standard
9866 \SpecialChar LyX
9867 , by default, attempts to center the table caption/title.
9868  This seems to produce a bad interaction in AAS\SpecialChar TeX
9869  so you should click somewhere
9870  in the caption/title, then select 
9871 \family sans
9872 Edit\SpecialChar menuseparator
9873 Paragraph
9874 \begin_inset space ~
9875 \end_inset
9876
9877 Settings
9878 \family default
9879 , then set the 
9880 \family sans
9881 Alignment
9882 \family default
9883  to 
9884 \family sans
9885 Block
9886 \family default
9887 .
9888  This took care of it for me.
9889 \end_layout
9890
9891 \begin_layout Subsubsection
9892 References
9893 \end_layout
9894
9895 \begin_layout Standard
9896 A couple of things: 1) I have noticed some funny spacing in the reference
9897  entries in the text.
9898  When you enter the bibliography item data, make sure their is 
9899 \emph on
9900 no
9901 \emph default
9902  space between the last author and the parenthesis setting off the year;
9903  
9904 \emph on
9905 e.
9906 \begin_inset space \thinspace{}
9907 \end_inset
9908
9909 g.
9910 \begin_inset space \space{}
9911 \end_inset
9912
9913
9914 \emph default
9915 type 
9916 \family typewriter
9917 Ressler(1992)
9918 \family default
9919 , not 
9920 \family typewriter
9921 Ressler (1992)
9922 \family default
9923 .
9924  2) Entering the references at all is not obvious.
9925  The easiest thing is to start typing your first reference at the end of
9926  the document, then mark it as type 
9927 \family sans
9928 References
9929 \family default
9930 .
9931  That will put a small gray box in front of what you just typed.
9932  Click on the box to fill in the rest of the information.
9933  For new references, go to the end of an existing reference and press return.
9934  That will create a new line with its own box, etc.
9935 \end_layout
9936
9937 \begin_layout Subsubsection
9938 Including EPS files
9939 \end_layout
9940
9941 \begin_layout Standard
9942 Even though AAS\SpecialChar TeX
9943  provides its own figure commands (
9944 \family typewriter
9945
9946 \backslash
9947 plotone
9948 \family default
9949 , for example), I much prefer \SpecialChar LaTeX
9950 's standard figure commands (with the default
9951  graphicx).
9952  You can insert the 
9953 \family typewriter
9954
9955 \backslash
9956 plotone
9957 \family default
9958 , etc.
9959 \begin_inset space ~
9960 \end_inset
9961
9962 commands as \SpecialChar TeX
9963  code into a Figure Float box if you desire, but I never have
9964  much luck getting the layout right.
9965  With the standard graphics, \SpecialChar LyX
9966  will insert a 
9967 \family typewriter
9968
9969 \backslash
9970 usepackage{graphicx}
9971 \family default
9972  command into the \SpecialChar LaTeX
9973  preamble and handle the figures in the standard \SpecialChar LaTeX2e
9974  way,
9975  interspersing the figures in the text.
9976  I believe ApJ accepts figures exactly this way now; AJ might still use
9977  the 
9978 \begin_inset Quotes eld
9979 \end_inset
9980
9981 stack everything at the end
9982 \begin_inset Quotes erd
9983 \end_inset
9984
9985  technique.
9986 \end_layout
9987
9988 \begin_layout Subsubsection
9989 Things I could have done, but didn't
9990 \end_layout
9991
9992 \begin_layout Standard
9993 There are a few 
9994 \begin_inset Quotes eld
9995 \end_inset
9996
9997 pretty
9998 \begin_inset Quotes erd
9999 \end_inset
10000
10001  things I could have implemented, but chose not to.
10002  For instance, I saw no point in double-spacing the text in the \SpecialChar LyX
10003  window,
10004  even though it is double-spaced in the paper manuscript.
10005  Also, I chose not to make separate layouts for the preprint and preprint2
10006  styles.
10007  Since I assume you will spend most of your time in the plain manuscript
10008  mode anyway, I decided not to chew up more disk space with this.
10009  
10010 \end_layout
10011
10012 \begin_layout Subsection
10013 Final Caveat
10014 \end_layout
10015
10016 \begin_layout Standard
10017 Your mileage may vary.
10018  I've now had papers published by both ApJ and AJ that have had 98% of the
10019  effort done in \SpecialChar LyX
10020 ; the last 2% was the \SpecialChar LaTeX
10021  post-processing and a few cleanups.
10022  I have had no trouble with the submission process, and I'm sure the journals
10023  were never aware that there might be a difference.
10024  So, go forth and publish!
10025 \end_layout
10026
10027 \begin_layout Section
10028 AMS \SpecialChar LaTeX
10029
10030 \end_layout
10031
10032 \begin_layout Standard
10033 by 
10034 \noun on
10035 David Johnson
10036 \noun default
10037 ; updated by 
10038 \noun on
10039 Richard Kimberly Heck
10040 \end_layout
10041
10042 \begin_layout Standard
10043 \begin_inset VSpace bigskip
10044 \end_inset
10045
10046
10047 \end_layout
10048
10049 \begin_layout Standard
10050 \noindent
10051 The AMS \SpecialChar LaTeX
10052  layouts are set up to conform to suggested styles for mathematical
10053  papers to be submitted to American Mathematical Society publications.
10054  The layouts are not tailored to a specific journal, but easily can be.
10055  You should refer to the AMS documentation for specific instructions for
10056  each journal (usually it will entail only changing a single line in the
10057  \SpecialChar TeX
10058  output).
10059  That documentation is available on the Web at 
10060 \begin_inset Flex URL
10061 status open
10062
10063 \begin_layout Plain Layout
10064
10065 http://www.ams.org
10066 \end_layout
10067
10068 \end_inset
10069
10070  or by ftp at 
10071 \begin_inset Flex URL
10072 status open
10073
10074 \begin_layout Plain Layout
10075
10076 ftp://ftp.ams.org/pub/tex/amslatex/
10077 \end_layout
10078
10079 \end_inset
10080
10081 .
10082  These layouts are appropriate, and useful, for any mathematical writing.
10083  
10084 \end_layout
10085
10086 \begin_layout Standard
10087 There are two basic AMS \SpecialChar LaTeX
10088  layouts: 
10089 \end_layout
10090
10091 \begin_layout Itemize
10092 amsart: The standard AMS article format.
10093 \end_layout
10094
10095 \begin_layout Itemize
10096 amsbook: the standard AMS book (really, monograph) format.
10097  
10098 \end_layout
10099
10100 \begin_layout Standard
10101 The layouts themselves contain only the minimum necessary to use the AMS
10102  classes.
10103  They do not, in particular, contain any of the `theorem' environments used
10104  for setting theorems, lemmas, and the like.
10105  These are contained, instead, in the 
10106 \begin_inset Flex Code
10107 status collapsed
10108
10109 \begin_layout Plain Layout
10110 Theorems (AMS)
10111 \end_layout
10112
10113 \end_inset
10114
10115  module, which is loaded by default when you select one of the AMS classes.
10116  (It can also be used with other classes and can be removed, if you would
10117  rather use something else.) Less commonly used environments are in the 
10118 \begin_inset Flex Code
10119 status collapsed
10120
10121 \begin_layout Plain Layout
10122 Theorems (AMS-Extended)
10123 \end_layout
10124
10125 \end_inset
10126
10127  module, which must be loaded manually.
10128 \end_layout
10129
10130 \begin_layout Standard
10131 By default, theorems and the like are numbered consecutively throughout
10132  the document, but this may be modified by loading the module 
10133 \begin_inset Flex Code
10134 status collapsed
10135
10136 \begin_layout Plain Layout
10137 Theorems (Order by Section)
10138 \end_layout
10139
10140 \end_inset
10141
10142  or, if you are using 
10143 \begin_inset Flex Code
10144 status collapsed
10145
10146 \begin_layout Plain Layout
10147 book (AMS)
10148 \end_layout
10149
10150 \end_inset
10151
10152 , the module 
10153 \begin_inset Flex Code
10154 status collapsed
10155
10156 \begin_layout Plain Layout
10157 Theorems (Order by Chapter)
10158 \end_layout
10159
10160 \end_inset
10161
10162 .
10163  These will number the results as 
10164 \begin_inset Formula $n.m$
10165 \end_inset
10166
10167 , where the first number refers to the section (or chapter) and the second
10168  refers to the total number of results so far in that section (or chapter).
10169  Many environments are also available unnumbered.
10170  These are indicated by an asterisk at the end.
10171  If you happen to want 
10172 \emph on
10173 only
10174 \emph default
10175  unnumbered results, the module 
10176 \begin_inset Flex Code
10177 status collapsed
10178
10179 \begin_layout Plain Layout
10180 Theorems (Starred)
10181 \end_layout
10182
10183 \end_inset
10184
10185  provides that option.
10186 \end_layout
10187
10188 \begin_layout Standard
10189 Note that these modules do not 
10190 \emph on
10191 have
10192 \emph default
10193  to be used with the AMS classes.
10194  It is perfectly possible to use the 
10195 \begin_inset Flex Code
10196 status collapsed
10197
10198 \begin_layout Plain Layout
10199 Theorems (AMS)
10200 \end_layout
10201
10202 \end_inset
10203
10204  module, and the others mentioned, with other classes, such as 
10205 \begin_inset Flex Code
10206 status collapsed
10207
10208 \begin_layout Plain Layout
10209 article
10210 \end_layout
10211
10212 \end_inset
10213
10214
10215 \begin_inset Flex Code
10216 status collapsed
10217
10218 \begin_layout Plain Layout
10219 report
10220 \end_layout
10221
10222 \end_inset
10223
10224
10225 \begin_inset Flex Code
10226 status collapsed
10227
10228 \begin_layout Plain Layout
10229 book (KOMA-script)
10230 \end_layout
10231
10232 \end_inset
10233
10234 , and so forth.
10235 \end_layout
10236
10237 \begin_layout Subsection
10238 What these layouts provide
10239 \end_layout
10240
10241 \begin_layout Standard
10242 There is a long list of included environments provided by these layouts.
10243  In AMS-\SpecialChar LaTeX
10244 , there is, in fact, an opportunity to define an unlimited variety
10245  of `theorem' environments.
10246  However, the AMS recommends the environments that are available in \SpecialChar LyX
10247 .
10248  
10249 \end_layout
10250
10251 \begin_layout Standard
10252 The following environments—as well as the standard environments, such as
10253  
10254 \begin_inset Flex Noun
10255 status collapsed
10256
10257 \begin_layout Plain Layout
10258 section
10259 \end_layout
10260
10261 \end_inset
10262
10263
10264 \begin_inset Flex Noun
10265 status collapsed
10266
10267 \begin_layout Plain Layout
10268 bibliography
10269 \end_layout
10270
10271 \end_inset
10272
10273
10274 \begin_inset Flex Noun
10275 status collapsed
10276
10277 \begin_layout Plain Layout
10278 title
10279 \end_layout
10280
10281 \end_inset
10282
10283
10284 \begin_inset Flex Noun
10285 status collapsed
10286
10287 \begin_layout Plain Layout
10288 author
10289 \end_layout
10290
10291 \end_inset
10292
10293 , and 
10294 \begin_inset Flex Noun
10295 status collapsed
10296
10297 \begin_layout Plain Layout
10298 date
10299 \end_layout
10300
10301 \end_inset
10302
10303 —are provided by 
10304 \begin_inset Flex Code
10305 status collapsed
10306
10307 \begin_layout Plain Layout
10308 article (AMS)
10309 \end_layout
10310
10311 \end_inset
10312
10313  and 
10314 \begin_inset Flex Code
10315 status collapsed
10316
10317 \begin_layout Plain Layout
10318 book (AMS)
10319 \end_layout
10320
10321 \end_inset
10322
10323 :
10324 \end_layout
10325
10326 \begin_layout Description
10327 Address This should be the author's permanent address.
10328 \end_layout
10329
10330 \begin_layout Description
10331 Current
10332 \begin_inset space ~
10333 \end_inset
10334
10335 Address This should be the author's temporary address at the time of submission,
10336  if different from the Address.
10337 \end_layout
10338
10339 \begin_layout Description
10340 Email Author's e-mail address
10341 \end_layout
10342
10343 \begin_layout Description
10344 URL Author's Web address, if desired.
10345 \end_layout
10346
10347 \begin_layout Description
10348 Keywords Key words or phrases used to identify specific topics discussed
10349  in the paper.
10350 \end_layout
10351
10352 \begin_layout Description
10353 Subjectclass These refer to the AMS Subject Classifications, published and
10354  described in 
10355 \emph on
10356 Mathematical Reviews
10357 \emph default
10358 .
10359  These are also available online at the AMS cites listed above.
10360 \end_layout
10361
10362 \begin_layout Description
10363 Thanks
10364 \end_layout
10365
10366 \begin_layout Description
10367 Dedicatory
10368 \end_layout
10369
10370 \begin_layout Description
10371 Translator
10372 \end_layout
10373
10374 \begin_layout Standard
10375 The following environments are provided by both the 
10376 \begin_inset Flex Code
10377 status collapsed
10378
10379 \begin_layout Plain Layout
10380 Theorems
10381 \end_layout
10382
10383 \end_inset
10384
10385  and 
10386 \begin_inset Flex Code
10387 status collapsed
10388
10389 \begin_layout Plain Layout
10390 Theorems (AMS)
10391 \end_layout
10392
10393 \end_inset
10394
10395  modules, in the latter case in both starred (unnumbered) and unstarred
10396  (numbered) versions.
10397  These same environments are provided only in the starred versions by the
10398  
10399 \begin_inset Flex Code
10400 status collapsed
10401
10402 \begin_layout Plain Layout
10403 Theorems (Starred)
10404 \end_layout
10405
10406 \end_inset
10407
10408  module:
10409 \end_layout
10410
10411 \begin_layout Theorem
10412 This is typically used for the statements of major results.
10413  
10414 \end_layout
10415
10416 \begin_layout Corollary*
10417 This is used for statements which follow fairly directly from previous statement
10418 s.
10419  Again, these can be major results.
10420  
10421 \end_layout
10422
10423 \begin_layout Lemma
10424 These are smaller results needed to prove other statements.
10425 \end_layout
10426
10427 \begin_layout Proposition
10428 These are less major results which (hopefully) add to the general theory
10429  being discussed.
10430 \end_layout
10431
10432 \begin_layout Conjecture
10433 These are statements provided without justification, which the author does
10434  not know how to prove, but which seem to be true (to the author, at least).
10435 \end_layout
10436
10437 \begin_layout Definition*
10438 Guess what this is for.
10439  The font is different for this environment than for the previous ones.
10440  
10441 \end_layout
10442
10443 \begin_layout Example*
10444 Used for examples illustrating proven results.
10445 \end_layout
10446
10447 \begin_layout Problem
10448 It's not really known what this is for.
10449  You should figure it out.
10450 \end_layout
10451
10452 \begin_layout Exercise*
10453 Write a description for this one.
10454 \end_layout
10455
10456 \begin_layout Remark
10457 This environment is also a type of theorem, usually a lesser sort of observation.
10458 \end_layout
10459
10460 \begin_layout Claim*
10461 Often used in the course of giving a proof of a larger result.
10462 \end_layout
10463
10464 \begin_layout Case
10465 Generally, these are used to break up long arguments, using specific instances
10466  of some condition.
10467  
10468 \end_layout
10469
10470 \begin_layout Case
10471 The numbering scheme for cases is on its own, not together with other numbered
10472  statements.
10473  
10474 \end_layout
10475
10476 \begin_layout Proof
10477 At the end of this environment, a QED symbol (usually a square, but it can
10478  vary with different styles) is placed.
10479  If you want to have other environments within this one—for example, Case
10480  environments—and have the QED symbol appear only after them, then the other
10481  environments need to be nested within the proof environment.
10482  See the section 
10483 \emph on
10484 Nesting Environments
10485 \emph default
10486  of the 
10487 \emph on
10488 User's Guide
10489 \emph default
10490  for information on nesting.
10491 \end_layout
10492
10493 \begin_layout Standard
10494 And these environments are provided by 
10495 \begin_inset Flex Code
10496 status collapsed
10497
10498 \begin_layout Plain Layout
10499 Theorems (AMS-Extended)
10500 \end_layout
10501
10502 \end_inset
10503
10504 :
10505 \end_layout
10506
10507 \begin_layout Criterion*
10508 A required condition.
10509 \end_layout
10510
10511 \begin_layout Algorithm*
10512 A general procedure to be used.
10513 \end_layout
10514
10515 \begin_layout Axiom*
10516 This is a property or statement taken as true within the system being discussed.
10517 \end_layout
10518
10519 \begin_layout Condition*
10520 Sometimes used to state a condition assumed within the present context of
10521  discussion.
10522 \end_layout
10523
10524 \begin_layout Note*
10525 Similar to a Remark.
10526 \end_layout
10527
10528 \begin_layout Notation*
10529 Used for the explanation of, yes, notation.
10530 \end_layout
10531
10532 \begin_layout Summary
10533 Do we really need to tell you? 
10534 \end_layout
10535
10536 \begin_layout Acknowledgement*
10537 Acknowledgement.
10538 \end_layout
10539
10540 \begin_layout Conclusion*
10541 Sometimes used at the end of a long train of argument.
10542 \end_layout
10543
10544 \begin_layout Fact
10545 Used in a way similar to Proposition, though perhaps lower on the scale.
10546 \end_layout
10547
10548 \begin_layout Standard
10549 In addition, the AMS classes automatically provide the AMS \SpecialChar LaTeX
10550  and AMS fonts
10551  packages.
10552  They need to be available on your system in order to use these environments.
10553 \end_layout
10554
10555 \begin_layout Section
10556 Broadway
10557 \end_layout
10558
10559 \begin_layout Standard
10560 by 
10561 \shape smallcaps
10562 Garst Reese
10563 \end_layout
10564
10565 \begin_layout Subsection
10566 Introduction
10567 \end_layout
10568
10569 \begin_layout Standard
10570 Broadway is for writing plays.
10571  The format is more decorative than Hollywood, and much less standardized.
10572  This format should be suitable for workshops.
10573 \end_layout
10574
10575 \begin_layout Subsection
10576 Special problems
10577 \end_layout
10578
10579 \begin_layout Standard
10580 The same as in Hollywood.
10581 \end_layout
10582
10583 \begin_layout Subsection
10584 Special features
10585 \end_layout
10586
10587 \begin_layout Standard
10588 Insert the 
10589 \family sans
10590 Speaker
10591 \family default
10592  names as labels then cross-reference the label to insert the name.
10593  The cross-reference dialog will show the current cast of characters.
10594 \end_layout
10595
10596 \begin_layout Subsection
10597 Paper size and Margins
10598 \end_layout
10599
10600 \begin_layout Standard
10601 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
10602 \end_layout
10603
10604 \begin_layout Subsection
10605 Environments
10606 \end_layout
10607
10608 \begin_layout Standard
10609 The following environments are available.
10610  You can use broadway.bind to get the bind keys shown at the right.
10611 \end_layout
10612
10613 \begin_layout Itemize
10614
10615 \family sans
10616 Standard
10617 \begin_inset Newline newline
10618 \end_inset
10619
10620
10621 \family default
10622 You should not have to use this, but it is here for anything that does not
10623  fit otherwise.
10624 \end_layout
10625
10626 \begin_layout Itemize
10627
10628 \family sans
10629 Narrative
10630 \begin_inset space \hfill{}
10631 \end_inset
10632
10633 M-z n
10634 \begin_inset Newline newline
10635 \end_inset
10636
10637
10638 \family default
10639 Used to describe stage setting and the action.
10640  First use of speaker names in all CAPs.
10641 \end_layout
10642
10643 \begin_layout Itemize
10644
10645 \family sans
10646 ACT
10647 \begin_inset space \hfill{}
10648 \end_inset
10649
10650 M-z a
10651 \begin_inset Newline newline
10652 \end_inset
10653
10654
10655 \family default
10656 Automatically numbered.
10657  On screen it will be arabic, but will print as Roman.
10658 \end_layout
10659
10660 \begin_layout Itemize
10661
10662 \family sans
10663 ACT*
10664 \begin_inset space \hfill{}
10665 \end_inset
10666
10667 M-z S at
10668 \begin_inset Newline newline
10669 \end_inset
10670
10671
10672 \family default
10673 Subtitle for 
10674 \family sans
10675 ACT.
10676
10677 \family default
10678  It is just centered text.
10679 \end_layout
10680
10681 \begin_layout Itemize
10682
10683 \family sans
10684 SCENE
10685 \begin_inset space \hfill{}
10686 \end_inset
10687
10688 M-z S-S
10689 \begin_inset Newline newline
10690 \end_inset
10691
10692
10693 \family default
10694 Not automatically numbered.
10695  You supply the number.
10696  This is because I couldn't figure out how.
10697 \end_layout
10698
10699 \begin_layout Itemize
10700
10701 \family sans
10702 AT_RISE:
10703 \begin_inset space \hfill{}
10704 \end_inset
10705
10706 M-z S-R
10707 \begin_inset Newline newline
10708 \end_inset
10709
10710
10711 \family default
10712 A special case of Narrative to describe the setting and action as the curtain
10713  rises.
10714 \end_layout
10715
10716 \begin_layout Itemize
10717
10718 \family sans
10719 Speaker
10720 \begin_inset space \hfill{}
10721 \end_inset
10722
10723 M-z s
10724 \begin_inset Newline newline
10725 \end_inset
10726
10727
10728 \family default
10729 The speaker's (actor's) title, centered in all CAPS.
10730 \end_layout
10731
10732 \begin_layout Itemize
10733
10734 \family sans
10735 Parenthetical
10736 \begin_inset space \hfill{}
10737 \end_inset
10738
10739 M-z p
10740 \begin_inset Newline newline
10741 \end_inset
10742
10743
10744 \family default
10745 Instructions to the speaker.
10746  The parentheses are automatically inserted.
10747  The ( will appear on screen, but both will be in the printed play.
10748  This environment is only used within 
10749 \family sans
10750 Dialogue
10751 \family default
10752 .
10753 \end_layout
10754
10755 \begin_layout Itemize
10756
10757 \family sans
10758 Dialogue
10759 \begin_inset space \hfill{}
10760 \end_inset
10761
10762 M-z d
10763 \begin_inset Newline newline
10764 \end_inset
10765
10766
10767 \family default
10768 What the Speaker says.
10769 \end_layout
10770
10771 \begin_layout Itemize
10772
10773 \family sans
10774 CURTAIN
10775 \begin_inset space \hfill{}
10776 \end_inset
10777
10778 M-z S-C
10779 \begin_inset Newline newline
10780 \end_inset
10781
10782
10783 \family default
10784 The curtain comes down.
10785 \end_layout
10786
10787 \begin_layout Itemize
10788
10789 \family sans
10790 Title
10791 \begin_inset space \hfill{}
10792 \end_inset
10793
10794 M-z S-T
10795 \end_layout
10796
10797 \begin_layout Itemize
10798
10799 \family sans
10800 Author
10801 \begin_inset space \hfill{}
10802 \end_inset
10803
10804 M-z S-A
10805 \end_layout
10806
10807 \begin_layout Itemize
10808
10809 \family sans
10810 Right_Address
10811 \begin_inset space \hfill{}
10812 \end_inset
10813
10814 M-z r
10815 \end_layout
10816
10817 \begin_layout Standard
10818 Hello there.
10819 \end_layout
10820
10821 \begin_layout Section
10822 Dinbrief
10823 \end_layout
10824
10825 \begin_layout Standard
10826 The document class 
10827 \family sans
10828 dinbrief
10829 \family default
10830  can be used to type letters according to German conventions.
10831  A template file is included in 
10832 \family typewriter
10833 .../lyx/share/templates
10834 \family default
10835  for you to use as a starting point.
10836 \end_layout
10837
10838 \begin_layout Section
10839 Elsevier Journals
10840 \end_layout
10841
10842 \begin_layout Standard
10843 See the \SpecialChar LyX
10844  template file 
10845 \family typewriter
10846 elsarticle.lyx
10847 \family default
10848 .
10849  It contains all infos you need.
10850 \end_layout
10851
10852 \begin_layout Section
10853 Foils [aka 
10854 \family sans
10855 Foil\SpecialChar TeX
10856
10857 \family default
10858 ]
10859 \begin_inset CommandInset label
10860 LatexCommand label
10861 name "sec:foiltex"
10862
10863 \end_inset
10864
10865
10866 \end_layout
10867
10868 \begin_layout Standard
10869 by 
10870 \noun on
10871 Allan Rae
10872 \end_layout
10873
10874 \begin_layout Subsection
10875 Introduction
10876 \end_layout
10877
10878 \begin_layout Standard
10879 This section describes how to use \SpecialChar LyX
10880  to make slides for overhead projectors.
10881  There are two document classes that can do this: the default slides class
10882  and the 
10883 \family sans
10884 Foil\SpecialChar TeX
10885
10886 \family default
10887  slides class.
10888  This section documents the latter.
10889 \end_layout
10890
10891 \begin_layout Standard
10892 I'm going to say this again, nice and clear, so that there's no misunderstanding
10893 :
10894 \end_layout
10895
10896 \begin_layout Standard
10897 \begin_inset VSpace bigskip
10898 \end_inset
10899
10900
10901 \end_layout
10902
10903 \begin_layout Standard
10904 \align center
10905
10906 \size large
10907 This section documents the class 
10908 \begin_inset Quotes eld
10909 \end_inset
10910
10911
10912 \family sans
10913 FoilTeX
10914 \family default
10915
10916 \begin_inset Quotes erd
10917 \end_inset
10918
10919  
10920 \emph on
10921 only.
10922 \end_layout
10923
10924 \begin_layout Standard
10925 \begin_inset VSpace bigskip
10926 \end_inset
10927
10928
10929 \end_layout
10930
10931 \begin_layout Standard
10932 If you're looking for the documentation for 
10933 \begin_inset Quotes eld
10934 \end_inset
10935
10936
10937 \family sans
10938 slides (default)
10939 \family default
10940
10941 \begin_inset Quotes erd
10942 \end_inset
10943
10944 , check out section
10945 \begin_inset space ~
10946 \end_inset
10947
10948
10949 \begin_inset CommandInset ref
10950 LatexCommand ref
10951 reference "sec:slitex"
10952
10953 \end_inset
10954
10955 .
10956  If your machine doesn't have the 
10957 \family sans
10958 foils
10959 \family default
10960  class 
10961 \family sans
10962 FoilTeX
10963 \family default
10964  installed, you'll probably have to use the default 
10965 \family sans
10966 slides
10967 \family default
10968  class, which isn't quite as good as 
10969 \family sans
10970 foils.
10971 \end_layout
10972
10973 \begin_layout Standard
10974 The 
10975 \family sans
10976 foils
10977 \family default
10978  class is designed for use with version
10979 \begin_inset space ~
10980 \end_inset
10981
10982 2.1 of the 
10983 \family sans
10984 foils.cls
10985 \family default
10986  \SpecialChar LaTeX
10987  class file which is now an integral part of \SpecialChar LaTeX2e
10988 .
10989 \end_layout
10990
10991 \begin_layout Subsection
10992 Getting Started
10993 \end_layout
10994
10995 \begin_layout Standard
10996 Obviously, to use this document class, you need to select 
10997 \family sans
10998 FoilTeX
10999 \family default
11000  from the 
11001 \family sans
11002 Class
11003 \family default
11004  entry in the 
11005 \family sans
11006 Document
11007 \begin_inset space ~
11008 \end_inset
11009
11010 Layout
11011 \family default
11012  dialog.
11013  There are some settings in the 
11014 \family sans
11015 Document
11016 \begin_inset space ~
11017 \end_inset
11018
11019 Layout
11020 \family default
11021  dialog that you should know about that are specific to this class:
11022 \end_layout
11023
11024 \begin_layout Itemize
11025 Don't change the options 
11026 \family sans
11027 Sides
11028 \family default
11029  and 
11030 \family sans
11031 Columns
11032 \family default
11033  on the 
11034 \family sans
11035 Document
11036 \begin_inset space ~
11037 \end_inset
11038
11039 Layout
11040 \family default
11041  dialog.
11042  They're ignored by the 
11043 \family sans
11044 foils
11045 \family default
11046  class.
11047 \end_layout
11048
11049 \begin_layout Itemize
11050 The default font size is 20
11051 \begin_inset space \thinspace{}
11052 \end_inset
11053
11054 pt with the other options being 17
11055 \begin_inset space \thinspace{}
11056 \end_inset
11057
11058 pt, 25
11059 \begin_inset space \thinspace{}
11060 \end_inset
11061
11062 pt and 30
11063 \begin_inset space \thinspace{}
11064 \end_inset
11065
11066 pt.
11067 \end_layout
11068
11069 \begin_layout Itemize
11070 The default font is 
11071 \family sans
11072 sans
11073 \family default
11074  
11075 \family sans
11076 serif
11077 \family default
11078  but all math equations are still typeset in the usual roman font.
11079 \end_layout
11080
11081 \begin_layout Itemize
11082
11083 \family sans
11084 Foil\SpecialChar TeX
11085
11086 \family default
11087  supports A4 and Letter paper sizes as well as a special size for working
11088  with 35
11089 \begin_inset space \thinspace{}
11090 \end_inset
11091
11092 mm slides.
11093  It doesn't support A5, B5, legal or executive paper sizes.
11094 \end_layout
11095
11096 \begin_layout Itemize
11097 Don't bother changing the 
11098 \family sans
11099 Float Placement
11100 \family default
11101  settings because they are ignored anyway.
11102  All floats appear where they are defined in the text.
11103 \end_layout
11104
11105 \begin_layout Itemize
11106 The 
11107 \family sans
11108 Pagestyle
11109 \family default
11110  setting behaves a bit differently for this class.
11111  
11112 \family sans
11113 Foil\SpecialChar TeX
11114
11115 \family default
11116  provides extensive footer and header capabilities including a user-defined
11117  logo.
11118  See section
11119 \begin_inset space ~
11120 \end_inset
11121
11122
11123 \begin_inset CommandInset ref
11124 LatexCommand ref
11125 reference "sec:foilfoot"
11126
11127 \end_inset
11128
11129  for more details.
11130  The title page is treated differently to all other pages in the document
11131  and is 
11132 \emph on
11133 always
11134 \emph default
11135  unnumbered and 
11136 \emph on
11137 always
11138 \emph default
11139  has the logo centered at the bottom of the page (if one is defined).
11140  The possible page style choices and what they do are as follows:
11141 \end_layout
11142
11143 \begin_deeper
11144 \begin_layout Labeling
11145 \labelwidthstring MMMMMMM
11146
11147 \family sans
11148 \series bold
11149 empty
11150 \family default
11151 \series default
11152  The final output contains no page numbers, or other headers or footers
11153  (except footnotes of course).
11154  
11155 \end_layout
11156
11157 \begin_layout Labeling
11158 \labelwidthstring MMMMMMM
11159
11160 \family sans
11161 \series bold
11162 plain
11163 \family default
11164 \series default
11165  The final output contains page numbers centered at the bottom of the page.
11166  No other headings or footers (other than footnotes).
11167 \end_layout
11168
11169 \begin_layout Labeling
11170 \labelwidthstring MMMMMMM
11171
11172 \series bold
11173 foilheadings
11174 \series default
11175  Page numbers in lower right corner.
11176  Additional headers and footers are also shown.
11177  This is also the default.
11178 \end_layout
11179
11180 \begin_layout Labeling
11181 \labelwidthstring MMMMMMM
11182
11183 \series bold
11184 fancy
11185 \series default
11186  Gives you access to the 
11187 \family sans
11188 fancyheadings
11189 \family default
11190  package although its use with 
11191 \family sans
11192 Foil\SpecialChar TeX
11193
11194 \family default
11195  is discouraged by the writer of the 
11196 \family sans
11197 Foil\SpecialChar TeX
11198
11199 \family default
11200  package because of some potential page layout clashes.
11201 \end_layout
11202
11203 \end_deeper
11204 \begin_layout Subsubsection
11205 Extra Options
11206 \end_layout
11207
11208 \begin_layout Standard
11209 The following options may be used in the extra class options in the 
11210 \family sans
11211 Document\SpecialChar menuseparator
11212 Settings
11213 \family default
11214  dialog.
11215 \end_layout
11216
11217 \begin_layout Labeling
11218 \labelwidthstring MMMMMMx
11219
11220 \series bold
11221 35mmSlide
11222 \series default
11223  This sets up the page layout for 7.33
11224 \begin_inset space \thinspace{}
11225 \end_inset
11226
11227 in by 11
11228 \begin_inset space \thinspace{}
11229 \end_inset
11230
11231 in paper, which is about the same aspect ratio as a 35
11232 \begin_inset space \thinspace{}
11233 \end_inset
11234
11235 mm slide, making it a bit easier to work with this medium.
11236 \end_layout
11237
11238 \begin_layout Labeling
11239 \labelwidthstring MMMMMMx
11240
11241 \series bold
11242 headrule
11243 \series default
11244  Places a rule across the page below the header on every page except the
11245  title page.
11246 \end_layout
11247
11248 \begin_layout Labeling
11249 \labelwidthstring MMMMMMx
11250
11251 \series bold
11252 footrule
11253 \series default
11254  Places a rule across the page above the footer on every page except the
11255  title page.
11256 \end_layout
11257
11258 \begin_layout Labeling
11259 \labelwidthstring MMMMMMx
11260
11261 \series bold
11262 dvips
11263 \series default
11264  This is automatically set each time you create a new 
11265 \family sans
11266 foils
11267 \family default
11268  document.
11269  This option tells 
11270 \family sans
11271 Foil\SpecialChar TeX
11272
11273 \family default
11274  to use the dvips driver to rotate those pages that are set as landscape
11275  foils.
11276 \end_layout
11277
11278 \begin_layout Labeling
11279 \labelwidthstring MMMMMMx
11280
11281 \series bold
11282 landscape
11283 \series default
11284  Simply changes the page dimensions to those of a landscape page but doesn't
11285  do any rotation.
11286  Thus if you use this option you need to use an external program to rotate
11287  each page or feed your paper through your printer as landscape.
11288  Note that this option effectively reverses the roles of the 
11289 \family sans
11290 Foilhead
11291 \family default
11292  and 
11293 \family sans
11294 Rotatefoilhead
11295 \family default
11296  environments (don't worry these are described in the next section).
11297 \end_layout
11298
11299 \begin_layout Labeling
11300 \labelwidthstring MMMMMMx
11301
11302 \series bold
11303 leqno
11304 \series default
11305  Equation numbers on the left.
11306 \end_layout
11307
11308 \begin_layout Labeling
11309 \labelwidthstring MMMMMMx
11310
11311 \series bold
11312 fleqn
11313 \series default
11314  Flush-left equations.
11315 \end_layout
11316
11317 \begin_layout Subsection
11318 Supported Environments
11319 \end_layout
11320
11321 \begin_layout Standard
11322 Most of the environments commonly supported in other classes are also supported
11323  by the 
11324 \family sans
11325 foils
11326 \family default
11327  class.
11328  There are several additional environments provided by 
11329 \family sans
11330 Foil\SpecialChar TeX
11331
11332 \family default
11333  as well as a couple added by \SpecialChar LyX
11334 .
11335  The following environments are shared with other classes:
11336 \end_layout
11337
11338 \begin_layout Standard
11339 \begin_inset Flex Multiple Columns
11340 status open
11341
11342 \begin_layout Itemize
11343
11344 \family sans
11345 Standard
11346 \end_layout
11347
11348 \begin_layout Itemize
11349
11350 \family sans
11351 Itemize
11352 \end_layout
11353
11354 \begin_layout Itemize
11355
11356 \family sans
11357 Enumerate
11358 \end_layout
11359
11360 \begin_layout Itemize
11361
11362 \family sans
11363 Description
11364 \end_layout
11365
11366 \begin_layout Itemize
11367
11368 \family sans
11369 List
11370 \end_layout
11371
11372 \begin_layout Itemize
11373
11374 \family sans
11375 \SpecialChar LyX
11376 -Code
11377 \end_layout
11378
11379 \begin_layout Itemize
11380
11381 \family sans
11382 Verse
11383 \end_layout
11384
11385 \begin_layout Itemize
11386
11387 \family sans
11388 Quote
11389 \end_layout
11390
11391 \begin_layout Itemize
11392
11393 \family sans
11394 Quotation
11395 \end_layout
11396
11397 \begin_layout Itemize
11398
11399 \family sans
11400 TitleAuthor
11401 \end_layout
11402
11403 \begin_layout Itemize
11404
11405 \family sans
11406 Date
11407 \end_layout
11408
11409 \begin_layout Itemize
11410
11411 \family sans
11412 Abstract
11413 \end_layout
11414
11415 \begin_layout Itemize
11416
11417 \family sans
11418 Bibliography
11419 \end_layout
11420
11421 \begin_layout Itemize
11422
11423 \family sans
11424 Address
11425 \end_layout
11426
11427 \begin_layout Itemize
11428
11429 \family sans
11430 RightAddress
11431 \end_layout
11432
11433 \end_inset
11434
11435
11436 \end_layout
11437
11438 \begin_layout Standard
11439 That is, all the major environments apart from the sectioning environments.
11440  Since foils are essentially self-contained sections, with a title and body,
11441  
11442 \family sans
11443 Foil\SpecialChar TeX
11444
11445 \family default
11446  provides specific commands for starting new foils and these are:
11447 \end_layout
11448
11449 \begin_layout Itemize
11450
11451 \family sans
11452 Foilhead
11453 \end_layout
11454
11455 \begin_layout Itemize
11456
11457 \family sans
11458 Rotatefoilhead
11459 \end_layout
11460
11461 \begin_layout Standard
11462 \SpecialChar LyX
11463  also provides slightly modified versions of these two environments called:
11464 \end_layout
11465
11466 \begin_layout Itemize
11467
11468 \family sans
11469 ShortFoilhead
11470 \end_layout
11471
11472 \begin_layout Itemize
11473
11474 \family sans
11475 ShortRotatefoilhead
11476 \end_layout
11477
11478 \begin_layout Standard
11479 and the differences will be explained in the next section.
11480 \end_layout
11481
11482 \begin_layout Standard
11483 Since foils are often used in presenting ideas or new theorems and such
11484  
11485 \family sans
11486 Foil\SpecialChar TeX
11487
11488 \family default
11489  also provides a comprehensive box of goodies for presenting them:
11490 \end_layout
11491
11492 \begin_layout Standard
11493 \begin_inset Flex Multiple Columns
11494 status open
11495
11496 \begin_layout Itemize
11497
11498 \family sans
11499 Theorem
11500 \end_layout
11501
11502 \begin_layout Itemize
11503
11504 \family sans
11505 Lemma
11506 \end_layout
11507
11508 \begin_layout Itemize
11509
11510 \family sans
11511 Corollary
11512 \end_layout
11513
11514 \begin_layout Itemize
11515
11516 \family sans
11517 Proposition
11518 \end_layout
11519
11520 \begin_layout Itemize
11521
11522 \family sans
11523 Definition
11524 \end_layout
11525
11526 \begin_layout Itemize
11527
11528 \family sans
11529 Proof
11530 \end_layout
11531
11532 \begin_layout Itemize
11533
11534 \family sans
11535 Theorem*
11536 \end_layout
11537
11538 \begin_layout Itemize
11539
11540 \family sans
11541 Lemma*
11542 \end_layout
11543
11544 \begin_layout Itemize
11545
11546 \family sans
11547 Corollary*
11548 \end_layout
11549
11550 \begin_layout Itemize
11551
11552 \family sans
11553 Proposition*
11554 \end_layout
11555
11556 \begin_layout Itemize
11557
11558 \family sans
11559 Definition*
11560 \end_layout
11561
11562 \end_inset
11563
11564
11565 \end_layout
11566
11567 \begin_layout Standard
11568 The starred versions are unnumbered while the unstarred versions are numbered.
11569  There are also two list environments added by \SpecialChar LyX
11570  and these are:
11571 \end_layout
11572
11573 \begin_layout Itemize
11574
11575 \family sans
11576 TickList
11577 \end_layout
11578
11579 \begin_layout Itemize
11580
11581 \family sans
11582 CrossList
11583 \end_layout
11584
11585 \begin_layout Standard
11586
11587 \family sans
11588 Foil\SpecialChar TeX
11589
11590 \family default
11591  provides some powerful header and footer capabilities that are best set
11592  in the preamble although they may be set at any point in a document.
11593  If you want to change these settings in your document the best place to
11594  do so is at the very top of a foil, i.
11595 \begin_inset space \thinspace{}
11596 \end_inset
11597
11598 e.
11599 \emph on
11600
11601 \begin_inset space \space{}
11602 \end_inset
11603
11604
11605 \emph default
11606 straight after the foilhead.
11607 \end_layout
11608
11609 \begin_layout Standard
11610 For this purpose, the following command styles are provided [
11611 \shape smallcaps
11612 Martin Vermeer
11613 \shape default
11614 ]:
11615 \end_layout
11616
11617 \begin_layout Standard
11618 \begin_inset Flex Multiple Columns
11619 status open
11620
11621 \begin_layout Itemize
11622
11623 \family sans
11624 My
11625 \begin_inset space ~
11626 \end_inset
11627
11628 Logo
11629 \end_layout
11630
11631 \begin_layout Itemize
11632
11633 \family sans
11634 Restriction
11635 \end_layout
11636
11637 \begin_layout Itemize
11638
11639 \family sans
11640 Right
11641 \begin_inset space ~
11642 \end_inset
11643
11644 Footer
11645 \end_layout
11646
11647 \begin_layout Itemize
11648
11649 \family sans
11650 Right
11651 \begin_inset space ~
11652 \end_inset
11653
11654 Header
11655 \end_layout
11656
11657 \begin_layout Itemize
11658
11659 \family sans
11660 Left
11661 \begin_inset space ~
11662 \end_inset
11663
11664 Header
11665 \end_layout
11666
11667 \begin_deeper
11668 \begin_layout Plain Layout
11669 \begin_inset space ~
11670 \end_inset
11671
11672
11673 \end_layout
11674
11675 \end_deeper
11676 \end_inset
11677
11678
11679 \end_layout
11680
11681 \begin_layout Standard
11682 There are also a few commands provided by 
11683 \family sans
11684 Foil\SpecialChar TeX
11685
11686 \family default
11687  that aren't directly supported by \SpecialChar LyX
11688  but I'll tell you what they do and how
11689  to use them in section
11690 \begin_inset space ~
11691 \end_inset
11692
11693
11694 \begin_inset CommandInset ref
11695 LatexCommand ref
11696 reference "sec:unsuppfoils"
11697
11698 \end_inset
11699
11700 .
11701 \end_layout
11702
11703 \begin_layout Subsection
11704 Building a Set of Foils
11705 \end_layout
11706
11707 \begin_layout Standard
11708 This section will give a simple introduction to using the different environments
11709  to build a set of foils.
11710  If you want to see an example set of foils, take a look at the 
11711 \family typewriter
11712 Foils.lyx
11713 \family default
11714  file you find in \SpecialChar LyX
11715 's 
11716 \family typewriter
11717 examples
11718 \family default
11719  folder.
11720 \end_layout
11721
11722 \begin_layout Subsubsection
11723 Give It a Title Page
11724 \end_layout
11725
11726 \begin_layout Standard
11727 Unlike other classes that provide 
11728 \family sans
11729 Title
11730 \family default
11731
11732 \family sans
11733 Author
11734 \family default
11735
11736 \family sans
11737 Date
11738 \family default
11739  and 
11740 \family sans
11741 Abstract
11742 \family default
11743  environments, 
11744 \family sans
11745 foils
11746 \family default
11747  creates the title on a page of its own.
11748  If you leave out the 
11749 \family sans
11750 Date
11751 \family default
11752  environment \SpecialChar LaTeX
11753  will substitute the current date (every time you regenerate
11754  the output).
11755 \end_layout
11756
11757 \begin_layout Subsubsection
11758 Start a New Foil
11759 \end_layout
11760
11761 \begin_layout Standard
11762 As I mentioned earlier, there are four ways of starting a new foil.
11763  For portrait foils you should use 
11764 \family sans
11765 Foilhead
11766 \family default
11767  or 
11768 \family sans
11769 ShortFoilhead.
11770
11771 \family default
11772  The difference between these two environments is the amount of space between
11773  the title of the foil (the foilhead) and the body of the foil.
11774 \end_layout
11775
11776 \begin_layout Standard
11777 Landscape foils are generated using the 
11778 \family sans
11779 Rotatefoilhead
11780 \family default
11781  and 
11782 \family sans
11783 ShortRotatefoilhead
11784 \family default
11785  environments.
11786  Again the only difference is the spacing between foilhead and body.
11787  Both of the short versions have 0.5
11788 \begin_inset space ~
11789 \end_inset
11790
11791 inches less separation between the foilhead and the body.
11792  
11793 \end_layout
11794
11795 \begin_layout Standard
11796 One problem with the support for landscape foils is the requirement that
11797  you have to use the 
11798 \family typewriter
11799 dvips
11800 \family default
11801  driver to generate the PostScript output otherwise the foils won't be rotated.
11802  It is possible to get landscape foils even if you haven't got the 
11803 \family typewriter
11804 dvips
11805 \family default
11806  driver provided you can feed your foils sideways through your printer ;-)
11807 \end_layout
11808
11809 \begin_layout Subsubsection
11810 Theorems, Lemmas, Proofs and more
11811 \end_layout
11812
11813 \begin_layout Standard
11814 You can't have two of the same type of these environments directly following
11815  each other.
11816  If you use a normal paragraph break, , you will just be extending the previous
11817  environment as if you had merged the two environments together.
11818  Rather than that, you need to insert a so-called separator.
11819  Please refer to the section entitled 
11820 \emph on
11821 Separate Nestings
11822 \emph default
11823  in the 
11824 \emph on
11825 User's Guide
11826 \emph default
11827 .
11828 \end_layout
11829
11830 \begin_layout Subsubsection
11831 Lists
11832 \end_layout
11833
11834 \begin_layout Standard
11835 You get all the commonly supported list styles found in other classes as
11836  well as two new ones.
11837  I'll only describe the new ones here.
11838  If you want to find out more about the other list environments check out
11839  the 
11840 \emph on
11841 User's Guide.
11842
11843 \emph default
11844  If you intend to use itemized lists you might also want to read about the
11845  
11846 \family sans
11847 Itemize
11848 \begin_inset space ~
11849 \end_inset
11850
11851 Bullet
11852 \begin_inset space ~
11853 \end_inset
11854
11855 Selection
11856 \family default
11857  dialog described above in section
11858 \begin_inset space ~
11859 \end_inset
11860
11861
11862 \begin_inset CommandInset ref
11863 LatexCommand ref
11864 reference "sec:bullet"
11865
11866 \end_inset
11867
11868 .
11869 \end_layout
11870
11871 \begin_layout Standard
11872 The two new list styles, 
11873 \family sans
11874 TickList
11875 \family default
11876  and 
11877 \family sans
11878 CrossList
11879 \family default
11880 , are designed to make it easier for you to create lists of do's and don'ts
11881  or right and wrong by providing dedicated environments that use a tick
11882  or a cross as the label of the list.
11883  These lists are in fact dedicated variants of the 
11884 \family sans
11885 Itemize
11886 \family default
11887  environment.
11888  They do however require that you have the 
11889 \family typewriter
11890 psnfss
11891 \family default
11892  packages installed.
11893 \end_layout
11894
11895 \begin_layout Subsubsection
11896 Figures and Tables
11897 \end_layout
11898
11899 \begin_layout Standard
11900
11901 \family sans
11902 Foil\SpecialChar TeX
11903
11904 \family default
11905  redefines the floating tables and figures so that they appear exactly where
11906  they are in the text rather than pushing them to the top of the page or
11907  to some user specified location.
11908  In fact if you change the float placement settings they are simply ignored.
11909 \end_layout
11910
11911 \begin_layout Subsubsection
11912 Page Headers and Footers
11913 \begin_inset CommandInset label
11914 LatexCommand label
11915 name "sec:foilfoot"
11916
11917 \end_inset
11918
11919
11920 \end_layout
11921
11922 \begin_layout Standard
11923
11924 \family sans
11925 My
11926 \begin_inset space ~
11927 \end_inset
11928
11929 Logo
11930 \family default
11931  and 
11932 \family sans
11933 Restriction
11934 \family default
11935  are two commands used to control the left-footer text string.
11936  The first is meant to allow you to include a graphic logo on your foils
11937  and defaults to 
11938 \begin_inset Quotes eld
11939 \end_inset
11940
11941 -Typeset by 
11942 \family sans
11943 Foil\SpecialChar TeX
11944
11945 \family default
11946 -
11947 \begin_inset Quotes erd
11948 \end_inset
11949
11950 .
11951  While the second is meant to provide a classification for the audience,
11952  
11953 \emph on
11954 e.
11955 \begin_inset space \thinspace{}
11956 \end_inset
11957
11958 g.
11959 \emph default
11960
11961 \begin_inset space \space{}
11962 \end_inset
11963
11964 Confidential.
11965  It is empty by default.
11966 \end_layout
11967
11968 \begin_layout Standard
11969 The remaining page corners can be filled by 
11970 \family sans
11971 Right
11972 \begin_inset space ~
11973 \end_inset
11974
11975 Footer
11976 \family default
11977  (which defaults to page numbers), 
11978 \family sans
11979 Right
11980 \begin_inset space ~
11981 \end_inset
11982
11983 Header
11984 \family default
11985  (top right) and 
11986 \family sans
11987 Left
11988 \begin_inset space ~
11989 \end_inset
11990
11991 Header
11992 \family default
11993  (top left).
11994 \end_layout
11995
11996 \begin_layout Subsection
11997 Unsupported 
11998 \family sans
11999 Foil\SpecialChar TeX
12000
12001 \family default
12002  Goodies
12003 \begin_inset CommandInset label
12004 LatexCommand label
12005 name "sec:unsuppfoils"
12006
12007 \end_inset
12008
12009
12010 \end_layout
12011
12012 \begin_layout Standard
12013 All the commands mentioned below need to be set in a 
12014 \family sans
12015 \SpecialChar LaTeX
12016
12017 \family default
12018  environment or as 
12019 \family sans
12020 \SpecialChar TeX
12021
12022 \family default
12023  within another environment.
12024 \end_layout
12025
12026 \begin_layout Subsubsection
12027 Lengths
12028 \end_layout
12029
12030 \begin_layout Standard
12031 All lengths are adjusted using the 
12032 \family typewriter
12033
12034 \backslash
12035 setlength{
12036 \family default
12037 \emph on
12038 lengthname
12039 \family typewriter
12040 \emph default
12041 }{
12042 \family default
12043 \emph on
12044 newlength
12045 \family typewriter
12046 \emph default
12047 }
12048 \family default
12049  command.
12050  Where 
12051 \emph on
12052 lengthname
12053 \emph default
12054  should be replaced by the name given to the length you want to change and
12055  
12056 \emph on
12057 newlength
12058 \emph default
12059  is the length value.
12060  All lengths should be specified in units of length such as inches (
12061 \family typewriter
12062 in
12063 \family default
12064 ), millimeters (
12065 \family typewriter
12066 mm
12067 \family default
12068 ) or points (
12069 \family typewriter
12070 pt
12071 \family default
12072 ) or relative to some document or font-based length such as 
12073 \family typewriter
12074
12075 \backslash
12076 textwidth
12077 \family default
12078 .
12079  
12080 \end_layout
12081
12082 \begin_layout Standard
12083 It's possible to change the spacing between a foilhead and the body of the
12084  foil by adjusting the length specified by 
12085 \family typewriter
12086
12087 \backslash
12088 foilheadskip
12089 \family default
12090 .
12091  For example, to make 
12092 \emph on
12093 all
12094 \emph default
12095  foilheads 0.5
12096 \begin_inset space \space{}
12097 \end_inset
12098
12099 in closer to their bodies put the following in the preamble: 
12100 \family typewriter
12101
12102 \backslash
12103 setlength{
12104 \backslash
12105 foilheadskip}{-0.5in}
12106 \end_layout
12107
12108 \begin_layout Standard
12109 The spacings around floats can be adjusted by setting these lengths:
12110 \end_layout
12111
12112 \begin_layout Labeling
12113 \labelwidthstring MMMMMMMMMMM
12114
12115 \family typewriter
12116
12117 \backslash
12118 abovefloatskip
12119 \family default
12120  Separation between the text and the top of the float
12121 \end_layout
12122
12123 \begin_layout Labeling
12124 \labelwidthstring MMMMMMMMMMM
12125
12126 \family typewriter
12127
12128 \backslash
12129 abovecaptionskip
12130 \family default
12131  Separation between the float and the caption
12132 \end_layout
12133
12134 \begin_layout Labeling
12135 \labelwidthstring MMMMMMMMMMM
12136
12137 \family typewriter
12138
12139 \backslash
12140 belowcaptionskip
12141 \family default
12142  Separation between the caption and the following text
12143 \end_layout
12144
12145 \begin_layout Labeling
12146 \labelwidthstring MMMMMMMMMMM
12147
12148 \family typewriter
12149
12150 \backslash
12151 captionwidth
12152 \family default
12153  You can make the captions narrower than the surrounding text by adjusting
12154  this length.
12155  Best done relative to 
12156 \family typewriter
12157
12158 \backslash
12159 textwidth
12160 \family default
12161 .
12162 \end_layout
12163
12164 \begin_layout Standard
12165 There are also several title page related lengths that you may find useful
12166  if you have a long title or several authors:
12167 \end_layout
12168
12169 \begin_layout Labeling
12170 \labelwidthstring MMMMMMMMMMM
12171
12172 \family typewriter
12173
12174 \backslash
12175 abovetitleskip
12176 \family default
12177  Separation from headers to 
12178 \family sans
12179 Title
12180 \end_layout
12181
12182 \begin_layout Labeling
12183 \labelwidthstring MMMMMMMMMMM
12184
12185 \family typewriter
12186
12187 \backslash
12188 titleauthorskip
12189 \family default
12190  between 
12191 \family sans
12192 Title
12193 \family default
12194  and 
12195 \family sans
12196 Author
12197 \family default
12198  environments
12199 \end_layout
12200
12201 \begin_layout Labeling
12202 \labelwidthstring MMMMMMMMMMM
12203
12204 \family typewriter
12205
12206 \backslash
12207 authorauthorskip
12208 \family default
12209  between multiple 
12210 \family sans
12211 Author
12212 \family default
12213  lines
12214 \end_layout
12215
12216 \begin_layout Labeling
12217 \labelwidthstring MMMMMMMMMMM
12218
12219 \family typewriter
12220
12221 \backslash
12222 authordateskip
12223 \family default
12224  between the 
12225 \family sans
12226 Author
12227 \family default
12228  and the 
12229 \family sans
12230 Date
12231 \end_layout
12232
12233 \begin_layout Labeling
12234 \labelwidthstring MMMMMMMMMMM
12235
12236 \family typewriter
12237
12238 \backslash
12239 dateabstractskip
12240 \family default
12241  between the 
12242 \family sans
12243 Date
12244 \family default
12245  and the 
12246 \family sans
12247 Abstract
12248 \end_layout
12249
12250 \begin_layout Standard
12251 The last length related command affects all the list environments.
12252  If you place 
12253 \family typewriter
12254
12255 \backslash
12256 zerolistvertdimens
12257 \family default
12258  
12259 \emph on
12260 inside
12261 \emph default
12262  a list environment then all the vertical spacing between the list items
12263  is removed.
12264  Note that this is a command not a length so it doesn't require 
12265 \family typewriter
12266
12267 \backslash
12268 setlength
12269 \family default
12270  like the stuff mentioned above.
12271 \end_layout
12272
12273 \begin_layout Subsubsection
12274 Headers and Footers
12275 \end_layout
12276
12277 \begin_layout Standard
12278 The 
12279 \family typewriter
12280
12281 \backslash
12282 LogoOn
12283 \family default
12284  and 
12285 \family typewriter
12286
12287 \backslash
12288 LogoOff
12289 \family default
12290  commands control whether the logo in the 
12291 \family sans
12292 MyLogo
12293 \family default
12294  definition appear on a given page.
12295  If you put 
12296 \family typewriter
12297
12298 \backslash
12299 LogoOff
12300 \family default
12301  in the preamble then none of the foils will have the logo on them.
12302  If you don't want the logo on a particular page place the 
12303 \family typewriter
12304
12305 \backslash
12306 LogoOff
12307 \family default
12308  directly after the foilhead of that page and the 
12309 \family typewriter
12310
12311 \backslash
12312 LogoOn
12313 \family default
12314  directly after the next foilhead.
12315 \end_layout
12316
12317 \begin_layout Standard
12318 If you decide to use the 
12319 \family sans
12320 fancy
12321 \family default
12322  page style setting in the 
12323 \family sans
12324 Document
12325 \begin_inset space ~
12326 \end_inset
12327
12328 Layout
12329 \family default
12330  dialog you should probably add 
12331 \family typewriter
12332
12333 \backslash
12334 let
12335 \backslash
12336 headwidth
12337 \backslash
12338 textwidth
12339 \family default
12340  to your preamble so headers and footers on landscape pages are correctly
12341  placed when rotated.
12342  This is due to some clashes between the page layouts provided by the 
12343 \family sans
12344 fancyheadings
12345 \family default
12346  package and the 
12347 \family sans
12348 foils
12349 \family default
12350  class.
12351 \end_layout
12352
12353 \begin_layout Section
12354 Hollywood (Hollywood spec scripts)
12355 \end_layout
12356
12357 \begin_layout Standard
12358 by 
12359 \shape smallcaps
12360 Garst Reese
12361 \end_layout
12362
12363 \begin_layout Subsection
12364 Introduction
12365 \end_layout
12366
12367 \begin_layout Standard
12368 Getting the format of a Hollywood script right is a 
12369 \begin_inset Quotes eld
12370 \end_inset
12371
12372 rite of passage.
12373 \begin_inset Quotes erd
12374 \end_inset
12375
12376  It is designed to make the readers focus on content and to be easy and
12377  familiar for the actors to read.
12378  Each page of a script should be one minute of film.
12379  Nothing goes in a script that you cannot see or hear on screen.
12380  The courier 12 pt font should be used throughout.
12381  No italics.
12382 \end_layout
12383
12384 \begin_layout Subsection
12385 Special problems
12386 \end_layout
12387
12388 \begin_layout Standard
12389 Speakers' lines should NEVER break in mid-sentence.
12390  If a speaker's lines continue over a page break, repeat the 
12391 \family sans
12392 Speaker
12393 \family default
12394  title followed by (Cont'd).
12395 \end_layout
12396
12397 \begin_layout Subsection
12398 Special features
12399 \end_layout
12400
12401 \begin_layout Standard
12402 Insert the 
12403 \family sans
12404 Speaker
12405 \family default
12406  names as labels then cross-reference the label to insert the name.
12407  The cross-reference dialog will show the current cast of characters.
12408  You can use this to insert the speaker name in narratives also.
12409 \end_layout
12410
12411 \begin_layout Subsection
12412 Paper size and Margins
12413 \end_layout
12414
12415 \begin_layout Standard
12416 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
12417 \end_layout
12418
12419 \begin_layout Subsection
12420 Environments
12421 \end_layout
12422
12423 \begin_layout Standard
12424 The following environments are available.
12425  You can use hollywood.bind to get the bind keys shown at the right.
12426 \end_layout
12427
12428 \begin_layout Itemize
12429
12430 \family sans
12431 Standard
12432 \begin_inset Newline newline
12433 \end_inset
12434
12435
12436 \family default
12437 Used where nothing else works.
12438  Try to avoid it.
12439 \end_layout
12440
12441 \begin_layout Itemize
12442
12443 \family sans
12444 FADE_IN
12445 \family default
12446 :
12447 \begin_inset space \hfill{}
12448 \end_inset
12449
12450
12451 \family sans
12452 M-z S-I
12453 \family default
12454
12455 \begin_inset Newline newline
12456 \end_inset
12457
12458 Usually followed by something like 
12459 \begin_inset Quotes eld
12460 \end_inset
12461
12462 on Sally waking up.
12463 \begin_inset Quotes erd
12464 \end_inset
12465
12466
12467 \end_layout
12468
12469 \begin_layout Itemize
12470
12471 \family sans
12472 INT:
12473 \begin_inset space \hfill{}
12474 \end_inset
12475
12476 M-z i
12477 \begin_inset Newline newline
12478 \end_inset
12479
12480
12481 \family default
12482 Introduces a new INTERIOR camera set-up.
12483  Always followed by DAY or NIGHT, or something similar to define the lighting
12484  required.
12485  Everthing on this line in CAPS.
12486 \end_layout
12487
12488 \begin_layout Itemize
12489
12490 \family sans
12491 EXT:
12492 \begin_inset space \hfill{}
12493 \end_inset
12494
12495 M-z e
12496 \begin_inset Newline newline
12497 \end_inset
12498
12499
12500 \family default
12501 Introduces a new EXTERIOR camera set-up.
12502  Everthing on this line in CAPS.
12503 \end_layout
12504
12505 \begin_layout Itemize
12506
12507 \family sans
12508 Speaker
12509 \begin_inset space \hfill{}
12510 \end_inset
12511
12512 M-z s
12513 \begin_inset Newline newline
12514 \end_inset
12515
12516
12517 \family default
12518 The character speaking.
12519 \end_layout
12520
12521 \begin_layout Itemize
12522
12523 \family sans
12524 Parenthetical
12525 \begin_inset space \hfill{}
12526 \end_inset
12527
12528 M-z p
12529 \begin_inset Newline newline
12530 \end_inset
12531
12532
12533 \family default
12534 Instructions to the speaker.
12535  The () are automatically inserted.
12536 \end_layout
12537
12538 \begin_layout Itemize
12539
12540 \family sans
12541 Dialogue
12542 \begin_inset space \hfill{}
12543 \end_inset
12544
12545 M-z d
12546 \begin_inset Newline newline
12547 \end_inset
12548
12549
12550 \family default
12551 What the 
12552 \family sans
12553 Speaker
12554 \family default
12555  says.
12556 \end_layout
12557
12558 \begin_layout Itemize
12559
12560 \family sans
12561 Transition
12562 \begin_inset space \hfill{}
12563 \end_inset
12564
12565 M-z t
12566 \begin_inset Newline newline
12567 \end_inset
12568
12569
12570 \family default
12571 Camera movement instruction.
12572  e.
12573 \begin_inset space \thinspace{}
12574 \end_inset
12575
12576 g.
12577 \begin_inset space \space{}
12578 \end_inset
12579
12580 CUT TO:
12581 \end_layout
12582
12583 \begin_layout Itemize
12584
12585 \family sans
12586 FADE OUT:
12587 \begin_inset space \hfill{}
12588 \end_inset
12589
12590 M-z S-I
12591 \end_layout
12592
12593 \begin_layout Itemize
12594
12595 \family sans
12596 Author
12597 \begin_inset space \hfill{}
12598 \end_inset
12599
12600 M-z S-A
12601 \end_layout
12602
12603 \begin_layout Itemize
12604
12605 \family sans
12606 Title
12607 \begin_inset space \hfill{}
12608 \end_inset
12609
12610 M-z S-T
12611 \end_layout
12612
12613 \begin_layout Itemize
12614
12615 \family sans
12616 Right_Address
12617 \begin_inset space \hfill{}
12618 \end_inset
12619
12620 M-z r
12621 \end_layout
12622
12623 \begin_layout Subsection
12624 Script jargon
12625 \end_layout
12626
12627 \begin_layout Itemize
12628 (O.S) — off screen
12629 \end_layout
12630
12631 \begin_layout Itemize
12632 (V.0) — voice over
12633 \end_layout
12634
12635 \begin_layout Itemize
12636 b.
12637 \begin_inset space \thinspace{}
12638 \end_inset
12639
12640 g.
12641  — background
12642 \end_layout
12643
12644 \begin_layout Itemize
12645 C.U.
12646  — close-up
12647 \end_layout
12648
12649 \begin_layout Itemize
12650 PAN — camera movement
12651 \end_layout
12652
12653 \begin_layout Itemize
12654 INSERT — cut to close-up of
12655 \end_layout
12656
12657 \begin_layout Section
12658 ijmpc and ijmpd
12659 \end_layout
12660
12661 \begin_layout Standard
12662 by 
12663 \noun on
12664 Panayotis Papasotiriou
12665 \end_layout
12666
12667 \begin_layout Subsection
12668 Overview
12669 \end_layout
12670
12671 \begin_layout Standard
12672 The ijmpc package is a set of macros that facilitates electronic manuscript
12673  submission to the 
12674 \emph on
12675 International Journal of Modern Physics C
12676 \emph default
12677 .
12678  Similarly, the ijmpd package is for creating manuscripts to be submitted
12679  to the 
12680 \emph on
12681 International Journal of Modern Physics D
12682 \emph default
12683 .
12684  Both journals are published by World Scientific.
12685  The corresponding document classes are named 
12686 \family typewriter
12687 ws-ijmpc.cls
12688 \family default
12689  and 
12690 \family typewriter
12691 ws-ijmpd.cls
12692 \family default
12693 , respectively.
12694  These files, together with instructions for the authors, can be downloaded
12695  from the sites 
12696 \begin_inset Flex URL
12697 status collapsed
12698
12699 \begin_layout Plain Layout
12700
12701 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
12702 \end_layout
12703
12704 \end_inset
12705
12706  and 
12707 \begin_inset Flex URL
12708 status collapsed
12709
12710 \begin_layout Plain Layout
12711
12712 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
12713 \end_layout
12714
12715 \end_inset
12716
12717 .
12718  Both packages are modified versions of the standard 
12719 \begin_inset Quotes eld
12720 \end_inset
12721
12722 article
12723 \begin_inset Quotes erd
12724 \end_inset
12725
12726  package, and they are almost (but not exactly) identical.
12727  Most of their features are supported by \SpecialChar LyX
12728 .
12729  I have used \SpecialChar LyX
12730  successfully to write articles submitted to both journals
12731  without any problem.
12732 \end_layout
12733
12734 \begin_layout Subsection
12735 Writing a paper
12736 \end_layout
12737
12738 \begin_layout Standard
12739 As usual, the easiest way to write a paper is to start with a template.
12740  Click on 
12741 \family sans
12742 File\SpecialChar menuseparator
12743 New from
12744 \family default
12745  
12746 \family sans
12747 Template
12748 \family default
12749 , then choose the 
12750 \family typewriter
12751 ijmpc.lyx
12752 \family default
12753  or 
12754 \family typewriter
12755 ijmpd.lyx
12756 \family default
12757  template.
12758  This will give an (almost) empty document that includes the most common
12759  fields found in a manuscript.
12760  Simply overwrite the existing text (including the brackets, 
12761 \family typewriter
12762 <>
12763 \family default
12764 ) with your text.
12765  You should keep in mind the following remarks.
12766 \end_layout
12767
12768 \begin_layout Enumerate
12769 \SpecialChar LyX
12770  won't let you change the font size and the page style of the document,
12771  because such modifications are not allowed by both packages.
12772 \end_layout
12773
12774 \begin_layout Enumerate
12775 The language of the document should not be changed.
12776  Before previewing your paper, be sure that the babel package is not used.
12777  To do this, click on 
12778 \begin_inset Info
12779 type  "menu"
12780 arg   "dialog-show document"
12781 \end_inset
12782
12783  
12784 \family sans
12785 \SpecialChar menuseparator
12786 Language
12787 \family default
12788 , and select 
12789 \begin_inset Quotes eld
12790 \end_inset
12791
12792 None
12793 \begin_inset Quotes erd
12794 \end_inset
12795
12796  as 
12797 \family sans
12798 Language Package
12799 \family default
12800 .
12801 \end_layout
12802
12803 \begin_layout Enumerate
12804 The 
12805 \begin_inset Quotes eld
12806 \end_inset
12807
12808 Keywords
12809 \begin_inset Quotes erd
12810 \end_inset
12811
12812  style must be used to define keywords.
12813 \end_layout
12814
12815 \begin_layout Enumerate
12816 The ijmpc package provides a style named 
12817 \begin_inset Quotes eld
12818 \end_inset
12819
12820 Classification Codes
12821 \begin_inset Quotes erd
12822 \end_inset
12823
12824 , which can be used to define classification codes, such as PACS numbers.
12825  Note that this facility is not supported by the ijmpd package.
12826 \end_layout
12827
12828 \begin_layout Enumerate
12829 Several new environments are available: 
12830 \begin_inset Quotes eld
12831 \end_inset
12832
12833 Definition
12834 \begin_inset Quotes erd
12835 \end_inset
12836
12837
12838 \begin_inset Quotes eld
12839 \end_inset
12840
12841 Step
12842 \begin_inset Quotes erd
12843 \end_inset
12844
12845
12846 \begin_inset Quotes eld
12847 \end_inset
12848
12849 Example
12850 \begin_inset Quotes erd
12851 \end_inset
12852
12853
12854 \begin_inset Quotes eld
12855 \end_inset
12856
12857 Remark
12858 \begin_inset Quotes erd
12859 \end_inset
12860
12861
12862 \begin_inset Quotes eld
12863 \end_inset
12864
12865 Notation
12866 \begin_inset Quotes erd
12867 \end_inset
12868
12869
12870 \begin_inset Quotes eld
12871 \end_inset
12872
12873 Theorem
12874 \begin_inset Quotes erd
12875 \end_inset
12876
12877
12878 \begin_inset Quotes eld
12879 \end_inset
12880
12881 Proof
12882 \begin_inset Quotes erd
12883 \end_inset
12884
12885
12886 \begin_inset Quotes eld
12887 \end_inset
12888
12889 Corollary
12890 \begin_inset Quotes erd
12891 \end_inset
12892
12893
12894 \begin_inset Quotes eld
12895 \end_inset
12896
12897 Lemma
12898 \begin_inset Quotes erd
12899 \end_inset
12900
12901
12902 \begin_inset Quotes eld
12903 \end_inset
12904
12905 Proposition
12906 \begin_inset Quotes erd
12907 \end_inset
12908
12909
12910 \begin_inset Quotes eld
12911 \end_inset
12912
12913 Prop
12914 \begin_inset Quotes erd
12915 \end_inset
12916
12917
12918 \begin_inset Quotes eld
12919 \end_inset
12920
12921 Question
12922 \begin_inset Quotes erd
12923 \end_inset
12924
12925
12926 \begin_inset Quotes eld
12927 \end_inset
12928
12929 Claim
12930 \begin_inset Quotes erd
12931 \end_inset
12932
12933 , and 
12934 \begin_inset Quotes eld
12935 \end_inset
12936
12937 Conjecture
12938 \begin_inset Quotes erd
12939 \end_inset
12940
12941 .
12942  Their use is more or less obvious.
12943  \SpecialChar LyX
12944  supports all these environments; it will use the proper label, text style,
12945  and numbering scheme for each of them.
12946 \end_layout
12947
12948 \begin_layout Enumerate
12949 Both packages use basic citations; the natbib package should not be used.
12950  In \SpecialChar LyX
12951 , citation references are shown as usual; in the output, citations are
12952  shown as superscripts.
12953  If you want to use a citation as normal text, you should use the 
12954 \family typewriter
12955 refcite
12956 \family default
12957  command, e.
12958 \begin_inset space \thinspace{}
12959 \end_inset
12960
12961 g.
12962 \begin_inset space \space{}
12963 \end_inset
12964
12965
12966 \begin_inset Quotes eld
12967 \end_inset
12968
12969 See Ref.
12970 \begin_inset space \space{}
12971 \end_inset
12972
12973
12974 \family typewriter
12975
12976 \backslash
12977 refcite{key}
12978 \family default
12979
12980 \begin_inset Quotes erd
12981 \end_inset
12982
12983 .
12984 \end_layout
12985
12986 \begin_layout Enumerate
12987 There is no 
12988 \begin_inset Quotes eld
12989 \end_inset
12990
12991 Acknowledgments
12992 \begin_inset Quotes erd
12993 \end_inset
12994
12995  section in both packages.
12996  To put acknowledgments, just use the 
12997 \begin_inset Quotes eld
12998 \end_inset
12999
13000 Section*
13001 \begin_inset Quotes erd
13002 \end_inset
13003
13004  environment.
13005 \end_layout
13006
13007 \begin_layout Enumerate
13008 Appendices may be added to the paper, 
13009 \emph on
13010 after
13011 \emph default
13012  the Acknowledgments and 
13013 \shape italic
13014 before
13015 \shape default
13016  the References.
13017  \SpecialChar LyX
13018  provides a special environment, called 
13019 \begin_inset Quotes eld
13020 \end_inset
13021
13022 Appendices Section
13023 \begin_inset Quotes erd
13024 \end_inset
13025
13026  which marks the beginning of the appendices.
13027  This environment should be left blank; it just sends a \SpecialChar LaTeX
13028  command, but nothing
13029  is really printed.
13030  In \SpecialChar LyX
13031 , the word 
13032 \begin_inset Quotes eld
13033 \end_inset
13034
13035 Appendix
13036 \begin_inset Quotes erd
13037 \end_inset
13038
13039  is printed with blue letters, as a signal that all sections after that
13040  point are appendices.
13041  To write an appendix, use the 
13042 \begin_inset Quotes eld
13043 \end_inset
13044
13045 Appendix
13046 \begin_inset Quotes erd
13047 \end_inset
13048
13049  environment.
13050  \SpecialChar LyX
13051  will number each appendix with capital letters, as required by both journals.
13052  Note that 
13053 \begin_inset Quotes eld
13054 \end_inset
13055
13056 Appendices Section
13057 \begin_inset Quotes erd
13058 \end_inset
13059
13060  
13061 \emph on
13062 must
13063 \emph default
13064  be present before the first appendix; if not, all appendices will be numbered
13065  as normal sections in the output.
13066 \end_layout
13067
13068 \begin_layout Enumerate
13069 The ijmpc and the ijmpd packages use the 
13070 \family typewriter
13071 tbl
13072 \family default
13073  command to implement table captions.
13074  As a result, a table created by \SpecialChar LyX
13075  is printed correctly, but its caption
13076  is ignored.
13077  However, you can use some \SpecialChar TeX
13078  code to overcome this problem, so that captions
13079  are printed as expected.
13080  To do so, create a float table as usual, remove the caption, and replace
13081  it with the \SpecialChar TeX
13082  code 
13083 \family typewriter
13084
13085 \backslash
13086 tbl{
13087 \emph on
13088 your table caption
13089 \emph default
13090 }{
13091 \family default
13092  (sic); you must also the \SpecialChar TeX
13093  code 
13094 \family typewriter
13095 }
13096 \family default
13097  immediately after the tabular material.
13098  Study the example table included in the template files to see how this
13099  trick is implemented.
13100  Alternatively, If you need table captions, you should implement the whole
13101  table float in a 
13102 \family typewriter
13103 .tex
13104 \family default
13105  file, then include this file to the \SpecialChar LyX
13106  document (
13107 \family sans
13108 Insert\SpecialChar menuseparator
13109 File\SpecialChar menuseparator
13110 Child
13111 \begin_inset space ~
13112 \end_inset
13113
13114 Document
13115 \family default
13116 ).
13117  Details on how to create a table float can be found in the files 
13118 \family typewriter
13119 ws-ijmpc.tex
13120 \family default
13121  and 
13122 \family typewriter
13123 ws-ijmpd.tex
13124 \family default
13125 , included in the corresponding packages.
13126 \end_layout
13127
13128 \begin_layout Subsection
13129 Preparing a paper for submission
13130 \end_layout
13131
13132 \begin_layout Standard
13133 Before you submit your paper you must export the \SpecialChar LyX
13134  document as a \SpecialChar LaTeX
13135  file (
13136 \family sans
13137 File\SpecialChar menuseparator
13138 Export\SpecialChar menuseparator
13139 \SpecialChar LaTeX
13140
13141 \family default
13142 )
13143 \begin_inset Foot
13144 status open
13145
13146 \begin_layout Plain Layout
13147 Actually you have the choice between \SpecialChar LaTeX
13148  (plain) and pdflatex.
13149  If you intend to use pdflatex to prepare the paper, you should use the
13150  pdflatex option so that included graphics are converted to PDF format,
13151  ready for use by pdflatex.
13152 \end_layout
13153
13154 \end_inset
13155
13156 , then make the following changes to the resulting 
13157 \family typewriter
13158 .tex
13159 \family default
13160  file.
13161 \end_layout
13162
13163 \begin_layout Enumerate
13164 Remove the comment lines before the 
13165 \family typewriter
13166
13167 \backslash
13168 documentclass
13169 \family default
13170  command.
13171 \end_layout
13172
13173 \begin_layout Enumerate
13174 Remove everything between (and including) the 
13175 \family typewriter
13176
13177 \backslash
13178 makeatletter
13179 \family default
13180  and 
13181 \family typewriter
13182
13183 \backslash
13184 makeatother
13185 \family default
13186  commands, except for any commands you specifically put into the \SpecialChar LaTeX
13187  preamble.
13188 \end_layout
13189
13190 \begin_layout Standard
13191 The modified 
13192 \family typewriter
13193 .tex
13194 \family default
13195  file should be saved and processed through \SpecialChar LaTeX
13196  as many times as necessary.
13197  You may also want to check the resulting 
13198 \family typewriter
13199 .dvi
13200 \family default
13201  document.
13202 \end_layout
13203
13204 \begin_layout Section
13205 iopart
13206 \end_layout
13207
13208 \begin_layout Standard
13209 by 
13210 \noun on
13211 Uwe Stöhr
13212 \end_layout
13213
13214 \begin_layout Subsection
13215 Overview
13216 \end_layout
13217
13218 \begin_layout Standard
13219 The iopart package provides a document class to create electronic manuscript
13220  submission to the journals published by the Institute of Physics.
13221  Instructions for the authors how to create a paper using the iopart class
13222  can be downloaded together with the iopart package from the site 
13223 \begin_inset Flex URL
13224 status collapsed
13225
13226 \begin_layout Plain Layout
13227
13228 ftp://ftp.iop.org/pub/journals/latex2e
13229 \end_layout
13230
13231 \end_inset
13232
13233 .
13234 \end_layout
13235
13236 \begin_layout Subsection
13237 Writing a paper
13238 \end_layout
13239
13240 \begin_layout Standard
13241 The easiest way to write a paper is to start with the template 
13242 \emph on
13243 IOP-article.lyx
13244 \emph default
13245  that is available via 
13246 \family sans
13247 File\SpecialChar menuseparator
13248 New From Template
13249 \family default
13250  The template explains how to use the special text environments.
13251  Here are the most important advices:
13252 \end_layout
13253
13254 \begin_layout Itemize
13255 To be able to compile your document to a PDF, PS, or DVI, ensure that the
13256  no AMS packages are loaded in 
13257 \family sans
13258 Document\SpecialChar menuseparator
13259 Settings\SpecialChar menuseparator
13260 Math Options
13261 \family default
13262 !
13263 \end_layout
13264
13265 \begin_layout Itemize
13266
13267 \size normal
13268 The title environment defines the kind of your paper.
13269  So use one of the following environments for the title:
13270 \end_layout
13271
13272 \begin_deeper
13273 \begin_layout Itemize
13274
13275 \family sans
13276 \size normal
13277 Title
13278 \family default
13279  for a Paper
13280 \end_layout
13281
13282 \begin_layout Itemize
13283
13284 \family sans
13285 \size normal
13286 Review
13287 \family default
13288  for a Review
13289 \end_layout
13290
13291 \begin_layout Itemize
13292
13293 \family sans
13294 \size normal
13295 Topical
13296 \family default
13297  for a Topical review
13298 \end_layout
13299
13300 \begin_layout Itemize
13301
13302 \family sans
13303 \size normal
13304 Comment
13305 \family default
13306  for a Comment
13307 \end_layout
13308
13309 \begin_layout Itemize
13310
13311 \family sans
13312 \size normal
13313 Note
13314 \family default
13315  for a Note
13316 \end_layout
13317
13318 \begin_layout Itemize
13319
13320 \family sans
13321 \size normal
13322 Paper
13323 \family default
13324  for a Paper (same as Title)
13325 \end_layout
13326
13327 \begin_layout Itemize
13328
13329 \family sans
13330 \size normal
13331 Prelim
13332 \family default
13333  for a Preliminary communication
13334 \end_layout
13335
13336 \begin_layout Itemize
13337
13338 \family sans
13339 \size normal
13340 Rapid
13341 \family default
13342  for a Rapid communication
13343 \end_layout
13344
13345 \begin_layout Itemize
13346
13347 \family sans
13348 \size normal
13349 Letter
13350 \family default
13351  for a Letter to the editor
13352 \end_layout
13353
13354 \end_deeper
13355 \begin_layout Itemize
13356
13357 \size normal
13358 All title environments except of 
13359 \family sans
13360 Letter
13361 \family default
13362  can have an optional short title.
13363 \end_layout
13364
13365 \begin_layout Itemize
13366 There is a general title environment 
13367 \family sans
13368 Article
13369 \family default
13370  which is not directly supported by \SpecialChar LyX
13371 .
13372  This can be used as \SpecialChar TeX
13373  code when your document doesn't fit into one of the
13374  other title types.
13375 \end_layout
13376
13377 \begin_layout Standard
13378 For more informations like hints for special table and formula formatting,
13379  look at the IOP author guidelines.
13380 \end_layout
13381
13382 \begin_layout Section
13383 Kluwer
13384 \end_layout
13385
13386 \begin_layout Standard
13387 by 
13388 \noun on
13389 Panayotis Papasotiriou
13390 \end_layout
13391
13392 \begin_layout Subsection
13393 Overview
13394 \end_layout
13395
13396 \begin_layout Standard
13397 The Kluwer package is a set of macros produced by Kluwer Academic Publishers
13398  that facilitates electronic manuscript submission to the journals they
13399  publish.
13400  Most known of them (at least in my domain of interest) are 
13401 \emph on
13402 Astrophysics and Space Science
13403 \emph default
13404  and 
13405 \emph on
13406 Solar Physics
13407 \emph default
13408 , but there are many others (see a complete list at 
13409 \begin_inset Flex URL
13410 status collapsed
13411
13412 \begin_layout Plain Layout
13413
13414 http://www.wkap.nl/jrnllist.htm/JRNLHOME
13415 \end_layout
13416
13417 \end_inset
13418
13419 ).
13420  The Kluwer package may be downloaded from the site 
13421 \begin_inset Flex URL
13422 status collapsed
13423
13424 \begin_layout Plain Layout
13425
13426 http://www.wkap.nl/kaphtml.htm/STYLEFILES
13427 \end_layout
13428
13429 \end_inset
13430
13431 .
13432  A complete user guide is contained in that package (but it can also be
13433  downloaded separately).
13434 \end_layout
13435
13436 \begin_layout Standard
13437 \SpecialChar LyX
13438  supports many features of the package but not everything.
13439  However, the \SpecialChar TeX
13440  code needed is reduced to some 
13441 \begin_inset Quotes eld
13442 \end_inset
13443
13444 peculiar
13445 \begin_inset Quotes erd
13446 \end_inset
13447
13448  commands of the package (see
13449 \begin_inset space ~
13450 \end_inset
13451
13452
13453 \begin_inset CommandInset ref
13454 LatexCommand ref
13455 reference "subsec:kluwer_peculiarities"
13456
13457 \end_inset
13458
13459 ).
13460  I have recently used \SpecialChar LyX
13461  to write an article submitted to the 
13462 \emph on
13463 Astrophysics and Space Science
13464 \emph default
13465  without any problem.
13466 \end_layout
13467
13468 \begin_layout Subsection
13469 Writing a paper
13470 \end_layout
13471
13472 \begin_layout Standard
13473 The easiest way to write a paper is to start with the Kluwer template file.
13474  Click on 
13475 \family sans
13476 File\SpecialChar menuseparator
13477 New from
13478 \family default
13479  
13480 \family sans
13481 Template
13482 \family default
13483 , then choose the 
13484 \family typewriter
13485 kluwer.lyx
13486 \family default
13487  template.
13488  This will give an (almost) empty document that includes the most common
13489  fields found in a manuscript and a short description of their use.
13490  As in most templates, simply overwrite the existing text (including the
13491  brackets, 
13492 \family typewriter
13493 <>
13494 \family default
13495 ) with the correct information.
13496 \end_layout
13497
13498 \begin_layout Subsection
13499 Preparing a paper for submission
13500 \end_layout
13501
13502 \begin_layout Standard
13503 As in the AAS\SpecialChar TeX
13504  package, before you submit your paper to a journal you must
13505  
13506 \begin_inset Quotes eld
13507 \end_inset
13508
13509 postprocess
13510 \begin_inset Quotes erd
13511 \end_inset
13512
13513  it as follows.
13514 \end_layout
13515
13516 \begin_layout Enumerate
13517 Export your paper as a \SpecialChar LaTeX
13518  file.
13519  To do this, click on 
13520 \family sans
13521 File\SpecialChar menuseparator
13522 Export\SpecialChar menuseparator
13523 \SpecialChar LaTeX
13524
13525 \family default
13526 .
13527  
13528 \end_layout
13529
13530 \begin_layout Enumerate
13531 Edit the resulting 
13532 \family typewriter
13533 .tex
13534 \family default
13535  file with a text editor and make the following changes
13536 \end_layout
13537
13538 \begin_deeper
13539 \begin_layout Enumerate
13540 remove the comment lines before the 
13541 \family typewriter
13542
13543 \backslash
13544 documentclass
13545 \family default
13546  command,
13547 \end_layout
13548
13549 \begin_layout Enumerate
13550 remove everything between (and including) the 
13551 \family typewriter
13552
13553 \backslash
13554 makeatletter
13555 \family default
13556  and 
13557 \family typewriter
13558
13559 \backslash
13560 makeatother
13561 \family default
13562  commands, except for any commands you specifically put into the \SpecialChar LaTeX
13563  preamble.
13564 \end_layout
13565
13566 \begin_layout Standard
13567 Save the resulting 
13568 \family typewriter
13569 .tex
13570 \family default
13571  file.
13572 \end_layout
13573
13574 \end_deeper
13575 \begin_layout Enumerate
13576 Run the 
13577 \family typewriter
13578 .tex
13579 \family default
13580  file through \SpecialChar LaTeX
13581  as many times as necessary (usually up to three).
13582 \end_layout
13583
13584 \begin_layout Enumerate
13585 View the resulting 
13586 \family typewriter
13587 .dvi
13588 \family default
13589  document using, e.
13590 \begin_inset space \thinspace{}
13591 \end_inset
13592
13593 g.
13594 \begin_inset space \space{}
13595 \end_inset
13596
13597
13598 \family sans
13599 xdvi
13600 \family default
13601 , and check if everything is OK (it should, if you didn't make any mistake).
13602 \end_layout
13603
13604 \begin_layout Subsection
13605 \begin_inset Quotes eld
13606 \end_inset
13607
13608 Peculiarities
13609 \begin_inset Quotes erd
13610 \end_inset
13611
13612  of the Kluwer package
13613 \begin_inset CommandInset label
13614 LatexCommand label
13615 name "subsec:kluwer_peculiarities"
13616
13617 \end_inset
13618
13619
13620 \end_layout
13621
13622 \begin_layout Standard
13623 The Kluwer package has the following 
13624 \begin_inset Quotes eld
13625 \end_inset
13626
13627 peculiarities
13628 \begin_inset Quotes erd
13629 \end_inset
13630
13631 .
13632 \end_layout
13633
13634 \begin_layout Enumerate
13635 It is possible to write multiple articles in the same \SpecialChar LaTeX
13636  file
13637 \begin_inset Foot
13638 status collapsed
13639
13640 \begin_layout Plain Layout
13641 I can't imagine any good reason to do this.
13642 \end_layout
13643
13644 \end_inset
13645
13646 .
13647  Each article must be included in the environment 
13648 \begin_inset Quotes eld
13649 \end_inset
13650
13651 article
13652 \begin_inset Quotes erd
13653 \end_inset
13654
13655 .
13656  Unfortunately, this environment cannot be omitted, even if you write just
13657  one article.
13658  Therefore, each article starts with the command 
13659 \family typewriter
13660
13661 \backslash
13662 begin{article}
13663 \family default
13664  and, obviously, ends with the command 
13665 \family typewriter
13666
13667 \backslash
13668 end{article}
13669 \family default
13670 .
13671  Although this can be implemented in \SpecialChar LyX
13672 , I didn't included it, since it looks
13673  ugly and can confuse the novice user.
13674  Therefore, you need to enter them directly and mark them as \SpecialChar LaTeX
13675  code (the
13676  well-known 
13677 \begin_inset Quotes eld
13678 \end_inset
13679
13680 \SpecialChar TeX
13681  code
13682 \begin_inset Quotes erd
13683 \end_inset
13684
13685 ).
13686 \end_layout
13687
13688 \begin_layout Enumerate
13689 Information given at the beginning of the article (i.
13690 \begin_inset space \thinspace{}
13691 \end_inset
13692
13693 e.
13694 \begin_inset space \space{}
13695 \end_inset
13696
13697 title, subtitle, author, institution, running title, running author, abstract
13698  and keywords) must be included in an environment called 
13699 \begin_inset Quotes eld
13700 \end_inset
13701
13702 opening
13703 \begin_inset Quotes erd
13704 \end_inset
13705
13706 .
13707  This is not implemented in \SpecialChar LyX
13708 , so you must enter title, subtitle etc.
13709 \begin_inset space ~
13710 \end_inset
13711
13712 between two \SpecialChar TeX
13713  code lines (
13714 \family typewriter
13715
13716 \backslash
13717 begin{opening}
13718 \family default
13719  and 
13720 \family typewriter
13721
13722 \backslash
13723 end{opening}
13724 \family default
13725 ).
13726 \end_layout
13727
13728 \begin_layout Enumerate
13729 According to the user manual, the label of each bibliography item must be
13730  written as 
13731 \family typewriter
13732
13733 \backslash
13734 protect
13735 \backslash
13736 citeauthoryear{
13737 \family default
13738 \emph on
13739 author(s)
13740 \family typewriter
13741 \emph default
13742 }{
13743 \family default
13744 \emph on
13745 year
13746 \family typewriter
13747 \emph default
13748 }
13749 \family default
13750 .
13751 \end_layout
13752
13753 \begin_layout Standard
13754 The 
13755 \family typewriter
13756 kluwer.lyx
13757 \family default
13758  template takes care of all these 
13759 \begin_inset Quotes eld
13760 \end_inset
13761
13762 peculiarities
13763 \begin_inset Quotes erd
13764 \end_inset
13765
13766 .
13767  If you start a new paper using this template you don't need to do anything
13768  special.
13769  Just 
13770 \end_layout
13771
13772 \begin_layout Enumerate
13773 don't delete the \SpecialChar TeX
13774  code included in the template, and
13775 \end_layout
13776
13777 \begin_layout Enumerate
13778 copy the example bibliography item included in the template and modify it
13779  as necessary to enter new bibliography items.
13780 \end_layout
13781
13782 \begin_layout Section
13783 Koma-Script
13784 \end_layout
13785
13786 \begin_layout Standard
13787 by 
13788 \noun on
13789 Bernd Rellermeyer
13790 \end_layout
13791
13792 \begin_layout Subsection
13793 Overview
13794 \end_layout
13795
13796 \begin_layout Standard
13797 The \SpecialChar LyX
13798  document classes 
13799 \emph on
13800 article (koma-script)
13801 \emph default
13802
13803 \emph on
13804 report (koma-script)
13805 \emph default
13806
13807 \emph on
13808 book
13809 \emph default
13810  
13811 \emph on
13812 (koma-script)
13813 \emph default
13814 , and 
13815 \emph on
13816 letter
13817 \emph default
13818  
13819 \emph on
13820 (koma-script)
13821 \emph default
13822  correspond to the \SpecialChar LaTeX
13823  document classes 
13824 \family typewriter
13825 scrartcl.cls
13826 \family default
13827
13828 \family typewriter
13829 scrreprt.cls
13830 \family default
13831
13832 \family typewriter
13833 scrbook.cls
13834 \family default
13835 , and 
13836 \family typewriter
13837 scrlettr.cls
13838 \family default
13839 , resp.
13840 \begin_inset space ~
13841 \end_inset
13842
13843 of the Koma-Script family.
13844  They are replacements for the standard document classes 
13845 \family typewriter
13846 article.cls
13847 \family default
13848
13849 \family typewriter
13850 report.cls
13851 \family default
13852
13853 \family typewriter
13854 book.cls
13855 \family default
13856  and 
13857 \family typewriter
13858 letter.cls
13859 \family default
13860 , resp., and fit better to European typography conventions in a number of
13861  points.
13862 \end_layout
13863
13864 \begin_layout Itemize
13865 Standard character size is 11pt in 
13866 \emph on
13867 article (koma-script)
13868 \emph default
13869
13870 \emph on
13871 report (koma-script)
13872 \emph default
13873 , and 
13874 \emph on
13875 book (koma-script)
13876 \emph default
13877 , and 12pt in 
13878 \emph on
13879 letter (koma-script)
13880 \emph default
13881 .
13882 \end_layout
13883
13884 \begin_layout Itemize
13885 Headings, labels of the description environment, and a number of elements
13886  of the 
13887 \emph on
13888 letter (koma-script)
13889 \emph default
13890  document class are set in a bold sans serif font.
13891 \begin_inset Foot
13892 status collapsed
13893
13894 \begin_layout Plain Layout
13895 There is a big difference between the bold sans serif old cm fonts and new
13896  ec fonts, especially in the appearance of headings.
13897  In comparison, the ec bold sans serif fonts look a bit thin.
13898  Here the \SpecialChar LaTeX
13899  package 
13900 \family typewriter
13901 cmsd.sty by
13902 \family default
13903  
13904 \shape smallcaps
13905 Walter Schmidt
13906 \shape default
13907  helps to produce the 
13908 \begin_inset Quotes eld
13909 \end_inset
13910
13911 usual
13912 \begin_inset Quotes erd
13913 \end_inset
13914
13915  appearance when using the ec fonts.
13916 \end_layout
13917
13918 \end_inset
13919
13920  The numbering of chapter headings is made in the same way as the numbering
13921  of section headings, that is without the extra line 
13922 \begin_inset Quotes eld
13923 \end_inset
13924
13925 Chapter\SpecialChar ldots
13926
13927 \begin_inset Quotes erd
13928 \end_inset
13929
13930 .
13931  In addition, the appearance of the headings can be modified by using a
13932  number of options (in \SpecialChar LyX
13933  to be entered in the field 
13934 \family sans
13935 Extra
13936 \begin_inset space ~
13937 \end_inset
13938
13939 Options
13940 \family default
13941  of the dialog 
13942 \family sans
13943 Layout\SpecialChar menuseparator
13944 Document
13945 \family default
13946 ).
13947  
13948 \end_layout
13949
13950 \begin_layout Itemize
13951 The main means in the Koma-Script document classes to design the type area
13952  are the options 
13953 \family sans
13954 BCOR
13955 \family default
13956  and 
13957 \family sans
13958 DIV
13959 \family default
13960  (in \SpecialChar LyX
13961  to be entered in the extra class options field in the dialog 
13962 \family sans
13963 Document\SpecialChar menuseparator
13964 Settings
13965 \family default
13966 ).
13967  They make a clearer modification of page margins possible as do the options
13968  of the dialog 
13969 \family sans
13970 Document\SpecialChar menuseparator
13971 Settings
13972 \family default
13973 .
13974  
13975 \end_layout
13976
13977 \begin_layout Itemize
13978 The \SpecialChar LaTeX
13979  document classes of the Koma-Script family define a number of additional
13980  commands.
13981  Those part of it which makes sense in \SpecialChar LyX
13982  is implemented in corresponding
13983  paragraph types.
13984 \end_layout
13985
13986 \begin_layout Standard
13987 Detailed descriptions of the \SpecialChar LaTeX
13988  document classes of the Koma-Script family
13989  can be found in the Koma-Script documentation 
13990 \emph on
13991 scrguide
13992 \emph default
13993  (German) and 
13994 \emph on
13995 scrguien
13996 \emph default
13997  (English).
13998 \end_layout
13999
14000 \begin_layout Subsection
14001 article (koma-script), report (koma-script), and book (koma-script)
14002 \end_layout
14003
14004 \begin_layout Standard
14005 The document classes 
14006 \emph on
14007 article (koma-script)
14008 \emph default
14009
14010 \emph on
14011 report (koma-script)
14012 \emph default
14013 , and 
14014 \emph on
14015 book
14016 \emph default
14017  
14018 \emph on
14019 (koma-script)
14020 \emph default
14021  are implemented in the layout files 
14022 \family typewriter
14023 scrartcl.layout
14024 \family default
14025
14026 \family typewriter
14027 scrreprt.layout
14028 \family default
14029 , and 
14030 \family typewriter
14031 scrbook.layout
14032 \family default
14033 , resp.
14034  They contain all the paragraph types of the corresponding standard document
14035  classes 
14036 \emph on
14037 article
14038 \emph default
14039
14040 \emph on
14041 report
14042 \emph default
14043 , and 
14044 \emph on
14045 book
14046 \emph default
14047 , resp., partly modified, with the exception of the \SpecialChar LyX
14048  specific 
14049 \family sans
14050 List
14051 \family default
14052 -type, which is replaced by the new 
14053 \family sans
14054 Labeling
14055 \family default
14056 -type having the same functionality.
14057  Beside the 
14058 \family sans
14059 Labeling
14060 \family default
14061 -Type there is a number of new paragraph types added.
14062  They are 
14063 \emph on
14064 not
14065 \emph default
14066  part of 
14067 \emph on
14068 letter (koma-script)
14069 \emph default
14070 .
14071 \end_layout
14072
14073 \begin_layout Itemize
14074
14075 \family sans
14076 Addpart, Addchap
14077 \family default
14078
14079 \family sans
14080 Addsec
14081 \family default
14082 : are equivalents to 
14083 \family sans
14084 Part*, Chapter*
14085 \family default
14086  and 
14087 \family sans
14088 Section*
14089 \family default
14090 , resp., additionally inserting an entry in the table of contents.
14091  
14092 \family sans
14093 Addpart
14094 \family default
14095  and 
14096 \family sans
14097 Addchap
14098 \family default
14099  are not contained in 
14100 \emph on
14101 article (koma-script)
14102 \emph default
14103 .
14104 \end_layout
14105
14106 \begin_layout Itemize
14107
14108 \family sans
14109 Addchap*
14110 \family default
14111
14112 \family sans
14113 Addsec*
14114 \family default
14115 : behave exactly as 
14116 \family sans
14117 Addchap
14118 \family default
14119  and 
14120 \family sans
14121 Addsec
14122 \family default
14123 , resp., additionally clearing running heads.
14124  
14125 \family sans
14126 Addchap*
14127 \family default
14128  is not contained in 
14129 \emph on
14130 article (koma-script)
14131 \emph default
14132 .
14133 \begin_inset Foot
14134 status collapsed
14135
14136 \begin_layout Plain Layout
14137 There is also an 
14138 \family typewriter
14139
14140 \backslash
14141 addpart*
14142 \family default
14143  command in 
14144 \emph on
14145 book (koma-script)
14146 \emph default
14147  and in 
14148 \emph on
14149 report (koma-script)
14150 \emph default
14151 , but since this is identical to 
14152 \family sans
14153 Part*
14154 \family default
14155 , is has not been implemented in \SpecialChar LyX
14156 .
14157 \end_layout
14158
14159 \end_inset
14160
14161
14162 \end_layout
14163
14164 \begin_layout Itemize
14165
14166 \family sans
14167 Minisec
14168 \family default
14169 : generates a heading directly above the following paragraph in the standard
14170  character size without affecting the structure of the document.
14171 \end_layout
14172
14173 \begin_layout Itemize
14174
14175 \family sans
14176 Captionabove
14177 \family default
14178  and 
14179 \family sans
14180 Captionbelow
14181 \family default
14182  are special captions which respect the different space settings needed
14183  for captions placed above or below an element (if you follow strict typographic
14184  rules, you might want to place table captions always above the table).
14185  You can also use the class option 
14186 \family typewriter
14187 tablecaptionsabove
14188 \family default
14189 , which will switch 
14190 \family sans
14191 caption
14192 \family default
14193  to 
14194 \family sans
14195 captionabove
14196 \family default
14197  for tables and 
14198 \family sans
14199 captionbelow
14200 \family default
14201  for figures.
14202  You need at least Koma-Script version 2.8q to use this.
14203 \end_layout
14204
14205 \begin_layout Itemize
14206
14207 \family sans
14208 Dictum
14209 \family default
14210 : can be used to set a bonmot, e.
14211 \begin_inset space \thinspace{}
14212 \end_inset
14213
14214 g.
14215 \begin_inset space \space{}
14216 \end_inset
14217
14218 at the beginning of a chapter.
14219  If you use the optional argument (
14220 \family sans
14221 Insert\SpecialChar menuseparator
14222 Dictum
14223 \begin_inset space ~
14224 \end_inset
14225
14226 Author
14227 \family default
14228 ), you can insert the dictum's author there.
14229  Dictum and author are separated by a line.
14230  You need at least Koma-Script version 2.8q to use this.
14231  
14232 \family sans
14233 Dictum
14234 \family default
14235  is not contained in 
14236 \emph on
14237 article (koma-script)
14238 \emph default
14239 .
14240 \end_layout
14241
14242 \begin_layout Standard
14243 The following types, together with the standard types 
14244 \family sans
14245 Title
14246 \family default
14247
14248 \family sans
14249 Author
14250 \family default
14251 , and 
14252 \family sans
14253 Date
14254 \family default
14255 , form the title area of the document.
14256  They must be entered ahead of the first 
14257 \begin_inset Quotes eld
14258 \end_inset
14259
14260 ordinary
14261 \begin_inset Quotes erd
14262 \end_inset
14263
14264  paragraph.
14265 \begin_inset Foot
14266 status collapsed
14267
14268 \begin_layout Plain Layout
14269 The corresponding \SpecialChar LaTeX
14270  commands must appear before the 
14271 \family typewriter
14272
14273 \backslash
14274 maketitle
14275 \family default
14276  command.
14277 \end_layout
14278
14279 \end_inset
14280
14281  When such a type is used more than once, the latter usage overwrites the
14282  former one, that means, for every type only the latest usage is valid.
14283  The order of the different types however has, like 
14284 \family sans
14285 Title
14286 \family default
14287
14288 \family sans
14289 Author
14290 \family default
14291 , and 
14292 \family sans
14293 Date
14294 \family default
14295 , no effect on the appearance of the produced document.
14296 \end_layout
14297
14298 \begin_layout Itemize
14299
14300 \family sans
14301 Subject
14302 \family default
14303 : produces a centered paragraph above the ordinary title (
14304 \family sans
14305 Title
14306 \family default
14307
14308 \family sans
14309 Author
14310 \family default
14311
14312 \family sans
14313 Date
14314 \family default
14315 ) for the subject of the document.
14316 \end_layout
14317
14318 \begin_layout Itemize
14319
14320 \family sans
14321 Publishers
14322 \family default
14323 : produces a centered paragraph below the ordinary title (
14324 \family sans
14325 Title
14326 \family default
14327
14328 \family sans
14329 Author
14330 \family default
14331
14332 \family sans
14333 Date
14334 \family default
14335 ) for the publishers' name.
14336 \end_layout
14337
14338 \begin_layout Itemize
14339
14340 \family sans
14341 Dedication
14342 \family default
14343 : in 
14344 \emph on
14345 report (koma-script)
14346 \emph default
14347  and 
14348 \emph on
14349 book (koma-script)
14350 \emph default
14351  produces a centered paragraph on its own page behind the title page, or
14352  in 
14353 \emph on
14354 article (koma-script)
14355 \emph default
14356  produces a centered paragraph below the ordinary title (
14357 \family sans
14358 Title
14359 \family default
14360
14361 \family sans
14362 Author
14363 \family default
14364
14365 \family sans
14366 Date
14367 \family default
14368
14369 \family sans
14370 Publishers
14371 \family default
14372 ) for a dedication.
14373 \end_layout
14374
14375 \begin_layout Itemize
14376
14377 \family sans
14378 Titlehead
14379 \family default
14380 : produces a left aligned paragraph above the ordinary title (
14381 \family sans
14382 Title
14383 \family default
14384
14385 \family sans
14386 Author
14387 \family default
14388
14389 \family sans
14390 Date
14391 \family default
14392
14393 \family sans
14394 Subject
14395 \family default
14396 ) for a document`s head.
14397 \end_layout
14398
14399 \begin_layout Itemize
14400
14401 \family sans
14402 Uppertitleback
14403 \family default
14404 : produces in a double-sided print in 
14405 \emph on
14406 report (koma-script)
14407 \emph default
14408  and 
14409 \emph on
14410 book (koma-script)
14411 \emph default
14412  a left-aligned paragraph at the top of the title page`s back or has no
14413  effect in a single-sided print or in 
14414 \emph on
14415 article (koma-script)
14416 \emph default
14417 .
14418 \end_layout
14419
14420 \begin_layout Itemize
14421
14422 \family sans
14423 Lowertitleback
14424 \family default
14425 : produces in a double-sided print in 
14426 \emph on
14427 report (koma-script)
14428 \emph default
14429  and 
14430 \emph on
14431 book (koma-script)
14432 \emph default
14433  a left-aligned paragraph at the bottom of the title page`s back or has
14434  no effect in a single-sided print or in 
14435 \emph on
14436 article (koma-script)
14437 \emph default
14438 .
14439 \end_layout
14440
14441 \begin_layout Itemize
14442
14443 \family sans
14444 Extratitle
14445 \family default
14446 : produces a special 
14447 \begin_inset Quotes eld
14448 \end_inset
14449
14450 dirty
14451 \begin_inset Quotes erd
14452 \end_inset
14453
14454  page ahead of the actual document containing a paragraph without special
14455  formatting.
14456 \end_layout
14457
14458 \begin_layout Standard
14459 The layout files for the document classes 
14460 \emph on
14461 article (koma-script)
14462 \emph default
14463
14464 \emph on
14465 report (koma-script)
14466 \emph default
14467 , and 
14468 \emph on
14469 book (koma-script)
14470 \emph default
14471  do include the file 
14472 \family typewriter
14473 scrmacros.inc
14474 \family default
14475 .
14476  This is thought of as a place to define your own types.
14477  Copy scrmacros
14478 \family typewriter
14479 .inc
14480 \family default
14481  in your personal layout directory and edit the file!
14482 \end_layout
14483
14484 \begin_layout Subsection
14485 letter (koma-script)
14486 \end_layout
14487
14488 \begin_layout Description
14489 Note: This section discusses the obsolete 
14490 \family sans
14491 KOMA-Script-Letter (v.
14492 \begin_inset space ~
14493 \end_inset
14494
14495 1)
14496 \family default
14497 , which is not even included anymore in recent KOMA releases.
14498  Please refer to the next section for the current KOMA-Script-Letter class
14499  (v.
14500 \begin_inset space ~
14501 \end_inset
14502
14503 2)!
14504 \end_layout
14505
14506 \begin_layout Standard
14507 \noindent
14508 The document class 
14509 \emph on
14510 letter (koma-script)
14511 \emph default
14512  is implemented in the layout file 
14513 \family typewriter
14514 scrlettr.layout
14515 \family default
14516 .
14517  It contains all the paragraph types of the corresponding standard document
14518  class 
14519 \emph on
14520 letter
14521 \emph default
14522 , partly modified, with the exception of the \SpecialChar LyX
14523  specific types 
14524 \family sans
14525 \SpecialChar LyX
14526 -Code
14527 \family default
14528  and 
14529 \family sans
14530 Comment
14531 \family default
14532  and the 
14533 \family sans
14534 List
14535 \family default
14536  type, which is replaced by the new 
14537 \family sans
14538 Labeling
14539 \family default
14540  type.
14541  In addition, it contains, in contrast to the standard document class, the
14542  standard types 
14543 \family sans
14544 \SpecialChar LaTeX
14545
14546 \family default
14547
14548 \family sans
14549 Quotation
14550 \family default
14551
14552 \family sans
14553 Quote
14554 \family default
14555 , and 
14556 \family sans
14557 Verse
14558 \family default
14559 .
14560  Furthermore, there are a number of new letter specific types.
14561 \end_layout
14562
14563 \begin_layout Standard
14564 The appearance of the letter produced by this document class can be controlled
14565  by a number of \SpecialChar LaTeX
14566  commands, which you can put in the \SpecialChar LaTeX
14567  preamble.
14568 \begin_inset Foot
14569 status collapsed
14570
14571 \begin_layout Plain Layout
14572 For example, the standard appearance of the letter`s heading, consisting
14573  of name and address, is quite self-willed.
14574  An 
14575 \begin_inset Quotes eld
14576 \end_inset
14577
14578 ordinary
14579 \begin_inset Quotes erd
14580 \end_inset
14581
14582  heading is produced by the following \SpecialChar LaTeX
14583  commands in the preamble:
14584 \end_layout
14585
14586 \begin_layout LyX-Code
14587
14588 \backslash
14589 firsthead{
14590 \backslash
14591 parbox[b]{
14592 \backslash
14593 textwidth}
14594 \end_layout
14595
14596 \begin_layout LyX-Code
14597   {
14598 \backslash
14599 ignorespaces 
14600 \backslash
14601 fromname
14602 \backslash
14603
14604 \backslash
14605  
14606 \backslash
14607 ignorespaces 
14608 \backslash
14609 fromaddress}} 
14610 \end_layout
14611
14612 \begin_layout LyX-Code
14613
14614 \backslash
14615 nexthead{
14616 \backslash
14617 parbox[b]{
14618 \backslash
14619 textwidth}
14620 \end_layout
14621
14622 \begin_layout LyX-Code
14623   {
14624 \backslash
14625 ignorespaces 
14626 \backslash
14627 fromname 
14628 \backslash
14629 hfill 
14630 \backslash
14631 ignorespaces 
14632 \backslash
14633 pagename
14634 \backslash
14635  
14636 \backslash
14637 thepage}}
14638 \end_layout
14639
14640 \end_inset
14641
14642  A detailed German description of such \SpecialChar LaTeX
14643  commands can be found in the Koma-Script
14644  documentation 
14645 \emph on
14646 scrguide
14647 \emph default
14648 .
14649  With it, the letter's author can produce his personal letter layout.
14650 \end_layout
14651
14652 \begin_layout Standard
14653 The types 
14654 \family sans
14655 Letter
14656 \family default
14657  and 
14658 \family sans
14659 Opening
14660 \family default
14661  define the beginning of the letter and must be used in every letter.
14662  To emphasize them in the \SpecialChar LyX
14663  document class, they are marked with the letter
14664  
14665 \shape italic
14666 L
14667 \shape default
14668  or 
14669 \shape italic
14670 O
14671 \shape default
14672 , resp.
14673 \begin_inset space ~
14674 \end_inset
14675
14676 in the left margin.
14677  It is possible to write any number of letters in one file.
14678  An 
14679 \family sans
14680 Opening
14681 \family default
14682  type produces a new letter using the same addressee and a 
14683 \family sans
14684 Letter
14685 \family default
14686  type produces a new addressee.
14687  The types 
14688 \family sans
14689 Closing
14690 \family default
14691
14692 \family sans
14693 PS
14694 \family default
14695
14696 \family sans
14697 CC
14698 \family default
14699 , and 
14700 \family sans
14701 Encl
14702 \family default
14703  are ordinary paragraph types and can also be used several times in one
14704  and the same letter.
14705 \end_layout
14706
14707 \begin_layout Itemize
14708
14709 \family sans
14710 Letter
14711 \family default
14712 : produces a paragraph for the addressee and implicitly defines the beginning
14713  of the letter.
14714 \end_layout
14715
14716 \begin_layout Itemize
14717
14718 \family sans
14719 Opening
14720 \family default
14721 : produces a paragraph for the form of address and implicitly produces a
14722  new letter.
14723 \end_layout
14724
14725 \begin_layout Itemize
14726
14727 \family sans
14728 Closing
14729 \family default
14730 : produces a paragraph for a close.
14731 \end_layout
14732
14733 \begin_layout Itemize
14734
14735 \family sans
14736 PS
14737 \family default
14738 : produces a paragraph for a postscript.
14739 \end_layout
14740
14741 \begin_layout Itemize
14742
14743 \family sans
14744 CC
14745 \family default
14746 : produces a paragraph for a distribution list.
14747 \end_layout
14748
14749 \begin_layout Itemize
14750
14751 \family sans
14752 Encl
14753 \family default
14754 : produces a paragraph for enclosures.
14755 \end_layout
14756
14757 \begin_layout Standard
14758 The types 
14759 \family sans
14760 Name
14761 \family default
14762
14763 \family sans
14764 Signature
14765 \family default
14766
14767 \family sans
14768 Address
14769 \family default
14770
14771 \family sans
14772 Telephone
14773 \family default
14774
14775 \family sans
14776 Place
14777 \family default
14778
14779 \family sans
14780 Backaddress
14781 \family default
14782
14783 \family sans
14784 Specialmail
14785 \family default
14786
14787 \family sans
14788 Location
14789 \family default
14790
14791 \family sans
14792 Title
14793 \family default
14794 , and 
14795 \family sans
14796 Subject
14797 \family default
14798  are input types provided with a label to enter information, which will
14799  be processed by the document class.
14800 \begin_inset Foot
14801 status collapsed
14802
14803 \begin_layout Plain Layout
14804 It could be seen as a matter of inconsequence, that the types 
14805 \family sans
14806 Letter
14807 \family default
14808  and 
14809 \family sans
14810 Opening
14811 \family default
14812  described above are not such input types as well.
14813  Because of the special meaning of those types, however, I have implemented
14814  them as ordinary paragraph types with a one letter mark in the left margin.
14815  Moreover, it would affect my feeling of symmetry, if the 
14816 \family sans
14817 Opening
14818 \family default
14819  type and the 
14820 \family sans
14821 Closing
14822 \family default
14823  type had such a serious different appearance.
14824 \end_layout
14825
14826 \end_inset
14827
14828  The types must be used ahead of the corresponding 
14829 \family sans
14830 Opening
14831 \family default
14832  type.
14833 \end_layout
14834
14835 \begin_layout Standard
14836 An implementation of these types in a WYSIWYG fashion does not seem to make
14837  sense, because the real appearance of the produced letter does not only
14838  depend on the usage of the particular type, but also on other factors.
14839  For example, a signature entered in the 
14840 \family sans
14841 Signature
14842 \family default
14843  type will in the standard behavior appear in the produced letter only,
14844  when in the same letter also a 
14845 \family sans
14846 Closing
14847 \family default
14848  type is used.
14849  The entered value of the 
14850 \family sans
14851 Telephone
14852 \family default
14853  type will in the standard behavior not appear in the produced letter at
14854  all.
14855  The possibility to design the letter`s heading freely is already indicated
14856  in a footnote above.
14857 \end_layout
14858
14859 \begin_layout Standard
14860 The input types can also be used as empty paragraphs.
14861  This makes sense e.
14862 \begin_inset space \thinspace{}
14863 \end_inset
14864
14865 g.
14866 \begin_inset space \space{}
14867 \end_inset
14868
14869 for the 
14870 \family sans
14871 Signature
14872 \family default
14873  type.
14874  If the 
14875 \family sans
14876 Signature
14877 \family default
14878  type is not used at all, in the standard behavior the value of the 
14879 \family sans
14880 Name
14881 \family default
14882  type is used as signature, whereas if an empty 
14883 \family sans
14884 Signature
14885 \family default
14886  type is used, no signature value is defined.
14887 \end_layout
14888
14889 \begin_layout Standard
14890 By using the input types it is possible to write a letter template, containing
14891  filled input types with your personal dates (name, address, etc.) and empty
14892  input types for other dates you want to enter.
14893 \end_layout
14894
14895 \begin_layout Itemize
14896
14897 \family sans
14898 Name
14899 \family default
14900 : sender's name, in the standard behavior appears as a centered paragraph
14901  in small caps in the letter`s heading.
14902 \end_layout
14903
14904 \begin_layout Itemize
14905
14906 \family sans
14907 Signature
14908 \family default
14909 : sender's signature, in the standard behavior appears below the 
14910 \family sans
14911 Closing
14912 \family default
14913  type.
14914  If no 
14915 \family sans
14916 Signature
14917 \family default
14918  type is used, the value of the 
14919 \family sans
14920 Name
14921 \family default
14922  type appears instead.
14923 \end_layout
14924
14925 \begin_layout Itemize
14926
14927 \family sans
14928 Address
14929 \family default
14930 : sender's address, in the standard behavior appears in a centered paragraph
14931  in the letter`s heading below the sender's name.
14932 \end_layout
14933
14934 \begin_layout Itemize
14935
14936 \family sans
14937 Telephone
14938 \family default
14939 : sender's telephone number, in the standard behavior only sets the \SpecialChar LaTeX
14940  variable
14941  
14942 \family typewriter
14943
14944 \backslash
14945 telephonenum
14946 \family default
14947 .
14948 \end_layout
14949
14950 \begin_layout Itemize
14951
14952 \family sans
14953 Place
14954 \family default
14955 : place of the letter`s making.
14956 \end_layout
14957
14958 \begin_layout Itemize
14959
14960 \family sans
14961 Date
14962 \family default
14963 : date of the letter`s making.
14964  
14965 \family sans
14966 Place
14967 \family default
14968  and 
14969 \family sans
14970 Date
14971 \family default
14972 , in the standard behavior, produce the place and the date in a right-aligned
14973  line below the addressee's field.
14974  If an empty 
14975 \family sans
14976 Date
14977 \family default
14978  type is used, neither place nor date appear, independent of the value of
14979  the 
14980 \family sans
14981 Place
14982 \family default
14983  type.
14984  If no 
14985 \family sans
14986 Date
14987 \family default
14988  type is used, the date of the letter `s production is used.
14989 \end_layout
14990
14991 \begin_layout Itemize
14992
14993 \family sans
14994 Backaddress
14995 \family default
14996 : sender`s back address, in the standard behavior appears above the addressee's
14997  field in a small sans serif font.
14998 \end_layout
14999
15000 \begin_layout Itemize
15001
15002 \family sans
15003 Specialmail
15004 \family default
15005 : special mail information, in the standard behavior appears underlined
15006  above the addressee's field below the back address.
15007 \end_layout
15008
15009 \begin_layout Itemize
15010
15011 \family sans
15012 Location
15013 \family default
15014 : additional information, in the standard behavior appears on right side
15015  below the addressee`s field.
15016 \end_layout
15017
15018 \begin_layout Itemize
15019
15020 \family sans
15021 Title
15022 \family default
15023 : the letter's title, in the standard behavior appears in a big, bold, sans
15024  serif font above the subject.
15025 \end_layout
15026
15027 \begin_layout Itemize
15028
15029 \family sans
15030 Subject
15031 \family default
15032 : the letter's subject, in the standard behavior appears in a bold font
15033  above the 
15034 \family sans
15035 Opening
15036 \family default
15037  paragraph.
15038 \end_layout
15039
15040 \begin_layout Standard
15041 The types 
15042 \family sans
15043 Yourref
15044 \family default
15045
15046 \family sans
15047 Yourmail
15048 \family default
15049
15050 \family sans
15051 Myref
15052 \family default
15053
15054 \family sans
15055 Customer
15056 \family default
15057 , and 
15058 \family sans
15059 Invoice
15060 \family default
15061  produce a business letter like line above the 
15062 \family sans
15063 Title
15064 \family default
15065  line containing the fields 
15066 \begin_inset Quotes eld
15067 \end_inset
15068
15069 Your ref.
15070 \begin_inset Quotes erd
15071 \end_inset
15072
15073
15074 \begin_inset Quotes eld
15075 \end_inset
15076
15077 Your letter of
15078 \begin_inset Quotes erd
15079 \end_inset
15080
15081
15082 \begin_inset Quotes eld
15083 \end_inset
15084
15085 Our ref.
15086 \begin_inset Quotes erd
15087 \end_inset
15088
15089
15090 \begin_inset Quotes eld
15091 \end_inset
15092
15093 Customer no.
15094 \begin_inset Quotes erd
15095 \end_inset
15096
15097
15098 \begin_inset Quotes eld
15099 \end_inset
15100
15101 Invoice no.
15102 \begin_inset Quotes erd
15103 \end_inset
15104
15105 , and 
15106 \begin_inset Quotes eld
15107 \end_inset
15108
15109 Date
15110 \begin_inset Quotes erd
15111 \end_inset
15112
15113 .
15114  For the date field, the value of the 
15115 \family sans
15116 Date
15117 \family default
15118  type is used.
15119  If one of these 
15120 \begin_inset Quotes eld
15121 \end_inset
15122
15123 business letter types
15124 \begin_inset Quotes erd
15125 \end_inset
15126
15127  is used, the value of the 
15128 \family sans
15129 Place
15130 \family default
15131  type however does not appear, but only the \SpecialChar LaTeX
15132  variable 
15133 \family typewriter
15134
15135 \backslash
15136 fromplace
15137 \family default
15138  is set.
15139  The ordinary output of place and date in a right-aligned line below the
15140  addressee`s field is suppressed.
15141  The types are implemented as input types provided with a label and must
15142  be used ahead of the corresponding 
15143 \family sans
15144 Opening
15145 \family default
15146  type.
15147 \end_layout
15148
15149 \begin_layout Itemize
15150
15151 \family sans
15152 Yourref
15153 \family default
15154 : Your ref.
15155 \end_layout
15156
15157 \begin_layout Itemize
15158
15159 \family sans
15160 Yourmail
15161 \family default
15162 : Your letter of.
15163 \end_layout
15164
15165 \begin_layout Itemize
15166
15167 \family sans
15168 Myref
15169 \family default
15170 : Our ref.
15171 \end_layout
15172
15173 \begin_layout Itemize
15174
15175 \family sans
15176 Customer
15177 \family default
15178 : Customer no.
15179 \end_layout
15180
15181 \begin_layout Itemize
15182
15183 \family sans
15184 Invoice
15185 \family default
15186 : Invoice no.
15187 \end_layout
15188
15189 \begin_layout Subsection
15190 The new letter class: letter (koma-script v.2)
15191 \end_layout
15192
15193 \begin_layout Standard
15194 by 
15195 \noun on
15196 Jürgen Spitzmüller
15197 \end_layout
15198
15199 \begin_layout Standard
15200 \begin_inset VSpace medskip
15201 \end_inset
15202
15203
15204 \end_layout
15205
15206 \begin_layout Standard
15207 \noindent
15208 Koma-Script version 2.8 has introduced a new letter class 
15209 \family typewriter
15210 scrlttr2
15211 \family default
15212  which supersedes the now unsupported 
15213 \family typewriter
15214 scrlettr
15215 \family default
15216 .
15217  It has — on the \SpecialChar LaTeX
15218  side — a completely new interface and is not compatible
15219  with the old class.
15220  Therefore, \SpecialChar LyX
15221  supports both, though it is recommended you use the new class.
15222 \end_layout
15223
15224 \begin_layout Standard
15225 This class covers the same functionality as 
15226 \emph on
15227 letter (koma-script),
15228 \emph default
15229  and a few more.
15230  The basic items are 
15231 \family sans
15232 Address
15233 \family default
15234  (receiver's address, same as 
15235 \family sans
15236 Letter
15237 \family default
15238  in the old layout), 
15239 \family sans
15240 Opening
15241 \family default
15242 , and 
15243 \family sans
15244 Closing
15245 \family default
15246 .
15247  
15248 \family sans
15249 NextAddress
15250 \family default
15251  will start a new letter (i.
15252 \begin_inset space \thinspace{}
15253 \end_inset
15254
15255 e.
15256 \begin_inset space \space{}
15257 \end_inset
15258
15259 you can write several letters per document).
15260  New elements are sender's 
15261 \family sans
15262 E-Mail
15263 \family default
15264
15265 \family sans
15266 URL
15267 \family default
15268
15269 \family sans
15270 Fax
15271 \family default
15272
15273 \family sans
15274 Bank
15275 \family default
15276  and the possibility to use a 
15277 \family sans
15278 Logo
15279 \family default
15280  (via 
15281 \family sans
15282 Insert\SpecialChar menuseparator
15283 Graphics
15284 \family default
15285 ) in the header.
15286 \end_layout
15287
15288 \begin_layout Standard
15289 The biggest improvement is, though, that the letter's layout is configurable
15290  to meet almost any needs.
15291  This can be done via the preamble or with a special style file (Letter
15292  Class Option, extension 
15293 \family typewriter
15294 *.lco
15295 \family default
15296 ), that will be read in as a class option.
15297 \begin_inset Foot
15298 status collapsed
15299
15300 \begin_layout Plain Layout
15301 The KOMA package comes with some default 
15302 \family typewriter
15303 *.lco
15304 \family default
15305  files.
15306  There is, for instance, a 
15307 \family typewriter
15308 DIN.lco
15309 \family default
15310  file that follows german typesetting rules, or a 
15311 \family typewriter
15312 KOMAold.lco
15313 \family default
15314  that provides the default layout of the old 
15315 \family typewriter
15316 scrlettr
15317 \family default
15318  class.
15319  The latter can be loaded with the class option 
15320 \family typewriter
15321 KOMAold
15322 \family default
15323 , inserted via the 
15324 \family sans
15325 Layout\SpecialChar menuseparator
15326 Document\SpecialChar menuseparator
15327 Extra Options
15328 \family default
15329  field.
15330 \end_layout
15331
15332 \end_inset
15333
15334  Have a look at the 
15335 \emph on
15336 koma-letter2
15337 \emph default
15338  template that is included in \SpecialChar LyX
15339  for examples.
15340  A detailed description is to be found in the Koma-Script documentation
15341  (
15342 \emph on
15343 scrguide
15344 \emph default
15345 ).
15346 \end_layout
15347
15348 \begin_layout Subsection
15349 Problems
15350 \end_layout
15351
15352 \begin_layout Standard
15353 Visualizing the Koma-Script document classes in \SpecialChar LyX
15354 , the \SpecialChar LyX
15355  internals cause some
15356  problems.
15357 \end_layout
15358
15359 \begin_layout Itemize
15360 The chapter number of a 
15361 \family sans
15362 Chapter
15363 \family default
15364  type appears on a line of its own above the chapter heading instead of
15365  appearing in the same line ahead of it.
15366  The cause for that is the \SpecialChar LyX
15367  internal behavior for the labeltype 
15368 \family sans
15369 Counter_Chapter
15370 \family default
15371  in the layout file.
15372 \end_layout
15373
15374 \begin_layout Itemize
15375 The headings of the types 
15376 \family sans
15377 Addchap
15378 \family default
15379  and 
15380 \family sans
15381 Addsec
15382 \family default
15383  are only put in the 
15384 \begin_inset Quotes eld
15385 \end_inset
15386
15387 true
15388 \begin_inset Quotes erd
15389 \end_inset
15390
15391  \SpecialChar LaTeX
15392  table of contents, but not in the \SpecialChar LyX
15393  table of contents (
15394 \family sans
15395 Document\SpecialChar menuseparator
15396 Table
15397 \begin_inset space ~
15398 \end_inset
15399
15400 of
15401 \begin_inset space ~
15402 \end_inset
15403
15404 Contents
15405 \family default
15406 ).
15407 \end_layout
15408
15409 \begin_layout Itemize
15410 The paragraphs in a 
15411 \emph on
15412 letter
15413 \emph default
15414  document class appear in a skip separation mode, not indented.
15415  This is the standard behavior, no special \SpecialChar LaTeX
15416  commands are needed for that.
15417  But in the 
15418 \family sans
15419 Document\SpecialChar menuseparator
15420 Settings
15421 \family default
15422  dialog the corresponding radio button indicates 
15423 \family sans
15424 Indent
15425 \family default
15426 .
15427  A 
15428 \family sans
15429 Skip
15430 \family default
15431  value always has the effect that extra \SpecialChar LaTeX
15432  commands are inserted in the document
15433  to produce the gap, which is not what is wanted in this case.
15434 \end_layout
15435
15436 \begin_layout Section
15437 Memoir
15438 \end_layout
15439
15440 \begin_layout Standard
15441 By 
15442 \noun on
15443 Jürgen Spitzmüller
15444 \end_layout
15445
15446 \begin_layout Subsection
15447 Overview
15448 \end_layout
15449
15450 \begin_layout Standard
15451 Memoir is a very powerful and constantly evolving class.
15452  It has been designed with regard to fictional and non-fictional literature.
15453  Its aim is to let the user have maximum control over the typesetting of
15454  his document.
15455  Memoir is based on the standard book class, but it can also emulate the
15456  article class (see below).
15457 \end_layout
15458
15459 \begin_layout Standard
15460 Peter Wilson, the developer of Memoir, is known as the author of lots of
15461  useful packages in the \SpecialChar LaTeX
15462  world.
15463  Most of them have been merged with Memoir.
15464  Therefore, it is much easier to layout the table of contents, appendices,
15465  chapter designs and such.
15466  \SpecialChar LyX
15467 , though, does not support all of these goodies natively.
15468  Some of them might be added to forthcoming releases
15469 \begin_inset Foot
15470 status collapsed
15471
15472 \begin_layout Plain Layout
15473 You are invited to send suggestions to 
15474 \begin_inset Flex URL
15475 status collapsed
15476
15477 \begin_layout Plain Layout
15478
15479 lyx-devel@lists.lyx.org
15480 \end_layout
15481
15482 \end_inset
15483
15484 .
15485 \end_layout
15486
15487 \end_inset
15488
15489 , lots will probably never be supported, due to the limitations of \SpecialChar LyX
15490 's framework.
15491  Of course you can still use all features with the help of some native \SpecialChar LaTeX
15492
15493  commands (\SpecialChar TeX
15494  code
15495 \begin_inset Foot
15496 status collapsed
15497
15498 \begin_layout Plain Layout
15499 Cf.
15500 \begin_inset ERT
15501 status collapsed
15502
15503 \begin_layout Plain Layout
15504
15505
15506 \backslash
15507  
15508 \end_layout
15509
15510 \end_inset
15511
15512 section
15513 \begin_inset space ~
15514 \end_inset
15515
15516
15517 \begin_inset CommandInset ref
15518 LatexCommand ref
15519 reference "sec:Inserting-TeX-Code"
15520
15521 \end_inset
15522
15523  for details.
15524 \end_layout
15525
15526 \end_inset
15527
15528 ).
15529  In this section, we can only list those features that are natively supported
15530  by \SpecialChar LyX
15531 .
15532  For detailed descriptions (and for the rest of features) we recommend you
15533  have a look at the detailed manual of the Memoir class
15534 \begin_inset Foot
15535 status collapsed
15536
15537 \begin_layout Plain Layout
15538 Cf.
15539 \begin_inset ERT
15540 status collapsed
15541
15542 \begin_layout Plain Layout
15543
15544
15545 \backslash
15546  
15547 \end_layout
15548
15549 \end_inset
15550
15551
15552 \begin_inset Flex URL
15553 status collapsed
15554
15555 \begin_layout Plain Layout
15556
15557 CTAN:/macros/latex/memoir/memman.pdf
15558 \end_layout
15559
15560 \end_inset
15561
15562 .
15563 \end_layout
15564
15565 \end_inset
15566
15567 , which is not only a user guide for the class, but also both a comprehensive
15568  description on good typesetting and a superb example for good typesetting
15569  itself.
15570 \end_layout
15571
15572 \begin_layout Subsection
15573 Basic features and restrictions
15574 \end_layout
15575
15576 \begin_layout Standard
15577 Memoir supports basically all features of the standard book classes.
15578  There are, however, some differences, as follows:
15579 \end_layout
15580
15581 \begin_layout Description
15582 Font
15583 \begin_inset space ~
15584 \end_inset
15585
15586 sizes: Memoir has a broader range of font sizes: 9, 10, 11, 12, 14, 17
15587 \end_layout
15588
15589 \begin_layout Description
15590 Page
15591 \begin_inset space ~
15592 \end_inset
15593
15594 style: The fancy page style is not supported, due to a command clash between
15595  Memoir and the fancyhdr package (they both define a command with the same
15596  name, which confuses \SpecialChar LaTeX
15597 ).
15598  Instead, Memoir comes with a number of its own page styles (see 
15599 \family sans
15600 Document\SpecialChar menuseparator
15601 Settings\SpecialChar menuseparator
15602 Page
15603 \begin_inset space ~
15604 \end_inset
15605
15606 Style
15607 \family default
15608 ).
15609  If you want to use these for the chapter pages, you have to use the command
15610  
15611 \family typewriter
15612
15613 \backslash
15614 chapterstyle
15615 \family default
15616  in the main text or in preamble (e.
15617 \begin_inset space \thinspace{}
15618 \end_inset
15619
15620 g.
15621 \begin_inset space \space{}
15622 \end_inset
15623
15624
15625 \family typewriter
15626
15627 \backslash
15628 chapterstyle{companion}
15629 \family default
15630 ).
15631 \end_layout
15632
15633 \begin_layout Description
15634 Sectioning: Sectionings (chapter, section, subsection etc.) come with an
15635  optional argument in the standard classes.
15636  With this, you can specify an alternative version of the title for the
15637  table of contents and the headers (for instance, if the title is too long).
15638  In \SpecialChar LyX
15639 , you can do this via 
15640 \family sans
15641 Insert\SpecialChar menuseparator
15642 Short
15643 \begin_inset space ~
15644 \end_inset
15645
15646 Title
15647 \family default
15648  at the beginning of a chapter/section.
15649  Memoir features a second optional argument and thus separates the table
15650  of contents from the header.
15651  You can define three variants of a title with this: one for the main text,
15652  one for the table of contents, and one for the headers.
15653  \SpecialChar LyX
15654  makes these available in form of specific 
15655 \family sans
15656 Short Title
15657 \family default
15658  variants in the 
15659 \family sans
15660 Insert
15661 \family default
15662  menu.
15663 \end_layout
15664
15665 \begin_layout Description
15666 TOC/LOT/LOF: In the standard classes (and in many other classes), the table
15667  of contents, the list of figures and the list of table start a new page
15668  automatically.
15669  Memoir does not follow this route.
15670  You have to insert a page break yourself, if you want to have one.
15671 \end_layout
15672
15673 \begin_layout Description
15674 Titlepage: For some unknown reason, Memoir uses pagination on the title
15675  page (in the standard classes, title pages are 
15676 \begin_inset Quotes eld
15677 \end_inset
15678
15679 empty
15680 \begin_inset Quotes erd
15681 \end_inset
15682
15683 ).
15684  If you want an empty title page, type 
15685 \family typewriter
15686
15687 \backslash
15688 aliaspagestyle{title}{empty}
15689 \family default
15690  in the preamble.
15691 \end_layout
15692
15693 \begin_layout Description
15694 Article: With the class option 
15695 \emph on
15696 article
15697 \emph default
15698  (to be inserted in 
15699 \family sans
15700 Document\SpecialChar menuseparator
15701 Settings\SpecialChar menuseparator
15702 Class Settings\SpecialChar menuseparator
15703 Custom
15704 \begin_inset space ~
15705 \end_inset
15706
15707 Options
15708 \family default
15709 ), you can emulate article style.
15710  That is, counters (footnotes, figures, tables etc.) will not be reset on
15711  new chapters, chapters don't start a new page (but are—in contrary to 
15712 \begin_inset Quotes eld
15713 \end_inset
15714
15715 real
15716 \begin_inset Quotes erd
15717 \end_inset
15718
15719  article classes—still allowed), parts, though, use their own page, as in
15720  book.
15721 \end_layout
15722
15723 \begin_layout Description
15724 Oldfontcommands: By default, Memoir does not allow the use of the deprecated
15725  font commands, which have been used in the old \SpecialChar LaTeX
15726  version 2.09 (e.
15727 \begin_inset space \thinspace{}
15728 \end_inset
15729
15730 g.
15731 \begin_inset space \space{}
15732 \end_inset
15733
15734
15735 \family typewriter
15736
15737 \backslash
15738 rm
15739 \family default
15740
15741 \family typewriter
15742
15743 \backslash
15744 it
15745 \family default
15746 ).
15747  It produces an error and stops \SpecialChar LaTeX
15748  whenever such a command appears.
15749  The class option 
15750 \emph on
15751 oldfontcommands
15752 \emph default
15753  reallows the commands and spits out warnings instead (which does at least
15754  not stop \SpecialChar LaTeX
15755 ).
15756  Since a lot of packages and particularly Bib\SpecialChar TeX
15757  style files are still using
15758  those commands, we have decided to use this option by default.
15759 \end_layout
15760
15761 \begin_layout Subsection
15762 Extra features
15763 \end_layout
15764
15765 \begin_layout Standard
15766 We will only describe the features supported by \SpecialChar LyX
15767  (which is not much currently).
15768  Please consult the Memoir manual
15769 \begin_inset Foot
15770 status collapsed
15771
15772 \begin_layout Plain Layout
15773 Cf.
15774 \begin_inset ERT
15775 status collapsed
15776
15777 \begin_layout Plain Layout
15778
15779
15780 \backslash
15781  
15782 \end_layout
15783
15784 \end_inset
15785
15786
15787 \begin_inset Flex URL
15788 status collapsed
15789
15790 \begin_layout Plain Layout
15791
15792 CTAN:/macros/latex/memoir/memman.pdf
15793 \end_layout
15794
15795 \end_inset
15796
15797 .
15798 \end_layout
15799
15800 \end_inset
15801
15802  for details.
15803 \end_layout
15804
15805 \begin_layout Description
15806 Abstract: You may wonder why an abstract is an extra feature.
15807  Well, it is in book class.
15808  Usually books don't have abstracts.
15809  Memoir, however, has.
15810  You can use it wherever and how often you like.
15811 \end_layout
15812
15813 \begin_layout Description
15814 Chapterprecis: You may know this older typesetting style: The contents of
15815  a chapter are summarized below the title and also in the table of contents
15816  (e.
15817 \begin_inset space \thinspace{}
15818 \end_inset
15819
15820 g.
15821 \begin_inset space \space{}
15822 \end_inset
15823
15824
15825 \emph on
15826 Our hero arrives in Troia; he loses some friends; he finds others
15827 \emph default
15828 ).
15829  Chapterprecis does exactly this.
15830  It is therefore only sensible below a chapter.
15831 \end_layout
15832
15833 \begin_layout Description
15834 Epigraph: An epigraph is a smart slogan or motto at the beginning of a chapter.
15835  The epigraph environment provides an elegant way of typesetting such a
15836  motto.
15837  The motto itself (text) and its (optional) author (source) are divided
15838  by a short line.
15839  The author (source) can be inserted via 
15840 \family sans
15841 Insert\SpecialChar menuseparator
15842 Epigraph Source
15843 \family default
15844 \emph on
15845 .
15846 \end_layout
15847
15848 \begin_layout Description
15849 Poemtitle: Memoir has lots of possibilities to typeset poetry (up to very
15850  complex figurative poems).
15851  \SpecialChar LyX
15852  can only support a few of them.
15853  One is poemtitle, which is a centered title for poems, which will also
15854  be added to the table of contents (verse is the standard environment for
15855  poems.
15856  Memoir has some enhanced versions of verse, but you need to use \SpecialChar TeX
15857  code,
15858  because they have to be nested inside regular verse environments, which
15859  is not possible with \SpecialChar LyX
15860 ).
15861 \end_layout
15862
15863 \begin_layout Description
15864 Poemtitle*: Same as poemtitle, but it adds no entry to the table of contents.
15865 \end_layout
15866
15867 \begin_layout Section
15868 Article (mwart), book (mwbk) and report (mwrep)
15869 \begin_inset Argument status
15870 status collapsed
15871
15872 \begin_layout Plain Layout
15873 The 
15874 \family typewriter
15875 mw
15876 \family default
15877  Classes
15878 \end_layout
15879
15880 \end_inset
15881
15882
15883 \end_layout
15884
15885 \begin_layout Standard
15886 by 
15887 \noun on
15888 Tomasz Luczak
15889 \end_layout
15890
15891 \begin_layout Standard
15892 The \SpecialChar LyX
15893  document classes 
15894 \emph on
15895 article (mwart)
15896 \emph default
15897
15898 \emph on
15899 report (mwrep)
15900 \emph default
15901  and 
15902 \emph on
15903 book
15904 \emph default
15905  
15906 \emph on
15907 (mwbk)
15908 \emph default
15909  correspond to the \SpecialChar LaTeX
15910  document classes 
15911 \family typewriter
15912 mwart.cls
15913 \family default
15914
15915 \family typewriter
15916 mwrep.cls
15917 \family default
15918  and 
15919 \family typewriter
15920 mwbk.cls
15921 \family default
15922 , resp.
15923  They are replacements for the standard document classes 
15924 \family typewriter
15925 article.cls
15926 \family default
15927
15928 \family typewriter
15929 report.cls
15930 \family default
15931  and 
15932 \family typewriter
15933 book.cls
15934 \family default
15935 , resp., and fit better to Polish typography conventions in a number of points.
15936  
15937 \end_layout
15938
15939 \begin_layout Standard
15940 Basic differences:
15941 \end_layout
15942
15943 \begin_layout Itemize
15944 Unnumbered titles (with star, e.
15945 \begin_inset space \thinspace{}
15946 \end_inset
15947
15948 g.
15949 \begin_inset space \space{}
15950 \end_inset
15951
15952
15953 \family sans
15954 Section*
15955 \family default
15956 ) are added into table of contents,
15957 \end_layout
15958
15959 \begin_layout Itemize
15960 Additional page styles:
15961 \end_layout
15962
15963 \begin_deeper
15964 \begin_layout Description
15965 uheadings header with separated lines,
15966 \end_layout
15967
15968 \begin_layout Description
15969 myheadings custom header, contents headers via commands: 
15970 \family typewriter
15971
15972 \backslash
15973 markright
15974 \family default
15975  and 
15976 \family typewriter
15977
15978 \backslash
15979 markboth
15980 \family default
15981 ,
15982 \end_layout
15983
15984 \begin_layout Description
15985 myuheadings custom header with separated lines,
15986 \end_layout
15987
15988 \begin_layout Description
15989 outer page number is placed on outer side of page
15990 \end_layout
15991
15992 \end_deeper
15993 \begin_layout Itemize
15994 Options 
15995 \end_layout
15996
15997 \begin_deeper
15998 \begin_layout Description
15999 rmheadings serif titles — default,
16000 \end_layout
16001
16002 \begin_layout Description
16003 sfheadings sansserif titles,
16004 \end_layout
16005
16006 \begin_layout Description
16007 authortitle on title page first placed is author next title — default,
16008 \end_layout
16009
16010 \begin_layout Description
16011 titleauthor on title page first placed is title next author,
16012 \end_layout
16013
16014 \begin_layout Description
16015 withmarginpar reserve place on page for margins.
16016 \end_layout
16017
16018 \end_deeper
16019 \begin_layout Section
16020 Paper
16021 \end_layout
16022
16023 \begin_layout Standard
16024 The document class 
16025 \family sans
16026 paper
16027 \family default
16028  provides an alternative to the standard 
16029 \family sans
16030 article
16031 \family default
16032  class.
16033  It provides similar functionality, but you might prefer this layout with
16034  sans serif sections, headings, and more.
16035 \end_layout
16036
16037 \begin_layout Section
16038 Rev\SpecialChar TeX
16039 4
16040 \end_layout
16041
16042 \begin_layout Standard
16043 by 
16044 \noun on
16045 Amir Karger
16046 \end_layout
16047
16048 \begin_layout Standard
16049 \begin_inset VSpace bigskip
16050 \end_inset
16051
16052
16053 \end_layout
16054
16055 \begin_layout Standard
16056 \noindent
16057 The 
16058 \family sans
16059 Revtex
16060 \begin_inset space ~
16061 \end_inset
16062
16063 4
16064 \family default
16065  textclass works with the American Physical Sociey's Rev\SpecialChar TeX
16066  4.0 (the 
16067 \begin_inset Formula $\beta$
16068 \end_inset
16069
16070  release of May, 1999) class.
16071 \end_layout
16072
16073 \begin_layout Standard
16074 \SpecialChar LyX
16075  has a 
16076 \family sans
16077 Revtex
16078 \family default
16079  textclass, which works with Rev\SpecialChar TeX
16080  3.1.
16081  However, v3.1 is basically obsolete, as it works with \SpecialChar LaTeX
16082  2.09.
16083  That means that it doesn't interact very well with \SpecialChar LyX
16084 , which requires \SpecialChar LaTeX2e
16085 , although
16086  it has been kludged to work.
16087  Since Rev\SpecialChar TeX
16088  4.0 has been designed to work much more cleanly with \SpecialChar LaTeX2e
16089 , \SpecialChar LyX
16090  with the
16091  
16092 \family sans
16093 Rev\SpecialChar TeX
16094
16095 \begin_inset space ~
16096 \end_inset
16097
16098 4
16099 \family default
16100  textclass should also be pretty easy to use.
16101 \end_layout
16102
16103 \begin_layout Standard
16104 These documents are supposed to be used in 
16105 \emph on
16106 addition
16107 \emph default
16108  to the Rev\SpecialChar TeX
16109  4.0 documents, so we don't describe any of the special Rev\SpecialChar TeX
16110  macros,
16111  and assume you'll know what to put in the preamble if necessary.
16112 \end_layout
16113
16114 \begin_layout Subsection
16115 Installation
16116 \end_layout
16117
16118 \begin_layout Standard
16119 All you need to do is install Rev\SpecialChar TeX
16120  4, as described in the package's README
16121  file.
16122  The package can be found at The Rev\SpecialChar TeX
16123  4 Web Site 
16124 \begin_inset Flex URL
16125 status collapsed
16126
16127 \begin_layout Plain Layout
16128
16129 http://publish.aps.org/revtex4/
16130 \end_layout
16131
16132 \end_inset
16133
16134 .
16135  Install it somewhere that \SpecialChar LaTeX
16136  can see it.
16137  Test it by trying to \SpecialChar LaTeX
16138  a short Rev\SpecialChar TeX
16139  4 document in some random directory (i.
16140 \begin_inset space \thinspace{}
16141 \end_inset
16142
16143 e.
16144 \begin_inset space \space{}
16145 \end_inset
16146
16147 not the directory where you installed the class file.) Then, if you reconfigure
16148  \SpecialChar LyX
16149 , it will find the class file and let you use the Rev\SpecialChar TeX
16150 4 textclass.
16151 \end_layout
16152
16153 \begin_layout Standard
16154 Probably the easiest way to get started is either to import a Rev\SpecialChar TeX
16155  4 document
16156  using 
16157 \family typewriter
16158 tex2lyx
16159 \family default
16160 , or to use the 
16161 \family sans
16162 Revtex
16163 \begin_inset space ~
16164 \end_inset
16165
16166 4
16167 \family default
16168  template, found in the templates directory.
16169 \end_layout
16170
16171 \begin_layout Subsection
16172 Preamble Matter
16173 \end_layout
16174
16175 \begin_layout Standard
16176 Optional arguments to 
16177 \family typewriter
16178
16179 \backslash
16180 documentclass
16181 \family default
16182 , like 
16183 \begin_inset Quotes eld
16184 \end_inset
16185
16186 preprint
16187 \begin_inset Quotes erd
16188 \end_inset
16189
16190  and 
16191 \begin_inset Quotes eld
16192 \end_inset
16193
16194 aps
16195 \begin_inset Quotes erd
16196 \end_inset
16197
16198 , go in the 
16199 \family sans
16200 Extra
16201 \begin_inset space ~
16202 \end_inset
16203
16204 Options
16205 \family default
16206  field in the 
16207 \family sans
16208 Document
16209 \begin_inset space ~
16210 \end_inset
16211
16212 Layout
16213 \family default
16214  dialog, as usual.
16215  Remember that in Rev\SpecialChar TeX
16216 , at least one optional argument is required! 
16217 \end_layout
16218
16219 \begin_layout Standard
16220 Other preamble matter, like 
16221 \family typewriter
16222
16223 \backslash
16224 draft
16225 \family default
16226  etc.
16227 \begin_inset space ~
16228 \end_inset
16229
16230 goes in the 
16231 \family sans
16232 \SpecialChar LaTeX
16233
16234 \begin_inset space ~
16235 \end_inset
16236
16237 Preamble
16238 \family default
16239  dialog, also as usual.
16240 \end_layout
16241
16242 \begin_layout Subsection
16243 Layouts
16244 \end_layout
16245
16246 \begin_layout Standard
16247 The layouts basically correspond to the commands in Rev\SpecialChar TeX
16248 4.0.
16249  For example, the Email layout corresponds to 
16250 \family typewriter
16251
16252 \backslash
16253 email{}
16254 \family default
16255 .
16256  Note that (at least as of Rev\SpecialChar TeX
16257  4.0 Beta), the 
16258 \family sans
16259 Address
16260 \family default
16261  and 
16262 \family sans
16263 Affiliation
16264 \family default
16265  layouts are exactly equivalent, so you shouldn't need to use both.
16266 \begin_inset Foot
16267 status collapsed
16268
16269 \begin_layout Plain Layout
16270 In case you're curious, both were included so that 
16271 \family typewriter
16272 tex2lyx
16273 \family default
16274  would be able to translate both 
16275 \family typewriter
16276
16277 \backslash
16278 address
16279 \family default
16280  and 
16281 \family typewriter
16282
16283 \backslash
16284 affiliation
16285 \family default
16286 .
16287 \end_layout
16288
16289 \end_inset
16290
16291
16292 \end_layout
16293
16294 \begin_layout Subsection
16295 Important Notes
16296 \end_layout
16297
16298 \begin_layout Standard
16299 There are a couple of important unique aspects of Rev\SpecialChar TeX
16300  4 which might cause
16301  bugs that will be even more confusing in \SpecialChar LyX
16302 .
16303 \end_layout
16304
16305 \begin_layout Standard
16306 In Rev\SpecialChar TeX
16307 , the 
16308 \family typewriter
16309
16310 \backslash
16311 thanks
16312 \family default
16313  command goes 
16314 \emph on
16315 outside
16316 \emph default
16317  the 
16318 \family typewriter
16319
16320 \backslash
16321 author
16322 \family default
16323  command.
16324  The \SpecialChar LyX
16325  equivalent is that there is a separate Thanks layout.
16326  Do 
16327 \emph on
16328 not
16329 \emph default
16330  write footnotes in the 
16331 \family sans
16332 Author
16333 \family default
16334  layout, or weird things may happen.
16335  See the Rev\SpecialChar TeX
16336  4 documentation for more details.
16337 \end_layout
16338
16339 \begin_layout Standard
16340 Also, the 
16341 \family sans
16342 Author
16343 \begin_inset space ~
16344 \end_inset
16345
16346 Email
16347 \family default
16348
16349 \family sans
16350 Author
16351 \begin_inset space ~
16352 \end_inset
16353
16354 URL
16355 \family default
16356 , and 
16357 \family sans
16358 Thanks
16359 \family default
16360  layouts must be placed 
16361 \emph on
16362 in between
16363 \emph default
16364  the 
16365 \family sans
16366 Author
16367 \family default
16368  layout and the corresponding 
16369 \family sans
16370 Address
16371 \family default
16372  (or equivalent 
16373 \family sans
16374 Affiliation
16375 \family default
16376 ) layout.
16377  If you put the 
16378 \family sans
16379 Thanks
16380 \family default
16381  after the 
16382 \family sans
16383 Address
16384 \family default
16385 , the \SpecialChar LaTeX
16386  won't compile.
16387 \end_layout
16388
16389 \begin_layout Section
16390 Springer Journals (
16391 \family sans
16392 svjour
16393 \family default
16394 )
16395 \end_layout
16396
16397 \begin_layout Standard
16398 by 
16399 \noun on
16400 Martin Vermeer
16401 \end_layout
16402
16403 \begin_layout Subsection
16404 Description
16405 \end_layout
16406
16407 \begin_layout Standard
16408 These are the layout files for some of the journal formats used by Springer
16409  Verlag and listed on 
16410 \begin_inset Flex URL
16411 status collapsed
16412
16413 \begin_layout Plain Layout
16414
16415 http://www.springer.de/author/tex/help-journals.html
16416 \end_layout
16417
16418 \end_inset
16419
16420 , where you should also go to fetch the class files (yes, these are \SpecialChar LaTeX2e
16421  now!).
16422  It is a modular system: the things common to all journals are implemented
16423  in 
16424 \family typewriter
16425 svjour.inc
16426 \family default
16427 , which journal-specific layout files (such as, e.
16428 \begin_inset space \thinspace{}
16429 \end_inset
16430
16431 g.
16432 \begin_inset space \space{}
16433 \end_inset
16434
16435
16436 \family typewriter
16437 svjog.layout
16438 \family default
16439  for Journal of Geodesy) can include.
16440 \end_layout
16441
16442 \begin_layout Standard
16443 This means that implementing support for any other Springer journal on this
16444  list is as simple as writing your own 
16445 \family typewriter
16446 sv
16447 \family default
16448 <myjournal>
16449 \family typewriter
16450 .layout
16451 \family default
16452  file following the outline given in 
16453 \family typewriter
16454 svjog.layout
16455 \family default
16456 .
16457  
16458 \end_layout
16459
16460 \begin_layout Standard
16461 It is reasonably well tested only for the Journal of Geodesy.
16462  
16463 \family typewriter
16464 svjour
16465 \family default
16466  and 
16467 \family typewriter
16468 svjog
16469 \family default
16470  come with the standard \SpecialChar LyX
16471  distribution.
16472  Install the relevant class file (downloaded from Springer) in a proper
16473  directory, reconfigure \SpecialChar LaTeX
16474  (in the te\SpecialChar TeX
16475  case by running 
16476 \family typewriter
16477 texhash
16478 \family default
16479 , as root if necessary — doesn't \SpecialChar LyX
16480  take care of this?), reconfigure \SpecialChar LyX
16481  and
16482  it should work.
16483 \end_layout
16484
16485 \begin_layout Subsection
16486 New styles
16487 \end_layout
16488
16489 \begin_layout Standard
16490 A large number of theorem-like styles — 
16491 \family sans
16492 Claim, Conjecture,
16493 \family default
16494  
16495 \family sans
16496 \SpecialChar ldots
16497 Theorem
16498 \family default
16499 .
16500 \end_layout
16501
16502 \begin_layout Standard
16503
16504 \family sans
16505 Headnote, Dedication, Subtitle, Running_\SpecialChar LaTeX
16506 _Title, Author_Running, Institute,
16507  Mail, Offprints, Keywords, Acknowledgements, Acknowledgement
16508 \family default
16509 .
16510  See the Springer class file documentation for details.
16511 \end_layout
16512
16513 \begin_layout Subsection
16514 Supported journals
16515 \end_layout
16516
16517 \begin_layout Itemize
16518
16519 \emph on
16520 Journal of Geodesy
16521 \emph default
16522
16523 \family typewriter
16524 svjog.layout
16525 \family default
16526  — Martin Vermeer
16527 \end_layout
16528
16529 \begin_layout Itemize
16530
16531 \emph on
16532 Probability Theory and Related Fields
16533 \emph default
16534
16535 \family typewriter
16536 svprobth.layout
16537 \family default
16538  — Jean-Marc Lasgouttes
16539 \end_layout
16540
16541 \begin_layout Standard
16542 Add your own, it isn't so hard!
16543 \end_layout
16544
16545 \begin_layout Subsection
16546 Credits
16547 \end_layout
16548
16549 \begin_layout Standard
16550 These files are partly based on the older 
16551 \family typewriter
16552 ejour2.layout
16553 \family default
16554 , which was again based on a tinkered-with version of an old \SpecialChar LaTeX
16555  2.09 style
16556  file from Springer.
16557  All this, and the 
16558 \family typewriter
16559 ejour2
16560 \family default
16561  layout, are now defunct.
16562  Jean-Marc Lasgouttes helped out big in making me find my way around the
16563  \SpecialChar LyX
16564  layout file mechanism.
16565 \end_layout
16566
16567 \begin_layout Subsection
16568 Bugs
16569 \end_layout
16570
16571 \begin_layout Standard
16572 Probably.
16573  But probably less than in the old hacked-\SpecialChar LaTeX
16574  
16575 \family typewriter
16576 ejour2
16577 \family default
16578 .
16579 \end_layout
16580
16581 \begin_layout Section
16582 Slides [aka 
16583 \noun on
16584 Sli\SpecialChar TeX
16585
16586 \noun default
16587 ]
16588 \begin_inset CommandInset label
16589 LatexCommand label
16590 name "sec:slitex"
16591
16592 \end_inset
16593
16594
16595 \end_layout
16596
16597 \begin_layout Standard
16598 by 
16599 \noun on
16600 John Weiss
16601 \noun default
16602  
16603 \end_layout
16604
16605 \begin_layout Subsection
16606 Introduction
16607 \end_layout
16608
16609 \begin_layout Standard
16610 This section describes how to use \SpecialChar LyX
16611  to make slides for overhead projectors.
16612  There are two document classes that can do this: the default slides class
16613  and the 
16614 \family sans
16615 Foil\SpecialChar TeX
16616
16617 \family default
16618  slides class.
16619  This section documents the former.
16620 \end_layout
16621
16622 \begin_layout Standard
16623 I'm going to say this again, nice and clear, so that there's no misunderstanding
16624 :
16625 \end_layout
16626
16627 \begin_layout Standard
16628 \begin_inset VSpace bigskip
16629 \end_inset
16630
16631
16632 \end_layout
16633
16634 \begin_layout Standard
16635 \align center
16636
16637 \size large
16638 This section documents the class 
16639 \begin_inset Quotes eld
16640 \end_inset
16641
16642
16643 \family sans
16644 slides (default)
16645 \family default
16646
16647 \begin_inset Quotes erd
16648 \end_inset
16649
16650  
16651 \emph on
16652 only.
16653 \end_layout
16654
16655 \begin_layout Standard
16656 \begin_inset VSpace bigskip
16657 \end_inset
16658
16659
16660 \end_layout
16661
16662 \begin_layout Standard
16663 If you're looking for the documentation for 
16664 \begin_inset Quotes eld
16665 \end_inset
16666
16667
16668 \family sans
16669 slides (Foil\SpecialChar TeX
16670 )
16671 \family default
16672
16673 \begin_inset Quotes erd
16674 \end_inset
16675
16676 , check out section
16677 \begin_inset space ~
16678 \end_inset
16679
16680
16681 \begin_inset CommandInset ref
16682 LatexCommand ref
16683 reference "sec:foiltex"
16684
16685 \end_inset
16686
16687 .
16688  The 
16689 \family sans
16690 foils
16691 \family default
16692  class [
16693 \begin_inset Quotes eld
16694 \end_inset
16695
16696
16697 \family sans
16698 slides (Foil\SpecialChar TeX
16699 )
16700 \family default
16701
16702 \begin_inset Quotes erd
16703 \end_inset
16704
16705 ] is actually somewhat better than the default 
16706 \family sans
16707 slides
16708 \family default
16709  class,
16710 \begin_inset Foot
16711 status collapsed
16712
16713 \begin_layout Plain Layout
16714 \SpecialChar ldots
16715 or so I've been told repeatedly by its advocates.
16716  Having never used it, I have no idea if this claim is true or not.
16717 \end_layout
16718
16719 \end_inset
16720
16721  which this section documents.
16722 \end_layout
16723
16724 \begin_layout Standard
16725 This class is the \SpecialChar LaTeX2e
16726  improvement of the old 
16727 \noun on
16728 Sli\SpecialChar TeX
16729
16730 \noun default
16731  package.
16732  Every \SpecialChar LaTeX2e
16733  distribution includes this class [which I'll just refer to as 
16734 \begin_inset Quotes eld
16735 \end_inset
16736
16737
16738 \family sans
16739 slides
16740 \family default
16741
16742 \begin_inset Quotes erd
16743 \end_inset
16744
16745  from now on], so you're bound to have it.
16746  As I noted earlier, there are other classes, such as 
16747 \family sans
16748 foils
16749 \family default
16750 , which also produce slides for overhead projectors and do a better job
16751  at it.
16752  However, there are some things which 
16753 \family sans
16754 slides
16755 \family default
16756  can do which the others can't, such as generate overlays.
16757  Read on to learn more!
16758 \end_layout
16759
16760 \begin_layout Subsection
16761 Getting Started
16762 \begin_inset CommandInset label
16763 LatexCommand label
16764 name "sec:slidesetup"
16765
16766 \end_inset
16767
16768
16769 \end_layout
16770
16771 \begin_layout Standard
16772 Obviously, to use this document class, you need to select 
16773 \begin_inset Quotes eld
16774 \end_inset
16775
16776
16777 \family sans
16778 slides (default)
16779 \family default
16780
16781 \begin_inset Quotes erd
16782 \end_inset
16783
16784  from the class list in the 
16785 \family sans
16786 Document\SpecialChar menuseparator
16787 Settings
16788 \family default
16789  dialog.
16790  There are some other special things you should know about this class:
16791 \end_layout
16792
16793 \begin_layout Itemize
16794 Don't bother changing the options 
16795 \family sans
16796 Sides and Columns
16797 \family default
16798 .
16799  They're not supported by the 
16800 \family sans
16801 slides
16802 \family default
16803  class, anyways.
16804 \end_layout
16805
16806 \begin_layout Itemize
16807 The option 
16808 \family sans
16809 Page
16810 \begin_inset space ~
16811 \end_inset
16812
16813 style
16814 \family default
16815  behaves a bit differently for this class.
16816  The possible choices and what they do are as follows:
16817 \end_layout
16818
16819 \begin_deeper
16820 \begin_layout Description
16821
16822 \family sans
16823 plain
16824 \family default
16825  The final output contains page numbers in the lower right corner.
16826 \end_layout
16827
16828 \begin_layout Description
16829
16830 \family sans
16831 headings
16832 \family default
16833  Like 
16834 \family sans
16835 plain
16836 \family default
16837 , but also prints out any time markers you've put in.
16838  This is the default.
16839 \end_layout
16840
16841 \begin_layout Description
16842
16843 \family sans
16844 empty
16845 \family default
16846  The final output contains no page numbers, time markers, or alignment markers.
16847 \end_layout
16848
16849 \end_deeper
16850 \begin_layout Itemize
16851 The 
16852 \family sans
16853 slides
16854 \family default
16855  class has an extra option: 
16856 \family typewriter
16857 clock
16858 \family default
16859 .
16860  To use it, put 
16861 \begin_inset Quotes eld
16862 \end_inset
16863
16864
16865 \family typewriter
16866 clock
16867 \family default
16868
16869 \begin_inset Quotes erd
16870 \end_inset
16871
16872  in the extra class options.
16873 \end_layout
16874
16875 \begin_deeper
16876 \begin_layout Standard
16877 Using this options allows you to add time markers to 
16878 \family sans
16879 Note
16880 \family default
16881 s.
16882  See section
16883 \begin_inset space ~
16884 \end_inset
16885
16886
16887 \begin_inset CommandInset ref
16888 LatexCommand ref
16889 reference "sec:slideNote"
16890
16891 \end_inset
16892
16893  for more details.
16894 \end_layout
16895
16896 \end_deeper
16897 \begin_layout Standard
16898 You can also use the template file 
16899 \begin_inset Quotes eld
16900 \end_inset
16901
16902
16903 \family typewriter
16904 slides.lyx
16905 \family default
16906
16907 \begin_inset Quotes erd
16908 \end_inset
16909
16910  to automatically set up a document to use the 
16911 \family sans
16912 slides
16913 \family default
16914  class [using 
16915 \family sans
16916 File\SpecialChar menuseparator
16917 New
16918 \begin_inset space ~
16919 \end_inset
16920
16921 from
16922 \begin_inset space ~
16923 \end_inset
16924
16925 Template
16926 \family default
16927  to open your new document].
16928  The template file also contains some examples of the special paragraph
16929  environments used by this class.
16930  I'll describe those next.
16931 \end_layout
16932
16933 \begin_layout Subsection
16934 Paragraph Environments
16935 \end_layout
16936
16937 \begin_layout Subsubsection
16938 Supported Environments
16939 \end_layout
16940
16941 \begin_layout Standard
16942 The first thing you'll notice when you start up a new 
16943 \family sans
16944 slides
16945 \family default
16946  document is the font size and type: it's the equivalent of the size 
16947 \begin_inset Quotes eld
16948 \end_inset
16949
16950
16951 \family sans
16952 Largest
16953 \family default
16954
16955 \begin_inset Quotes erd
16956 \end_inset
16957
16958  in the 
16959 \family sans
16960 Sans
16961 \begin_inset space ~
16962 \end_inset
16963
16964 Serif
16965 \family default
16966  font.
16967  This is also what's used in the output.
16968  Think of this as a 
16969 \begin_inset Quotes eld
16970 \end_inset
16971
16972 visual cue
16973 \begin_inset Quotes erd
16974 \end_inset
16975
16976  to remind you that this is a slide.
16977  Your final slides will use a larger font; ergo, you'll have less space.
16978  Of course, the larger default screen font isn't WYSIWYG, only a reminder.
16979 \end_layout
16980
16981 \begin_layout Standard
16982 The next thing that becomes obvious is the changes to the paragraph environment
16983  pull-down box [at the far-left end of the toolbar].
16984  Most of the paragraph environments you're used to seeing are missing.
16985  There are also five new ones.
16986  That's because the 
16987 \family sans
16988 slides
16989 \family default
16990  class itself only supports certain paragraph environments:
16991 \end_layout
16992
16993 \begin_layout Itemize
16994
16995 \family sans
16996 Standard
16997 \end_layout
16998
16999 \begin_layout Itemize
17000
17001 \family sans
17002 Itemize
17003 \end_layout
17004
17005 \begin_layout Itemize
17006
17007 \family sans
17008 Enumerate
17009 \end_layout
17010
17011 \begin_layout Itemize
17012
17013 \family sans
17014 Description
17015 \end_layout
17016
17017 \begin_layout Itemize
17018
17019 \family sans
17020 List
17021 \end_layout
17022
17023 \begin_layout Itemize
17024
17025 \family sans
17026 Quotation
17027 \end_layout
17028
17029 \begin_layout Itemize
17030
17031 \family sans
17032 Quote
17033 \end_layout
17034
17035 \begin_layout Itemize
17036
17037 \family sans
17038 Verse
17039 \end_layout
17040
17041 \begin_layout Itemize
17042
17043 \family sans
17044 Caption
17045 \end_layout
17046
17047 \begin_layout Itemize
17048
17049 \family sans
17050 \SpecialChar LyX
17051 -Code
17052 \end_layout
17053
17054 \begin_layout Standard
17055 All of the other standard environments, including the section-heading environmen
17056 ts, aren't used in the 
17057 \family sans
17058 slides
17059 \family default
17060  class.
17061 \end_layout
17062
17063 \begin_layout Standard
17064 On the other hand, you'll notice the following new environments:
17065 \end_layout
17066
17067 \begin_layout Itemize
17068
17069 \family sans
17070 Slide
17071 \end_layout
17072
17073 \begin_layout Itemize
17074
17075 \family sans
17076 Overlay
17077 \end_layout
17078
17079 \begin_layout Itemize
17080
17081 \family sans
17082 Note
17083 \end_layout
17084
17085 \begin_layout Itemize
17086
17087 \family sans
17088 InvisibleText
17089 \end_layout
17090
17091 \begin_layout Itemize
17092
17093 \family sans
17094 VisibleText
17095 \end_layout
17096
17097 \begin_layout Standard
17098 These five are kind of quirky, due to a 
17099 \begin_inset Quotes eld
17100 \end_inset
17101
17102 feature
17103 \begin_inset Quotes erd
17104 \end_inset
17105
17106  in \SpecialChar LyX
17107 .
17108  You see, \SpecialChar LyX
17109  doesn't permit you to nest any other paragraph environment into
17110  an empty environment.
17111  Now, that's fine and dandy, but it means that you wouldn't be able to start
17112  a slide with anything except plain text.
17113  To deal with this, I've performed a little 
17114 \begin_inset Quotes eld
17115 \end_inset
17116
17117 \SpecialChar LaTeX
17118  magic.
17119 \begin_inset Quotes erd
17120 \end_inset
17121
17122  
17123 \end_layout
17124
17125 \begin_layout Subsubsection
17126 Quirks of the New Environments
17127 \begin_inset CommandInset label
17128 LatexCommand label
17129 name "sec:slideQuirk"
17130
17131 \end_inset
17132
17133
17134 \end_layout
17135
17136 \begin_layout Standard
17137 All five of the new paragraph environments are somewhat quirky due to inherent
17138  limitiations in the current version of \SpecialChar LyX
17139 .
17140  As I just mentioned, \SpecialChar LyX
17141  forbids environments that begin with another environment.
17142  To get around this, the 
17143 \family sans
17144 Slide
17145 \family default
17146  environment isn't a paragraph environment as described in the 
17147 \emph on
17148 User's Guide
17149 \emph default
17150 .
17151  
17152 \end_layout
17153
17154 \begin_layout Standard
17155 You should consider 
17156 \family sans
17157 Slide
17158 \family default
17159
17160 \family sans
17161 Overlay
17162 \family default
17163 , and 
17164 \family sans
17165 Note
17166 \family default
17167  to be 
17168 \begin_inset Quotes eld
17169 \end_inset
17170
17171 pseudo-environments.
17172 \begin_inset Quotes erd
17173 \end_inset
17174
17175  They look like a section heading or a 
17176 \begin_inset Quotes eld
17177 \end_inset
17178
17179
17180 \family sans
17181 Caption
17182 \family default
17183 ,
17184 \begin_inset Quotes erd
17185 \end_inset
17186
17187  but really begin a [and, if necessary, end the previous] paragraph environment.
17188  Likewise, treat 
17189 \family sans
17190 InvisibleText
17191 \family default
17192  and 
17193 \family sans
17194 VisibleText
17195 \family default
17196  as 
17197 \begin_inset Quotes eld
17198 \end_inset
17199
17200 pseudo-commands.
17201 \begin_inset Quotes erd
17202 \end_inset
17203
17204  These two perform some action.
17205 \end_layout
17206
17207 \begin_layout Standard
17208 A common feature of all five environments, 
17209 \family sans
17210 Slide
17211 \family default
17212
17213 \family sans
17214 Overlay
17215 \family default
17216
17217 \family sans
17218 Note
17219 \family default
17220
17221 \family sans
17222 InvisibleText
17223 \family default
17224  and 
17225 \family sans
17226 VisibleText
17227 \family default
17228 , is a rather long-ish label.
17229  The text following this label — ordinarily the contents of the paragraph
17230  environment — is utterly irrelevant for 
17231 \family sans
17232 Slide
17233 \family default
17234
17235 \family sans
17236 Overlay
17237 \family default
17238
17239 \family sans
17240 Note
17241 \family default
17242
17243 \family sans
17244 InvisibleText
17245 \family default
17246  and 
17247 \family sans
17248 VisibleText
17249 \family default
17250 .
17251  \SpecialChar LyX
17252  completely ignores it.
17253  In fact, you can leave these five environments completely empty.
17254  
17255 \end_layout
17256
17257 \begin_layout Standard
17258 While you don't 
17259 \emph on
17260 have
17261 \emph default
17262  to put any text after the rather long-ish label, you might want to.
17263  This could be a short description of the contents of the 
17264 \family sans
17265 Slide
17266 \family default
17267 , for example.
17268  In that case, enter your descriptive comment and hit 
17269 \family sans
17270 Return
17271 \family default
17272  as you normally would.
17273 \end_layout
17274
17275 \begin_layout Standard
17276 If, on the other hand, you don't want to enter any descriptive text, you'll
17277  hit another \SpecialChar LyX
17278  quirk.
17279  \SpecialChar LyX
17280 , like nature, abhors a vacuum, and will not let you start a new paragraph
17281  environment until you put something in the old one.
17282  So, do this:
17283 \end_layout
17284
17285 \begin_layout Itemize
17286 Start entering the text that will 
17287 \emph on
17288 follow
17289 \emph default
17290  the new 
17291 \family sans
17292 Slide
17293 \family default
17294
17295 \family sans
17296 Overlay
17297 \family default
17298
17299 \family sans
17300 Note
17301 \family default
17302
17303 \family sans
17304 InvisibleText
17305 \family default
17306  or 
17307 \family sans
17308 VisibleText
17309 \family default
17310 .
17311  
17312 \end_layout
17313
17314 \begin_layout Itemize
17315 Now move to the beginning of that paragraph.
17316  
17317 \end_layout
17318
17319 \begin_layout Itemize
17320 Next, hit 
17321 \family sans
17322 Return
17323 \family default
17324 .
17325  
17326 \end_layout
17327
17328 \begin_layout Itemize
17329 Finally, change this new, empty paragraph to a 
17330 \family sans
17331 Slide
17332 \family default
17333
17334 \family sans
17335 Overlay
17336 \family default
17337
17338 \family sans
17339 Note
17340 \family default
17341
17342 \family sans
17343 InvisibleText
17344 \family default
17345  or 
17346 \family sans
17347 VisibleText
17348 \family default
17349 .
17350  
17351 \end_layout
17352
17353 \begin_layout Standard
17354 Some future version of \SpecialChar LyX
17355  will, hopefully, resolve this quirkiness\SpecialChar ldots
17356
17357 \end_layout
17358
17359 \begin_layout Subsection
17360 Making a Presentation with 
17361 \family sans
17362 Slide
17363 \family default
17364
17365 \family sans
17366 Overlay
17367 \family default
17368  and 
17369 \family sans
17370 Note
17371 \end_layout
17372
17373 \begin_layout Subsubsection
17374 Using the 
17375 \family sans
17376 Slide
17377 \family default
17378  Environment
17379 \end_layout
17380
17381 \begin_layout Standard
17382 If you're expecting this section to teach you how to actually make a presentatio
17383 n, you'll be sorely disappointed.
17384  Naturally, I'll describe all of the ways the 
17385 \family sans
17386 slides
17387 \family default
17388  class can assist you in preparing the materials for a presentation.
17389  Filling in the contents, however, is up to you.
17390  [Then again, that 
17391 \emph on
17392 is
17393 \emph default
17394  the \SpecialChar LyX
17395  philosophy.]
17396 \end_layout
17397
17398 \begin_layout Standard
17399 Choosing the 
17400 \family sans
17401 Slide
17402 \family default
17403  environment [in the manner described in section
17404 \begin_inset space ~
17405 \end_inset
17406
17407
17408 \begin_inset CommandInset ref
17409 LatexCommand ref
17410 reference "sec:slideQuirk"
17411
17412 \end_inset
17413
17414 ] tells \SpecialChar LyX
17415  to begin a new slide [duh].
17416  The label for this environment/
17417 \begin_inset Quotes erd
17418 \end_inset
17419
17420 pseudo-command
17421 \begin_inset Quotes erd
17422 \end_inset
17423
17424  is an 
17425 \begin_inset Quotes eld
17426 \end_inset
17427
17428 ASCII line,
17429 \begin_inset Quotes erd
17430 \end_inset
17431
17432  in cool blue, followed by the label, 
17433 \begin_inset Quotes eld
17434 \end_inset
17435
17436 NewSlide:
17437 \begin_inset Quotes erd
17438 \end_inset
17439
17440 .
17441  Any text or paragraph environments that follow this one go on the new slide.
17442  It's that simple.
17443 \end_layout
17444
17445 \begin_layout Standard
17446 Slides are probably the only time you'll need to forcibly end pages in \SpecialChar LyX
17447
17448  (this can be specified in the 
17449 \family sans
17450 Paragraph Layout
17451 \family default
17452  dialog).
17453  In fact, you'll want to, once you finish entering the contents of one slide.
17454  If you've entered more text than can physically fit on a slide, the extra
17455  overflows onto a new slide.
17456  I don't recommend doing this, however, since the overflow slide won't have
17457  any page number on it.
17458  Furthermore, it may interfere with any 
17459 \family sans
17460 Overlay
17461 \family default
17462  you've made to accompany the oversized 
17463 \family sans
17464 Slide
17465 \family default
17466 .
17467 \end_layout
17468
17469 \begin_layout Standard
17470 The 
17471 \family sans
17472 Overlay
17473 \family default
17474  and 
17475 \family sans
17476 Note
17477 \family default
17478  environments work the same way as the 
17479 \family sans
17480 Slide
17481 \family default
17482  environment.
17483  They both create an 
17484 \begin_inset Quotes eld
17485 \end_inset
17486
17487 ASCII line
17488 \begin_inset Quotes erd
17489 \end_inset
17490
17491  followed by a label [
17492 \begin_inset Quotes eld
17493 \end_inset
17494
17495 NewOverlay:
17496 \begin_inset Quotes erd
17497 \end_inset
17498
17499  and 
17500 \begin_inset Quotes eld
17501 \end_inset
17502
17503 NewNote:
17504 \begin_inset Quotes erd
17505 \end_inset
17506
17507 , respectively].
17508  The color is a stunning magenta instead of blue, and the 
17509 \begin_inset Quotes eld
17510 \end_inset
17511
17512 ASCII line
17513 \begin_inset Quotes erd
17514 \end_inset
17515
17516  will look different, in style and in length.
17517  The label fonts of all three also differ from one another.
17518 \end_layout
17519
17520 \begin_layout Standard
17521 As with a 
17522 \family sans
17523 Slide
17524 \family default
17525 , if the contents of a 
17526 \family sans
17527 Note
17528 \family default
17529  or 
17530 \family sans
17531 Overlay
17532 \family default
17533  exceed the physical size of a slide or sheet of paper, the extra will overflow
17534  onto a new sheet.
17535  Again, you should avoid this.
17536  It defeats the whole purpose of 
17537 \family sans
17538 Note
17539 \family default
17540 s and 
17541 \family sans
17542 Overlay
17543 \family default
17544 s.
17545 \end_layout
17546
17547 \begin_layout Subsubsection
17548 Using 
17549 \family sans
17550 Overlay
17551 \family default
17552  with 
17553 \family sans
17554 Slide
17555 \end_layout
17556
17557 \begin_layout Standard
17558 The idea behind an 
17559 \family sans
17560 Overlay
17561 \family default
17562  is a slide that sits atop another slide.
17563  Perhaps you wish to discuss a figure on the main 
17564 \family sans
17565 Slide
17566 \family default
17567  before displaying the text associated with it.
17568  One way to accomplish this is tape a flap of dark paper over the part of
17569  the 
17570 \family sans
17571 Slide
17572 \family default
17573  you want to display later.
17574  This method fails, however, if you wish to overlap one graph with another,
17575  for example.
17576  You would then have to fumble while speaking to align the two separate,
17577  overlapping 
17578 \family sans
17579 Slide
17580 \family default
17581 s to align the two graphs.
17582  The use of an 
17583 \family sans
17584 Overlay
17585 \family default
17586  environment in both cases makes life much easier.
17587 \end_layout
17588
17589 \begin_layout Standard
17590 Each 
17591 \family sans
17592 Overlay
17593 \family default
17594  receives the page number of its 
17595 \begin_inset Quotes eld
17596 \end_inset
17597
17598 parent
17599 \begin_inset Quotes erd
17600 \end_inset
17601
17602  
17603 \family sans
17604 Slide
17605 \family default
17606 , appended by 
17607 \begin_inset Quotes eld
17608 \end_inset
17609
17610
17611 \family typewriter
17612 -a
17613 \family default
17614
17615 \begin_inset Quotes erd
17616 \end_inset
17617
17618 .
17619 \begin_inset Foot
17620 status collapsed
17621
17622 \begin_layout Plain Layout
17623 Presumably, mutliple 
17624 \family sans
17625 Overlay
17626 \family default
17627 s would have 
17628 \begin_inset Quotes eld
17629 \end_inset
17630
17631
17632 \family typewriter
17633 -a
17634 \family default
17635
17636 \begin_inset Quotes erd
17637 \end_inset
17638
17639
17640 \begin_inset Quotes eld
17641 \end_inset
17642
17643
17644 \family typewriter
17645 -b
17646 \family default
17647
17648 \begin_inset Quotes erd
17649 \end_inset
17650
17651
17652 \begin_inset Quotes eld
17653 \end_inset
17654
17655
17656 \family typewriter
17657 -c
17658 \family default
17659
17660 \begin_inset Quotes erd
17661 \end_inset
17662
17663 , etc.
17664 \begin_inset space ~
17665 \end_inset
17666
17667 appended to the page number of the parent 
17668 \family sans
17669 Slide
17670 \family default
17671 .
17672  
17673 \end_layout
17674
17675 \end_inset
17676
17677  Clearly, you want the contents of both the 
17678 \family sans
17679 Slide
17680 \family default
17681  and the 
17682 \family sans
17683 Overlay
17684 \family default
17685  to each fit on a single physical slide! You should probably consider an
17686  
17687 \family sans
17688 Overlay
17689 \family default
17690  as 
17691 \begin_inset Quotes eld
17692 \end_inset
17693
17694 part of
17695 \begin_inset Quotes erd
17696 \end_inset
17697
17698  a 
17699 \family sans
17700 Slide
17701 \family default
17702 .
17703  Indeed, the \SpecialChar LyX
17704  
17705 \family sans
17706 slides
17707 \family default
17708  class provides a visual cue for this: the label at the start of an 
17709 \family sans
17710 Overlay
17711 \family default
17712  is shorter than that at the start of a 
17713 \family sans
17714 Slide
17715 \family default
17716 .
17717  Lastly, when you generate printable output, you'll find alignment markers
17718  in all four corners of both the 
17719 \family sans
17720 Overlay
17721 \family default
17722  page and its parent 
17723 \family sans
17724 Slide
17725 \family default
17726 .
17727  These will assist you in lining up the two physical slides.
17728 \end_layout
17729
17730 \begin_layout Standard
17731 The major problem in overlaying two slides is aligning the contents of the
17732  two transparencies.
17733  How much space should you leave for that graph on the second slide? Worse
17734  still, what if you want a graph and a sentence on second slide, but there
17735  is text on the main transparency that goes in between them? You could try
17736  and insert vertical space of the right size.
17737  The better way is to use 
17738 \family sans
17739 InvisibleText
17740 \family default
17741  and 
17742 \family sans
17743 VisibleText
17744 \family default
17745 .
17746 \end_layout
17747
17748 \begin_layout Standard
17749 As their names imply, 
17750 \family sans
17751 InvisibleText
17752 \family default
17753  and 
17754 \family sans
17755 VisibleText
17756 \family default
17757  are two command-like paragraph environments that make all subsequent text
17758  invisible and visible, respectively.
17759  Note from section
17760 \begin_inset space ~
17761 \end_inset
17762
17763
17764 \begin_inset CommandInset ref
17765 LatexCommand ref
17766 reference "sec:slideQuirk"
17767
17768 \end_inset
17769
17770  that you don't place anything 
17771 \emph on
17772 into
17773 \emph default
17774  these two environments, however.
17775  When you create an 
17776 \family sans
17777 InvisibleText
17778 \family default
17779 , it inserts a centered, sky-blue label into the page reading 
17780 \begin_inset Quotes eld
17781 \end_inset
17782
17783 <Invisible Text Follows>
17784 \begin_inset Quotes erd
17785 \end_inset
17786
17787 .
17788  For paragraphs following this label, the parts of the 
17789 \family sans
17790 Slide
17791 \family default
17792  [or 
17793 \family sans
17794 Overlay
17795 \family default
17796 ; it doesn't matter which] where they would be contain instead blank space.
17797  
17798 \end_layout
17799
17800 \begin_layout Standard
17801 For 
17802 \family sans
17803 VisibleText
17804 \family default
17805 , the corresponding centered label is 
17806 \begin_inset Quotes eld
17807 \end_inset
17808
17809 <Visible Text Follows>
17810 \begin_inset Quotes erd
17811 \end_inset
17812
17813  in blazing green.
17814  Paragraphs following this label behave normally.
17815  Note that the beginning of a new 
17816 \family sans
17817 Slide
17818 \family default
17819
17820 \family sans
17821 Overlay
17822 \family default
17823 , or 
17824 \family sans
17825 Note
17826 \family default
17827  automatically shuts off an 
17828 \family sans
17829 InvisibleText
17830 \family default
17831 .
17832  It's therefore not necessary to use 
17833 \family sans
17834 VisibleText
17835 \family default
17836  at the end of a 
17837 \family sans
17838 Slide
17839 \family default
17840 .
17841 \end_layout
17842
17843 \begin_layout Standard
17844 By now, it should be obvious how to create overlay transparencies using
17845  the proper combination of 
17846 \family sans
17847 InvisibleText
17848 \family default
17849  and 
17850 \family sans
17851 VisibleText
17852 \family default
17853  on a 
17854 \family sans
17855 Slide
17856 \family default
17857  and 
17858 \family sans
17859 Overlay
17860 \family default
17861 :
17862 \end_layout
17863
17864 \begin_layout Enumerate
17865 Create a 
17866 \family sans
17867 Slide
17868 \family default
17869 , including everything that will appear on it, whether on the main slide
17870  or on the 
17871 \family sans
17872 Overlay
17873 \family default
17874 .
17875 \end_layout
17876
17877 \begin_layout Enumerate
17878 Before each figure or paragraph that will appear only on the 
17879 \family sans
17880 Overlay
17881 \family default
17882 , insert an 
17883 \family sans
17884 InvisibleText
17885 \family default
17886  environment.
17887  If necessary, insert a 
17888 \family sans
17889 VisibleText
17890 \family default
17891  environment after the 
17892 \family sans
17893 Overlay
17894 \family default
17895 -only text.
17896 \end_layout
17897
17898 \begin_layout Enumerate
17899 Start an 
17900 \family sans
17901 Overlay
17902 \family default
17903  immediately following the 
17904 \family sans
17905 Slide
17906 \family default
17907 .
17908 \end_layout
17909
17910 \begin_layout Enumerate
17911 Copy the contents of this 
17912 \family sans
17913 Slide
17914 \family default
17915  into the 
17916 \family sans
17917 Overlay
17918 \family default
17919 .
17920 \end_layout
17921
17922 \begin_layout Enumerate
17923 Within the 
17924 \family sans
17925 Overlay
17926 \family default
17927 , change all of the 
17928 \family sans
17929 InvisibleText
17930 \family default
17931  lines to 
17932 \family sans
17933 VisibleText
17934 \family default
17935  and vice-versa.
17936 \end_layout
17937
17938 \begin_layout Standard
17939 That's it.
17940  You've just made an 
17941 \family sans
17942 Overlay
17943 \family default
17944 .
17945 \end_layout
17946
17947 \begin_layout Standard
17948 There's one problem with the way I've designed the \SpecialChar LyX
17949  
17950 \family sans
17951 slides
17952 \family default
17953  class: you can't make text in the middle of a paragraph invisible, nor
17954  make text in the middle of an invisible paragraph visible again.
17955  To accomplish this feat, you'll need to use some inlined \SpecialChar LaTeX
17956  codes.
17957 \begin_inset Foot
17958 status collapsed
17959
17960 \begin_layout Plain Layout
17961 The commands of interest are: 
17962 \end_layout
17963
17964 \begin_layout Itemize
17965
17966 \family typewriter
17967 {
17968 \backslash
17969 invisible \SpecialChar ldots
17970  }
17971 \end_layout
17972
17973 \begin_layout Itemize
17974
17975 \family typewriter
17976 {
17977 \backslash
17978 visible \SpecialChar ldots
17979  }
17980 \end_layout
17981
17982 \begin_layout Plain Layout
17983 \SpecialChar ldots
17984 and need to be marked as \SpecialChar TeX
17985 .
17986  The text whose 
17987 \begin_inset Quotes eld
17988 \end_inset
17989
17990 visibility
17991 \begin_inset Quotes erd
17992 \end_inset
17993
17994  you wish to change goes in between the brackets [and after the 
17995 \family typewriter
17996
17997 \backslash
17998 invisible
17999 \family default
18000  or 
18001 \family typewriter
18002
18003 \backslash
18004 visible
18005 \family default
18006  command].
18007  If you don't know how to mark text as \SpecialChar TeX
18008 , see the appropriate section of
18009  the 
18010 \emph on
18011 User's Guide
18012 \emph default
18013 .
18014 \end_layout
18015
18016 \end_inset
18017
18018
18019 \end_layout
18020
18021 \begin_layout Subsubsection
18022 Using 
18023 \family sans
18024 Note
18025 \family default
18026  with 
18027 \family sans
18028 Slide
18029 \family default
18030
18031 \begin_inset CommandInset label
18032 LatexCommand label
18033 name "sec:slideNote"
18034
18035 \end_inset
18036
18037
18038 \end_layout
18039
18040 \begin_layout Standard
18041 Like an 
18042 \family sans
18043 Overlay
18044 \family default
18045 , a 
18046 \family sans
18047 Note
18048 \family default
18049  is associated with a 
18050 \begin_inset Quotes eld
18051 \end_inset
18052
18053 parent
18054 \begin_inset Quotes erd
18055 \end_inset
18056
18057  
18058 \family sans
18059 Slide
18060 \family default
18061 .
18062  Here, too, the \SpecialChar LyX
18063  
18064 \family sans
18065 slides
18066 \family default
18067  class provides visual cues.
18068  The label for a 
18069 \family sans
18070 Note
18071 \family default
18072  is shorter than that of a 
18073 \family sans
18074 Slide
18075 \family default
18076  [yet longer than that of an 
18077 \family sans
18078 Overlay
18079 \family default
18080 ] and, like the label of an 
18081 \family sans
18082 Overlay
18083 \family default
18084  is shockingly magenta.
18085  Additionally, the printed 
18086 \family sans
18087 Note
18088 \family default
18089  has the page number of its 
18090 \begin_inset Quotes eld
18091 \end_inset
18092
18093 parent
18094 \begin_inset Quotes erd
18095 \end_inset
18096
18097  
18098 \family sans
18099 Slide
18100 \family default
18101 , appended by 
18102 \begin_inset Quotes eld
18103 \end_inset
18104
18105
18106 \family typewriter
18107 -
18108 \family default
18109 1
18110 \begin_inset Quotes erd
18111 \end_inset
18112
18113
18114 \begin_inset Quotes eld
18115 \end_inset
18116
18117
18118 \family typewriter
18119 -
18120 \family default
18121 2
18122 \begin_inset Quotes erd
18123 \end_inset
18124
18125
18126 \begin_inset Quotes eld
18127 \end_inset
18128
18129
18130 \family typewriter
18131 -
18132 \family default
18133 3
18134 \begin_inset Quotes erd
18135 \end_inset
18136
18137 , etc.
18138  You can have multiple 
18139 \family sans
18140 Note
18141 \family default
18142 s associated with a single 
18143 \family sans
18144 Slide
18145 \family default
18146 , and, as with 
18147 \family sans
18148 Slide
18149 \family default
18150  and 
18151 \family sans
18152 Overlay
18153 \family default
18154 , you'll probably want to break up long 
18155 \family sans
18156 Note
18157 \family default
18158 s so that they fit on a single sheet of paper.
18159 \end_layout
18160
18161 \begin_layout Standard
18162 The purpose of a 
18163 \family sans
18164 Note
18165 \family default
18166  is obvious: it contains anything additional you might want to say about
18167  a 
18168 \family sans
18169 Slide
18170 \family default
18171 .
18172  It could also be used as a sheet of reminders for a particular 
18173 \family sans
18174 Slide
18175 \family default
18176 .
18177  In the case of the latter, you might want to make use of time markers.
18178  Currently, the \SpecialChar LyX
18179  
18180 \family sans
18181 slides
18182 \family default
18183  class has no 
18184 \begin_inset Quotes eld
18185 \end_inset
18186
18187 native
18188 \begin_inset Quotes erd
18189 \end_inset
18190
18191  support for time markers, a 
18192 \noun on
18193 Sli\SpecialChar TeX
18194
18195 \noun default
18196  feature.
18197  So, you'll have to resort to using the \SpecialChar LaTeX
18198  codes.
18199 \end_layout
18200
18201 \begin_layout Standard
18202 To use time markers, you'll need to specify the extra class option 
18203 \begin_inset Quotes eld
18204 \end_inset
18205
18206
18207 \family typewriter
18208 clock
18209 \family default
18210
18211 \begin_inset Quotes erd
18212 \end_inset
18213
18214  [see section
18215 \begin_inset space ~
18216 \end_inset
18217
18218
18219 \begin_inset CommandInset ref
18220 LatexCommand ref
18221 reference "sec:slidesetup"
18222
18223 \end_inset
18224
18225 ].
18226  This option turns on timing marks, which will appear in the lower-left-hand
18227  corner of every 
18228 \family sans
18229 Note
18230 \family default
18231  you generate.
18232  To set what appears in the time marker, you use the \SpecialChar LaTeX
18233  commands 
18234 \begin_inset Quotes eld
18235 \end_inset
18236
18237
18238 \family typewriter
18239
18240 \backslash
18241 settime{}
18242 \family default
18243
18244 \begin_inset Quotes erd
18245 \end_inset
18246
18247  and 
18248 \begin_inset Quotes eld
18249 \end_inset
18250
18251
18252 \family typewriter
18253
18254 \backslash
18255 addtime{}
18256 \family default
18257
18258 \begin_inset Quotes erd
18259 \end_inset
18260
18261 .
18262  The arguments of both commands are time measured in seconds.
18263  
18264 \begin_inset Quotes eld
18265 \end_inset
18266
18267
18268 \family typewriter
18269
18270 \backslash
18271 settime{}
18272 \family default
18273
18274 \begin_inset Quotes erd
18275 \end_inset
18276
18277  sets the time marker to a given time.
18278  
18279 \begin_inset Quotes eld
18280 \end_inset
18281
18282
18283 \family typewriter
18284
18285 \backslash
18286 addtime{}
18287 \family default
18288
18289 \begin_inset Quotes erd
18290 \end_inset
18291
18292  increments the time marker by the specified amount.
18293  Using time markers and 
18294 \family sans
18295 Note
18296 \family default
18297 s in this fashion, you can remind yourself how much time to spend on a particula
18298
18299 \family sans
18300 Slide
18301 \family default
18302 .
18303 \end_layout
18304
18305 \begin_layout Standard
18306 There's one last feature to describe.
18307  Clearly, you'd like to print out all of your 
18308 \family sans
18309 Slide
18310 \family default
18311 s and 
18312 \family sans
18313 Overlay
18314 \family default
18315 s on transparencies while printing all of your 
18316 \family sans
18317 Note
18318 \family default
18319 s on plain paper.
18320  However, a 
18321 \family sans
18322 Note
18323 \family default
18324  
18325 \emph on
18326 must
18327 \emph default
18328  follow the 
18329 \family sans
18330 Slide
18331 \family default
18332  with which it is associated.
18333  What's a person to do?
18334 \end_layout
18335
18336 \begin_layout Standard
18337 Luckily, there are two \SpecialChar LaTeX
18338  commands that allow you to select what to print
18339  out.
18340  Both must be placed into the preamble of your document.
18341  The command 
18342 \begin_inset Quotes eld
18343 \end_inset
18344
18345
18346 \family typewriter
18347
18348 \backslash
18349 onlyslides{
18350 \backslash
18351 slides}
18352 \family default
18353
18354 \begin_inset Quotes erd
18355 \end_inset
18356
18357  will cause the output to contain only the 
18358 \family sans
18359 Slide
18360 \family default
18361 s and 
18362 \family sans
18363 Overlay
18364 \family default
18365 s.
18366  Correspondingly, the command 
18367 \begin_inset Quotes eld
18368 \end_inset
18369
18370
18371 \family typewriter
18372
18373 \backslash
18374 onlynotes{
18375 \backslash
18376 notes}
18377 \family default
18378
18379 \begin_inset Quotes erd
18380 \end_inset
18381
18382  prevents the output of anything but 
18383 \family sans
18384 Note
18385 \family default
18386 s.
18387  I'd advise placing both commands in the preamble and initially comment
18388  both out.
18389  You can then preview your entire presentation as you write.
18390  When you're done writing, you can then uncomment one of the two to select
18391  what you want to print.
18392  I like to uncomment 
18393 \begin_inset Quotes eld
18394 \end_inset
18395
18396
18397 \family typewriter
18398
18399 \backslash
18400 onlyslides{
18401 \backslash
18402 slides}
18403 \family default
18404
18405 \begin_inset Quotes erd
18406 \end_inset
18407
18408  , print to a file with 
18409 \begin_inset Quotes eld
18410 \end_inset
18411
18412
18413 \family typewriter
18414 -slides
18415 \family default
18416
18417 \begin_inset Quotes erd
18418 \end_inset
18419
18420  in its name, comment it back out, then uncomment 
18421 \begin_inset Quotes eld
18422 \end_inset
18423
18424
18425 \family typewriter
18426
18427 \backslash
18428 onlynotes{
18429 \backslash
18430 notes}
18431 \family default
18432
18433 \begin_inset Quotes erd
18434 \end_inset
18435
18436  and print to a 
18437 \begin_inset Quotes eld
18438 \end_inset
18439
18440
18441 \family typewriter
18442 *-notes.ps
18443 \family default
18444
18445 \begin_inset Quotes erd
18446 \end_inset
18447
18448  file.
18449  I can then send either file to a printer, loading transparencies or plain
18450  paper as appropriate.
18451 \end_layout
18452
18453 \begin_layout Standard
18454 You can also provide other arguments to the 
18455 \begin_inset Quotes eld
18456 \end_inset
18457
18458
18459 \family typewriter
18460
18461 \backslash
18462 onlyslides{}
18463 \family default
18464
18465 \begin_inset Quotes erd
18466 \end_inset
18467
18468  and 
18469 \begin_inset Quotes eld
18470 \end_inset
18471
18472
18473 \family typewriter
18474
18475 \backslash
18476 onlynotes{}
18477 \family default
18478
18479 \begin_inset Quotes erd
18480 \end_inset
18481
18482  commands.
18483  See a good \SpecialChar LaTeX
18484  book for details.
18485 \end_layout
18486
18487 \begin_layout Subsection
18488 The 
18489 \family sans
18490 slides
18491 \family default
18492  Class Template File
18493 \end_layout
18494
18495 \begin_layout Standard
18496 I have also provided a template file, 
18497 \begin_inset Quotes eld
18498 \end_inset
18499
18500
18501 \family typewriter
18502 slides.lyx
18503 \family default
18504
18505 \begin_inset Quotes erd
18506 \end_inset
18507
18508 , with the 
18509 \family sans
18510 slides
18511 \family default
18512  class.
18513  To use it, begin your new presentation with 
18514 \family sans
18515 File\SpecialChar menuseparator
18516 New
18517 \begin_inset space ~
18518 \end_inset
18519
18520 from
18521 \begin_inset space ~
18522 \end_inset
18523
18524 Template
18525 \family default
18526 .
18527  Your new \SpecialChar LyX
18528  presentation file will contain an example 
18529 \family sans
18530 Slide
18531 \family default
18532  – 
18533 \family sans
18534 Overlay
18535 \family default
18536  – 
18537 \family sans
18538 Note
18539 \family default
18540  triplet.
18541  The 
18542 \family sans
18543 Slide
18544 \family default
18545  and 
18546 \family sans
18547 Overlay
18548 \family default
18549  additionally contain an example of the use of 
18550 \family sans
18551 InvisibleText
18552 \family default
18553  and 
18554 \family sans
18555 VisibleText
18556 \family default
18557 .
18558  Lastly, the preamble will contain:
18559 \end_layout
18560
18561 \begin_layout LyX-Code
18562 % Uncomment to print out only slides and overlays
18563 \end_layout
18564
18565 \begin_layout LyX-Code
18566 %
18567 \end_layout
18568
18569 \begin_layout LyX-Code
18570 %
18571 \backslash
18572 onlyslides{
18573 \backslash
18574 slides}
18575 \begin_inset Newline newline
18576 \end_inset
18577
18578  
18579 \end_layout
18580
18581 \begin_layout LyX-Code
18582 % Uncomment to print out only notes
18583 \end_layout
18584
18585 \begin_layout LyX-Code
18586 %
18587 \end_layout
18588
18589 \begin_layout LyX-Code
18590 %
18591 \backslash
18592 onlynotes{
18593 \backslash
18594 notes}
18595 \end_layout
18596
18597 \begin_layout Standard
18598 One final thing: I created this class to support the \SpecialChar LaTeX2e
18599  
18600 \begin_inset Quotes eld
18601 \end_inset
18602
18603
18604 \noun on
18605 Sli\SpecialChar TeX
18606
18607 \noun default
18608  emulation
18609 \begin_inset Quotes erd
18610 \end_inset
18611
18612  class, one of the built-in \SpecialChar LaTeX2e
18613  classes.
18614  Neither I nor the rest of the \SpecialChar LyX
18615  Team endorse or oppose the use of this built-in
18616  slide class.
18617  It's here if you want it or need it.
18618  There exist other \SpecialChar LaTeX2e
18619  classes for creating presentations, such as the 
18620 \family sans
18621 Foils
18622 \family default
18623  class [see section
18624 \begin_inset space ~
18625 \end_inset
18626
18627
18628 \begin_inset CommandInset ref
18629 LatexCommand ref
18630 reference "sec:foiltex"
18631
18632 \end_inset
18633
18634 ] or the 
18635 \begin_inset Quotes eld
18636 \end_inset
18637
18638
18639 \family typewriter
18640 seminar
18641 \family default
18642
18643 \begin_inset Quotes erd
18644 \end_inset
18645
18646  package [present on some \SpecialChar TeX
18647  distributions].
18648  The latter is not yet supported under \SpecialChar LyX
18649 .
18650 \begin_inset Foot
18651 status collapsed
18652
18653 \begin_layout Plain Layout
18654 Perhaps you can take on the task\SpecialChar ldots
18655
18656 \end_layout
18657
18658 \end_inset
18659
18660  I know nothing about these other classes.
18661  Try them out to see what sort of alternative they provide.
18662 \end_layout
18663
18664 \begin_layout Chapter
18665 \SpecialChar LyX
18666  Features needing Extra Software
18667 \end_layout
18668
18669 \begin_layout Section
18670 Checking \SpecialChar TeX
18671
18672 \end_layout
18673
18674 \begin_layout Standard
18675 by 
18676 \noun on
18677 Asger Alstrup
18678 \end_layout
18679
18680 \begin_layout Subsection
18681 Introduction
18682 \end_layout
18683
18684 \begin_layout Standard
18685 If you have the 
18686 \family typewriter
18687 chktex
18688 \family default
18689  program installed
18690 \begin_inset Foot
18691 status collapsed
18692
18693 \begin_layout Plain Layout
18694
18695 \family typewriter
18696 chktex
18697 \family default
18698  is not yet available when you are using the \SpecialChar LaTeX
18699  distribution MiK\SpecialChar TeX
18700 .
18701 \end_layout
18702
18703 \end_inset
18704
18705 , you'll find in the 
18706 \family sans
18707 Tools
18708 \family default
18709  menu the entry: 
18710 \family sans
18711 Check
18712 \begin_inset space ~
18713 \end_inset
18714
18715 TeX
18716 \family default
18717 .
18718  You can get 
18719 \family typewriter
18720 chktex
18721 \family default
18722  from CTAN,
18723 \begin_inset Newline newline
18724 \end_inset
18725
18726
18727 \begin_inset CommandInset href
18728 LatexCommand href
18729 target "https://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
18730 literal "false"
18731
18732 \end_inset
18733
18734 .
18735 \end_layout
18736
18737 \begin_layout Standard
18738 The 
18739 \family sans
18740 Chk\SpecialChar TeX
18741
18742 \family default
18743  package is a program that was written by 
18744 \begin_inset Flex Noun
18745 status collapsed
18746
18747 \begin_layout Plain Layout
18748 Jens T.
18749 \begin_inset space ~
18750 \end_inset
18751
18752 Berger Thielemann
18753 \end_layout
18754
18755 \end_inset
18756
18757  in frustration because some constructs in \SpecialChar LaTeX
18758  are sometimes non-intuitive,
18759  and easy to forget.
18760  The program runs over your \SpecialChar LaTeX
18761  file, checks the integrity of the file, and
18762  flags some common errors.
18763  In other technical words, it is 
18764 \family typewriter
18765 lint
18766 \family default
18767  for \SpecialChar LaTeX
18768 .
18769 \end_layout
18770
18771 \begin_layout Standard
18772 Well, what is a syntax checker doing in \SpecialChar LyX
18773  which is supposed to produce correct
18774  \SpecialChar LaTeX
18775  anyways? The answer is simple: Just as 
18776 \family typewriter
18777 Lint
18778 \family default
18779  not only checks the 
18780 \emph on
18781 syntax
18782 \emph default
18783  of C programs, but also does 
18784 \emph on
18785 semantic
18786 \emph default
18787  checks for type-errors, 
18788 \family sans
18789 Chk\SpecialChar TeX
18790
18791 \family default
18792  catches some common 
18793 \emph on
18794 typographic
18795 \emph default
18796  errors, in addition to the syntactical ones.
18797  Specifically, 
18798 \family sans
18799 Chk\SpecialChar TeX
18800
18801 \family default
18802  is capable of detecting several common errors, such as
18803 \end_layout
18804
18805 \begin_layout Itemize
18806 Ellipsis detection:
18807 \begin_inset Newline newline
18808 \end_inset
18809
18810 Use \SpecialChar ldots
18811  instead of ...
18812 \end_layout
18813
18814 \begin_layout Itemize
18815 No space in front of/after parenthesis:
18816 \begin_inset Newline newline
18817 \end_inset
18818
18819 ( wrong spacing )
18820 \end_layout
18821
18822 \begin_layout Itemize
18823 Enforcement of normal space after common abbreviations:
18824 \begin_inset Newline newline
18825 \end_inset
18826
18827 e.
18828 \begin_inset space \thinspace{}
18829 \end_inset
18830
18831 g.
18832 \begin_inset space \space{}
18833 \end_inset
18834
18835 is too wide spacing.
18836 \end_layout
18837
18838 \begin_layout Itemize
18839 Enforcement of end-of-sentence space when the last sentence ends with a
18840  capital letter:
18841 \begin_inset Newline newline
18842 \end_inset
18843
18844 This is a TEST.
18845  And this is wrong spacing.
18846 \end_layout
18847
18848 \begin_layout Itemize
18849 Space in front of labels and similar commands:
18850 \begin_inset Newline newline
18851 \end_inset
18852
18853 The label should stick right up to the text to avoid falling to a wrong
18854  page.
18855  
18856 \begin_inset CommandInset label
18857 LatexCommand label
18858 name "sec:chktex"
18859
18860 \end_inset
18861
18862  
18863 \begin_inset Foot
18864 status collapsed
18865
18866 \begin_layout Plain Layout
18867 This footnote is in danger of falling off to a wrong page
18868 \end_layout
18869
18870 \end_inset
18871
18872  The label is separated too much.
18873 \end_layout
18874
18875 \begin_layout Itemize
18876 Space in front of references, instead of hard spaces:
18877 \begin_inset Newline newline
18878 \end_inset
18879
18880 If you have bad luck, the text will break right between the referenced text
18881  and reference number, and that's a pity.
18882  See section 
18883 \begin_inset CommandInset ref
18884 LatexCommand ref
18885 reference "sec:chktex"
18886
18887 \end_inset
18888
18889 .
18890 \end_layout
18891
18892 \begin_layout Itemize
18893 Use of 
18894 \begin_inset Quotes eld
18895 \end_inset
18896
18897 x
18898 \begin_inset Quotes erd
18899 \end_inset
18900
18901  instead of 
18902 \begin_inset Formula $\times$
18903 \end_inset
18904
18905  between numbers:
18906 \begin_inset Newline newline
18907 \end_inset
18908
18909 2x2 looks cheap compared to 
18910 \begin_inset Formula $2\times2$
18911 \end_inset
18912
18913 .
18914 \end_layout
18915
18916 \begin_layout Standard
18917 and more \SpecialChar ldots
18918  It is an invaluable tool when you are 
18919 \begin_inset Quotes eld
18920 \end_inset
18921
18922 finishing up
18923 \begin_inset Quotes erd
18924 \end_inset
18925
18926  your document before printing, and you should run it right after the obligatory
18927  spelling check, and before you go fine tuning the typesetting.
18928 \end_layout
18929
18930 \begin_layout Subsection
18931 How to use it
18932 \end_layout
18933
18934 \begin_layout Standard
18935 If you have the program installed, usage is as simple as choosing 
18936 \family sans
18937 Tools\SpecialChar menuseparator
18938 Check
18939 \begin_inset space ~
18940 \end_inset
18941
18942 TeX
18943 \family default
18944 .
18945  This will make \SpecialChar LyX
18946  generate a \SpecialChar LaTeX
18947  file of your document, start 
18948 \family sans
18949 Chk\SpecialChar TeX
18950
18951 \family default
18952  to check it, and then make \SpecialChar LyX
18953  insert 
18954 \begin_inset Quotes eld
18955 \end_inset
18956
18957 error boxes
18958 \begin_inset Quotes erd
18959 \end_inset
18960
18961  with the warnings from 
18962 \family sans
18963 Chk\SpecialChar TeX
18964
18965 \family default
18966 , if there were any.
18967  The warnings will be placed close to the point of the mistake, and you
18968  can quickly find them by using the 
18969 \family sans
18970 Navigate\SpecialChar menuseparator
18971 Error
18972 \family default
18973  menu item, or the shortcut key 
18974 \family sans
18975 C-g
18976 \family default
18977  from the default 
18978 \family typewriter
18979 cua
18980 \family default
18981  bind file.
18982  Open the error boxes by clicking on them with the mouse, or use the shortcut
18983  key 
18984 \family sans
18985 C-i
18986 \family default
18987  from 
18988 \family typewriter
18989 cua
18990 \family default
18991  bindings, or the corresponding 
18992 \family sans
18993 C-o
18994 \family default
18995  for the alternate 
18996 \family typewriter
18997 emacs
18998 \family default
18999  bind file.
19000  Read the warning and correct the mistake, if it is a mistake.
19001  If you have trouble understanding what the warning is about, you can safely
19002  ignore it.
19003  Remember that there is a hidden layer between the document on screen and
19004  the technical details in invoking 
19005 \family sans
19006 Chk\SpecialChar TeX
19007
19008 \family default
19009 , and this gap can make some warnings seem arcane or just plain silly.
19010 \end_layout
19011
19012 \begin_layout Standard
19013 This document is an excellent testing bed for the feature, and it should
19014  provide quite a few warnings for you to fiddle with.
19015  Since computers are only so smart, expect most of the warnings to be false
19016  alarms, though.
19017 \end_layout
19018
19019 \begin_layout Subsection
19020 How to fine tune it
19021 \end_layout
19022
19023 \begin_layout Standard
19024 Sometimes, you'll find that 
19025 \family sans
19026 Chk\SpecialChar TeX
19027
19028 \family default
19029  makes more noise than suits your mood.
19030  Then you can choose not to use it, wait until your mood changes, or try
19031  to customize 
19032 \family sans
19033 Chk\SpecialChar TeX
19034
19035 \family default
19036  to get better along with you.
19037 \end_layout
19038
19039 \begin_layout Standard
19040 Although 
19041 \family sans
19042 Chk\SpecialChar TeX
19043
19044 \family default
19045  
19046 \emph on
19047 is
19048 \emph default
19049  very configurable and extensible, you should not expect to solve all problems
19050  with 
19051 \family sans
19052 Chk\SpecialChar TeX
19053
19054 \family default
19055  in \SpecialChar LyX
19056  this way.
19057  Since \SpecialChar LyX
19058  has to generate a somewhat special \SpecialChar LaTeX
19059  file to be able to match the
19060  line numbers from the 
19061 \family sans
19062 Chk\SpecialChar TeX
19063
19064 \family default
19065  output
19066 \begin_inset Foot
19067 status collapsed
19068
19069 \begin_layout Plain Layout
19070 You can inspect the specific output from 
19071 \family sans
19072 chktex
19073 \family default
19074  by using 
19075 \family sans
19076 Document\SpecialChar menuseparator
19077 \SpecialChar LaTeX
19078
19079 \begin_inset space ~
19080 \end_inset
19081
19082 Log
19083 \family default
19084  right after a 
19085 \family sans
19086 chktex
19087 \family default
19088  run.
19089 \end_layout
19090
19091 \end_inset
19092
19093  to the internal document structure, some of the warnings will not appear
19094  correctly.
19095  There are two things you can do about this:
19096 \end_layout
19097
19098 \begin_layout Itemize
19099 Fine tune the 
19100 \family sans
19101 Chk\SpecialChar TeX
19102
19103 \family default
19104  invocation command line in 
19105 \begin_inset Flex Noun
19106 status collapsed
19107
19108 \begin_layout Plain Layout
19109 Tools\SpecialChar menuseparator
19110 Preferences\SpecialChar menuseparator
19111 Output\SpecialChar menuseparator
19112 LaTeX\SpecialChar menuseparator
19113 CheckTeX command
19114 \end_layout
19115
19116 \end_inset
19117
19118 , or the global 
19119 \family sans
19120 Chk\SpecialChar TeX
19121
19122 \family default
19123  installation configuration file (usually with the file 
19124 \family typewriter
19125 chktexrc
19126 \family default
19127 ).
19128  See below to learn what warnings can be enabled and disabled on the command
19129  line.
19130 \end_layout
19131
19132 \begin_layout Itemize
19133 Export your document as a raw \SpecialChar LaTeX
19134  file using 
19135 \family sans
19136 File\SpecialChar menuseparator
19137 Export\SpecialChar menuseparator
19138 \SpecialChar LaTeX
19139
19140 \family default
19141  and run 
19142 \family typewriter
19143 chktex
19144 \family default
19145  manually on that.
19146  Invoked in this way, it can be a hassle to find the corresponding place
19147  in the document inside \SpecialChar LyX
19148 , but with a little patience, you should be able
19149  to do it.
19150 \end_layout
19151
19152 \begin_layout Standard
19153 Here follows the warning messages that can be enabled and disabled in 
19154 \family sans
19155 Preferences
19156 \family default
19157 .
19158  Use 
19159 \family typewriter
19160 -n#
19161 \family default
19162  to disable a warning, and 
19163 \family typewriter
19164 -w#
19165 \family default
19166  to enable a warning.
19167  The emphasized entries are disabled by default, because the default is
19168  "
19169 \family typewriter
19170 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
19171 \family default
19172 ".
19173 \end_layout
19174
19175 \begin_layout Standard
19176 Notice that you should only use the options that enable and disable warnings,
19177  because \SpecialChar LyX
19178  relies on some of the other command line parameters to be set
19179  in a specific way to have a chance to communicate with 
19180 \family typewriter
19181 chktex
19182 \family default
19183 .
19184 \end_layout
19185
19186 \begin_layout Enumerate
19187
19188 \size small
19189 \emph on
19190 Command terminated with space.
19191 \end_layout
19192
19193 \begin_layout Enumerate
19194
19195 \size small
19196 Non-breaking space (
19197 \begin_inset Quotes eld
19198 \end_inset
19199
19200
19201 \family typewriter
19202 ~
19203 \family default
19204
19205 \begin_inset Quotes erd
19206 \end_inset
19207
19208 ) should have been used.
19209 \end_layout
19210
19211 \begin_layout Enumerate
19212
19213 \size small
19214 \emph on
19215 You should enclose the previous parenthesis with 
19216 \begin_inset Quotes eld
19217 \end_inset
19218
19219
19220 \family typewriter
19221 {}
19222 \family default
19223
19224 \begin_inset Quotes erd
19225 \end_inset
19226
19227 .
19228 \end_layout
19229
19230 \begin_layout Enumerate
19231
19232 \size small
19233 Italic correction (
19234 \begin_inset Quotes eld
19235 \end_inset
19236
19237
19238 \family typewriter
19239
19240 \backslash
19241 /
19242 \family default
19243
19244 \begin_inset Quotes erd
19245 \end_inset
19246
19247 ) found in non-italic buffer.
19248 \end_layout
19249
19250 \begin_layout Enumerate
19251
19252 \size small
19253 Italic correction (
19254 \begin_inset Quotes eld
19255 \end_inset
19256
19257
19258 \family typewriter
19259
19260 \backslash
19261 /
19262 \family default
19263
19264 \begin_inset Quotes erd
19265 \end_inset
19266
19267 ) found more than once.
19268 \end_layout
19269
19270 \begin_layout Enumerate
19271
19272 \size small
19273 \emph on
19274 No italic correction (
19275 \begin_inset Quotes eld
19276 \end_inset
19277
19278
19279 \family typewriter
19280
19281 \backslash
19282 /
19283 \family default
19284
19285 \begin_inset Quotes erd
19286 \end_inset
19287
19288 ) found.
19289 \end_layout
19290
19291 \begin_layout Enumerate
19292
19293 \size small
19294 Accent command 
19295 \begin_inset Quotes eld
19296 \end_inset
19297
19298
19299 \family typewriter
19300 cmd
19301 \family default
19302
19303 \begin_inset Quotes erd
19304 \end_inset
19305
19306  needs use of 
19307 \begin_inset Quotes eld
19308 \end_inset
19309
19310
19311 \family typewriter
19312 cmd
19313 \family default
19314
19315 \begin_inset Quotes erd
19316 \end_inset
19317
19318 .
19319 \end_layout
19320
19321 \begin_layout Enumerate
19322
19323 \size small
19324 Wrong length of dash may have been used.
19325 \end_layout
19326
19327 \begin_layout Enumerate
19328
19329 \size small
19330 \emph on
19331 \begin_inset Quotes eld
19332 \end_inset
19333
19334
19335 \family typewriter
19336 %s
19337 \family default
19338
19339 \begin_inset Quotes erd
19340 \end_inset
19341
19342  expected, found 
19343 \begin_inset Quotes eld
19344 \end_inset
19345
19346
19347 \family typewriter
19348 %s
19349 \family default
19350
19351 \begin_inset Quotes erd
19352 \end_inset
19353
19354 .
19355 \end_layout
19356
19357 \begin_layout Enumerate
19358
19359 \size small
19360 Solo 
19361 \begin_inset Quotes eld
19362 \end_inset
19363
19364
19365 \family typewriter
19366 %s
19367 \family default
19368
19369 \begin_inset Quotes erd
19370 \end_inset
19371
19372  found.
19373 \end_layout
19374
19375 \begin_layout Enumerate
19376
19377 \size small
19378 You should use 
19379 \begin_inset Quotes eld
19380 \end_inset
19381
19382
19383 \family typewriter
19384 %s
19385 \family default
19386
19387 \begin_inset Quotes erd
19388 \end_inset
19389
19390  to achieve an ellipsis.
19391 \end_layout
19392
19393 \begin_layout Enumerate
19394
19395 \size small
19396 Inter-word spacing (
19397 \begin_inset Quotes eld
19398 \end_inset
19399
19400
19401 \family typewriter
19402
19403 \backslash
19404
19405 \family default
19406  
19407 \begin_inset Quotes eld
19408 \end_inset
19409
19410 ) should perhaps be used.
19411 \end_layout
19412
19413 \begin_layout Enumerate
19414
19415 \size small
19416 Inter-sentence spacing (
19417 \begin_inset Quotes eld
19418 \end_inset
19419
19420
19421 \family typewriter
19422
19423 \backslash
19424 @
19425 \family default
19426
19427 \begin_inset Quotes erd
19428 \end_inset
19429
19430 ) should perhaps be used.
19431 \end_layout
19432
19433 \begin_layout Enumerate
19434
19435 \size small
19436 Could not find argument for command.
19437 \end_layout
19438
19439 \begin_layout Enumerate
19440
19441 \size small
19442 No match found for 
19443 \begin_inset Quotes eld
19444 \end_inset
19445
19446
19447 \family typewriter
19448 %s
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 Math mode still on at end of \SpecialChar LaTeX
19461  file.
19462 \end_layout
19463
19464 \begin_layout Enumerate
19465
19466 \size small
19467 Number of 
19468 \begin_inset Quotes eld
19469 \end_inset
19470
19471
19472 \family typewriter
19473 char
19474 \family default
19475
19476 \begin_inset Quotes erd
19477 \end_inset
19478
19479  doesn't match the number of 
19480 \begin_inset Quotes eld
19481 \end_inset
19482
19483
19484 \family typewriter
19485 char
19486 \family default
19487
19488 \begin_inset Quotes erd
19489 \end_inset
19490
19491 .
19492 \end_layout
19493
19494 \begin_layout Enumerate
19495
19496 \size small
19497 You should use either 
19498 \family typewriter
19499
19500 \begin_inset Quotes eld
19501 \end_inset
19502
19503
19504 \family default
19505  or 
19506 \family typewriter
19507
19508 \begin_inset Quotes erd
19509 \end_inset
19510
19511
19512 \family default
19513  as an alternative to 
19514 \begin_inset Quotes eld
19515 \end_inset
19516
19517
19518 \family typewriter
19519 "
19520 \family default
19521
19522 \begin_inset Quotes erd
19523 \end_inset
19524
19525 .
19526 \end_layout
19527
19528 \begin_layout Enumerate
19529
19530 \size small
19531 You should use "
19532 \family typewriter
19533 '
19534 \family default
19535 " (ASCII 39) instead of "
19536 \family typewriter
19537 ´
19538 \family default
19539 " (ASCII 180).
19540 \end_layout
19541
19542 \begin_layout Enumerate
19543
19544 \size small
19545 User-specified pattern found.
19546 \end_layout
19547
19548 \begin_layout Enumerate
19549
19550 \size small
19551 This command might not be intended.
19552 \end_layout
19553
19554 \begin_layout Enumerate
19555
19556 \size small
19557 \emph on
19558 Comment displayed.
19559 \end_layout
19560
19561 \begin_layout Enumerate
19562
19563 \size small
19564 Either 
19565 \family typewriter
19566 ''
19567 \backslash
19568 ,'
19569 \family default
19570  or 
19571 \family typewriter
19572 '
19573 \backslash
19574 ,''
19575 \family default
19576  will look better.
19577 \end_layout
19578
19579 \begin_layout Enumerate
19580
19581 \size small
19582 Delete this space to maintain correct page references.
19583 \end_layout
19584
19585 \begin_layout Enumerate
19586
19587 \size small
19588 \emph on
19589 You might wish to put this between a pair of 
19590 \begin_inset Quotes eld
19591 \end_inset
19592
19593
19594 \family typewriter
19595 {}
19596 \family default
19597
19598 \begin_inset Quotes erd
19599 \end_inset
19600
19601 .
19602 \end_layout
19603
19604 \begin_layout Enumerate
19605
19606 \size small
19607 You ought to remove spaces in front of punctuation.
19608 \end_layout
19609
19610 \begin_layout Enumerate
19611
19612 \size small
19613 Could not execute \SpecialChar LaTeX
19614  command.
19615 \end_layout
19616
19617 \begin_layout Enumerate
19618
19619 \size small
19620 Don't use 
19621 \family typewriter
19622
19623 \backslash
19624 /
19625 \family default
19626  in front of small punctuation.
19627 \end_layout
19628
19629 \begin_layout Enumerate
19630
19631 \family typewriter
19632 \size small
19633 $
19634 \backslash
19635 times$
19636 \family default
19637  may look prettier here.
19638 \end_layout
19639
19640 \begin_layout Enumerate
19641
19642 \size small
19643 \emph on
19644 Multiple spaces detected in output.
19645 \end_layout
19646
19647 \begin_layout Enumerate
19648
19649 \size small
19650 This text may be ignored.
19651 \end_layout
19652
19653 \begin_layout Enumerate
19654
19655 \size small
19656 Use 
19657 \family typewriter
19658
19659 \begin_inset Quotes eld
19660 \end_inset
19661
19662
19663 \family default
19664  to begin quotation, not 
19665 \family typewriter
19666 '
19667 \family default
19668 .
19669 \end_layout
19670
19671 \begin_layout Enumerate
19672
19673 \size small
19674 Use 
19675 \family typewriter
19676 '
19677 \family default
19678  to end quotation, not 
19679 \family typewriter
19680
19681 \begin_inset Quotes eld
19682 \end_inset
19683
19684
19685 \family default
19686 .
19687 \end_layout
19688
19689 \begin_layout Enumerate
19690
19691 \size small
19692 Don't mix quotes.
19693 \end_layout
19694
19695 \begin_layout Enumerate
19696
19697 \size small
19698 You should perhaps use 
19699 \begin_inset Quotes eld
19700 \end_inset
19701
19702
19703 \family typewriter
19704 cmd
19705 \family default
19706
19707 \begin_inset Quotes erd
19708 \end_inset
19709
19710  instead.
19711 \end_layout
19712
19713 \begin_layout Enumerate
19714
19715 \size small
19716 You should put a space in front of/after parenthesis.
19717 \end_layout
19718
19719 \begin_layout Enumerate
19720
19721 \size small
19722 You should avoid spaces in front of/after parenthesis.
19723 \end_layout
19724
19725 \begin_layout Enumerate
19726
19727 \size small
19728 \emph on
19729 You should not use punctuation in front of/after quotes.
19730 \end_layout
19731
19732 \begin_layout Enumerate
19733
19734 \size small
19735 Double space found.
19736 \end_layout
19737
19738 \begin_layout Enumerate
19739
19740 \size small
19741 You should put punctuation outside inner/inside display math mode.
19742 \end_layout
19743
19744 \begin_layout Enumerate
19745
19746 \size small
19747 You ought to not use primitive \SpecialChar TeX
19748  in \SpecialChar LaTeX
19749  code.
19750 \end_layout
19751
19752 \begin_layout Enumerate
19753
19754 \size small
19755 You should remove spaces in front of 
19756 \begin_inset Quotes eld
19757 \end_inset
19758
19759
19760 \family typewriter
19761 %s
19762 \family default
19763
19764 \begin_inset Quotes erd
19765 \end_inset
19766
19767
19768 \end_layout
19769
19770 \begin_layout Enumerate
19771
19772 \size small
19773 \begin_inset Quotes eld
19774 \end_inset
19775
19776
19777 \family typewriter
19778 %s
19779 \family default
19780
19781 \begin_inset Quotes erd
19782 \end_inset
19783
19784  is normally not followed by 
19785 \begin_inset Quotes eld
19786 \end_inset
19787
19788
19789 \family typewriter
19790 %c
19791 \family default
19792
19793 \begin_inset Quotes erd
19794 \end_inset
19795
19796 .
19797 \end_layout
19798
19799 \begin_layout Standard
19800 In later versions of \SpecialChar LyX
19801 , we hope to provide a more complete interface to this
19802  tool (and it's smaller cousin 
19803 \family typewriter
19804 lacheck
19805 \family default
19806 ) to exploit the full power of it.
19807  But it's not exactly useless as it is now: go try it on one of your existing
19808  documents of a certain length and be surprised.
19809 \end_layout
19810
19811 \begin_layout Section
19812 Version Control in \SpecialChar LyX
19813
19814 \end_layout
19815
19816 \begin_layout Standard
19817 by
19818 \noun on
19819  Lars Gullik Bjønnes 
19820 \noun default
19821 and 
19822 \noun on
19823 Pavel Sanda
19824 \end_layout
19825
19826 \begin_layout Subsection
19827 Introduction
19828 \end_layout
19829
19830 \begin_layout Standard
19831 \SpecialChar LyX
19832  supports some of the most basic RCS/CVS/SVN/GIT commands.
19833  If you need something a bit more sophisticated you will have to do that
19834  manually in a terminal.
19835 \end_layout
19836
19837 \begin_layout Standard
19838 Also note that CVS support is not as good as subversion support, so we advise
19839  using SVN instead.
19840  A good place to start learning Subversion is the SVN Book
19841 \begin_inset Foot
19842 status collapsed
19843
19844 \begin_layout Plain Layout
19845 \begin_inset CommandInset href
19846 LatexCommand href
19847 target "http://svnbook.red-bean.com/"
19848 literal "false"
19849
19850 \end_inset
19851
19852
19853 \end_layout
19854
19855 \end_inset
19856
19857 .
19858  In the case of RCS you should read 
19859 \begin_inset Quotes eld
19860 \end_inset
19861
19862 rcsintro
19863 \begin_inset Quotes erd
19864 \end_inset
19865
19866  (a man file, read it with 
19867 \family typewriter
19868 man rcsintro
19869 \family default
19870 ).
19871  This file describes all the basic features of RCS.
19872  You should especially notice the comment about a RCS directory, and the
19873  notion of a master RCS file (the file ending in 
19874 \family typewriter
19875 ,v
19876 \family default
19877 ).
19878 \end_layout
19879
19880 \begin_layout Standard
19881 Before you begin to use the version control features in \SpecialChar LyX
19882 , you should be
19883  familiar with RCS/CVS/SVN/GIT usage.
19884  The implementation in \SpecialChar LyX
19885  assumes a recent version of the GNU RCS or CVS/SVN
19886  package — no guarantees are made for older versions.
19887  Most of the log messages are not currently displayed after operations —
19888  you can check them in the Messages pane if you are unsure.
19889  Regular users of version control will appreciate the VC toolbar, which
19890  can be enabled via 
19891 \family sans
19892 View\SpecialChar menuseparator
19893 Toolbars\SpecialChar menuseparator
19894 Version
19895 \begin_inset space ~
19896 \end_inset
19897
19898 Control
19899 \family default
19900 .
19901 \end_layout
19902
19903 \begin_layout Standard
19904 For introducing your own external commands consult 
19905 \begin_inset Flex Code
19906 status collapsed
19907
19908 \begin_layout Plain Layout
19909 vc-command
19910 \end_layout
19911
19912 \end_inset
19913
19914  in the manual 
19915 \emph on
19916 \SpecialChar LyX
19917  Functions
19918 \emph default
19919 .
19920 \end_layout
19921
19922 \begin_layout Standard
19923 It is strongly recommended to store documents in uncompressed format if
19924  using version control (uncheck 
19925 \family sans
19926 Document\SpecialChar menuseparator
19927 Compressed
19928 \family default
19929  if it is checked): Uncompressed LyX documents are text files and therefore
19930  for merging two different versions by version control systems.
19931  Compressed LyX documents are binary files, which cannot be merged by version
19932  control systems.
19933 \end_layout
19934
19935 \begin_layout Subsection
19936 RCS commands in \SpecialChar LyX
19937
19938 \end_layout
19939
19940 \begin_layout Standard
19941 The following sections describe the RCS commands supported by \SpecialChar LyX
19942 .
19943  You can find them in the 
19944 \family sans
19945 File\SpecialChar menuseparator
19946 Version
19947 \begin_inset space ~
19948 \end_inset
19949
19950 Control
19951 \family default
19952  submenu.
19953  \SpecialChar LyX
19954  was tested against RCS 5.7/5.8.
19955 \end_layout
19956
19957 \begin_layout Subsubsection
19958
19959 \family sans
19960 Register
19961 \end_layout
19962
19963 \begin_layout Standard
19964 If your document is not under revision control, this is the only item shown
19965  in the menu.
19966  And if it is under revision control, the 
19967 \family sans
19968 Register
19969 \family default
19970  item is not visible.
19971  
19972 \end_layout
19973
19974 \begin_layout Standard
19975 This command registers your document with RCS (unless you are under the
19976  directory managed by CVS)\SpecialChar endofsentence
19977  You are asked interactively to supply an initial
19978  description of the document.
19979  The document is now set in Read-Only mode and you have to 
19980 \family sans
19981 Check
19982 \begin_inset space ~
19983 \end_inset
19984
19985 Out
19986 \begin_inset space ~
19987 \end_inset
19988
19989 For
19990 \begin_inset space ~
19991 \end_inset
19992
19993 Edit
19994 \family default
19995 , before making any changes to it.
19996  A document under revision control has a 
19997 \begin_inset Quotes eld
19998 \end_inset
19999
20000 [RCS:<version> <locker>]
20001 \begin_inset Quotes erd
20002 \end_inset
20003
20004  item tagged to the filename in the minibuffer.
20005 \end_layout
20006
20007 \begin_layout Standard
20008 RCS command that is run:
20009 \end_layout
20010
20011 \begin_layout LyX-Code
20012
20013 \family typewriter
20014 ci -q -u -i -t-"<initial description>" <file-name>
20015 \end_layout
20016
20017 \begin_layout Standard
20018 Read 
20019 \family typewriter
20020 man ci
20021 \family default
20022  to understand the switches.
20023  
20024 \end_layout
20025
20026 \begin_layout Subsubsection
20027
20028 \family sans
20029 Check In Changes
20030 \end_layout
20031
20032 \begin_layout Standard
20033 When you are finished editing a file, you check in your changes.
20034  When you do this, you are asked for a description of the changes.
20035  This is stored in the history log.
20036  The version number is bumped, your changes are applied to the master RCS
20037  file, the document is unlocked and set to Read-Only mode.
20038 \end_layout
20039
20040 \begin_layout Itemize
20041 RCS command: 
20042 \family typewriter
20043 ci -q -u -m"<description>" <file-name>
20044 \end_layout
20045
20046 \begin_layout Subsubsection
20047
20048 \family sans
20049 Check Out For Edit
20050 \end_layout
20051
20052 \begin_layout Standard
20053 By doing this you lock the document so that only you can edit it.
20054  This will also make the document Read-Write only for you.
20055  You will usually continue editing for a while and when you are finished
20056  you check in your changes.
20057  The status line is changed to reflect that you have locked the file.
20058 \end_layout
20059
20060 \begin_layout Itemize
20061 RCS command: 
20062 \family typewriter
20063 co -q -l <file-name>
20064 \end_layout
20065
20066 \begin_layout Subsubsection
20067
20068 \family sans
20069 Revert To Repository Version
20070 \end_layout
20071
20072 \begin_layout Standard
20073 This will discard all changes made to the document since the last check
20074  in.
20075  You get a warning before changes are discarded.
20076 \end_layout
20077
20078 \begin_layout Itemize
20079 RCS command: 
20080 \family typewriter
20081 co -f -u<version> <file-name>
20082 \end_layout
20083
20084 \begin_layout Subsubsection
20085
20086 \family sans
20087 Copy
20088 \end_layout
20089
20090 \begin_layout Standard
20091 This will create a copy of the current document.
20092  Since RCS does not support copy operations natively, the version history
20093  is not preserved, and the copy is added as a new file.
20094  It requires a clean document without any changes since the last checkin.
20095  You are asked for a file name and a description of the copy operation.
20096  After that the copy is created, both locally and in the repository.
20097  If the parent directories of the copied and original document differ, all
20098  relative paths of included files of the copy are adjusted (like in 
20099 \family sans
20100 File\SpecialChar menuseparator
20101 Save As
20102 \family default
20103 \SpecialChar ldots
20104 ).
20105  Finally, the copy is loaded instead of the original document.
20106 \end_layout
20107
20108 \begin_layout Labeling
20109 \labelwidthstring 00.00.0000
20110 RCS
20111 \begin_inset space ~
20112 \end_inset
20113
20114 commands: 
20115 \begin_inset space ~
20116 \end_inset
20117
20118
20119 \begin_inset Newline newline
20120 \end_inset
20121
20122 Copy 
20123 \begin_inset Flex Code
20124 status collapsed
20125
20126 \begin_layout Plain Layout
20127
20128 \family typewriter
20129 \begin_inset Quotes qld
20130 \end_inset
20131
20132 <file-name>
20133 \begin_inset Quotes qld
20134 \end_inset
20135
20136
20137 \end_layout
20138
20139 \end_inset
20140
20141  to 
20142 \begin_inset Flex Code
20143 status collapsed
20144
20145 \begin_layout Plain Layout
20146
20147 \family typewriter
20148 \begin_inset Quotes qld
20149 \end_inset
20150
20151 <new-file-name>
20152 \begin_inset Quotes qld
20153 \end_inset
20154
20155
20156 \end_layout
20157
20158 \end_inset
20159
20160
20161 \begin_inset Newline newline
20162 \end_inset
20163
20164
20165 \begin_inset Flex Code
20166 status collapsed
20167
20168 \begin_layout Plain Layout
20169 ci -q -u 
20170 \family typewriter
20171 -i 
20172 \begin_inset Quotes qld
20173 \end_inset
20174
20175 <new-file-name>
20176 \begin_inset Quotes qld
20177 \end_inset
20178
20179
20180 \end_layout
20181
20182 \end_inset
20183
20184
20185 \end_layout
20186
20187 \begin_layout Subsubsection
20188
20189 \family sans
20190 Undo Last Checkin
20191 \end_layout
20192
20193 \begin_layout Standard
20194 This makes as if the last check in never happened.
20195  No changes are made to the document loaded into \SpecialChar LyX
20196 , but the last version
20197  is removed from the master RCS file.
20198 \end_layout
20199
20200 \begin_layout Itemize
20201 RCS command: 
20202 \family typewriter
20203 rcs -o<version> <file-name>
20204 \end_layout
20205
20206 \begin_layout Subsubsection
20207
20208 \family sans
20209 Show History
20210 \end_layout
20211
20212 \begin_layout Standard
20213 This shows the complete history of the RCS document.
20214  The output of 
20215 \family typewriter
20216 rlog <file-name>
20217 \family default
20218  is shown in a browser.
20219  See 
20220 \family typewriter
20221 man rlog
20222 \family default
20223  for more info.
20224 \end_layout
20225
20226 \begin_layout Subsubsection
20227 Revision info
20228 \end_layout
20229
20230 \begin_layout Standard
20231 \SpecialChar LyX
20232  supports RCS version number, author name, date and time of last commit.
20233  All those are extracted from 
20234 \family typewriter
20235 rlog -r <file-name>
20236 \family default
20237 .
20238  See 
20239 \begin_inset CommandInset ref
20240 LatexCommand ref
20241 reference "subsec:VCS-Revision-Information"
20242
20243 \end_inset
20244
20245  for details.
20246 \end_layout
20247
20248 \begin_layout Subsection
20249 CVS commands in \SpecialChar LyX
20250
20251 \end_layout
20252
20253 \begin_layout Standard
20254 A subset of CVS operations is supported by \SpecialChar LyX
20255 .
20256  You can find the commands in the 
20257 \family sans
20258 File\SpecialChar menuseparator
20259 Version
20260 \begin_inset space ~
20261 \end_inset
20262
20263 Control
20264 \family default
20265  submenu.
20266  The version control system SVN is more powerful, so please use it instead
20267  of CVS if possible.
20268 \end_layout
20269
20270 \begin_layout Subsubsection
20271
20272 \family sans
20273 General CVS usage
20274 \end_layout
20275
20276 \begin_layout Standard
20277 If you start from scratch with CVS you have to create your repository and
20278  checkout the working copy with external tools.
20279  If you're using a client-server setup you may need to login before doing
20280  the first repository checkout.
20281 \end_layout
20282
20283 \begin_layout Standard
20284 If your documents are under revision control and others are using the same
20285  repository problems arise when different changes to the same document at
20286  the same location happen.
20287  Standard CVS repositories don't operate with a file locking mechanism.
20288  This may be surprising, but conflicts only occur if people disagree on
20289  the proper content of the same part of a document.
20290  So, if co-workers are used to communicate regularly, these conflicts occur
20291  rarely.
20292  If they don't communicate they have a fundamental problem anyway.
20293  Nevertheless some people like to work with so called 
20294 \begin_inset Quotes eld
20295 \end_inset
20296
20297 reserved checkouts
20298 \begin_inset Quotes erd
20299 \end_inset
20300
20301 .
20302  If they do so the working copy of all files is readonly when checked out
20303  first and the user starts editing after using a special command to make
20304  the working copy writable.
20305  When the changes are checked in the working copy returns to readonly state.
20306  With \SpecialChar LyX
20307  one has to edit the 
20308 \begin_inset Flex Code
20309 status collapsed
20310
20311 \begin_layout Plain Layout
20312 .cvsrc
20313 \end_layout
20314
20315 \end_inset
20316
20317  file and add the line 
20318 \begin_inset Flex Code
20319 status collapsed
20320
20321 \begin_layout Plain Layout
20322 cvs -r
20323 \end_layout
20324
20325 \end_inset
20326
20327  to work with reserved checkouts.
20328  The benefit is the possibility to see who is using a writable copy of some
20329  document.
20330  It's not guaranteed only one user makes a copy writable.
20331 \end_layout
20332
20333 \begin_layout Standard
20334 \SpecialChar LyX
20335  tries to guess if you're using reserved or non-reserved checkouts.
20336  If your working copy is readonly or it is writable and an additional copy
20337  of your document exists in the CVS/Base sub-directory a reserved otherwise
20338  a non-reserved checkout is assumed.
20339  When a reserved checkout is detected you have to use 
20340 \begin_inset Flex Noun
20341 status collapsed
20342
20343 \begin_layout Plain Layout
20344 Check Out
20345 \end_layout
20346
20347 \end_inset
20348
20349  to make your working copy writable if it's readonly.
20350  After doing so the 
20351 \begin_inset Flex Noun
20352 status collapsed
20353
20354 \begin_layout Plain Layout
20355 Check In
20356 \end_layout
20357
20358 \end_inset
20359
20360  operation is possible and that makes your working copy readonly again after
20361  transferring your changes to the repository.
20362 \end_layout
20363
20364 \begin_layout Standard
20365 More information about CVS can be found here 
20366 \begin_inset Flex URL
20367 status collapsed
20368
20369 \begin_layout Plain Layout
20370
20371 http://www.nongnu.org/cvs
20372 \end_layout
20373
20374 \end_inset
20375
20376  and here 
20377 \begin_inset Flex URL
20378 status collapsed
20379
20380 \begin_layout Plain Layout
20381
20382 http://ximbiot.com/cvs
20383 \end_layout
20384
20385 \end_inset
20386
20387 .
20388 \end_layout
20389
20390 \begin_layout Standard
20391 Read 
20392 \family typewriter
20393 man cvs
20394 \family default
20395  to understand the sub-commands and the switches mentioned below.
20396 \end_layout
20397
20398 \begin_layout Subsubsection
20399
20400 \family sans
20401 Register
20402 \end_layout
20403
20404 \begin_layout Standard
20405 If your document is not under revision control, this is the only item shown
20406  in the menu.
20407  And if it is under revision control, the 
20408 \family sans
20409 Register
20410 \family default
20411  item is not visible.
20412  
20413 \end_layout
20414
20415 \begin_layout Standard
20416 This command registers in CVS your document 
20417 \begin_inset Flex Strong
20418 status collapsed
20419
20420 \begin_layout Plain Layout
20421
20422 \emph on
20423 only
20424 \end_layout
20425
20426 \end_inset
20427
20428  in the case you have already the documents directory under CVS control
20429  (in particular 
20430 \family typewriter
20431 CVS/Entries
20432 \family default
20433  file exists).
20434  This means you have to create or checkout the archive by yourself using
20435  external tools.
20436  (In case you forget that step \SpecialChar LyX
20437  registers the document with RCS.)
20438 \end_layout
20439
20440 \begin_layout Standard
20441 Then you are asked interactively to supply an initial description of the
20442  document.
20443  Don't forget that registered file is not yet checked in.
20444 \end_layout
20445
20446 \begin_layout Standard
20447 CVS command that is run: 
20448 \family typewriter
20449 cvs -q add -m"<entered message>" "<file-name>"
20450 \end_layout
20451
20452 \begin_layout Standard
20453 The term 
20454 \family typewriter
20455 "<file-name>"
20456 \family default
20457  above and for all other CVS commands is an abbreviation for 
20458 \begin_inset Quotes eld
20459 \end_inset
20460
20461 change the current working directory to file location and use the file name
20462  without path component as argument
20463 \begin_inset Quotes erd
20464 \end_inset
20465
20466 .
20467 \end_layout
20468
20469 \begin_layout Subsubsection
20470
20471 \family sans
20472 Check In Changes
20473 \end_layout
20474
20475 \begin_layout Standard
20476 When you are finished editing a file, you commit your changes.
20477  When you do this and you had changed the document, you are asked for a
20478  description of the changes.
20479  After that changes are written to the repository.
20480  In case you didn't change the document and a reserved checkout is detected
20481  the reservation made on 
20482 \begin_inset Flex Noun
20483 status collapsed
20484
20485 \begin_layout Plain Layout
20486 Check Out
20487 \end_layout
20488
20489 \end_inset
20490
20491  is undone.
20492 \end_layout
20493
20494 \begin_layout Labeling
20495 \labelwidthstring 00.00.0000
20496 CVS
20497 \begin_inset space ~
20498 \end_inset
20499
20500 command: 
20501 \begin_inset space ~
20502 \end_inset
20503
20504
20505 \begin_inset Newline newline
20506 \end_inset
20507
20508
20509 \begin_inset Flex Code
20510 status collapsed
20511
20512 \begin_layout Plain Layout
20513 cvs 
20514 \family typewriter
20515 -q commit -m"<description>" "<file-name>"
20516 \end_layout
20517
20518 \end_inset
20519
20520  or
20521 \begin_inset Newline newline
20522 \end_inset
20523
20524
20525 \begin_inset Flex Code
20526 status collapsed
20527
20528 \begin_layout Plain Layout
20529 cvs -q unedit 
20530 \family typewriter
20531 "<file-name>"
20532 \end_layout
20533
20534 \end_inset
20535
20536
20537 \end_layout
20538
20539 \begin_layout Subsubsection
20540
20541 \family sans
20542 Check Out Changes
20543 \end_layout
20544
20545 \begin_layout Standard
20546 When you are sharing a repository with others, you may have to incorporate
20547  their changes into your working copy.
20548 \end_layout
20549
20550 \begin_layout Standard
20551 CVS command: 
20552 \family typewriter
20553 cvs -q update "<file-name>"
20554 \end_layout
20555
20556 \begin_layout Standard
20557 If a readonly checkout is detected the working copy is made writable and
20558  reserved.
20559 \end_layout
20560
20561 \begin_layout Standard
20562 CVS command: 
20563 \family typewriter
20564 cvs -q edit "<file-name>"
20565 \end_layout
20566
20567 \begin_layout Subsubsection
20568
20569 \family sans
20570 Revert To Repository Version
20571 \end_layout
20572
20573 \begin_layout Standard
20574 This will discard all changes made to the document since the last check
20575  in.
20576  You get a warning before changes are discarded.
20577  Firstly the file is deleted, secondly CVS update command is run.
20578 \end_layout
20579
20580 \begin_layout Standard
20581 CVS command: 
20582 \family typewriter
20583 cvs -q update "<file-name>"
20584 \end_layout
20585
20586 \begin_layout Standard
20587 If a reserved checkout is detected and the working copy has no changes only
20588  the reservation is undone.
20589 \end_layout
20590
20591 \begin_layout Standard
20592 CVS command: 
20593 \family typewriter
20594 cvs -q unedit "<file-name>"
20595 \end_layout
20596
20597 \begin_layout Subsubsection
20598
20599 \family sans
20600 Copy
20601 \end_layout
20602
20603 \begin_layout Standard
20604 This will create a copy of the current document.
20605  Since CVS does not support copy operations natively, the version history
20606  is not preserved, and the copy is added as a new file.
20607  It requires a clean document without any changes since the last checkin.
20608  You are asked for a file name and a description of the copy operation.
20609  After that the copy is created, both locally and in the repository.
20610  If the parent directories of the copied and original document differ, all
20611  relative paths of included files of the copy are adjusted (like in 
20612 \family sans
20613 File\SpecialChar menuseparator
20614 Save As
20615 \family default
20616 \SpecialChar ldots
20617 ).
20618  Finally, the copy is loaded instead of the original document.
20619 \end_layout
20620
20621 \begin_layout Labeling
20622 \labelwidthstring 00.00.0000
20623 CVS
20624 \begin_inset space ~
20625 \end_inset
20626
20627 commands: 
20628 \begin_inset space ~
20629 \end_inset
20630
20631
20632 \begin_inset Newline newline
20633 \end_inset
20634
20635 Copy 
20636 \begin_inset Flex Code
20637 status collapsed
20638
20639 \begin_layout Plain Layout
20640 "<file-name>"
20641 \end_layout
20642
20643 \end_inset
20644
20645  to 
20646 \begin_inset Flex Code
20647 status collapsed
20648
20649 \begin_layout Plain Layout
20650 "<new-file-name>"
20651 \end_layout
20652
20653 \end_inset
20654
20655
20656 \begin_inset Newline newline
20657 \end_inset
20658
20659
20660 \begin_inset Flex Code
20661 status collapsed
20662
20663 \begin_layout Plain Layout
20664 cvs -q add "<new-file-name>"
20665 \end_layout
20666
20667 \end_inset
20668
20669
20670 \end_layout
20671
20672 \begin_layout Subsubsection
20673
20674 \family sans
20675 Rename
20676 \end_layout
20677
20678 \begin_layout Standard
20679 This will rename the current document.
20680  Since CVS does not support rename operations natively, the version history
20681  is not preserved, the renamed document is added as a new file, and the
20682  original document is deleted.
20683  It requires a clean document without any changes since the last checkin.
20684  You are asked for a file name and a description of the rename operation.
20685  After that the document is renamed, both locally and in the repository.
20686  If the parent directories of the new and old file names differ, all relative
20687  paths of included files are adjusted (like in 
20688 \family sans
20689 File\SpecialChar menuseparator
20690 Save As
20691 \family default
20692 \SpecialChar ldots
20693 ).
20694  Finally, the document is reloaded using the new name.
20695 \end_layout
20696
20697 \begin_layout Labeling
20698 \labelwidthstring 00.00.0000
20699 CVS
20700 \begin_inset space ~
20701 \end_inset
20702
20703 commands: 
20704 \begin_inset space ~
20705 \end_inset
20706
20707
20708 \begin_inset Newline newline
20709 \end_inset
20710
20711 Rename 
20712 \begin_inset Flex Code
20713 status collapsed
20714
20715 \begin_layout Plain Layout
20716 "<file-name>"
20717 \end_layout
20718
20719 \end_inset
20720
20721  to 
20722 \begin_inset Flex Code
20723 status collapsed
20724
20725 \begin_layout Plain Layout
20726 "<new-file-name>"
20727 \end_layout
20728
20729 \end_inset
20730
20731
20732 \begin_inset Newline newline
20733 \end_inset
20734
20735
20736 \begin_inset Flex Code
20737 status collapsed
20738
20739 \begin_layout Plain Layout
20740 cvs -q add "<new-file-name>"
20741 \end_layout
20742
20743 \end_inset
20744
20745
20746 \begin_inset Newline newline
20747 \end_inset
20748
20749
20750 \begin_inset Flex Code
20751 status collapsed
20752
20753 \begin_layout Plain Layout
20754 cvs -q remove "<file-name>"
20755 \end_layout
20756
20757 \end_inset
20758
20759
20760 \end_layout
20761
20762 \begin_layout Subsubsection
20763 Update of the local directory checkout from repository
20764 \end_layout
20765
20766 \begin_layout Standard
20767 Once your documents gets more complex, containing sub-documents and pictures,
20768  including external 
20769 \begin_inset Flex Code
20770 status collapsed
20771
20772 \begin_layout Plain Layout
20773 .tex
20774 \end_layout
20775
20776 \end_inset
20777
20778  files and so on using version control becomes more complicated.
20779  \SpecialChar LyX
20780  supports updating the whole tree in which resides the document.
20781  This become especially useful once you cooperate with people which neither
20782  have detailed knowledge about CVS usage nor they have ambition to commit
20783  additional material to the repository.
20784  You have to organize the files structure so that all external files are
20785  in the same directory or subdirectories of the document.
20786  It's good practice anyway to store multipart documents in an extra directory.
20787 \end_layout
20788
20789 \begin_layout Standard
20790 The 
20791 \begin_inset Flex Code
20792 status collapsed
20793
20794 \begin_layout Plain Layout
20795 Update local directory from repository
20796 \end_layout
20797
20798 \end_inset
20799
20800  command updates the whole directory.
20801  If local changes are detected user is warned before update starts.
20802  In case of merge conflicts both versions of the conflicting document parts
20803  are placed in the final document.
20804  You have to review and correct the result of the merge.
20805  You'll find the conflicts enclosed in pairs of 
20806 \begin_inset Flex Code
20807 status collapsed
20808
20809 \begin_layout Plain Layout
20810 <<<<<<<
20811 \end_layout
20812
20813 \end_inset
20814
20815  and 
20816 \begin_inset Flex Code
20817 status collapsed
20818
20819 \begin_layout Plain Layout
20820 >>>>>>>
20821 \end_layout
20822
20823 \end_inset
20824
20825  separated by 
20826 \begin_inset Flex Code
20827 status collapsed
20828
20829 \begin_layout Plain Layout
20830 =======
20831 \end_layout
20832
20833 \end_inset
20834
20835 .
20836  The first part is your version as before the update operation with the
20837  document name prepended.
20838  The second one is the repository version with the version number after
20839  the sequence of 
20840 \begin_inset Flex Code
20841 status collapsed
20842
20843 \begin_layout Plain Layout
20844 >
20845 \end_layout
20846
20847 \end_inset
20848
20849  signs.
20850 \end_layout
20851
20852 \begin_layout Labeling
20853 \labelwidthstring 00.00.0000
20854 CVS
20855 \begin_inset space ~
20856 \end_inset
20857
20858 commands: 
20859 \begin_inset space ~
20860 \end_inset
20861
20862
20863 \begin_inset Newline newline
20864 \end_inset
20865
20866
20867 \begin_inset Flex Code
20868 status collapsed
20869
20870 \begin_layout Plain Layout
20871 cd $path; cvs diff 
20872 \family typewriter
20873 "."
20874 \end_layout
20875
20876 \end_inset
20877
20878  (Ask if changes are detected.)
20879 \begin_inset Newline newline
20880 \end_inset
20881
20882
20883 \begin_inset Flex Code
20884 status collapsed
20885
20886 \begin_layout Plain Layout
20887 cd $path; cvs -q update 
20888 \family typewriter
20889 "."
20890 \end_layout
20891
20892 \end_inset
20893
20894
20895 \end_layout
20896
20897 \begin_layout Standard
20898 where 
20899 \begin_inset Flex Code
20900 status collapsed
20901
20902 \begin_layout Plain Layout
20903 $path
20904 \end_layout
20905
20906 \end_inset
20907
20908  stands for the path to the document.
20909 \end_layout
20910
20911 \begin_layout Subsubsection
20912
20913 \family sans
20914 Show History
20915 \end_layout
20916
20917 \begin_layout Standard
20918 This shows the complete history of the CVS document.
20919  The output of 
20920 \family typewriter
20921 cvs log "<file-name>"
20922 \family default
20923  is shown in a browser.
20924 \end_layout
20925
20926 \begin_layout Subsubsection
20927 Revision info
20928 \end_layout
20929
20930 \begin_layout Standard
20931 \SpecialChar LyX
20932  supports CVS version number, author name, date and time of last commit.
20933  All those are extracted from 
20934 \family typewriter
20935 cvs log -r <file-name>
20936 \family default
20937 .
20938  See 
20939 \begin_inset CommandInset ref
20940 LatexCommand ref
20941 reference "subsec:VCS-Revision-Information"
20942
20943 \end_inset
20944
20945  for details.
20946 \end_layout
20947
20948 \begin_layout Subsection
20949 SVN commands in \SpecialChar LyX
20950
20951 \end_layout
20952
20953 \begin_layout Standard
20954 SVN is now partially supported by \SpecialChar LyX
20955 .
20956  You can find the commands in the 
20957 \family sans
20958 File\SpecialChar menuseparator
20959 Version
20960 \begin_inset space ~
20961 \end_inset
20962
20963 Control
20964 \family default
20965  submenu.
20966  Please note that if you use password protected access to repository via
20967  ssh, you will be asked in terminal window.
20968  \SpecialChar LyX
20969  was tested against SVN 1.5, 1.6, 1.7 and 1.8
20970 \begin_inset Foot
20971 status collapsed
20972
20973 \begin_layout Plain Layout
20974 Most of the commands will work with 1.4 too, see 
20975 \begin_inset CommandInset ref
20976 LatexCommand ref
20977 reference "subsec:SVN-Repo-Update"
20978
20979 \end_inset
20980
20981 .
20982  There seems to be currently unresolved permissions problem under SVN 1.8
20983  with reverting changes when file is locked.
20984 \end_layout
20985
20986 \end_inset
20987
20988
20989 \end_layout
20990
20991 \begin_layout Subsubsection
20992
20993 \family sans
20994 Register
20995 \end_layout
20996
20997 \begin_layout Standard
20998 If your document is not under revision control, this is the only item shown
20999  in the menu.
21000  And if it is under revision control, the 
21001 \family sans
21002 Register
21003 \family default
21004  item is not visible.
21005 \end_layout
21006
21007 \begin_layout Standard
21008 This command registers in SVN your document ONLY in case you have already
21009  the documents directory under SVN control (in particular 
21010 \family typewriter
21011 .svn/entries
21012 \family default
21013  file exists).
21014  This means you have to checkout the archive by yourself.
21015 \end_layout
21016
21017 \begin_layout Standard
21018 Then you are asked interactively to supply an initial description of the
21019  document.
21020  Don't forget that registered file is not yet commited.
21021 \end_layout
21022
21023 \begin_layout Standard
21024 SVN command that is run: 
21025 \family typewriter
21026 svn add -q 
21027 \begin_inset Quotes qld
21028 \end_inset
21029
21030 <file-name>
21031 \begin_inset Quotes qld
21032 \end_inset
21033
21034
21035 \end_layout
21036
21037 \begin_layout Standard
21038 Read 
21039 \family typewriter
21040 man svn
21041 \family default
21042  to understand the switches.
21043 \end_layout
21044
21045 \begin_layout Subsubsection
21046
21047 \family sans
21048 Check In Changes
21049 \end_layout
21050
21051 \begin_layout Standard
21052 When you are finished editing a file, you commit your changes.
21053  When you do this, you are asked for a description of the changes.
21054  After that changes are commited.
21055 \end_layout
21056
21057 \begin_layout Standard
21058 SVN command:
21059 \begin_inset Foot
21060 status collapsed
21061
21062 \begin_layout Plain Layout
21063 In case locking is not enabled.
21064  See Section 
21065 \begin_inset CommandInset ref
21066 LatexCommand ref
21067 reference "subsec:SVN-File-Locking"
21068
21069 \end_inset
21070
21071 .
21072 \end_layout
21073
21074 \end_inset
21075
21076  
21077 \family typewriter
21078 svn commit -q -m"<description>" <file-name>
21079 \end_layout
21080
21081 \begin_layout Subsubsection
21082
21083 \family sans
21084 Check Out For Edit
21085 \end_layout
21086
21087 \begin_layout Standard
21088 Updates the changes of this file from the repository.
21089  Be sure you understand SVN merging and conflicts resolving before using
21090  this function, because all conflicts has to be resolved manually by you!
21091 \end_layout
21092
21093 \begin_layout Standard
21094 SVN command:
21095 \begin_inset Foot
21096 status collapsed
21097
21098 \begin_layout Plain Layout
21099 Ditto.
21100 \end_layout
21101
21102 \end_inset
21103
21104  
21105 \family typewriter
21106 svn update --non-interactive 
21107 \begin_inset Quotes qld
21108 \end_inset
21109
21110 <file-name>
21111 \begin_inset Quotes qld
21112 \end_inset
21113
21114
21115 \end_layout
21116
21117 \begin_layout Subsubsection
21118
21119 \family sans
21120 Revert To Repository Version
21121 \end_layout
21122
21123 \begin_layout Standard
21124 This will discard all changes made to the document since the last check
21125  in.
21126  You get a warning before changes are discarded.
21127 \end_layout
21128
21129 \begin_layout Standard
21130 SVN command: 
21131 \family typewriter
21132 svn revert -q 
21133 \begin_inset Quotes qld
21134 \end_inset
21135
21136 <file-name>
21137 \begin_inset Quotes qld
21138 \end_inset
21139
21140
21141 \end_layout
21142
21143 \begin_layout Subsubsection
21144
21145 \family sans
21146 Copy
21147 \end_layout
21148
21149 \begin_layout Standard
21150 This will create a copy of the current document including the version history.
21151  It requires a clean document without any changes since the last checkin.
21152  You are asked for a file name and a description of the copy operation.
21153  After that the copy is created, both locally and in the repository.
21154  If the parent directories of the copied and original document differ, all
21155  relative paths of included files of the copy are adjusted (like in 
21156 \family sans
21157 File\SpecialChar menuseparator
21158 Save As
21159 \family default
21160 \SpecialChar ldots
21161 ).
21162  Finally, the copy is loaded instead of the original document.
21163 \end_layout
21164
21165 \begin_layout Labeling
21166 \labelwidthstring 00.00.0000
21167 SVN
21168 \begin_inset space ~
21169 \end_inset
21170
21171 commands: 
21172 \begin_inset space ~
21173 \end_inset
21174
21175
21176 \begin_inset Newline newline
21177 \end_inset
21178
21179
21180 \begin_inset Flex Code
21181 status collapsed
21182
21183 \begin_layout Plain Layout
21184 svn copy -q 
21185 \family typewriter
21186
21187 \begin_inset Quotes qld
21188 \end_inset
21189
21190 <file-name>
21191 \begin_inset Quotes qld
21192 \end_inset
21193
21194  
21195 \begin_inset Quotes qld
21196 \end_inset
21197
21198 <new-file-name>
21199 \begin_inset Quotes qld
21200 \end_inset
21201
21202
21203 \end_layout
21204
21205 \end_inset
21206
21207
21208 \begin_inset Newline newline
21209 \end_inset
21210
21211
21212 \begin_inset Flex Code
21213 status collapsed
21214
21215 \begin_layout Plain Layout
21216 svn commit
21217 \end_layout
21218
21219 \end_inset
21220
21221
21222 \end_layout
21223
21224 \begin_layout Subsubsection
21225
21226 \family sans
21227 Rename
21228 \end_layout
21229
21230 \begin_layout Standard
21231 This will rename the current document including the version history.
21232  It requires a clean document without any changes since the last checkin.
21233  You are asked for a file name and a description of the rename operation.
21234  After that the document is renamed, both locally and in the repository.
21235  If the parent directories of the new and old file names differ, all relative
21236  paths of included files are adjusted (like in 
21237 \family sans
21238 File\SpecialChar menuseparator
21239 Save As
21240 \family default
21241 \SpecialChar ldots
21242 ).
21243  Finally, the document is reloaded using the new name.
21244 \end_layout
21245
21246 \begin_layout Labeling
21247 \labelwidthstring 00.00.0000
21248 SVN
21249 \begin_inset space ~
21250 \end_inset
21251
21252 commands: 
21253 \begin_inset space ~
21254 \end_inset
21255
21256
21257 \begin_inset Newline newline
21258 \end_inset
21259
21260
21261 \begin_inset Flex Code
21262 status collapsed
21263
21264 \begin_layout Plain Layout
21265 svn move -q 
21266 \family typewriter
21267
21268 \begin_inset Quotes qld
21269 \end_inset
21270
21271 <file-name>
21272 \begin_inset Quotes qld
21273 \end_inset
21274
21275  
21276 \begin_inset Quotes qld
21277 \end_inset
21278
21279 <new-file-name>
21280 \begin_inset Quotes qld
21281 \end_inset
21282
21283
21284 \end_layout
21285
21286 \end_inset
21287
21288
21289 \begin_inset Newline newline
21290 \end_inset
21291
21292
21293 \begin_inset Flex Code
21294 status collapsed
21295
21296 \begin_layout Plain Layout
21297 svn commit
21298 \end_layout
21299
21300 \end_inset
21301
21302
21303 \end_layout
21304
21305 \begin_layout Subsubsection
21306 \begin_inset CommandInset label
21307 LatexCommand label
21308 name "subsec:SVN-Repo-Update"
21309
21310 \end_inset
21311
21312 Update of the local directory checkout from repository
21313 \begin_inset Foot
21314 status collapsed
21315
21316 \begin_layout Plain Layout
21317 Note that this command will work only with subversion 
21318 \begin_inset Formula $\geqq1.5$
21319 \end_inset
21320
21321
21322 \end_layout
21323
21324 \end_inset
21325
21326
21327 \end_layout
21328
21329 \begin_layout Standard
21330 All the commands above have one shortcoming – they deal with the current
21331  document only.
21332  Once your document contains pictures, includes external 
21333 \begin_inset Flex Code
21334 status collapsed
21335
21336 \begin_layout Plain Layout
21337 .tex
21338 \end_layout
21339
21340 \end_inset
21341
21342  files and so on administration becomes more complicated.
21343  \SpecialChar LyX
21344  now supports updating the whole tree in which resides the document
21345 \begin_inset Foot
21346 status collapsed
21347
21348 \begin_layout Plain Layout
21349 One need to organize the files structure so that all external files are
21350  in the same directory or subdirectories of the document.
21351  
21352 \end_layout
21353
21354 \end_inset
21355
21356 .
21357  This become especially useful once you cooperate with people which neither
21358  know about subversion management nor they have ambition to commit additional
21359  material to the repository.
21360  
21361 \end_layout
21362
21363 \begin_layout Standard
21364 \begin_inset Flex Code
21365 status collapsed
21366
21367 \begin_layout Plain Layout
21368 Update local directory from repository
21369 \end_layout
21370
21371 \end_inset
21372
21373  command updates the whole directory and in case of merge conflicts local
21374  version of the files are left, so no unintended data loss occurs.
21375  If local changes are detected user is warned before update starts.
21376 \end_layout
21377
21378 \begin_layout Labeling
21379 \labelwidthstring 00.00.0000
21380 SVN
21381 \begin_inset space ~
21382 \end_inset
21383
21384 commands: 
21385 \begin_inset space ~
21386 \end_inset
21387
21388
21389 \begin_inset Newline newline
21390 \end_inset
21391
21392
21393 \begin_inset Flex Code
21394 status collapsed
21395
21396 \begin_layout Plain Layout
21397 svn diff $path
21398 \end_layout
21399
21400 \end_inset
21401
21402  (Ask if changes are detected.)
21403 \begin_inset Newline newline
21404 \end_inset
21405
21406
21407 \begin_inset Flex Code
21408 status collapsed
21409
21410 \begin_layout Plain Layout
21411 svn update --accept mine-full $path
21412 \end_layout
21413
21414 \end_inset
21415
21416
21417 \end_layout
21418
21419 \begin_layout Standard
21420 where 
21421 \begin_inset Flex Code
21422 status collapsed
21423
21424 \begin_layout Plain Layout
21425 $path
21426 \end_layout
21427
21428 \end_inset
21429
21430  stands for the path to the document.
21431 \end_layout
21432
21433 \begin_layout Subsubsection
21434
21435 \family sans
21436 Show History
21437 \end_layout
21438
21439 \begin_layout Standard
21440 This shows the complete history of the SVN document.
21441  The output of 
21442 \family typewriter
21443 svn log 
21444 \begin_inset Quotes qld
21445 \end_inset
21446
21447 <file-name>
21448 \begin_inset Quotes qld
21449 \end_inset
21450
21451
21452 \family default
21453  is shown in a browser.
21454 \end_layout
21455
21456 \begin_layout Subsubsection
21457 File Locking
21458 \begin_inset CommandInset label
21459 LatexCommand label
21460 name "subsec:SVN-File-Locking"
21461
21462 \end_inset
21463
21464
21465 \end_layout
21466
21467 \begin_layout Standard
21468 The file exchange through various revision control systems brings the problem
21469  of merge conflicts in case two different users try to edit the same (parts
21470  of) document.
21471  When such a conflict happens it needs manual resolving and one reasonable
21472  alternative is to provide some kind of locking mechanism, which guarantees
21473  that only one user is allowed to edit file at the given time.
21474 \end_layout
21475
21476 \begin_layout Standard
21477 SVN has two such mechanisms to provide mutual exclusivity for file access
21478  – locks and automatic setting of write permissions (see sec.
21479  
21480 \begin_inset CommandInset ref
21481 LatexCommand ref
21482 reference "subsec:Automatical-Locking-Property"
21483
21484 \end_inset
21485
21486 ) based on 
21487 \begin_inset Flex Code
21488 status collapsed
21489
21490 \begin_layout Plain Layout
21491 svn:needs-lock
21492 \end_layout
21493
21494 \end_inset
21495
21496  file svn property
21497 \begin_inset Foot
21498 status collapsed
21499
21500 \begin_layout Plain Layout
21501 \begin_inset Flex URL
21502 status open
21503
21504 \begin_layout Plain Layout
21505
21506 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
21507 \end_layout
21508
21509 \end_inset
21510
21511
21512 \end_layout
21513
21514 \end_inset
21515
21516 .
21517  If this property is detected for a given document \SpecialChar LyX
21518  starts to use SVN locks
21519  for document editing automatically and the whole check-in/out mechanism
21520  switches to the same regimen as for RCS.
21521  This in particular means there are two different modes of file use in \SpecialChar LyX
21522 :
21523 \end_layout
21524
21525 \begin_layout Itemize
21526 Unlocked state.
21527  The loaded file is in the read-only mode.
21528  For editing on needs to check-out.
21529  
21530 \emph on
21531 Check-out
21532 \emph default
21533  consists of updating from the repository and gaining write lock.
21534  If the lock is not possible to obtain, we remain in unlocked state.
21535 \end_layout
21536
21537 \begin_layout Itemize
21538 Locked state.
21539  The loaded file is in the 
21540 \begin_inset Quotes els
21541 \end_inset
21542
21543 normal
21544 \begin_inset Quotes ers
21545 \end_inset
21546
21547  edit mode.
21548  No other user is allowed to edit the file.
21549  
21550 \emph on
21551 Check-in
21552 \emph default
21553  consists of commiting changes and releasing write-lock.
21554  If no changes have been made to the document, no commit will be produced
21555 \begin_inset Foot
21556 status collapsed
21557
21558 \begin_layout Plain Layout
21559 Don't be puzzled by the fact that you will be asked for commit message anyway.
21560 \end_layout
21561
21562 \end_inset
21563
21564  and only the write-lock will be released.
21565 \end_layout
21566
21567 \begin_layout Standard
21568 SVN commands:
21569 \end_layout
21570
21571 \begin_layout Labeling
21572 \labelwidthstring 00.00.0000
21573 Check-in:
21574 \family typewriter
21575  svn commit -q -m"<description>" "<file-name>"
21576 \begin_inset Newline newline
21577 \end_inset
21578
21579 svn unlock "<file-name>"
21580 \end_layout
21581
21582 \begin_layout Labeling
21583 \labelwidthstring 00.00.0000
21584 Check-out: 
21585 \family typewriter
21586 svn update "<file-name>"
21587 \begin_inset Newline newline
21588 \end_inset
21589
21590 svn lock "<file-name>"
21591 \end_layout
21592
21593 \begin_layout Subsubsection
21594
21595 \family typewriter
21596 \begin_inset CommandInset label
21597 LatexCommand label
21598 name "subsec:Automatical-Locking-Property"
21599
21600 \end_inset
21601
21602
21603 \family default
21604 Automatic Locking Property
21605 \end_layout
21606
21607 \begin_layout Standard
21608 The above mentioned automatic setting of write permissions of the .lyx file
21609  can be set through
21610 \family sans
21611  File\SpecialChar menuseparator
21612 Version
21613 \begin_inset space ~
21614 \end_inset
21615
21616 Control\SpecialChar menuseparator
21617 Use Locking Property
21618 \family default
21619 .
21620  This command is active only when the file is not locked on the svn server
21621  (i.e.
21622  you need to check-out before proceeding).
21623 \end_layout
21624
21625 \begin_layout Labeling
21626 \labelwidthstring 00.00.0000
21627 SVN
21628 \begin_inset space ~
21629 \end_inset
21630
21631 commands:
21632 \end_layout
21633
21634 \begin_layout Labeling
21635 \labelwidthstring 00.00.0000
21636 Set:
21637 \family typewriter
21638  svn propset svn:needs-lock ON "<file-name>"
21639 \end_layout
21640
21641 \begin_layout Labeling
21642 \labelwidthstring 00.00.0000
21643 Unset: 
21644 \family typewriter
21645 svn propdel svn:needs-lock "<file-name>"
21646 \end_layout
21647
21648 \begin_layout Subsubsection
21649 \begin_inset CommandInset label
21650 LatexCommand label
21651 name "subsec:VCS-Revision-Information"
21652
21653 \end_inset
21654
21655 Revision Information in Documents
21656 \end_layout
21657
21658 \begin_layout Standard
21659 There are more possibilities how to activate revision information in our
21660  document.
21661 \end_layout
21662
21663 \begin_layout Itemize
21664 \SpecialChar LyX
21665  supports directly:
21666 \end_layout
21667
21668 \begin_deeper
21669 \begin_layout Itemize
21670 tree revision information (
21671 \begin_inset Flex Code
21672 status collapsed
21673
21674 \begin_layout Plain Layout
21675 vcs-tree-revision
21676 \end_layout
21677
21678 \end_inset
21679
21680 ).
21681  The result is the output of the 
21682 \begin_inset Flex Code
21683 status collapsed
21684
21685 \begin_layout Plain Layout
21686 svnversion
21687 \end_layout
21688
21689 \end_inset
21690
21691  command, the following table gives you an idea, how to read the results.
21692 \end_layout
21693
21694 \begin_layout Standard
21695 \align center
21696 \begin_inset Tabular
21697 <lyxtabular version="3" rows="6" columns="2">
21698 <features tabularvalignment="middle">
21699 <column alignment="left" valignment="top">
21700 <column alignment="left" valignment="top">
21701 <row>
21702 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21703 \begin_inset Text
21704
21705 \begin_layout Plain Layout
21706
21707 \series bold
21708 Output
21709 \end_layout
21710
21711 \end_inset
21712 </cell>
21713 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21714 \begin_inset Text
21715
21716 \begin_layout Plain Layout
21717
21718 \series bold
21719 Meaning
21720 \end_layout
21721
21722 \end_inset
21723 </cell>
21724 </row>
21725 <row>
21726 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
21727 \begin_inset Text
21728
21729 \begin_layout Plain Layout
21730 4123:4168
21731 \end_layout
21732
21733 \end_inset
21734 </cell>
21735 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21736 \begin_inset Text
21737
21738 \begin_layout Plain Layout
21739 mixed revision working copy
21740 \end_layout
21741
21742 \end_inset
21743 </cell>
21744 </row>
21745 <row>
21746 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
21747 \begin_inset Text
21748
21749 \begin_layout Plain Layout
21750 4168M
21751 \end_layout
21752
21753 \end_inset
21754 </cell>
21755 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21756 \begin_inset Text
21757
21758 \begin_layout Plain Layout
21759 modified working copy
21760 \end_layout
21761
21762 \end_inset
21763 </cell>
21764 </row>
21765 <row>
21766 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
21767 \begin_inset Text
21768
21769 \begin_layout Plain Layout
21770 4123S
21771 \end_layout
21772
21773 \end_inset
21774 </cell>
21775 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21776 \begin_inset Text
21777
21778 \begin_layout Plain Layout
21779 switched working copy
21780 \end_layout
21781
21782 \end_inset
21783 </cell>
21784 </row>
21785 <row>
21786 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
21787 \begin_inset Text
21788
21789 \begin_layout Plain Layout
21790 4123P
21791 \end_layout
21792
21793 \end_inset
21794 </cell>
21795 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21796 \begin_inset Text
21797
21798 \begin_layout Plain Layout
21799 partial working copy, from a sparse checkout
21800 \end_layout
21801
21802 \end_inset
21803 </cell>
21804 </row>
21805 <row>
21806 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21807 \begin_inset Text
21808
21809 \begin_layout Plain Layout
21810 4123:4168MS
21811 \end_layout
21812
21813 \end_inset
21814 </cell>
21815 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21816 \begin_inset Text
21817
21818 \begin_layout Plain Layout
21819 mixed revision, modified, switched working copy
21820 \end_layout
21821
21822 \end_inset
21823 </cell>
21824 </row>
21825 </lyxtabular>
21826
21827 \end_inset
21828
21829
21830 \end_layout
21831
21832 \begin_layout Itemize
21833 file revision information.
21834  The result comes from parsing the output of 
21835 \begin_inset Flex Code
21836 status collapsed
21837
21838 \begin_layout Plain Layout
21839 svn
21840 \begin_inset space ~
21841 \end_inset
21842
21843 info
21844 \begin_inset space ~
21845 \end_inset
21846
21847 --xml
21848 \begin_inset space ~
21849 \end_inset
21850
21851 file.lyx
21852 \end_layout
21853
21854 \end_inset
21855
21856 .
21857  Supported flags are:
21858 \end_layout
21859
21860 \begin_deeper
21861 \begin_layout Itemize
21862 version number of the last commit (
21863 \begin_inset Flex Code
21864 status collapsed
21865
21866 \begin_layout Plain Layout
21867 vcs-revision
21868 \end_layout
21869
21870 \end_inset
21871
21872 )
21873 \end_layout
21874
21875 \begin_layout Itemize
21876 author of the last commit (
21877 \begin_inset Flex Code
21878 status collapsed
21879
21880 \begin_layout Plain Layout
21881 vcs-author
21882 \end_layout
21883
21884 \end_inset
21885
21886 )
21887 \end_layout
21888
21889 \begin_layout Itemize
21890 date of the last commit (
21891 \begin_inset Flex Code
21892 status collapsed
21893
21894 \begin_layout Plain Layout
21895 vcs-date
21896 \end_layout
21897
21898 \end_inset
21899
21900 )
21901 \end_layout
21902
21903 \begin_layout Itemize
21904 time of the last commit (
21905 \begin_inset Flex Code
21906 status collapsed
21907
21908 \begin_layout Plain Layout
21909 vcs-time
21910 \end_layout
21911
21912 \end_inset
21913
21914 )
21915 \end_layout
21916
21917 \end_deeper
21918 \begin_layout Standard
21919 You can obtain this info via InsetInfo (
21920 \change_inserted 5863208 1564400022
21921
21922 \lang american
21923 Insert\SpecialChar menuseparator
21924 Field\SpecialChar menuseparator
21925 Version Control Revision
21926 \change_deleted 5863208 1564399852
21927
21928 \lang english
21929 e.g.
21930  
21931 \begin_inset Flex Code
21932 status collapsed
21933
21934 \begin_layout Plain Layout
21935 info-insert buffer vcs-date
21936 \end_layout
21937
21938 \end_inset
21939
21940
21941 \change_unchanged
21942 ).
21943  The information will be available only when you have the file stored under
21944  svn managment (i.e.
21945  the 
21946 \begin_inset Flex Code
21947 status collapsed
21948
21949 \begin_layout Plain Layout
21950 .svn
21951 \end_layout
21952
21953 \end_inset
21954
21955  directory is available with your document).
21956 \end_layout
21957
21958 \end_deeper
21959 \begin_layout Itemize
21960 Another—a hacking one—possibility is to use svn keywords
21961 \begin_inset Foot
21962 status collapsed
21963
21964 \begin_layout Plain Layout
21965 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
21966 \end_layout
21967
21968 \end_inset
21969
21970 .
21971  In short – you set file keywords property (e.g.
21972  
21973 \family sans
21974 svn propset svn:keywords 'Rev' file.lyx
21975 \family default
21976 ) and then paste keyword \SpecialChar TeX
21977  code
21978 \begin_inset Foot
21979 status collapsed
21980
21981 \begin_layout Plain Layout
21982 This is an easy way how to ensure that \SpecialChar LyX
21983  won't break the line in the middle
21984  of keyword tag.
21985 \end_layout
21986
21987 \end_inset
21988
21989  tag in your document (e.g.
21990  
21991 \begin_inset Flex Code
21992 status collapsed
21993
21994 \begin_layout Plain Layout
21995 $Rev$
21996 \end_layout
21997
21998 \end_inset
21999
22000 ).
22001  This way svn client will automatically substitute revision number (e.g.
22002  
22003 \begin_inset Flex Code
22004 status collapsed
22005
22006 \begin_layout Plain Layout
22007 $Rev: 59 $
22008 \end_layout
22009
22010 \end_inset
22011
22012 ) after each update and commit.
22013  There are more problems with this approach.
22014  Firstly, the '$' character is used in \SpecialChar TeX
22015  world for math equations, so any
22016  occurence of math formula 
22017 \begin_inset Formula $Rev$
22018 \end_inset
22019
22020  become 
22021 \begin_inset Formula $Rev:59$
22022 \end_inset
22023
22024  in your \SpecialChar LyX
22025  document.
22026  Similarly for other keywords like Id, Date, Author, etc.
22027  Secondly svn output is dependent on your locales, so its very easy that
22028  svn would produce some problematic strings once Date is used.
22029  Thirdly you get the whole 'Rev: 59' string in your document instead of
22030  the plain number.
22031  Until subversion implements user's custom keywords it will be hard to use
22032  this approach reliably or let \SpecialChar LyX
22033  to support it directly.
22034 \end_layout
22035
22036 \begin_layout Subsection
22037 SVN and Windows Environment
22038 \end_layout
22039
22040 \begin_layout Quote
22041 My inclination is to say that if the user cannot figure out the command
22042  line operations on their own fairly quickly, they would be well advised
22043  to use TortoiseSVN.
22044  —P.
22045  A.
22046  Rubin
22047 \end_layout
22048
22049 \begin_layout Subsubsection
22050 Preparation
22051 \end_layout
22052
22053 \begin_layout Standard
22054 In addition to installing \SpecialChar LyX
22055 , and having access to a Subversion repository,
22056  the user will need to install the Subversion client program.
22057  A Windows installer for the client program is available from 
22058 \begin_inset CommandInset href
22059 LatexCommand href
22060 name "CollabNet"
22061 target "http://www.collab.net/nonav/downloads/subversion/"
22062 literal "false"
22063
22064 \end_inset
22065
22066 .
22067  The user may also want to install 
22068 \begin_inset CommandInset href
22069 LatexCommand href
22070 name "TortoiseSVN"
22071 target "http://tortoisesvn.tigris.org/"
22072 literal "false"
22073
22074 \end_inset
22075
22076 , which integrates Subversion operations into the context (rightclick) menu
22077  of Windows Explorer.
22078  Operations done outside \SpecialChar LyX
22079  will typically be more convenient using the Explorer
22080  context menu.
22081  Note that TortoiseSVN is not a replacement for the client program, which
22082  is what \SpecialChar LyX
22083  itself will use.
22084 \end_layout
22085
22086 \begin_layout Subsubsection
22087 Bringing a document under Subversion control
22088 \end_layout
22089
22090 \begin_layout Standard
22091 Before a \SpecialChar LyX
22092  document can be brought under version control in Subversion, its
22093  parent directory needs to be under version control.
22094  If the document is being added to a project already in the repository,
22095  this is accomplished by checking the project out to the directory where
22096  the new document will be placed.
22097  If the project itself is not yet under version control (for instance, if
22098  this document starts a new project), the directory must be imported into
22099  the repository.
22100  This is done outside \SpecialChar LyX
22101 .
22102  Both import and checkout are easily accomplished from the Explorer context
22103  menu using TortoiseSVN, or alternatively can be done using the command
22104  line client at a DOS prompt.
22105  The procedure for importing the project using TortoiseSVN is described
22106  below, assuming an existing repository and a new project being started
22107  in 
22108 \family typewriter
22109 C:
22110 \backslash
22111 new project
22112 \family default
22113 .
22114  For information on using the Subversion client program, run 
22115 \family typewriter
22116 svn --help 
22117 \family default
22118 in a DOS shell.
22119 \end_layout
22120
22121 \begin_layout Enumerate
22122 Locate 
22123 \family typewriter
22124 C:
22125 \backslash
22126 new project 
22127 \family default
22128 in Windows Explorer, right click it, and select 
22129 \family sans
22130 TortoiseSVN\SpecialChar menuseparator
22131 Repo-browser
22132 \family default
22133 .
22134  If necessary, adjust the URL for the repository, then click OK.
22135 \end_layout
22136
22137 \begin_layout Enumerate
22138 Right click the level of the repository under which you want to place the
22139  new project folder (typically the top level) and click 
22140 \family sans
22141 Create folder
22142 \family default
22143  Supply a name for the project folder and click OK.
22144  Add a message for the log file if desired, then click OK again.
22145  The new project folder should appear in the repository.
22146  Finally, click OK again to exit the repository browser.
22147 \end_layout
22148
22149 \begin_layout Enumerate
22150 Once again right click 
22151 \family typewriter
22152 C:
22153 \backslash
22154 new project
22155 \family default
22156 , this time selecting SVN Checkout\SpecialChar ldots
22157  Select the URL of the project folder
22158  you just created in the repository, and set the checkout directory to 
22159 \family typewriter
22160 C:
22161 \backslash
22162 new project.
22163
22164 \family default
22165  Click OK.
22166  You will be warned about a non-empty folder; click OK to proceed.
22167  You should now have a 
22168 \family typewriter
22169 .svn
22170 \family default
22171  directory under 
22172 \family typewriter
22173 C:
22174 \backslash
22175 new project.
22176 \end_layout
22177
22178 \begin_layout Enumerate
22179 Create or open your document in \SpecialChar LyX
22180  and click 
22181 \family sans
22182 File\SpecialChar menuseparator
22183 Version
22184 \begin_inset space ~
22185 \end_inset
22186
22187 Control\SpecialChar menuseparator
22188 Register.
22189  
22190 \family default
22191 Add a log message and click OK to commit the document to version control.
22192 \end_layout
22193
22194 \begin_layout Standard
22195 From this point onward, you should have full functionality in the 
22196 \family sans
22197 File\SpecialChar menuseparator
22198 Version
22199 \begin_inset space ~
22200 \end_inset
22201
22202 Control
22203 \family default
22204  menu.
22205  You also have the option of checking the document in and out, viewing its
22206  history, etc.
22207  using the TortoiseSVN context menu in Windows Explorer or the Subversion
22208  client program from a command prompt.
22209 \end_layout
22210
22211 \begin_layout Subsubsection
22212 SSH tunnel used with SVN under Windows
22213 \end_layout
22214
22215 \begin_layout Standard
22216 Compared with Linux setting up an svn client to communicate over ssh under
22217  Windows is a rather troublesome task.
22218  We will at least offer some hints how to setup the client side but prior
22219  knowledge about ssh and the Windows command line is needed, also be prepared
22220  for a great deal of frustration\SpecialChar ldots
22221
22222 \end_layout
22223
22224 \begin_layout Enumerate
22225 Get an svn client for windows, as described in the previous sections.
22226  When it is a fresh install run some svn command (e.g.
22227  
22228 \begin_inset Flex Code
22229 status collapsed
22230
22231 \begin_layout Plain Layout
22232 svn --version
22233 \end_layout
22234
22235 \end_inset
22236
22237 ) to create config files, which you will need to change later on.
22238 \end_layout
22239
22240 \begin_layout Enumerate
22241 Choose an ssh client for Windows.
22242  There are several possibilities, we will use the one from Putty tools
22243 \begin_inset Foot
22244 status collapsed
22245
22246 \begin_layout Plain Layout
22247 \begin_inset Flex URL
22248 status collapsed
22249
22250 \begin_layout Plain Layout
22251
22252 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
22253 \end_layout
22254
22255 \end_inset
22256
22257
22258 \end_layout
22259
22260 \end_inset
22261
22262 .
22263  You will need to set the connection up so that the client doesn't ask for
22264  any password from you.
22265  To keep things easy we will use only keys without any additional password
22266  protection etc.
22267 \end_layout
22268
22269 \begin_deeper
22270 \begin_layout Enumerate
22271 Generate keys by 
22272 \begin_inset Flex Code
22273 status collapsed
22274
22275 \begin_layout Plain Layout
22276 puttygen
22277 \end_layout
22278
22279 \end_inset
22280
22281 .
22282  Save your private .ppk key file and put the public one on the server side.
22283  If the SVN server runs on Linux, note that the format of the public key
22284  is not compatible with Linux openssh and you will need to direcly copy-paste
22285  the key from the 
22286 \begin_inset Quotes eld
22287 \end_inset
22288
22289
22290 \emph on
22291 Public key for pasting into OpenSSH authorized_keys file
22292 \emph default
22293 :
22294 \begin_inset Quotes erd
22295 \end_inset
22296
22297  edit field into the server's 
22298 \begin_inset Flex Code
22299 status collapsed
22300
22301 \begin_layout Plain Layout
22302 ~/.ssh/authorized_keys
22303 \end_layout
22304
22305 \end_inset
22306
22307  / 
22308 \begin_inset Flex Code
22309 status collapsed
22310
22311 \begin_layout Plain Layout
22312 authorized_keys2
22313 \end_layout
22314
22315 \end_inset
22316
22317  file.
22318 \end_layout
22319
22320 \begin_layout Enumerate
22321 Get the Putty's 
22322 \begin_inset Flex Code
22323 status collapsed
22324
22325 \begin_layout Plain Layout
22326 plink
22327 \end_layout
22328
22329 \end_inset
22330
22331 .
22332  In the SVN config file
22333 \begin_inset Foot
22334 status collapsed
22335
22336 \begin_layout Plain Layout
22337 Exact path depends on Windows version, usually somewhere around 
22338 \begin_inset Flex Code
22339 status collapsed
22340
22341 \begin_layout Plain Layout
22342 c:
22343 \backslash
22344 Documents and Settings
22345 \backslash
22346 user
22347 \backslash
22348 Application Data
22349 \backslash
22350 Subversion
22351 \backslash
22352 config
22353 \end_layout
22354
22355 \end_inset
22356
22357  / 
22358 \begin_inset Flex Code
22359 status collapsed
22360
22361 \begin_layout Plain Layout
22362 AppData
22363 \backslash
22364 Roaming
22365 \backslash
22366 Subversion
22367 \end_layout
22368
22369 \end_inset
22370
22371 .
22372 \end_layout
22373
22374 \end_inset
22375
22376 , section [tunnels], setup ssh command, e.g.
22377  
22378 \begin_inset Flex Code
22379 status collapsed
22380
22381 \begin_layout Plain Layout
22382 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
22383 \end_layout
22384
22385 \end_inset
22386
22387 .
22388 \begin_inset Foot
22389 status collapsed
22390
22391 \begin_layout Plain Layout
22392 It will usually take a lot of time to get exact command right and it depends
22393  on many things.
22394  For example do not have some remote server saved as a default session in
22395  Putty etc.
22396  If things fail, try to connect via plink without SVN first.
22397 \end_layout
22398
22399 \end_inset
22400
22401
22402 \end_layout
22403
22404 \end_deeper
22405 \begin_layout Enumerate
22406 Checkout the SVN archive, e.
22407 \begin_inset space \thinspace{}
22408 \end_inset
22409
22410 g.
22411 \begin_inset Newline newline
22412 \end_inset
22413
22414
22415 \begin_inset Flex Code
22416 status collapsed
22417
22418 \begin_layout Plain Layout
22419 svn co svn+ssh://user@server/repository_path
22420 \end_layout
22421
22422 \end_inset
22423
22424 .
22425 \end_layout
22426
22427 \begin_layout Subsubsection
22428 End-of-Line Conversions
22429 \end_layout
22430
22431 \begin_layout Standard
22432 When the collaborators are mixing Linux and Windows environments, \SpecialChar LyX
22433  will
22434  use different line endings inside the .lyx files.
22435  This is not a problem as far as \SpecialChar LyX
22436  functionality is concerned, but the commit
22437  diffs will be huge and merge-conflicts prone.
22438  Fortunately SVN itself knows
22439 \begin_inset Foot
22440 status collapsed
22441
22442 \begin_layout Plain Layout
22443 \begin_inset Flex URL
22444 status collapsed
22445
22446 \begin_layout Plain Layout
22447
22448 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
22449 \end_layout
22450
22451 \end_inset
22452
22453
22454 \end_layout
22455
22456 \end_inset
22457
22458  how to deal with CR/LF problems when switching .lyx files to the 
22459 \begin_inset Flex Code
22460 status collapsed
22461
22462 \begin_layout Plain Layout
22463 native
22464 \end_layout
22465
22466 \end_inset
22467
22468  mode.
22469 \begin_inset Foot
22470 status collapsed
22471
22472 \begin_layout Plain Layout
22473 For the lazy guys: 
22474 \begin_inset Flex Code
22475 status collapsed
22476
22477 \begin_layout Plain Layout
22478 svn propset svn:eol-style native FILE_NAME
22479 \end_layout
22480
22481 \end_inset
22482
22483
22484 \end_layout
22485
22486 \end_inset
22487
22488
22489 \end_layout
22490
22491 \begin_layout Subsection
22492 GIT commands in \SpecialChar LyX
22493
22494 \end_layout
22495
22496 \begin_layout Standard
22497 A minimal subset of GIT commands is now supported by \SpecialChar LyX
22498 .
22499  You can find the commands in the 
22500 \family sans
22501 File\SpecialChar menuseparator
22502 Version
22503 \begin_inset space ~
22504 \end_inset
22505
22506 Control
22507 \family default
22508  submenu.
22509  Please note that if you use password protected access to repository via
22510  ssh, you will be asked in terminal window.
22511  \SpecialChar LyX
22512  was tested against GIT 1.7.
22513 \begin_inset Foot
22514 status collapsed
22515
22516 \begin_layout Plain Layout
22517 Windows users please note that you need to ensure that git is on the path.
22518  This can be set from within \SpecialChar LyX
22519  at 
22520 \family sans
22521 Tools\SpecialChar menuseparator
22522 Preferences\SpecialChar menuseparator
22523 Paths\SpecialChar menuseparator
22524 PATH prefix
22525 \family default
22526 .
22527 \end_layout
22528
22529 \end_inset
22530
22531
22532 \end_layout
22533
22534 \begin_layout Standard
22535 One big difference of GIT and the other supported version control systems
22536  is the distributed nature of GIT: With traditional version control systems
22537  there is one central server which hosts the repository.
22538  Users commit their changes to the server, and get updates made by other
22539  users from it.
22540  With GIT, users commit to a local repository.
22541  The local repository can be synchronized with one or more remote repositories
22542  using the 
22543 \begin_inset Flex Code
22544 status collapsed
22545
22546 \begin_layout Plain Layout
22547 pull
22548 \end_layout
22549
22550 \end_inset
22551
22552  and 
22553 \begin_inset Flex Code
22554 status collapsed
22555
22556 \begin_layout Plain Layout
22557 push
22558 \end_layout
22559
22560 \end_inset
22561
22562  GIT commands.
22563  \SpecialChar LyX
22564  does not interact in any way with remote GIT repositories.
22565  It works exclusively with the local repository in a very similar way as
22566  with a central CVS or SVN repository.
22567  If you use remote GIT repositories you need to do the 
22568 \begin_inset Flex Code
22569 status collapsed
22570
22571 \begin_layout Plain Layout
22572 pull
22573 \end_layout
22574
22575 \end_inset
22576
22577  and 
22578 \begin_inset Flex Code
22579 status collapsed
22580
22581 \begin_layout Plain Layout
22582 push
22583 \end_layout
22584
22585 \end_inset
22586
22587  operations with your favourite GIT client.
22588 \end_layout
22589
22590 \begin_layout Subsubsection
22591
22592 \family sans
22593 Register
22594 \end_layout
22595
22596 \begin_layout Standard
22597 If your document is not under revision control, this is the only item shown
22598  in the menu.
22599  And if it is under revision control, the 
22600 \family sans
22601 Register
22602 \family default
22603  item is not visible.
22604 \end_layout
22605
22606 \begin_layout Standard
22607 This command registers in GIT your document ONLY in case you have already
22608  the documents directory under GIT control (in particular 
22609 \family typewriter
22610 .git/index
22611 \family default
22612  file exists).
22613  This means you have to checkout the archive by yourself.
22614 \end_layout
22615
22616 \begin_layout Standard
22617 Then you are asked interactively to supply an initial description of the
22618  document.
22619  Don't forget that registered file is not yet committed.
22620 \end_layout
22621
22622 \begin_layout Standard
22623 GIT command that is run: 
22624 \family typewriter
22625 git add 
22626 \begin_inset Quotes qld
22627 \end_inset
22628
22629 <file-name>
22630 \begin_inset Quotes qld
22631 \end_inset
22632
22633
22634 \end_layout
22635
22636 \begin_layout Standard
22637 Read 
22638 \family typewriter
22639 man git
22640 \family default
22641  to understand the switches.
22642 \end_layout
22643
22644 \begin_layout Subsubsection
22645
22646 \family sans
22647 Check In Changes
22648 \end_layout
22649
22650 \begin_layout Standard
22651 When you are finished editing a file, you commit your changes.
22652  When you do this, you are asked for a description of the changes.
22653  After that changes are committed.
22654 \end_layout
22655
22656 \begin_layout Standard
22657 GIT command: 
22658 \family typewriter
22659 git commit -q -m"<description>" <file-name>
22660 \end_layout
22661
22662 \begin_layout Subsubsection
22663
22664 \family sans
22665 Revert To Repository Version
22666 \end_layout
22667
22668 \begin_layout Standard
22669 This will discard all changes made to the document since the last check
22670  in.
22671  You get a warning before changes are discarded.
22672 \end_layout
22673
22674 \begin_layout Standard
22675 GIT command: 
22676 \family typewriter
22677 git checkout -q 
22678 \begin_inset Quotes qld
22679 \end_inset
22680
22681 <file-name>
22682 \begin_inset Quotes qld
22683 \end_inset
22684
22685
22686 \end_layout
22687
22688 \begin_layout Subsubsection
22689
22690 \family sans
22691 Rename
22692 \end_layout
22693
22694 \begin_layout Standard
22695 This will rename the current document including the version history.
22696  It requires a clean document without any changes since the last checkin.
22697  You are asked for a file name and a description of the rename operation.
22698  After that the document is renamed, both locally and in the repository.
22699  If the parent directories of the new and old file names differ, all relative
22700  paths of included files are adjusted (like in 
22701 \family sans
22702 File\SpecialChar menuseparator
22703 Save As
22704 \family default
22705 \SpecialChar ldots
22706 ).
22707  Finally, the document is reloaded using the new name.
22708 \end_layout
22709
22710 \begin_layout Labeling
22711 \labelwidthstring 00.00.0000
22712 GIT
22713 \begin_inset space ~
22714 \end_inset
22715
22716 commands: 
22717 \begin_inset space ~
22718 \end_inset
22719
22720
22721 \begin_inset Newline newline
22722 \end_inset
22723
22724
22725 \begin_inset Flex Code
22726 status collapsed
22727
22728 \begin_layout Plain Layout
22729 git mv 
22730 \family typewriter
22731
22732 \begin_inset Quotes qld
22733 \end_inset
22734
22735 <file-name>
22736 \begin_inset Quotes qld
22737 \end_inset
22738
22739  
22740 \begin_inset Quotes qld
22741 \end_inset
22742
22743 <new-file-name>
22744 \begin_inset Quotes qld
22745 \end_inset
22746
22747
22748 \end_layout
22749
22750 \end_inset
22751
22752
22753 \begin_inset Newline newline
22754 \end_inset
22755
22756
22757 \begin_inset Flex Code
22758 status collapsed
22759
22760 \begin_layout Plain Layout
22761 git commit
22762 \end_layout
22763
22764 \end_inset
22765
22766
22767 \end_layout
22768
22769 \begin_layout Subsubsection
22770
22771 \family sans
22772 Show History
22773 \end_layout
22774
22775 \begin_layout Standard
22776 This shows the complete history of the GIT document.
22777  The output of 
22778 \family typewriter
22779 git log 
22780 \begin_inset Quotes qld
22781 \end_inset
22782
22783 <file-name>
22784 \begin_inset Quotes qld
22785 \end_inset
22786
22787
22788 \family default
22789  is shown in a browser.
22790 \end_layout
22791
22792 \begin_layout Subsubsection
22793 Version Info
22794 \end_layout
22795
22796 \begin_layout Standard
22797 \SpecialChar LyX
22798  supports GIT hash number of the last commit to the file, 
22799 \change_inserted 1119979965 1564297456
22800 its abbreviated form, 
22801 \change_unchanged
22802 author name, date and time of last commit.
22803  All those are extracted from 
22804 \family typewriter
22805 git log -n 1 --pretty=format:%H%n
22806 \change_inserted 1119979965 1564297427
22807 %h%n
22808 \change_unchanged
22809 %an%n%ai
22810 \family default
22811 .
22812  Tree version information is obtained via 
22813 \family typewriter
22814 git describe --abbrev --dirty --long
22815 \family default
22816 .
22817  See 
22818 \begin_inset CommandInset ref
22819 LatexCommand ref
22820 reference "subsec:VCS-Revision-Information"
22821
22822 \end_inset
22823
22824  for other details.
22825 \end_layout
22826
22827 \begin_layout Subsection
22828 Further tuning
22829 \end_layout
22830
22831 \begin_layout Standard
22832 With the recent addition of the 
22833 \begin_inset Flex Code
22834 status collapsed
22835
22836 \begin_layout Plain Layout
22837 vc-command
22838 \end_layout
22839
22840 \end_inset
22841
22842  function \SpecialChar LyX
22843  power users are allowed to create their own commands for revision
22844  control.
22845 \end_layout
22846
22847 \begin_layout Standard
22848 As an example you can see how two TortoiseSVN commands could be integrated
22849  directly:
22850 \end_layout
22851
22852 \begin_layout Description
22853 Commit: 
22854 \begin_inset Flex Code
22855 status collapsed
22856
22857 \begin_layout Plain Layout
22858 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
22859 \end_layout
22860
22861 \end_inset
22862
22863
22864 \end_layout
22865
22866 \begin_layout Description
22867 Revert: 
22868 \begin_inset Flex Code
22869 status collapsed
22870
22871 \begin_layout Plain Layout
22872 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
22873 \end_layout
22874
22875 \end_inset
22876
22877
22878 \end_layout
22879
22880 \begin_layout Subsection
22881 Version control and Document comparison
22882 \end_layout
22883
22884 \begin_layout Standard
22885 One of the typical uses of version control is to inspect the changes between
22886  revisions, usually by creating 
22887 \begin_inset Flex Code
22888 status collapsed
22889
22890 \begin_layout Plain Layout
22891 diff
22892 \end_layout
22893
22894 \end_inset
22895
22896  dumps.
22897  While this is useful for plain text files, it is much less useful in the
22898  case of \SpecialChar LyX
22899  files, which have more a complicated structure.
22900  Hence we provide binding to the Document comparison feature.
22901  There are two ways of calling this feature – either by direct call of 
22902 \begin_inset Flex Code
22903 status collapsed
22904
22905 \begin_layout Plain Layout
22906 vc-compare
22907 \end_layout
22908
22909 \end_inset
22910
22911  \SpecialChar LyX
22912  function (for details see \SpecialChar LyX
22913  functions manual) or by the toolbar icon 
22914 \begin_inset Info
22915 type  "icon"
22916 arg   "vc-compare"
22917 \end_inset
22918
22919  or the menu item 
22920 \begin_inset Info
22921 type  "menu"
22922 arg   "vc-compare"
22923 \end_inset
22924
22925 , respectively.
22926  One can either compare two chosen revisions of the document or he can simply
22927  compare the current version of edited text with older revisions (where
22928  '
22929 \begin_inset Flex Noun
22930 status collapsed
22931
22932 \begin_layout Plain Layout
22933 0
22934 \end_layout
22935
22936 \end_inset
22937
22938 ' revisions back means comparison of the edited file with last commited
22939  revision).
22940  
22941 \end_layout
22942
22943 \begin_layout Standard
22944 This feature is supported for SVN and RCS though due to the more complicated
22945  versioning scheme of RCS there is a constraint – when addressing the revisions
22946  in dialog, numbers always point to the last number in RCS revision number,
22947  i.e.
22948  '35' in '1.2.35'.
22949  We don't currently support GIT addressing of revisions, one can just compare
22950  edited document with its revision X steps backs, where X is addressed as
22951  
22952 \begin_inset Flex Code
22953 status collapsed
22954
22955 \begin_layout Plain Layout
22956 HEAD~X
22957 \end_layout
22958
22959 \end_inset
22960
22961 .
22962 \end_layout
22963
22964 \begin_layout Section
22965 Literate Programming
22966 \end_layout
22967
22968 \begin_layout Standard
22969 Updated by 
22970 \noun on
22971 Kayvan Sylvan 
22972 \noun default
22973 (kayvan@sylvan.com)
22974 \noun on
22975
22976 \noun default
22977 original documentation written by 
22978 \noun on
22979 Edmar Wienskoski Jr.
22980
22981 \noun default
22982  (edmar-w-jr@technologist.com)
22983 \end_layout
22984
22985 \begin_layout Subsection
22986 Introduction
22987 \end_layout
22988
22989 \begin_layout Standard
22990 The main purpose of this documentation is to show you how to use \SpecialChar LyX
22991  for literate
22992  programming, where it is assumed that you are familiar with this programming
22993  technique, and know what 
22994 \begin_inset Quotes eld
22995 \end_inset
22996
22997 tangling
22998 \begin_inset Quotes erd
22999 \end_inset
23000
23001  and 
23002 \begin_inset Quotes eld
23003 \end_inset
23004
23005 weaving
23006 \begin_inset Quotes erd
23007 \end_inset
23008
23009  means.
23010  If that is not the case, please follow the web links provided in the following
23011  sections.
23012  There is a lot of good documentation out there covering old development
23013  history to the latest tools tips.
23014 \end_layout
23015
23016 \begin_layout Standard
23017 It is also assumed that you are familiar with \SpecialChar LyX
23018  itself to a point that you
23019  are comfortable changing your \SpecialChar LyX
23020  preferences, and X resources file.
23021  If that is not the case please refer to other \SpecialChar LyX
23022  documentation to cover your
23023  specific needs.
23024 \end_layout
23025
23026 \begin_layout Subsection
23027 Literate Programming
23028 \end_layout
23029
23030 \begin_layout Standard
23031 From the Literate Programming FAQ: 
23032 \end_layout
23033
23034 \begin_layout Quotation
23035 Literate programming is the combination of documentation and source together
23036  in a fashion suited for reading by human beings.
23037  In fact, literate programs should be enjoyable reading, even inviting!
23038  (Sorry Bob, I couldn't resist!) In general, literate programs combine source
23039  and documentation in a single file.
23040  Literate programming tools then parse the file to produce either readable
23041  documentation or compilable source.
23042  The WEB style of literate programming was created by D.
23043 \begin_inset space \thinspace{}
23044 \end_inset
23045
23046 E.
23047  Knuth during the development of his \SpecialChar TeX
23048  typesetting software.
23049  
23050 \end_layout
23051
23052 \begin_layout Standard
23053 Another excerpt says:
23054 \end_layout
23055
23056 \begin_layout Quotation
23057
23058 \emph on
23059 How is literate programming different from verbose commenting?
23060 \end_layout
23061
23062 \begin_layout Quotation
23063 There are three distinguishing characteristics.
23064  In order of importance, they are: 
23065 \end_layout
23066
23067 \begin_deeper
23068 \begin_layout Itemize
23069 flexible order of elaboration 
23070 \end_layout
23071
23072 \begin_layout Itemize
23073 automatic support for browsing 
23074 \end_layout
23075
23076 \begin_layout Itemize
23077 typeset documentation, especially diagrams and mathematics 
23078 \end_layout
23079
23080 \end_deeper
23081 \begin_layout Standard
23082 Now that I sparked your curiosity, take a look in the references.
23083 \end_layout
23084
23085 \begin_layout Subsubsection
23086 References
23087 \end_layout
23088
23089 \begin_layout Standard
23090 The complete Literate Programming FAQ can be found at:
23091 \end_layout
23092
23093 \begin_layout Quote
23094 Literate Programming FAQ 
23095 \begin_inset Flex URL
23096 status open
23097
23098 \begin_layout Plain Layout
23099
23100 http://www.literateprogramming.com/lpfaq.pdf
23101 \end_layout
23102
23103 \end_inset
23104
23105
23106 \end_layout
23107
23108 \begin_layout Standard
23109 The FAQ lists 23 (twenty three!) different literate programming tools.
23110  Where some are specialized or 
23111 \begin_inset Quotes eld
23112 \end_inset
23113
23114 tailored
23115 \begin_inset Quotes erd
23116 \end_inset
23117
23118  for particular programming languages, while other have general scope.
23119  I selected 
23120 \noun on
23121 Noweb
23122 \noun default
23123  for my own use for several reasons:
23124 \end_layout
23125
23126 \begin_layout Itemize
23127 It can generate the documentation either in \SpecialChar LaTeX
23128  or HTML.
23129 \end_layout
23130
23131 \begin_layout Itemize
23132 It has a open architecture, i.
23133 \begin_inset space \thinspace{}
23134 \end_inset
23135
23136 e.
23137 \begin_inset space \space{}
23138 \end_inset
23139
23140 it is easy to plug in new filters
23141 \begin_inset Foot
23142 status collapsed
23143
23144 \begin_layout Plain Layout
23145
23146 \emph on
23147 Filters 
23148 \emph default
23149 are programs that read a given data stream and output a manipulated data
23150  stream.
23151  That way, a WEB file (consisting of literate code) can be turned into a
23152  file consisting only of C program code or \SpecialChar LaTeX
23153  code.
23154 \end_layout
23155
23156 \end_inset
23157
23158  and to perform special processing that you may need.
23159  
23160 \end_layout
23161
23162 \begin_layout Itemize
23163 There is a good selection of filters available already (the HTML is one
23164  of them).
23165 \end_layout
23166
23167 \begin_layout Itemize
23168 It is free.
23169 \end_layout
23170
23171 \begin_layout Standard
23172 The Noweb web page can be found at: 
23173 \end_layout
23174
23175 \begin_layout Quote
23176 Noweb home page 
23177 \begin_inset Flex URL
23178 status collapsed
23179
23180 \begin_layout Plain Layout
23181
23182 https://www.cs.tufts.edu/~nr/noweb/
23183 \end_layout
23184
23185 \end_inset
23186
23187
23188 \end_layout
23189
23190 \begin_layout Standard
23191 Starting from there you can reach many other interesting links and even
23192  some literate program examples.
23193 \end_layout
23194
23195 \begin_layout Subsection
23196 \SpecialChar LyX
23197  and Literate Programming with Noweb
23198 \end_layout
23199
23200 \begin_layout Standard
23201 The \SpecialChar LyX
23202  support for Literate Programming is provided by using the generic \SpecialChar LyX
23203
23204  converters mechanism.
23205  This support is provided in a 
23206 \begin_inset Quotes eld
23207 \end_inset
23208
23209 Noweb independent
23210 \begin_inset Quotes erd
23211 \end_inset
23212
23213  way, i.
23214 \begin_inset space \thinspace{}
23215 \end_inset
23216
23217 e.
23218 \begin_inset space \space{}
23219 \end_inset
23220
23221 you will be able to use this new \SpecialChar LyX
23222  feature with some other literate programming
23223  tool of your choice by just changing your \SpecialChar LyX
23224  preferences.
23225 \end_layout
23226
23227 \begin_layout Subsubsection
23228 Generating documents and code (weaving and tangling)
23229 \end_layout
23230
23231 \begin_layout Paragraph
23232 Using the noweb module
23233 \end_layout
23234
23235 \begin_layout Standard
23236 If you have installed Noweb and \SpecialChar LyX
23237  successfully, whenever you open a new document,
23238  after you have chosen its document class, use the 
23239 \family sans
23240 Document\SpecialChar menuseparator
23241 Settings
23242 \family default
23243  menu to add the 
23244 \begin_inset Quotes eld
23245 \end_inset
23246
23247 noweb
23248 \begin_inset Quotes erd
23249 \end_inset
23250
23251  module.
23252  If Noweb is correctly installed, when you click on the 
23253 \begin_inset Quotes eld
23254 \end_inset
23255
23256 Modules
23257 \begin_inset Quotes erd
23258 \end_inset
23259
23260  link, you will see the 
23261 \begin_inset Quotes eld
23262 \end_inset
23263
23264 noweb
23265 \begin_inset Quotes erd
23266 \end_inset
23267
23268  module in the available list and you can add it to your document.
23269 \end_layout
23270
23271 \begin_layout Paragraph
23272 Typing code in
23273 \end_layout
23274
23275 \begin_layout Standard
23276 \SpecialChar LyX
23277  enables you to write code with a custom inset named 
23278 \begin_inset Flex Noun
23279 status collapsed
23280
23281 \begin_layout Plain Layout
23282 Chunk
23283 \end_layout
23284
23285 \end_inset
23286
23287 .
23288  Noweb delimits chunks like this:
23289 \end_layout
23290
23291 \begin_layout LyX-Code
23292 <<My code>>=
23293 \end_layout
23294
23295 \begin_layout LyX-Code
23296   code
23297 \end_layout
23298
23299 \begin_layout LyX-Code
23300   more code
23301 \end_layout
23302
23303 \begin_layout LyX-Code
23304   even more code
23305 \end_layout
23306
23307 \begin_layout LyX-Code
23308   @
23309 \end_layout
23310
23311 \begin_layout Standard
23312 The problem is that whatever is written in between the << and the 
23313 \family typewriter
23314 @
23315 \family default
23316  must be taken literally, i.
23317 \begin_inset space \thinspace{}
23318 \end_inset
23319
23320 e.
23321 \begin_inset space \space{}
23322 \end_inset
23323
23324 \SpecialChar LyX
23325  should be prevented from making any special interpretation of what has
23326  been written.
23327  This is also handled by 
23328 \begin_inset Flex Noun
23329 status collapsed
23330
23331 \begin_layout Plain Layout
23332 Chunk
23333 \end_layout
23334
23335 \end_inset
23336
23337 , that works like a normal text inset but has a free spacing capability.
23338 \end_layout
23339
23340 \begin_layout Standard
23341 As a special note, you can also use the 
23342 \begin_inset Quotes eld
23343 \end_inset
23344
23345 %def
23346 \begin_inset Quotes erd
23347 \end_inset
23348
23349  construct of Noweb in your chunks to add items to Noweb's identifier cross-refe
23350 rence:
23351 \end_layout
23352
23353 \begin_layout LyX-Code
23354 <<My chunk>>=
23355 \end_layout
23356
23357 \begin_layout LyX-Code
23358 def some_function(args):
23359 \end_layout
23360
23361 \begin_layout LyX-Code
23362    "This is the doc string for this function."
23363 \end_layout
23364
23365 \begin_layout LyX-Code
23366    print "My args: ", args
23367 \end_layout
23368
23369 \begin_layout LyX-Code
23370 @ %def some_function
23371 \end_layout
23372
23373 \begin_layout Standard
23374 For an example of this usage and the resulting cross-reference output, look
23375  at the Literate python program in 
23376 \emph on
23377 LIBDIR/examples/listerrors.lyx
23378 \emph default
23379  which should make this all clear.
23380 \end_layout
23381
23382 \begin_layout Paragraph
23383 Generating the documentation
23384 \end_layout
23385
23386 \begin_layout Standard
23387 At this point you already have a new document file with a proper document
23388  class, and with some code and text on it.
23389  How do I print it? The answer is simple, you select 
23390 \family sans
23391 View\SpecialChar menuseparator
23392 DVI,
23393 \family default
23394  etc.
23395  Just like you would do for a plain document.
23396  No special procedure is required.
23397 \end_layout
23398
23399 \begin_layout Standard
23400 To help orientate you, I will now explain what happens inside \SpecialChar LyX
23401 :
23402 \end_layout
23403
23404 \begin_layout Enumerate
23405 When the 
23406 \family sans
23407 Update\SpecialChar menuseparator
23408 DVI
23409 \family default
23410  menu option is chosen, a \SpecialChar LaTeX
23411  file is generated.
23412  
23413 \end_layout
23414
23415 \begin_deeper
23416 \begin_layout Standard
23417 If the document is of any literate class the generated file will be named
23418  with an extension name defined by the 
23419 \begin_inset Quotes eld
23420 \end_inset
23421
23422 literate
23423 \begin_inset Quotes erd
23424 \end_inset
23425
23426  format (defined in the Preferences panel), otherwise the file will have
23427  the usual 
23428 \family typewriter
23429 .tex
23430 \family default
23431  extension.
23432 \end_layout
23433
23434 \end_deeper
23435 \begin_layout Enumerate
23436 Note that the only difference so far is in the name of the file, no special
23437  processing is required by \SpecialChar LyX
23438 .
23439  Given that you formatted the code using the 
23440 \begin_inset Flex Noun
23441 status collapsed
23442
23443 \begin_layout Plain Layout
23444 Chunk
23445 \end_layout
23446
23447 \end_inset
23448
23449  inset that, by itself, takes care of the business.
23450 \end_layout
23451
23452 \begin_layout Enumerate
23453 If the document is of any literate class \SpecialChar LyX
23454  will then use the internal \SpecialChar LyX
23455  to
23456  Noweb converter, followed by the Noweb to \SpecialChar LaTeX
23457  converter
23458 \begin_inset Foot
23459 status collapsed
23460
23461 \begin_layout Plain Layout
23462 The converters are defined in the 
23463 \family sans
23464 Tools\SpecialChar menuseparator
23465 Preferences
23466 \family default
23467  panel, under the 
23468 \begin_inset Quotes eld
23469 \end_inset
23470
23471 Conversion
23472 \begin_inset Quotes erd
23473 \end_inset
23474
23475  tab.
23476  See section 
23477 \emph on
23478 Converters
23479 \emph default
23480  of the 
23481 \emph on
23482 Customization
23483 \emph default
23484  manual for general information about converters.
23485 \end_layout
23486
23487 \end_inset
23488
23489  to generate the \SpecialChar LaTeX
23490  file.
23491 \end_layout
23492
23493 \begin_deeper
23494 \begin_layout Standard
23495 Otherwise it will just skip this step.
23496 \end_layout
23497
23498 \end_deeper
23499 \begin_layout Enumerate
23500 Finally, \SpecialChar LaTeX
23501  is invoked and the regular post processing continues as in a plain
23502  document.
23503 \end_layout
23504
23505 \begin_layout Standard
23506 Independence from a particular 
23507 \begin_inset Quotes eld
23508 \end_inset
23509
23510 literate tool
23511 \begin_inset Quotes erd
23512 \end_inset
23513
23514  is easily achieved by changing the commands that are run by the various
23515  converters.
23516 \end_layout
23517
23518 \begin_layout Paragraph
23519 Generating the code
23520 \end_layout
23521
23522 \begin_layout Standard
23523 When the build menu option is chosen or the corresponding button in the
23524  toolbar is pressed, a \SpecialChar LaTeX
23525  file is generated just like step 1 above.
23526  Next, \SpecialChar LyX
23527  invokes the 
23528 \family typewriter
23529 Noweb->Program
23530 \family default
23531  converter.
23532  This converter needs to be defined by the user and is not installed by
23533  default, though the Program format is.
23534  This converter (like any other converter) will have two parts:
23535 \end_layout
23536
23537 \begin_layout Enumerate
23538 The converter program itself.
23539  This program performs the conversion from the one format to the other (in
23540  this case, from the Noweb format to the Program pseudo-format).
23541 \end_layout
23542
23543 \begin_layout Enumerate
23544 The error log parser.
23545  This is a program whose sole purpose is to rewrite error messages in a
23546  format that \SpecialChar LyX
23547  understands.
23548  This makes it possible for \SpecialChar LyX
23549  to place error boxes in the right places in
23550  the file buffer.
23551 \end_layout
23552
23553 \begin_layout Standard
23554 The first part, the 
23555 \begin_inset Quotes eld
23556 \end_inset
23557
23558 Converter
23559 \begin_inset Quotes erd
23560 \end_inset
23561
23562  setting, should be set to
23563 \end_layout
23564
23565 \begin_layout LyX-Code
23566
23567 \family typewriter
23568 build-script $$i
23569 \family default
23570  $$r
23571 \end_layout
23572
23573 \begin_layout Standard
23574 This basically means that \SpecialChar LyX
23575  will call 
23576 \begin_inset Quotes eld
23577 \end_inset
23578
23579 build-script
23580 \begin_inset Quotes erd
23581 \end_inset
23582
23583  (a program or script) with the name of the Noweb file (normally a file
23584  in the \SpecialChar LyX
23585  temp directory) and the directory path of the original \SpecialChar LyX
23586  file.
23587  
23588 \end_layout
23589
23590 \begin_layout Standard
23591 This is an implementation of 
23592 \begin_inset Quotes eld
23593 \end_inset
23594
23595 build-script
23596 \begin_inset Quotes erd
23597 \end_inset
23598
23599  that you can place in a directory on your path:
23600 \end_layout
23601
23602 \begin_layout LyX-Code
23603
23604 \family sans
23605 #!/bin/sh
23606 \end_layout
23607
23608 \begin_layout LyX-Code
23609
23610 \family sans
23611 #
23612 \end_layout
23613
23614 \begin_layout LyX-Code
23615
23616 \family sans
23617 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
23618 \end_layout
23619
23620 \begin_layout Standard
23621 The next part of the converter setting is the 
23622 \begin_inset Quotes eld
23623 \end_inset
23624
23625 Flags
23626 \begin_inset Quotes erd
23627 \end_inset
23628
23629  which is to be set to
23630 \end_layout
23631
23632 \begin_layout LyX-Code
23633
23634 \family typewriter
23635 parselog=$$s/scripts/listerrors
23636 \end_layout
23637
23638 \begin_layout Standard
23639 This will run any errors that are generated by the 
23640 \begin_inset Quotes eld
23641 \end_inset
23642
23643 build-script
23644 \begin_inset Quotes erd
23645 \end_inset
23646
23647  process through the 
23648 \begin_inset Quotes eld
23649 \end_inset
23650
23651 listerrors
23652 \begin_inset Quotes erd
23653 \end_inset
23654
23655  program.
23656 \end_layout
23657
23658 \begin_layout Standard
23659 The build will normally take place in \SpecialChar LyX
23660 's temporary directory, so the files
23661  produced by the conversion will be in that directory.
23662  \SpecialChar LyX
23663  will copy out what it regards as the `main' file, but the 
23664 \family typewriter
23665 Noweb->Program
23666 \family default
23667  conversion may produce several files, and so most of these would then be
23668  deleted when \SpecialChar LyX
23669  was closed.
23670  This is why we pass in the NOWEB_OUTPUT_DIR environment variable so that
23671  the build-script chunk can place the generated files in that location.
23672 \end_layout
23673
23674 \begin_layout Paragraph
23675 Build instructions in the document
23676 \end_layout
23677
23678 \begin_layout Standard
23679 The last piece of the integration between \SpecialChar LyX
23680  and noweb is the 
23681 \begin_inset Quotes eld
23682 \end_inset
23683
23684 build-script
23685 \begin_inset Quotes erd
23686 \end_inset
23687
23688  chunk.
23689  Generally, the instructions for building your program should be embedded
23690  in a chunk of its own.
23691  The noweb-specific 
23692 \begin_inset Quotes eld
23693 \end_inset
23694
23695 build-script
23696 \begin_inset Quotes erd
23697 \end_inset
23698
23699  above uses the notangle command to look for this chunk (called 
23700 \begin_inset Quotes eld
23701 \end_inset
23702
23703 build-script
23704 \begin_inset Quotes erd
23705 \end_inset
23706
23707 ) and runs its contents through 
23708 \begin_inset Quotes eld
23709 \end_inset
23710
23711 sh
23712 \begin_inset Quotes erd
23713 \end_inset
23714
23715 .
23716 \end_layout
23717
23718 \begin_layout Standard
23719 Typically, such a chunk would look something like this:
23720 \end_layout
23721
23722 \begin_layout LyX-Code
23723 <<build-script>>=
23724 \end_layout
23725
23726 \begin_layout LyX-Code
23727 #!/bin/sh
23728 \begin_inset Newline newline
23729 \end_inset
23730
23731 if [ -z "${NOWEB_SOURCE}" ]
23732 \begin_inset Newline newline
23733 \end_inset
23734
23735 then
23736 \end_layout
23737
23738 \begin_layout LyX-Code
23739 NOWEB_SOURCE=myfile.nw
23740 \begin_inset Newline newline
23741 \end_inset
23742
23743 fi
23744 \begin_inset Newline newline
23745 \end_inset
23746
23747 [...
23748  code to extract files ...
23749  use NOWEB_OUTPUT_DIR here ...]
23750 \begin_inset Newline newline
23751 \end_inset
23752
23753 [...
23754  code to compile files ...]
23755 \begin_inset Newline newline
23756 \end_inset
23757
23758 @
23759 \end_layout
23760
23761 \begin_layout Standard
23762 Look in 
23763 \emph on
23764 LIBDIR/examples/listerrors.lyx
23765 \emph default
23766  or in 
23767 \emph on
23768 LIBDIR/examples/Literate.lyx
23769 \emph default
23770  which implement two versions of the 
23771 \begin_inset Quotes eld
23772 \end_inset
23773
23774 listerrors
23775 \begin_inset Quotes erd
23776 \end_inset
23777
23778  program for some illustrations of how all of these pieces go together or
23779  in 
23780 \emph on
23781 LIBDIR/examples/noweb2lyx.lyx.
23782
23783 \emph default
23784  Interestingly, these three files show off the language-indepence of the
23785  \SpecialChar LyX
23786  literate programming support since they are written in Python, C and Perl
23787  respectively.
23788 \end_layout
23789
23790 \begin_layout Subsubsection
23791 Configuring \SpecialChar LyX
23792
23793 \end_layout
23794
23795 \begin_layout Standard
23796 All the Literate Programming support is configured by the 
23797 \family sans
23798 Tools\SpecialChar menuseparator
23799 Preferences
23800 \family default
23801  panel in the 
23802 \begin_inset Quotes eld
23803 \end_inset
23804
23805 File Handling
23806 \begin_inset Quotes erd
23807 \end_inset
23808
23809  tab.
23810  The important parts are:
23811 \end_layout
23812
23813 \begin_layout Description
23814 the
23815 \begin_inset space ~
23816 \end_inset
23817
23818
23819 \begin_inset Quotes eld
23820 \end_inset
23821
23822 NoWeb
23823 \begin_inset Quotes erd
23824 \end_inset
23825
23826
23827 \begin_inset space ~
23828 \end_inset
23829
23830 format Set up via the File Formats tab, this is where the Noweb-specific
23831  pieces are set up.
23832  The 
23833 \family sans
23834 GUI Name
23835 \family default
23836  is set to 
23837 \family typewriter
23838 NoWeb
23839 \family default
23840 , the file extension is set to 
23841 \family typewriter
23842 .nw
23843 \family default
23844 .
23845  This tells \SpecialChar LyX
23846  to create a file with a 
23847 \family typewriter
23848 .nw
23849 \family default
23850  extension in the first step of the conversion process.
23851 \end_layout
23852
23853 \begin_layout Description
23854 the
23855 \begin_inset space ~
23856 \end_inset
23857
23858
23859 \family sans
23860 Program
23861 \family default
23862
23863 \begin_inset space ~
23864 \end_inset
23865
23866 format This is an empty format whose sole purpose is to be the endpoint
23867  of a conversion (which then allows us to set up a converter for it).
23868 \end_layout
23869
23870 \begin_layout Description
23871
23872 \family sans
23873 NoWeb
23874 \family default
23875 ->
23876 \family sans
23877 \SpecialChar LaTeX
23878
23879 \family default
23880  This converter performs the 
23881 \begin_inset Quotes eld
23882 \end_inset
23883
23884 weaving
23885 \begin_inset Quotes erd
23886 \end_inset
23887
23888  of the literate document.
23889  For Noweb, it is set to 
23890 \begin_inset Quotes eld
23891 \end_inset
23892
23893
23894 \family typewriter
23895 noweave -delay -index $$i > $$o
23896 \family default
23897
23898 \begin_inset Quotes erd
23899 \end_inset
23900
23901
23902 \end_layout
23903
23904 \begin_layout Description
23905
23906 \family sans
23907 NoWeb
23908 \family default
23909 ->
23910 \family sans
23911 Program
23912 \family default
23913  This performs the 
23914 \begin_inset Quotes eld
23915 \end_inset
23916
23917 tangling step
23918 \begin_inset Quotes erd
23919 \end_inset
23920
23921 .
23922  As stated above, the Converter is set to 
23923 \begin_inset Quotes eld
23924 \end_inset
23925
23926
23927 \family typewriter
23928 build-script $$i
23929 \family default
23930  $$r
23931 \begin_inset Quotes erd
23932 \end_inset
23933
23934 , with Flags set to
23935 \begin_inset Newline newline
23936 \end_inset
23937
23938
23939 \begin_inset Quotes eld
23940 \end_inset
23941
23942
23943 \family typewriter
23944 parselog=$$s/scripts/listerrors
23945 \family default
23946
23947 \begin_inset Quotes erd
23948 \end_inset
23949
23950 .
23951 \end_layout
23952
23953 \begin_layout Subsubsection
23954 Debug extensions
23955 \end_layout
23956
23957 \begin_layout Standard
23958 There is also a new function implemented in the \SpecialChar LyX
23959  server, the 
23960 \begin_inset Quotes eld
23961 \end_inset
23962
23963 server-goto-file-row" function, to be used with ddd/gdb or other debugger.
23964  
23965 \end_layout
23966
23967 \begin_layout Standard
23968 When debugging code with ddd/gdb, it is possible to invoke a text editor
23969  at the current execution position with a single key stroke.
23970  The default ddd configuration for that is shift-ctrl-V.
23971  It happens that you can define the editor command line invocation in ddd
23972  by accessing the 
23973 \family sans
23974 Edit\SpecialChar menuseparator
23975 Preferences\SpecialChar menuseparator
23976 Helpers
23977 \family default
23978  dialog and changing the "Edit Sources" entry.
23979 \end_layout
23980
23981 \begin_layout Standard
23982 I take advantage of the newly created \SpecialChar LyX
23983  server function and this ddd feature,
23984  and set 
23985 \begin_inset Quotes eld
23986 \end_inset
23987
23988 Edit Sources
23989 \begin_inset Quotes erd
23990 \end_inset
23991
23992  to:
23993 \end_layout
23994
23995 \begin_layout LyX-Code
23996 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
23997 \end_layout
23998
23999 \begin_layout Standard
24000 With this, whenever you are using ddd and find a point in the program that
24001  you want to edit, you just press shift-ctrl-V (in the ddd window), and
24002  ddd will forward this information to \SpecialChar LyX
24003  through the \SpecialChar LyX
24004  server and then the
24005  \SpecialChar LyX
24006  window will show the same file with the cursor at the same position ddd
24007  was pointing to.
24008  No more guessing or long scrolling to locate a point in the program back
24009  from debugging !
24010 \end_layout
24011
24012 \begin_layout Standard
24013 Note however that you must enable the \SpecialChar LyX
24014  server to get this feature working
24015  (it is disabled by default).
24016  Sec.
24017 \begin_inset space ~
24018 \end_inset
24019
24020
24021 \begin_inset CommandInset ref
24022 LatexCommand ref
24023 reference "sec:Starting-the-Server"
24024
24025 \end_inset
24026
24027  explains how to do that.
24028 \end_layout
24029
24030 \begin_layout Subsubsection
24031 Toolbar extensions
24032 \end_layout
24033
24034 \begin_layout Standard
24035 There are six new buttons that can be added to your \SpecialChar LyX
24036  toolbar.
24037  Four of these buttons are short cuts to layout styles: 
24038 \family sans
24039 Standard
24040 \family default
24041
24042 \family sans
24043 Section
24044 \family default
24045
24046 \family sans
24047 \SpecialChar LaTeX
24048
24049 \family default
24050 , and 
24051 \family sans
24052 \SpecialChar LyX
24053 -Code
24054 \family default
24055 , one for the custom inset 
24056 \family sans
24057 Chunk
24058 \family default
24059 .
24060  The last one is a short cut to the 
24061 \begin_inset Quotes eld
24062 \end_inset
24063
24064 Build Program
24065 \begin_inset Quotes erd
24066 \end_inset
24067
24068  File menu entry.
24069  
24070 \end_layout
24071
24072 \begin_layout Standard
24073 \SpecialChar LyX
24074  has a range of buttons that are available for tool bar customization.
24075  In my toolbar I like to combine the six short cuts above with two more:
24076  One for 
24077 \family sans
24078 Document
24079 \family default
24080 \SpecialChar menuseparator
24081
24082 \family sans
24083 Update
24084 \family default
24085 \SpecialChar menuseparator
24086
24087 \family sans
24088 DVI
24089 \family default
24090  and the other for 
24091 \family sans
24092 Document\SpecialChar menuseparator
24093 View\SpecialChar menuseparator
24094 DVI
24095 \family default
24096  File menu entries.
24097  Here is how it looks like:
24098 \end_layout
24099
24100 \begin_layout LyX-Code
24101 Toolbar
24102 \end_layout
24103
24104 \begin_layout LyX-Code
24105   Layouts
24106 \end_layout
24107
24108 \begin_layout LyX-Code
24109   Icon "layout Standard"
24110 \end_layout
24111
24112 \begin_layout LyX-Code
24113   Icon "layout Section"
24114 \end_layout
24115
24116 \begin_layout LyX-Code
24117   Icon "layout \SpecialChar LaTeX
24118 "
24119 \end_layout
24120
24121 \begin_layout LyX-Code
24122   Icon "layout \SpecialChar LyX
24123 -Code"
24124 \end_layout
24125
24126 \begin_layout LyX-Code
24127   Icon "flex.insert Chunk"
24128 \end_layout
24129
24130 \begin_layout LyX-Code
24131   Separator
24132 \end_layout
24133
24134 \begin_layout LyX-Code
24135   Icon "buffer-view"
24136 \end_layout
24137
24138 \begin_layout LyX-Code
24139   Icon "buffer-typeset"
24140 \end_layout
24141
24142 \begin_layout LyX-Code
24143   Icon "build-program"
24144 \end_layout
24145
24146 \begin_layout LyX-Code
24147   Separator
24148 \end_layout
24149
24150 \begin_layout LyX-Code
24151 .
24152 \end_layout
24153
24154 \begin_layout LyX-Code
24155 .
24156 \end_layout
24157
24158 \begin_layout LyX-Code
24159 .
24160 \end_layout
24161
24162 \begin_layout LyX-Code
24163 End
24164 \end_layout
24165
24166 \begin_layout Subsubsection
24167 Colors customization
24168 \end_layout
24169
24170 \begin_layout Standard
24171 There are a number of colors in \SpecialChar LyX
24172  that can be customized in 
24173 \family sans
24174 Preferences
24175 \family default
24176 .
24177  One of the things that bothers people is the \SpecialChar LaTeX
24178  font color.
24179  The default color is red, since the chunks uses \SpecialChar LaTeX
24180  font, and there is a lot
24181  of chunks in literate documents, you may get tired of seeing everything
24182  in red.
24183  You can change it by going to the tabs 
24184 \family sans
24185 Look&Feel
24186 \family default
24187
24188 \family sans
24189 Colors.
24190 \end_layout
24191
24192 \begin_layout Standard
24193 The next thing is the visible presence of the newline character in the screen.
24194  You can choose the color of this particular character and make it blend
24195  in the background.
24196  I recommend you choosing a color that is close to the background but not
24197  equal, that way you still can see it is there, but it is not bothering
24198  you anymore.
24199 \end_layout
24200
24201 \begin_layout Subsection
24202 \SpecialChar LyX
24203  and knitr/Sweave
24204 \end_layout
24205
24206 \begin_layout Standard
24207 Support for 
24208 \family sans
24209 knitr
24210 \family default
24211  and 
24212 \family sans
24213 Sweave
24214 \family default
24215  is documented in the 
24216 \emph on
24217 knitr.lyx
24218 \emph default
24219  example file and in the Sweave manual (menu 
24220 \family sans
24221 Help\SpecialChar menuseparator
24222 Specific Manuals
24223 \family default
24224 ).
24225 \end_layout
24226
24227 \begin_layout Chapter
24228 Special features
24229 \end_layout
24230
24231 \begin_layout Standard
24232 You can do everything with \SpecialChar LyX
24233  that you can do with \SpecialChar LaTeX
24234 .
24235  However, \SpecialChar LyX
24236  cannot support every \SpecialChar LaTeX
24237  feature directly.
24238  But you can always use \SpecialChar TeX
24239  Code.
24240  This chapter shows you some more special things you might want to use.
24241  For other special things you can do with figures, tables, floats, boxes
24242  and notes, have a look at the 
24243 \emph on
24244 Embedded
24245 \begin_inset space ~
24246 \end_inset
24247
24248 Objects
24249 \emph default
24250  manual.
24251 \end_layout
24252
24253 \begin_layout Section
24254 Multiple Text Columns
24255 \end_layout
24256
24257 \begin_layout Standard
24258 This feature is independent of the option 
24259 \family sans
24260 Two-column document
24261 \family default
24262  in the document settings under 
24263 \family sans
24264 Text Layout
24265 \family default
24266 .
24267  If you want to have 2
24268 \begin_inset space ~
24269 \end_inset
24270
24271 columns for the whole document, it is recommended to use the 
24272 \family sans
24273 Two-column document
24274 \family default
24275  option.
24276  For all other cases use this feature.
24277 \end_layout
24278
24279 \begin_layout Standard
24280 To use multiple text columns in your document, you have to load the module
24281  
24282 \family sans
24283 Multiple Columns
24284 \family default
24285  (menu 
24286 \family sans
24287 Document\SpecialChar menuseparator
24288 Settings\SpecialChar menuseparator
24289 Modules
24290 \family default
24291 ) and must have the \SpecialChar LaTeX
24292 -package 
24293 \begin_inset Flex Code
24294 status collapsed
24295
24296 \begin_layout Plain Layout
24297 multicol
24298 \end_layout
24299
24300 \end_inset
24301
24302  installed.
24303 \end_layout
24304
24305 \begin_layout Standard
24306 Footnotes within multiple columns will be placed at the bottom of the page
24307  and not under each column.
24308  Within the different columns you can use everything, with the limitation
24309  that for floats you need to use the float option 
24310 \family sans
24311 Span columns
24312 \family default
24313 .
24314 \end_layout
24315
24316 \begin_layout Subsection
24317 Basics
24318 \end_layout
24319
24320 \begin_layout Standard
24321 If you want to have 2
24322 \begin_inset space ~
24323 \end_inset
24324
24325 columns in your text, insert a multicolumn inset via the menu 
24326 \family sans
24327 Insert\SpecialChar menuseparator
24328 Custom
24329 \begin_inset space ~
24330 \end_inset
24331
24332 Insets\SpecialChar menuseparator
24333 Multiple
24334 \begin_inset space ~
24335 \end_inset
24336
24337 Columns
24338 \family default
24339  where the columns should start.
24340  Write all text that should be printed in 2
24341 \begin_inset space ~
24342 \end_inset
24343
24344 columns into this inset.
24345 \end_layout
24346
24347 \begin_layout Standard
24348 Here is an example:
24349 \end_layout
24350
24351 \begin_layout Standard
24352 \noindent
24353 \begin_inset Flex Multiple Columns
24354 status open
24355
24356 \begin_layout Plain Layout
24357 \noindent
24358
24359 \series bold
24360 \size small
24361 The Adventure of the Empty House
24362 \series default
24363
24364 \begin_inset Newline newline
24365 \end_inset
24366
24367 by Sir Arthur Conan Doyle
24368 \end_layout
24369
24370 \begin_layout Plain Layout
24371
24372 \size small
24373 It was in the spring of the year 1894 that all London was interested, and
24374  the fashionable world dismayed, by the murder of the Honourable Ronald
24375  Adair under most unusual and inexplicable circumstances.
24376  The public has already learned those particulars of the crime which came
24377  out in the police investigation, but a good deal was suppressed upon that
24378  occasion, since the case for the prosecution was so overwhelmingly strong
24379  that it was not necessary to bring forward all the facts.
24380  Only now, at the end of nearly ten years, am I allowed to supply those
24381  missing links which make up the whole of that remarkable chain.
24382  The crime was of interest in itself, but that interest was as nothing to
24383  me compared to the inconceivable sequel, which afforded me the greatest
24384  shock and surprise of any event in my adventurous life.
24385  Even now, after this long interval, I find myself thrilling as I think
24386  of it, and feeling once more that sudden flood of joy, amazement, and increduli
24387 ty which utterly submerged my mind.
24388  Let me say to that public, which has shown some interest in those glimpses
24389  which I have occasionally given them of the thoughts and actions of a very
24390  remarkable man, that they are not to blame me if I have not shared my knowledge
24391  with them, for I should have considered it my first duty to do so, had
24392  I not been barred by a positive prohibition from his own lips, which was
24393  only withdrawn upon the third of last month.
24394 \end_layout
24395
24396 \end_inset
24397
24398
24399 \end_layout
24400
24401 \begin_layout Standard
24402 To get 3 or more columns, set the cursor into the multicolumn inset and
24403  use the menu 
24404 \family sans
24405 Insert\SpecialChar menuseparator
24406 Number
24407 \begin_inset space ~
24408 \end_inset
24409
24410 of
24411 \begin_inset space ~
24412 \end_inset
24413
24414 Columns
24415 \family default
24416 .
24417  The number of the desired columns is written into that inset (for 3
24418 \begin_inset space ~
24419 \end_inset
24420
24421 columns write 
24422 \begin_inset Quotes eld
24423 \end_inset
24424
24425 3
24426 \begin_inset Quotes erd
24427 \end_inset
24428
24429 ).
24430 \begin_inset Newline newline
24431 \end_inset
24432
24433 Here is an example with 3
24434 \begin_inset space ~
24435 \end_inset
24436
24437 columns:
24438 \end_layout
24439
24440 \begin_layout Standard
24441 \begin_inset Flex Multiple Columns
24442 status open
24443
24444 \begin_layout Plain Layout
24445
24446 \size footnotesize
24447 \begin_inset Argument 1
24448 status open
24449
24450 \begin_layout Plain Layout
24451
24452 3
24453 \end_layout
24454
24455 \end_inset
24456
24457 It can be imagined that my close intimacy with Sherlock Holmes had interested
24458  me deeply in crime, and that after his disappearance I never failed to
24459  read with care the various problems which came before the public.
24460  And I even attempted, more than once, for my own private satisfaction,
24461  to employ his methods in their solution, though with indifferent success.
24462  There was none, however, which appealed to me like this tragedy of Ronald
24463  Adair.
24464  As I read the evidence at the inquest, which led up to a verdict of willful
24465  murder against some person or persons unknown, I realized more clearly
24466  than I had ever done the loss which the community had sustained by the
24467  death of Sherlock Holmes.
24468  There were points about this strange business which would, I was sure,
24469  have specially appealed to him, and the efforts of the police would have
24470  been supplemented, or more probably anticipated, by the trained observation
24471  and the alert mind of the first criminal agent in Europe.
24472  All day, as I drove upon my round, I turned over the case in my mind and
24473  found no explanation which appeared to me to be adequate.
24474  At the risk of telling a twice-told tale, I will recapitulate the facts
24475  as they were known to the public at the conclusion of the inquest.
24476 \end_layout
24477
24478 \end_inset
24479
24480
24481 \end_layout
24482
24483 \begin_layout Standard
24484 You can have up to 10
24485 \begin_inset space ~
24486 \end_inset
24487
24488 columns if you want to, but that might not be very pleasant for the readers
24489  of your document.
24490 \end_layout
24491
24492 \begin_layout Standard
24493 \begin_inset Newpage newpage
24494 \end_inset
24495
24496
24497 \end_layout
24498
24499 \begin_layout Subsection
24500 Columns inside Columns
24501 \end_layout
24502
24503 \begin_layout Standard
24504 You can also have columns inside columns:
24505 \end_layout
24506
24507 \begin_layout Standard
24508 \begin_inset Flex Multiple Columns
24509 status open
24510
24511 \begin_layout Plain Layout
24512
24513 \size footnotesize
24514 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
24515  at that time governor of one of the Australian colonies.
24516  Adair's mother had returned from Australia to undergo the operation for
24517  cataract, and she, her son Ronald, and her daughter Hilda were living together
24518  at 427 Park Lane.
24519 \end_layout
24520
24521 \begin_layout Plain Layout
24522 \begin_inset Flex Multiple Columns
24523 status open
24524
24525 \begin_layout Plain Layout
24526
24527 \size footnotesize
24528 The youth moved in the best society
24529 \begin_inset space ~
24530 \end_inset
24531
24532 – had, so far as was known, no enemies and no particular vices.
24533  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
24534  had been broken off by mutual consent some months before, and there was
24535  no sign that it had left any very profound feeling behind it.
24536  For the rest {sic} the man's life moved in a narrow and conventional circle,
24537  for his habits were quiet and his nature unemotional.
24538  Yet it was upon this easy-going young aristocrat that death came, in most
24539  strange and unexpected form, between the hours of ten and eleven-twenty
24540  on the night of March 30, 1894.
24541 \end_layout
24542
24543 \end_inset
24544
24545
24546 \end_layout
24547
24548 \begin_layout Plain Layout
24549
24550 \size footnotesize
24551 Ronald Adair was fond of cards
24552 \begin_inset space ~
24553 \end_inset
24554
24555 – playing continually, but never for such stakes as would hurt him.
24556  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
24557  It was shown that, after dinner on the day of his death, he had played
24558  a rubber of whist at the latter club.
24559  He had also played there in the afternoon.
24560
24561 \size default
24562  
24563 \size footnotesize
24564 The evidence of those who had played with him
24565 \begin_inset space ~
24566 \end_inset
24567
24568 – Mr.
24569  Murray, Sir John Hardy, and Colonel Moran
24570 \begin_inset space ~
24571 \end_inset
24572
24573 – showed that the game was whist, and that there was a fairly equal fall
24574  of the cards.
24575  Adair might have lost five pounds, but not more.
24576  His fortune was a considerable one, and such a loss could not in any way
24577  affect him.
24578  He had played nearly every day at one club or other, but he was a cautious
24579  player, and usually rose a winner.
24580  It came out in evidence that, in partnership with Colonel Moran, he had
24581  actually won as much as four hundred and twenty pounds in a sitting, some
24582  weeks before, from Godfrey Milner and Lord Balmoral.
24583  So much for his recent history as it came out at the inquest.
24584 \end_layout
24585
24586 \end_inset
24587
24588
24589 \end_layout
24590
24591 \begin_layout Subsection
24592 Advanced Examples
24593 \end_layout
24594
24595 \begin_layout Standard
24596 The examples in this section show some more special features of multiple
24597  columns.
24598 \end_layout
24599
24600 \begin_layout Standard
24601 For more features of multiple columns, have a look at the 
24602 \begin_inset CommandInset href
24603 LatexCommand href
24604 name "documentation"
24605 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
24606 literal "false"
24607
24608 \end_inset
24609
24610  of the \SpecialChar LaTeX
24611 -package 
24612 \begin_inset Flex Code
24613 status collapsed
24614
24615 \begin_layout Plain Layout
24616 multicol
24617 \end_layout
24618
24619 \end_inset
24620
24621 .
24622 \end_layout
24623
24624 \begin_layout Subsubsection
24625 Preface
24626 \end_layout
24627
24628 \begin_layout Standard
24629 To add a preface text for multiple columns, set the cursor into the multicolumn
24630  inset and use the menu 
24631 \family sans
24632 Insert\SpecialChar menuseparator
24633 Preface
24634 \family default
24635 .
24636  Write your preface text into that inset.
24637 \begin_inset Newline newline
24638 \end_inset
24639
24640 This is an example with some preface text:
24641 \end_layout
24642
24643 \begin_layout Standard
24644 \begin_inset VSpace bigskip
24645 \end_inset
24646
24647
24648 \end_layout
24649
24650 \begin_layout Standard
24651 \begin_inset Flex Multiple Columns
24652 status open
24653
24654 \begin_layout Plain Layout
24655 \begin_inset Argument 2
24656 status open
24657
24658 \begin_layout Plain Layout
24659 And the story continues and continues and continues and continues\SpecialChar ldots
24660
24661 \end_layout
24662
24663 \end_inset
24664
24665
24666 \size small
24667 On the evening of the crime, he returned from the club exactly at ten.
24668  His mother and sister were out spending the evening with a relation.
24669  The servant deposed that she heard him enter the front room on the second
24670  floor, generally used as his sitting-room.
24671  She had lit a fire there, and as it smoked she had opened the window.
24672  No sound was heard from the room until eleven-twenty, the hour of the return
24673  of Lady Maynooth and her daughter.
24674  Desiring to say good-night, she attempted to enter her son's room.
24675  The door was locked on the inside, and no answer could be got to their
24676  cries and knocking.
24677  Help was obtained, and the door forced.
24678  The unfortunate young man was found lying near the table.
24679  His head had been horribly mutilated by an expanding revolver bullet, but
24680  no weapon of any sort was to be found in the room.
24681 \end_layout
24682
24683 \end_inset
24684
24685
24686 \end_layout
24687
24688 \begin_layout Standard
24689 You can also use a section heading as the preface if you use a section command
24690  as \SpecialChar TeX
24691  Code.
24692  For example the command
24693 \end_layout
24694
24695 \begin_layout LyX-Code
24696
24697 \backslash
24698 subsection{subsection title}
24699 \end_layout
24700
24701 \begin_layout Standard
24702 creates a subsection.
24703  In this example the preface is a subsubsection:
24704 \end_layout
24705
24706 \begin_layout Standard
24707 \begin_inset Flex Multiple Columns
24708 status open
24709
24710 \begin_layout Plain Layout
24711 \begin_inset Argument 2
24712 status open
24713
24714 \begin_layout Plain Layout
24715 \begin_inset ERT
24716 status collapsed
24717
24718 \begin_layout Plain Layout
24719
24720
24721 \backslash
24722 subsubsection{
24723 \end_layout
24724
24725 \end_inset
24726
24727 This is a subsubsection heading as a preface
24728 \begin_inset ERT
24729 status collapsed
24730
24731 \begin_layout Plain Layout
24732
24733 }
24734 \end_layout
24735
24736 \end_inset
24737
24738
24739 \end_layout
24740
24741 \end_inset
24742
24743
24744 \size small
24745 A minute examination of the circumstances served only to make the case more
24746  complex.
24747  In the first place, no reason could be given why the young man should have
24748  fastened the door upon the inside.
24749  There was the possibility that the murderer had done this, and had afterwards
24750  escaped by the window.
24751  The drop was at least twenty feet, however, and a bed of crocuses in full
24752  bloom lay beneath.
24753  Neither the flowers nor the earth showed any sign of having been disturbed,
24754  nor were there any marks upon the narrow strip of grass which separated
24755  the house from the road.
24756  Apparently, therefore, it was the young man himself who had fastened the
24757  door.
24758  But how did he come by his death? No one could have climbed up to the window
24759  without leaving traces.
24760  Suppose a man had fired through the window, he would indeed be a remarkable
24761  shot who could with a revolver inflict so deadly a wound.
24762  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
24763  a hundred yards of the house.
24764  No one had heard a shot.
24765 \end_layout
24766
24767 \end_inset
24768
24769
24770 \end_layout
24771
24772 \begin_layout Standard
24773 If there is less vertical space than 6
24774 \begin_inset space ~
24775 \end_inset
24776
24777 text lines is left on the page at the beginning of the multiple columns,
24778  a page break will be inserted before the multiple columns.
24779  Depending on the number of lines of the preface text, you might want to
24780  change this space.
24781  This is done by setting the cursor into the mulitcolumn inset behind the
24782  preface (if there is any) and using the menu 
24783 \family sans
24784 Insert\SpecialChar menuseparator
24785 Space
24786 \begin_inset space ~
24787 \end_inset
24788
24789 Before
24790 \begin_inset space ~
24791 \end_inset
24792
24793 Page
24794 \begin_inset space ~
24795 \end_inset
24796
24797 Break
24798 \family default
24799 .
24800  Insert into that inset the amount of space like e.
24801 \begin_inset space \thinspace{}
24802 \end_inset
24803
24804 g.
24805 \begin_inset space \space{}
24806 \end_inset
24807
24808
24809 \begin_inset Quotes eld
24810 \end_inset
24811
24812 5cm
24813 \begin_inset Quotes erd
24814 \end_inset
24815
24816 .
24817 \begin_inset Newline newline
24818 \end_inset
24819
24820 In this example the space is set to 7
24821 \begin_inset space ~
24822 \end_inset
24823
24824 text lines by using 
24825 \begin_inset Flex Code
24826 status collapsed
24827
24828 \begin_layout Plain Layout
24829 7
24830 \backslash
24831 baselineskip
24832 \end_layout
24833
24834 \end_inset
24835
24836  (where the command 
24837 \begin_inset Flex Code
24838 status collapsed
24839
24840 \begin_layout Plain Layout
24841
24842 \backslash
24843 baselineskip
24844 \end_layout
24845
24846 \end_inset
24847
24848  needs to be inserted as \SpecialChar TeX
24849  code):
24850 \end_layout
24851
24852 \begin_layout Standard
24853 \begin_inset Flex Multiple Columns
24854 status open
24855
24856 \begin_layout Plain Layout
24857 \begin_inset Argument 3
24858 status open
24859
24860 \begin_layout Plain Layout
24861 7
24862 \begin_inset ERT
24863 status collapsed
24864
24865 \begin_layout Plain Layout
24866
24867
24868 \backslash
24869 baselineskip
24870 \end_layout
24871
24872 \end_inset
24873
24874
24875 \end_layout
24876
24877 \end_inset
24878
24879
24880 \size small
24881 On the evening of the crime, he returned from the club exactly at ten.
24882  His mother and sister were out spending the evening with a relation.
24883  The servant deposed that she heard him enter the front room on the second
24884  floor, generally used as his sitting-room.
24885  She had lit a fire there, and as it smoked she had opened the window.
24886  No sound was heard from the room until eleven-twenty, the hour of the return
24887  of Lady Maynooth and her daughter.
24888  Desiring to say good-night, she attempted to enter her son's room.
24889  The door was locked on the inside, and no answer could be got to their
24890  cries and knocking.
24891  Help was obtained, and the door forced.
24892  The unfortunate young man was found lying near the table.
24893  His head had been horribly mutilated by an expanding revolver bullet, but
24894  no weapon of any sort was to be found in the room.
24895 \end_layout
24896
24897 \end_inset
24898
24899
24900 \end_layout
24901
24902 \begin_layout Subsubsection
24903 Surrounding Space
24904 \end_layout
24905
24906 \begin_layout Standard
24907 The amount of space before and after multiple columns can be changed by
24908  changing the length 
24909 \begin_inset Flex Code
24910 status collapsed
24911
24912 \begin_layout Plain Layout
24913
24914 \backslash
24915 multicolsep
24916 \end_layout
24917
24918 \end_inset
24919
24920 .
24921  For example the command
24922 \end_layout
24923
24924 \begin_layout LyX-Code
24925
24926 \backslash
24927 setlength{
24928 \backslash
24929 multicolsep}{3cm}
24930 \end_layout
24931
24932 \begin_layout Standard
24933 in \SpecialChar TeX
24934  Code changes its value to 3
24935 \begin_inset space \thinspace{}
24936 \end_inset
24937
24938 cm.
24939  The change must be made before the multiple columns' start.
24940  The predefined value is 13
24941 \begin_inset space \thinspace{}
24942 \end_inset
24943
24944 pt.
24945 \end_layout
24946
24947 \begin_layout Standard
24948 For this example 
24949 \begin_inset Flex Code
24950 status collapsed
24951
24952 \begin_layout Plain Layout
24953
24954 \backslash
24955 multicolsep
24956 \end_layout
24957
24958 \end_inset
24959
24960  was set to 2.5
24961 \begin_inset space \thinspace{}
24962 \end_inset
24963
24964 cm:
24965 \end_layout
24966
24967 \begin_layout Standard
24968 \begin_inset ERT
24969 status open
24970
24971 \begin_layout Plain Layout
24972
24973
24974 \backslash
24975 setlength{
24976 \backslash
24977 multicolsep}{2.5cm}
24978 \end_layout
24979
24980 \end_inset
24981
24982
24983 \end_layout
24984
24985 \begin_layout Standard
24986 \begin_inset Flex Multiple Columns
24987 status open
24988
24989 \begin_layout Plain Layout
24990
24991 \size small
24992 All day I turned these facts over in my mind, endeavouring to hit upon some
24993  theory which could reconcile them all, and to find that line of least resistanc
24994 e which my poor friend had declared to be the starting-point of every investigat
24995 ion.
24996  I confess that I made little progress.
24997  In the evening I strolled across the Park, and found myself about six o'clock
24998  at the Oxford Street end of Park Lane.
24999  A group of loafers upon the pavements, all staring up at a particular window,
25000  directed me to the house which I had come to see.
25001  A tall, thin man with coloured glasses, whom I strongly suspected of being
25002  a plain-clothes detective, was pointing out some theory of his own, while
25003  the others crowded round to listen to what he said.
25004  I got as near him as I could, but his observations seemed to me to be absurd,
25005  so I withdrew again in some disgust.
25006  As I did so I struck against an elderly, deformed man, who had been behind
25007  me, and I knocked down several books which he was carrying.
25008 \end_layout
25009
25010 \end_inset
25011
25012
25013 \end_layout
25014
25015 \begin_layout Standard
25016 \begin_inset Note Greyedout
25017 status open
25018
25019 \begin_layout Plain Layout
25020
25021 \series bold
25022 Note:
25023 \series default
25024  The values you set with 
25025 \begin_inset Flex Code
25026 status collapsed
25027
25028 \begin_layout Plain Layout
25029
25030 \backslash
25031 setlength
25032 \end_layout
25033
25034 \end_inset
25035
25036  will be used for all following multiple columns until you change them again.
25037 \end_layout
25038
25039 \end_inset
25040
25041
25042 \end_layout
25043
25044 \begin_layout Standard
25045 \begin_inset ERT
25046 status collapsed
25047
25048 \begin_layout Plain Layout
25049
25050
25051 \backslash
25052 setlength{
25053 \backslash
25054 multicolsep}{13pt}
25055 \end_layout
25056
25057 \end_inset
25058
25059
25060 \begin_inset Note Note
25061 status collapsed
25062
25063 \begin_layout Plain Layout
25064 go back to the default
25065 \end_layout
25066
25067 \end_inset
25068
25069
25070 \end_layout
25071
25072 \begin_layout Standard
25073 \begin_inset Newpage newpage
25074 \end_inset
25075
25076
25077 \end_layout
25078
25079 \begin_layout Subsubsection
25080 Column Breaks
25081 \end_layout
25082
25083 \begin_layout Standard
25084 A column break can be forced by inserting the command 
25085 \begin_inset Flex Code
25086 status collapsed
25087
25088 \begin_layout Plain Layout
25089
25090 \backslash
25091 columnbreak{}
25092 \end_layout
25093
25094 \end_inset
25095
25096  as \SpecialChar TeX
25097  Code to that position in the text where the column should be broken.
25098  Note that this leads in most cases to whitespace in the text.
25099 \begin_inset Newline newline
25100 \end_inset
25101
25102 Here is an example:
25103 \end_layout
25104
25105 \begin_layout Standard
25106 \begin_inset Flex Multiple Columns
25107 status open
25108
25109 \begin_layout Plain Layout
25110
25111 \size small
25112 \begin_inset Quotes eld
25113 \end_inset
25114
25115 You're surprised to see me, sir,
25116 \begin_inset Quotes erd
25117 \end_inset
25118
25119  said he, in a strange, croaking voice.
25120 \end_layout
25121
25122 \begin_layout Plain Layout
25123
25124 \size small
25125 I acknowledged that I was.
25126 \end_layout
25127
25128 \begin_layout Plain Layout
25129
25130 \size small
25131 \begin_inset Quotes eld
25132 \end_inset
25133
25134 Well, I've a conscience, sir, and when I chanced to see you go into this
25135  house, as I came hobbling after you, I thought to myself, I'll just step
25136  in and see that kind gentleman, and tell him that if I was a bit gruff
25137  in my manner there was not any harm meant, and that I am much obliged to
25138  him for picking up my books.
25139 \begin_inset Quotes erd
25140 \end_inset
25141
25142
25143 \end_layout
25144
25145 \begin_layout Plain Layout
25146
25147 \size small
25148 \begin_inset Quotes eld
25149 \end_inset
25150
25151 You make too much of a trifle,
25152 \begin_inset Quotes erd
25153 \end_inset
25154
25155  said I.
25156  
25157 \begin_inset Quotes eld
25158 \end_inset
25159
25160 May I ask how you knew who I was?
25161 \begin_inset Quotes erd
25162 \end_inset
25163
25164  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
25165 \begin_inset ERT
25166 status collapsed
25167
25168 \begin_layout Plain Layout
25169
25170
25171 \backslash
25172 columnbreak{}
25173 \end_layout
25174
25175 \end_inset
25176
25177
25178 \end_layout
25179
25180 \begin_layout Plain Layout
25181
25182 \size small
25183 \begin_inset Quotes eld
25184 \end_inset
25185
25186 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25187  you'll find my little bookshop at the corner of Church Street, and very
25188  happy to see you, I am sure.
25189  Maybe you collect yourself, sir.
25190  Here's 
25191 \noun on
25192 British
25193 \begin_inset space ~
25194 \end_inset
25195
25196 Birds
25197 \noun default
25198 , and 
25199 \noun on
25200 Catullus
25201 \noun default
25202 , and 
25203 \noun on
25204 The Holy War
25205 \noun default
25206
25207 \begin_inset space ~
25208 \end_inset
25209
25210 – a bargain, every one of them.
25211  With five volumes you could just fill that gap on that second shelf.
25212  It looks untidy, does it not, sir?
25213 \begin_inset Quotes erd
25214 \end_inset
25215
25216
25217 \end_layout
25218
25219 \end_inset
25220
25221
25222 \end_layout
25223
25224 \begin_layout Subsubsection
25225 Column Separation
25226 \end_layout
25227
25228 \begin_layout Standard
25229 The width of the columns is automatically calculated, but you can modify
25230  the space between the columns.
25231  This is done by changing the length 
25232 \begin_inset Flex Code
25233 status collapsed
25234
25235 \begin_layout Plain Layout
25236
25237 \backslash
25238 columnsep
25239 \end_layout
25240
25241 \end_inset
25242
25243 .
25244  Its predefined value is 10
25245 \begin_inset space \thinspace{}
25246 \end_inset
25247
25248 pt.
25249  Here is an example where 
25250 \begin_inset Flex Code
25251 status collapsed
25252
25253 \begin_layout Plain Layout
25254
25255 \backslash
25256 columnsep
25257 \end_layout
25258
25259 \end_inset
25260
25261  is set to 3
25262 \begin_inset space \thinspace{}
25263 \end_inset
25264
25265 cm:
25266 \end_layout
25267
25268 \begin_layout Standard
25269 \begin_inset ERT
25270 status open
25271
25272 \begin_layout Plain Layout
25273
25274
25275 \backslash
25276 setlength{
25277 \backslash
25278 columnsep}{3cm}
25279 \end_layout
25280
25281 \end_inset
25282
25283
25284 \end_layout
25285
25286 \begin_layout Standard
25287 \begin_inset Flex Multiple Columns
25288 status open
25289
25290 \begin_layout Plain Layout
25291
25292 \size small
25293 My observations of No.
25294 \begin_inset space \space{}
25295 \end_inset
25296
25297 427 Park Lane did little to clear up the problem in which I was interested.
25298  The house was separated from the street by a low wall and railing, the
25299  whole not more than five feet high.
25300  It was perfectly easy, therefore, for anyone to get into the garden, but
25301  the window was entirely inaccessible, since there was no water pipe or
25302  anything which could help the most active man to climb it.
25303  More puzzled than ever, I retraced my steps to Kensington.
25304  I had not been in my study five minutes when the maid entered to say that
25305  a person desired to see me.
25306  To my astonishment it was none other than my strange old book collector,
25307  his sharp, wizened face peering out from a frame of white hair, and his
25308  precious volumes, a dozen of them at least, wedged under his right arm.
25309 \end_layout
25310
25311 \end_inset
25312
25313
25314 \end_layout
25315
25316 \begin_layout Standard
25317 \begin_inset ERT
25318 status collapsed
25319
25320 \begin_layout Plain Layout
25321
25322
25323 \backslash
25324 setlength{
25325 \backslash
25326 columnsep}{10pt}
25327 \end_layout
25328
25329 \end_inset
25330
25331
25332 \begin_inset Note Note
25333 status collapsed
25334
25335 \begin_layout Plain Layout
25336 go back to the default
25337 \end_layout
25338
25339 \end_inset
25340
25341
25342 \end_layout
25343
25344 \begin_layout Subsubsection
25345 Vertical Lines
25346 \end_layout
25347
25348 \begin_layout Standard
25349 Between the columns a rule with a width of the length 
25350 \begin_inset Flex Code
25351 status collapsed
25352
25353 \begin_layout Plain Layout
25354
25355 \backslash
25356 columnseprule
25357 \end_layout
25358
25359 \end_inset
25360
25361  is placed.
25362  If this rule width is set to 0
25363 \begin_inset space \thinspace{}
25364 \end_inset
25365
25366 pt (this is the default), the rule is suppressed.
25367  In the following example the rule is 2
25368 \begin_inset space \thinspace{}
25369 \end_inset
25370
25371 pt wide:
25372 \end_layout
25373
25374 \begin_layout Standard
25375 \begin_inset ERT
25376 status open
25377
25378 \begin_layout Plain Layout
25379
25380
25381 \backslash
25382 setlength{
25383 \backslash
25384 columnseprule}{2pt}
25385 \end_layout
25386
25387 \end_inset
25388
25389
25390 \end_layout
25391
25392 \begin_layout Standard
25393 \begin_inset Flex Multiple Columns
25394 status open
25395
25396 \begin_layout Plain Layout
25397
25398 \size small
25399 \begin_inset Quotes eld
25400 \end_inset
25401
25402 You're surprised to see me, sir,
25403 \begin_inset Quotes erd
25404 \end_inset
25405
25406  said he, in a strange, croaking voice.
25407 \end_layout
25408
25409 \begin_layout Plain Layout
25410
25411 \size small
25412 I acknowledged that I was.
25413 \end_layout
25414
25415 \begin_layout Plain Layout
25416
25417 \size small
25418 \begin_inset Quotes eld
25419 \end_inset
25420
25421 Well, I've a conscience, sir, and when I chanced to see you go into this
25422  house, as I came hobbling after you, I thought to myself, I'll just step
25423  in and see that kind gentleman, and tell him that if I was a bit gruff
25424  in my manner there was not any harm meant, and that I am much obliged to
25425  him for picking up my books.
25426 \begin_inset Quotes erd
25427 \end_inset
25428
25429
25430 \end_layout
25431
25432 \begin_layout Plain Layout
25433
25434 \size small
25435 \begin_inset Quotes eld
25436 \end_inset
25437
25438 You make too much of a trifle,
25439 \begin_inset Quotes erd
25440 \end_inset
25441
25442  said I.
25443  
25444 \begin_inset Quotes eld
25445 \end_inset
25446
25447 May I ask how you knew who I was?
25448 \begin_inset Quotes erd
25449 \end_inset
25450
25451
25452 \end_layout
25453
25454 \begin_layout Plain Layout
25455
25456 \size small
25457 \begin_inset Quotes eld
25458 \end_inset
25459
25460 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25461  you'll find my little bookshop at the corner of Church Street, and very
25462  happy to see you, I am sure.
25463  Maybe you collect yourself, sir.
25464  Here's 
25465 \noun on
25466 British
25467 \begin_inset space ~
25468 \end_inset
25469
25470 Birds
25471 \noun default
25472 , and 
25473 \noun on
25474 Catullus
25475 \noun default
25476 , and 
25477 \noun on
25478 The Holy War
25479 \noun default
25480
25481 \begin_inset space ~
25482 \end_inset
25483
25484 – a bargain, every one of them.
25485  With five volumes you could just fill that gap on that second shelf.
25486  It looks untidy, does it not, sir?
25487 \begin_inset Quotes erd
25488 \end_inset
25489
25490
25491 \end_layout
25492
25493 \end_inset
25494
25495
25496 \end_layout
25497
25498 \begin_layout Standard
25499 \begin_inset VSpace defskip
25500 \end_inset
25501
25502
25503 \end_layout
25504
25505 \begin_layout Standard
25506 The rule can be colored by redefining the command 
25507 \begin_inset Flex Code
25508 status collapsed
25509
25510 \begin_layout Plain Layout
25511
25512 \backslash
25513 columnseprulecolor
25514 \end_layout
25515
25516 \end_inset
25517
25518 .
25519  This is done by inserting the command
25520 \end_layout
25521
25522 \begin_layout LyX-Code
25523
25524 \backslash
25525 renewcommand{
25526 \backslash
25527 columnseprulecolor}{
25528 \backslash
25529 color{red}}
25530 \end_layout
25531
25532 \begin_layout Standard
25533 as \SpecialChar TeX
25534  Code before the multicolumn inset.
25535  Replace 
25536 \begin_inset Flex Code
25537 status collapsed
25538
25539 \begin_layout Plain Layout
25540 red
25541 \end_layout
25542
25543 \end_inset
25544
25545  in this command by a color of your choice.
25546  You can use all pre- and self-defined colors.
25547  See the 
25548 \emph on
25549 EmbeddedObjects
25550 \emph default
25551  manual, section 
25552 \emph on
25553 Colored
25554 \begin_inset space ~
25555 \end_inset
25556
25557 Tables
25558 \emph default
25559  for more information about pre- and self-defined colors.
25560  To go back to the default color insert the command
25561 \end_layout
25562
25563 \begin_layout LyX-Code
25564
25565 \backslash
25566 renewcommand{
25567 \backslash
25568 columnseprulecolor}{
25569 \backslash
25570 normalcolor}
25571 \end_layout
25572
25573 \begin_layout Standard
25574 Here is the example with a cyan rule and 1
25575 \begin_inset space \thinspace{}
25576 \end_inset
25577
25578 cm column separation:
25579 \end_layout
25580
25581 \begin_layout Standard
25582 \begin_inset ERT
25583 status open
25584
25585 \begin_layout Plain Layout
25586
25587
25588 \backslash
25589 setlength{
25590 \backslash
25591 columnsep}{1cm}
25592 \end_layout
25593
25594 \begin_layout Plain Layout
25595
25596
25597 \backslash
25598 renewcommand{
25599 \backslash
25600 columnseprulecolor}{
25601 \backslash
25602 color{cyan}}
25603 \end_layout
25604
25605 \end_inset
25606
25607
25608 \end_layout
25609
25610 \begin_layout Standard
25611 \begin_inset Flex Multiple Columns
25612 status open
25613
25614 \begin_layout Plain Layout
25615
25616 \size small
25617 \begin_inset Quotes eld
25618 \end_inset
25619
25620 You're surprised to see me, sir,
25621 \begin_inset Quotes erd
25622 \end_inset
25623
25624  said he, in a strange, croaking voice.
25625 \end_layout
25626
25627 \begin_layout Plain Layout
25628
25629 \size small
25630 I acknowledged that I was.
25631 \end_layout
25632
25633 \begin_layout Plain Layout
25634
25635 \size small
25636 \begin_inset Quotes eld
25637 \end_inset
25638
25639 Well, I've a conscience, sir, and when I chanced to see you go into this
25640  house, as I came hobbling after you, I thought to myself, I'll just step
25641  in and see that kind gentleman, and tell him that if I was a bit gruff
25642  in my manner there was not any harm meant, and that I am much obliged to
25643  him for picking up my books.
25644 \begin_inset Quotes erd
25645 \end_inset
25646
25647
25648 \end_layout
25649
25650 \begin_layout Plain Layout
25651
25652 \size small
25653 \begin_inset Quotes eld
25654 \end_inset
25655
25656 You make too much of a trifle,
25657 \begin_inset Quotes erd
25658 \end_inset
25659
25660  said I.
25661  
25662 \begin_inset Quotes eld
25663 \end_inset
25664
25665 May I ask how you knew who I was?
25666 \begin_inset Quotes erd
25667 \end_inset
25668
25669
25670 \end_layout
25671
25672 \begin_layout Plain Layout
25673
25674 \size small
25675 \begin_inset Quotes eld
25676 \end_inset
25677
25678 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25679  you'll find my little bookshop at the corner of Church Street, and very
25680  happy to see you, I am sure.
25681  Maybe you collect yourself, sir.
25682  Here's 
25683 \noun on
25684 British
25685 \begin_inset space ~
25686 \end_inset
25687
25688 Birds
25689 \noun default
25690 , and 
25691 \noun on
25692 Catullus
25693 \noun default
25694 , and 
25695 \noun on
25696 The Holy War
25697 \noun default
25698
25699 \begin_inset space ~
25700 \end_inset
25701
25702 – a bargain, every one of them.
25703  With five volumes you could just fill that gap on that second shelf.
25704  It looks untidy, does it not, sir?
25705 \begin_inset Quotes erd
25706 \end_inset
25707
25708
25709 \end_layout
25710
25711 \end_inset
25712
25713
25714 \end_layout
25715
25716 \begin_layout Standard
25717 \begin_inset ERT
25718 status collapsed
25719
25720 \begin_layout Plain Layout
25721
25722
25723 \backslash
25724 setlength{
25725 \backslash
25726 columnseprule}{0pt}
25727 \end_layout
25728
25729 \begin_layout Plain Layout
25730
25731
25732 \backslash
25733 renewcommand{
25734 \backslash
25735 columnseprulecolor}{
25736 \backslash
25737 normalcolor}
25738 \end_layout
25739
25740 \end_inset
25741
25742
25743 \begin_inset Note Note
25744 status collapsed
25745
25746 \begin_layout Plain Layout
25747 go back to the default
25748 \end_layout
25749
25750 \end_inset
25751
25752
25753 \end_layout
25754
25755 \begin_layout Section
25756 Non-standard Paragraph Shapes
25757 \end_layout
25758
25759 \begin_layout Standard
25760 \noindent
25761 \SpecialChar LaTeX
25762  as well as any other text processor uses by default rectangular paragraphs.
25763  For special cases like for example posters, invitation cards or poems you
25764  can modify the paragraph shape to one of your choice.
25765  This can be done by using the \SpecialChar LaTeX
25766 -package 
25767 \begin_inset Flex Code
25768 status collapsed
25769
25770 \begin_layout Plain Layout
25771 shapepar
25772 \end_layout
25773
25774 \end_inset
25775
25776  which is loaded by using in the document settings the module 
25777 \family sans
25778 Custom paragraph shapes
25779 \family default
25780 .
25781 \end_layout
25782
25783 \begin_layout Subsection
25784 Predefined shapes
25785 \end_layout
25786
25787 \begin_layout Standard
25788
25789 \series bold
25790 shapepar
25791 \series default
25792  provides the following shapes:
25793 \end_layout
25794
25795 \begin_layout Standard
25796 \begin_inset Tabular
25797 <lyxtabular version="3" rows="13" columns="3">
25798 <features booktabs="true" islongtable="true" longtabularalignment="center">
25799 <column alignment="left" valignment="middle" width="16col%">
25800 <column alignment="left" valignment="middle" width="40col%">
25801 <column alignment="left" valignment="middle" width="35col%">
25802 <row endhead="true">
25803 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25804 \begin_inset Text
25805
25806 \begin_layout Plain Layout
25807
25808 \series bold
25809 \size small
25810 Name
25811 \end_layout
25812
25813 \end_inset
25814 </cell>
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 Description
25823 \end_layout
25824
25825 \end_inset
25826 </cell>
25827 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25828 \begin_inset Text
25829
25830 \begin_layout Plain Layout
25831
25832 \series bold
25833 \size small
25834 Annotation
25835 \end_layout
25836
25837 \end_inset
25838 </cell>
25839 </row>
25840 <row interlinespace="default">
25841 <cell alignment="left" valignment="top" usebox="none">
25842 \begin_inset Text
25843
25844 \begin_layout Plain Layout
25845
25846 \size small
25847 CDlabel
25848 \end_layout
25849
25850 \end_inset
25851 </cell>
25852 <cell alignment="left" valignment="top" usebox="none">
25853 \begin_inset Text
25854
25855 \begin_layout Plain Layout
25856
25857 \size small
25858 Circle with circular hole (in the size of a CD/DVD)
25859 \end_layout
25860
25861 \end_inset
25862 </cell>
25863 <cell alignment="left" valignment="top" usebox="none">
25864 \begin_inset Text
25865
25866 \begin_layout Plain Layout
25867
25868 \size small
25869 Cannot be scaled, take care there is not too much text
25870 \end_layout
25871
25872 \end_inset
25873 </cell>
25874 </row>
25875 <row interlinespace="default">
25876 <cell alignment="left" valignment="top" usebox="none">
25877 \begin_inset Text
25878
25879 \begin_layout Plain Layout
25880
25881 \size small
25882 Circle
25883 \end_layout
25884
25885 \end_inset
25886 </cell>
25887 <cell alignment="left" valignment="top" usebox="none">
25888 \begin_inset Text
25889
25890 \begin_layout Plain Layout
25891
25892 \size small
25893 Circle
25894 \end_layout
25895
25896 \end_inset
25897 </cell>
25898 <cell alignment="left" valignment="top" usebox="none">
25899 \begin_inset Text
25900
25901 \begin_layout Plain Layout
25902
25903 \size small
25904 Fragile, calculation might fail
25905 \end_layout
25906
25907 \end_inset
25908 </cell>
25909 </row>
25910 <row interlinespace="default">
25911 <cell alignment="left" valignment="top" usebox="none">
25912 \begin_inset Text
25913
25914 \begin_layout Plain Layout
25915
25916 \size small
25917 Diamond
25918 \end_layout
25919
25920 \end_inset
25921 </cell>
25922 <cell alignment="left" valignment="top" usebox="none">
25923 \begin_inset Text
25924
25925 \begin_layout Plain Layout
25926
25927 \size small
25928 Rhomboid (symbolizing a 
25929 \begin_inset Quotes eld
25930 \end_inset
25931
25932 diamond
25933 \begin_inset Quotes erd
25934 \end_inset
25935
25936 )
25937 \end_layout
25938
25939 \end_inset
25940 </cell>
25941 <cell alignment="left" valignment="top" usebox="none">
25942 \begin_inset Text
25943
25944 \begin_layout Plain Layout
25945
25946 \size small
25947 -
25948 \end_layout
25949
25950 \end_inset
25951 </cell>
25952 </row>
25953 <row interlinespace="default">
25954 <cell alignment="left" valignment="top" usebox="none">
25955 \begin_inset Text
25956
25957 \begin_layout Plain Layout
25958
25959 \size small
25960 Heart
25961 \end_layout
25962
25963 \end_inset
25964 </cell>
25965 <cell alignment="left" valignment="top" usebox="none">
25966 \begin_inset Text
25967
25968 \begin_layout Plain Layout
25969
25970 \size small
25971 Heart-like shape
25972 \end_layout
25973
25974 \end_inset
25975 </cell>
25976 <cell alignment="left" valignment="top" usebox="none">
25977 \begin_inset Text
25978
25979 \begin_layout Plain Layout
25980
25981 \size small
25982 -
25983 \end_layout
25984
25985 \end_inset
25986 </cell>
25987 </row>
25988 <row interlinespace="default">
25989 <cell alignment="left" valignment="top" usebox="none">
25990 \begin_inset Text
25991
25992 \begin_layout Plain Layout
25993
25994 \size small
25995 Hexagon
25996 \end_layout
25997
25998 \end_inset
25999 </cell>
26000 <cell alignment="left" valignment="top" usebox="none">
26001 \begin_inset Text
26002
26003 \begin_layout Plain Layout
26004
26005 \size small
26006 Hexagon
26007 \end_layout
26008
26009 \end_inset
26010 </cell>
26011 <cell alignment="left" valignment="top" usebox="none">
26012 \begin_inset Text
26013
26014 \begin_layout Plain Layout
26015
26016 \size small
26017 -
26018 \end_layout
26019
26020 \end_inset
26021 </cell>
26022 </row>
26023 <row interlinespace="default">
26024 <cell alignment="left" valignment="top" usebox="none">
26025 \begin_inset Text
26026
26027 \begin_layout Plain Layout
26028
26029 \size small
26030 Nut
26031 \end_layout
26032
26033 \end_inset
26034 </cell>
26035 <cell alignment="left" valignment="top" usebox="none">
26036 \begin_inset Text
26037
26038 \begin_layout Plain Layout
26039
26040 \size small
26041 Nut for bolt (hexagon with circular hole)
26042 \end_layout
26043
26044 \end_inset
26045 </cell>
26046 <cell alignment="left" valignment="top" usebox="none">
26047 \begin_inset Text
26048
26049 \begin_layout Plain Layout
26050
26051 \size small
26052 -
26053 \end_layout
26054
26055 \end_inset
26056 </cell>
26057 </row>
26058 <row interlinespace="default">
26059 <cell alignment="left" valignment="top" usebox="none">
26060 \begin_inset Text
26061
26062 \begin_layout Plain Layout
26063
26064 \size small
26065 Square
26066 \end_layout
26067
26068 \end_inset
26069 </cell>
26070 <cell alignment="left" valignment="top" usebox="none">
26071 \begin_inset Text
26072
26073 \begin_layout Plain Layout
26074
26075 \size small
26076 Square
26077 \end_layout
26078
26079 \end_inset
26080 </cell>
26081 <cell alignment="left" valignment="top" usebox="none">
26082 \begin_inset Text
26083
26084 \begin_layout Plain Layout
26085
26086 \size small
26087 -
26088 \end_layout
26089
26090 \end_inset
26091 </cell>
26092 </row>
26093 <row interlinespace="default">
26094 <cell alignment="left" valignment="top" usebox="none">
26095 \begin_inset Text
26096
26097 \begin_layout Plain Layout
26098
26099 \size small
26100 Star
26101 \end_layout
26102
26103 \end_inset
26104 </cell>
26105 <cell alignment="left" valignment="top" usebox="none">
26106 \begin_inset Text
26107
26108 \begin_layout Plain Layout
26109
26110 \size small
26111 Five-point star
26112 \end_layout
26113
26114 \end_inset
26115 </cell>
26116 <cell alignment="left" valignment="top" usebox="none">
26117 \begin_inset Text
26118
26119 \begin_layout Plain Layout
26120
26121 \size small
26122 -
26123 \end_layout
26124
26125 \end_inset
26126 </cell>
26127 </row>
26128 <row interlinespace="default">
26129 <cell alignment="left" valignment="top" usebox="none">
26130 \begin_inset Text
26131
26132 \begin_layout Plain Layout
26133
26134 \size small
26135 Candle
26136 \end_layout
26137
26138 \end_inset
26139 </cell>
26140 <cell alignment="left" valignment="top" usebox="none">
26141 \begin_inset Text
26142
26143 \begin_layout Plain Layout
26144
26145 \size small
26146 Burning candle
26147 \end_layout
26148
26149 \end_inset
26150 </cell>
26151 <cell alignment="left" valignment="top" usebox="none">
26152 \begin_inset Text
26153
26154 \begin_layout Plain Layout
26155
26156 \size small
26157 -
26158 \end_layout
26159
26160 \end_inset
26161 </cell>
26162 </row>
26163 <row interlinespace="default">
26164 <cell alignment="left" valignment="top" usebox="none">
26165 \begin_inset Text
26166
26167 \begin_layout Plain Layout
26168
26169 \size small
26170 Drop down/up
26171 \end_layout
26172
26173 \end_inset
26174 </cell>
26175 <cell alignment="left" valignment="top" usebox="none">
26176 \begin_inset Text
26177
26178 \begin_layout Plain Layout
26179
26180 \size small
26181 Normal/reversed rain drop
26182 \end_layout
26183
26184 \end_inset
26185 </cell>
26186 <cell alignment="left" valignment="top" usebox="none">
26187 \begin_inset Text
26188
26189 \begin_layout Plain Layout
26190
26191 \size small
26192 Fragile, calculation might fail
26193 \end_layout
26194
26195 \end_inset
26196 </cell>
26197 </row>
26198 <row interlinespace="default">
26199 <cell alignment="left" valignment="top" usebox="none">
26200 \begin_inset Text
26201
26202 \begin_layout Plain Layout
26203
26204 \size small
26205 \SpecialChar TeX
26206
26207 \end_layout
26208
26209 \end_inset
26210 </cell>
26211 <cell alignment="left" valignment="top" usebox="none">
26212 \begin_inset Text
26213
26214 \begin_layout Plain Layout
26215
26216 \size small
26217 The \SpecialChar TeX
26218  logo
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 -
26230 \end_layout
26231
26232 \end_inset
26233 </cell>
26234 </row>
26235 <row interlinespace="default">
26236 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
26237 \begin_inset Text
26238
26239 \begin_layout Plain Layout
26240
26241 \size small
26242 Triangle up/down/
26243 \begin_inset Newline newline
26244 \end_inset
26245
26246 left/right
26247 \end_layout
26248
26249 \end_inset
26250 </cell>
26251 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
26252 \begin_inset Text
26253
26254 \begin_layout Plain Layout
26255
26256 \size small
26257 Triangles in different orientations
26258 \end_layout
26259
26260 \end_inset
26261 </cell>
26262 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
26263 \begin_inset Text
26264
26265 \begin_layout Plain Layout
26266
26267 \size small
26268 -
26269 \end_layout
26270
26271 \end_inset
26272 </cell>
26273 </row>
26274 </lyxtabular>
26275
26276 \end_inset
26277
26278
26279 \end_layout
26280
26281 \begin_layout Standard
26282 To use a shape for your paragraph, simply select it in \SpecialChar LyX
26283 's pull-down box
26284  for environments in the toolbar.
26285 \end_layout
26286
26287 \begin_layout Standard
26288 \begin_inset Newpage newpage
26289 \end_inset
26290
26291
26292 \end_layout
26293
26294 \begin_layout Standard
26295 Here is an example paragraph in the shape of a nut:
26296 \end_layout
26297
26298 \begin_layout Standard
26299 \begin_inset VSpace bigskip
26300 \end_inset
26301
26302
26303 \end_layout
26304
26305 \begin_layout Nut
26306
26307 \lang latin
26308 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26309  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26310  voluptua.
26311  At vero eos et accusam et justo duo dolores et ea rebum.
26312  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26313  sit amet.
26314  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26315  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26316  voluptua.
26317 \end_layout
26318
26319 \begin_layout Standard
26320 \begin_inset VSpace bigskip
26321 \end_inset
26322
26323
26324 \end_layout
26325
26326 \begin_layout Standard
26327 \begin_inset Note Greyedout
26328 status open
26329
26330 \begin_layout Plain Layout
26331
26332 \series bold
26333 Note
26334 \series default
26335
26336 \family sans
26337 shapepar
26338 \family default
26339  paragraphs cannot run over a page break.
26340 \end_layout
26341
26342 \end_inset
26343
26344
26345 \end_layout
26346
26347 \begin_layout Standard
26348 \begin_inset VSpace bigskip
26349 \end_inset
26350
26351
26352 \end_layout
26353
26354 \begin_layout Standard
26355 The package 
26356 \begin_inset Flex Code
26357 status collapsed
26358
26359 \begin_layout Plain Layout
26360 shapepar
26361 \end_layout
26362
26363 \end_inset
26364
26365  takes care that the shape will always be preserved, no matter how much
26366  text is in the paragraph.
26367  Therefore the paragraph size changes with the amount of contained text.
26368  This can lead to paragraph sizes exceeding the page margins.
26369  To demonstrate the size scaling, here is the same example paragraph but
26370  with twice as much text:
26371 \end_layout
26372
26373 \begin_layout Standard
26374 \begin_inset Newpage newpage
26375 \end_inset
26376
26377
26378 \end_layout
26379
26380 \begin_layout Nut
26381
26382 \lang latin
26383 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26384  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26385  voluptua.
26386  At vero eos et accusam et justo duo dolores et ea rebum.
26387  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26388  sit amet.
26389  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26390  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26391  voluptua.
26392  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26393  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26394  voluptua.
26395  At vero eos et accusam et justo duo dolores et ea rebum.
26396  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26397  sit amet.
26398  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26399  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26400  voluptua.
26401 \end_layout
26402
26403 \begin_layout Standard
26404 \begin_inset VSpace bigskip
26405 \end_inset
26406
26407
26408 \end_layout
26409
26410 \begin_layout Standard
26411 An exception is the shape 
26412 \family sans
26413 CDlabel
26414 \family default
26415 .
26416  It cannot be scaled because it must fit the size of a CD/DVD.
26417  Therefore the amount of text that fits into the shape is limited.
26418 \begin_inset Newline newline
26419 \end_inset
26420
26421 The 
26422 \family sans
26423 drop
26424 \family default
26425  shapes and the 
26426 \family sans
26427 circle
26428 \family default
26429  shape are fragile, meaning that the calculation of their size can fail,
26430  depending on the amount of text.
26431  You will then get the \SpecialChar LaTeX
26432  error 
26433 \begin_inset Quotes eld
26434 \end_inset
26435
26436 Arithmetic overflow
26437 \begin_inset Quotes erd
26438 \end_inset
26439
26440 .
26441  In this case one can try to remove or add some text; if nothing works one
26442  has to use another shape.
26443 \end_layout
26444
26445 \begin_layout Standard
26446 \begin_inset VSpace bigskip
26447 \end_inset
26448
26449
26450 \end_layout
26451
26452 \begin_layout Standard
26453 For shapes with tips you will maybe see that \SpecialChar LaTeX
26454 's hyphenation routine fails
26455  for text in the tips.
26456  Therefore it is often necessary to add hyphenation points 
26457 \family sans
26458 (
26459 \begin_inset Info
26460 type  "shortcut"
26461 arg   "specialchar-insert hyphenation"
26462 \end_inset
26463
26464
26465 \family default
26466 ) to the corresponding text parts.
26467 \end_layout
26468
26469 \begin_layout Standard
26470 \begin_inset VSpace bigskip
26471 \end_inset
26472
26473
26474 \end_layout
26475
26476 \begin_layout Standard
26477 Shapepar paragraphs are either always centered or placed on the page so
26478  that their left border touches the left page margin.
26479  You can therefore not use the paragraph dialog to align such paragraphs.
26480  A solution is to put the paragraph into a minipage or parbox and align
26481  the box.
26482  The problem is hereby to find the right width for the box.
26483  Because if it is too wide and you center the box, the paragraph is not
26484  centered too because it sticks at the left side of the box.
26485  So you might have to play a bit with the width until it fits.
26486  Here are two heart-shaped paragraphs, the first one is not aligned, the
26487  second one is right-aligned:
26488 \end_layout
26489
26490 \begin_layout Standard
26491 \begin_inset Newpage newpage
26492 \end_inset
26493
26494
26495 \end_layout
26496
26497 \begin_layout Heart
26498 \noindent
26499
26500 \lang latin
26501 Lo\SpecialChar softhyphen
26502 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26503  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26504  voluptua.
26505  At vero eos et accusam et justo duo dolores et ea rebum.
26506  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26507  sit amet.
26508 \end_layout
26509
26510 \begin_layout Standard
26511 \begin_inset VSpace bigskip
26512 \end_inset
26513
26514
26515 \end_layout
26516
26517 \begin_layout Standard
26518 \noindent
26519 \align right
26520 \begin_inset Box Frameless
26521 position "t"
26522 hor_pos "c"
26523 has_inner_box 1
26524 inner_pos "t"
26525 use_parbox 1
26526 use_makebox 0
26527 width "42col%"
26528 special "none"
26529 height "1in"
26530 height_special "totalheight"
26531 thickness "0.4pt"
26532 separation "3pt"
26533 shadowsize "4pt"
26534 framecolor "black"
26535 backgroundcolor "none"
26536 status open
26537
26538 \begin_layout Heart
26539 \noindent
26540
26541 \lang latin
26542 Lo\SpecialChar softhyphen
26543 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26544  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26545  voluptua.
26546  At vero eos et accusam et justo duo dolores et ea rebum.
26547  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26548  sit amet.
26549 \end_layout
26550
26551 \end_inset
26552
26553
26554 \end_layout
26555
26556 \begin_layout Subsection
26557 Custom shapes
26558 \end_layout
26559
26560 \begin_layout Standard
26561 You can define any shape you want.
26562  Doing this manually is a lot of work because every coordinate must be specified.
26563  But there is a way to let the computer calculate the coordinates:
26564 \end_layout
26565
26566 \begin_layout Enumerate
26567 Install the program 
26568 \begin_inset CommandInset href
26569 LatexCommand href
26570 name "Jpgfdraw"
26571 target "https://www.ctan.org/tex-archive/graphics/jpgfdraw"
26572 literal "false"
26573
26574 \end_inset
26575
26576 .
26577 \end_layout
26578
26579 \begin_layout Enumerate
26580 In 
26581 \family sans
26582 Jpgfdraw
26583 \family default
26584  go to the menu 
26585 \family sans
26586 TeX/LaTeX\SpecialChar menuseparator
26587 Settings\SpecialChar menuseparator
26588 Set Normal Size
26589 \family default
26590  and select the font size you are using in your document.
26591  For example this document uses the size 12
26592 \begin_inset space \thinspace{}
26593 \end_inset
26594
26595 pt.
26596 \end_layout
26597
26598 \begin_layout Enumerate
26599 Draw a shape.
26600 \end_layout
26601
26602 \begin_layout Enumerate
26603 Use the menu 
26604 \family sans
26605 TeX/LaTeX\SpecialChar menuseparator
26606 Shapepar
26607 \family default
26608  to export the shape to coordinates.
26609  In the appearing dialog use either the outline of your shape for the coordinate
26610 s or the path itself.
26611 \begin_inset Foot
26612 status collapsed
26613
26614 \begin_layout Plain Layout
26615 For more information see 
26616 \begin_inset CommandInset href
26617 LatexCommand href
26618 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
26619 literal "false"
26620
26621 \end_inset
26622
26623
26624 \end_layout
26625
26626 \end_inset
26627
26628
26629 \end_layout
26630
26631 \begin_layout Standard
26632 The coordinates are written into a \SpecialChar TeX
26633  file.
26634  To use it for your \SpecialChar LyX
26635  document
26636 \end_layout
26637
26638 \begin_layout Enumerate
26639 Place the cursor before the first character of your paragraph (or into a
26640  new empty one).
26641 \end_layout
26642
26643 \begin_layout Enumerate
26644 Open in \SpecialChar LyX
26645  the menu 
26646 \family sans
26647 Insert\SpecialChar menuseparator
26648 File\SpecialChar menuseparator
26649 Child
26650 \begin_inset space ~
26651 \end_inset
26652
26653 Document
26654 \family default
26655 , select the file and use 
26656 \family sans
26657 Input
26658 \family default
26659  as 
26660 \family sans
26661 Include Type.
26662 \end_layout
26663
26664 \begin_layout Standard
26665 \begin_inset VSpace defskip
26666 \end_inset
26667
26668
26669 \end_layout
26670
26671 \begin_layout Standard
26672 \begin_inset Note Greyedout
26673 status open
26674
26675 \begin_layout Plain Layout
26676
26677 \series bold
26678 Note
26679 \series default
26680 : The changed shape only applies to the current paragraph; everything is
26681  reset to normal for the next paragraph.
26682  Therefore the shape definition file must be input into every paragraph
26683  with the desired shape.
26684 \end_layout
26685
26686 \end_inset
26687
26688
26689 \end_layout
26690
26691 \begin_layout Standard
26692 \begin_inset VSpace bigskip
26693 \end_inset
26694
26695
26696 \end_layout
26697
26698 \begin_layout Standard
26699 Here is an example:
26700 \end_layout
26701
26702 \begin_layout Standard
26703 \begin_inset VSpace bigskip
26704 \end_inset
26705
26706
26707 \end_layout
26708
26709 \begin_layout Standard
26710 \begin_inset CommandInset include
26711 LatexCommand input
26712 filename "SpecialParagraphShape.tex"
26713 literal "true"
26714
26715 \end_inset
26716
26717
26718 \lang latin
26719 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26720  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26721  voluptua.
26722  At vero eos et accusam et justo duo dolores et ea rebum.
26723  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26724  sit amet.
26725  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26726  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26727  voluptua.
26728 \end_layout
26729
26730 \begin_layout Standard
26731 \begin_inset VSpace bigskip
26732 \end_inset
26733
26734
26735 \end_layout
26736
26737 \begin_layout Standard
26738
26739 \series bold
26740 A tip:
26741 \series default
26742  to draw complexer shapes in 
26743 \family sans
26744 Jpgfdraw
26745 \family default
26746  you can draw the shape in a program of your choice and import the resulting
26747  image to 
26748 \family sans
26749 Jpgfdraw
26750 \family default
26751 .
26752  Then you only need to draw a line or spline along the outline of the image.
26753 \end_layout
26754
26755 \begin_layout Standard
26756 \begin_inset VSpace bigskip
26757 \end_inset
26758
26759
26760 \end_layout
26761
26762 \begin_layout Standard
26763 The module 
26764 \family sans
26765 Custom paragraph shapes
26766 \family default
26767  also provides the two commands 
26768 \family sans
26769 shapepar
26770 \family default
26771  and 
26772 \family sans
26773 Shapepar
26774 \family default
26775  which can be used to define custom shapes coordinate by coordinate.
26776 \begin_inset Foot
26777 status collapsed
26778
26779 \begin_layout Plain Layout
26780 These commands are internally used for all shapes described here.
26781 \end_layout
26782
26783 \end_inset
26784
26785  For information how these styles are used and about further customization
26786  possibilities, have a look at the 
26787 \begin_inset CommandInset href
26788 LatexCommand href
26789 name "documentation"
26790 target "https://www.ctan.org/tex-archive/macros/latex/contrib/shapepar/shapepar.pdf"
26791 literal "false"
26792
26793 \end_inset
26794
26795  of the package 
26796 \begin_inset Flex Code
26797 status collapsed
26798
26799 \begin_layout Plain Layout
26800 shapepar
26801 \end_layout
26802
26803 \end_inset
26804
26805 .
26806 \end_layout
26807
26808 \end_body
26809 \end_document