]> git.lyx.org Git - lyx.git/blob - lib/doc/Additional.lyx
Add entries for Hazard and Precautionary Statements, Risk and Safety Statements and...
[lyx.git] / lib / doc / Additional.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 610
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 \docbook_mathml_prefix 1
131 \author -712698321 "Jürgen Spitzmüller"
132 \author 177693 "x"
133 \author 5863208 "ab"
134 \author 244031559 "Yuriy"
135 \author 564990737 "John Lyx"
136 \author 630872221 "Jean-Pierre Chrétien" jeanpierre.chretien@free.fr
137 \author 1075283030 "Thibaut"
138 \author 1119979965 "Joel A. Kulesza"
139 \end_header
140
141 \begin_body
142
143 \begin_layout Title
144 Additional \SpecialChar LyX
145  Features
146 \end_layout
147
148 \begin_layout Subtitle
149 Version 2.
150 \change_deleted 630872221 1622909155
151 3
152 \change_inserted 630872221 1622909155
153 4
154 \change_unchanged
155 .x
156 \end_layout
157
158 \begin_layout Author
159 by the \SpecialChar LyX
160  Team
161 \begin_inset Foot
162 status collapsed
163
164 \begin_layout Plain Layout
165 \noindent
166 Principal maintainer of this file is
167 \noun on
168  Richard Kimberly Heck
169 \noun default
170 .
171  If you have comments or error corrections, please send them to the \SpecialChar LyX
172  Documentati
173 on mailing list, 
174 \begin_inset Flex Code
175 status collapsed
176
177 \begin_layout Plain Layout
178 <lyx-docs@lists.lyx.org>
179 \end_layout
180
181 \end_inset
182
183 .
184 \end_layout
185
186 \end_inset
187
188
189 \end_layout
190
191 \begin_layout Standard
192 \begin_inset CommandInset toc
193 LatexCommand tableofcontents
194
195 \end_inset
196
197
198 \end_layout
199
200 \begin_layout Chapter
201 Introduction
202 \end_layout
203
204 \begin_layout Standard
205 This manual is essentially Part II of the 
206 \emph on
207 User's Guide\SpecialChar endofsentence
208
209 \emph default
210  The reason for separating the two documents is simple: the 
211 \emph on
212 User's Guide
213 \emph default
214  is already quite lengthy, and it contains information on all of the basic
215  features one needs to know in order to prepare most documents.
216  However, the \SpecialChar LyX
217  Team has worked to make \SpecialChar LyX
218  extensible through various configuration
219  files and external packages.
220  That means that if you want to support the Fizzwizzle \SpecialChar LaTeX
221  package, you can
222  create a layout file (or module) for it without having to alter \SpecialChar LyX
223  itself.
224  We've already had contributions of several new features this way, and some
225  of them are documented here.
226  There are also some more `advanced' features, such as how to control the
227  presentation of bibliographies and how to work with multi-part documents,
228  that are not covered in the 
229 \emph on
230 User's Guide
231 \emph default
232  and are discussed here.
233 \end_layout
234
235 \begin_layout Standard
236 This manual also documents some special features, like fax support
237 \change_deleted 244031559 1603802929
238 ,
239 \change_inserted 244031559 1603802931
240  and
241 \change_unchanged
242  version control
243 \change_deleted 244031559 1603802954
244 , and SGML support
245 \change_unchanged
246 , which require additional software to work properly.
247  There is also a chapter on \SpecialChar LyX
248 's support for HTML.
249  And lastly, there's a chapter of \SpecialChar LaTeX
250  tools and tips, things you can use to
251  spruce up your documents by directly using the powerful features of \SpecialChar LaTeX
252 .
253  After all, \SpecialChar LyX
254  
255 \emph on
256 is
257 \emph default
258  only WYSIWYM and will only ever interface to some, not all, \SpecialChar LaTeX
259  features.
260 \end_layout
261
262 \begin_layout Standard
263 If you haven't read the 
264 \emph on
265 Introduction
266 \emph default
267  yet, you are definitely in the wrong manual.
268  The 
269 \emph on
270 Introduction
271 \emph default
272  is the first place to go, since it describes the notation and format of
273  all of the manuals.
274  You should also be thoroughly familiar with the 
275 \emph on
276 User's Guide
277 \emph default
278  and all of the basic features of \SpecialChar LyX
279  before attempting to read this one.
280 \end_layout
281
282 \begin_layout Standard
283 Since many of the topics in this manual depend heavily on \SpecialChar LyX
284 's interaction
285  with \SpecialChar LaTeX
286 , this first chapter covers the inner workings of \SpecialChar LyX
287  and how to direct
288  \SpecialChar LyX
289  to generate exactly the \SpecialChar LaTeX
290  code you want.
291  It is obviously for more seasoned \SpecialChar LyX
292  users.
293 \end_layout
294
295 \begin_layout Chapter
296 \SpecialChar LyX
297  and \SpecialChar LaTeX
298
299 \end_layout
300
301 \begin_layout Section
302 How \SpecialChar LyX
303  Uses \SpecialChar LaTeX
304
305 \end_layout
306
307 \begin_layout Standard
308 This chapter is for both \SpecialChar TeX
309 -nicians and the \SpecialChar LaTeX
310 -curious.
311  In it, we'll explain how \SpecialChar LyX
312  and \SpecialChar LaTeX
313  work together to produce printable output.
314  This is the only place in any of the manuals where we assume you know something
315  about \SpecialChar LaTeX
316 .
317 \end_layout
318
319 \begin_layout Standard
320 At one time, \SpecialChar LyX
321  was called a 
322 \begin_inset Quotes eld
323 \end_inset
324
325 WYSIWYM frontend to \SpecialChar LaTeX
326 ,
327 \begin_inset Quotes erd
328 \end_inset
329
330  but that's no longer true.
331  There are frontends to \SpecialChar LaTeX
332  out there.
333 \begin_inset Foot
334 status collapsed
335
336 \begin_layout Plain Layout
337 Some familar ones are \SpecialChar TeX
338 maker and kile, on Linux, and \SpecialChar TeX
339 shop, OSX.
340  There are also the \SpecialChar LaTeX
341  modes for vi and emacs, of course.
342 \end_layout
343
344 \end_inset
345
346  These are basically text editors with the ability to run \SpecialChar LaTeX
347  and mark any
348  errors in the file you're editing.
349  Although \SpecialChar LyX
350  
351 \emph on
352 is
353 \emph default
354  an editor, and it 
355 \emph on
356 does
357 \emph default
358  run \SpecialChar LaTeX
359 , and it also indicates errors in the file, it also does much, much
360  more.
361  For one thing, you don't need to know \SpecialChar LaTeX
362  to use \SpecialChar LyX
363  effectively.
364  And \SpecialChar LyX
365  has added its own extensions to \SpecialChar LaTeX
366 .
367  Try the following sometime: select 
368 \begin_inset Flex Noun
369 status collapsed
370
371 \begin_layout Plain Layout
372 Export\SpecialChar menuseparator
373 LaTeX
374 \end_layout
375
376 \end_inset
377
378  from the 
379 \begin_inset Flex Noun
380 status collapsed
381
382 \begin_layout Plain Layout
383 File
384 \end_layout
385
386 \end_inset
387
388  menu (or 
389 \begin_inset Flex Noun
390 status collapsed
391
392 \begin_layout Plain Layout
393 View\SpecialChar menuseparator
394 Source
395 \begin_inset space ~
396 \end_inset
397
398 Pane
399 \end_layout
400
401 \end_inset
402
403 ), then look at the preamble of the resulting 
404 \begin_inset Flex Code
405 status collapsed
406
407 \begin_layout Plain Layout
408 .tex
409 \end_layout
410
411 \end_inset
412
413  file.
414  You'll notice a variety of new macros defined specifically by \SpecialChar LyX
415 .
416  These macros are defined automatically, according to the features you use
417  in the document.
418 \end_layout
419
420 \begin_layout Standard
421 There are several commands that automatically invoke \SpecialChar LaTeX
422 .
423  They are:
424 \end_layout
425
426 \begin_layout Itemize
427 \begin_inset Flex Noun
428 status collapsed
429
430 \begin_layout Plain Layout
431 Document\SpecialChar menuseparator
432 View
433 \end_layout
434
435 \end_inset
436
437
438 \end_layout
439
440 \begin_layout Itemize
441 \begin_inset Flex Noun
442 status collapsed
443
444 \begin_layout Plain Layout
445 Document\SpecialChar menuseparator
446 Update
447 \end_layout
448
449 \end_inset
450
451
452 \end_layout
453
454 \begin_layout Standard
455 They will only invoke \SpecialChar LaTeX
456  if the file has changed since the last time \SpecialChar LaTeX
457  was
458  run.
459  
460 \end_layout
461
462 \begin_layout Standard
463 When \SpecialChar LyX
464  runs \SpecialChar LaTeX
465  on the file you're editing, it performs these steps:
466 \end_layout
467
468 \begin_layout Enumerate
469 Convert the document to \SpecialChar LaTeX
470  and save to a file with the extension 
471 \begin_inset Flex Code
472 status collapsed
473
474 \begin_layout Plain Layout
475 .tex
476 \end_layout
477
478 \end_inset
479
480  in place of 
481 \begin_inset Flex Code
482 status collapsed
483
484 \begin_layout Plain Layout
485 .lyx
486 \end_layout
487
488 \end_inset
489
490 .
491 \end_layout
492
493 \begin_layout Enumerate
494 Run \SpecialChar LaTeX
495  on the 
496 \begin_inset Flex Code
497 status collapsed
498
499 \begin_layout Plain Layout
500 .tex
501 \end_layout
502
503 \end_inset
504
505  file (maybe several times), and run any other commands (such as 
506 \begin_inset Flex Code
507 status collapsed
508
509 \begin_layout Plain Layout
510 bibtex
511 \end_layout
512
513 \end_inset
514
515  or 
516 \begin_inset Flex Code
517 status collapsed
518
519 \begin_layout Plain Layout
520 makeindex
521 \end_layout
522
523 \end_inset
524
525 ) needed to compile the \SpecialChar LaTeX
526  file.
527 \end_layout
528
529 \begin_layout Enumerate
530 If there are any errors, show the error log.
531 \end_layout
532
533 \begin_layout Standard
534 If you have run \SpecialChar LaTeX
535  using 
536 \begin_inset Flex Noun
537 status collapsed
538
539 \begin_layout Plain Layout
540 View\SpecialChar menuseparator
541 DVI
542 \end_layout
543
544 \end_inset
545
546 , \SpecialChar LyX
547  then runs a DVI viewer to display the DVI-file.
548  If you have used 
549 \begin_inset Flex Noun
550 status collapsed
551
552 \begin_layout Plain Layout
553 View\SpecialChar menuseparator
554 PostScript
555 \end_layout
556
557 \end_inset
558
559 , \SpecialChar LyX
560  performs further steps:
561 \end_layout
562
563 \begin_layout Enumerate
564 Run 
565 \begin_inset Flex Code
566 status collapsed
567
568 \begin_layout Plain Layout
569 dvips
570 \end_layout
571
572 \end_inset
573
574  to convert the DVI file to PostScript.
575 \end_layout
576
577 \begin_layout Enumerate
578 Run a PostScript viewer, such as 
579 \begin_inset Flex Code
580 status collapsed
581
582 \begin_layout Plain Layout
583 ghostview
584 \end_layout
585
586 \end_inset
587
588 , to display the PostScript file.
589 \end_layout
590
591 \begin_layout Standard
592 \SpecialChar LyX
593  does similar things when viewing, or exporting, other formats.
594 \end_layout
595
596 \begin_layout Section
597 Translating \SpecialChar LaTeX
598  files into \SpecialChar LyX
599
600 \end_layout
601
602 \begin_layout Standard
603 You can import a \SpecialChar LaTeX
604  file into \SpecialChar LyX
605  by using the 
606 \begin_inset Flex Noun
607 status collapsed
608
609 \begin_layout Plain Layout
610 File\SpecialChar menuseparator
611 Import\SpecialChar menuseparator
612 LaTeX
613 \end_layout
614
615 \end_inset
616
617  command in \SpecialChar LyX
618 .
619  This will call a program named 
620 \begin_inset Flex Code
621 status collapsed
622
623 \begin_layout Plain Layout
624 tex2lyx
625 \end_layout
626
627 \end_inset
628
629  which will create a file 
630 \begin_inset Flex Code
631 status collapsed
632
633 \begin_layout Plain Layout
634 foo.lyx
635 \end_layout
636
637 \end_inset
638
639  from the file 
640 \begin_inset Flex Code
641 status collapsed
642
643 \begin_layout Plain Layout
644 foo.tex
645 \end_layout
646
647 \end_inset
648
649 .
650  \SpecialChar LyX
651  will then open that file.
652 \begin_inset Foot
653 status collapsed
654
655 \begin_layout Plain Layout
656 \begin_inset Flex Code
657 status collapsed
658
659 \begin_layout Plain Layout
660 tex2lyx
661 \end_layout
662
663 \end_inset
664
665  can also be run from the command line, of course.
666 \end_layout
667
668 \end_inset
669
670
671 \end_layout
672
673 \begin_layout Standard
674 \begin_inset Flex Code
675 status collapsed
676
677 \begin_layout Plain Layout
678 tex2lyx
679 \end_layout
680
681 \end_inset
682
683  will translate most legal \SpecialChar LaTeX
684 , but not everything.
685  It will put things it doesn't understand into \SpecialChar TeX
686  code, so after translating
687  a file with 
688 \begin_inset Flex Code
689 status collapsed
690
691 \begin_layout Plain Layout
692 tex2lyx
693 \end_layout
694
695 \end_inset
696
697 , you can look for \SpecialChar TeX
698  code and hand-edit it until it looks right.
699 \end_layout
700
701 \begin_layout Standard
702 If you don't know what \SpecialChar TeX
703  code is, read the next section.
704 \end_layout
705
706 \begin_layout Section
707 \begin_inset CommandInset label
708 LatexCommand label
709 name "sec:Inserting-TeX-Code"
710
711 \end_inset
712
713 Inserting \SpecialChar TeX
714  Code into \SpecialChar LyX
715  Documents 
716 \end_layout
717
718 \begin_layout Standard
719 Anything you can do in \SpecialChar LaTeX
720  you can do in \SpecialChar LyX
721 , for a very simple reason: You can
722  always insert \SpecialChar TeX
723  code into any \SpecialChar LyX
724  document.
725  \SpecialChar LyX
726  cannot, and will never be able to, display every possible \SpecialChar LaTeX
727  construct.
728  If ever you need to insert \SpecialChar LaTeX
729  commands into your \SpecialChar LyX
730  document, you can use the
731  
732 \begin_inset Flex Code
733 status collapsed
734
735 \begin_layout Plain Layout
736 \SpecialChar TeX
737  Code
738 \end_layout
739
740 \end_inset
741
742  box, which you can insert into your document with 
743 \begin_inset Flex Noun
744 status collapsed
745
746 \begin_layout Plain Layout
747 Insert\SpecialChar menuseparator
748
749 \family sans
750 TeX
751 \family default
752  Code
753 \end_layout
754
755 \end_inset
756
757  or the keyboard shortcut 
758 \begin_inset Info
759 type  "shortcut"
760 arg   "ert-insert"
761 \end_inset
762
763 .
764 \end_layout
765
766 \begin_layout Standard
767 Here's an example of inserting \SpecialChar LaTeX
768  commands in a \SpecialChar LyX
769  document.
770  The code looks like this:
771 \end_layout
772
773 \begin_layout LyX-Code
774
775 \backslash
776 begin{tabular}{ll}
777 \begin_inset Newline newline
778 \end_inset
779
780
781 \backslash
782 begin{minipage}{5cm}
783 \begin_inset Newline newline
784 \end_inset
785
786 This is an example of a minipage environment.
787  You 
788 \begin_inset Newline newline
789 \end_inset
790
791 can put nearly everything in it, even (non-floating) 
792 \begin_inset Newline newline
793 \end_inset
794
795 figures and tables.
796  
797 \begin_inset Newline newline
798 \end_inset
799
800
801 \backslash
802 end{minipage}
803 \begin_inset Newline newline
804 \end_inset
805
806 &
807 \begin_inset Newline newline
808 \end_inset
809
810
811 \backslash
812 begin{minipage}{5cm}
813 \begin_inset Newline newline
814 \end_inset
815
816
817 \backslash
818 begin{verbatim}
819 \begin_inset Newline newline
820 \end_inset
821
822
823 \backslash
824 begin{minipage}{5cm}
825 \begin_inset Newline newline
826 \end_inset
827
828 This ...
829  
830 \begin_inset Newline newline
831 \end_inset
832
833
834 \backslash
835 end{minipage}
836 \begin_inset Newline newline
837 \end_inset
838
839
840 \backslash
841 end{verbatim}
842 \begin_inset Newline newline
843 \end_inset
844
845
846 \backslash
847 end{minipage}
848 \begin_inset Newline newline
849 \end_inset
850
851
852 \backslash
853 end{tabular}
854 \end_layout
855
856 \begin_layout LyX-Code
857
858 \end_layout
859
860 \begin_layout Standard
861 The 
862 \begin_inset Flex Code
863 status collapsed
864
865 \begin_layout Plain Layout
866 \SpecialChar TeX
867  Code
868 \end_layout
869
870 \end_inset
871
872  box containing this text is directly after this paragraph.
873  Those of you reading the manual in \SpecialChar LyX
874  will only see the \SpecialChar TeX
875  code inset.
876  Those reading a printed version of the manuals will see the actual results:
877 \begin_inset VSpace bigskip
878 \end_inset
879
880
881 \end_layout
882
883 \begin_layout Standard
884 \begin_inset ERT
885 status open
886
887 \begin_layout Plain Layout
888
889
890 \backslash
891 begin{tabular}{ll}
892 \end_layout
893
894 \begin_layout Plain Layout
895
896
897 \backslash
898 begin{minipage}{5cm}
899 \end_layout
900
901 \begin_layout Plain Layout
902
903 This is an example of a minipage environment.
904  You can put nearly everything in it, even (non-floating) figures and tables.
905  
906 \end_layout
907
908 \begin_layout Plain Layout
909
910
911 \backslash
912 end{minipage}
913 \end_layout
914
915 \begin_layout Plain Layout
916
917 &
918 \end_layout
919
920 \begin_layout Plain Layout
921
922
923 \backslash
924 begin{minipage}{5cm}
925 \end_layout
926
927 \begin_layout Plain Layout
928
929
930 \backslash
931 begin{verbatim}
932 \end_layout
933
934 \begin_layout Plain Layout
935
936
937 \backslash
938 begin{minipage}{5cm}
939 \end_layout
940
941 \begin_layout Plain Layout
942
943 This ...
944  
945 \end_layout
946
947 \begin_layout Plain Layout
948
949
950 \backslash
951 end{minipage}
952 \end_layout
953
954 \begin_layout Plain Layout
955
956
957 \backslash
958 end{verbatim}
959 \end_layout
960
961 \begin_layout Plain Layout
962
963
964 \backslash
965 end{minipage}
966 \end_layout
967
968 \begin_layout Plain Layout
969
970
971 \backslash
972 end{tabular}
973 \end_layout
974
975 \end_inset
976
977
978 \begin_inset VSpace bigskip
979 \end_inset
980
981
982 \end_layout
983
984 \begin_layout Standard
985 In addition to using \SpecialChar TeX
986  code, you can also create a separate file containing
987  some complex \SpecialChar LaTeX
988  structure and then use 
989 \begin_inset Flex Noun
990 status collapsed
991
992 \begin_layout Plain Layout
993 Insert\SpecialChar menuseparator
994 Child
995 \begin_inset space ~
996 \end_inset
997
998 Document
999 \end_layout
1000
1001 \end_inset
1002
1003  to include your file (you should select the type 
1004 \begin_inset Flex Code
1005 status collapsed
1006
1007 \begin_layout Plain Layout
1008 Input
1009 \end_layout
1010
1011 \end_inset
1012
1013 ).
1014  We recommend that you only do this if you have a 
1015 \begin_inset Flex Code
1016 status collapsed
1017
1018 \begin_layout Plain Layout
1019 .tex
1020 \end_layout
1021
1022 \end_inset
1023
1024  file which you 
1025 \emph on
1026 know
1027 \emph default
1028  works already.
1029  Otherwise, you'll have a big job tracking down \SpecialChar LaTeX
1030  errors.
1031 \end_layout
1032
1033 \begin_layout Standard
1034 There are a few last points to emphasize:
1035 \end_layout
1036
1037 \begin_layout Itemize
1038 \SpecialChar LyX
1039  
1040 \emph on
1041 does not
1042 \emph default
1043  check if your \SpecialChar LaTeX
1044  code is correct.
1045 \end_layout
1046
1047 \begin_layout Itemize
1048 Beware of reinventing the wheel.
1049 \end_layout
1050
1051 \begin_layout Standard
1052 On that last point, \SpecialChar LyX
1053  does have quite a few features tucked into it, and
1054  more are coming.
1055  Be sure to check the manuals to make sure that \SpecialChar LyX
1056  doesn't have such-and-such
1057  feature before you decide you have to do it by hand.
1058  Moreover, there are numerous \SpecialChar LaTeX
1059  packages out there to do all sorts of things,
1060  from labels to envelopes to fancy multipage tables.
1061  Check out 
1062 \change_inserted 244031559 1603815732
1063
1064 \begin_inset CommandInset href
1065 LatexCommand href
1066 name "CTAN"
1067 target "https://www.ctan.org/"
1068 literal "false"
1069
1070 \end_inset
1071
1072
1073 \change_deleted 244031559 1603815732
1074
1075 \begin_inset CommandInset href
1076 LatexCommand href
1077 name "CTAN"
1078 target "http://www.ctan.org/"
1079 literal "false"
1080
1081 \end_inset
1082
1083
1084 \change_unchanged
1085  for details.
1086 \end_layout
1087
1088 \begin_layout Standard
1089 If you do need to do some wild and fancy things within your document, be
1090  sure to check out a good \SpecialChar LaTeX
1091  book for assistance.
1092  There are a number of them listed in the bibliography of the 
1093 \emph on
1094 User's Guide
1095 \emph default
1096 .
1097 \end_layout
1098
1099 \begin_layout Section
1100 \SpecialChar LyX
1101  and the \SpecialChar LaTeX
1102  Preamble
1103 \end_layout
1104
1105 \begin_layout Subsection
1106 About the \SpecialChar LaTeX
1107  Preamble
1108 \end_layout
1109
1110 \begin_layout Standard
1111 If you already know \SpecialChar LaTeX
1112 , there is no need to explain here what the preamble
1113  is good for.
1114  If you don't, the following will give you some ideas—we recommend again
1115  that you consult a \SpecialChar LaTeX
1116  book for further information.
1117  In any case, you should read the points below, because they explain what
1118  you can do and what you don't need to do in the \SpecialChar LaTeX
1119  preamble of a \SpecialChar LyX
1120  document.
1121 \end_layout
1122
1123 \begin_layout Standard
1124 The \SpecialChar LaTeX
1125  preamble comes at the very beginning of a document, 
1126 \emph on
1127 before
1128 \emph default
1129  the text.
1130  It serves to:
1131 \end_layout
1132
1133 \begin_layout Itemize
1134 Declare the document class.
1135  
1136 \begin_inset Newline newline
1137 \end_inset
1138
1139 \SpecialChar LyX
1140  already does this for you.
1141  If you're a seasoned \SpecialChar LaTeX
1142 -nician, and you have a custom document class you
1143  want to use, check out the 
1144 \emph on
1145 Customization Manual
1146 \emph default
1147  for information on how to make \SpecialChar LyX
1148  interface to it.
1149 \end_layout
1150
1151 \begin_layout Itemize
1152 Declare the usage of packages.
1153  
1154 \begin_inset Newline newline
1155 \end_inset
1156
1157 \SpecialChar LaTeX
1158  packages provide special commands, which are only available within a document
1159  when the package has been declared in the preamble.
1160  In addition to providing special commands, the inclusion of a package can
1161  change the document.
1162  For example, the package 
1163 \begin_inset Flex Code
1164 status collapsed
1165
1166 \begin_layout Plain Layout
1167 indentfirst
1168 \end_layout
1169
1170 \end_inset
1171
1172  forces all paragraphs to be indented.
1173  There are other packages for labels, envelopes, margins, etc.
1174  
1175 \end_layout
1176
1177 \begin_layout Itemize
1178 Set counters, variables, lengths and widths.
1179  
1180 \begin_inset Newline newline
1181 \end_inset
1182
1183 There are several \SpecialChar LaTeX
1184  counters and variables that 
1185 \emph on
1186 must
1187 \emph default
1188  be set globally from within the preamble in order to have the desired effect.
1189  (There are variables that you can set and reset inside the document, too.)
1190  Margins are a good example of something that must be set in the preamble.
1191  Another example is the label format for lists.
1192  You can actually set these just about anywhere, but it's best to do it
1193  just once, inside the preamble.
1194 \end_layout
1195
1196 \begin_layout Itemize
1197 Declare user defined commands (with 
1198 \begin_inset Flex Code
1199 status collapsed
1200
1201 \begin_layout Plain Layout
1202
1203 \backslash
1204 newcommand
1205 \end_layout
1206
1207 \end_inset
1208
1209  or 
1210 \begin_inset Flex Code
1211 status collapsed
1212
1213 \begin_layout Plain Layout
1214
1215 \backslash
1216 renewcommand
1217 \end_layout
1218
1219 \end_inset
1220
1221 ).
1222 \begin_inset Newline newline
1223 \end_inset
1224
1225 These are abbreviations for \SpecialChar LaTeX
1226  commands which appear very often inside a document.
1227  Although the preamble is a good place to declare such commands, they 
1228 \emph on
1229 can
1230 \emph default
1231  be declared anywhere (before they are used for the first time, of course).
1232  This can be useful if there is a lot of raw \SpecialChar LaTeX
1233  code in your document, which
1234  normally should not be the case.
1235 \end_layout
1236
1237 \begin_layout Standard
1238 \SpecialChar LyX
1239  adds its own set of definitions to the preamble of the 
1240 \begin_inset Flex Code
1241 status collapsed
1242
1243 \begin_layout Plain Layout
1244 .tex
1245 \end_layout
1246
1247 \end_inset
1248
1249  file it produces.
1250  This makes \SpecialChar LaTeX
1251  files generated by \SpecialChar LyX
1252  portable.
1253 \end_layout
1254
1255 \begin_layout Subsection
1256 Changing the Preamble
1257 \end_layout
1258
1259 \begin_layout Standard
1260 The commands which \SpecialChar LyX
1261  adds to the preamble of a \SpecialChar LaTeX
1262  file are fixed; you can't
1263  change them without patching \SpecialChar LyX
1264  itself.
1265  You can, however, add your own stuff to the preamble by selecting 
1266 \begin_inset Flex Noun
1267 status collapsed
1268
1269 \begin_layout Plain Layout
1270 \SpecialChar LaTeX
1271
1272 \begin_inset space ~
1273 \end_inset
1274
1275 Preamble
1276 \end_layout
1277
1278 \end_inset
1279
1280  in the 
1281 \begin_inset Flex Noun
1282 status collapsed
1283
1284 \begin_layout Plain Layout
1285 Document\SpecialChar menuseparator
1286 Settings
1287 \end_layout
1288
1289 \end_inset
1290
1291  dialog.
1292  \SpecialChar LyX
1293  adds anything in the 
1294 \begin_inset Flex Noun
1295 status collapsed
1296
1297 \begin_layout Plain Layout
1298 Preamble
1299 \end_layout
1300
1301 \end_inset
1302
1303  dialog to its own built-in preamble.
1304  Before adding your own declarations in the preamble, you should make sure
1305  that \SpecialChar LyX
1306  doesn't already support what you want to do.
1307  (Remember what we said about reinventing the wheel?) Also, 
1308 \emph on
1309 make sure your preamble code is correct
1310 \emph default
1311 .
1312  \SpecialChar LyX
1313  doesn't check it for you.
1314  If there is an error, you're likely to get an error like 
1315 \begin_inset Quotes eld
1316 \end_inset
1317
1318
1319 \begin_inset Flex Code
1320 status collapsed
1321
1322 \begin_layout Plain Layout
1323 Missing 
1324 \backslash
1325 begin{document}
1326 \end_layout
1327
1328 \end_inset
1329
1330
1331 \begin_inset Quotes erd
1332 \end_inset
1333
1334 .
1335  If you see this error, check your preamble.
1336 \end_layout
1337
1338 \begin_layout Subsection
1339 Examples
1340 \end_layout
1341
1342 \begin_layout Standard
1343 Here are some examples of what you can add to a preamble, and what they
1344  do.
1345 \end_layout
1346
1347 \begin_layout Subsubsection
1348 Example #1: Offsets
1349 \end_layout
1350
1351 \begin_layout Standard
1352 There are two variables under \SpecialChar LaTeX
1353  that control page position: 
1354 \begin_inset Flex Code
1355 status collapsed
1356
1357 \begin_layout Plain Layout
1358
1359 \backslash
1360 hoffset
1361 \end_layout
1362
1363 \end_inset
1364
1365  and 
1366 \begin_inset Flex Code
1367 status collapsed
1368
1369 \begin_layout Plain Layout
1370
1371 \backslash
1372 voffset
1373 \end_layout
1374
1375 \end_inset
1376
1377 .
1378  Their names should be self-explanatory.
1379  These variables are useful if you think for a moment about computer labels.
1380  Sometimes, the size of a print medium and the area of the medium that you
1381  can actually print on aren't the same.
1382  This is where 
1383 \begin_inset Flex Code
1384 status collapsed
1385
1386 \begin_layout Plain Layout
1387
1388 \backslash
1389 hoffset
1390 \end_layout
1391
1392 \end_inset
1393
1394  and 
1395 \begin_inset Flex Code
1396 status collapsed
1397
1398 \begin_layout Plain Layout
1399
1400 \backslash
1401 voffset
1402 \end_layout
1403
1404 \end_inset
1405
1406  come in.
1407 \end_layout
1408
1409 \begin_layout Standard
1410 The default values for 
1411 \begin_inset Flex Code
1412 status collapsed
1413
1414 \begin_layout Plain Layout
1415
1416 \backslash
1417 hoffset
1418 \end_layout
1419
1420 \end_inset
1421
1422  and 
1423 \begin_inset Flex Code
1424 status collapsed
1425
1426 \begin_layout Plain Layout
1427
1428 \backslash
1429 voffset
1430 \end_layout
1431
1432 \end_inset
1433
1434  are both 0
1435 \begin_inset space \thinspace{}
1436 \end_inset
1437
1438 points, i.
1439 \begin_inset space \thinspace{}
1440 \end_inset
1441
1442 e.
1443 \begin_inset space \space{}
1444 \end_inset
1445
1446 the page isn't shifted.
1447  Unfortunately, some DVI drivers always seem to shift the page.
1448  We have no idea why, or why the sysadmin hasn't fixed such behavior.
1449  If you're using \SpecialChar LyX
1450  on a system that you don't personally maintain, and your
1451  sysadmin is a doofus, 
1452 \begin_inset Flex Code
1453 status collapsed
1454
1455 \begin_layout Plain Layout
1456
1457 \backslash
1458 hoffset
1459 \end_layout
1460
1461 \end_inset
1462
1463  and 
1464 \begin_inset Flex Code
1465 status collapsed
1466
1467 \begin_layout Plain Layout
1468
1469 \backslash
1470 voffset
1471 \end_layout
1472
1473 \end_inset
1474
1475  can save the day.
1476  Suppose your left and top margins are always 0.5
1477 \begin_inset space \thinspace{}
1478 \end_inset
1479
1480 inches too big.
1481  You can add this to the preamble:
1482 \end_layout
1483
1484 \begin_layout LyX-Code
1485
1486 \backslash
1487 setlength{
1488 \backslash
1489 hoffset}{-0.5 in}
1490 \end_layout
1491
1492 \begin_layout LyX-Code
1493
1494 \backslash
1495 setlength{
1496 \backslash
1497 voffset}{-0.5 in}
1498 \end_layout
1499
1500 \begin_layout Standard
1501 and your margins should now be correct.
1502 \end_layout
1503
1504 \begin_layout Subsubsection
1505 Example #2: Labels
1506 \end_layout
1507
1508 \begin_layout Standard
1509 Speaking of labels, suppose you wanted to print out a bunch of address labels.
1510  There's a rather nice package, available at your nearest CTAN archive,
1511  for printing sheets of labels: 
1512 \begin_inset Flex Code
1513 status collapsed
1514
1515 \begin_layout Plain Layout
1516 labels.sty
1517 \end_layout
1518
1519 \end_inset
1520
1521 .
1522  Now, your system may not have this package installed by default.
1523  We leave that up to you to check.
1524  You'll also want to read the documentation for it; we're not going to do
1525  that for you.
1526  Since this is an example, however, we'll give you an example of how you
1527  use this package.
1528 \end_layout
1529
1530 \begin_layout Standard
1531 First, make sure you're using the 
1532 \begin_inset Flex Code
1533 status collapsed
1534
1535 \begin_layout Plain Layout
1536 article
1537 \end_layout
1538
1539 \end_inset
1540
1541  document class.
1542  Next, you need to put the following in your preamble:
1543 \end_layout
1544
1545 \begin_layout LyX-Code
1546
1547 \backslash
1548 usepackage{labels}
1549 \end_layout
1550
1551 \begin_layout LyX-Code
1552
1553 \backslash
1554 LabelCols=3
1555 \end_layout
1556
1557 \begin_layout LyX-Code
1558
1559 \backslash
1560 LabelRows=7
1561 \end_layout
1562
1563 \begin_layout LyX-Code
1564
1565 \backslash
1566 LeftBorder=8mm
1567 \end_layout
1568
1569 \begin_layout LyX-Code
1570
1571 \backslash
1572 RightBorder=8mm
1573 \end_layout
1574
1575 \begin_layout LyX-Code
1576
1577 \backslash
1578 TopBorder=9mm
1579 \end_layout
1580
1581 \begin_layout LyX-Code
1582
1583 \backslash
1584 BottomBorder=2mm
1585 \end_layout
1586
1587 \begin_layout Standard
1588 This sets things up for Avery label sheets, stock #5360.
1589  You're now ready to print labels, but you'll need to insert \SpecialChar LaTeX
1590  code, placing
1591  the commands 
1592 \begin_inset Flex Code
1593 status collapsed
1594
1595 \begin_layout Plain Layout
1596
1597 \backslash
1598 begin{labels}
1599 \end_layout
1600
1601 \end_inset
1602
1603  and 
1604 \begin_inset Flex Code
1605 status collapsed
1606
1607 \begin_layout Plain Layout
1608
1609 \backslash
1610 end{labels}
1611 \end_layout
1612
1613 \end_inset
1614
1615  around each label text.
1616  This and other special features of 
1617 \begin_inset Flex Code
1618 status collapsed
1619
1620 \begin_layout Plain Layout
1621 labels.sty
1622 \end_layout
1623
1624 \end_inset
1625
1626  are explained in its documentation.
1627 \end_layout
1628
1629 \begin_layout Standard
1630 Someday, someone may write a \SpecialChar LyX
1631  layout file to support this package directly.
1632  Maybe that someone is you.
1633 \end_layout
1634
1635 \begin_layout Subsubsection
1636 Example #3: Paragraph Indentation
1637 \end_layout
1638
1639 \begin_layout Standard
1640 Americans are trained to indent the first line of 
1641 \emph on
1642 every
1643 \emph default
1644  paragraph.
1645  As with all of their other weird quirks, most Americans will whine and
1646  moan until they can have their way and indent the first line of all paragraphs.
1647  (Yes, we're joking.
1648  (We are?) 
1649 \emph on
1650 Yeah
1651 \emph default
1652 , we are.)
1653 \end_layout
1654
1655 \begin_layout Standard
1656 Of course, this behavior isn't standard typography.
1657  In books, you typically only indent the first line of a paragraph 
1658 \emph on
1659 if
1660 \emph default
1661  it follows another one.
1662  The idea behind indenting the first line of a paragraph is to distinguish
1663  neighboring paragraphs from one another.
1664  If there is no previous paragraph—for example, if it follows a figure or
1665  is the first paragraph in a section—then there is no need for indentation.
1666  
1667 \end_layout
1668
1669 \begin_layout Standard
1670 If you're a typical American (we're still joking!), though, you don't care
1671  about such esoteric things; you want your indentation! Add this to the
1672  preamble:
1673 \end_layout
1674
1675 \begin_layout LyX-Code
1676
1677 \backslash
1678 usepackage{indentfirst}
1679 \end_layout
1680
1681 \begin_layout Standard
1682 If your \SpecialChar TeX
1683  distribution isn't braindead, you'll have this package, and all
1684  of your paragraphs will get the indentation the Founding Fathers intended
1685  they should have.
1686 \end_layout
1687
1688 \begin_layout Subsubsection
1689 Example #4: This Document
1690 \end_layout
1691
1692 \begin_layout Standard
1693 You can also check out the preamble of this document to get an idea of some
1694  of the advanced things you can do.
1695 \end_layout
1696
1697 \begin_layout Section
1698 \SpecialChar LyX
1699  and \SpecialChar LaTeX
1700  Errors
1701 \end_layout
1702
1703 \begin_layout Standard
1704 When \SpecialChar LyX
1705  calls \SpecialChar LaTeX
1706 , it tells \SpecialChar LaTeX
1707  to blithely ignore any errors and keep going.
1708  It then uses the logfile from the \SpecialChar LaTeX
1709  run to do a post-mortem.
1710  After analyzing the logfile, \SpecialChar LyX
1711  displays a dialog listing the errors.
1712  Clicking on any one of them will take you to the position in your \SpecialChar LyX
1713  file
1714  where the error occurred.
1715 \begin_inset Foot
1716 status collapsed
1717
1718 \begin_layout Plain Layout
1719 Well, usually.
1720  Analyzing the logfile is a tough job, and \SpecialChar LyX
1721  doesn't always go to the right
1722  line.
1723  There are also cases where \SpecialChar LaTeX
1724  reports the error on one line, but the actual
1725  error is earlier.
1726  This is not unlike forgetting a closing brace in a program: You'll get
1727  an error, but only later.
1728 \end_layout
1729
1730 \end_inset
1731
1732
1733 \end_layout
1734
1735 \begin_layout Standard
1736 Some folks also like to look at the log file directly: It is available from
1737  
1738 \begin_inset Flex Noun
1739 status collapsed
1740
1741 \begin_layout Plain Layout
1742 Document\SpecialChar menuseparator
1743 LaTeX
1744 \begin_inset space ~
1745 \end_inset
1746
1747 Log
1748 \end_layout
1749
1750 \end_inset
1751
1752 .
1753  There are some fairly common error messages and warnings.
1754  We'll cover those here.
1755  You should look at a good \SpecialChar LaTeX
1756  book for a complete listing.
1757 \end_layout
1758
1759 \begin_layout Itemize
1760 \begin_inset Flex Code
1761 status collapsed
1762
1763 \begin_layout Plain Layout
1764 LaTeX Warning
1765 \end_layout
1766
1767 \end_inset
1768
1769
1770 \begin_inset Newline newline
1771 \end_inset
1772
1773 Anything beginning with these words is a warning message for the purpose
1774  of 
1775 \begin_inset Quotes eld
1776 \end_inset
1777
1778 debugging
1779 \begin_inset Quotes erd
1780 \end_inset
1781
1782  the \SpecialChar LaTeX
1783  code itself.
1784  You'll get messages like this if you added or changed cross-references
1785  or bibliography entries, in which case, \SpecialChar LaTeX
1786  is trying to tell you that you
1787  need to make another run.
1788  You can by-and-large ignore these.
1789 \end_layout
1790
1791 \begin_layout Itemize
1792 \begin_inset Flex Code
1793 status collapsed
1794
1795 \begin_layout Plain Layout
1796 LaTeX Font Warning
1797 \end_layout
1798
1799 \end_inset
1800
1801
1802 \begin_inset Newline newline
1803 \end_inset
1804
1805 Another warning message, this time about fonts which \SpecialChar LaTeX
1806  couldn't find.
1807  The rest of the message will often say something about a replacement font
1808  that \SpecialChar LaTeX
1809  used.
1810  You can safely ignore these, too.
1811 \end_layout
1812
1813 \begin_layout Itemize
1814 \begin_inset Flex Code
1815 status collapsed
1816
1817 \begin_layout Plain Layout
1818 Overfull 
1819 \backslash
1820 hbox
1821 \end_layout
1822
1823 \end_inset
1824
1825
1826 \begin_inset Newline newline
1827 \end_inset
1828
1829 \SpecialChar LaTeX
1830  absolutely 
1831 \emph on
1832 loves
1833 \emph default
1834  to spew these out.
1835  It seems to generate at least one of these messages for just about any
1836  document you write.
1837  They are warnings about lines that were too long and run past the right
1838  margin.
1839  This happens if \SpecialChar LaTeX
1840  does not find a reasonable way to break the lines (notoriously
1841  often with typewriter font, since this does not allow for automatic break
1842  points).
1843  In many cases, this is unnoticeable in the final output.
1844  (It can be just a point or two.) Sometimes, however, the lines run rather
1845  visibly into the margin; something you will not want to have in your final
1846  print.
1847  
1848 \begin_inset Newline newline
1849 \end_inset
1850
1851 There are several global ways to try to minimize the overfull lines.
1852  Clicking 
1853 \family sans
1854 Enable micro-typographic extensions
1855 \family default
1856  in 
1857 \family sans
1858 Document\SpecialChar menuseparator
1859 Settings\SpecialChar menuseparator
1860 Fonts
1861 \family default
1862  might already improve things a lot.
1863  Furthermore, \SpecialChar LaTeX
1864  code such as the following in 
1865 \family sans
1866 Document\SpecialChar menuseparator
1867 Settings\SpecialChar menuseparator
1868 Preamble
1869 \family default
1870  usually reduces the overfull lines drastically (we use this in the preamble
1871  of this document):
1872 \end_layout
1873
1874 \begin_deeper
1875 \begin_layout LyX-Code
1876
1877 \backslash
1878 tolerance 1414
1879 \begin_inset Newline newline
1880 \end_inset
1881
1882
1883 \backslash
1884 hbadness 1414
1885 \begin_inset Newline newline
1886 \end_inset
1887
1888
1889 \backslash
1890 emergencystretch 1.5em
1891 \begin_inset Newline newline
1892 \end_inset
1893
1894
1895 \backslash
1896 hfuzz 0.3pt
1897 \end_layout
1898
1899 \begin_layout Standard
1900 In some cases, however, you eventually have to rewrite the text to get the
1901  line breaking right.
1902 \begin_inset Foot
1903 status collapsed
1904
1905 \begin_layout Plain Layout
1906 For more information, see 
1907 \begin_inset Flex URL
1908 status open
1909
1910 \begin_layout Plain Layout
1911
1912 http://www.tex.ac.uk/FAQ-overfull.html
1913 \end_layout
1914
1915 \end_inset
1916
1917
1918 \end_layout
1919
1920 \end_inset
1921
1922
1923 \end_layout
1924
1925 \begin_layout Standard
1926 In any case, you should check the respective lines, at least for the final
1927  version of your document.
1928  Your eyes will tell you if there's a problem with something that's too
1929  wide.
1930 \begin_inset Foot
1931 status collapsed
1932
1933 \begin_layout Plain Layout
1934 You can also enable the `draft' option in 
1935 \begin_inset Flex Noun
1936 status collapsed
1937
1938 \begin_layout Plain Layout
1939 Document\SpecialChar menuseparator
1940 Settings
1941 \end_layout
1942
1943 \end_inset
1944
1945 , and then \SpecialChar LaTeX
1946  will draw a black box in the margin of lines that are overfull.
1947 \end_layout
1948
1949 \end_inset
1950
1951  
1952 \end_layout
1953
1954 \end_deeper
1955 \begin_layout Itemize
1956 \begin_inset Flex Code
1957 status collapsed
1958
1959 \begin_layout Plain Layout
1960 Underfull 
1961 \backslash
1962 hbox
1963 \end_layout
1964
1965 \end_inset
1966
1967
1968 \begin_inset Newline newline
1969 \end_inset
1970
1971 Not quite as common as its cousin.
1972  This happens again if \SpecialChar LaTeX
1973  does not find a reasonable break point and consequently
1974  generates too loose lines.
1975  As with the overfull lines, you should check if this is a visible problem.
1976 \end_layout
1977
1978 \begin_layout Itemize
1979 \begin_inset Flex Code
1980 status collapsed
1981
1982 \begin_layout Plain Layout
1983 Overfull 
1984 \backslash
1985 vbox
1986 \end_layout
1987
1988 \end_inset
1989
1990  and 
1991 \begin_inset Flex Code
1992 status collapsed
1993
1994 \begin_layout Plain Layout
1995 Underfull 
1996 \backslash
1997 vbox
1998 \end_layout
1999
2000 \end_inset
2001
2002
2003 \begin_inset Newline newline
2004 \end_inset
2005
2006 Warnings about troubles breaking the page.
2007  Once again, just look at the output.
2008  Your eyes will tell you where something has gone wrong.
2009 \end_layout
2010
2011 \begin_layout Itemize
2012 \begin_inset Flex Code
2013 status collapsed
2014
2015 \begin_layout Plain Layout
2016 LaTeX Error: File 
2017 \begin_inset Quotes els
2018 \end_inset
2019
2020 Xxxx
2021 \begin_inset Quotes ers
2022 \end_inset
2023
2024  not found
2025 \end_layout
2026
2027 \end_inset
2028
2029
2030 \begin_inset Newline newline
2031 \end_inset
2032
2033 The file 
2034 \begin_inset Quotes eld
2035 \end_inset
2036
2037 Xxxx
2038 \begin_inset Quotes erd
2039 \end_inset
2040
2041  isn't installed on this system.
2042  This usually appears because some package your document needs isn't installed.
2043  If you didn't touch the preamble or didn't use the 
2044 \begin_inset Flex Code
2045 status collapsed
2046
2047 \begin_layout Plain Layout
2048
2049 \backslash
2050 usepackage{}
2051 \end_layout
2052
2053 \end_inset
2054
2055  command, then one of the packages \SpecialChar LyX
2056  tried to load is missing.
2057  Use 
2058 \begin_inset Flex Noun
2059 status collapsed
2060
2061 \begin_layout Plain Layout
2062 Help\SpecialChar menuseparator
2063 \SpecialChar LaTeX
2064  Configuration
2065 \end_layout
2066
2067 \end_inset
2068
2069  to get a list of packages that \SpecialChar LyX
2070  knows about.
2071  This file is updated whenever you reconfigure \SpecialChar LyX
2072  (using 
2073 \begin_inset Flex Noun
2074 status collapsed
2075
2076 \begin_layout Plain Layout
2077 Tools\SpecialChar menuseparator
2078 Reconfigure
2079 \end_layout
2080
2081 \end_inset
2082
2083 ) and tells you which packages have been detected and what they do.
2084 \begin_inset Newline newline
2085 \end_inset
2086
2087 If you did use the 
2088 \begin_inset Flex Code
2089 status collapsed
2090
2091 \begin_layout Plain Layout
2092
2093 \backslash
2094 usepackage{}
2095 \end_layout
2096
2097 \end_inset
2098
2099  command and the package in question isn't installed, then you'll need to
2100  install it yourself.
2101 \end_layout
2102
2103 \begin_layout Itemize
2104 \begin_inset Flex Code
2105 status collapsed
2106
2107 \begin_layout Plain Layout
2108 LaTeX Error: Unknown option
2109 \end_layout
2110
2111 \end_inset
2112
2113
2114 \begin_inset Newline newline
2115 \end_inset
2116
2117 Error messages beginning with this are trying to tell you that you specified
2118  a bad or undefined option to a package.
2119  Check the package's documentation.
2120 \end_layout
2121
2122 \begin_layout Itemize
2123 \begin_inset Flex Code
2124 status collapsed
2125
2126 \begin_layout Plain Layout
2127 Undefined control sequence
2128 \end_layout
2129
2130 \end_inset
2131
2132
2133 \begin_inset Newline newline
2134 \end_inset
2135
2136 If you've inserted \SpecialChar LaTeX
2137  code into your document, but made a typo, you'll get
2138  one of these.
2139  You may have forgotten to load a package.
2140  In any case, this error message usually means that you used an undefined
2141  command.
2142  
2143 \end_layout
2144
2145 \begin_layout Standard
2146 There are other error and warning messages.
2147  Some are self-explanatory.
2148  These are usually \SpecialChar LaTeX
2149  messages.
2150  Others are downright cryptic.
2151  These are usually \SpecialChar TeX
2152  error messages, and we really have 
2153 \emph on
2154 no clue
2155 \emph default
2156  what they mean or how to decipher them.
2157  No-one does.
2158 \end_layout
2159
2160 \begin_layout Standard
2161 There's a general sequence you should follow if you get error messages:
2162 \end_layout
2163
2164 \begin_layout Enumerate
2165 Look at the \SpecialChar LaTeX
2166  code you inserted for typos.
2167 \end_layout
2168
2169 \begin_layout Enumerate
2170 If there are no typos, check that you used the command(s) correctly.
2171 \end_layout
2172
2173 \begin_layout Enumerate
2174 If you get a bunch of error boxes piled up at the very top of the document—and
2175  especially if you see a 
2176 \begin_inset Quotes eld
2177 \end_inset
2178
2179
2180 \begin_inset Flex Code
2181 status collapsed
2182
2183 \begin_layout Plain Layout
2184 Missing 
2185 \backslash
2186 begin{document}
2187 \end_layout
2188
2189 \end_inset
2190
2191
2192 \begin_inset Quotes erd
2193 \end_inset
2194
2195  error—it means that there are errors in the preamble.
2196  Start debugging your preamble.
2197 \end_layout
2198
2199 \begin_layout Enumerate
2200 If you didn't add anything to the preamble and didn't add any \SpecialChar LaTeX
2201  code to the
2202  document, the first suspect is your \SpecialChar LaTeX
2203  distribution itself.
2204  Check for missing packages and install them.
2205 \end_layout
2206
2207 \begin_layout Enumerate
2208 Okay, so there are no missing packages.
2209  Did you use any of the fine-tuning options in \SpecialChar LyX
2210 ? Specifically, did you 
2211 \emph on
2212 misuse
2213 \emph default
2214  any of them, like trying to manually insert lots of 
2215 \begin_inset Flex Code
2216 status collapsed
2217
2218 \begin_layout Plain Layout
2219
2220 \change_deleted 177693 1654669036
2221 Protected
2222 \change_inserted 177693 1654669038
2223 Non-Breaking
2224 \change_unchanged
2225
2226 \begin_inset space ~
2227 \end_inset
2228
2229
2230 \change_deleted 177693 1654669040
2231 Blanks
2232 \change_inserted 177693 1654669041
2233 Spaces
2234 \change_unchanged
2235
2236 \end_layout
2237
2238 \end_inset
2239
2240
2241 \begin_inset Flex Code
2242 status collapsed
2243
2244 \begin_layout Plain Layout
2245 Linebreaks
2246 \end_layout
2247
2248 \end_inset
2249
2250 , or 
2251 \begin_inset Flex Code
2252 status collapsed
2253
2254 \begin_layout Plain Layout
2255 Pagebreaks
2256 \end_layout
2257
2258 \end_inset
2259
2260 ? Did you try to kludge something together with these instead of using the
2261  appropriate paragraph environment?
2262 \end_layout
2263
2264 \begin_layout Enumerate
2265 All right, you didn't use any of the fine-tuning options, you played by
2266  the rules.
2267  Did you try to pull a fancy maneuver? Did you do something funky inside
2268  a table or an equation, like inserting a graphic into a table cell?
2269 \end_layout
2270
2271 \begin_layout Enumerate
2272 Do you have long sections of text where \SpecialChar LaTeX
2273  cannot find a place to break a
2274  line? By default, \SpecialChar LaTeX
2275  is rather strict about how much extra inter-word spacing
2276  it will add in order to break a line.
2277  Preferably, you should rework the paragraph to avoid the problem.
2278 \end_layout
2279
2280 \begin_layout Enumerate
2281 Did you go overboard with the nesting? \SpecialChar LyX
2282  (currently) doesn't check to make
2283  sure you're in the limits for nesting environments.
2284  If you nested a bunch of environments to the 
2285 \begin_inset Formula $17^{\mathrm{th}}$
2286 \end_inset
2287
2288  level, that's the problem.
2289  (The limit in \SpecialChar LaTeX
2290  is five.)
2291 \end_layout
2292
2293 \begin_layout Enumerate
2294 Okay, you didn't get any error messages, but your output looks awful.
2295  If you have a table or figure that's too wide or long for the page, you
2296  need to:
2297 \end_layout
2298
2299 \begin_deeper
2300 \begin_layout Enumerate
2301 rescale the figure so it fits.
2302 \end_layout
2303
2304 \begin_layout Enumerate
2305 trim down the table so it fits.
2306 \end_layout
2307
2308 \end_deeper
2309 \begin_layout Enumerate
2310 If something else is wrong with the output, and you didn't try to pull anything
2311  fancy or kludge the fine-tuning options, we're not sure what's wrong.
2312 \end_layout
2313
2314 \begin_layout Standard
2315 If all this doesn't help—well, then 
2316 \emph on
2317 perhaps
2318 \emph default
2319  you might have found a bug in \SpecialChar LyX
2320 \SpecialChar ldots
2321 .
2322 \end_layout
2323
2324 \begin_layout Chapter
2325
2326 \change_inserted 564990737 1670439508
2327 Document classes
2328 \end_layout
2329
2330 \begin_layout Section
2331
2332 \change_inserted 564990737 1670439533
2333 \begin_inset CommandInset label
2334 LatexCommand label
2335 name "sec:Collections"
2336
2337 \end_inset
2338
2339 Collections
2340 \end_layout
2341
2342 \begin_layout Subsection
2343 AMS \SpecialChar LaTeX
2344
2345 \end_layout
2346
2347 \begin_layout Standard
2348 by 
2349 \noun on
2350 David Johnson
2351 \noun default
2352 ; updated by 
2353 \noun on
2354 Richard Kimberly Heck
2355 \end_layout
2356
2357 \begin_layout Standard
2358 \begin_inset VSpace bigskip
2359 \end_inset
2360
2361
2362 \end_layout
2363
2364 \begin_layout Standard
2365 \noindent
2366 The AMS \SpecialChar LaTeX
2367  layouts are set up to conform to suggested styles for mathematical
2368  papers to be submitted to American Mathematical Society publications.
2369  The layouts are not tailored to a specific journal, but easily can be.
2370  You should refer to the AMS documentation for specific instructions for
2371  each journal (usually it will entail only changing a single line in the
2372  \SpecialChar TeX
2373  output).
2374  That documentation is available on the Web at 
2375 \begin_inset Flex URL
2376 status open
2377
2378 \begin_layout Plain Layout
2379
2380 http://www.ams.org
2381 \end_layout
2382
2383 \end_inset
2384
2385  or by ftp at 
2386 \begin_inset Flex URL
2387 status open
2388
2389 \begin_layout Plain Layout
2390
2391 ftp://ftp.ams.org/pub/tex/amslatex/
2392 \end_layout
2393
2394 \end_inset
2395
2396 .
2397  These layouts are appropriate, and useful, for any mathematical writing.
2398  
2399 \end_layout
2400
2401 \begin_layout Standard
2402 There are two basic AMS \SpecialChar LaTeX
2403  layouts: 
2404 \end_layout
2405
2406 \begin_layout Itemize
2407 amsart: The standard AMS article format.
2408 \end_layout
2409
2410 \begin_layout Itemize
2411 amsbook: the standard AMS book (really, monograph) format.
2412  
2413 \end_layout
2414
2415 \begin_layout Standard
2416 The layouts themselves contain only the minimum necessary to use the AMS
2417  classes.
2418  They do not, in particular, contain any of the `theorem' environments used
2419  for setting theorems, lemmas, and the like.
2420  These are contained, instead, in the 
2421 \begin_inset Flex Code
2422 status collapsed
2423
2424 \begin_layout Plain Layout
2425 Theorems (AMS)
2426 \end_layout
2427
2428 \end_inset
2429
2430  module, which is loaded by default when you select one of the AMS classes.
2431  (It can also be used with other classes and can be removed, if you would
2432  rather use something else.) Less commonly used environments are in the 
2433 \begin_inset Flex Code
2434 status collapsed
2435
2436 \begin_layout Plain Layout
2437 Theorems (AMS-Extended)
2438 \end_layout
2439
2440 \end_inset
2441
2442  module, which must be loaded manually.
2443 \end_layout
2444
2445 \begin_layout Standard
2446 By default, theorems and the like are numbered consecutively throughout
2447  the document, but this may be modified by loading the module 
2448 \begin_inset Flex Code
2449 status collapsed
2450
2451 \begin_layout Plain Layout
2452 Theorems (Order by Section)
2453 \end_layout
2454
2455 \end_inset
2456
2457  or, if you are using 
2458 \begin_inset Flex Code
2459 status collapsed
2460
2461 \begin_layout Plain Layout
2462 book (AMS)
2463 \end_layout
2464
2465 \end_inset
2466
2467 , the module 
2468 \begin_inset Flex Code
2469 status collapsed
2470
2471 \begin_layout Plain Layout
2472 Theorems (Order by Chapter)
2473 \end_layout
2474
2475 \end_inset
2476
2477 .
2478  These will number the results as 
2479 \begin_inset Formula $n.m$
2480 \end_inset
2481
2482 , where the first number refers to the section (or chapter) and the second
2483  refers to the total number of results so far in that section (or chapter).
2484  Many environments are also available unnumbered.
2485  These are indicated by an asterisk at the end.
2486  If you happen to want 
2487 \emph on
2488 only
2489 \emph default
2490  unnumbered results, the module 
2491 \begin_inset Flex Code
2492 status collapsed
2493
2494 \begin_layout Plain Layout
2495 Theorems (Starred)
2496 \end_layout
2497
2498 \end_inset
2499
2500  provides that option.
2501 \end_layout
2502
2503 \begin_layout Standard
2504 Note that these modules do not 
2505 \emph on
2506 have
2507 \emph default
2508  to be used with the AMS classes.
2509  It is perfectly possible to use the 
2510 \begin_inset Flex Code
2511 status collapsed
2512
2513 \begin_layout Plain Layout
2514 Theorems (AMS)
2515 \end_layout
2516
2517 \end_inset
2518
2519  module, and the others mentioned, with other classes, such as 
2520 \begin_inset Flex Code
2521 status collapsed
2522
2523 \begin_layout Plain Layout
2524 article
2525 \end_layout
2526
2527 \end_inset
2528
2529
2530 \begin_inset Flex Code
2531 status collapsed
2532
2533 \begin_layout Plain Layout
2534 report
2535 \end_layout
2536
2537 \end_inset
2538
2539
2540 \begin_inset Flex Code
2541 status collapsed
2542
2543 \begin_layout Plain Layout
2544 book (KOMA-script)
2545 \end_layout
2546
2547 \end_inset
2548
2549 , and so forth.
2550 \end_layout
2551
2552 \begin_layout Subsubsection
2553 What these layouts provide
2554 \end_layout
2555
2556 \begin_layout Standard
2557 There is a long list of included environments provided by these layouts.
2558  In AMS-\SpecialChar LaTeX
2559 , there is, in fact, an opportunity to define an unlimited variety
2560  of `theorem' environments.
2561  However, the AMS recommends the environments that are available in \SpecialChar LyX
2562 .
2563  
2564 \end_layout
2565
2566 \begin_layout Standard
2567 The following environments—as well as the standard environments, such as
2568  
2569 \begin_inset Flex Noun
2570 status collapsed
2571
2572 \begin_layout Plain Layout
2573 section
2574 \end_layout
2575
2576 \end_inset
2577
2578
2579 \begin_inset Flex Noun
2580 status collapsed
2581
2582 \begin_layout Plain Layout
2583 bibliography
2584 \end_layout
2585
2586 \end_inset
2587
2588
2589 \begin_inset Flex Noun
2590 status collapsed
2591
2592 \begin_layout Plain Layout
2593 title
2594 \end_layout
2595
2596 \end_inset
2597
2598
2599 \begin_inset Flex Noun
2600 status collapsed
2601
2602 \begin_layout Plain Layout
2603 author
2604 \end_layout
2605
2606 \end_inset
2607
2608 , and 
2609 \begin_inset Flex Noun
2610 status collapsed
2611
2612 \begin_layout Plain Layout
2613 date
2614 \end_layout
2615
2616 \end_inset
2617
2618 —are provided by 
2619 \begin_inset Flex Code
2620 status collapsed
2621
2622 \begin_layout Plain Layout
2623 article (AMS)
2624 \end_layout
2625
2626 \end_inset
2627
2628  and 
2629 \begin_inset Flex Code
2630 status collapsed
2631
2632 \begin_layout Plain Layout
2633 book (AMS)
2634 \end_layout
2635
2636 \end_inset
2637
2638 :
2639 \end_layout
2640
2641 \begin_layout Description
2642 Address This should be the author's permanent address.
2643 \end_layout
2644
2645 \begin_layout Description
2646 Current
2647 \begin_inset space ~
2648 \end_inset
2649
2650 Address This should be the author's temporary address at the time of submission,
2651  if different from the Address.
2652 \end_layout
2653
2654 \begin_layout Description
2655 Email Author's e-mail address
2656 \end_layout
2657
2658 \begin_layout Description
2659 URL Author's Web address, if desired.
2660 \end_layout
2661
2662 \begin_layout Description
2663 Keywords Key words or phrases used to identify specific topics discussed
2664  in the paper.
2665 \end_layout
2666
2667 \begin_layout Description
2668 Subjectclass These refer to the AMS Subject Classifications, published and
2669  described in 
2670 \emph on
2671 Mathematical Reviews
2672 \emph default
2673 .
2674  These are also available online at the AMS cites listed above.
2675 \end_layout
2676
2677 \begin_layout Description
2678 Thanks
2679 \end_layout
2680
2681 \begin_layout Description
2682 Dedicatory
2683 \end_layout
2684
2685 \begin_layout Description
2686 Translator
2687 \end_layout
2688
2689 \begin_layout Standard
2690 The following environments are provided by both the 
2691 \begin_inset Flex Code
2692 status collapsed
2693
2694 \begin_layout Plain Layout
2695 Theorems
2696 \end_layout
2697
2698 \end_inset
2699
2700  and 
2701 \begin_inset Flex Code
2702 status collapsed
2703
2704 \begin_layout Plain Layout
2705 Theorems (AMS)
2706 \end_layout
2707
2708 \end_inset
2709
2710  modules, in the latter case in both starred (unnumbered) and unstarred
2711  (numbered) versions.
2712  These same environments are provided only in the starred versions by the
2713  
2714 \begin_inset Flex Code
2715 status collapsed
2716
2717 \begin_layout Plain Layout
2718 Theorems (Starred)
2719 \end_layout
2720
2721 \end_inset
2722
2723  module:
2724 \end_layout
2725
2726 \begin_layout Theorem
2727 This is typically used for the statements of major results.
2728  
2729 \end_layout
2730
2731 \begin_layout Corollary*
2732 This is used for statements which follow fairly directly from previous statement
2733 s.
2734  Again, these can be major results.
2735  
2736 \end_layout
2737
2738 \begin_layout Lemma
2739 These are smaller results needed to prove other statements.
2740 \end_layout
2741
2742 \begin_layout Proposition
2743 These are less major results which (hopefully) add to the general theory
2744  being discussed.
2745 \end_layout
2746
2747 \begin_layout Conjecture
2748 These are statements provided without justification, which the author does
2749  not know how to prove, but which seem to be true (to the author, at least).
2750 \end_layout
2751
2752 \begin_layout Definition*
2753 Guess what this is for.
2754  The font is different for this environment than for the previous ones.
2755  
2756 \end_layout
2757
2758 \begin_layout Example*
2759 Used for examples illustrating proven results.
2760 \end_layout
2761
2762 \begin_layout Problem
2763 It's not really known what this is for.
2764  You should figure it out.
2765 \end_layout
2766
2767 \begin_layout Exercise*
2768 Write a description for this one.
2769 \end_layout
2770
2771 \begin_layout Remark
2772 This environment is also a type of theorem, usually a lesser sort of observation.
2773 \end_layout
2774
2775 \begin_layout Claim*
2776 Often used in the course of giving a proof of a larger result.
2777 \end_layout
2778
2779 \begin_layout Case
2780 Generally, these are used to break up long arguments, using specific instances
2781  of some condition.
2782  
2783 \end_layout
2784
2785 \begin_layout Case
2786 The numbering scheme for cases is on its own, not together with other numbered
2787  statements.
2788  
2789 \end_layout
2790
2791 \begin_layout Proof
2792 At the end of this environment, a QED symbol (usually a square, but it can
2793  vary with different styles) is placed.
2794  If you want to have other environments within this one—for example, Case
2795  environments—and have the QED symbol appear only after them, then the other
2796  environments need to be nested within the proof environment.
2797  See the section 
2798 \emph on
2799 Nesting Environments
2800 \emph default
2801  of the 
2802 \emph on
2803 User's Guide
2804 \emph default
2805  for information on nesting.
2806 \end_layout
2807
2808 \begin_layout Standard
2809 And these environments are provided by 
2810 \begin_inset Flex Code
2811 status collapsed
2812
2813 \begin_layout Plain Layout
2814 Theorems (AMS-Extended)
2815 \end_layout
2816
2817 \end_inset
2818
2819 :
2820 \end_layout
2821
2822 \begin_layout Criterion*
2823 A required condition.
2824 \end_layout
2825
2826 \begin_layout Algorithm*
2827 A general procedure to be used.
2828 \end_layout
2829
2830 \begin_layout Axiom*
2831 This is a property or statement taken as true within the system being discussed.
2832 \end_layout
2833
2834 \begin_layout Condition*
2835 Sometimes used to state a condition assumed within the present context of
2836  discussion.
2837 \end_layout
2838
2839 \begin_layout Note*
2840 Similar to a Remark.
2841 \end_layout
2842
2843 \begin_layout Notation*
2844 Used for the explanation of, yes, notation.
2845 \end_layout
2846
2847 \begin_layout Summary
2848 Do we really need to tell you? 
2849 \end_layout
2850
2851 \begin_layout Acknowledgement*
2852 Acknowledgement.
2853 \end_layout
2854
2855 \begin_layout Conclusion*
2856 Sometimes used at the end of a long train of argument.
2857 \end_layout
2858
2859 \begin_layout Fact
2860 Used in a way similar to Proposition, though perhaps lower on the scale.
2861 \end_layout
2862
2863 \begin_layout Standard
2864 In addition, the AMS classes automatically provide the AMS \SpecialChar LaTeX
2865  and AMS fonts
2866  packages.
2867  They need to be available on your system in order to use these environments.
2868 \end_layout
2869
2870 \begin_layout Subsection
2871
2872 \change_inserted 564990737 1671383236
2873
2874 \lang american
2875 \begin_inset CommandInset label
2876 LatexCommand label
2877 name "subsec:Extra-font-sizes"
2878
2879 \end_inset
2880
2881 Extra font sizes
2882 \end_layout
2883
2884 \begin_layout Standard
2885
2886 \change_inserted 564990737 1671383236
2887
2888 \lang american
2889 The “Extra font sizes” collection provides the document classes 
2890 \family sans
2891 article
2892 \begin_inset space \thinspace{}
2893 \end_inset
2894
2895 (with extra font sizes)
2896 \family default
2897
2898 \family sans
2899 book
2900 \begin_inset space \thinspace{}
2901 \end_inset
2902
2903 (with extra font sizes)
2904 \family default
2905
2906 \family sans
2907 letter
2908 \begin_inset space \thinspace{}
2909 \end_inset
2910
2911 (with extra font sizes)
2912 \family default
2913  and 
2914 \family sans
2915 report
2916 \begin_inset space \thinspace{}
2917 \end_inset
2918
2919 (with extra font sizes)
2920 \family default
2921  which use the 
2922 \family typewriter
2923 article.cls
2924 \family default
2925
2926 \family typewriter
2927 book.cls
2928 \family default
2929
2930 \family typewriter
2931 letter.cls
2932 \family default
2933  and 
2934 \family typewriter
2935 report.cls
2936 \family default
2937  document classes respectively but offer the additional 
2938 \family sans
2939 \bar under
2940 B
2941 \bar default
2942 ase
2943 \begin_inset space ~
2944 \end_inset
2945
2946 Size
2947 \family default
2948  options 8, 9, 14, 17 and 20 in the 
2949 \family sans
2950 \bar under
2951 D
2952 \bar default
2953 ocument\SpecialChar menuseparator
2954
2955 \bar under
2956 S
2957 \bar default
2958 ettings\SpecialChar menuseparator
2959 Fonts
2960 \family default
2961  dialog.
2962 \end_layout
2963
2964 \begin_layout Subsection
2965
2966 \change_inserted 564990737 1671383236
2967
2968 \lang american
2969 Hebrew
2970 \end_layout
2971
2972 \begin_layout Standard
2973
2974 \change_inserted 564990737 1671383236
2975
2976 \lang american
2977 The document classes 
2978 \family sans
2979 article
2980 \begin_inset space \thinspace{}
2981 \end_inset
2982
2983 (Hebrew)
2984 \family default
2985  and 
2986 \family sans
2987 letter
2988 \begin_inset space \thinspace{}
2989 \end_inset
2990
2991 (Hebrew)
2992 \family default
2993  use the 
2994 \family typewriter
2995 article.cl
2996 \family sans
2997 s
2998 \family default
2999  and 
3000 \family typewriter
3001 letter.cls
3002 \family default
3003  document classes to facilitate the use of Hebrew in \SpecialChar LyX
3004 .
3005 \end_layout
3006
3007 \begin_layout Subsection
3008
3009 \change_inserted 564990737 1671383236
3010
3011 \lang american
3012 \begin_inset CommandInset label
3013 LatexCommand label
3014 name "subsec:Japanese"
3015
3016 \end_inset
3017
3018 Japanese
3019 \end_layout
3020
3021 \begin_layout Standard
3022
3023 \change_inserted 564990737 1671383236
3024
3025 \lang american
3026 The document classes 
3027 \family sans
3028 article
3029 \begin_inset space \thinspace{}
3030 \end_inset
3031
3032 (Japanese JS Class)
3033 \family default
3034 ,
3035 \family sans
3036  article
3037 \begin_inset space \thinspace{}
3038 \end_inset
3039
3040 (Japanese Standard Class Vertical Writing)
3041 \family default
3042
3043 \family sans
3044 article
3045 \begin_inset space \thinspace{}
3046 \end_inset
3047
3048 (Japanese Standard Class)
3049 \family default
3050
3051 \family sans
3052 book
3053 \begin_inset space \thinspace{}
3054 \end_inset
3055
3056 (Japanese JS Class)
3057 \family default
3058 ,
3059 \family sans
3060  book
3061 \begin_inset space \thinspace{}
3062 \end_inset
3063
3064 (Japanese Standard Class Vertical Writing)
3065 \family default
3066
3067 \family sans
3068 book
3069 \begin_inset space \thinspace{}
3070 \end_inset
3071
3072 (Japanese Standard Class)
3073 \family default
3074
3075 \family sans
3076 report
3077 \begin_inset space \thinspace{}
3078 \end_inset
3079
3080 (Japanese Vertical Writing)
3081 \family default
3082  and 
3083 \family sans
3084 report
3085 \begin_inset space \thinspace{}
3086 \end_inset
3087
3088 (Japanese Standard Class)
3089 \family default
3090  provide document classes for the Japanese language.
3091 \end_layout
3092
3093 \begin_layout Subsection
3094 Koma-Script
3095 \end_layout
3096
3097 \begin_layout Standard
3098 by 
3099 \noun on
3100 Bernd Rellermeyer
3101 \end_layout
3102
3103 \begin_layout Subsubsection
3104 Overview
3105 \end_layout
3106
3107 \begin_layout Standard
3108 The \SpecialChar LyX
3109  document classes 
3110 \emph on
3111 article (koma-script)
3112 \emph default
3113
3114 \emph on
3115 report (koma-script)
3116 \emph default
3117
3118 \emph on
3119 book
3120 \emph default
3121  
3122 \emph on
3123 (koma-script)
3124 \emph default
3125 , and 
3126 \emph on
3127 letter
3128 \emph default
3129  
3130 \emph on
3131 (koma-script)
3132 \emph default
3133  correspond to the \SpecialChar LaTeX
3134  document classes 
3135 \family typewriter
3136 scrartcl.cls
3137 \family default
3138
3139 \family typewriter
3140 scrreprt.cls
3141 \family default
3142
3143 \family typewriter
3144 scrbook.cls
3145 \family default
3146 , and 
3147 \family typewriter
3148 scrlettr.cls
3149 \family default
3150 , resp.
3151 \begin_inset space ~
3152 \end_inset
3153
3154 of the Koma-Script family.
3155  They are replacements for the standard document classes 
3156 \family typewriter
3157 article.cls
3158 \family default
3159
3160 \family typewriter
3161 report.cls
3162 \family default
3163
3164 \family typewriter
3165 book.cls
3166 \family default
3167  and 
3168 \family typewriter
3169 letter.cls
3170 \family default
3171 , resp., and fit better to European typography conventions in a number of
3172  points.
3173 \end_layout
3174
3175 \begin_layout Itemize
3176 Standard character size is 11pt in 
3177 \emph on
3178 article (koma-script)
3179 \emph default
3180
3181 \emph on
3182 report (koma-script)
3183 \emph default
3184 , and 
3185 \emph on
3186 book (koma-script)
3187 \emph default
3188 , and 12pt in 
3189 \emph on
3190 letter (koma-script)
3191 \emph default
3192 .
3193 \end_layout
3194
3195 \begin_layout Itemize
3196 Headings, labels of the description environment, and a number of elements
3197  of the 
3198 \emph on
3199 letter (koma-script)
3200 \emph default
3201  document class are set in a bold sans serif font.
3202 \begin_inset Foot
3203 status collapsed
3204
3205 \begin_layout Plain Layout
3206 There is a big difference between the bold sans serif old cm fonts and new
3207  ec fonts, especially in the appearance of headings.
3208  In comparison, the ec bold sans serif fonts look a bit thin.
3209  Here the \SpecialChar LaTeX
3210  package 
3211 \family typewriter
3212 cmsd.sty by
3213 \family default
3214  
3215 \shape smallcaps
3216 Walter Schmidt
3217 \shape default
3218  helps to produce the 
3219 \begin_inset Quotes eld
3220 \end_inset
3221
3222 usual
3223 \begin_inset Quotes erd
3224 \end_inset
3225
3226  appearance when using the ec fonts.
3227 \end_layout
3228
3229 \end_inset
3230
3231  The numbering of chapter headings is made in the same way as the numbering
3232  of section headings, that is without the extra line 
3233 \begin_inset Quotes eld
3234 \end_inset
3235
3236 Chapter\SpecialChar ldots
3237
3238 \begin_inset Quotes erd
3239 \end_inset
3240
3241 .
3242  In addition, the appearance of the headings can be modified by using a
3243  number of options (in \SpecialChar LyX
3244  to be entered in the field 
3245 \family sans
3246 Extra
3247 \begin_inset space ~
3248 \end_inset
3249
3250 Options
3251 \family default
3252  of the dialog 
3253 \family sans
3254 Layout\SpecialChar menuseparator
3255 Document
3256 \family default
3257 ).
3258  
3259 \end_layout
3260
3261 \begin_layout Itemize
3262 The main means in the Koma-Script document classes to design the type area
3263  are the options 
3264 \family sans
3265 BCOR
3266 \family default
3267  and 
3268 \family sans
3269 DIV
3270 \family default
3271  (in \SpecialChar LyX
3272  to be entered in the extra class options field in the dialog 
3273 \family sans
3274 Document\SpecialChar menuseparator
3275 Settings
3276 \family default
3277 ).
3278  They make a clearer modification of page margins possible as do the options
3279  of the dialog 
3280 \family sans
3281 Document\SpecialChar menuseparator
3282 Settings
3283 \family default
3284 .
3285  
3286 \end_layout
3287
3288 \begin_layout Itemize
3289 The \SpecialChar LaTeX
3290  document classes of the Koma-Script family define a number of additional
3291  commands.
3292  Those part of it which makes sense in \SpecialChar LyX
3293  is implemented in corresponding
3294  paragraph types.
3295 \end_layout
3296
3297 \begin_layout Standard
3298 Detailed descriptions of the \SpecialChar LaTeX
3299  document classes of the Koma-Script family
3300  can be found in the Koma-Script documentation 
3301 \emph on
3302 scrguide
3303 \emph default
3304  (German) and 
3305 \emph on
3306 scrguien
3307 \emph default
3308  (English).
3309 \end_layout
3310
3311 \begin_layout Subsubsection
3312 article (koma-script), report (koma-script), and book (koma-script)
3313 \end_layout
3314
3315 \begin_layout Standard
3316 The document classes 
3317 \emph on
3318 article (koma-script)
3319 \emph default
3320
3321 \emph on
3322 report (koma-script)
3323 \emph default
3324 , and 
3325 \emph on
3326 book
3327 \emph default
3328  
3329 \emph on
3330 (koma-script)
3331 \emph default
3332  are implemented in the layout files 
3333 \family typewriter
3334 scrartcl.layout
3335 \family default
3336
3337 \family typewriter
3338 scrreprt.layout
3339 \family default
3340 , and 
3341 \family typewriter
3342 scrbook.layout
3343 \family default
3344 , resp.
3345  They contain all the paragraph types of the corresponding standard document
3346  classes 
3347 \emph on
3348 article
3349 \emph default
3350
3351 \emph on
3352 report
3353 \emph default
3354 , and 
3355 \emph on
3356 book
3357 \emph default
3358 , resp., partly modified, with the exception of the \SpecialChar LyX
3359  specific 
3360 \family sans
3361 List
3362 \family default
3363 -type, which is replaced by the new 
3364 \family sans
3365 Labeling
3366 \family default
3367 -type having the same functionality.
3368  Beside the 
3369 \family sans
3370 Labeling
3371 \family default
3372 -Type there is a number of new paragraph types added.
3373  They are 
3374 \emph on
3375 not
3376 \emph default
3377  part of 
3378 \emph on
3379 letter (koma-script)
3380 \emph default
3381 .
3382 \end_layout
3383
3384 \begin_layout Itemize
3385
3386 \family sans
3387 Addpart, Addchap
3388 \family default
3389
3390 \family sans
3391 Addsec
3392 \family default
3393 : are equivalents to 
3394 \family sans
3395 Part*, Chapter*
3396 \family default
3397  and 
3398 \family sans
3399 Section*
3400 \family default
3401 , resp., additionally inserting an entry in the table of contents.
3402  
3403 \family sans
3404 Addpart
3405 \family default
3406  and 
3407 \family sans
3408 Addchap
3409 \family default
3410  are not contained in 
3411 \emph on
3412 article (koma-script)
3413 \emph default
3414 .
3415 \end_layout
3416
3417 \begin_layout Itemize
3418
3419 \family sans
3420 Addchap*
3421 \family default
3422
3423 \family sans
3424 Addsec*
3425 \family default
3426 : behave exactly as 
3427 \family sans
3428 Addchap
3429 \family default
3430  and 
3431 \family sans
3432 Addsec
3433 \family default
3434 , resp., additionally clearing running heads.
3435  
3436 \family sans
3437 Addchap*
3438 \family default
3439  is not contained in 
3440 \emph on
3441 article (koma-script)
3442 \emph default
3443 .
3444 \begin_inset Foot
3445 status collapsed
3446
3447 \begin_layout Plain Layout
3448 There is also an 
3449 \family typewriter
3450
3451 \backslash
3452 addpart*
3453 \family default
3454  command in 
3455 \emph on
3456 book (koma-script)
3457 \emph default
3458  and in 
3459 \emph on
3460 report (koma-script)
3461 \emph default
3462 , but since this is identical to 
3463 \family sans
3464 Part*
3465 \family default
3466 , is has not been implemented in \SpecialChar LyX
3467 .
3468 \end_layout
3469
3470 \end_inset
3471
3472
3473 \end_layout
3474
3475 \begin_layout Itemize
3476
3477 \family sans
3478 Minisec
3479 \family default
3480 : generates a heading directly above the following paragraph in the standard
3481  character size without affecting the structure of the document.
3482 \end_layout
3483
3484 \begin_layout Itemize
3485
3486 \family sans
3487 Captionabove
3488 \family default
3489  and 
3490 \family sans
3491 Captionbelow
3492 \family default
3493  are special captions which respect the different space settings needed
3494  for captions placed above or below an element (if you follow strict typographic
3495  rules, you might want to place table captions always above the table).
3496  You can also use the class option 
3497 \family typewriter
3498 tablecaptionsabove
3499 \family default
3500 , which will switch 
3501 \family sans
3502 caption
3503 \family default
3504  to 
3505 \family sans
3506 captionabove
3507 \family default
3508  for tables and 
3509 \family sans
3510 captionbelow
3511 \family default
3512  for figures.
3513  You need at least Koma-Script version 2.8q to use this.
3514 \end_layout
3515
3516 \begin_layout Itemize
3517
3518 \family sans
3519 Dictum
3520 \family default
3521 : can be used to set a bonmot, e.
3522 \begin_inset space \thinspace{}
3523 \end_inset
3524
3525 g.
3526 \begin_inset space \space{}
3527 \end_inset
3528
3529 at the beginning of a chapter.
3530  If you use the optional argument (
3531 \family sans
3532 Insert\SpecialChar menuseparator
3533 Dictum
3534 \begin_inset space ~
3535 \end_inset
3536
3537 Author
3538 \family default
3539 ), you can insert the dictum's author there.
3540  Dictum and author are separated by a line.
3541  You need at least Koma-Script version 2.8q to use this.
3542  
3543 \family sans
3544 Dictum
3545 \family default
3546  is not contained in 
3547 \emph on
3548 article (koma-script)
3549 \emph default
3550 .
3551 \end_layout
3552
3553 \begin_layout Standard
3554 The following types, together with the standard types 
3555 \family sans
3556 Title
3557 \family default
3558
3559 \family sans
3560 Author
3561 \family default
3562 , and 
3563 \family sans
3564 Date
3565 \family default
3566 , form the title area of the document.
3567  They must be entered ahead of the first 
3568 \begin_inset Quotes eld
3569 \end_inset
3570
3571 ordinary
3572 \begin_inset Quotes erd
3573 \end_inset
3574
3575  paragraph.
3576 \begin_inset Foot
3577 status collapsed
3578
3579 \begin_layout Plain Layout
3580 The corresponding \SpecialChar LaTeX
3581  commands must appear before the 
3582 \family typewriter
3583
3584 \backslash
3585 maketitle
3586 \family default
3587  command.
3588 \end_layout
3589
3590 \end_inset
3591
3592  When such a type is used more than once, the latter usage overwrites the
3593  former one, that means, for every type only the latest usage is valid.
3594  The order of the different types however has, like 
3595 \family sans
3596 Title
3597 \family default
3598
3599 \family sans
3600 Author
3601 \family default
3602 , and 
3603 \family sans
3604 Date
3605 \family default
3606 , no effect on the appearance of the produced document.
3607 \end_layout
3608
3609 \begin_layout Itemize
3610
3611 \family sans
3612 Subject
3613 \family default
3614 : produces a centered paragraph above the ordinary title (
3615 \family sans
3616 Title
3617 \family default
3618
3619 \family sans
3620 Author
3621 \family default
3622
3623 \family sans
3624 Date
3625 \family default
3626 ) for the subject of the document.
3627 \end_layout
3628
3629 \begin_layout Itemize
3630
3631 \family sans
3632 Publishers
3633 \family default
3634 : produces a centered paragraph below the ordinary title (
3635 \family sans
3636 Title
3637 \family default
3638
3639 \family sans
3640 Author
3641 \family default
3642
3643 \family sans
3644 Date
3645 \family default
3646 ) for the publishers' name.
3647 \end_layout
3648
3649 \begin_layout Itemize
3650
3651 \family sans
3652 Dedication
3653 \family default
3654 : in 
3655 \emph on
3656 report (koma-script)
3657 \emph default
3658  and 
3659 \emph on
3660 book (koma-script)
3661 \emph default
3662  produces a centered paragraph on its own page behind the title page, or
3663  in 
3664 \emph on
3665 article (koma-script)
3666 \emph default
3667  produces a centered paragraph below the ordinary title (
3668 \family sans
3669 Title
3670 \family default
3671
3672 \family sans
3673 Author
3674 \family default
3675
3676 \family sans
3677 Date
3678 \family default
3679
3680 \family sans
3681 Publishers
3682 \family default
3683 ) for a dedication.
3684 \end_layout
3685
3686 \begin_layout Itemize
3687
3688 \family sans
3689 Titlehead
3690 \family default
3691 : produces a left aligned paragraph above the ordinary title (
3692 \family sans
3693 Title
3694 \family default
3695
3696 \family sans
3697 Author
3698 \family default
3699
3700 \family sans
3701 Date
3702 \family default
3703
3704 \family sans
3705 Subject
3706 \family default
3707 ) for a document`s head.
3708 \end_layout
3709
3710 \begin_layout Itemize
3711
3712 \family sans
3713 Uppertitleback
3714 \family default
3715 : produces in a double-sided print in 
3716 \emph on
3717 report (koma-script)
3718 \emph default
3719  and 
3720 \emph on
3721 book (koma-script)
3722 \emph default
3723  a left-aligned paragraph at the top of the title page`s back or has no
3724  effect in a single-sided print or in 
3725 \emph on
3726 article (koma-script)
3727 \emph default
3728 .
3729 \end_layout
3730
3731 \begin_layout Itemize
3732
3733 \family sans
3734 Lowertitleback
3735 \family default
3736 : produces in a double-sided print in 
3737 \emph on
3738 report (koma-script)
3739 \emph default
3740  and 
3741 \emph on
3742 book (koma-script)
3743 \emph default
3744  a left-aligned paragraph at the bottom of the title page`s back or has
3745  no effect in a single-sided print or in 
3746 \emph on
3747 article (koma-script)
3748 \emph default
3749 .
3750 \end_layout
3751
3752 \begin_layout Itemize
3753
3754 \family sans
3755 Extratitle
3756 \family default
3757 : produces a special 
3758 \begin_inset Quotes eld
3759 \end_inset
3760
3761 dirty
3762 \begin_inset Quotes erd
3763 \end_inset
3764
3765  page ahead of the actual document containing a paragraph without special
3766  formatting.
3767 \end_layout
3768
3769 \begin_layout Standard
3770 The layout files for the document classes 
3771 \emph on
3772 article (koma-script)
3773 \emph default
3774
3775 \emph on
3776 report (koma-script)
3777 \emph default
3778 , and 
3779 \emph on
3780 book (koma-script)
3781 \emph default
3782  do include the file 
3783 \family typewriter
3784 scrmacros.inc
3785 \family default
3786 .
3787  This is thought of as a place to define your own types.
3788  Copy scrmacros
3789 \family typewriter
3790 .inc
3791 \family default
3792  in your personal layout directory and edit the file!
3793 \end_layout
3794
3795 \begin_layout Subsubsection
3796 letter (koma-script)
3797 \end_layout
3798
3799 \begin_layout Description
3800 Note: This section discusses the obsolete 
3801 \family sans
3802 KOMA-Script-Letter (v.
3803 \begin_inset space ~
3804 \end_inset
3805
3806 1)
3807 \family default
3808 , which is not even included anymore in recent KOMA releases.
3809  Please refer to the next section for the current KOMA-Script-Letter class
3810  (v.
3811 \begin_inset space ~
3812 \end_inset
3813
3814 2)!
3815 \end_layout
3816
3817 \begin_layout Standard
3818 \noindent
3819 The document class 
3820 \emph on
3821 letter (koma-script)
3822 \emph default
3823  is implemented in the layout file 
3824 \family typewriter
3825 scrlettr.layout
3826 \family default
3827 .
3828  It contains all the paragraph types of the corresponding standard document
3829  class 
3830 \emph on
3831 letter
3832 \emph default
3833 , partly modified, with the exception of the \SpecialChar LyX
3834  specific types 
3835 \family sans
3836 \SpecialChar LyX
3837 -Code
3838 \family default
3839  and 
3840 \family sans
3841 Comment
3842 \family default
3843  and the 
3844 \family sans
3845 List
3846 \family default
3847  type, which is replaced by the new 
3848 \family sans
3849 Labeling
3850 \family default
3851  type.
3852  In addition, it contains, in contrast to the standard document class, the
3853  standard types 
3854 \family sans
3855 \SpecialChar LaTeX
3856
3857 \family default
3858
3859 \family sans
3860 Quotation
3861 \family default
3862
3863 \family sans
3864 Quote
3865 \family default
3866 , and 
3867 \family sans
3868 Verse
3869 \family default
3870 .
3871  Furthermore, there are a number of new letter specific types.
3872 \end_layout
3873
3874 \begin_layout Standard
3875 The appearance of the letter produced by this document class can be controlled
3876  by a number of \SpecialChar LaTeX
3877  commands, which you can put in the \SpecialChar LaTeX
3878  preamble.
3879 \begin_inset Foot
3880 status collapsed
3881
3882 \begin_layout Plain Layout
3883 For example, the standard appearance of the letter`s heading, consisting
3884  of name and address, is quite self-willed.
3885  An 
3886 \begin_inset Quotes eld
3887 \end_inset
3888
3889 ordinary
3890 \begin_inset Quotes erd
3891 \end_inset
3892
3893  heading is produced by the following \SpecialChar LaTeX
3894  commands in the preamble:
3895 \end_layout
3896
3897 \begin_layout LyX-Code
3898
3899 \backslash
3900 firsthead{
3901 \backslash
3902 parbox[b]{
3903 \backslash
3904 textwidth}
3905 \end_layout
3906
3907 \begin_layout LyX-Code
3908   {
3909 \backslash
3910 ignorespaces 
3911 \backslash
3912 fromname
3913 \backslash
3914
3915 \backslash
3916  
3917 \backslash
3918 ignorespaces 
3919 \backslash
3920 fromaddress}} 
3921 \end_layout
3922
3923 \begin_layout LyX-Code
3924
3925 \backslash
3926 nexthead{
3927 \backslash
3928 parbox[b]{
3929 \backslash
3930 textwidth}
3931 \end_layout
3932
3933 \begin_layout LyX-Code
3934   {
3935 \backslash
3936 ignorespaces 
3937 \backslash
3938 fromname 
3939 \backslash
3940 hfill 
3941 \backslash
3942 ignorespaces 
3943 \backslash
3944 pagename
3945 \backslash
3946  
3947 \backslash
3948 thepage}}
3949 \end_layout
3950
3951 \end_inset
3952
3953  A detailed German description of such \SpecialChar LaTeX
3954  commands can be found in the Koma-Script
3955  documentation 
3956 \emph on
3957 scrguide
3958 \emph default
3959 .
3960  With it, the letter's author can produce his personal letter layout.
3961 \end_layout
3962
3963 \begin_layout Standard
3964 The types 
3965 \family sans
3966 Letter
3967 \family default
3968  and 
3969 \family sans
3970 Opening
3971 \family default
3972  define the beginning of the letter and must be used in every letter.
3973  To emphasize them in the \SpecialChar LyX
3974  document class, they are marked with the letter
3975  
3976 \shape italic
3977 L
3978 \shape default
3979  or 
3980 \shape italic
3981 O
3982 \shape default
3983 , resp.
3984 \begin_inset space ~
3985 \end_inset
3986
3987 in the left margin.
3988  It is possible to write any number of letters in one file.
3989  An 
3990 \family sans
3991 Opening
3992 \family default
3993  type produces a new letter using the same addressee and a 
3994 \family sans
3995 Letter
3996 \family default
3997  type produces a new addressee.
3998  The types 
3999 \family sans
4000 Closing
4001 \family default
4002
4003 \family sans
4004 PS
4005 \family default
4006
4007 \family sans
4008 CC
4009 \family default
4010 , and 
4011 \family sans
4012 Encl
4013 \family default
4014  are ordinary paragraph types and can also be used several times in one
4015  and the same letter.
4016 \end_layout
4017
4018 \begin_layout Itemize
4019
4020 \family sans
4021 Letter
4022 \family default
4023 : produces a paragraph for the addressee and implicitly defines the beginning
4024  of the letter.
4025 \end_layout
4026
4027 \begin_layout Itemize
4028
4029 \family sans
4030 Opening
4031 \family default
4032 : produces a paragraph for the form of address and implicitly produces a
4033  new letter.
4034 \end_layout
4035
4036 \begin_layout Itemize
4037
4038 \family sans
4039 Closing
4040 \family default
4041 : produces a paragraph for a close.
4042 \end_layout
4043
4044 \begin_layout Itemize
4045
4046 \family sans
4047 PS
4048 \family default
4049 : produces a paragraph for a postscript.
4050 \end_layout
4051
4052 \begin_layout Itemize
4053
4054 \family sans
4055 CC
4056 \family default
4057 : produces a paragraph for a distribution list.
4058 \end_layout
4059
4060 \begin_layout Itemize
4061
4062 \family sans
4063 Encl
4064 \family default
4065 : produces a paragraph for enclosures.
4066 \end_layout
4067
4068 \begin_layout Standard
4069 The types 
4070 \family sans
4071 Name
4072 \family default
4073
4074 \family sans
4075 Signature
4076 \family default
4077
4078 \family sans
4079 Address
4080 \family default
4081
4082 \family sans
4083 Telephone
4084 \family default
4085
4086 \family sans
4087 Place
4088 \family default
4089
4090 \family sans
4091 Backaddress
4092 \family default
4093
4094 \family sans
4095 Specialmail
4096 \family default
4097
4098 \family sans
4099 Location
4100 \family default
4101
4102 \family sans
4103 Title
4104 \family default
4105 , and 
4106 \family sans
4107 Subject
4108 \family default
4109  are input types provided with a label to enter information, which will
4110  be processed by the document class.
4111 \begin_inset Foot
4112 status collapsed
4113
4114 \begin_layout Plain Layout
4115 It could be seen as a matter of inconsequence, that the types 
4116 \family sans
4117 Letter
4118 \family default
4119  and 
4120 \family sans
4121 Opening
4122 \family default
4123  described above are not such input types as well.
4124  Because of the special meaning of those types, however, I have implemented
4125  them as ordinary paragraph types with a one letter mark in the left margin.
4126  Moreover, it would affect my feeling of symmetry, if the 
4127 \family sans
4128 Opening
4129 \family default
4130  type and the 
4131 \family sans
4132 Closing
4133 \family default
4134  type had such a serious different appearance.
4135 \end_layout
4136
4137 \end_inset
4138
4139  The types must be used ahead of the corresponding 
4140 \family sans
4141 Opening
4142 \family default
4143  type.
4144 \end_layout
4145
4146 \begin_layout Standard
4147 An implementation of these types in a WYSIWYG fashion does not seem to make
4148  sense, because the real appearance of the produced letter does not only
4149  depend on the usage of the particular type, but also on other factors.
4150  For example, a signature entered in the 
4151 \family sans
4152 Signature
4153 \family default
4154  type will in the standard behavior appear in the produced letter only,
4155  when in the same letter also a 
4156 \family sans
4157 Closing
4158 \family default
4159  type is used.
4160  The entered value of the 
4161 \family sans
4162 Telephone
4163 \family default
4164  type will in the standard behavior not appear in the produced letter at
4165  all.
4166  The possibility to design the letter`s heading freely is already indicated
4167  in a footnote above.
4168 \end_layout
4169
4170 \begin_layout Standard
4171 The input types can also be used as empty paragraphs.
4172  This makes sense e.
4173 \begin_inset space \thinspace{}
4174 \end_inset
4175
4176 g.
4177 \begin_inset space \space{}
4178 \end_inset
4179
4180 for the 
4181 \family sans
4182 Signature
4183 \family default
4184  type.
4185  If the 
4186 \family sans
4187 Signature
4188 \family default
4189  type is not used at all, in the standard behavior the value of the 
4190 \family sans
4191 Name
4192 \family default
4193  type is used as signature, whereas if an empty 
4194 \family sans
4195 Signature
4196 \family default
4197  type is used, no signature value is defined.
4198 \end_layout
4199
4200 \begin_layout Standard
4201 By using the input types it is possible to write a letter template, containing
4202  filled input types with your personal dates (name, address, etc.) and empty
4203  input types for other dates you want to enter.
4204 \end_layout
4205
4206 \begin_layout Itemize
4207
4208 \family sans
4209 Name
4210 \family default
4211 : sender's name, in the standard behavior appears as a centered paragraph
4212  in small caps in the letter`s heading.
4213 \end_layout
4214
4215 \begin_layout Itemize
4216
4217 \family sans
4218 Signature
4219 \family default
4220 : sender's signature, in the standard behavior appears below the 
4221 \family sans
4222 Closing
4223 \family default
4224  type.
4225  If no 
4226 \family sans
4227 Signature
4228 \family default
4229  type is used, the value of the 
4230 \family sans
4231 Name
4232 \family default
4233  type appears instead.
4234 \end_layout
4235
4236 \begin_layout Itemize
4237
4238 \family sans
4239 Address
4240 \family default
4241 : sender's address, in the standard behavior appears in a centered paragraph
4242  in the letter`s heading below the sender's name.
4243 \end_layout
4244
4245 \begin_layout Itemize
4246
4247 \family sans
4248 Telephone
4249 \family default
4250 : sender's telephone number, in the standard behavior only sets the \SpecialChar LaTeX
4251  variable
4252  
4253 \family typewriter
4254
4255 \backslash
4256 telephonenum
4257 \family default
4258 .
4259 \end_layout
4260
4261 \begin_layout Itemize
4262
4263 \family sans
4264 Place
4265 \family default
4266 : place of the letter`s making.
4267 \end_layout
4268
4269 \begin_layout Itemize
4270
4271 \family sans
4272 Date
4273 \family default
4274 : date of the letter`s making.
4275  
4276 \family sans
4277 Place
4278 \family default
4279  and 
4280 \family sans
4281 Date
4282 \family default
4283 , in the standard behavior, produce the place and the date in a right-aligned
4284  line below the addressee's field.
4285  If an empty 
4286 \family sans
4287 Date
4288 \family default
4289  type is used, neither place nor date appear, independent of the value of
4290  the 
4291 \family sans
4292 Place
4293 \family default
4294  type.
4295  If no 
4296 \family sans
4297 Date
4298 \family default
4299  type is used, the date of the letter `s production is used.
4300 \end_layout
4301
4302 \begin_layout Itemize
4303
4304 \family sans
4305 Backaddress
4306 \family default
4307 : sender`s back address, in the standard behavior appears above the addressee's
4308  field in a small sans serif font.
4309 \end_layout
4310
4311 \begin_layout Itemize
4312
4313 \family sans
4314 Specialmail
4315 \family default
4316 : special mail information, in the standard behavior appears underlined
4317  above the addressee's field below the back address.
4318 \end_layout
4319
4320 \begin_layout Itemize
4321
4322 \family sans
4323 Location
4324 \family default
4325 : additional information, in the standard behavior appears on right side
4326  below the addressee`s field.
4327 \end_layout
4328
4329 \begin_layout Itemize
4330
4331 \family sans
4332 Title
4333 \family default
4334 : the letter's title, in the standard behavior appears in a big, bold, sans
4335  serif font above the subject.
4336 \end_layout
4337
4338 \begin_layout Itemize
4339
4340 \family sans
4341 Subject
4342 \family default
4343 : the letter's subject, in the standard behavior appears in a bold font
4344  above the 
4345 \family sans
4346 Opening
4347 \family default
4348  paragraph.
4349 \end_layout
4350
4351 \begin_layout Standard
4352 The types 
4353 \family sans
4354 Yourref
4355 \family default
4356
4357 \family sans
4358 Yourmail
4359 \family default
4360
4361 \family sans
4362 Myref
4363 \family default
4364
4365 \family sans
4366 Customer
4367 \family default
4368 , and 
4369 \family sans
4370 Invoice
4371 \family default
4372  produce a business letter like line above the 
4373 \family sans
4374 Title
4375 \family default
4376  line containing the fields 
4377 \begin_inset Quotes eld
4378 \end_inset
4379
4380 Your ref.
4381 \begin_inset Quotes erd
4382 \end_inset
4383
4384
4385 \begin_inset Quotes eld
4386 \end_inset
4387
4388 Your letter of
4389 \begin_inset Quotes erd
4390 \end_inset
4391
4392
4393 \begin_inset Quotes eld
4394 \end_inset
4395
4396 Our ref.
4397 \begin_inset Quotes erd
4398 \end_inset
4399
4400
4401 \begin_inset Quotes eld
4402 \end_inset
4403
4404 Customer no.
4405 \begin_inset Quotes erd
4406 \end_inset
4407
4408
4409 \begin_inset Quotes eld
4410 \end_inset
4411
4412 Invoice no.
4413 \begin_inset Quotes erd
4414 \end_inset
4415
4416 , and 
4417 \begin_inset Quotes eld
4418 \end_inset
4419
4420 Date
4421 \begin_inset Quotes erd
4422 \end_inset
4423
4424 .
4425  For the date field, the value of the 
4426 \family sans
4427 Date
4428 \family default
4429  type is used.
4430  If one of these 
4431 \begin_inset Quotes eld
4432 \end_inset
4433
4434 business letter types
4435 \begin_inset Quotes erd
4436 \end_inset
4437
4438  is used, the value of the 
4439 \family sans
4440 Place
4441 \family default
4442  type however does not appear, but only the \SpecialChar LaTeX
4443  variable 
4444 \family typewriter
4445
4446 \backslash
4447 fromplace
4448 \family default
4449  is set.
4450  The ordinary output of place and date in a right-aligned line below the
4451  addressee`s field is suppressed.
4452  The types are implemented as input types provided with a label and must
4453  be used ahead of the corresponding 
4454 \family sans
4455 Opening
4456 \family default
4457  type.
4458 \end_layout
4459
4460 \begin_layout Itemize
4461
4462 \family sans
4463 Yourref
4464 \family default
4465 : Your ref.
4466 \end_layout
4467
4468 \begin_layout Itemize
4469
4470 \family sans
4471 Yourmail
4472 \family default
4473 : Your letter of.
4474 \end_layout
4475
4476 \begin_layout Itemize
4477
4478 \family sans
4479 Myref
4480 \family default
4481 : Our ref.
4482 \end_layout
4483
4484 \begin_layout Itemize
4485
4486 \family sans
4487 Customer
4488 \family default
4489 : Customer no.
4490 \end_layout
4491
4492 \begin_layout Itemize
4493
4494 \family sans
4495 Invoice
4496 \family default
4497 : Invoice no.
4498 \end_layout
4499
4500 \begin_layout Subsubsection
4501 The new letter class: letter (koma-script v.2)
4502 \end_layout
4503
4504 \begin_layout Standard
4505 by 
4506 \noun on
4507 Jürgen Spitzmüller
4508 \end_layout
4509
4510 \begin_layout Standard
4511 \begin_inset VSpace medskip
4512 \end_inset
4513
4514
4515 \end_layout
4516
4517 \begin_layout Standard
4518 \noindent
4519 Koma-Script version 2.8 has introduced a new letter class 
4520 \family typewriter
4521 scrlttr2
4522 \family default
4523  which supersedes the now unsupported 
4524 \family typewriter
4525 scrlettr
4526 \family default
4527 .
4528  It has — on the \SpecialChar LaTeX
4529  side — a completely new interface and is not compatible
4530  with the old class.
4531  Therefore, \SpecialChar LyX
4532  supports both, though it is recommended you use the new class.
4533 \end_layout
4534
4535 \begin_layout Standard
4536 This class covers the same functionality as 
4537 \emph on
4538 letter (koma-script),
4539 \emph default
4540  and a few more.
4541  The basic items are 
4542 \family sans
4543 Address
4544 \family default
4545  (receiver's address, same as 
4546 \family sans
4547 Letter
4548 \family default
4549  in the old layout), 
4550 \family sans
4551 Opening
4552 \family default
4553 , and 
4554 \family sans
4555 Closing
4556 \family default
4557 .
4558  
4559 \family sans
4560 NextAddress
4561 \family default
4562  will start a new letter (i.
4563 \begin_inset space \thinspace{}
4564 \end_inset
4565
4566 e.
4567 \begin_inset space \space{}
4568 \end_inset
4569
4570 you can write several letters per document).
4571  New elements are sender's 
4572 \family sans
4573 E-Mail
4574 \family default
4575
4576 \family sans
4577 URL
4578 \family default
4579
4580 \family sans
4581 Fax
4582 \family default
4583
4584 \family sans
4585 Bank
4586 \family default
4587  and the possibility to use a 
4588 \family sans
4589 Logo
4590 \family default
4591  (via 
4592 \family sans
4593 Insert\SpecialChar menuseparator
4594 Graphics
4595 \family default
4596 ) in the header.
4597 \end_layout
4598
4599 \begin_layout Standard
4600 The biggest improvement is, though, that the letter's layout is configurable
4601  to meet almost any needs.
4602  This can be done via the preamble or with a special style file (Letter
4603  Class Option, extension 
4604 \family typewriter
4605 *.lco
4606 \family default
4607 ), that will be read in as a class option.
4608 \begin_inset Foot
4609 status collapsed
4610
4611 \begin_layout Plain Layout
4612 The KOMA package comes with some default 
4613 \family typewriter
4614 *.lco
4615 \family default
4616  files.
4617  There is, for instance, a 
4618 \family typewriter
4619 DIN.lco
4620 \family default
4621  file that follows german typesetting rules, or a 
4622 \family typewriter
4623 KOMAold.lco
4624 \family default
4625  that provides the default layout of the old 
4626 \family typewriter
4627 scrlettr
4628 \family default
4629  class.
4630  The latter can be loaded with the class option 
4631 \family typewriter
4632 KOMAold
4633 \family default
4634 , inserted via the 
4635 \family sans
4636 Layout\SpecialChar menuseparator
4637 Document\SpecialChar menuseparator
4638 Extra Options
4639 \family default
4640  field.
4641 \end_layout
4642
4643 \end_inset
4644
4645  Have a look at the
4646 \change_deleted 564990737 1671617922
4647  
4648 \emph on
4649 koma-letter2
4650 \change_unchanged
4651
4652 \emph default
4653  template 
4654 \change_deleted 564990737 1671617938
4655 that is included in \SpecialChar LyX
4656  for examples
4657 \change_inserted 564990737 1671617997
4658  in 
4659 \family sans
4660 \bar under
4661 \lang american
4662 F
4663 \bar default
4664 ile\SpecialChar menuseparator
4665 New
4666 \begin_inset space ~
4667 \end_inset
4668
4669 fro
4670 \bar under
4671 m
4672 \bar default
4673
4674 \begin_inset space ~
4675 \end_inset
4676
4677 Template\SpecialChar menuseparator
4678 Letters
4679 \lang english
4680 \SpecialChar menuseparator
4681 KOMA-Script Letter (V.2)
4682 \change_unchanged
4683
4684 \family default
4685 .
4686  A detailed description is to be found in the Koma-Script documentation
4687  (
4688 \emph on
4689 scrguide
4690 \emph default
4691 ).
4692 \end_layout
4693
4694 \begin_layout Subsubsection
4695 Problems
4696 \end_layout
4697
4698 \begin_layout Standard
4699 Visualizing the Koma-Script document classes in \SpecialChar LyX
4700 , the \SpecialChar LyX
4701  internals cause some
4702  problems.
4703 \end_layout
4704
4705 \begin_layout Itemize
4706 The chapter number of a 
4707 \family sans
4708 Chapter
4709 \family default
4710  type appears on a line of its own above the chapter heading instead of
4711  appearing in the same line ahead of it.
4712  The cause for that is the \SpecialChar LyX
4713  internal behavior for the labeltype 
4714 \family sans
4715 Counter_Chapter
4716 \family default
4717  in the layout file.
4718 \end_layout
4719
4720 \begin_layout Itemize
4721 The headings of the types 
4722 \family sans
4723 Addchap
4724 \family default
4725  and 
4726 \family sans
4727 Addsec
4728 \family default
4729  are only put in the 
4730 \begin_inset Quotes eld
4731 \end_inset
4732
4733 true
4734 \begin_inset Quotes erd
4735 \end_inset
4736
4737  \SpecialChar LaTeX
4738  table of contents, but not in the \SpecialChar LyX
4739  table of contents (
4740 \family sans
4741 Document\SpecialChar menuseparator
4742 Table
4743 \begin_inset space ~
4744 \end_inset
4745
4746 of
4747 \begin_inset space ~
4748 \end_inset
4749
4750 Contents
4751 \family default
4752 ).
4753 \end_layout
4754
4755 \begin_layout Itemize
4756 The paragraphs in a 
4757 \emph on
4758 letter
4759 \emph default
4760  document class appear in a skip separation mode, not indented.
4761  This is the standard behavior, no special \SpecialChar LaTeX
4762  commands are needed for that.
4763  But in the 
4764 \family sans
4765 Document\SpecialChar menuseparator
4766 Settings
4767 \family default
4768  dialog the corresponding radio button indicates 
4769 \family sans
4770 Indent
4771 \family default
4772 .
4773  A 
4774 \family sans
4775 Skip
4776 \family default
4777  value always has the effect that extra \SpecialChar LaTeX
4778  commands are inserted in the document
4779  to produce the gap, which is not what is wanted in this case.
4780 \end_layout
4781
4782 \begin_layout Subsection
4783
4784 \change_inserted 564990737 1670924924
4785 Polish M.
4786 \begin_inset space \thinspace{}
4787 \end_inset
4788
4789 W.
4790 \begin_inset space \space{}
4791 \end_inset
4792
4793 collection
4794 \change_deleted 564990737 1670924933
4795 Article (mwart), book (mwbk) and report (mwrep)
4796 \begin_inset Argument status
4797 status collapsed
4798
4799 \begin_layout Plain Layout
4800 The 
4801 \family typewriter
4802 mw
4803 \family default
4804  Classes
4805 \end_layout
4806
4807 \end_inset
4808
4809
4810 \change_unchanged
4811
4812 \end_layout
4813
4814 \begin_layout Standard
4815 by 
4816 \noun on
4817 Tomasz Luczak
4818 \end_layout
4819
4820 \begin_layout Standard
4821 The \SpecialChar LyX
4822  document classes 
4823 \emph on
4824 article (mwart)
4825 \emph default
4826
4827 \emph on
4828 report (mwrep)
4829 \emph default
4830  and 
4831 \emph on
4832 book
4833 \emph default
4834  
4835 \emph on
4836 (mwbk)
4837 \emph default
4838  correspond to the \SpecialChar LaTeX
4839  document classes 
4840 \family typewriter
4841 mwart.cls
4842 \family default
4843
4844 \family typewriter
4845 mwrep.cls
4846 \family default
4847  and 
4848 \family typewriter
4849 mwbk.cls
4850 \family default
4851 , resp.
4852  They are replacements for the standard document classes 
4853 \family typewriter
4854 article.cls
4855 \family default
4856
4857 \family typewriter
4858 report.cls
4859 \family default
4860  and 
4861 \family typewriter
4862 book.cls
4863 \family default
4864 , resp., and fit better to Polish typography conventions in a number of points.
4865  
4866 \end_layout
4867
4868 \begin_layout Standard
4869 Basic differences:
4870 \end_layout
4871
4872 \begin_layout Itemize
4873 Unnumbered titles (with star, e.
4874 \begin_inset space \thinspace{}
4875 \end_inset
4876
4877 g.
4878 \begin_inset space \space{}
4879 \end_inset
4880
4881
4882 \family sans
4883 Section*
4884 \family default
4885 ) are added into table of contents,
4886 \end_layout
4887
4888 \begin_layout Itemize
4889 Additional page styles:
4890 \end_layout
4891
4892 \begin_deeper
4893 \begin_layout Description
4894 uheadings header with separated lines,
4895 \end_layout
4896
4897 \begin_layout Description
4898 myheadings custom header, contents headers via commands: 
4899 \family typewriter
4900
4901 \backslash
4902 markright
4903 \family default
4904  and 
4905 \family typewriter
4906
4907 \backslash
4908 markboth
4909 \family default
4910 ,
4911 \end_layout
4912
4913 \begin_layout Description
4914 myuheadings custom header with separated lines,
4915 \end_layout
4916
4917 \begin_layout Description
4918 outer page number is placed on outer side of page
4919 \end_layout
4920
4921 \end_deeper
4922 \begin_layout Itemize
4923 Options 
4924 \end_layout
4925
4926 \begin_deeper
4927 \begin_layout Description
4928 rmheadings serif titles — default,
4929 \end_layout
4930
4931 \begin_layout Description
4932 sfheadings sansserif titles,
4933 \end_layout
4934
4935 \begin_layout Description
4936 authortitle on title page first placed is author next title — default,
4937 \end_layout
4938
4939 \begin_layout Description
4940 titleauthor on title page first placed is title next author,
4941 \end_layout
4942
4943 \begin_layout Description
4944 withmarginpar reserve place on page for margins.
4945 \end_layout
4946
4947 \end_deeper
4948 \begin_layout Section
4949
4950 \change_inserted 564990737 1670439534
4951 Articles
4952 \end_layout
4953
4954 \begin_layout Standard
4955
4956 \change_inserted 564990737 1670794710
4957 See also the document classes in the Collections (section
4958 \begin_inset space ~
4959 \end_inset
4960
4961
4962 \begin_inset CommandInset ref
4963 LatexCommand ref
4964 reference "sec:Collections"
4965
4966 \end_inset
4967
4968 ).
4969 \end_layout
4970
4971 \begin_layout Subsection
4972
4973 \change_inserted 564990737 1670794716
4974
4975 \lang american
4976 A&A Paper
4977 \end_layout
4978
4979 \begin_layout Standard
4980
4981 \change_inserted 564990737 1670794716
4982
4983 \lang american
4984 Original by 
4985 \noun on
4986 Peter Sütterlin
4987 \noun default
4988 ; updated by the \SpecialChar LyX
4989  Team
4990 \end_layout
4991
4992 \begin_layout Subsubsection
4993
4994 \change_inserted 564990737 1670794716
4995
4996 \lang american
4997 Introduction
4998 \end_layout
4999
5000 \begin_layout Standard
5001
5002 \change_inserted 564990737 1670794716
5003
5004 \lang american
5005 This section describes how \SpecialChar LyX
5006  can be used to write articles for submission
5007  to the scientific journal 
5008 \emph on
5009 Astronomy and Astrophysics
5010 \emph default
5011  (
5012 \begin_inset CommandInset href
5013 LatexCommand href
5014 name "aa-package"
5015 target "http://ftp.edpsciences.org/pub/aa/aa-package.zip"
5016 literal "false"
5017
5018 \end_inset
5019
5020 ) using Version 9.1 of the document class 
5021 \family typewriter
5022 aa.cls
5023 \family default
5024 ; information about it is available at 
5025 \begin_inset Flex URL
5026 status collapsed
5027
5028 \begin_layout Plain Layout
5029
5030 \change_inserted 564990737 1670794716
5031
5032 https://www.aanda.org/for-authors/latex-issues/texnical-background-information
5033 \change_unchanged
5034
5035 \end_layout
5036
5037 \end_inset
5038
5039 .
5040 \end_layout
5041
5042 \begin_layout Standard
5043
5044 \change_inserted 564990737 1670794716
5045
5046 \lang american
5047 A manual comes together with the package and should be consulted before
5048  installing this document class as described in the 
5049 \emph on
5050 Installing New Document Classe
5051 \emph default
5052 s section of the 
5053 \emph on
5054 Customization
5055 \emph default
5056  manual.
5057  
5058 \end_layout
5059
5060 \begin_layout Standard
5061
5062 \change_inserted 564990737 1670794716
5063
5064 \lang american
5065 \begin_inset Note Greyedout
5066 status open
5067
5068 \begin_layout Plain Layout
5069
5070 \change_inserted 564990737 1670794716
5071
5072 \lang american
5073 Please note that the publisher of the journal was changed from Springer
5074  to EDP Sciences starting January 1, 2001.
5075  That change also involved some slight changes to the style files, namely
5076  the removal of the thesaurus command.
5077  If you have an older version installed, please upgrade.
5078  For information about compatibility with the old (version 4) layout, please
5079  refer to the comments in 
5080 \family typewriter
5081 \SpecialChar LyX
5082 Dir/layouts/aapaper.layout
5083 \family default
5084 .
5085 \end_layout
5086
5087 \end_inset
5088
5089
5090 \end_layout
5091
5092 \begin_layout Subsubsection
5093
5094 \change_inserted 564990737 1670794716
5095
5096 \lang american
5097 Getting started
5098 \end_layout
5099
5100 \begin_layout Standard
5101
5102 \change_inserted 564990737 1671617129
5103
5104 \lang american
5105 It is recommended you start from the template in the menu 
5106 \family sans
5107 \bar under
5108 F
5109 \bar default
5110 ile\SpecialChar menuseparator
5111 New
5112 \begin_inset space ~
5113 \end_inset
5114
5115 fro
5116 \bar under
5117 m
5118 \bar default
5119
5120 \begin_inset space ~
5121 \end_inset
5122
5123 Template
5124 \lang english
5125 \SpecialChar menuseparator
5126 Articles\SpecialChar menuseparator
5127 Astronomy & Astrophysics
5128 \family default
5129 \lang american
5130 .
5131  If you are not using the template, note the following settings:
5132 \end_layout
5133
5134 \begin_layout Itemize
5135
5136 \change_inserted 564990737 1670794716
5137
5138 \lang american
5139 Select 
5140 \family sans
5141 article (A&A)
5142 \family default
5143  in the 
5144 \family sans
5145 \bar under
5146 D
5147 \bar default
5148 ocument\SpecialChar menuseparator
5149
5150 \bar under
5151 S
5152 \bar default
5153 ettings\SpecialChar menuseparator
5154 Document
5155 \begin_inset space ~
5156 \end_inset
5157
5158 Class
5159 \family default
5160  dialog (OK, that one was obvious).
5161 \end_layout
5162
5163 \begin_layout Itemize
5164
5165 \change_inserted 564990737 1670794716
5166
5167 \lang american
5168 Don't change the 
5169 \family sans
5170 Headings
5171 \begin_inset space ~
5172 \end_inset
5173
5174
5175 \bar under
5176 s
5177 \bar default
5178 tyle
5179 \family default
5180  in the 
5181 \family sans
5182 Page
5183 \begin_inset space ~
5184 \end_inset
5185
5186 Layout
5187 \family default
5188  dialog: leave it set to 
5189 \family sans
5190 Default
5191 \family default
5192 .
5193  The whole layout is done by the macros, you shouldn't change anything.
5194 \end_layout
5195
5196 \begin_layout Subsubsection
5197
5198 \change_inserted 564990737 1670794716
5199
5200 \lang american
5201 The header block
5202 \end_layout
5203
5204 \begin_layout Standard
5205
5206 \change_inserted 564990737 1670794716
5207
5208 \lang american
5209 First thing to enter is the header information.
5210  It consists of five entries, of which one is optional.
5211  They are
5212 \end_layout
5213
5214 \begin_layout Itemize
5215
5216 \change_inserted 564990737 1670794716
5217
5218 \family sans
5219 \lang american
5220 Title
5221 \family default
5222 : [required] 
5223 \end_layout
5224
5225 \begin_layout Itemize
5226
5227 \change_inserted 564990737 1670794716
5228
5229 \family sans
5230 \lang american
5231 Subtitle
5232 \family default
5233 : [optional] 
5234 \end_layout
5235
5236 \begin_layout Itemize
5237
5238 \change_inserted 564990737 1670794716
5239
5240 \family sans
5241 \lang american
5242 Author
5243 \family default
5244 : [required]
5245 \end_layout
5246
5247 \begin_layout Itemize
5248
5249 \change_inserted 564990737 1670794716
5250
5251 \family typewriter
5252 \lang american
5253 Institute
5254 \family default
5255 : [required]
5256 \end_layout
5257
5258 \begin_layout Itemize
5259
5260 \change_inserted 564990737 1670794716
5261
5262 \family sans
5263 \lang american
5264 Date
5265 \family default
5266 : [required].
5267  Suggested format is 
5268 \family typewriter
5269 Received: <date>; Accepted <date> 
5270 \end_layout
5271
5272 \begin_layout Standard
5273
5274 \change_inserted 564990737 1670794716
5275
5276 \lang american
5277 Although the order of the single header entries doesn't matter it is advised
5278  to keep the above sequence, just to get the best optics and meets the layout
5279  of the real document.
5280 \end_layout
5281
5282 \begin_layout Standard
5283
5284 \change_inserted 564990737 1670794716
5285
5286 \lang american
5287 If you want to place footnotes in the header block, e.
5288 \begin_inset space \thinspace{}
5289 \end_inset
5290
5291 g.
5292 \begin_inset space \space{}
5293 \end_inset
5294
5295 to state your present address, just use the standard footnote via the menu
5296  
5297 \family sans
5298 \bar under
5299 I
5300 \bar default
5301 nsert\SpecialChar menuseparator
5302
5303 \bar under
5304 F
5305 \bar default
5306 ootnote.
5307
5308 \family default
5309  \SpecialChar LyX
5310  will automagically use the term 
5311 \family typewriter
5312
5313 \backslash
5314 thanks{}
5315 \family default
5316  in that case.
5317 \end_layout
5318
5319 \begin_layout Standard
5320
5321 \change_inserted 564990737 1670794716
5322
5323 \lang american
5324 In addition to these topics, the macros use three additional \SpecialChar LaTeX
5325  commands that
5326  have no counterpart in \SpecialChar LyX
5327 :
5328 \end_layout
5329
5330 \begin_layout Itemize
5331
5332 \change_inserted 564990737 1670794716
5333
5334 \family typewriter
5335 \lang american
5336
5337 \backslash
5338 and
5339 \family default
5340  to separate different names for more than one author and institute, respectivel
5341 y.
5342 \end_layout
5343
5344 \begin_layout Itemize
5345
5346 \change_inserted 564990737 1670794716
5347
5348 \family typewriter
5349 \lang american
5350
5351 \backslash
5352 inst{<nr>}
5353 \family default
5354  to mark corresponding author/institute pairs.
5355  The institutes are numbered sequentially as they appear in the 
5356 \family sans
5357 Institute
5358 \family default
5359  field, so you have to put a marker to each author.
5360 \end_layout
5361
5362 \begin_layout Itemize
5363
5364 \change_inserted 564990737 1670794716
5365
5366 \family typewriter
5367 \lang american
5368
5369 \backslash
5370 email{address}
5371 \family default
5372  to supply an email address for fast contact.
5373 \end_layout
5374
5375 \begin_layout Standard
5376
5377 \change_inserted 564990737 1671642374
5378
5379 \lang american
5380 In all cases, the appropriate command has to be entered as \SpecialChar TeX
5381  code in \SpecialChar LyX
5382 .
5383  See the examples in the template and in 
5384 \family sans
5385 \lang british
5386 File\SpecialChar menuseparator
5387 Open Example\SpecialChar menuseparator
5388 Articles\SpecialChar menuseparator
5389 Astronomy & Astrophysics
5390 \family default
5391 \lang american
5392 .
5393 \change_unchanged
5394
5395 \end_layout
5396
5397 \begin_layout Subsubsection
5398
5399 \change_inserted 564990737 1670794716
5400
5401 \lang american
5402 The abstract
5403 \end_layout
5404
5405 \begin_layout Standard
5406
5407 \change_inserted 564990737 1670794716
5408
5409 \lang american
5410 The abstract should immediately follow the header block and must contain
5411  five tokens: 
5412 \family typewriter
5413
5414 \backslash
5415 abstract{}{}{}{}{}
5416 \family default
5417  
5418 \end_layout
5419
5420 \begin_layout Enumerate
5421
5422 \change_inserted 564990737 1670794716
5423
5424 \family typewriter
5425 \lang american
5426 context heading
5427 \family default
5428  (optional) {} leave it empty if necessary 
5429 \end_layout
5430
5431 \begin_layout Enumerate
5432
5433 \change_inserted 564990737 1670794716
5434
5435 \family typewriter
5436 \lang american
5437 aims heading
5438 \family default
5439  (mandatory) {} 
5440 \end_layout
5441
5442 \begin_layout Enumerate
5443
5444 \change_inserted 564990737 1670794716
5445
5446 \family typewriter
5447 \lang american
5448 methods heading
5449 \family default
5450  (mandatory) {} 
5451 \end_layout
5452
5453 \begin_layout Enumerate
5454
5455 \change_inserted 564990737 1670794716
5456
5457 \family typewriter
5458 \lang american
5459 results heading
5460 \family default
5461  (mandatory) {} 
5462 \end_layout
5463
5464 \begin_layout Enumerate
5465
5466 \change_inserted 564990737 1670794716
5467
5468 \family typewriter
5469 \lang american
5470 conclusions heading
5471 \family default
5472  (optional) {} leave it empty if necessary 
5473 \end_layout
5474
5475 \begin_layout Standard
5476
5477 \change_inserted 564990737 1670794716
5478
5479 \lang american
5480 (NB.
5481  This structure not shown in 
5482 \emph on
5483 aa_sample.lyx.
5484 \emph default
5485 )
5486 \end_layout
5487
5488 \begin_layout Subsubsection
5489
5490 \change_inserted 564990737 1670794716
5491
5492 \lang american
5493 Supported environments
5494 \end_layout
5495
5496 \begin_layout Standard
5497
5498 \change_inserted 564990737 1670794716
5499
5500 \lang american
5501 The A&A paper layout supports the following environments for structuring
5502  your text:
5503 \end_layout
5504
5505 \begin_layout Itemize
5506
5507 \change_inserted 564990737 1670794716
5508
5509 \family sans
5510 \lang american
5511 Standard
5512 \end_layout
5513
5514 \begin_layout Itemize
5515
5516 \change_inserted 564990737 1670794716
5517
5518 \family sans
5519 \lang american
5520 Section
5521 \end_layout
5522
5523 \begin_layout Itemize
5524
5525 \change_inserted 564990737 1670794716
5526
5527 \family sans
5528 \lang american
5529 Subsection
5530 \end_layout
5531
5532 \begin_layout Itemize
5533
5534 \change_inserted 564990737 1670794716
5535
5536 \family sans
5537 \lang american
5538 Subsubsection
5539 \end_layout
5540
5541 \begin_layout Itemize
5542
5543 \change_inserted 564990737 1670794716
5544
5545 \family sans
5546 \lang american
5547 Itemize
5548 \end_layout
5549
5550 \begin_layout Itemize
5551
5552 \change_inserted 564990737 1670794716
5553
5554 \family sans
5555 \lang american
5556 Enumerate
5557 \end_layout
5558
5559 \begin_layout Itemize
5560
5561 \change_inserted 564990737 1670794716
5562
5563 \family sans
5564 \lang american
5565 Description
5566 \end_layout
5567
5568 \begin_layout Itemize
5569
5570 \change_inserted 564990737 1670794716
5571
5572 \family sans
5573 \lang american
5574 Caption
5575 \end_layout
5576
5577 \begin_layout Itemize
5578
5579 \change_inserted 564990737 1670794716
5580
5581 \family sans
5582 \lang american
5583 Abstract
5584 \end_layout
5585
5586 \begin_layout Itemize
5587
5588 \change_inserted 564990737 1670794716
5589
5590 \family sans
5591 \lang american
5592 Acknowledgment
5593 \end_layout
5594
5595 \begin_layout Itemize
5596
5597 \change_inserted 564990737 1670794716
5598
5599 \family sans
5600 \lang american
5601 Bibliography
5602 \end_layout
5603
5604 \begin_layout Itemize
5605
5606 \change_inserted 564990737 1670794716
5607
5608 \family sans
5609 \lang american
5610 \SpecialChar LaTeX
5611
5612 \end_layout
5613
5614 \begin_layout Subsubsection
5615
5616 \change_inserted 564990737 1670794716
5617
5618 \lang american
5619 Commands not supported by \SpecialChar LyX
5620
5621 \end_layout
5622
5623 \begin_layout Standard
5624
5625 \change_inserted 564990737 1670794716
5626
5627 \lang american
5628 Some commands are not yet supported by the 
5629 \family sans
5630 paper (A&A)
5631 \family default
5632  layout for \SpecialChar LyX
5633 .
5634  Some have already been mentioned.
5635  For the sake of completeness, they are listed all together here:
5636 \end_layout
5637
5638 \begin_layout Itemize
5639
5640 \change_inserted 564990737 1670794716
5641
5642 \family typewriter
5643 \lang american
5644
5645 \backslash
5646 and
5647 \end_layout
5648
5649 \begin_layout Itemize
5650
5651 \change_inserted 564990737 1670794716
5652
5653 \family typewriter
5654 \lang american
5655
5656 \backslash
5657 email
5658 \end_layout
5659
5660 \begin_layout Itemize
5661
5662 \change_inserted 564990737 1670794716
5663
5664 \family typewriter
5665 \lang american
5666
5667 \backslash
5668 inst{}
5669 \end_layout
5670
5671 \begin_layout Itemize
5672
5673 \change_inserted 564990737 1670794716
5674
5675 \family typewriter
5676 \lang american
5677
5678 \backslash
5679 keywords{}
5680 \end_layout
5681
5682 \begin_layout Itemize
5683
5684 \change_inserted 564990737 1670794716
5685
5686 \family typewriter
5687 \lang american
5688
5689 \backslash
5690 object{}
5691 \end_layout
5692
5693 \begin_layout Standard
5694
5695 \change_inserted 564990737 1670794716
5696
5697 \lang american
5698 If you want to use any of these commands, you have to enter them yourself.
5699  
5700 \family typewriter
5701 Do not forget to use
5702 \family sans
5703  
5704 \bar under
5705 I
5706 \bar default
5707 nsert\SpecialChar menuseparator
5708 \SpecialChar TeX
5709
5710 \begin_inset space ~
5711 \end_inset
5712
5713 Code
5714 \family default
5715 \series bold
5716 !
5717 \end_layout
5718
5719 \begin_layout Subsubsection
5720
5721 \change_inserted 564990737 1670794716
5722
5723 \lang american
5724 Figure and Table Floats
5725 \end_layout
5726
5727 \begin_layout Standard
5728
5729 \change_inserted 564990737 1670794716
5730
5731 \lang american
5732 \SpecialChar LyX
5733  provides support for the necessary float environments 
5734 \family sans
5735 figure, figure*, table
5736 \family default
5737  and 
5738 \family sans
5739 table*
5740 \family default
5741 , therefore we won't tell much about it here.
5742  Refer to the 
5743 \emph on
5744 User's
5745 \begin_inset space ~
5746 \end_inset
5747
5748 Guide
5749 \emph default
5750 .
5751  Just remember that tables should be left-aligned.
5752  For that, select the table and change the alignment in 
5753 \family sans
5754 \bar under
5755 E
5756 \bar default
5757 dit\SpecialChar menuseparator
5758
5759 \bar under
5760 P
5761 \bar default
5762 aragraph
5763 \begin_inset space ~
5764 \end_inset
5765
5766 Settings.
5767 \end_layout
5768
5769 \begin_layout Standard
5770
5771 \change_inserted 564990737 1670794716
5772
5773 \lang american
5774 There is only one special thing: the figures with a caption beside the figure.
5775  To create such a figure, you have to do the following:
5776 \end_layout
5777
5778 \begin_layout Enumerate
5779
5780 \change_inserted 564990737 1670794716
5781
5782 \lang american
5783 Create a wide figure float: 
5784 \family sans
5785 \bar under
5786 I
5787 \bar default
5788 nsert\SpecialChar menuseparator
5789 Flo
5790 \bar under
5791 a
5792 \bar default
5793 t\SpecialChar menuseparator
5794 Figure
5795 \family default
5796 , then, from within the float, use the menu 
5797 \family sans
5798 \bar under
5799 E
5800 \bar default
5801 dit\SpecialChar menuseparator
5802 Flo
5803 \bar under
5804 a
5805 \bar default
5806 t
5807 \begin_inset space ~
5808 \end_inset
5809
5810 Settings
5811 \family default
5812  and check 
5813 \family sans
5814 \bar under
5815 S
5816 \bar default
5817 pan
5818 \begin_inset space ~
5819 \end_inset
5820
5821 columns
5822 \family default
5823  in the 
5824 \family sans
5825 float
5826 \family default
5827  dialog.
5828 \end_layout
5829
5830 \begin_layout Enumerate
5831
5832 \change_inserted 564990737 1670794716
5833
5834 \lang american
5835 Enter your caption text.
5836 \end_layout
5837
5838 \begin_layout Enumerate
5839
5840 \change_inserted 564990737 1670794716
5841
5842 \lang american
5843 Press 
5844 \family sans
5845 Return
5846 \family default
5847  to move the cursor above the caption.
5848 \end_layout
5849
5850 \begin_layout Enumerate
5851
5852 \change_inserted 564990737 1670794716
5853
5854 \lang american
5855 Insert your figure
5856 \end_layout
5857
5858 \begin_layout Enumerate
5859
5860 \change_inserted 564990737 1670794716
5861
5862 \lang american
5863 Position the cursor after the figure and insert a horizontal fill by using
5864  the menu: 
5865 \family sans
5866 \bar under
5867 I
5868 \bar default
5869 nsert\SpecialChar menuseparator
5870 F
5871 \bar under
5872 o
5873 \bar default
5874 rmatting\SpecialChar menuseparator
5875 H
5876 \bar under
5877 o
5878 \bar default
5879 rizontal
5880 \begin_inset space ~
5881 \end_inset
5882
5883 Space
5884 \family default
5885  to open the 
5886 \family sans
5887 space
5888 \family default
5889  dialog and select the 
5890 \family sans
5891 Horizontal fill
5892 \family default
5893  option from the 
5894 \family sans
5895 \bar under
5896 S
5897 \bar default
5898 pacing
5899 \family default
5900  pull-down menu.
5901 \end_layout
5902
5903 \begin_layout Enumerate
5904
5905 \change_inserted 564990737 1670794716
5906
5907 \lang american
5908 Switch to \SpecialChar LaTeX
5909  mode: 
5910 \family sans
5911 M-c
5912 \begin_inset space ~
5913 \end_inset
5914
5915 t
5916 \family default
5917 .
5918 \end_layout
5919
5920 \begin_layout Enumerate
5921
5922 \change_inserted 564990737 1670794716
5923
5924 \lang american
5925 Enter 
5926 \family typewriter
5927
5928 \backslash
5929 parbox[b]{55mm}{
5930 \family default
5931  
5932 \emph on
5933 Do not close the brace!
5934 \end_layout
5935
5936 \begin_layout Enumerate
5937
5938 \change_inserted 564990737 1670794716
5939
5940 \lang american
5941 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
5942  mode and insert
5943  the closing brace: 
5944 \family sans
5945 M-c
5946 \begin_inset space ~
5947 \end_inset
5948
5949 t
5950 \family default
5951  
5952 \family typewriter
5953 }
5954 \family default
5955 .
5956 \end_layout
5957
5958 \begin_layout Standard
5959
5960 \change_inserted 564990737 1671642458
5961
5962 \lang american
5963 Also, refer to the figures in the file in 
5964 \family sans
5965 \lang british
5966 File\SpecialChar menuseparator
5967 Open Example\SpecialChar menuseparator
5968 Articles\SpecialChar menuseparator
5969 Astronomy & Astrophysics
5970 \family default
5971 \lang american
5972 .
5973 \end_layout
5974
5975 \begin_layout Subsubsection
5976
5977 \change_inserted 564990737 1670794716
5978
5979 \lang american
5980 Referee layout
5981 \end_layout
5982
5983 \begin_layout Standard
5984
5985 \change_inserted 564990737 1670794716
5986
5987 \lang american
5988 For submission, the paper has to be formatted in a special double-spacing
5989  layout.
5990  For this purpose, you have to add the option 
5991 \family typewriter
5992 referee
5993 \family default
5994  to the 
5995 \family sans
5996 Cus
5997 \bar under
5998 t
5999 \bar default
6000 om Class
6001 \begin_inset space ~
6002 \end_inset
6003
6004 options
6005 \family default
6006  in the 
6007 \family sans
6008 \bar under
6009 D
6010 \bar default
6011 ocument\SpecialChar menuseparator
6012
6013 \bar under
6014 S
6015 \bar default
6016 ettings\SpecialChar menuseparator
6017 Document
6018 \begin_inset space ~
6019 \end_inset
6020
6021 Class
6022 \family default
6023  dialog.
6024  
6025 \end_layout
6026
6027 \begin_layout Subsubsection
6028
6029 \change_inserted 564990737 1670794716
6030
6031 \lang american
6032 The example paper
6033 \end_layout
6034
6035 \begin_layout Standard
6036
6037 \change_inserted 564990737 1671642520
6038
6039 \lang american
6040 The example in 
6041 \family sans
6042 \lang british
6043 File\SpecialChar menuseparator
6044 Open Example\SpecialChar menuseparator
6045 Articles\SpecialChar menuseparator
6046 Astronomy & Astrophysics
6047 \family default
6048 \lang american
6049  was written with \SpecialChar LyX
6050 .
6051  It is the example paper from the original macro package, 
6052 \family typewriter
6053 aa.dem
6054 \family default
6055  in the 
6056 \begin_inset CommandInset href
6057 LatexCommand href
6058 name "aa-package"
6059 target "http://ftp.edpsciences.org/pub/aa/aa-package.zip"
6060 literal "false"
6061
6062 \end_inset
6063
6064 , but translated to \SpecialChar LyX
6065  using the older unstructured abstract type.
6066  Use it for inspiration, and compare the \SpecialChar LaTeX
6067  code in 
6068 \family typewriter
6069 aa.dem
6070 \family default
6071  with the \SpecialChar LyX
6072  way of writing.
6073 \end_layout
6074
6075 \begin_layout Subsection
6076 AAS\SpecialChar TeX
6077
6078 \end_layout
6079
6080 \begin_layout Standard
6081 by 
6082 \noun on
6083 Mike Ressler
6084 \end_layout
6085
6086 \begin_layout Subsubsection
6087 Introduction
6088 \end_layout
6089
6090 \begin_layout Standard
6091 AAS\SpecialChar TeX
6092  is a set of macros produced by the American Astronomical Society to
6093  facilitate electronic manuscript submission to the three journals they
6094  publish: the Astrophysical Journal (including the Letters and Supplement),
6095  the Astronomical Journal, and the Publications of the Astronomical Society
6096  of the Pacific.
6097  \SpecialChar LyX
6098  has proven to be an excellent tool for generating these documents, especially
6099  given its equation, citation, and figure handling capabilities.
6100  \SpecialChar LyX
6101  requires version 5.0 (or higher) of these macros; preferably 6.0, which
6102  is the version described here, or higher.
6103  Versions prior to 5.0 are intended for use with \SpecialChar LaTeX
6104 2.09 and are fundamentally
6105  incompatible with \SpecialChar LyX
6106 .
6107  The AAS\SpecialChar TeX
6108  package may be downloaded from the AAS\SpecialChar TeX
6109  Web site
6110 \end_layout
6111
6112 \begin_layout Standard
6113 \begin_inset VSpace medskip
6114 \end_inset
6115
6116
6117 \end_layout
6118
6119 \begin_layout Standard
6120 \align center
6121 \begin_inset Flex URL
6122 status collapsed
6123
6124 \begin_layout Plain Layout
6125
6126 https://aas.org/aastex/aastex-downloads
6127 \end_layout
6128
6129 \end_inset
6130
6131
6132 \end_layout
6133
6134 \begin_layout Standard
6135 \begin_inset VSpace medskip
6136 \end_inset
6137
6138
6139 \end_layout
6140
6141 \begin_layout Standard
6142 A complete user guide is contained in that package and you should familiarize
6143  yourself with it thoroughly before embarking on writing a paper in \SpecialChar LyX
6144 .
6145  \SpecialChar LyX
6146  will not reduce the need to figure out all the AAS\SpecialChar TeX
6147  commands, it will only
6148  reduce the drudgery of typing everything in.
6149  It is your responsibility to ensure that the final exported \SpecialChar LaTeX
6150  document conforms
6151  completely to the requirements of the journal to which you are submitting
6152  your paper.
6153 \end_layout
6154
6155 \begin_layout Subsubsection
6156 Starting a New Paper
6157 \end_layout
6158
6159 \begin_layout Standard
6160 I strongly suggest that you start with the AAS\SpecialChar TeX
6161  template file.
6162  Click on 
6163 \family sans
6164 File\SpecialChar menuseparator
6165 New from
6166 \family default
6167  
6168 \family sans
6169 Template
6170 \change_inserted 564990737 1671617265
6171 \SpecialChar menuseparator
6172 Articles\SpecialChar menuseparator
6173 American Astronomical Society
6174 \change_deleted 564990737 1671617310
6175
6176 \family default
6177 , enter the new file name, then choose the 
6178 \family typewriter
6179 aastex6.lyx
6180 \family default
6181  template
6182 \change_unchanged
6183 .
6184  This will show the most common fields found in a manuscript.
6185  Simply overwrite the existing text (including the brackets, 
6186 \family typewriter
6187 <>
6188 \family default
6189 ) with the correct information.
6190  Many of the AAS\SpecialChar TeX
6191  commands and environments can be implemented directly in
6192  \SpecialChar LyX
6193 , but some cannot.
6194  For commands such as these, the \SpecialChar LaTeX
6195  code must be entered directly and marked
6196  as such.
6197  Such commands are referred to as \SpecialChar TeX
6198  code, or Evil Red Text.
6199  I tried to minimize the amount of \SpecialChar TeX
6200  code needed in an AAS\SpecialChar TeX
6201  document.
6202 \end_layout
6203
6204 \begin_layout Subsubsection
6205 Finishing Your Paper
6206 \end_layout
6207
6208 \begin_layout Standard
6209 When the paper is finished to your satisfaction and previews/prints correctly,
6210  there are a few 
6211 \begin_inset Quotes eld
6212 \end_inset
6213
6214 postprocessing
6215 \begin_inset Quotes erd
6216 \end_inset
6217
6218  actions which need to be done before you submit it to the journals.
6219  
6220 \end_layout
6221
6222 \begin_layout Enumerate
6223 Export your paper as a \SpecialChar LaTeX
6224  file (
6225 \family sans
6226 File\SpecialChar menuseparator
6227 Export\SpecialChar menuseparator
6228 \SpecialChar LaTeX
6229
6230 \family default
6231 ).
6232  
6233 \end_layout
6234
6235 \begin_layout Enumerate
6236 Edit the resulting 
6237 \family typewriter
6238 .tex
6239 \family default
6240  file with your favorite text editor
6241 \end_layout
6242
6243 \begin_deeper
6244 \begin_layout Enumerate
6245 remove the comment lines before the 
6246 \family typewriter
6247
6248 \backslash
6249 documentclass
6250 \family default
6251  command
6252 \end_layout
6253
6254 \begin_layout Enumerate
6255 remove the 
6256 \family typewriter
6257
6258 \backslash
6259 usepackage...{fontenc}
6260 \family default
6261  line if it appears (usually just after 
6262 \family typewriter
6263
6264 \backslash
6265 documentclass
6266 \family default
6267 }; also remove the 
6268 \family typewriter
6269
6270 \backslash
6271 secnumdepth
6272 \family default
6273  line if it appears.
6274 \end_layout
6275
6276 \begin_layout Enumerate
6277 remove everything between (and including) the 
6278 \family typewriter
6279
6280 \backslash
6281 makeatletter
6282 \family default
6283  and 
6284 \family typewriter
6285
6286 \backslash
6287 makeatother
6288 \family default
6289  commands, except for any commands you specifically put into the \SpecialChar LaTeX
6290  preamble
6291  (which should appear immediately after the 
6292 \begin_inset Quotes eld
6293 \end_inset
6294
6295 User specified \SpecialChar LaTeX
6296  commands
6297 \begin_inset Quotes erd
6298 \end_inset
6299
6300  comment in the 
6301 \family typewriter
6302 .tex
6303 \family default
6304  file).
6305 \end_layout
6306
6307 \end_deeper
6308 \begin_layout Enumerate
6309 Run the resulting file through \SpecialChar LaTeX
6310  to make sure it still processes correctly.
6311 \end_layout
6312
6313 \begin_layout Enumerate
6314 Reread the journal requirements to make sure your filenames and formats
6315  are correct.
6316 \end_layout
6317
6318 \begin_layout Enumerate
6319 Submit it.
6320 \end_layout
6321
6322 \begin_layout Subsubsection
6323 Comments On Specific Commands
6324 \end_layout
6325
6326 \begin_layout Standard
6327 I will not describe the detailed usage of the individual AAS\SpecialChar TeX
6328  commands: the
6329  AAS\SpecialChar TeX
6330  User Guide (
6331 \family typewriter
6332 aasguide.tex
6333 \family default
6334 ) gives a good description of each.
6335  Thus it's probably easiest for me to go down the list as found in the guide
6336  and offer comments where necessary.
6337  So let's begin \SpecialChar ldots
6338
6339 \end_layout
6340
6341 \begin_layout Paragraph
6342 Things that work as expected
6343 \end_layout
6344
6345 \begin_layout Standard
6346 Because they work as you might expect, I simply list them and the section
6347  they are found in: 
6348 \family typewriter
6349
6350 \backslash
6351 documentclass
6352 \family default
6353  (2.1.1), 
6354 \family typewriter
6355
6356 \backslash
6357 begin{document}
6358 \family default
6359  (2.2), 
6360 \family typewriter
6361
6362 \backslash
6363 title
6364 \family default
6365  (2.3), 
6366 \family typewriter
6367
6368 \backslash
6369 author
6370 \family default
6371  (2.3), 
6372 \family typewriter
6373
6374 \backslash
6375 affil
6376 \family default
6377  (2.3), 
6378 \family typewriter
6379
6380 \backslash
6381 abstract
6382 \family default
6383  (2.4), 
6384 \family typewriter
6385
6386 \backslash
6387 keywords
6388 \family default
6389  (2.5), 
6390 \family typewriter
6391
6392 \backslash
6393 section
6394 \family default
6395  (2.7), 
6396 \family typewriter
6397
6398 \backslash
6399 subsection
6400 \family default
6401  (2.7), 
6402 \family typewriter
6403
6404 \backslash
6405 subsubsection
6406 \family default
6407  (2.7), 
6408 \family typewriter
6409
6410 \backslash
6411 paragraph
6412 \family default
6413  (2.7), 
6414 \family typewriter
6415
6416 \backslash
6417 facility
6418 \family default
6419  (2.10), 
6420 \family typewriter
6421
6422 \backslash
6423 begin{displaymath}
6424 \family default
6425  (2.12), 
6426 \family typewriter
6427
6428 \backslash
6429 begin{equation}
6430 \family default
6431  (2.12), 
6432 \family typewriter
6433
6434 \backslash
6435 begin{eqnarray}
6436 \family default
6437  (2.12), 
6438 \family typewriter
6439
6440 \backslash
6441 begin{mathletters}
6442 \family default
6443  (2.12), 
6444 \family typewriter
6445
6446 \backslash
6447 begin{thebibliography}
6448 \family default
6449  (2.13.1), 
6450 \family typewriter
6451
6452 \backslash
6453 bibitem
6454 \family default
6455  (2.13.2), all the cite commands and their variations (2.13.2), the generic
6456  graphicx figure commands (2.14.1), 
6457 \family typewriter
6458
6459 \backslash
6460 begin{table}
6461 \family default
6462  (2.15.4), 
6463 \family typewriter
6464
6465 \backslash
6466 begin{tabular}
6467 \family default
6468  (2.15.4), 
6469 \family typewriter
6470
6471 \backslash
6472 caption
6473 \family default
6474  (2.15.4), 
6475 \family typewriter
6476
6477 \backslash
6478 label
6479 \family default
6480  (2.15.4, amongst other places), 
6481 \family typewriter
6482
6483 \backslash
6484 tablerefs
6485 \family default
6486  (2.15.5), 
6487 \family typewriter
6488
6489 \backslash
6490 tablecomments
6491 \family default
6492  (2.15.5), 
6493 \family typewriter
6494
6495 \backslash
6496 url
6497 \family default
6498  (2.17.4), 
6499 \family typewriter
6500
6501 \backslash
6502 end{document}
6503 \family default
6504  (2.18).
6505 \end_layout
6506
6507 \begin_layout Standard
6508 The following style options also work correctly: 
6509 \family typewriter
6510 longabstract
6511 \family default
6512  (2.4), 
6513 \family typewriter
6514 preprint
6515 \family default
6516  (3.2.1), 
6517 \family typewriter
6518 preprint2
6519 \family default
6520  (3.2.2), 
6521 \family typewriter
6522 eqsecnum
6523 \family default
6524  (3.3), 
6525 \family typewriter
6526 flushrt
6527 \family default
6528  (3.4).
6529  Simply put them in the 
6530 \family sans
6531 Options
6532 \family default
6533  box in 
6534 \family sans
6535 Layout\SpecialChar menuseparator
6536 Document
6537 \family default
6538 .
6539 \end_layout
6540
6541 \begin_layout Paragraph
6542 Things that work, but require more comment
6543 \end_layout
6544
6545 \begin_layout Standard
6546 The following items work, but require a little more discussion:
6547 \end_layout
6548
6549 \begin_layout Itemize
6550 These items are reserved for use by the journal editors, but you can put
6551  them into the \SpecialChar LaTeX
6552  preamble if you feel compelled to do so: 
6553 \family typewriter
6554
6555 \backslash
6556 received
6557 \family default
6558
6559 \family typewriter
6560
6561 \backslash
6562 revised
6563 \family default
6564
6565 \family typewriter
6566
6567 \backslash
6568 accepted
6569 \family default
6570
6571 \family typewriter
6572
6573 \backslash
6574 ccc
6575 \family default
6576
6577 \family typewriter
6578
6579 \backslash
6580 cpright
6581 \family default
6582  (all from 2.1.3)
6583 \end_layout
6584
6585 \begin_layout Itemize
6586 These items may be placed in the \SpecialChar LaTeX
6587  preamble, and are included as blanks in
6588  the template file: 
6589 \family typewriter
6590
6591 \backslash
6592 slugcomment
6593 \family default
6594  (2.1.4), 
6595 \family typewriter
6596
6597 \backslash
6598 shorttitle
6599 \family default
6600  (2.1.5), 
6601 \family typewriter
6602
6603 \backslash
6604 shortauthors
6605 \family default
6606  (2.1.5)
6607 \end_layout
6608
6609 \begin_layout Itemize
6610
6611 \family typewriter
6612
6613 \backslash
6614 email
6615 \family default
6616  (2.3) – can only be used 
6617 \begin_inset Quotes eld
6618 \end_inset
6619
6620 standalone
6621 \begin_inset Quotes erd
6622 \end_inset
6623
6624 , not in the middle of a paragraph.
6625  Use \SpecialChar TeX
6626  code if you need to embed it.
6627 \end_layout
6628
6629 \begin_layout Itemize
6630
6631 \family typewriter
6632
6633 \backslash
6634 and
6635 \family default
6636  (2.3) – will have extra {} after it.
6637  This should not cause an error.
6638 \end_layout
6639
6640 \begin_layout Itemize
6641
6642 \family typewriter
6643
6644 \backslash
6645 notetoeditor
6646 \family default
6647  (2.6) – can only be used 
6648 \begin_inset Quotes eld
6649 \end_inset
6650
6651 standalone
6652 \begin_inset Quotes erd
6653 \end_inset
6654
6655 , not in the middle of a paragraph.
6656  Use \SpecialChar TeX
6657  code if you need to embed it.
6658 \end_layout
6659
6660 \begin_layout Itemize
6661
6662 \family typewriter
6663
6664 \backslash
6665 placetable
6666 \family default
6667  (2.8) – can't insert a cross-reference tag, you must type the tag name by
6668  hand
6669 \end_layout
6670
6671 \begin_layout Itemize
6672
6673 \family typewriter
6674
6675 \backslash
6676 placefigure
6677 \family default
6678  (2.8) – same as for 
6679 \family typewriter
6680
6681 \backslash
6682 placetable
6683 \end_layout
6684
6685 \begin_layout Itemize
6686
6687 \family typewriter
6688
6689 \backslash
6690 acknowledgements
6691 \family default
6692  (2.9) – will have extra {} after it.
6693  This should not cause an error.
6694 \end_layout
6695
6696 \begin_layout Itemize
6697
6698 \family typewriter
6699
6700 \backslash
6701 appendix
6702 \family default
6703  (2.11) – will have extra {} after it.
6704  This should not cause an error.
6705 \end_layout
6706
6707 \begin_layout Itemize
6708
6709 \family typewriter
6710
6711 \backslash
6712 figcaption
6713 \family default
6714  (2.14.2) – you can insert an optional filename argument by placing the cursor
6715  at the beginning of the text and selecting 
6716 \family sans
6717 Insert\SpecialChar menuseparator
6718 Short Title
6719 \family default
6720 .
6721  
6722 \begin_inset Quotes eld
6723 \end_inset
6724
6725 Short Title
6726 \begin_inset Quotes erd
6727 \end_inset
6728
6729  inserts an optional argument of the type needed by 
6730 \family typewriter
6731
6732 \backslash
6733 figcaption
6734 \family default
6735 .
6736  Hopefully it will be renamed someday.
6737 \end_layout
6738
6739 \begin_layout Itemize
6740
6741 \family typewriter
6742
6743 \backslash
6744 objectname
6745 \family default
6746  (2.17.1) – same as 
6747 \family typewriter
6748
6749 \backslash
6750 figcaption
6751 \family default
6752  for the catalog ID optional parameter
6753 \end_layout
6754
6755 \begin_layout Itemize
6756
6757 \family typewriter
6758
6759 \backslash
6760 dataset
6761 \family default
6762  (2.17.1) – same as 
6763 \family typewriter
6764
6765 \backslash
6766 figcaption
6767 \family default
6768  for the catalog ID optional parameter
6769 \end_layout
6770
6771 \begin_layout Paragraph
6772 Things not implemented, use \SpecialChar TeX
6773  code
6774 \end_layout
6775
6776 \begin_layout Standard
6777
6778 \family typewriter
6779
6780 \backslash
6781 eqnum
6782 \family default
6783  (2.12), 
6784 \family typewriter
6785
6786 \backslash
6787 setcounter{equation}
6788 \family default
6789  (2.12), Journal name abbreviations (2.13.4), 
6790 \family typewriter
6791
6792 \backslash
6793 figurenum
6794 \family default
6795  (2.14.1), 
6796 \family typewriter
6797
6798 \backslash
6799 epsscale
6800 \family default
6801  (2.14.1), 
6802 \family typewriter
6803
6804 \backslash
6805 plotone
6806 \family default
6807  (2.14.1), 
6808 \family typewriter
6809
6810 \backslash
6811 plottwo
6812 \family default
6813  (2.14.1), 
6814 \family typewriter
6815
6816 \backslash
6817 tablenum
6818 \family default
6819  (2.15.4), 
6820 \family typewriter
6821
6822 \backslash
6823 tableline
6824 \family default
6825  (2.15.4, insert it as the first element in the lefthand cell after where
6826  you want it.
6827  Don't use any of \SpecialChar LyX
6828 's rules in the table), 
6829 \family typewriter
6830
6831 \backslash
6832 tablenotemark
6833 \family default
6834  (2.15.5), 
6835 \family typewriter
6836
6837 \backslash
6838 tablenotetext
6839 \family default
6840  (2.15.5), much of Misc (2.17, except 
6841 \family typewriter
6842
6843 \backslash
6844 objectname
6845 \family default
6846
6847 \family typewriter
6848
6849 \backslash
6850 dataset
6851 \family default
6852
6853 \family typewriter
6854
6855 \backslash
6856 url
6857 \family default
6858 , and 
6859 \family typewriter
6860
6861 \backslash
6862 email
6863 \family default
6864 ; see above), 
6865 \family typewriter
6866
6867 \backslash
6868 singlespace
6869 \family default
6870  (3.1), 
6871 \family typewriter
6872
6873 \backslash
6874 doublespace
6875 \family default
6876  (3.1), 
6877 \family typewriter
6878
6879 \backslash
6880 onecolumn
6881 \family default
6882  (3.2), 
6883 \family typewriter
6884
6885 \backslash
6886 twocolumn
6887 \family default
6888  (3.2)
6889 \end_layout
6890
6891 \begin_layout Paragraph
6892 Things that cannot be implemented
6893 \end_layout
6894
6895 \begin_layout Standard
6896 \SpecialChar ldots
6897  at least in any meaningful sort of way, so I suggest ignoring them.
6898  They are the references environment (2.13.3), and the deluxetable environment
6899  (2.15).
6900  If you really, really need to use deluxetable, I suggest editing it in
6901  a separate file with a text editor, then using 
6902 \family sans
6903 Insert\SpecialChar menuseparator
6904 Child
6905 \begin_inset space ~
6906 \end_inset
6907
6908 Document
6909 \family default
6910  to include it in your \SpecialChar LyX
6911  document.
6912  See 
6913 \change_deleted 564990737 1671642564
6914 the 
6915 \family typewriter
6916 aas_sample.lyx
6917 \family default
6918  file to see
6919 \change_inserted 564990737 1671642618
6920
6921 \family sans
6922 \lang british
6923 File\SpecialChar menuseparator
6924 Open Example\SpecialChar menuseparator
6925 Articles\SpecialChar menuseparator
6926 American Astronomical Society
6927 \change_unchanged
6928
6929 \family default
6930 \lang english
6931  
6932 \change_inserted 564990737 1671642621
6933 for 
6934 \change_unchanged
6935 an example of this.
6936 \end_layout
6937
6938 \begin_layout Subsubsection
6939 FAQs, Tips, Tricks, and Other Ruminations
6940 \end_layout
6941
6942 \begin_layout Paragraph
6943 Getting \SpecialChar LyX
6944  and AAS\SpecialChar TeX
6945  to cooperate
6946 \end_layout
6947
6948 \begin_layout Standard
6949 It can be a bit tricky to get \SpecialChar LyX
6950  to recognize a new layout and document class.
6951  When all else fails, do this:
6952 \end_layout
6953
6954 \begin_layout Enumerate
6955 Make certain that \SpecialChar LaTeX
6956  can find AAS\SpecialChar TeX
6957 .
6958  Copy sample.tex (and perhaps table.tex) from the AAS\SpecialChar TeX
6959  distribution into a
6960  directory completely unrelated to \SpecialChar LaTeX
6961  or AAS\SpecialChar TeX
6962  and run \SpecialChar LaTeX
6963  on 
6964 \family typewriter
6965 sample.tex
6966 \family default
6967 .
6968 \end_layout
6969
6970 \begin_layout Enumerate
6971 Make certain that 
6972 \family typewriter
6973 aastex.layout
6974 \family default
6975  appears in \SpecialChar LyX
6976 's 
6977 \family typewriter
6978 layouts
6979 \family default
6980  folder
6981 \end_layout
6982
6983 \begin_layout Enumerate
6984 Rerun 
6985 \family sans
6986 Tools\SpecialChar menuseparator
6987 Reconfigure
6988 \family default
6989  in \SpecialChar LyX
6990 , then restart \SpecialChar LyX
6991 .
6992 \end_layout
6993
6994 \begin_layout Enumerate
6995 Open a regular new file, not from a template.
6996  Does AAS\SpecialChar TeX
6997  appear in the class list in 
6998 \family sans
6999 Document\SpecialChar menuseparator
7000 Settings
7001 \family default
7002 ?
7003 \end_layout
7004
7005 \begin_layout Standard
7006 If you get a warning from an existing AAS\SpecialChar TeX
7007  document about not being able
7008  to find the AAS\SpecialChar TeX
7009  layout or a message about 
7010 \begin_inset Quotes eld
7011 \end_inset
7012
7013 You should not mix title layouts with normal ones
7014 \begin_inset Quotes erd
7015 \end_inset
7016
7017 , things haven't been installed correctly.
7018 \end_layout
7019
7020 \begin_layout Paragraph
7021 \SpecialChar LaTeX
7022  error processing a table 
7023 \end_layout
7024
7025 \begin_layout Standard
7026 \SpecialChar LyX
7027 , by default, attempts to center the table caption/title.
7028  This seems to produce a bad interaction in AAS\SpecialChar TeX
7029  so you should click somewhere
7030  in the caption/title, then select 
7031 \family sans
7032 Edit\SpecialChar menuseparator
7033 Paragraph
7034 \begin_inset space ~
7035 \end_inset
7036
7037 Settings
7038 \family default
7039 , then set the 
7040 \family sans
7041 Alignment
7042 \family default
7043  to 
7044 \family sans
7045 Block
7046 \family default
7047 .
7048  This took care of it for me.
7049 \end_layout
7050
7051 \begin_layout Paragraph
7052 References
7053 \end_layout
7054
7055 \begin_layout Standard
7056 A couple of things: 1) I have noticed some funny spacing in the reference
7057  entries in the text.
7058  When you enter the bibliography item data, make sure their is 
7059 \emph on
7060 no
7061 \emph default
7062  space between the last author and the parenthesis setting off the year;
7063  
7064 \emph on
7065 e.
7066 \begin_inset space \thinspace{}
7067 \end_inset
7068
7069 g.
7070 \begin_inset space \space{}
7071 \end_inset
7072
7073
7074 \emph default
7075 type 
7076 \family typewriter
7077 Ressler(1992)
7078 \family default
7079 , not 
7080 \family typewriter
7081 Ressler (1992)
7082 \family default
7083 .
7084  2) Entering the references at all is not obvious.
7085  The easiest thing is to start typing your first reference at the end of
7086  the document, then mark it as type 
7087 \family sans
7088 References
7089 \family default
7090 .
7091  That will put a small gray box in front of what you just typed.
7092  Click on the box to fill in the rest of the information.
7093  For new references, go to the end of an existing reference and press return.
7094  That will create a new line with its own box, etc.
7095 \end_layout
7096
7097 \begin_layout Paragraph
7098 Including EPS files
7099 \end_layout
7100
7101 \begin_layout Standard
7102 Even though AAS\SpecialChar TeX
7103  provides its own figure commands (
7104 \family typewriter
7105
7106 \backslash
7107 plotone
7108 \family default
7109 , for example), I much prefer \SpecialChar LaTeX
7110 's standard figure commands (with the default
7111  graphicx).
7112  You can insert the 
7113 \family typewriter
7114
7115 \backslash
7116 plotone
7117 \family default
7118 , etc.
7119 \begin_inset space ~
7120 \end_inset
7121
7122 commands as \SpecialChar TeX
7123  code into a Figure Float box if you desire, but I never have
7124  much luck getting the layout right.
7125  With the standard graphics, \SpecialChar LyX
7126  will insert a 
7127 \family typewriter
7128
7129 \backslash
7130 usepackage{graphicx}
7131 \family default
7132  command into the \SpecialChar LaTeX
7133  preamble and handle the figures in the standard \SpecialChar LaTeX2e
7134  way,
7135  interspersing the figures in the text.
7136  I believe ApJ accepts figures exactly this way now; AJ might still use
7137  the 
7138 \begin_inset Quotes eld
7139 \end_inset
7140
7141 stack everything at the end
7142 \begin_inset Quotes erd
7143 \end_inset
7144
7145  technique.
7146 \end_layout
7147
7148 \begin_layout Paragraph
7149 Things I could have done, but didn't
7150 \end_layout
7151
7152 \begin_layout Standard
7153 There are a few 
7154 \begin_inset Quotes eld
7155 \end_inset
7156
7157 pretty
7158 \begin_inset Quotes erd
7159 \end_inset
7160
7161  things I could have implemented, but chose not to.
7162  For instance, I saw no point in double-spacing the text in the \SpecialChar LyX
7163  window,
7164  even though it is double-spaced in the paper manuscript.
7165  Also, I chose not to make separate layouts for the preprint and preprint2
7166  styles.
7167  Since I assume you will spend most of your time in the plain manuscript
7168  mode anyway, I decided not to chew up more disk space with this.
7169  
7170 \end_layout
7171
7172 \begin_layout Subsubsection
7173 Final Caveat
7174 \end_layout
7175
7176 \begin_layout Standard
7177 Your mileage may vary.
7178  I've now had papers published by both ApJ and AJ that have had 98% of the
7179  effort done in \SpecialChar LyX
7180 ; the last 2% was the \SpecialChar LaTeX
7181  post-processing and a few cleanups.
7182  I have had no trouble with the submission process, and I'm sure the journals
7183  were never aware that there might be a difference.
7184  So, go forth and publish!
7185 \end_layout
7186
7187 \begin_layout Subsection
7188
7189 \change_inserted 564990737 1671442131
7190
7191 \lang american
7192 Chess
7193 \end_layout
7194
7195 \begin_layout Standard
7196
7197 \change_inserted 564990737 1671642768
7198
7199 \lang american
7200 The document class 
7201 \family sans
7202 article
7203 \begin_inset space \thinspace{}
7204 \end_inset
7205
7206 (Chess)
7207 \family default
7208  uses the 
7209 \family typewriter
7210 article.cls
7211 \family default
7212  document class together with the style 
7213 \family sans
7214 lyxskak.sty
7215 \family default
7216  to facilitate the description of chess games.
7217  See 
7218 \family sans
7219 \lang british
7220 File\SpecialChar menuseparator
7221 Open Example
7222 \lang english
7223 \SpecialChar menuseparator
7224 Articles\SpecialChar menuseparator
7225 Chess
7226 \family default
7227 \lang american
7228  where you will find 
7229 \family sans
7230 \lang english
7231 Game 1
7232 \family default
7233 \lang american
7234  and 
7235 \family sans
7236 \lang english
7237 Game 2
7238 \family default
7239 \lang american
7240 .
7241 \end_layout
7242
7243 \begin_layout Subsection
7244
7245 \change_inserted 564990737 1671042028
7246
7247 \lang american
7248 Elsevier
7249 \end_layout
7250
7251 \begin_layout Standard
7252
7253 \change_inserted 564990737 1671617396
7254
7255 \lang american
7256 The document class 
7257 \family sans
7258 article
7259 \begin_inset space \thinspace{}
7260 \end_inset
7261
7262 (Elsevier)
7263 \family default
7264  provides the 
7265 \family typewriter
7266 elsarticle.cls
7267 \family default
7268  document class.
7269  This provides the following additional environments: 
7270 \family sans
7271 Title
7272 \begin_inset space ~
7273 \end_inset
7274
7275 footnote
7276 \family default
7277
7278 \family sans
7279 Author
7280 \begin_inset space ~
7281 \end_inset
7282
7283 footnote
7284 \family default
7285
7286 \family sans
7287 Corresponding
7288 \begin_inset space ~
7289 \end_inset
7290
7291 author
7292 \family default
7293
7294 \family sans
7295 Address
7296 \family default
7297
7298 \family sans
7299 Email
7300 \family default
7301  and 
7302 \family sans
7303 Keywords
7304 \family default
7305 .
7306  A template is available in the menu 
7307 \family sans
7308 \bar under
7309 F
7310 \bar default
7311 ile\SpecialChar menuseparator
7312 New
7313 \begin_inset space ~
7314 \end_inset
7315
7316 fro
7317 \bar under
7318 m
7319 \bar default
7320
7321 \begin_inset space ~
7322 \end_inset
7323
7324 Template
7325 \lang english
7326 \SpecialChar menuseparator
7327 Articles\SpecialChar menuseparator
7328 Elsevier
7329 \family default
7330 \lang american
7331 .
7332  It has been customized with further environments and contains all the informati
7333 on you may need.
7334  However, the documentation is also available from 
7335 \begin_inset CommandInset href
7336 LatexCommand href
7337 name "CTAN"
7338 target "http://mirrors.ctan.org/macros/latex/contrib/elsarticle/doc/elsdoc.pdf"
7339 literal "false"
7340
7341 \end_inset
7342
7343 .
7344 \end_layout
7345
7346 \begin_layout Subsection
7347
7348 \change_inserted 564990737 1671042046
7349
7350 \lang american
7351 Paper
7352 \end_layout
7353
7354 \begin_layout Standard
7355
7356 \change_inserted 564990737 1671042046
7357
7358 \lang american
7359 The document class 
7360 \family sans
7361 article
7362 \begin_inset space \thinspace{}
7363 \end_inset
7364
7365 (paper)
7366 \family default
7367  provides an alternative to the 
7368 \family typewriter
7369 article.cls
7370 \family default
7371  document class.
7372  It provides similar functionality, but you might prefer this layout with
7373  sans serif sections, headings, and more.
7374 \end_layout
7375
7376 \begin_layout Subsection
7377 Rev\SpecialChar TeX
7378 4
7379 \end_layout
7380
7381 \begin_layout Standard
7382 by 
7383 \noun on
7384 Amir Karger
7385 \end_layout
7386
7387 \begin_layout Standard
7388 \begin_inset VSpace bigskip
7389 \end_inset
7390
7391
7392 \end_layout
7393
7394 \begin_layout Standard
7395 \noindent
7396 The 
7397 \family sans
7398 Revtex
7399 \begin_inset space ~
7400 \end_inset
7401
7402 4
7403 \family default
7404  textclass works with the American Physical Sociey's Rev\SpecialChar TeX
7405  4.0 (the 
7406 \begin_inset Formula $\beta$
7407 \end_inset
7408
7409  release of May, 1999) class.
7410 \end_layout
7411
7412 \begin_layout Standard
7413 \SpecialChar LyX
7414  has a 
7415 \family sans
7416 Revtex
7417 \family default
7418  textclass, which works with Rev\SpecialChar TeX
7419  3.1.
7420  However, v3.1 is basically obsolete, as it works with \SpecialChar LaTeX
7421  2.09.
7422  That means that it doesn't interact very well with \SpecialChar LyX
7423 , which requires \SpecialChar LaTeX2e
7424 , although
7425  it has been kludged to work.
7426  Since Rev\SpecialChar TeX
7427  4.0 has been designed to work much more cleanly with \SpecialChar LaTeX2e
7428 , \SpecialChar LyX
7429  with the
7430  
7431 \family sans
7432 Rev\SpecialChar TeX
7433
7434 \begin_inset space ~
7435 \end_inset
7436
7437 4
7438 \family default
7439  textclass should also be pretty easy to use.
7440 \end_layout
7441
7442 \begin_layout Standard
7443 These documents are supposed to be used in 
7444 \emph on
7445 addition
7446 \emph default
7447  to the Rev\SpecialChar TeX
7448  4.0 documents, so we don't describe any of the special Rev\SpecialChar TeX
7449  macros,
7450  and assume you'll know what to put in the preamble if necessary.
7451 \end_layout
7452
7453 \begin_layout Subsubsection
7454 Installation
7455 \end_layout
7456
7457 \begin_layout Standard
7458 All you need to do is install Rev\SpecialChar TeX
7459  4, as described in the package's README
7460  file.
7461  The package can be found at The Rev\SpecialChar TeX
7462  4 Web Site 
7463 \begin_inset Flex URL
7464 status collapsed
7465
7466 \begin_layout Plain Layout
7467
7468 http://publish.aps.org/revtex4/
7469 \end_layout
7470
7471 \end_inset
7472
7473 .
7474  Install it somewhere that \SpecialChar LaTeX
7475  can see it.
7476  Test it by trying to \SpecialChar LaTeX
7477  a short Rev\SpecialChar TeX
7478  4 document in some random directory (i.
7479 \begin_inset space \thinspace{}
7480 \end_inset
7481
7482 e.
7483 \begin_inset space \space{}
7484 \end_inset
7485
7486 not the directory where you installed the class file.) Then, if you reconfigure
7487  \SpecialChar LyX
7488 , it will find the class file and let you use the Rev\SpecialChar TeX
7489 4 textclass.
7490 \end_layout
7491
7492 \begin_layout Standard
7493 Probably the easiest way to get started is either to import a Rev\SpecialChar TeX
7494  4 document
7495  using 
7496 \family typewriter
7497 tex2lyx
7498 \family default
7499 , or to use the 
7500 \family sans
7501 Revtex
7502 \begin_inset space ~
7503 \end_inset
7504
7505 4
7506 \family default
7507  template, found in the templates directory.
7508 \end_layout
7509
7510 \begin_layout Subsubsection
7511 Preamble Matter
7512 \end_layout
7513
7514 \begin_layout Standard
7515 Optional arguments to 
7516 \family typewriter
7517
7518 \backslash
7519 documentclass
7520 \family default
7521 , like 
7522 \begin_inset Quotes eld
7523 \end_inset
7524
7525 preprint
7526 \begin_inset Quotes erd
7527 \end_inset
7528
7529  and 
7530 \begin_inset Quotes eld
7531 \end_inset
7532
7533 aps
7534 \begin_inset Quotes erd
7535 \end_inset
7536
7537 , go in the 
7538 \family sans
7539 Extra
7540 \begin_inset space ~
7541 \end_inset
7542
7543 Options
7544 \family default
7545  field in the 
7546 \family sans
7547 Document
7548 \begin_inset space ~
7549 \end_inset
7550
7551 Layout
7552 \family default
7553  dialog, as usual.
7554  Remember that in Rev\SpecialChar TeX
7555 , at least one optional argument is required! 
7556 \end_layout
7557
7558 \begin_layout Standard
7559 Other preamble matter, like 
7560 \family typewriter
7561
7562 \backslash
7563 draft
7564 \family default
7565  etc.
7566 \begin_inset space ~
7567 \end_inset
7568
7569 goes in the 
7570 \family sans
7571 \SpecialChar LaTeX
7572
7573 \begin_inset space ~
7574 \end_inset
7575
7576 Preamble
7577 \family default
7578  dialog, also as usual.
7579 \end_layout
7580
7581 \begin_layout Subsubsection
7582 Layouts
7583 \end_layout
7584
7585 \begin_layout Standard
7586 The layouts basically correspond to the commands in Rev\SpecialChar TeX
7587 4.0.
7588  For example, the Email layout corresponds to 
7589 \family typewriter
7590
7591 \backslash
7592 email{}
7593 \family default
7594 .
7595  Note that (at least as of Rev\SpecialChar TeX
7596  4.0 Beta), the 
7597 \family sans
7598 Address
7599 \family default
7600  and 
7601 \family sans
7602 Affiliation
7603 \family default
7604  layouts are exactly equivalent, so you shouldn't need to use both.
7605 \begin_inset Foot
7606 status collapsed
7607
7608 \begin_layout Plain Layout
7609 In case you're curious, both were included so that 
7610 \family typewriter
7611 tex2lyx
7612 \family default
7613  would be able to translate both 
7614 \family typewriter
7615
7616 \backslash
7617 address
7618 \family default
7619  and 
7620 \family typewriter
7621
7622 \backslash
7623 affiliation
7624 \family default
7625 .
7626 \end_layout
7627
7628 \end_inset
7629
7630
7631 \end_layout
7632
7633 \begin_layout Subsubsection
7634 Important Notes
7635 \end_layout
7636
7637 \begin_layout Standard
7638 There are a couple of important unique aspects of Rev\SpecialChar TeX
7639  4 which might cause
7640  bugs that will be even more confusing in \SpecialChar LyX
7641 .
7642 \end_layout
7643
7644 \begin_layout Standard
7645 In Rev\SpecialChar TeX
7646 , the 
7647 \family typewriter
7648
7649 \backslash
7650 thanks
7651 \family default
7652  command goes 
7653 \emph on
7654 outside
7655 \emph default
7656  the 
7657 \family typewriter
7658
7659 \backslash
7660 author
7661 \family default
7662  command.
7663  The \SpecialChar LyX
7664  equivalent is that there is a separate Thanks layout.
7665  Do 
7666 \emph on
7667 not
7668 \emph default
7669  write footnotes in the 
7670 \family sans
7671 Author
7672 \family default
7673  layout, or weird things may happen.
7674  See the Rev\SpecialChar TeX
7675  4 documentation for more details.
7676 \end_layout
7677
7678 \begin_layout Standard
7679 Also, the 
7680 \family sans
7681 Author
7682 \begin_inset space ~
7683 \end_inset
7684
7685 Email
7686 \family default
7687
7688 \family sans
7689 Author
7690 \begin_inset space ~
7691 \end_inset
7692
7693 URL
7694 \family default
7695 , and 
7696 \family sans
7697 Thanks
7698 \family default
7699  layouts must be placed 
7700 \emph on
7701 in between
7702 \emph default
7703  the 
7704 \family sans
7705 Author
7706 \family default
7707  layout and the corresponding 
7708 \family sans
7709 Address
7710 \family default
7711  (or equivalent 
7712 \family sans
7713 Affiliation
7714 \family default
7715 ) layout.
7716  If you put the 
7717 \family sans
7718 Thanks
7719 \family default
7720  after the 
7721 \family sans
7722 Address
7723 \family default
7724 , the \SpecialChar LaTeX
7725  won't compile.
7726 \end_layout
7727
7728 \begin_layout Subsection
7729
7730 \change_inserted 564990737 1671042072
7731
7732 \lang american
7733 Springer Journals
7734 \end_layout
7735
7736 \begin_layout Standard
7737
7738 \change_inserted 564990737 1671042072
7739
7740 \lang american
7741 All the 
7742 \family sans
7743 svj*
7744 \family default
7745  classes were replaced in 2013 with a completely new 
7746 \family sans
7747 sr-vorl.cls
7748 \family default
7749 .
7750  This package provides a \SpecialChar LaTeX
7751  class and templates for books to be published
7752  at Springer Gabler Research, Springer Vieweg Research, Springer Spektrum
7753  Research, Springer VS Research, or Springer VS Forschung.
7754  The documentation is available in German from 
7755 \begin_inset CommandInset href
7756 LatexCommand href
7757 name "CTAN"
7758 target "http://mirrors.ctan.org/macros/latex/contrib/springer/sr-vorl/sr-vorl.pdf"
7759 literal "false"
7760
7761 \end_inset
7762
7763 .
7764 \end_layout
7765
7766 \begin_layout Section
7767
7768 \change_inserted 564990737 1670439560
7769 Books
7770 \end_layout
7771
7772 \begin_layout Standard
7773
7774 \change_inserted 564990737 1670439581
7775 See also the document classes in the Collections (section
7776 \begin_inset space ~
7777 \end_inset
7778
7779
7780 \begin_inset CommandInset ref
7781 LatexCommand ref
7782 reference "sec:Collections"
7783
7784 \end_inset
7785
7786 ).
7787 \end_layout
7788
7789 \begin_layout Subsection
7790 Memoir
7791 \end_layout
7792
7793 \begin_layout Standard
7794 By 
7795 \noun on
7796 Jürgen Spitzmüller
7797 \end_layout
7798
7799 \begin_layout Subsubsection
7800 Overview
7801 \end_layout
7802
7803 \begin_layout Standard
7804 Memoir is a very powerful and constantly evolving class.
7805  It has been designed with regard to fictional and non-fictional literature.
7806  Its aim is to let the user have maximum control over the typesetting of
7807  his document.
7808  Memoir is based on the standard book class, but it can also emulate the
7809  article class (see below).
7810 \end_layout
7811
7812 \begin_layout Standard
7813 Peter Wilson, the developer of Memoir, is known as the author of lots of
7814  useful packages in the \SpecialChar LaTeX
7815  world.
7816  Most of them have been merged with Memoir.
7817  Therefore, it is much easier to layout the table of contents, appendices,
7818  chapter designs and such.
7819  \SpecialChar LyX
7820 , though, does not support all of these goodies natively.
7821  Some of them might be added to forthcoming releases
7822 \begin_inset Foot
7823 status collapsed
7824
7825 \begin_layout Plain Layout
7826 You are invited to send suggestions to 
7827 \begin_inset Flex URL
7828 status collapsed
7829
7830 \begin_layout Plain Layout
7831
7832 lyx-devel@lists.lyx.org
7833 \end_layout
7834
7835 \end_inset
7836
7837 .
7838 \end_layout
7839
7840 \end_inset
7841
7842 , lots will probably never be supported, due to the limitations of \SpecialChar LyX
7843 's framework.
7844  Of course you can still use all features with the help of some native \SpecialChar LaTeX
7845
7846  commands (\SpecialChar TeX
7847  code
7848 \begin_inset Foot
7849 status collapsed
7850
7851 \begin_layout Plain Layout
7852 Cf.
7853 \begin_inset ERT
7854 status collapsed
7855
7856 \begin_layout Plain Layout
7857
7858
7859 \backslash
7860  
7861 \end_layout
7862
7863 \end_inset
7864
7865 section
7866 \begin_inset space ~
7867 \end_inset
7868
7869
7870 \begin_inset CommandInset ref
7871 LatexCommand ref
7872 reference "sec:Inserting-TeX-Code"
7873
7874 \end_inset
7875
7876  for details.
7877 \end_layout
7878
7879 \end_inset
7880
7881 ).
7882  In this section, we can only list those features that are natively supported
7883  by \SpecialChar LyX
7884 .
7885  For detailed descriptions (and for the rest of features) we recommend you
7886  have a look at the detailed manual of the Memoir class
7887 \begin_inset Foot
7888 status collapsed
7889
7890 \begin_layout Plain Layout
7891 Cf.
7892 \begin_inset ERT
7893 status collapsed
7894
7895 \begin_layout Plain Layout
7896
7897
7898 \backslash
7899  
7900 \end_layout
7901
7902 \end_inset
7903
7904
7905 \begin_inset Flex URL
7906 status collapsed
7907
7908 \begin_layout Plain Layout
7909
7910 CTAN:/macros/latex/memoir/memman.pdf
7911 \end_layout
7912
7913 \end_inset
7914
7915 .
7916 \end_layout
7917
7918 \end_inset
7919
7920 , which is not only a user guide for the class, but also both a comprehensive
7921  description on good typesetting and a superb example for good typesetting
7922  itself.
7923 \end_layout
7924
7925 \begin_layout Subsubsection
7926 Basic features and restrictions
7927 \end_layout
7928
7929 \begin_layout Standard
7930 Memoir supports basically all features of the standard book classes.
7931  There are, however, some differences, as follows:
7932 \end_layout
7933
7934 \begin_layout Description
7935 Font
7936 \begin_inset space ~
7937 \end_inset
7938
7939 sizes: Memoir has a broader range of font sizes: 9, 10, 11, 12, 14, 17
7940 \end_layout
7941
7942 \begin_layout Description
7943 Page
7944 \begin_inset space ~
7945 \end_inset
7946
7947 style: The fancy page style is not supported, due to a command clash between
7948  Memoir and the fancyhdr package (they both define a command with the same
7949  name, which confuses \SpecialChar LaTeX
7950 ).
7951  Instead, Memoir comes with a number of its own page styles (see 
7952 \family sans
7953 Document\SpecialChar menuseparator
7954 Settings\SpecialChar menuseparator
7955 Page
7956 \begin_inset space ~
7957 \end_inset
7958
7959 Style
7960 \family default
7961 ).
7962  If you want to use these for the chapter pages, you have to use the command
7963  
7964 \family typewriter
7965
7966 \backslash
7967 chapterstyle
7968 \family default
7969  in the main text or in preamble (e.
7970 \begin_inset space \thinspace{}
7971 \end_inset
7972
7973 g.
7974 \begin_inset space \space{}
7975 \end_inset
7976
7977
7978 \family typewriter
7979
7980 \backslash
7981 chapterstyle{companion}
7982 \family default
7983 ).
7984 \end_layout
7985
7986 \begin_layout Description
7987 Sectioning: Sectionings (chapter, section, subsection etc.) come with an
7988  optional argument in the standard classes.
7989  With this, you can specify an alternative version of the title for the
7990  table of contents and the headers (for instance, if the title is too long).
7991  In \SpecialChar LyX
7992 , you can do this via 
7993 \family sans
7994 Insert\SpecialChar menuseparator
7995 Short
7996 \begin_inset space ~
7997 \end_inset
7998
7999 Title
8000 \family default
8001  at the beginning of a chapter/section.
8002  Memoir features a second optional argument and thus separates the table
8003  of contents from the header.
8004  You can define three variants of a title with this: one for the main text,
8005  one for the table of contents, and one for the headers.
8006  \SpecialChar LyX
8007  makes these available in form of specific 
8008 \family sans
8009 Short Title
8010 \family default
8011  variants in the 
8012 \family sans
8013 Insert
8014 \family default
8015  menu.
8016 \end_layout
8017
8018 \begin_layout Description
8019 TOC/LOT/LOF: In the standard classes (and in many other classes), the table
8020  of contents, the list of figures and the list of table start a new page
8021  automatically.
8022  Memoir does not follow this route.
8023  You have to insert a page break yourself, if you want to have one.
8024 \end_layout
8025
8026 \begin_layout Description
8027 Titlepage: For some unknown reason, Memoir uses pagination on the title
8028  page (in the standard classes, title pages are 
8029 \begin_inset Quotes eld
8030 \end_inset
8031
8032 empty
8033 \begin_inset Quotes erd
8034 \end_inset
8035
8036 ).
8037  If you want an empty title page, type 
8038 \family typewriter
8039
8040 \backslash
8041 aliaspagestyle{title}{empty}
8042 \family default
8043  in the preamble.
8044 \end_layout
8045
8046 \begin_layout Description
8047 Article: With the class option 
8048 \emph on
8049 article
8050 \emph default
8051  (to be inserted in 
8052 \family sans
8053 Document\SpecialChar menuseparator
8054 Settings\SpecialChar menuseparator
8055 Class Settings\SpecialChar menuseparator
8056 Custom
8057 \begin_inset space ~
8058 \end_inset
8059
8060 Options
8061 \family default
8062 ), you can emulate article style.
8063  That is, counters (footnotes, figures, tables etc.) will not be reset on
8064  new chapters, chapters don't start a new page (but are—in contrary to 
8065 \begin_inset Quotes eld
8066 \end_inset
8067
8068 real
8069 \begin_inset Quotes erd
8070 \end_inset
8071
8072  article classes—still allowed), parts, though, use their own page, as in
8073  book.
8074 \end_layout
8075
8076 \begin_layout Description
8077 Oldfontcommands: By default, Memoir does not allow the use of the deprecated
8078  font commands, which have been used in the old \SpecialChar LaTeX
8079  version 2.09 (e.
8080 \begin_inset space \thinspace{}
8081 \end_inset
8082
8083 g.
8084 \begin_inset space \space{}
8085 \end_inset
8086
8087
8088 \family typewriter
8089
8090 \backslash
8091 rm
8092 \family default
8093
8094 \family typewriter
8095
8096 \backslash
8097 it
8098 \family default
8099 ).
8100  It produces an error and stops \SpecialChar LaTeX
8101  whenever such a command appears.
8102  The class option 
8103 \emph on
8104 oldfontcommands
8105 \emph default
8106  reallows the commands and spits out warnings instead (which does at least
8107  not stop \SpecialChar LaTeX
8108 ).
8109  Since a lot of packages and particularly Bib\SpecialChar TeX
8110  style files are still using
8111  those commands, we have decided to use this option by default.
8112 \end_layout
8113
8114 \begin_layout Subsubsection
8115 Extra features
8116 \end_layout
8117
8118 \begin_layout Standard
8119 We will only describe the features supported by \SpecialChar LyX
8120  (which is not much currently).
8121  Please consult the Memoir manual
8122 \begin_inset Foot
8123 status collapsed
8124
8125 \begin_layout Plain Layout
8126 Cf.
8127 \begin_inset ERT
8128 status collapsed
8129
8130 \begin_layout Plain Layout
8131
8132
8133 \backslash
8134  
8135 \end_layout
8136
8137 \end_inset
8138
8139
8140 \begin_inset Flex URL
8141 status collapsed
8142
8143 \begin_layout Plain Layout
8144
8145 CTAN:/macros/latex/memoir/memman.pdf
8146 \end_layout
8147
8148 \end_inset
8149
8150 .
8151 \end_layout
8152
8153 \end_inset
8154
8155  for details.
8156 \end_layout
8157
8158 \begin_layout Description
8159 Abstract: You may wonder why an abstract is an extra feature.
8160  Well, it is in book class.
8161  Usually books don't have abstracts.
8162  Memoir, however, has.
8163  You can use it wherever and how often you like.
8164 \end_layout
8165
8166 \begin_layout Description
8167 Chapterprecis: You may know this older typesetting style: The contents of
8168  a chapter are summarized below the title and also in the table of contents
8169  (e.
8170 \begin_inset space \thinspace{}
8171 \end_inset
8172
8173 g.
8174 \begin_inset space \space{}
8175 \end_inset
8176
8177
8178 \emph on
8179 Our hero arrives in Troia; he loses some friends; he finds others
8180 \emph default
8181 ).
8182  Chapterprecis does exactly this.
8183  It is therefore only sensible below a chapter.
8184 \end_layout
8185
8186 \begin_layout Description
8187 Epigraph: An epigraph is a smart slogan or motto at the beginning of a chapter.
8188  The epigraph environment provides an elegant way of typesetting such a
8189  motto.
8190  The motto itself (text) and its (optional) author (source) are divided
8191  by a short line.
8192  The author (source) can be inserted via 
8193 \family sans
8194 Insert\SpecialChar menuseparator
8195 Epigraph Source
8196 \family default
8197 \emph on
8198 .
8199 \end_layout
8200
8201 \begin_layout Description
8202 Poemtitle: Memoir has lots of possibilities to typeset poetry (up to very
8203  complex figurative poems).
8204  \SpecialChar LyX
8205  can only support a few of them.
8206  One is poemtitle, which is a centered title for poems, which will also
8207  be added to the table of contents (verse is the standard environment for
8208  poems.
8209  Memoir has some enhanced versions of verse, but you need to use \SpecialChar TeX
8210  code,
8211  because they have to be nested inside regular verse environments, which
8212  is not possible with \SpecialChar LyX
8213 ).
8214 \end_layout
8215
8216 \begin_layout Description
8217 Poemtitle*: Same as poemtitle, but it adds no entry to the table of contents.
8218 \end_layout
8219
8220 \begin_layout Subsection
8221
8222 \change_inserted 564990737 1671442175
8223
8224 \lang american
8225 Recipe Book
8226 \end_layout
8227
8228 \begin_layout Standard
8229
8230 \change_inserted 564990737 1671442175
8231
8232 \lang american
8233 The document class 
8234 \family typewriter
8235 RecipeBook.cls
8236 \family default
8237  uses the 
8238 \family sans
8239 book
8240 \begin_inset space \thinspace{}
8241 \end_inset
8242
8243 (KOMA-Script)
8244 \family default
8245  document class but adds two environments:
8246 \end_layout
8247
8248 \begin_layout Description
8249
8250 \change_inserted 564990737 1671442175
8251
8252 \lang american
8253 Recipe a numbered section environment at the 
8254 \family typewriter
8255 Subsubsection
8256 \family default
8257  level which generates a bold centered heading above a double horizontal
8258  rule
8259 \end_layout
8260
8261 \begin_layout Description
8262
8263 \change_inserted 564990737 1671442175
8264
8265 \lang american
8266 Ingredients a 
8267 \family typewriter
8268 Description
8269 \family default
8270  environment where 
8271 \series bold
8272 \emph on
8273 Ingredients
8274 \series default
8275 \emph default
8276  are what are being described and the environment ends with a horizontal
8277  rule.
8278 \end_layout
8279
8280 \begin_layout Standard
8281
8282 \change_inserted 564990737 1671642866
8283
8284 \family sans
8285 \lang british
8286 File\SpecialChar menuseparator
8287 Open Example\SpecialChar menuseparator
8288 Books\SpecialChar menuseparator
8289 Recipe Book
8290 \family default
8291 \lang american
8292  illustrates its use.
8293 \end_layout
8294
8295 \begin_layout Standard
8296
8297 \change_inserted 564990737 1671442175
8298
8299 \lang american
8300 It is designed for typesetting one or two recipes per page, with dimensions
8301  of 5.5
8302 \begin_inset Quotes qrd
8303 \end_inset
8304
8305  x 8.5
8306 \begin_inset Quotes qrd
8307 \end_inset
8308
8309 .
8310  The hyperlinked table of contents (ToC) and page numbers make browsing
8311  recipes convenient, and the pages can be joined together or printed 2 per
8312  page to normal letterpaper easily.
8313  The size was chosen to work in half-page 3-ring binder cover sheets, because
8314  un-laminated paper just doesn't last in the kitchen.
8315 \end_layout
8316
8317 \begin_layout Standard
8318
8319 \change_inserted 564990737 1671442175
8320
8321 \lang american
8322 The half-letter pages can be printed two per page using your printer driver,
8323  or bound together using 
8324 \family typewriter
8325 pdfjam --nup 2x1 --papersize '{11in,8.5in}'
8326 \family default
8327  
8328 \family typewriter
8329 Recipes.pdf
8330 \family default
8331  where 
8332 \family typewriter
8333 Recipes.pdf
8334 \family default
8335  is the compiled version of your recipes.
8336 \end_layout
8337
8338 \begin_layout Section
8339
8340 \change_inserted 564990737 1671442207
8341 Curricula vitarum
8342 \end_layout
8343
8344 \begin_layout Subsection
8345
8346 \change_inserted 564990737 1671442208
8347
8348 \lang american
8349 Europass
8350 \end_layout
8351
8352 \begin_layout Standard
8353
8354 \change_inserted 564990737 1671642942
8355
8356 \lang american
8357 The document class 
8358 \family sans
8359 curriculum
8360 \begin_inset space \space{}
8361 \end_inset
8362
8363 vitae
8364 \begin_inset space \thinspace{}
8365 \end_inset
8366
8367 (Europass)
8368 \family default
8369  provides the 
8370 \family typewriter
8371 europasscv.cls
8372 \family default
8373  document class, an unofficial implementation of the ‘Europass CV’ recommended
8374  by the European Commission in 2013.
8375  
8376 \family sans
8377 \lang british
8378 File\SpecialChar menuseparator
8379 Open Example\SpecialChar menuseparator
8380 Curricula Vitae\SpecialChar menuseparator
8381 Europass CV (2013)
8382 \family default
8383 \lang american
8384  offers guidance on its use.
8385  Its documentation is available from 
8386 \begin_inset CommandInset href
8387 LatexCommand href
8388 name "CTAN"
8389 target "http://mirrors.ctan.org/macros/latex/contrib/europasscv/europasscv.pdf"
8390 literal "false"
8391
8392 \end_inset
8393
8394 .
8395 \end_layout
8396
8397 \begin_layout Subsection
8398
8399 \change_inserted 564990737 1671442208
8400
8401 \lang american
8402 European
8403 \end_layout
8404
8405 \begin_layout Standard
8406
8407 \change_inserted 564990737 1671642984
8408
8409 \lang american
8410 The document class 
8411 \family sans
8412 curriculum
8413 \begin_inset space \space{}
8414 \end_inset
8415
8416 vitae
8417 \begin_inset space \thinspace{}
8418 \end_inset
8419
8420 (Europe)
8421 \family default
8422  provides the 
8423 \family typewriter
8424 europecv.cls
8425 \family default
8426  document class, an unofficial implementation of the “Europass CV” recommended
8427  by the European Commission in 2002.
8428  
8429 \family sans
8430 \lang british
8431 File\SpecialChar menuseparator
8432 Open Example\SpecialChar menuseparator
8433 Curricula Vitae\SpecialChar menuseparator
8434 Europe CV
8435 \family default
8436 \lang american
8437  offers guidance on its use.
8438  Its documentation is available from 
8439 \begin_inset CommandInset href
8440 LatexCommand href
8441 name "CTAN"
8442 target "http://mirrors.ctan.org/macros/latex/contrib/europecv/europecv.pdf"
8443 literal "false"
8444
8445 \end_inset
8446
8447 .
8448 \end_layout
8449
8450 \begin_layout Subsection
8451
8452 \change_inserted 564990737 1671442208
8453
8454 \lang american
8455 Modern
8456 \end_layout
8457
8458 \begin_layout Standard
8459
8460 \change_inserted 564990737 1671643003
8461
8462 \lang american
8463 The document class 
8464 \family sans
8465 curriculum
8466 \begin_inset space \space{}
8467 \end_inset
8468
8469 vitae
8470 \begin_inset space \thinspace{}
8471 \end_inset
8472
8473 (modern)
8474 \family default
8475  provides the 
8476 \family typewriter
8477 moderncv.cls
8478 \family default
8479  document class.
8480  This allows the creation of customizable CVs.
8481  
8482 \family sans
8483 \lang british
8484 File\SpecialChar menuseparator
8485 Open Example\SpecialChar menuseparator
8486 Curricula Vitae\SpecialChar menuseparator
8487 Modern CV
8488 \family default
8489 \lang american
8490  offers guidance on its use.
8491  Its documentation is available from 
8492 \begin_inset CommandInset href
8493 LatexCommand href
8494 name "CTAN"
8495 target "http://mirrors.ctan.org/macros/latex/contrib/moderncv/manual/moderncv_userguide.pdf"
8496 literal "false"
8497
8498 \end_inset
8499
8500 .
8501 \end_layout
8502
8503 \begin_layout Subsection
8504
8505 \change_inserted 564990737 1671442208
8506
8507 \lang american
8508 Simple
8509 \end_layout
8510
8511 \begin_layout Standard
8512
8513 \change_inserted 564990737 1671643024
8514
8515 \lang american
8516 The document class 
8517 \family sans
8518 curriculum
8519 \begin_inset space \space{}
8520 \end_inset
8521
8522 vitae
8523 \begin_inset space \thinspace{}
8524 \end_inset
8525
8526 (simple)
8527 \family default
8528  provides the 
8529 \family typewriter
8530 simplecv.cls
8531 \family default
8532  document class, originally developed for use with \SpecialChar LyX
8533 .
8534  
8535 \family sans
8536 \lang british
8537 File\SpecialChar menuseparator
8538 Open Example\SpecialChar menuseparator
8539 Curricula Vitae\SpecialChar menuseparator
8540 Simple CV
8541 \family default
8542 \lang american
8543  offers guidance on its use.
8544  Its documentation is available from 
8545 \begin_inset CommandInset href
8546 LatexCommand href
8547 name "CTAN"
8548 target "http://mirrors.ctan.org/macros/latex/contrib/simplecv/simplecv.pdf"
8549 literal "false"
8550
8551 \end_inset
8552
8553
8554 \end_layout
8555
8556 \begin_layout Section
8557
8558 \change_inserted 564990737 1671041968
8559 Letters
8560 \end_layout
8561
8562 \begin_layout Subsection
8563
8564 \change_inserted 564990737 1671041970
8565
8566 \lang american
8567 Din-Brief
8568 \end_layout
8569
8570 \begin_layout Standard
8571
8572 \change_inserted 564990737 1671617528
8573
8574 \lang american
8575 The document class 
8576 \family sans
8577 Din-Brief
8578 \family default
8579  provides the 
8580 \family typewriter
8581 dinbrief.cls
8582 \family default
8583  document class for writing letters according to the 
8584 \emph on
8585 Deutsches Institut für Normung
8586 \emph default
8587  conventions.
8588  The file in the menu 
8589 \family sans
8590 \bar under
8591 F
8592 \bar default
8593 ile\SpecialChar menuseparator
8594 New
8595 \begin_inset space ~
8596 \end_inset
8597
8598 fro
8599 \bar under
8600 m
8601 \bar default
8602
8603 \begin_inset space ~
8604 \end_inset
8605
8606 Template\SpecialChar menuseparator
8607 Letters\SpecialChar menuseparator
8608 DIN-Brief
8609 \family default
8610  offers guidance on its use.
8611  The documentation is available from 
8612 \begin_inset CommandInset href
8613 LatexCommand href
8614 name "CTAN"
8615 target "http://mirrors.ctan.org/macros/latex/contrib/dinbrief/liesmich"
8616 literal "false"
8617
8618 \end_inset
8619
8620 .
8621 \end_layout
8622
8623 \begin_layout Subsection
8624
8625 \change_inserted 564990737 1671458835
8626
8627 \lang american
8628 letter
8629 \end_layout
8630
8631 \begin_layout Standard
8632
8633 \change_inserted 564990737 1671617591
8634
8635 \lang american
8636 The document class 
8637 \family sans
8638 letter
8639 \family default
8640  provides the 
8641 \family sans
8642 letter.cls
8643 \family default
8644  document class for English letters and to create mailing labels.
8645  The file in the menu 
8646 \family sans
8647 \bar under
8648 F
8649 \bar default
8650 ile\SpecialChar menuseparator
8651 New
8652 \begin_inset space ~
8653 \end_inset
8654
8655 fro
8656 \bar under
8657 m
8658 \bar default
8659
8660 \begin_inset space ~
8661 \end_inset
8662
8663 Template\SpecialChar menuseparator
8664 Letters\SpecialChar menuseparator
8665 Letter (Standard Class)
8666 \family default
8667  offers guidance on its use.
8668 \end_layout
8669
8670 \begin_layout Section
8671
8672 \change_inserted 564990737 1670439660
8673 Presentations
8674 \end_layout
8675
8676 \begin_layout Subsection
8677
8678 \change_inserted 564990737 1671458922
8679
8680 \lang american
8681 Beamer
8682 \end_layout
8683
8684 \begin_layout Standard
8685
8686 \change_inserted 564990737 1671617655
8687
8688 \lang american
8689 The document class 
8690 \family sans
8691 presentation
8692 \begin_inset space \thinspace{}
8693 \end_inset
8694
8695 (beamer)
8696 \family default
8697  uses the 
8698 \family typewriter
8699 beamer.cls
8700 \family default
8701  document class for creating presentations.
8702  The file in the menu 
8703 \family sans
8704 \bar under
8705 F
8706 \bar default
8707 ile\SpecialChar menuseparator
8708 New
8709 \begin_inset space ~
8710 \end_inset
8711
8712 fro
8713 \bar under
8714 m
8715 \bar default
8716
8717 \begin_inset space ~
8718 \end_inset
8719
8720 Template\SpecialChar menuseparator
8721 Presentations\SpecialChar menuseparator
8722 Beamer
8723 \family default
8724  offers guidance on its use.
8725  The documentation is available from 
8726 \begin_inset CommandInset href
8727 LatexCommand href
8728 name "CTAN"
8729 target "http://mirrors.ctan.org/macros/latex/contrib/beamer/doc/beameruserguide.pdf"
8730 literal "false"
8731
8732 \end_inset
8733
8734 .
8735 \end_layout
8736
8737 \begin_layout Subsection
8738 Foils [aka 
8739 \family sans
8740 Foil\SpecialChar TeX
8741
8742 \family default
8743 ]
8744 \begin_inset CommandInset label
8745 LatexCommand label
8746 name "sec:foiltex"
8747
8748 \end_inset
8749
8750
8751 \end_layout
8752
8753 \begin_layout Standard
8754 by 
8755 \noun on
8756 Allan Rae
8757 \end_layout
8758
8759 \begin_layout Subsubsection
8760 Introduction
8761 \end_layout
8762
8763 \begin_layout Standard
8764 This section describes how to use \SpecialChar LyX
8765  to make slides for overhead projectors.
8766  There are two document classes that can do this: the default slides class
8767  and the 
8768 \family sans
8769 Foil\SpecialChar TeX
8770
8771 \family default
8772  slides class.
8773  This section documents the latter.
8774 \end_layout
8775
8776 \begin_layout Standard
8777 I'm going to say this again, nice and clear, so that there's no misunderstanding
8778 :
8779 \end_layout
8780
8781 \begin_layout Standard
8782 \begin_inset VSpace bigskip
8783 \end_inset
8784
8785
8786 \end_layout
8787
8788 \begin_layout Standard
8789 \align center
8790
8791 \size large
8792 This section documents the class 
8793 \begin_inset Quotes eld
8794 \end_inset
8795
8796
8797 \family sans
8798 FoilTeX
8799 \family default
8800
8801 \begin_inset Quotes erd
8802 \end_inset
8803
8804  
8805 \emph on
8806 only.
8807 \end_layout
8808
8809 \begin_layout Standard
8810 \begin_inset VSpace bigskip
8811 \end_inset
8812
8813
8814 \end_layout
8815
8816 \begin_layout Standard
8817 If you're looking for the documentation for 
8818 \begin_inset Quotes eld
8819 \end_inset
8820
8821
8822 \family sans
8823 slides (default)
8824 \family default
8825
8826 \begin_inset Quotes erd
8827 \end_inset
8828
8829 , check out section
8830 \begin_inset space ~
8831 \end_inset
8832
8833
8834 \begin_inset CommandInset ref
8835 LatexCommand ref
8836 reference "sec:slitex"
8837
8838 \end_inset
8839
8840 .
8841  If your machine doesn't have the 
8842 \family sans
8843 foils
8844 \family default
8845  class 
8846 \family sans
8847 FoilTeX
8848 \family default
8849  installed, you'll probably have to use the default 
8850 \family sans
8851 slides
8852 \family default
8853  class, which isn't quite as good as 
8854 \family sans
8855 foils.
8856 \end_layout
8857
8858 \begin_layout Standard
8859 The 
8860 \family sans
8861 foils
8862 \family default
8863  class is designed for use with version
8864 \begin_inset space ~
8865 \end_inset
8866
8867 2.1 of the 
8868 \family sans
8869 foils.cls
8870 \family default
8871  \SpecialChar LaTeX
8872  class file which is now an integral part of \SpecialChar LaTeX2e
8873 .
8874 \end_layout
8875
8876 \begin_layout Subsubsection
8877 Getting Started
8878 \end_layout
8879
8880 \begin_layout Standard
8881 Obviously, to use this document class, you need to select 
8882 \family sans
8883 FoilTeX
8884 \family default
8885  from the 
8886 \family sans
8887 Class
8888 \family default
8889  entry in the 
8890 \family sans
8891 Document
8892 \begin_inset space ~
8893 \end_inset
8894
8895 Layout
8896 \family default
8897  dialog.
8898  There are some settings in the 
8899 \family sans
8900 Document
8901 \begin_inset space ~
8902 \end_inset
8903
8904 Layout
8905 \family default
8906  dialog that you should know about that are specific to this class:
8907 \end_layout
8908
8909 \begin_layout Itemize
8910 Don't change the options 
8911 \family sans
8912 Sides
8913 \family default
8914  and 
8915 \family sans
8916 Columns
8917 \family default
8918  on the 
8919 \family sans
8920 Document
8921 \begin_inset space ~
8922 \end_inset
8923
8924 Layout
8925 \family default
8926  dialog.
8927  They're ignored by the 
8928 \family sans
8929 foils
8930 \family default
8931  class.
8932 \end_layout
8933
8934 \begin_layout Itemize
8935 The default font size is 20
8936 \begin_inset space \thinspace{}
8937 \end_inset
8938
8939 pt with the other options being 17
8940 \begin_inset space \thinspace{}
8941 \end_inset
8942
8943 pt, 25
8944 \begin_inset space \thinspace{}
8945 \end_inset
8946
8947 pt and 30
8948 \begin_inset space \thinspace{}
8949 \end_inset
8950
8951 pt.
8952 \end_layout
8953
8954 \begin_layout Itemize
8955 The default font is 
8956 \family sans
8957 sans
8958 \family default
8959  
8960 \family sans
8961 serif
8962 \family default
8963  but all math equations are still typeset in the usual roman font.
8964 \end_layout
8965
8966 \begin_layout Itemize
8967
8968 \family sans
8969 Foil\SpecialChar TeX
8970
8971 \family default
8972  supports A4 and Letter paper sizes as well as a special size for working
8973  with 35
8974 \begin_inset space \thinspace{}
8975 \end_inset
8976
8977 mm slides.
8978  It doesn't support A5, B5, legal or executive paper sizes.
8979 \end_layout
8980
8981 \begin_layout Itemize
8982 Don't bother changing the 
8983 \family sans
8984 Float Placement
8985 \family default
8986  settings because they are ignored anyway.
8987  All floats appear where they are defined in the text.
8988 \end_layout
8989
8990 \begin_layout Itemize
8991 The 
8992 \family sans
8993 Pagestyle
8994 \family default
8995  setting behaves a bit differently for this class.
8996  
8997 \family sans
8998 Foil\SpecialChar TeX
8999
9000 \family default
9001  provides extensive footer and header capabilities including a user-defined
9002  logo.
9003  See section
9004 \begin_inset space ~
9005 \end_inset
9006
9007
9008 \begin_inset CommandInset ref
9009 LatexCommand ref
9010 reference "sec:foilfoot"
9011
9012 \end_inset
9013
9014  for more details.
9015  The title page is treated differently to all other pages in the document
9016  and is 
9017 \emph on
9018 always
9019 \emph default
9020  unnumbered and 
9021 \emph on
9022 always
9023 \emph default
9024  has the logo centered at the bottom of the page (if one is defined).
9025  The possible page style choices and what they do are as follows:
9026 \end_layout
9027
9028 \begin_deeper
9029 \begin_layout Labeling
9030 \labelwidthstring MMMMMMM
9031
9032 \family sans
9033 \series bold
9034 empty
9035 \family default
9036 \series default
9037  The final output contains no page numbers, or other headers or footers
9038  (except footnotes of course).
9039  
9040 \end_layout
9041
9042 \begin_layout Labeling
9043 \labelwidthstring MMMMMMM
9044
9045 \family sans
9046 \series bold
9047 plain
9048 \family default
9049 \series default
9050  The final output contains page numbers centered at the bottom of the page.
9051  No other headings or footers (other than footnotes).
9052 \end_layout
9053
9054 \begin_layout Labeling
9055 \labelwidthstring MMMMMMM
9056
9057 \series bold
9058 foilheadings
9059 \series default
9060  Page numbers in lower right corner.
9061  Additional headers and footers are also shown.
9062  This is also the default.
9063 \end_layout
9064
9065 \begin_layout Labeling
9066 \labelwidthstring MMMMMMM
9067
9068 \series bold
9069 fancy
9070 \series default
9071  Gives you access to the 
9072 \family sans
9073 fancyheadings
9074 \family default
9075  package although its use with 
9076 \family sans
9077 Foil\SpecialChar TeX
9078
9079 \family default
9080  is discouraged by the writer of the 
9081 \family sans
9082 Foil\SpecialChar TeX
9083
9084 \family default
9085  package because of some potential page layout clashes.
9086 \end_layout
9087
9088 \end_deeper
9089 \begin_layout Paragraph
9090 Extra Options
9091 \end_layout
9092
9093 \begin_layout Standard
9094 The following options may be used in the extra class options in the 
9095 \family sans
9096 Document\SpecialChar menuseparator
9097 Settings
9098 \family default
9099  dialog.
9100 \end_layout
9101
9102 \begin_layout Labeling
9103 \labelwidthstring MMMMMMx
9104
9105 \series bold
9106 35mmSlide
9107 \series default
9108  This sets up the page layout for 7.33
9109 \begin_inset space \thinspace{}
9110 \end_inset
9111
9112 in by 11
9113 \begin_inset space \thinspace{}
9114 \end_inset
9115
9116 in paper, which is about the same aspect ratio as a 35
9117 \begin_inset space \thinspace{}
9118 \end_inset
9119
9120 mm slide, making it a bit easier to work with this medium.
9121 \end_layout
9122
9123 \begin_layout Labeling
9124 \labelwidthstring MMMMMMx
9125
9126 \series bold
9127 headrule
9128 \series default
9129  Places a rule across the page below the header on every page except the
9130  title page.
9131 \end_layout
9132
9133 \begin_layout Labeling
9134 \labelwidthstring MMMMMMx
9135
9136 \series bold
9137 footrule
9138 \series default
9139  Places a rule across the page above the footer on every page except the
9140  title page.
9141 \end_layout
9142
9143 \begin_layout Labeling
9144 \labelwidthstring MMMMMMx
9145
9146 \series bold
9147 dvips
9148 \series default
9149  This is automatically set each time you create a new 
9150 \family sans
9151 foils
9152 \family default
9153  document.
9154  This option tells 
9155 \family sans
9156 Foil\SpecialChar TeX
9157
9158 \family default
9159  to use the dvips driver to rotate those pages that are set as landscape
9160  foils.
9161 \end_layout
9162
9163 \begin_layout Labeling
9164 \labelwidthstring MMMMMMx
9165
9166 \series bold
9167 landscape
9168 \series default
9169  Simply changes the page dimensions to those of a landscape page but doesn't
9170  do any rotation.
9171  Thus if you use this option you need to use an external program to rotate
9172  each page or feed your paper through your printer as landscape.
9173  Note that this option effectively reverses the roles of the 
9174 \family sans
9175 Foilhead
9176 \family default
9177  and 
9178 \family sans
9179 Rotatefoilhead
9180 \family default
9181  environments (don't worry these are described in the next section).
9182 \end_layout
9183
9184 \begin_layout Labeling
9185 \labelwidthstring MMMMMMx
9186
9187 \series bold
9188 leqno
9189 \series default
9190  Equation numbers on the left.
9191 \end_layout
9192
9193 \begin_layout Labeling
9194 \labelwidthstring MMMMMMx
9195
9196 \series bold
9197 fleqn
9198 \series default
9199  Flush-left equations.
9200 \end_layout
9201
9202 \begin_layout Subsubsection
9203 Supported Environments
9204 \end_layout
9205
9206 \begin_layout Standard
9207 Most of the environments commonly supported in other classes are also supported
9208  by the 
9209 \family sans
9210 foils
9211 \family default
9212  class.
9213  There are several additional environments provided by 
9214 \family sans
9215 Foil\SpecialChar TeX
9216
9217 \family default
9218  as well as a couple added by \SpecialChar LyX
9219 .
9220  The following environments are shared with other classes:
9221 \end_layout
9222
9223 \begin_layout Standard
9224 \begin_inset Flex Multiple Columns
9225 status open
9226
9227 \begin_layout Itemize
9228
9229 \family sans
9230 Standard
9231 \end_layout
9232
9233 \begin_layout Itemize
9234
9235 \family sans
9236 Itemize
9237 \end_layout
9238
9239 \begin_layout Itemize
9240
9241 \family sans
9242 Enumerate
9243 \end_layout
9244
9245 \begin_layout Itemize
9246
9247 \family sans
9248 Description
9249 \end_layout
9250
9251 \begin_layout Itemize
9252
9253 \family sans
9254 List
9255 \end_layout
9256
9257 \begin_layout Itemize
9258
9259 \family sans
9260 \SpecialChar LyX
9261 -Code
9262 \end_layout
9263
9264 \begin_layout Itemize
9265
9266 \family sans
9267 Verse
9268 \end_layout
9269
9270 \begin_layout Itemize
9271
9272 \family sans
9273 Quote
9274 \end_layout
9275
9276 \begin_layout Itemize
9277
9278 \family sans
9279 Quotation
9280 \end_layout
9281
9282 \begin_layout Itemize
9283
9284 \family sans
9285 TitleAuthor
9286 \end_layout
9287
9288 \begin_layout Itemize
9289
9290 \family sans
9291 Date
9292 \end_layout
9293
9294 \begin_layout Itemize
9295
9296 \family sans
9297 Abstract
9298 \end_layout
9299
9300 \begin_layout Itemize
9301
9302 \family sans
9303 Bibliography
9304 \end_layout
9305
9306 \begin_layout Itemize
9307
9308 \family sans
9309 Address
9310 \end_layout
9311
9312 \begin_layout Itemize
9313
9314 \family sans
9315 RightAddress
9316 \end_layout
9317
9318 \end_inset
9319
9320
9321 \end_layout
9322
9323 \begin_layout Standard
9324 That is, all the major environments apart from the sectioning environments.
9325  Since foils are essentially self-contained sections, with a title and body,
9326  
9327 \family sans
9328 Foil\SpecialChar TeX
9329
9330 \family default
9331  provides specific commands for starting new foils and these are:
9332 \end_layout
9333
9334 \begin_layout Itemize
9335
9336 \family sans
9337 Foilhead
9338 \end_layout
9339
9340 \begin_layout Itemize
9341
9342 \family sans
9343 Rotatefoilhead
9344 \end_layout
9345
9346 \begin_layout Standard
9347 \SpecialChar LyX
9348  also provides slightly modified versions of these two environments called:
9349 \end_layout
9350
9351 \begin_layout Itemize
9352
9353 \family sans
9354 ShortFoilhead
9355 \end_layout
9356
9357 \begin_layout Itemize
9358
9359 \family sans
9360 ShortRotatefoilhead
9361 \end_layout
9362
9363 \begin_layout Standard
9364 and the differences will be explained in the next section.
9365 \end_layout
9366
9367 \begin_layout Standard
9368 Since foils are often used in presenting ideas or new theorems and such
9369  
9370 \family sans
9371 Foil\SpecialChar TeX
9372
9373 \family default
9374  also provides a comprehensive box of goodies for presenting them:
9375 \end_layout
9376
9377 \begin_layout Standard
9378 \begin_inset Flex Multiple Columns
9379 status open
9380
9381 \begin_layout Itemize
9382
9383 \family sans
9384 Theorem
9385 \end_layout
9386
9387 \begin_layout Itemize
9388
9389 \family sans
9390 Lemma
9391 \end_layout
9392
9393 \begin_layout Itemize
9394
9395 \family sans
9396 Corollary
9397 \end_layout
9398
9399 \begin_layout Itemize
9400
9401 \family sans
9402 Proposition
9403 \end_layout
9404
9405 \begin_layout Itemize
9406
9407 \family sans
9408 Definition
9409 \end_layout
9410
9411 \begin_layout Itemize
9412
9413 \family sans
9414 Proof
9415 \end_layout
9416
9417 \begin_layout Itemize
9418
9419 \family sans
9420 Theorem*
9421 \end_layout
9422
9423 \begin_layout Itemize
9424
9425 \family sans
9426 Lemma*
9427 \end_layout
9428
9429 \begin_layout Itemize
9430
9431 \family sans
9432 Corollary*
9433 \end_layout
9434
9435 \begin_layout Itemize
9436
9437 \family sans
9438 Proposition*
9439 \end_layout
9440
9441 \begin_layout Itemize
9442
9443 \family sans
9444 Definition*
9445 \end_layout
9446
9447 \end_inset
9448
9449
9450 \end_layout
9451
9452 \begin_layout Standard
9453 The starred versions are unnumbered while the unstarred versions are numbered.
9454  There are also two list environments added by \SpecialChar LyX
9455  and these are:
9456 \end_layout
9457
9458 \begin_layout Itemize
9459
9460 \family sans
9461 TickList
9462 \end_layout
9463
9464 \begin_layout Itemize
9465
9466 \family sans
9467 CrossList
9468 \end_layout
9469
9470 \begin_layout Standard
9471
9472 \family sans
9473 Foil\SpecialChar TeX
9474
9475 \family default
9476  provides some powerful header and footer capabilities that are best set
9477  in the preamble although they may be set at any point in a document.
9478  If you want to change these settings in your document the best place to
9479  do so is at the very top of a foil, i.
9480 \begin_inset space \thinspace{}
9481 \end_inset
9482
9483 e.
9484 \emph on
9485
9486 \begin_inset space \space{}
9487 \end_inset
9488
9489
9490 \emph default
9491 straight after the foilhead.
9492 \end_layout
9493
9494 \begin_layout Standard
9495 For this purpose, the following command styles are provided [
9496 \shape smallcaps
9497 Martin Vermeer
9498 \shape default
9499 ]:
9500 \end_layout
9501
9502 \begin_layout Standard
9503 \begin_inset Flex Multiple Columns
9504 status open
9505
9506 \begin_layout Itemize
9507
9508 \family sans
9509 My
9510 \begin_inset space ~
9511 \end_inset
9512
9513 Logo
9514 \end_layout
9515
9516 \begin_layout Itemize
9517
9518 \family sans
9519 Restriction
9520 \end_layout
9521
9522 \begin_layout Itemize
9523
9524 \family sans
9525 Right
9526 \begin_inset space ~
9527 \end_inset
9528
9529 Footer
9530 \end_layout
9531
9532 \begin_layout Itemize
9533
9534 \family sans
9535 Right
9536 \begin_inset space ~
9537 \end_inset
9538
9539 Header
9540 \end_layout
9541
9542 \begin_layout Itemize
9543
9544 \family sans
9545 Left
9546 \begin_inset space ~
9547 \end_inset
9548
9549 Header
9550 \end_layout
9551
9552 \begin_deeper
9553 \begin_layout Plain Layout
9554 \begin_inset space ~
9555 \end_inset
9556
9557
9558 \end_layout
9559
9560 \end_deeper
9561 \end_inset
9562
9563
9564 \end_layout
9565
9566 \begin_layout Standard
9567 There are also a few commands provided by 
9568 \family sans
9569 Foil\SpecialChar TeX
9570
9571 \family default
9572  that aren't directly supported by \SpecialChar LyX
9573  but I'll tell you what they do and how
9574  to use them in section
9575 \begin_inset space ~
9576 \end_inset
9577
9578
9579 \begin_inset CommandInset ref
9580 LatexCommand ref
9581 reference "sec:unsuppfoils"
9582
9583 \end_inset
9584
9585 .
9586 \end_layout
9587
9588 \begin_layout Subsubsection
9589 Building a Set of Foils
9590 \end_layout
9591
9592 \begin_layout Standard
9593 This section will give a simple introduction to using the different environments
9594  to build a set of foils.
9595  If you want to see an example set of foils, take a look at 
9596 \change_deleted 564990737 1671643085
9597 the 
9598 \family typewriter
9599 Foils.lyx
9600 \family default
9601  file you find in \SpecialChar LyX
9602 's 
9603 \family typewriter
9604 examples
9605 \family default
9606  folder
9607 \change_inserted 564990737 1671643099
9608
9609 \family sans
9610 \lang british
9611 File\SpecialChar menuseparator
9612 Open Example
9613 \lang english
9614 \SpecialChar menuseparator
9615 Presentations\SpecialChar menuseparator
9616 Foils
9617 \change_unchanged
9618
9619 \family default
9620 .
9621 \end_layout
9622
9623 \begin_layout Paragraph
9624 Give It a Title Page
9625 \end_layout
9626
9627 \begin_layout Standard
9628 Unlike other classes that provide 
9629 \family sans
9630 Title
9631 \family default
9632
9633 \family sans
9634 Author
9635 \family default
9636
9637 \family sans
9638 Date
9639 \family default
9640  and 
9641 \family sans
9642 Abstract
9643 \family default
9644  environments, 
9645 \family sans
9646 foils
9647 \family default
9648  creates the title on a page of its own.
9649  If you leave out the 
9650 \family sans
9651 Date
9652 \family default
9653  environment \SpecialChar LaTeX
9654  will substitute the current date (every time you regenerate
9655  the output).
9656 \end_layout
9657
9658 \begin_layout Paragraph
9659 Start a New Foil
9660 \end_layout
9661
9662 \begin_layout Standard
9663 As I mentioned earlier, there are four ways of starting a new foil.
9664  For portrait foils you should use 
9665 \family sans
9666 Foilhead
9667 \family default
9668  or 
9669 \family sans
9670 ShortFoilhead.
9671
9672 \family default
9673  The difference between these two environments is the amount of space between
9674  the title of the foil (the foilhead) and the body of the foil.
9675 \end_layout
9676
9677 \begin_layout Standard
9678 Landscape foils are generated using the 
9679 \family sans
9680 Rotatefoilhead
9681 \family default
9682  and 
9683 \family sans
9684 ShortRotatefoilhead
9685 \family default
9686  environments.
9687  Again the only difference is the spacing between foilhead and body.
9688  Both of the short versions have 0.5
9689 \begin_inset space ~
9690 \end_inset
9691
9692 inches less separation between the foilhead and the body.
9693  
9694 \end_layout
9695
9696 \begin_layout Standard
9697 One problem with the support for landscape foils is the requirement that
9698  you have to use the 
9699 \family typewriter
9700 dvips
9701 \family default
9702  driver to generate the PostScript output otherwise the foils won't be rotated.
9703  It is possible to get landscape foils even if you haven't got the 
9704 \family typewriter
9705 dvips
9706 \family default
9707  driver provided you can feed your foils sideways through your printer ;-)
9708 \end_layout
9709
9710 \begin_layout Paragraph
9711 Theorems, Lemmas, Proofs and more
9712 \end_layout
9713
9714 \begin_layout Standard
9715 You can't have two of the same type of these environments directly following
9716  each other.
9717  If you use a normal paragraph break, , you will just be extending the previous
9718  environment as if you had merged the two environments together.
9719  Rather than that, you need to insert a so-called separator.
9720  Please refer to the section entitled 
9721 \emph on
9722 Separate Nestings
9723 \emph default
9724  in the 
9725 \emph on
9726 User's Guide
9727 \emph default
9728 .
9729 \end_layout
9730
9731 \begin_layout Paragraph
9732 Lists
9733 \end_layout
9734
9735 \begin_layout Standard
9736 You get all the commonly supported list styles found in other classes as
9737  well as two new ones.
9738  I'll only describe the new ones here.
9739  If you want to find out more about the other list environments check out
9740  the 
9741 \emph on
9742 User's Guide.
9743
9744 \emph default
9745  If you intend to use itemized lists you might also want to read about the
9746  
9747 \family sans
9748 Itemize
9749 \begin_inset space ~
9750 \end_inset
9751
9752 Bullet
9753 \begin_inset space ~
9754 \end_inset
9755
9756 Selection
9757 \family default
9758  dialog described above in section
9759 \begin_inset space ~
9760 \end_inset
9761
9762
9763 \change_inserted 564990737 1671355684
9764
9765 \begin_inset CommandInset ref
9766 LatexCommand ref
9767 reference "chap:bullets"
9768
9769 \end_inset
9770
9771
9772 \change_deleted 564990737 1671355684
9773
9774 \begin_inset CommandInset ref
9775 LatexCommand ref
9776 reference "sec:bullet"
9777
9778 \end_inset
9779
9780
9781 \change_unchanged
9782 .
9783 \end_layout
9784
9785 \begin_layout Standard
9786 The two new list styles, 
9787 \family sans
9788 TickList
9789 \family default
9790  and 
9791 \family sans
9792 CrossList
9793 \family default
9794 , are designed to make it easier for you to create lists of do's and don'ts
9795  or right and wrong by providing dedicated environments that use a tick
9796  or a cross as the label of the list.
9797  These lists are in fact dedicated variants of the 
9798 \family sans
9799 Itemize
9800 \family default
9801  environment.
9802  They do however require that you have the 
9803 \family typewriter
9804 psnfss
9805 \family default
9806  packages installed.
9807 \end_layout
9808
9809 \begin_layout Paragraph
9810 Figures and Tables
9811 \end_layout
9812
9813 \begin_layout Standard
9814
9815 \family sans
9816 Foil\SpecialChar TeX
9817
9818 \family default
9819  redefines the floating tables and figures so that they appear exactly where
9820  they are in the text rather than pushing them to the top of the page or
9821  to some user specified location.
9822  In fact if you change the float placement settings they are simply ignored.
9823 \end_layout
9824
9825 \begin_layout Paragraph
9826 Page Headers and Footers
9827 \begin_inset CommandInset label
9828 LatexCommand label
9829 name "sec:foilfoot"
9830
9831 \end_inset
9832
9833
9834 \end_layout
9835
9836 \begin_layout Standard
9837
9838 \family sans
9839 My
9840 \begin_inset space ~
9841 \end_inset
9842
9843 Logo
9844 \family default
9845  and 
9846 \family sans
9847 Restriction
9848 \family default
9849  are two commands used to control the left-footer text string.
9850  The first is meant to allow you to include a graphic logo on your foils
9851  and defaults to 
9852 \begin_inset Quotes eld
9853 \end_inset
9854
9855 -Typeset by 
9856 \family sans
9857 Foil\SpecialChar TeX
9858
9859 \family default
9860 -
9861 \begin_inset Quotes erd
9862 \end_inset
9863
9864 .
9865  While the second is meant to provide a classification for the audience,
9866  
9867 \emph on
9868 e.
9869 \begin_inset space \thinspace{}
9870 \end_inset
9871
9872 g.
9873 \emph default
9874
9875 \begin_inset space \space{}
9876 \end_inset
9877
9878 Confidential.
9879  It is empty by default.
9880 \end_layout
9881
9882 \begin_layout Standard
9883 The remaining page corners can be filled by 
9884 \family sans
9885 Right
9886 \begin_inset space ~
9887 \end_inset
9888
9889 Footer
9890 \family default
9891  (which defaults to page numbers), 
9892 \family sans
9893 Right
9894 \begin_inset space ~
9895 \end_inset
9896
9897 Header
9898 \family default
9899  (top right) and 
9900 \family sans
9901 Left
9902 \begin_inset space ~
9903 \end_inset
9904
9905 Header
9906 \family default
9907  (top left).
9908 \end_layout
9909
9910 \begin_layout Subsubsection
9911 Unsupported 
9912 \family sans
9913 Foil\SpecialChar TeX
9914
9915 \family default
9916  Goodies
9917 \begin_inset CommandInset label
9918 LatexCommand label
9919 name "sec:unsuppfoils"
9920
9921 \end_inset
9922
9923
9924 \end_layout
9925
9926 \begin_layout Standard
9927 All the commands mentioned below need to be set in a 
9928 \family sans
9929 \SpecialChar LaTeX
9930
9931 \family default
9932  environment or as 
9933 \family sans
9934 \SpecialChar TeX
9935
9936 \family default
9937  within another environment.
9938 \end_layout
9939
9940 \begin_layout Paragraph
9941 Lengths
9942 \end_layout
9943
9944 \begin_layout Standard
9945 All lengths are adjusted using the 
9946 \family typewriter
9947
9948 \backslash
9949 setlength{
9950 \family default
9951 \emph on
9952 lengthname
9953 \family typewriter
9954 \emph default
9955 }{
9956 \family default
9957 \emph on
9958 newlength
9959 \family typewriter
9960 \emph default
9961 }
9962 \family default
9963  command.
9964  Where 
9965 \emph on
9966 lengthname
9967 \emph default
9968  should be replaced by the name given to the length you want to change and
9969  
9970 \emph on
9971 newlength
9972 \emph default
9973  is the length value.
9974  All lengths should be specified in units of length such as inches (
9975 \family typewriter
9976 in
9977 \family default
9978 ), millimeters (
9979 \family typewriter
9980 mm
9981 \family default
9982 ) or points (
9983 \family typewriter
9984 pt
9985 \family default
9986 ) or relative to some document or font-based length such as 
9987 \family typewriter
9988
9989 \backslash
9990 textwidth
9991 \family default
9992 .
9993  
9994 \end_layout
9995
9996 \begin_layout Standard
9997 It's possible to change the spacing between a foilhead and the body of the
9998  foil by adjusting the length specified by 
9999 \family typewriter
10000
10001 \backslash
10002 foilheadskip
10003 \family default
10004 .
10005  For example, to make 
10006 \emph on
10007 all
10008 \emph default
10009  foilheads 0.5
10010 \begin_inset space \space{}
10011 \end_inset
10012
10013 in closer to their bodies put the following in the preamble: 
10014 \family typewriter
10015
10016 \backslash
10017 setlength{
10018 \backslash
10019 foilheadskip}{-0.5in}
10020 \end_layout
10021
10022 \begin_layout Standard
10023 The spacings around floats can be adjusted by setting these lengths:
10024 \end_layout
10025
10026 \begin_layout Labeling
10027 \labelwidthstring MMMMMMMMMMM
10028
10029 \family typewriter
10030
10031 \backslash
10032 abovefloatskip
10033 \family default
10034  Separation between the text and the top of the float
10035 \end_layout
10036
10037 \begin_layout Labeling
10038 \labelwidthstring MMMMMMMMMMM
10039
10040 \family typewriter
10041
10042 \backslash
10043 abovecaptionskip
10044 \family default
10045  Separation between the float and the caption
10046 \end_layout
10047
10048 \begin_layout Labeling
10049 \labelwidthstring MMMMMMMMMMM
10050
10051 \family typewriter
10052
10053 \backslash
10054 belowcaptionskip
10055 \family default
10056  Separation between the caption and the following text
10057 \end_layout
10058
10059 \begin_layout Labeling
10060 \labelwidthstring MMMMMMMMMMM
10061
10062 \family typewriter
10063
10064 \backslash
10065 captionwidth
10066 \family default
10067  You can make the captions narrower than the surrounding text by adjusting
10068  this length.
10069  Best done relative to 
10070 \family typewriter
10071
10072 \backslash
10073 textwidth
10074 \family default
10075 .
10076 \end_layout
10077
10078 \begin_layout Standard
10079 There are also several title page related lengths that you may find useful
10080  if you have a long title or several authors:
10081 \end_layout
10082
10083 \begin_layout Labeling
10084 \labelwidthstring MMMMMMMMMMM
10085
10086 \family typewriter
10087
10088 \backslash
10089 abovetitleskip
10090 \family default
10091  Separation from headers to 
10092 \family sans
10093 Title
10094 \end_layout
10095
10096 \begin_layout Labeling
10097 \labelwidthstring MMMMMMMMMMM
10098
10099 \family typewriter
10100
10101 \backslash
10102 titleauthorskip
10103 \family default
10104  between 
10105 \family sans
10106 Title
10107 \family default
10108  and 
10109 \family sans
10110 Author
10111 \family default
10112  environments
10113 \end_layout
10114
10115 \begin_layout Labeling
10116 \labelwidthstring MMMMMMMMMMM
10117
10118 \family typewriter
10119
10120 \backslash
10121 authorauthorskip
10122 \family default
10123  between multiple 
10124 \family sans
10125 Author
10126 \family default
10127  lines
10128 \end_layout
10129
10130 \begin_layout Labeling
10131 \labelwidthstring MMMMMMMMMMM
10132
10133 \family typewriter
10134
10135 \backslash
10136 authordateskip
10137 \family default
10138  between the 
10139 \family sans
10140 Author
10141 \family default
10142  and the 
10143 \family sans
10144 Date
10145 \end_layout
10146
10147 \begin_layout Labeling
10148 \labelwidthstring MMMMMMMMMMM
10149
10150 \family typewriter
10151
10152 \backslash
10153 dateabstractskip
10154 \family default
10155  between the 
10156 \family sans
10157 Date
10158 \family default
10159  and the 
10160 \family sans
10161 Abstract
10162 \end_layout
10163
10164 \begin_layout Standard
10165 The last length related command affects all the list environments.
10166  If you place 
10167 \family typewriter
10168
10169 \backslash
10170 zerolistvertdimens
10171 \family default
10172  
10173 \emph on
10174 inside
10175 \emph default
10176  a list environment then all the vertical spacing between the list items
10177  is removed.
10178  Note that this is a command not a length so it doesn't require 
10179 \family typewriter
10180
10181 \backslash
10182 setlength
10183 \family default
10184  like the stuff mentioned above.
10185 \end_layout
10186
10187 \begin_layout Paragraph
10188 Headers and Footers
10189 \end_layout
10190
10191 \begin_layout Standard
10192 The 
10193 \family typewriter
10194
10195 \backslash
10196 LogoOn
10197 \family default
10198  and 
10199 \family typewriter
10200
10201 \backslash
10202 LogoOff
10203 \family default
10204  commands control whether the logo in the 
10205 \family sans
10206 MyLogo
10207 \family default
10208  definition appear on a given page.
10209  If you put 
10210 \family typewriter
10211
10212 \backslash
10213 LogoOff
10214 \family default
10215  in the preamble then none of the foils will have the logo on them.
10216  If you don't want the logo on a particular page place the 
10217 \family typewriter
10218
10219 \backslash
10220 LogoOff
10221 \family default
10222  directly after the foilhead of that page and the 
10223 \family typewriter
10224
10225 \backslash
10226 LogoOn
10227 \family default
10228  directly after the next foilhead.
10229 \end_layout
10230
10231 \begin_layout Standard
10232 If you decide to use the 
10233 \family sans
10234 fancy
10235 \family default
10236  page style setting in the 
10237 \family sans
10238 Document
10239 \begin_inset space ~
10240 \end_inset
10241
10242 Layout
10243 \family default
10244  dialog you should probably add 
10245 \family typewriter
10246
10247 \backslash
10248 let
10249 \backslash
10250 headwidth
10251 \backslash
10252 textwidth
10253 \family default
10254  to your preamble so headers and footers on landscape pages are correctly
10255  placed when rotated.
10256  This is due to some clashes between the page layouts provided by the 
10257 \family sans
10258 fancyheadings
10259 \family default
10260  package and the 
10261 \family sans
10262 foils
10263 \family default
10264  class.
10265 \end_layout
10266
10267 \begin_layout Subsection
10268
10269 \change_inserted 564990737 1671459032
10270
10271 \lang american
10272 Powerdot
10273 \end_layout
10274
10275 \begin_layout Standard
10276
10277 \change_inserted 564990737 1671643165
10278
10279 \lang american
10280 The document class 
10281 \family sans
10282 presentation
10283 \begin_inset space \thinspace{}
10284 \end_inset
10285
10286 (powerdot)
10287 \family default
10288  uses the 
10289 \family typewriter
10290 powerdot.cls
10291 \family default
10292  document class for creating presentations.
10293  
10294 \family sans
10295 \lang british
10296 File\SpecialChar menuseparator
10297 Open Example\SpecialChar menuseparator
10298 Presentations\SpecialChar menuseparator
10299 Powerdot
10300 \family default
10301 \lang american
10302  offers guidance on its use.
10303  The documentation is available from 
10304 \begin_inset CommandInset href
10305 LatexCommand href
10306 name "CTAN"
10307 target "http://mirrors.ctan.org/macros/latex/contrib/powerdot/doc/powerdot.pdf"
10308 literal "false"
10309
10310 \end_inset
10311
10312 .
10313 \end_layout
10314
10315 \begin_layout Subsection
10316
10317 \change_inserted 564990737 1671459032
10318
10319 \lang american
10320 \begin_inset CommandInset label
10321 LatexCommand label
10322 name "subsec:Seminar"
10323
10324 \end_inset
10325
10326
10327 \family sans
10328 Seminar
10329 \end_layout
10330
10331 \begin_layout Standard
10332
10333 \change_inserted 564990737 1671643194
10334
10335 \lang american
10336 The document class 
10337 \family sans
10338 presentations
10339 \begin_inset space \thinspace{}
10340 \end_inset
10341
10342 (seminar)
10343 \family default
10344  uses the 
10345 \family typewriter
10346 seminar.cls
10347 \family default
10348  document class for creating presentations.
10349  
10350 \family sans
10351 \lang british
10352 File\SpecialChar menuseparator
10353 Open Example\SpecialChar menuseparator
10354 Presentations\SpecialChar menuseparator
10355 Seminar
10356 \family default
10357 \lang american
10358  offers guidance on its use.
10359  The documentation is available from 
10360 \begin_inset CommandInset href
10361 LatexCommand href
10362 name "CTAN"
10363 target "http://mirrors.ctan.org/macros/latex/contrib/seminar/doc/seminar-doc.pdf"
10364 literal "false"
10365
10366 \end_inset
10367
10368 .
10369 \end_layout
10370
10371 \begin_layout Subsection
10372 Slides [aka 
10373 \noun on
10374 Sli\SpecialChar TeX
10375
10376 \noun default
10377 ]
10378 \begin_inset CommandInset label
10379 LatexCommand label
10380 name "sec:slitex"
10381
10382 \end_inset
10383
10384
10385 \end_layout
10386
10387 \begin_layout Standard
10388 by 
10389 \noun on
10390 John Weiss
10391 \noun default
10392  
10393 \end_layout
10394
10395 \begin_layout Subsubsection
10396 Introduction
10397 \end_layout
10398
10399 \begin_layout Standard
10400 This section describes how to use \SpecialChar LyX
10401  to make slides for overhead projectors.
10402  There are two document classes that can do this: the default slides class
10403  and the 
10404 \family sans
10405 Foil\SpecialChar TeX
10406
10407 \family default
10408  slides class.
10409  This section documents the former.
10410 \end_layout
10411
10412 \begin_layout Standard
10413 I'm going to say this again, nice and clear, so that there's no misunderstanding
10414 :
10415 \end_layout
10416
10417 \begin_layout Standard
10418 \begin_inset VSpace bigskip
10419 \end_inset
10420
10421
10422 \end_layout
10423
10424 \begin_layout Standard
10425 \align center
10426
10427 \size large
10428 This section documents the class 
10429 \begin_inset Quotes eld
10430 \end_inset
10431
10432
10433 \family sans
10434 slides (default)
10435 \family default
10436
10437 \begin_inset Quotes erd
10438 \end_inset
10439
10440  
10441 \emph on
10442 only.
10443 \end_layout
10444
10445 \begin_layout Standard
10446 \begin_inset VSpace bigskip
10447 \end_inset
10448
10449
10450 \end_layout
10451
10452 \begin_layout Standard
10453 If you're looking for the documentation for 
10454 \begin_inset Quotes eld
10455 \end_inset
10456
10457
10458 \family sans
10459 slides (Foil\SpecialChar TeX
10460 )
10461 \family default
10462
10463 \begin_inset Quotes erd
10464 \end_inset
10465
10466 , check out section
10467 \begin_inset space ~
10468 \end_inset
10469
10470
10471 \begin_inset CommandInset ref
10472 LatexCommand ref
10473 reference "sec:foiltex"
10474
10475 \end_inset
10476
10477 .
10478  The 
10479 \family sans
10480 foils
10481 \family default
10482  class [
10483 \begin_inset Quotes eld
10484 \end_inset
10485
10486
10487 \family sans
10488 slides (Foil\SpecialChar TeX
10489 )
10490 \family default
10491
10492 \begin_inset Quotes erd
10493 \end_inset
10494
10495 ] is actually somewhat better than the default 
10496 \family sans
10497 slides
10498 \family default
10499  class,
10500 \begin_inset Foot
10501 status collapsed
10502
10503 \begin_layout Plain Layout
10504 \SpecialChar ldots
10505 or so I've been told repeatedly by its advocates.
10506  Having never used it, I have no idea if this claim is true or not.
10507 \end_layout
10508
10509 \end_inset
10510
10511  which this section documents.
10512 \end_layout
10513
10514 \begin_layout Standard
10515 This class is the \SpecialChar LaTeX2e
10516  improvement of the old 
10517 \noun on
10518 Sli\SpecialChar TeX
10519
10520 \noun default
10521  package.
10522  Every \SpecialChar LaTeX2e
10523  distribution includes this class [which I'll just refer to as 
10524 \begin_inset Quotes eld
10525 \end_inset
10526
10527
10528 \family sans
10529 slides
10530 \family default
10531
10532 \begin_inset Quotes erd
10533 \end_inset
10534
10535  from now on], so you're bound to have it.
10536  As I noted earlier, there are other classes, such as 
10537 \family sans
10538 foils
10539 \family default
10540 , which also produce slides for overhead projectors and do a better job
10541  at it.
10542  However, there are some things which 
10543 \family sans
10544 slides
10545 \family default
10546  can do which the others can't, such as generate overlays.
10547  Read on to learn more!
10548 \end_layout
10549
10550 \begin_layout Subsubsection
10551 Getting Started
10552 \begin_inset CommandInset label
10553 LatexCommand label
10554 name "sec:slidesetup"
10555
10556 \end_inset
10557
10558
10559 \end_layout
10560
10561 \begin_layout Standard
10562 Obviously, to use this document class, you need to select 
10563 \begin_inset Quotes eld
10564 \end_inset
10565
10566
10567 \family sans
10568 slides (default)
10569 \family default
10570
10571 \begin_inset Quotes erd
10572 \end_inset
10573
10574  from the class list in the 
10575 \family sans
10576 Document\SpecialChar menuseparator
10577 Settings
10578 \family default
10579  dialog.
10580  There are some other special things you should know about this class:
10581 \end_layout
10582
10583 \begin_layout Itemize
10584 Don't bother changing the options 
10585 \family sans
10586 Sides and Columns
10587 \family default
10588 .
10589  They're not supported by the 
10590 \family sans
10591 slides
10592 \family default
10593  class, anyways.
10594 \end_layout
10595
10596 \begin_layout Itemize
10597 The option 
10598 \family sans
10599 Page
10600 \begin_inset space ~
10601 \end_inset
10602
10603 style
10604 \family default
10605  behaves a bit differently for this class.
10606  The possible choices and what they do are as follows:
10607 \end_layout
10608
10609 \begin_deeper
10610 \begin_layout Description
10611
10612 \family sans
10613 plain
10614 \family default
10615  The final output contains page numbers in the lower right corner.
10616 \end_layout
10617
10618 \begin_layout Description
10619
10620 \family sans
10621 headings
10622 \family default
10623  Like 
10624 \family sans
10625 plain
10626 \family default
10627 , but also prints out any time markers you've put in.
10628  This is the default.
10629 \end_layout
10630
10631 \begin_layout Description
10632
10633 \family sans
10634 empty
10635 \family default
10636  The final output contains no page numbers, time markers, or alignment markers.
10637 \end_layout
10638
10639 \end_deeper
10640 \begin_layout Itemize
10641 The 
10642 \family sans
10643 slides
10644 \family default
10645  class has an extra option: 
10646 \family typewriter
10647 clock
10648 \family default
10649 .
10650  To use it, put 
10651 \begin_inset Quotes eld
10652 \end_inset
10653
10654
10655 \family typewriter
10656 clock
10657 \family default
10658
10659 \begin_inset Quotes erd
10660 \end_inset
10661
10662  in the extra class options.
10663 \end_layout
10664
10665 \begin_deeper
10666 \begin_layout Standard
10667 Using this options allows you to add time markers to 
10668 \family sans
10669 Note
10670 \family default
10671 s.
10672  See section
10673 \begin_inset space ~
10674 \end_inset
10675
10676
10677 \begin_inset CommandInset ref
10678 LatexCommand ref
10679 reference "sec:slideNote"
10680
10681 \end_inset
10682
10683  for more details.
10684 \end_layout
10685
10686 \end_deeper
10687 \begin_layout Standard
10688 You can also use the template file
10689 \change_deleted 564990737 1671617694
10690  
10691 \begin_inset Quotes eld
10692 \end_inset
10693
10694
10695 \family typewriter
10696 slides.lyx
10697 \family default
10698
10699 \begin_inset Quotes erd
10700 \end_inset
10701
10702
10703 \change_unchanged
10704  to automatically set up a document to use the 
10705 \family sans
10706 slides
10707 \family default
10708  class 
10709 \change_deleted 564990737 1671617699
10710 [
10711 \change_unchanged
10712 using 
10713 \family sans
10714 File\SpecialChar menuseparator
10715 New
10716 \begin_inset space ~
10717 \end_inset
10718
10719 from
10720 \begin_inset space ~
10721 \end_inset
10722
10723 Template
10724 \change_inserted 564990737 1671617723
10725 \SpecialChar menuseparator
10726 Presentations\SpecialChar menuseparator
10727 Slides
10728 \change_unchanged
10729
10730 \family default
10731  to open your new document
10732 \change_deleted 564990737 1671617728
10733 ]
10734 \change_unchanged
10735 .
10736  The template file also contains some examples of the special paragraph
10737  environments used by this class.
10738  I'll describe those next.
10739 \end_layout
10740
10741 \begin_layout Subsubsection
10742 Paragraph Environments
10743 \end_layout
10744
10745 \begin_layout Paragraph
10746 Supported Environments
10747 \end_layout
10748
10749 \begin_layout Standard
10750 The first thing you'll notice when you start up a new 
10751 \family sans
10752 slides
10753 \family default
10754  document is the font size and type: it's the equivalent of the size 
10755 \begin_inset Quotes eld
10756 \end_inset
10757
10758
10759 \family sans
10760 Largest
10761 \family default
10762
10763 \begin_inset Quotes erd
10764 \end_inset
10765
10766  in the 
10767 \family sans
10768 Sans
10769 \begin_inset space ~
10770 \end_inset
10771
10772 Serif
10773 \family default
10774  font.
10775  This is also what's used in the output.
10776  Think of this as a 
10777 \begin_inset Quotes eld
10778 \end_inset
10779
10780 visual cue
10781 \begin_inset Quotes erd
10782 \end_inset
10783
10784  to remind you that this is a slide.
10785  Your final slides will use a larger font; ergo, you'll have less space.
10786  Of course, the larger default screen font isn't WYSIWYG, only a reminder.
10787 \end_layout
10788
10789 \begin_layout Standard
10790 The next thing that becomes obvious is the changes to the paragraph environment
10791  pull-down box [at the far-left end of the toolbar].
10792  Most of the paragraph environments you're used to seeing are missing.
10793  There are also five new ones.
10794  That's because the 
10795 \family sans
10796 slides
10797 \family default
10798  class itself only supports certain paragraph environments:
10799 \end_layout
10800
10801 \begin_layout Itemize
10802
10803 \family sans
10804 Standard
10805 \end_layout
10806
10807 \begin_layout Itemize
10808
10809 \family sans
10810 Itemize
10811 \end_layout
10812
10813 \begin_layout Itemize
10814
10815 \family sans
10816 Enumerate
10817 \end_layout
10818
10819 \begin_layout Itemize
10820
10821 \family sans
10822 Description
10823 \end_layout
10824
10825 \begin_layout Itemize
10826
10827 \family sans
10828 List
10829 \end_layout
10830
10831 \begin_layout Itemize
10832
10833 \family sans
10834 Quotation
10835 \end_layout
10836
10837 \begin_layout Itemize
10838
10839 \family sans
10840 Quote
10841 \end_layout
10842
10843 \begin_layout Itemize
10844
10845 \family sans
10846 Verse
10847 \end_layout
10848
10849 \begin_layout Itemize
10850
10851 \family sans
10852 Caption
10853 \end_layout
10854
10855 \begin_layout Itemize
10856
10857 \family sans
10858 \SpecialChar LyX
10859 -Code
10860 \end_layout
10861
10862 \begin_layout Standard
10863 All of the other standard environments, including the section-heading environmen
10864 ts, aren't used in the 
10865 \family sans
10866 slides
10867 \family default
10868  class.
10869 \end_layout
10870
10871 \begin_layout Standard
10872 On the other hand, you'll notice the following new environments:
10873 \end_layout
10874
10875 \begin_layout Itemize
10876
10877 \family sans
10878 Slide
10879 \end_layout
10880
10881 \begin_layout Itemize
10882
10883 \family sans
10884 Overlay
10885 \end_layout
10886
10887 \begin_layout Itemize
10888
10889 \family sans
10890 Note
10891 \end_layout
10892
10893 \begin_layout Itemize
10894
10895 \family sans
10896 InvisibleText
10897 \end_layout
10898
10899 \begin_layout Itemize
10900
10901 \family sans
10902 VisibleText
10903 \end_layout
10904
10905 \begin_layout Standard
10906 These five are kind of quirky, due to a 
10907 \begin_inset Quotes eld
10908 \end_inset
10909
10910 feature
10911 \begin_inset Quotes erd
10912 \end_inset
10913
10914  in \SpecialChar LyX
10915 .
10916  You see, \SpecialChar LyX
10917  doesn't permit you to nest any other paragraph environment into
10918  an empty environment.
10919  Now, that's fine and dandy, but it means that you wouldn't be able to start
10920  a slide with anything except plain text.
10921  To deal with this, I've performed a little 
10922 \begin_inset Quotes eld
10923 \end_inset
10924
10925 \SpecialChar LaTeX
10926  magic.
10927 \begin_inset Quotes erd
10928 \end_inset
10929
10930  
10931 \end_layout
10932
10933 \begin_layout Paragraph
10934 Quirks of the New Environments
10935 \begin_inset CommandInset label
10936 LatexCommand label
10937 name "sec:slideQuirk"
10938
10939 \end_inset
10940
10941
10942 \end_layout
10943
10944 \begin_layout Standard
10945 All five of the new paragraph environments are somewhat quirky due to inherent
10946  limitiations in the current version of \SpecialChar LyX
10947 .
10948  As I just mentioned, \SpecialChar LyX
10949  forbids environments that begin with another environment.
10950  To get around this, the 
10951 \family sans
10952 Slide
10953 \family default
10954  environment isn't a paragraph environment as described in the 
10955 \emph on
10956 User's Guide
10957 \emph default
10958 .
10959  
10960 \end_layout
10961
10962 \begin_layout Standard
10963 You should consider 
10964 \family sans
10965 Slide
10966 \family default
10967
10968 \family sans
10969 Overlay
10970 \family default
10971 , and 
10972 \family sans
10973 Note
10974 \family default
10975  to be 
10976 \begin_inset Quotes eld
10977 \end_inset
10978
10979 pseudo-environments.
10980 \begin_inset Quotes erd
10981 \end_inset
10982
10983  They look like a section heading or a 
10984 \begin_inset Quotes eld
10985 \end_inset
10986
10987
10988 \family sans
10989 Caption
10990 \family default
10991 ,
10992 \begin_inset Quotes erd
10993 \end_inset
10994
10995  but really begin a [and, if necessary, end the previous] paragraph environment.
10996  Likewise, treat 
10997 \family sans
10998 InvisibleText
10999 \family default
11000  and 
11001 \family sans
11002 VisibleText
11003 \family default
11004  as 
11005 \begin_inset Quotes eld
11006 \end_inset
11007
11008 pseudo-commands.
11009 \begin_inset Quotes erd
11010 \end_inset
11011
11012  These two perform some action.
11013 \end_layout
11014
11015 \begin_layout Standard
11016 A common feature of all five environments, 
11017 \family sans
11018 Slide
11019 \family default
11020
11021 \family sans
11022 Overlay
11023 \family default
11024
11025 \family sans
11026 Note
11027 \family default
11028
11029 \family sans
11030 InvisibleText
11031 \family default
11032  and 
11033 \family sans
11034 VisibleText
11035 \family default
11036 , is a rather long-ish label.
11037  The text following this label — ordinarily the contents of the paragraph
11038  environment — is utterly irrelevant for 
11039 \family sans
11040 Slide
11041 \family default
11042
11043 \family sans
11044 Overlay
11045 \family default
11046
11047 \family sans
11048 Note
11049 \family default
11050
11051 \family sans
11052 InvisibleText
11053 \family default
11054  and 
11055 \family sans
11056 VisibleText
11057 \family default
11058 .
11059  \SpecialChar LyX
11060  completely ignores it.
11061  In fact, you can leave these five environments completely empty.
11062  
11063 \end_layout
11064
11065 \begin_layout Standard
11066 While you don't 
11067 \emph on
11068 have
11069 \emph default
11070  to put any text after the rather long-ish label, you might want to.
11071  This could be a short description of the contents of the 
11072 \family sans
11073 Slide
11074 \family default
11075 , for example.
11076  In that case, enter your descriptive comment and hit 
11077 \family sans
11078 Return
11079 \family default
11080  as you normally would.
11081 \end_layout
11082
11083 \begin_layout Standard
11084 If, on the other hand, you don't want to enter any descriptive text, you'll
11085  hit another \SpecialChar LyX
11086  quirk.
11087  \SpecialChar LyX
11088 , like nature, abhors a vacuum, and will not let you start a new paragraph
11089  environment until you put something in the old one.
11090  So, do this:
11091 \end_layout
11092
11093 \begin_layout Itemize
11094 Start entering the text that will 
11095 \emph on
11096 follow
11097 \emph default
11098  the new 
11099 \family sans
11100 Slide
11101 \family default
11102
11103 \family sans
11104 Overlay
11105 \family default
11106
11107 \family sans
11108 Note
11109 \family default
11110
11111 \family sans
11112 InvisibleText
11113 \family default
11114  or 
11115 \family sans
11116 VisibleText
11117 \family default
11118 .
11119  
11120 \end_layout
11121
11122 \begin_layout Itemize
11123 Now move to the beginning of that paragraph.
11124  
11125 \end_layout
11126
11127 \begin_layout Itemize
11128 Next, hit 
11129 \family sans
11130 Return
11131 \family default
11132 .
11133  
11134 \end_layout
11135
11136 \begin_layout Itemize
11137 Finally, change this new, empty paragraph to a 
11138 \family sans
11139 Slide
11140 \family default
11141
11142 \family sans
11143 Overlay
11144 \family default
11145
11146 \family sans
11147 Note
11148 \family default
11149
11150 \family sans
11151 InvisibleText
11152 \family default
11153  or 
11154 \family sans
11155 VisibleText
11156 \family default
11157 .
11158  
11159 \end_layout
11160
11161 \begin_layout Standard
11162 Some future version of \SpecialChar LyX
11163  will, hopefully, resolve this quirkiness\SpecialChar ldots
11164
11165 \end_layout
11166
11167 \begin_layout Subsubsection
11168 Making a Presentation with 
11169 \family sans
11170 Slide
11171 \family default
11172
11173 \family sans
11174 Overlay
11175 \family default
11176  and 
11177 \family sans
11178 Note
11179 \end_layout
11180
11181 \begin_layout Paragraph
11182 Using the 
11183 \family sans
11184 Slide
11185 \family default
11186  Environment
11187 \end_layout
11188
11189 \begin_layout Standard
11190 If you're expecting this section to teach you how to actually make a presentatio
11191 n, you'll be sorely disappointed.
11192  Naturally, I'll describe all of the ways the 
11193 \family sans
11194 slides
11195 \family default
11196  class can assist you in preparing the materials for a presentation.
11197  Filling in the contents, however, is up to you.
11198  [Then again, that 
11199 \emph on
11200 is
11201 \emph default
11202  the \SpecialChar LyX
11203  philosophy.]
11204 \end_layout
11205
11206 \begin_layout Standard
11207 Choosing the 
11208 \family sans
11209 Slide
11210 \family default
11211  environment [in the manner described in section
11212 \begin_inset space ~
11213 \end_inset
11214
11215
11216 \begin_inset CommandInset ref
11217 LatexCommand ref
11218 reference "sec:slideQuirk"
11219
11220 \end_inset
11221
11222 ] tells \SpecialChar LyX
11223  to begin a new slide [duh].
11224  The label for this environment/
11225 \begin_inset Quotes erd
11226 \end_inset
11227
11228 pseudo-command
11229 \begin_inset Quotes erd
11230 \end_inset
11231
11232  is an 
11233 \begin_inset Quotes eld
11234 \end_inset
11235
11236 ASCII line,
11237 \begin_inset Quotes erd
11238 \end_inset
11239
11240  in cool blue, followed by the label, 
11241 \begin_inset Quotes eld
11242 \end_inset
11243
11244 NewSlide:
11245 \begin_inset Quotes erd
11246 \end_inset
11247
11248 .
11249  Any text or paragraph environments that follow this one go on the new slide.
11250  It's that simple.
11251 \end_layout
11252
11253 \begin_layout Standard
11254 Slides are probably the only time you'll need to forcibly end pages in \SpecialChar LyX
11255
11256  (this can be specified in the 
11257 \family sans
11258 Paragraph Layout
11259 \family default
11260  dialog).
11261  In fact, you'll want to, once you finish entering the contents of one slide.
11262  If you've entered more text than can physically fit on a slide, the extra
11263  overflows onto a new slide.
11264  I don't recommend doing this, however, since the overflow slide won't have
11265  any page number on it.
11266  Furthermore, it may interfere with any 
11267 \family sans
11268 Overlay
11269 \family default
11270  you've made to accompany the oversized 
11271 \family sans
11272 Slide
11273 \family default
11274 .
11275 \end_layout
11276
11277 \begin_layout Standard
11278 The 
11279 \family sans
11280 Overlay
11281 \family default
11282  and 
11283 \family sans
11284 Note
11285 \family default
11286  environments work the same way as the 
11287 \family sans
11288 Slide
11289 \family default
11290  environment.
11291  They both create an 
11292 \begin_inset Quotes eld
11293 \end_inset
11294
11295 ASCII line
11296 \begin_inset Quotes erd
11297 \end_inset
11298
11299  followed by a label [
11300 \begin_inset Quotes eld
11301 \end_inset
11302
11303 NewOverlay:
11304 \begin_inset Quotes erd
11305 \end_inset
11306
11307  and 
11308 \begin_inset Quotes eld
11309 \end_inset
11310
11311 NewNote:
11312 \begin_inset Quotes erd
11313 \end_inset
11314
11315 , respectively].
11316  The color is a stunning magenta instead of blue, and the 
11317 \begin_inset Quotes eld
11318 \end_inset
11319
11320 ASCII line
11321 \begin_inset Quotes erd
11322 \end_inset
11323
11324  will look different, in style and in length.
11325  The label fonts of all three also differ from one another.
11326 \end_layout
11327
11328 \begin_layout Standard
11329 As with a 
11330 \family sans
11331 Slide
11332 \family default
11333 , if the contents of a 
11334 \family sans
11335 Note
11336 \family default
11337  or 
11338 \family sans
11339 Overlay
11340 \family default
11341  exceed the physical size of a slide or sheet of paper, the extra will overflow
11342  onto a new sheet.
11343  Again, you should avoid this.
11344  It defeats the whole purpose of 
11345 \family sans
11346 Note
11347 \family default
11348 s and 
11349 \family sans
11350 Overlay
11351 \family default
11352 s.
11353 \end_layout
11354
11355 \begin_layout Paragraph
11356 Using 
11357 \family sans
11358 Overlay
11359 \family default
11360  with 
11361 \family sans
11362 Slide
11363 \end_layout
11364
11365 \begin_layout Standard
11366 The idea behind an 
11367 \family sans
11368 Overlay
11369 \family default
11370  is a slide that sits atop another slide.
11371  Perhaps you wish to discuss a figure on the main 
11372 \family sans
11373 Slide
11374 \family default
11375  before displaying the text associated with it.
11376  One way to accomplish this is tape a flap of dark paper over the part of
11377  the 
11378 \family sans
11379 Slide
11380 \family default
11381  you want to display later.
11382  This method fails, however, if you wish to overlap one graph with another,
11383  for example.
11384  You would then have to fumble while speaking to align the two separate,
11385  overlapping 
11386 \family sans
11387 Slide
11388 \family default
11389 s to align the two graphs.
11390  The use of an 
11391 \family sans
11392 Overlay
11393 \family default
11394  environment in both cases makes life much easier.
11395 \end_layout
11396
11397 \begin_layout Standard
11398 Each 
11399 \family sans
11400 Overlay
11401 \family default
11402  receives the page number of its 
11403 \begin_inset Quotes eld
11404 \end_inset
11405
11406 parent
11407 \begin_inset Quotes erd
11408 \end_inset
11409
11410  
11411 \family sans
11412 Slide
11413 \family default
11414 , appended by 
11415 \begin_inset Quotes eld
11416 \end_inset
11417
11418
11419 \family typewriter
11420 -a
11421 \family default
11422
11423 \begin_inset Quotes erd
11424 \end_inset
11425
11426 .
11427 \begin_inset Foot
11428 status collapsed
11429
11430 \begin_layout Plain Layout
11431 Presumably, mutliple 
11432 \family sans
11433 Overlay
11434 \family default
11435 s would have 
11436 \begin_inset Quotes eld
11437 \end_inset
11438
11439
11440 \family typewriter
11441 -a
11442 \family default
11443
11444 \begin_inset Quotes erd
11445 \end_inset
11446
11447
11448 \begin_inset Quotes eld
11449 \end_inset
11450
11451
11452 \family typewriter
11453 -b
11454 \family default
11455
11456 \begin_inset Quotes erd
11457 \end_inset
11458
11459
11460 \begin_inset Quotes eld
11461 \end_inset
11462
11463
11464 \family typewriter
11465 -c
11466 \family default
11467
11468 \begin_inset Quotes erd
11469 \end_inset
11470
11471 , etc.
11472 \begin_inset space ~
11473 \end_inset
11474
11475 appended to the page number of the parent 
11476 \family sans
11477 Slide
11478 \family default
11479 .
11480  
11481 \end_layout
11482
11483 \end_inset
11484
11485  Clearly, you want the contents of both the 
11486 \family sans
11487 Slide
11488 \family default
11489  and the 
11490 \family sans
11491 Overlay
11492 \family default
11493  to each fit on a single physical slide! You should probably consider an
11494  
11495 \family sans
11496 Overlay
11497 \family default
11498  as 
11499 \begin_inset Quotes eld
11500 \end_inset
11501
11502 part of
11503 \begin_inset Quotes erd
11504 \end_inset
11505
11506  a 
11507 \family sans
11508 Slide
11509 \family default
11510 .
11511  Indeed, the \SpecialChar LyX
11512  
11513 \family sans
11514 slides
11515 \family default
11516  class provides a visual cue for this: the label at the start of an 
11517 \family sans
11518 Overlay
11519 \family default
11520  is shorter than that at the start of a 
11521 \family sans
11522 Slide
11523 \family default
11524 .
11525  Lastly, when you generate printable output, you'll find alignment markers
11526  in all four corners of both the 
11527 \family sans
11528 Overlay
11529 \family default
11530  page and its parent 
11531 \family sans
11532 Slide
11533 \family default
11534 .
11535  These will assist you in lining up the two physical slides.
11536 \end_layout
11537
11538 \begin_layout Standard
11539 The major problem in overlaying two slides is aligning the contents of the
11540  two transparencies.
11541  How much space should you leave for that graph on the second slide? Worse
11542  still, what if you want a graph and a sentence on second slide, but there
11543  is text on the main transparency that goes in between them? You could try
11544  and insert vertical space of the right size.
11545  The better way is to use 
11546 \family sans
11547 InvisibleText
11548 \family default
11549  and 
11550 \family sans
11551 VisibleText
11552 \family default
11553 .
11554 \end_layout
11555
11556 \begin_layout Standard
11557 As their names imply, 
11558 \family sans
11559 InvisibleText
11560 \family default
11561  and 
11562 \family sans
11563 VisibleText
11564 \family default
11565  are two command-like paragraph environments that make all subsequent text
11566  invisible and visible, respectively.
11567  Note from section
11568 \begin_inset space ~
11569 \end_inset
11570
11571
11572 \begin_inset CommandInset ref
11573 LatexCommand ref
11574 reference "sec:slideQuirk"
11575
11576 \end_inset
11577
11578  that you don't place anything 
11579 \emph on
11580 into
11581 \emph default
11582  these two environments, however.
11583  When you create an 
11584 \family sans
11585 InvisibleText
11586 \family default
11587 , it inserts a centered, sky-blue label into the page reading 
11588 \begin_inset Quotes eld
11589 \end_inset
11590
11591 <Invisible Text Follows>
11592 \begin_inset Quotes erd
11593 \end_inset
11594
11595 .
11596  For paragraphs following this label, the parts of the 
11597 \family sans
11598 Slide
11599 \family default
11600  [or 
11601 \family sans
11602 Overlay
11603 \family default
11604 ; it doesn't matter which] where they would be contain instead blank space.
11605  
11606 \end_layout
11607
11608 \begin_layout Standard
11609 For 
11610 \family sans
11611 VisibleText
11612 \family default
11613 , the corresponding centered label is 
11614 \begin_inset Quotes eld
11615 \end_inset
11616
11617 <Visible Text Follows>
11618 \begin_inset Quotes erd
11619 \end_inset
11620
11621  in blazing green.
11622  Paragraphs following this label behave normally.
11623  Note that the beginning of a new 
11624 \family sans
11625 Slide
11626 \family default
11627
11628 \family sans
11629 Overlay
11630 \family default
11631 , or 
11632 \family sans
11633 Note
11634 \family default
11635  automatically shuts off an 
11636 \family sans
11637 InvisibleText
11638 \family default
11639 .
11640  It's therefore not necessary to use 
11641 \family sans
11642 VisibleText
11643 \family default
11644  at the end of a 
11645 \family sans
11646 Slide
11647 \family default
11648 .
11649 \end_layout
11650
11651 \begin_layout Standard
11652 By now, it should be obvious how to create overlay transparencies using
11653  the proper combination of 
11654 \family sans
11655 InvisibleText
11656 \family default
11657  and 
11658 \family sans
11659 VisibleText
11660 \family default
11661  on a 
11662 \family sans
11663 Slide
11664 \family default
11665  and 
11666 \family sans
11667 Overlay
11668 \family default
11669 :
11670 \end_layout
11671
11672 \begin_layout Enumerate
11673 Create a 
11674 \family sans
11675 Slide
11676 \family default
11677 , including everything that will appear on it, whether on the main slide
11678  or on the 
11679 \family sans
11680 Overlay
11681 \family default
11682 .
11683 \end_layout
11684
11685 \begin_layout Enumerate
11686 Before each figure or paragraph that will appear only on the 
11687 \family sans
11688 Overlay
11689 \family default
11690 , insert an 
11691 \family sans
11692 InvisibleText
11693 \family default
11694  environment.
11695  If necessary, insert a 
11696 \family sans
11697 VisibleText
11698 \family default
11699  environment after the 
11700 \family sans
11701 Overlay
11702 \family default
11703 -only text.
11704 \end_layout
11705
11706 \begin_layout Enumerate
11707 Start an 
11708 \family sans
11709 Overlay
11710 \family default
11711  immediately following the 
11712 \family sans
11713 Slide
11714 \family default
11715 .
11716 \end_layout
11717
11718 \begin_layout Enumerate
11719 Copy the contents of this 
11720 \family sans
11721 Slide
11722 \family default
11723  into the 
11724 \family sans
11725 Overlay
11726 \family default
11727 .
11728 \end_layout
11729
11730 \begin_layout Enumerate
11731 Within the 
11732 \family sans
11733 Overlay
11734 \family default
11735 , change all of the 
11736 \family sans
11737 InvisibleText
11738 \family default
11739  lines to 
11740 \family sans
11741 VisibleText
11742 \family default
11743  and vice-versa.
11744 \end_layout
11745
11746 \begin_layout Standard
11747 That's it.
11748  You've just made an 
11749 \family sans
11750 Overlay
11751 \family default
11752 .
11753 \end_layout
11754
11755 \begin_layout Standard
11756 There's one problem with the way I've designed the \SpecialChar LyX
11757  
11758 \family sans
11759 slides
11760 \family default
11761  class: you can't make text in the middle of a paragraph invisible, nor
11762  make text in the middle of an invisible paragraph visible again.
11763  To accomplish this feat, you'll need to use some inlined \SpecialChar LaTeX
11764  codes.
11765 \begin_inset Foot
11766 status collapsed
11767
11768 \begin_layout Plain Layout
11769 The commands of interest are: 
11770 \end_layout
11771
11772 \begin_layout Itemize
11773
11774 \family typewriter
11775 {
11776 \backslash
11777 invisible \SpecialChar ldots
11778  }
11779 \end_layout
11780
11781 \begin_layout Itemize
11782
11783 \family typewriter
11784 {
11785 \backslash
11786 visible \SpecialChar ldots
11787  }
11788 \end_layout
11789
11790 \begin_layout Plain Layout
11791 \SpecialChar ldots
11792 and need to be marked as \SpecialChar TeX
11793 .
11794  The text whose 
11795 \begin_inset Quotes eld
11796 \end_inset
11797
11798 visibility
11799 \begin_inset Quotes erd
11800 \end_inset
11801
11802  you wish to change goes in between the brackets [and after the 
11803 \family typewriter
11804
11805 \backslash
11806 invisible
11807 \family default
11808  or 
11809 \family typewriter
11810
11811 \backslash
11812 visible
11813 \family default
11814  command].
11815  If you don't know how to mark text as \SpecialChar TeX
11816 , see the appropriate section of
11817  the 
11818 \emph on
11819 User's Guide
11820 \emph default
11821 .
11822 \end_layout
11823
11824 \end_inset
11825
11826
11827 \end_layout
11828
11829 \begin_layout Paragraph
11830 Using 
11831 \family sans
11832 Note
11833 \family default
11834  with 
11835 \family sans
11836 Slide
11837 \family default
11838
11839 \begin_inset CommandInset label
11840 LatexCommand label
11841 name "sec:slideNote"
11842
11843 \end_inset
11844
11845
11846 \end_layout
11847
11848 \begin_layout Standard
11849 Like an 
11850 \family sans
11851 Overlay
11852 \family default
11853 , a 
11854 \family sans
11855 Note
11856 \family default
11857  is associated with a 
11858 \begin_inset Quotes eld
11859 \end_inset
11860
11861 parent
11862 \begin_inset Quotes erd
11863 \end_inset
11864
11865  
11866 \family sans
11867 Slide
11868 \family default
11869 .
11870  Here, too, the \SpecialChar LyX
11871  
11872 \family sans
11873 slides
11874 \family default
11875  class provides visual cues.
11876  The label for a 
11877 \family sans
11878 Note
11879 \family default
11880  is shorter than that of a 
11881 \family sans
11882 Slide
11883 \family default
11884  [yet longer than that of an 
11885 \family sans
11886 Overlay
11887 \family default
11888 ] and, like the label of an 
11889 \family sans
11890 Overlay
11891 \family default
11892  is shockingly magenta.
11893  Additionally, the printed 
11894 \family sans
11895 Note
11896 \family default
11897  has the page number of its 
11898 \begin_inset Quotes eld
11899 \end_inset
11900
11901 parent
11902 \begin_inset Quotes erd
11903 \end_inset
11904
11905  
11906 \family sans
11907 Slide
11908 \family default
11909 , appended by 
11910 \begin_inset Quotes eld
11911 \end_inset
11912
11913
11914 \family typewriter
11915 -
11916 \family default
11917 1
11918 \begin_inset Quotes erd
11919 \end_inset
11920
11921
11922 \begin_inset Quotes eld
11923 \end_inset
11924
11925
11926 \family typewriter
11927 -
11928 \family default
11929 2
11930 \begin_inset Quotes erd
11931 \end_inset
11932
11933
11934 \begin_inset Quotes eld
11935 \end_inset
11936
11937
11938 \family typewriter
11939 -
11940 \family default
11941 3
11942 \begin_inset Quotes erd
11943 \end_inset
11944
11945 , etc.
11946  You can have multiple 
11947 \family sans
11948 Note
11949 \family default
11950 s associated with a single 
11951 \family sans
11952 Slide
11953 \family default
11954 , and, as with 
11955 \family sans
11956 Slide
11957 \family default
11958  and 
11959 \family sans
11960 Overlay
11961 \family default
11962 , you'll probably want to break up long 
11963 \family sans
11964 Note
11965 \family default
11966 s so that they fit on a single sheet of paper.
11967 \end_layout
11968
11969 \begin_layout Standard
11970 The purpose of a 
11971 \family sans
11972 Note
11973 \family default
11974  is obvious: it contains anything additional you might want to say about
11975  a 
11976 \family sans
11977 Slide
11978 \family default
11979 .
11980  It could also be used as a sheet of reminders for a particular 
11981 \family sans
11982 Slide
11983 \family default
11984 .
11985  In the case of the latter, you might want to make use of time markers.
11986  Currently, the \SpecialChar LyX
11987  
11988 \family sans
11989 slides
11990 \family default
11991  class has no 
11992 \begin_inset Quotes eld
11993 \end_inset
11994
11995 native
11996 \begin_inset Quotes erd
11997 \end_inset
11998
11999  support for time markers, a 
12000 \noun on
12001 Sli\SpecialChar TeX
12002
12003 \noun default
12004  feature.
12005  So, you'll have to resort to using the \SpecialChar LaTeX
12006  codes.
12007 \end_layout
12008
12009 \begin_layout Standard
12010 To use time markers, you'll need to specify the extra class option 
12011 \begin_inset Quotes eld
12012 \end_inset
12013
12014
12015 \family typewriter
12016 clock
12017 \family default
12018
12019 \begin_inset Quotes erd
12020 \end_inset
12021
12022  [see section
12023 \begin_inset space ~
12024 \end_inset
12025
12026
12027 \begin_inset CommandInset ref
12028 LatexCommand ref
12029 reference "sec:slidesetup"
12030
12031 \end_inset
12032
12033 ].
12034  This option turns on timing marks, which will appear in the lower-left-hand
12035  corner of every 
12036 \family sans
12037 Note
12038 \family default
12039  you generate.
12040  To set what appears in the time marker, you use the \SpecialChar LaTeX
12041  commands 
12042 \begin_inset Quotes eld
12043 \end_inset
12044
12045
12046 \family typewriter
12047
12048 \backslash
12049 settime{}
12050 \family default
12051
12052 \begin_inset Quotes erd
12053 \end_inset
12054
12055  and 
12056 \begin_inset Quotes eld
12057 \end_inset
12058
12059
12060 \family typewriter
12061
12062 \backslash
12063 addtime{}
12064 \family default
12065
12066 \begin_inset Quotes erd
12067 \end_inset
12068
12069 .
12070  The arguments of both commands are time measured in seconds.
12071  
12072 \begin_inset Quotes eld
12073 \end_inset
12074
12075
12076 \family typewriter
12077
12078 \backslash
12079 settime{}
12080 \family default
12081
12082 \begin_inset Quotes erd
12083 \end_inset
12084
12085  sets the time marker to a given time.
12086  
12087 \begin_inset Quotes eld
12088 \end_inset
12089
12090
12091 \family typewriter
12092
12093 \backslash
12094 addtime{}
12095 \family default
12096
12097 \begin_inset Quotes erd
12098 \end_inset
12099
12100  increments the time marker by the specified amount.
12101  Using time markers and 
12102 \family sans
12103 Note
12104 \family default
12105 s in this fashion, you can remind yourself how much time to spend on a particula
12106
12107 \family sans
12108 Slide
12109 \family default
12110 .
12111 \end_layout
12112
12113 \begin_layout Standard
12114 There's one last feature to describe.
12115  Clearly, you'd like to print out all of your 
12116 \family sans
12117 Slide
12118 \family default
12119 s and 
12120 \family sans
12121 Overlay
12122 \family default
12123 s on transparencies while printing all of your 
12124 \family sans
12125 Note
12126 \family default
12127 s on plain paper.
12128  However, a 
12129 \family sans
12130 Note
12131 \family default
12132  
12133 \emph on
12134 must
12135 \emph default
12136  follow the 
12137 \family sans
12138 Slide
12139 \family default
12140  with which it is associated.
12141  What's a person to do?
12142 \end_layout
12143
12144 \begin_layout Standard
12145 Luckily, there are two \SpecialChar LaTeX
12146  commands that allow you to select what to print
12147  out.
12148  Both must be placed into the preamble of your document.
12149  The command 
12150 \begin_inset Quotes eld
12151 \end_inset
12152
12153
12154 \family typewriter
12155
12156 \backslash
12157 onlyslides{
12158 \backslash
12159 slides}
12160 \family default
12161
12162 \begin_inset Quotes erd
12163 \end_inset
12164
12165  will cause the output to contain only the 
12166 \family sans
12167 Slide
12168 \family default
12169 s and 
12170 \family sans
12171 Overlay
12172 \family default
12173 s.
12174  Correspondingly, the command 
12175 \begin_inset Quotes eld
12176 \end_inset
12177
12178
12179 \family typewriter
12180
12181 \backslash
12182 onlynotes{
12183 \backslash
12184 notes}
12185 \family default
12186
12187 \begin_inset Quotes erd
12188 \end_inset
12189
12190  prevents the output of anything but 
12191 \family sans
12192 Note
12193 \family default
12194 s.
12195  I'd advise placing both commands in the preamble and initially comment
12196  both out.
12197  You can then preview your entire presentation as you write.
12198  When you're done writing, you can then uncomment one of the two to select
12199  what you want to print.
12200  I like to uncomment 
12201 \begin_inset Quotes eld
12202 \end_inset
12203
12204
12205 \family typewriter
12206
12207 \backslash
12208 onlyslides{
12209 \backslash
12210 slides}
12211 \family default
12212
12213 \begin_inset Quotes erd
12214 \end_inset
12215
12216  , print to a file with 
12217 \begin_inset Quotes eld
12218 \end_inset
12219
12220
12221 \family typewriter
12222 -slides
12223 \family default
12224
12225 \begin_inset Quotes erd
12226 \end_inset
12227
12228  in its name, comment it back out, then uncomment 
12229 \begin_inset Quotes eld
12230 \end_inset
12231
12232
12233 \family typewriter
12234
12235 \backslash
12236 onlynotes{
12237 \backslash
12238 notes}
12239 \family default
12240
12241 \begin_inset Quotes erd
12242 \end_inset
12243
12244  and print to a 
12245 \begin_inset Quotes eld
12246 \end_inset
12247
12248
12249 \family typewriter
12250 *-notes.ps
12251 \family default
12252
12253 \begin_inset Quotes erd
12254 \end_inset
12255
12256  file.
12257  I can then send either file to a printer, loading transparencies or plain
12258  paper as appropriate.
12259 \end_layout
12260
12261 \begin_layout Standard
12262 You can also provide other arguments to the 
12263 \begin_inset Quotes eld
12264 \end_inset
12265
12266
12267 \family typewriter
12268
12269 \backslash
12270 onlyslides{}
12271 \family default
12272
12273 \begin_inset Quotes erd
12274 \end_inset
12275
12276  and 
12277 \begin_inset Quotes eld
12278 \end_inset
12279
12280
12281 \family typewriter
12282
12283 \backslash
12284 onlynotes{}
12285 \family default
12286
12287 \begin_inset Quotes erd
12288 \end_inset
12289
12290  commands.
12291  See a good \SpecialChar LaTeX
12292  book for details.
12293 \end_layout
12294
12295 \begin_layout Subsubsection
12296 The 
12297 \family sans
12298 slides
12299 \family default
12300  Class Template File
12301 \end_layout
12302
12303 \begin_layout Standard
12304 I have also provided a template file
12305 \change_deleted 564990737 1671617750
12306
12307 \begin_inset Quotes eld
12308 \end_inset
12309
12310
12311 \family typewriter
12312 slides.lyx
12313 \family default
12314
12315 \begin_inset Quotes erd
12316 \end_inset
12317
12318 ,
12319 \change_unchanged
12320  with the 
12321 \family sans
12322 slides
12323 \family default
12324  class.
12325  To use it, begin your new presentation with 
12326 \family sans
12327 File\SpecialChar menuseparator
12328 New
12329 \begin_inset space ~
12330 \end_inset
12331
12332 from
12333 \begin_inset space ~
12334 \end_inset
12335
12336 Template
12337 \change_inserted 564990737 1671616988
12338 \SpecialChar menuseparator
12339 Presentations\SpecialChar menuseparator
12340 Slides
12341 \change_unchanged
12342
12343 \family default
12344 .
12345  Your new \SpecialChar LyX
12346  presentation file will contain an example 
12347 \family sans
12348 Slide
12349 \family default
12350  – 
12351 \family sans
12352 Overlay
12353 \family default
12354  – 
12355 \family sans
12356 Note
12357 \family default
12358  triplet.
12359  The 
12360 \family sans
12361 Slide
12362 \family default
12363  and 
12364 \family sans
12365 Overlay
12366 \family default
12367  additionally contain an example of the use of 
12368 \family sans
12369 InvisibleText
12370 \family default
12371  and 
12372 \family sans
12373 VisibleText
12374 \family default
12375 .
12376  Lastly, the preamble will contain:
12377 \end_layout
12378
12379 \begin_layout LyX-Code
12380 % Uncomment to print out only slides and overlays
12381 \end_layout
12382
12383 \begin_layout LyX-Code
12384 %
12385 \end_layout
12386
12387 \begin_layout LyX-Code
12388 %
12389 \backslash
12390 onlyslides{
12391 \backslash
12392 slides}
12393 \begin_inset Newline newline
12394 \end_inset
12395
12396  
12397 \end_layout
12398
12399 \begin_layout LyX-Code
12400 % Uncomment to print out only notes
12401 \end_layout
12402
12403 \begin_layout LyX-Code
12404 %
12405 \end_layout
12406
12407 \begin_layout LyX-Code
12408 %
12409 \backslash
12410 onlynotes{
12411 \backslash
12412 notes}
12413 \end_layout
12414
12415 \begin_layout Standard
12416 One final thing: I created this class to support the \SpecialChar LaTeX2e
12417  
12418 \begin_inset Quotes eld
12419 \end_inset
12420
12421
12422 \noun on
12423 Sli\SpecialChar TeX
12424
12425 \noun default
12426  emulation
12427 \begin_inset Quotes erd
12428 \end_inset
12429
12430  class, one of the built-in \SpecialChar LaTeX2e
12431  classes.
12432  Neither I nor the rest of the \SpecialChar LyX
12433  Team endorse or oppose the use of this built-in
12434  slide class.
12435  It's here if you want it or need it.
12436  There exist other \SpecialChar LaTeX2e
12437  classes for creating presentations, such as the 
12438 \family sans
12439 Foils
12440 \family default
12441  class [see section
12442 \begin_inset space ~
12443 \end_inset
12444
12445
12446 \begin_inset CommandInset ref
12447 LatexCommand ref
12448 reference "sec:foiltex"
12449
12450 \end_inset
12451
12452 ] or the 
12453 \begin_inset Quotes eld
12454 \end_inset
12455
12456
12457 \family typewriter
12458 seminar
12459 \family default
12460
12461 \begin_inset Quotes erd
12462 \end_inset
12463
12464  package [present on some \SpecialChar TeX
12465  distributions].
12466  The latter is not yet supported under \SpecialChar LyX
12467 .
12468 \begin_inset Foot
12469 status collapsed
12470
12471 \begin_layout Plain Layout
12472 Perhaps you can take on the task\SpecialChar ldots
12473
12474 \end_layout
12475
12476 \end_inset
12477
12478  I know nothing about these other classes.
12479  Try them out to see what sort of alternative they provide.
12480 \end_layout
12481
12482 \begin_layout Section
12483
12484 \change_inserted 564990737 1670439661
12485 Reports
12486 \end_layout
12487
12488 \begin_layout Subsection
12489
12490 \change_inserted 564990737 1670439661
12491 report
12492 \end_layout
12493
12494 \begin_layout Standard
12495
12496 \change_inserted 564990737 1670439661
12497 The document class 
12498 \family sans
12499 report
12500 \family default
12501  provides the 
12502 \family sans
12503 report.cls
12504 \family default
12505  document class for preparing reports.
12506  Like the 
12507 \family sans
12508 book
12509 \family default
12510  document class, this provides parts, chapters and sections but does not
12511  provide the paragraph styles needed for a book; like the 
12512 \family sans
12513 article
12514 \family default
12515  document class, it provides the abstract paragraph style.
12516  In two-sided mode, it does not start a new chapter on the right hand page.
12517 \end_layout
12518
12519 \begin_layout Standard
12520
12521 \change_inserted 564990737 1670439674
12522 The remaining 
12523 \family sans
12524 report
12525 \family default
12526  document classes are described in the Collections (section
12527 \begin_inset space ~
12528 \end_inset
12529
12530
12531 \begin_inset CommandInset ref
12532 LatexCommand ref
12533 reference "sec:Collections"
12534
12535 \end_inset
12536
12537 ).
12538 \end_layout
12539
12540 \begin_layout Section
12541
12542 \change_inserted 564990737 1670439674
12543 Scripts (drama)
12544 \end_layout
12545
12546 \begin_layout Subsection
12547 Broadway
12548 \end_layout
12549
12550 \begin_layout Standard
12551 by 
12552 \shape smallcaps
12553 Garst Reese
12554 \end_layout
12555
12556 \begin_layout Subsubsection
12557 Introduction
12558 \end_layout
12559
12560 \begin_layout Standard
12561 Broadway is for writing plays.
12562  The format is more decorative than Hollywood, and much less standardized.
12563  This format should be suitable for workshops.
12564 \end_layout
12565
12566 \begin_layout Subsubsection
12567 Special problems
12568 \end_layout
12569
12570 \begin_layout Standard
12571 The same as in Hollywood.
12572 \end_layout
12573
12574 \begin_layout Subsubsection
12575 Special features
12576 \end_layout
12577
12578 \begin_layout Standard
12579 Insert the 
12580 \family sans
12581 Speaker
12582 \family default
12583  names as labels then cross-reference the label to insert the name.
12584  The cross-reference dialog will show the current cast of characters.
12585 \end_layout
12586
12587 \begin_layout Subsubsection
12588 Paper size and Margins
12589 \end_layout
12590
12591 \begin_layout Standard
12592 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
12593 \end_layout
12594
12595 \begin_layout Subsubsection
12596 Environments
12597 \end_layout
12598
12599 \begin_layout Standard
12600 The following environments are available.
12601  You can use broadway.bind to get the bind keys shown at the right.
12602 \end_layout
12603
12604 \begin_layout Itemize
12605
12606 \family sans
12607 Standard
12608 \begin_inset Newline newline
12609 \end_inset
12610
12611
12612 \family default
12613 You should not have to use this, but it is here for anything that does not
12614  fit otherwise.
12615 \end_layout
12616
12617 \begin_layout Itemize
12618
12619 \family sans
12620 Narrative
12621 \begin_inset space \hfill{}
12622 \end_inset
12623
12624 M-z n
12625 \begin_inset Newline newline
12626 \end_inset
12627
12628
12629 \family default
12630 Used to describe stage setting and the action.
12631  First use of speaker names in all CAPs.
12632 \end_layout
12633
12634 \begin_layout Itemize
12635
12636 \family sans
12637 ACT
12638 \begin_inset space \hfill{}
12639 \end_inset
12640
12641 M-z a
12642 \begin_inset Newline newline
12643 \end_inset
12644
12645
12646 \family default
12647 Automatically numbered.
12648  On screen it will be arabic, but will print as Roman.
12649 \end_layout
12650
12651 \begin_layout Itemize
12652
12653 \family sans
12654 ACT*
12655 \begin_inset space \hfill{}
12656 \end_inset
12657
12658 M-z S at
12659 \begin_inset Newline newline
12660 \end_inset
12661
12662
12663 \family default
12664 Subtitle for 
12665 \family sans
12666 ACT.
12667
12668 \family default
12669  It is just centered text.
12670 \end_layout
12671
12672 \begin_layout Itemize
12673
12674 \family sans
12675 SCENE
12676 \begin_inset space \hfill{}
12677 \end_inset
12678
12679 M-z S-S
12680 \begin_inset Newline newline
12681 \end_inset
12682
12683
12684 \family default
12685 Not automatically numbered.
12686  You supply the number.
12687  This is because I couldn't figure out how.
12688 \end_layout
12689
12690 \begin_layout Itemize
12691
12692 \family sans
12693 AT_RISE:
12694 \begin_inset space \hfill{}
12695 \end_inset
12696
12697 M-z S-R
12698 \begin_inset Newline newline
12699 \end_inset
12700
12701
12702 \family default
12703 A special case of Narrative to describe the setting and action as the curtain
12704  rises.
12705 \end_layout
12706
12707 \begin_layout Itemize
12708
12709 \family sans
12710 Speaker
12711 \begin_inset space \hfill{}
12712 \end_inset
12713
12714 M-z s
12715 \begin_inset Newline newline
12716 \end_inset
12717
12718
12719 \family default
12720 The speaker's (actor's) title, centered in all CAPS.
12721 \end_layout
12722
12723 \begin_layout Itemize
12724
12725 \family sans
12726 Parenthetical
12727 \begin_inset space \hfill{}
12728 \end_inset
12729
12730 M-z p
12731 \begin_inset Newline newline
12732 \end_inset
12733
12734
12735 \family default
12736 Instructions to the speaker.
12737  The parentheses are automatically inserted.
12738  The ( will appear on screen, but both will be in the printed play.
12739  This environment is only used within 
12740 \family sans
12741 Dialogue
12742 \family default
12743 .
12744 \end_layout
12745
12746 \begin_layout Itemize
12747
12748 \family sans
12749 Dialogue
12750 \begin_inset space \hfill{}
12751 \end_inset
12752
12753 M-z d
12754 \begin_inset Newline newline
12755 \end_inset
12756
12757
12758 \family default
12759 What the Speaker says.
12760 \end_layout
12761
12762 \begin_layout Itemize
12763
12764 \family sans
12765 CURTAIN
12766 \begin_inset space \hfill{}
12767 \end_inset
12768
12769 M-z S-C
12770 \begin_inset Newline newline
12771 \end_inset
12772
12773
12774 \family default
12775 The curtain comes down.
12776 \end_layout
12777
12778 \begin_layout Itemize
12779
12780 \family sans
12781 Title
12782 \begin_inset space \hfill{}
12783 \end_inset
12784
12785 M-z S-T
12786 \end_layout
12787
12788 \begin_layout Itemize
12789
12790 \family sans
12791 Author
12792 \begin_inset space \hfill{}
12793 \end_inset
12794
12795 M-z S-A
12796 \end_layout
12797
12798 \begin_layout Itemize
12799
12800 \family sans
12801 Right_Address
12802 \begin_inset space \hfill{}
12803 \end_inset
12804
12805 M-z r
12806 \end_layout
12807
12808 \begin_layout Standard
12809 Hello there.
12810 \end_layout
12811
12812 \begin_layout Subsection
12813 Hollywood (Hollywood spec scripts)
12814 \end_layout
12815
12816 \begin_layout Standard
12817 by 
12818 \shape smallcaps
12819 Garst Reese
12820 \end_layout
12821
12822 \begin_layout Subsubsection
12823 Introduction
12824 \end_layout
12825
12826 \begin_layout Standard
12827 Getting the format of a Hollywood script right is a 
12828 \begin_inset Quotes eld
12829 \end_inset
12830
12831 rite of passage.
12832 \begin_inset Quotes erd
12833 \end_inset
12834
12835  It is designed to make the readers focus on content and to be easy and
12836  familiar for the actors to read.
12837  Each page of a script should be one minute of film.
12838  Nothing goes in a script that you cannot see or hear on screen.
12839  The courier 12 pt font should be used throughout.
12840  No italics.
12841 \end_layout
12842
12843 \begin_layout Subsubsection
12844 Special problems
12845 \end_layout
12846
12847 \begin_layout Standard
12848 Speakers' lines should NEVER break in mid-sentence.
12849  If a speaker's lines continue over a page break, repeat the 
12850 \family sans
12851 Speaker
12852 \family default
12853  title followed by (Cont'd).
12854 \end_layout
12855
12856 \begin_layout Subsubsection
12857 Special features
12858 \end_layout
12859
12860 \begin_layout Standard
12861 Insert the 
12862 \family sans
12863 Speaker
12864 \family default
12865  names as labels then cross-reference the label to insert the name.
12866  The cross-reference dialog will show the current cast of characters.
12867  You can use this to insert the speaker name in narratives also.
12868 \end_layout
12869
12870 \begin_layout Subsubsection
12871 Paper size and Margins
12872 \end_layout
12873
12874 \begin_layout Standard
12875 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
12876 \end_layout
12877
12878 \begin_layout Subsubsection
12879 Environments
12880 \end_layout
12881
12882 \begin_layout Standard
12883 The following environments are available.
12884  You can use hollywood.bind to get the bind keys shown at the right.
12885 \end_layout
12886
12887 \begin_layout Itemize
12888
12889 \family sans
12890 Standard
12891 \begin_inset Newline newline
12892 \end_inset
12893
12894
12895 \family default
12896 Used where nothing else works.
12897  Try to avoid it.
12898 \end_layout
12899
12900 \begin_layout Itemize
12901
12902 \family sans
12903 FADE_IN
12904 \family default
12905 :
12906 \begin_inset space \hfill{}
12907 \end_inset
12908
12909
12910 \family sans
12911 M-z S-I
12912 \family default
12913
12914 \begin_inset Newline newline
12915 \end_inset
12916
12917 Usually followed by something like 
12918 \begin_inset Quotes eld
12919 \end_inset
12920
12921 on Sally waking up.
12922 \begin_inset Quotes erd
12923 \end_inset
12924
12925
12926 \end_layout
12927
12928 \begin_layout Itemize
12929
12930 \family sans
12931 INT:
12932 \begin_inset space \hfill{}
12933 \end_inset
12934
12935 M-z i
12936 \begin_inset Newline newline
12937 \end_inset
12938
12939
12940 \family default
12941 Introduces a new INTERIOR camera set-up.
12942  Always followed by DAY or NIGHT, or something similar to define the lighting
12943  required.
12944  Everthing on this line in CAPS.
12945 \end_layout
12946
12947 \begin_layout Itemize
12948
12949 \family sans
12950 EXT:
12951 \begin_inset space \hfill{}
12952 \end_inset
12953
12954 M-z e
12955 \begin_inset Newline newline
12956 \end_inset
12957
12958
12959 \family default
12960 Introduces a new EXTERIOR camera set-up.
12961  Everthing on this line in CAPS.
12962 \end_layout
12963
12964 \begin_layout Itemize
12965
12966 \family sans
12967 Speaker
12968 \begin_inset space \hfill{}
12969 \end_inset
12970
12971 M-z s
12972 \begin_inset Newline newline
12973 \end_inset
12974
12975
12976 \family default
12977 The character speaking.
12978 \end_layout
12979
12980 \begin_layout Itemize
12981
12982 \family sans
12983 Parenthetical
12984 \begin_inset space \hfill{}
12985 \end_inset
12986
12987 M-z p
12988 \begin_inset Newline newline
12989 \end_inset
12990
12991
12992 \family default
12993 Instructions to the speaker.
12994  The () are automatically inserted.
12995 \end_layout
12996
12997 \begin_layout Itemize
12998
12999 \family sans
13000 Dialogue
13001 \begin_inset space \hfill{}
13002 \end_inset
13003
13004 M-z d
13005 \begin_inset Newline newline
13006 \end_inset
13007
13008
13009 \family default
13010 What the 
13011 \family sans
13012 Speaker
13013 \family default
13014  says.
13015 \end_layout
13016
13017 \begin_layout Itemize
13018
13019 \family sans
13020 Transition
13021 \begin_inset space \hfill{}
13022 \end_inset
13023
13024 M-z t
13025 \begin_inset Newline newline
13026 \end_inset
13027
13028
13029 \family default
13030 Camera movement instruction.
13031  e.
13032 \begin_inset space \thinspace{}
13033 \end_inset
13034
13035 g.
13036 \begin_inset space \space{}
13037 \end_inset
13038
13039 CUT TO:
13040 \end_layout
13041
13042 \begin_layout Itemize
13043
13044 \family sans
13045 FADE OUT:
13046 \begin_inset space \hfill{}
13047 \end_inset
13048
13049 M-z S-I
13050 \end_layout
13051
13052 \begin_layout Itemize
13053
13054 \family sans
13055 Author
13056 \begin_inset space \hfill{}
13057 \end_inset
13058
13059 M-z S-A
13060 \end_layout
13061
13062 \begin_layout Itemize
13063
13064 \family sans
13065 Title
13066 \begin_inset space \hfill{}
13067 \end_inset
13068
13069 M-z S-T
13070 \end_layout
13071
13072 \begin_layout Itemize
13073
13074 \family sans
13075 Right_Address
13076 \begin_inset space \hfill{}
13077 \end_inset
13078
13079 M-z r
13080 \end_layout
13081
13082 \begin_layout Subsubsection
13083 Script jargon
13084 \end_layout
13085
13086 \begin_layout Itemize
13087 (O.S) — off screen
13088 \end_layout
13089
13090 \begin_layout Itemize
13091 (V.0) — voice over
13092 \end_layout
13093
13094 \begin_layout Itemize
13095 b.
13096 \begin_inset space \thinspace{}
13097 \end_inset
13098
13099 g.
13100  — background
13101 \end_layout
13102
13103 \begin_layout Itemize
13104 C.U.
13105  — close-up
13106 \end_layout
13107
13108 \begin_layout Itemize
13109 PAN — camera movement
13110 \end_layout
13111
13112 \begin_layout Itemize
13113 INSERT — cut to close-up of
13114 \end_layout
13115
13116 \begin_layout Chapter
13117
13118 \change_inserted 564990737 1671185876
13119 Modules
13120 \end_layout
13121
13122 \begin_layout Section
13123
13124 \change_inserted 564990737 1671716212
13125
13126 \lang american
13127 Academic Field Specifics
13128 \end_layout
13129
13130 \begin_layout Subsection
13131
13132 \change_inserted 564990737 1671716212
13133
13134 \lang american
13135 Chemistry: Hazard and Precautionary Statements 
13136 \end_layout
13137
13138 \begin_layout Standard
13139
13140 \change_inserted 564990737 1671716212
13141
13142 \lang american
13143 This module provides two insets to typeset numbers and phrases of chemical
13144  hazard and precautionary statements.
13145  For a description see 
13146 \family sans
13147 \lang british
13148 File\SpecialChar menuseparator
13149 Open Example\SpecialChar menuseparator
13150 Modules\SpecialChar menuseparator
13151 Hazard and Precautionary Statements
13152 \family default
13153  and 
13154 \family sans
13155 Help\SpecialChar menuseparator
13156 Specific Manuals\SpecialChar menuseparator
13157 Hazard and Precautionary Statements
13158 \family default
13159 \lang american
13160 .
13161 \end_layout
13162
13163 \begin_layout Subsection
13164
13165 \change_inserted 564990737 1671716212
13166
13167 \series bold
13168 \lang american
13169 Chemistry: Risk and Safety Statements
13170 \end_layout
13171
13172 \begin_layout Standard
13173
13174 \change_inserted 564990737 1671716212
13175
13176 \lang american
13177 This module provides two insets, 
13178 \family sans
13179 R-S number
13180 \family default
13181  and 
13182 \family sans
13183 R-S phrase
13184 \family default
13185 , accessible via the menu 
13186 \family sans
13187 \bar under
13188 I
13189 \bar default
13190 nsert\SpecialChar menuseparator
13191 Custom
13192 \begin_inset space ~
13193 \end_inset
13194
13195 Insets
13196 \family default
13197  and an environment to typeset numbers and phrases of chemical risk and
13198  safety statements.
13199 \end_layout
13200
13201 \begin_layout Subsection
13202
13203 \change_inserted 564990737 1671716212
13204
13205 \lang american
13206 Linguistics
13207 \end_layout
13208
13209 \begin_layout Standard
13210
13211 \change_inserted 564990737 1671716212
13212
13213 \lang american
13214 This module uses the 
13215 \family sans
13216 covington.sty
13217 \family default
13218  package to add environments useful for linguistics (numbered examples,
13219  glosses, semantic markup, tableau floats).
13220  You can obtain information about this module in 
13221 \family sans
13222 \bar under
13223 H
13224 \bar default
13225 elp\SpecialChar menuseparator
13226 S
13227 \bar under
13228 p
13229 \bar default
13230 ecific
13231 \begin_inset space ~
13232 \end_inset
13233
13234 Manuals\SpecialChar menuseparator
13235
13236 \bar under
13237 L
13238 \bar default
13239 inguistics
13240 \family default
13241  and 
13242 \family sans
13243 \lang british
13244 File\SpecialChar menuseparator
13245 Open Example\SpecialChar menuseparator
13246
13247 \lang american
13248 Modules\SpecialChar menuseparator
13249 Linguistics
13250 \family default
13251 .
13252 \end_layout
13253
13254 \begin_layout Section
13255 Multiple Text Columns
13256 \end_layout
13257
13258 \begin_layout Standard
13259 This feature is independent of the option 
13260 \family sans
13261 Two-column document
13262 \family default
13263  in the document settings under 
13264 \family sans
13265 Text Layout
13266 \family default
13267 .
13268  If you want to have 2
13269 \begin_inset space ~
13270 \end_inset
13271
13272 columns for the whole document, it is recommended to use the 
13273 \family sans
13274 Two-column document
13275 \family default
13276  option.
13277  For all other cases use this feature.
13278 \end_layout
13279
13280 \begin_layout Standard
13281 To use multiple text columns in your document, you have to load the module
13282  
13283 \family sans
13284 Multiple Columns
13285 \family default
13286  (menu 
13287 \family sans
13288 Document\SpecialChar menuseparator
13289 Settings\SpecialChar menuseparator
13290 Modules
13291 \family default
13292 ) and must have the \SpecialChar LaTeX
13293 -package 
13294 \begin_inset Flex Code
13295 status collapsed
13296
13297 \begin_layout Plain Layout
13298 multicol
13299 \end_layout
13300
13301 \end_inset
13302
13303  installed.
13304 \end_layout
13305
13306 \begin_layout Standard
13307 Footnotes within multiple columns will be placed at the bottom of the page
13308  and not under each column.
13309  Within the different columns you can use everything, with the limitation
13310  that for floats you need to use the float option 
13311 \family sans
13312 Span columns
13313 \family default
13314 .
13315 \end_layout
13316
13317 \begin_layout Subsection
13318 Basics
13319 \end_layout
13320
13321 \begin_layout Standard
13322 If you want to have 2
13323 \begin_inset space ~
13324 \end_inset
13325
13326 columns in your text, insert a multicolumn inset via the menu 
13327 \family sans
13328 Insert\SpecialChar menuseparator
13329 Custom
13330 \begin_inset space ~
13331 \end_inset
13332
13333 Insets\SpecialChar menuseparator
13334 Multiple
13335 \begin_inset space ~
13336 \end_inset
13337
13338 Columns
13339 \family default
13340  where the columns should start.
13341  Write all text that should be printed in 2
13342 \begin_inset space ~
13343 \end_inset
13344
13345 columns into this inset.
13346 \end_layout
13347
13348 \begin_layout Standard
13349 Here is an example:
13350 \end_layout
13351
13352 \begin_layout Standard
13353 \noindent
13354 \begin_inset Flex Multiple Columns
13355 status open
13356
13357 \begin_layout Plain Layout
13358 \noindent
13359
13360 \series bold
13361 \size small
13362 The Adventure of the Empty House
13363 \series default
13364
13365 \begin_inset Newline newline
13366 \end_inset
13367
13368 by Sir Arthur Conan Doyle
13369 \end_layout
13370
13371 \begin_layout Plain Layout
13372
13373 \size small
13374 It was in the spring of the year 1894 that all London was interested, and
13375  the fashionable world dismayed, by the murder of the Honourable Ronald
13376  Adair under most unusual and inexplicable circumstances.
13377  The public has already learned those particulars of the crime which came
13378  out in the police investigation, but a good deal was suppressed upon that
13379  occasion, since the case for the prosecution was so overwhelmingly strong
13380  that it was not necessary to bring forward all the facts.
13381  Only now, at the end of nearly ten years, am I allowed to supply those
13382  missing links which make up the whole of that remarkable chain.
13383  The crime was of interest in itself, but that interest was as nothing to
13384  me compared to the inconceivable sequel, which afforded me the greatest
13385  shock and surprise of any event in my adventurous life.
13386  Even now, after this long interval, I find myself thrilling as I think
13387  of it, and feeling once more that sudden flood of joy, amazement, and increduli
13388 ty which utterly submerged my mind.
13389  Let me say to that public, which has shown some interest in those glimpses
13390  which I have occasionally given them of the thoughts and actions of a very
13391  remarkable man, that they are not to blame me if I have not shared my knowledge
13392  with them, for I should have considered it my first duty to do so, had
13393  I not been barred by a positive prohibition from his own lips, which was
13394  only withdrawn upon the third of last month.
13395 \end_layout
13396
13397 \end_inset
13398
13399
13400 \end_layout
13401
13402 \begin_layout Standard
13403 To get 3 or more columns, set the cursor into the multicolumn inset and
13404  use the menu 
13405 \family sans
13406 Insert\SpecialChar menuseparator
13407 Number
13408 \begin_inset space ~
13409 \end_inset
13410
13411 of
13412 \begin_inset space ~
13413 \end_inset
13414
13415 Columns
13416 \family default
13417 .
13418  The number of the desired columns is written into that inset (for 3
13419 \begin_inset space ~
13420 \end_inset
13421
13422 columns write 
13423 \begin_inset Quotes eld
13424 \end_inset
13425
13426 3
13427 \begin_inset Quotes erd
13428 \end_inset
13429
13430 ).
13431 \begin_inset Newline newline
13432 \end_inset
13433
13434 Here is an example with 3
13435 \begin_inset space ~
13436 \end_inset
13437
13438 columns:
13439 \end_layout
13440
13441 \begin_layout Standard
13442 \begin_inset Flex Multiple Columns
13443 status open
13444
13445 \begin_layout Plain Layout
13446
13447 \size footnotesize
13448 \begin_inset Argument 1
13449 status open
13450
13451 \begin_layout Plain Layout
13452
13453 3
13454 \end_layout
13455
13456 \end_inset
13457
13458 It can be imagined that my close intimacy with Sherlock Holmes had interested
13459  me deeply in crime, and that after his disappearance I never failed to
13460  read with care the various problems which came before the public.
13461  And I even attempted, more than once, for my own private satisfaction,
13462  to employ his methods in their solution, though with indifferent success.
13463  There was none, however, which appealed to me like this tragedy of Ronald
13464  Adair.
13465  As I read the evidence at the inquest, which led up to a verdict of willful
13466  murder against some person or persons unknown, I realized more clearly
13467  than I had ever done the loss which the community had sustained by the
13468  death of Sherlock Holmes.
13469  There were points about this strange business which would, I was sure,
13470  have specially appealed to him, and the efforts of the police would have
13471  been supplemented, or more probably anticipated, by the trained observation
13472  and the alert mind of the first criminal agent in Europe.
13473  All day, as I drove upon my round, I turned over the case in my mind and
13474  found no explanation which appeared to me to be adequate.
13475  At the risk of telling a twice-told tale, I will recapitulate the facts
13476  as they were known to the public at the conclusion of the inquest.
13477 \end_layout
13478
13479 \end_inset
13480
13481
13482 \end_layout
13483
13484 \begin_layout Standard
13485 You can have up to 10
13486 \begin_inset space ~
13487 \end_inset
13488
13489 columns if you want to, but that might not be very pleasant for the readers
13490  of your document.
13491 \end_layout
13492
13493 \begin_layout Standard
13494 \begin_inset Newpage newpage
13495 \end_inset
13496
13497
13498 \end_layout
13499
13500 \begin_layout Subsection
13501 Columns inside Columns
13502 \end_layout
13503
13504 \begin_layout Standard
13505 You can also have columns inside columns:
13506 \end_layout
13507
13508 \begin_layout Standard
13509 \begin_inset Flex Multiple Columns
13510 status open
13511
13512 \begin_layout Plain Layout
13513
13514 \size footnotesize
13515 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
13516  at that time governor of one of the Australian colonies.
13517  Adair's mother had returned from Australia to undergo the operation for
13518  cataract, and she, her son Ronald, and her daughter Hilda were living together
13519  at 427 Park Lane.
13520 \end_layout
13521
13522 \begin_layout Plain Layout
13523 \begin_inset Flex Multiple Columns
13524 status open
13525
13526 \begin_layout Plain Layout
13527
13528 \size footnotesize
13529 The youth moved in the best society
13530 \begin_inset space ~
13531 \end_inset
13532
13533 – had, so far as was known, no enemies and no particular vices.
13534  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
13535  had been broken off by mutual consent some months before, and there was
13536  no sign that it had left any very profound feeling behind it.
13537  For the rest {sic} the man's life moved in a narrow and conventional circle,
13538  for his habits were quiet and his nature unemotional.
13539  Yet it was upon this easy-going young aristocrat that death came, in most
13540  strange and unexpected form, between the hours of ten and eleven-twenty
13541  on the night of March 30, 1894.
13542 \end_layout
13543
13544 \end_inset
13545
13546
13547 \end_layout
13548
13549 \begin_layout Plain Layout
13550
13551 \size footnotesize
13552 Ronald Adair was fond of cards
13553 \begin_inset space ~
13554 \end_inset
13555
13556 – playing continually, but never for such stakes as would hurt him.
13557  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
13558  It was shown that, after dinner on the day of his death, he had played
13559  a rubber of whist at the latter club.
13560  He had also played there in the afternoon.
13561
13562 \size default
13563  
13564 \size footnotesize
13565 The evidence of those who had played with him
13566 \begin_inset space ~
13567 \end_inset
13568
13569 – Mr.
13570  Murray, Sir John Hardy, and Colonel Moran
13571 \begin_inset space ~
13572 \end_inset
13573
13574 – showed that the game was whist, and that there was a fairly equal fall
13575  of the cards.
13576  Adair might have lost five pounds, but not more.
13577  His fortune was a considerable one, and such a loss could not in any way
13578  affect him.
13579  He had played nearly every day at one club or other, but he was a cautious
13580  player, and usually rose a winner.
13581  It came out in evidence that, in partnership with Colonel Moran, he had
13582  actually won as much as four hundred and twenty pounds in a sitting, some
13583  weeks before, from Godfrey Milner and Lord Balmoral.
13584  So much for his recent history as it came out at the inquest.
13585 \end_layout
13586
13587 \end_inset
13588
13589
13590 \end_layout
13591
13592 \begin_layout Subsection
13593 Advanced Examples
13594 \end_layout
13595
13596 \begin_layout Standard
13597 The examples in this section show some more special features of multiple
13598  columns.
13599 \end_layout
13600
13601 \begin_layout Standard
13602 For more features of multiple columns, have a look at the 
13603 \begin_inset CommandInset href
13604 LatexCommand href
13605 name "documentation"
13606 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
13607 literal "false"
13608
13609 \end_inset
13610
13611  of the \SpecialChar LaTeX
13612 -package 
13613 \begin_inset Flex Code
13614 status collapsed
13615
13616 \begin_layout Plain Layout
13617 multicol
13618 \end_layout
13619
13620 \end_inset
13621
13622 .
13623 \end_layout
13624
13625 \begin_layout Subsubsection
13626 Preface
13627 \end_layout
13628
13629 \begin_layout Standard
13630 To add a preface text for multiple columns, set the cursor into the multicolumn
13631  inset and use the menu 
13632 \family sans
13633 Insert\SpecialChar menuseparator
13634 Preface
13635 \family default
13636 .
13637  Write your preface text into that inset.
13638 \begin_inset Newline newline
13639 \end_inset
13640
13641 This is an example with some preface text:
13642 \end_layout
13643
13644 \begin_layout Standard
13645 \begin_inset VSpace bigskip
13646 \end_inset
13647
13648
13649 \end_layout
13650
13651 \begin_layout Standard
13652 \begin_inset Flex Multiple Columns
13653 status open
13654
13655 \begin_layout Plain Layout
13656 \begin_inset Argument 2
13657 status open
13658
13659 \begin_layout Plain Layout
13660 And the story continues and continues and continues and continues\SpecialChar ldots
13661
13662 \end_layout
13663
13664 \end_inset
13665
13666
13667 \size small
13668 On the evening of the crime, he returned from the club exactly at ten.
13669  His mother and sister were out spending the evening with a relation.
13670  The servant deposed that she heard him enter the front room on the second
13671  floor, generally used as his sitting-room.
13672  She had lit a fire there, and as it smoked she had opened the window.
13673  No sound was heard from the room until eleven-twenty, the hour of the return
13674  of Lady Maynooth and her daughter.
13675  Desiring to say good-night, she attempted to enter her son's room.
13676  The door was locked on the inside, and no answer could be got to their
13677  cries and knocking.
13678  Help was obtained, and the door forced.
13679  The unfortunate young man was found lying near the table.
13680  His head had been horribly mutilated by an expanding revolver bullet, but
13681  no weapon of any sort was to be found in the room.
13682 \end_layout
13683
13684 \end_inset
13685
13686
13687 \end_layout
13688
13689 \begin_layout Standard
13690 You can also use a section heading as the preface if you use a section command
13691  as \SpecialChar TeX
13692  Code.
13693  For example the command
13694 \end_layout
13695
13696 \begin_layout LyX-Code
13697
13698 \backslash
13699 subsection{subsection title}
13700 \end_layout
13701
13702 \begin_layout Standard
13703 creates a subsection.
13704  In this example the preface is a subsubsection:
13705 \end_layout
13706
13707 \begin_layout Standard
13708 \begin_inset Flex Multiple Columns
13709 status open
13710
13711 \begin_layout Plain Layout
13712 \begin_inset Argument 2
13713 status open
13714
13715 \begin_layout Plain Layout
13716 \begin_inset ERT
13717 status collapsed
13718
13719 \begin_layout Plain Layout
13720
13721
13722 \backslash
13723 subsubsection{
13724 \end_layout
13725
13726 \end_inset
13727
13728 This is a subsubsection heading as a preface
13729 \begin_inset ERT
13730 status collapsed
13731
13732 \begin_layout Plain Layout
13733
13734 }
13735 \end_layout
13736
13737 \end_inset
13738
13739
13740 \end_layout
13741
13742 \end_inset
13743
13744
13745 \size small
13746 A minute examination of the circumstances served only to make the case more
13747  complex.
13748  In the first place, no reason could be given why the young man should have
13749  fastened the door upon the inside.
13750  There was the possibility that the murderer had done this, and had afterwards
13751  escaped by the window.
13752  The drop was at least twenty feet, however, and a bed of crocuses in full
13753  bloom lay beneath.
13754  Neither the flowers nor the earth showed any sign of having been disturbed,
13755  nor were there any marks upon the narrow strip of grass which separated
13756  the house from the road.
13757  Apparently, therefore, it was the young man himself who had fastened the
13758  door.
13759  But how did he come by his death? No one could have climbed up to the window
13760  without leaving traces.
13761  Suppose a man had fired through the window, he would indeed be a remarkable
13762  shot who could with a revolver inflict so deadly a wound.
13763  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
13764  a hundred yards of the house.
13765  No one had heard a shot.
13766 \end_layout
13767
13768 \end_inset
13769
13770
13771 \end_layout
13772
13773 \begin_layout Standard
13774 If there is less vertical space than 6
13775 \begin_inset space ~
13776 \end_inset
13777
13778 text lines is left on the page at the beginning of the multiple columns,
13779  a page break will be inserted before the multiple columns.
13780  Depending on the number of lines of the preface text, you might want to
13781  change this space.
13782  This is done by setting the cursor into the mulitcolumn inset behind the
13783  preface (if there is any) and using the menu 
13784 \family sans
13785 Insert\SpecialChar menuseparator
13786 Space
13787 \begin_inset space ~
13788 \end_inset
13789
13790 Before
13791 \begin_inset space ~
13792 \end_inset
13793
13794 Page
13795 \begin_inset space ~
13796 \end_inset
13797
13798 Break
13799 \family default
13800 .
13801  Insert into that inset the amount of space like e.
13802 \begin_inset space \thinspace{}
13803 \end_inset
13804
13805 g.
13806 \begin_inset space \space{}
13807 \end_inset
13808
13809
13810 \begin_inset Quotes eld
13811 \end_inset
13812
13813 5cm
13814 \begin_inset Quotes erd
13815 \end_inset
13816
13817 .
13818 \begin_inset Newline newline
13819 \end_inset
13820
13821 In this example the space is set to 7
13822 \begin_inset space ~
13823 \end_inset
13824
13825 text lines by using 
13826 \begin_inset Flex Code
13827 status collapsed
13828
13829 \begin_layout Plain Layout
13830 7
13831 \backslash
13832 baselineskip
13833 \end_layout
13834
13835 \end_inset
13836
13837  (where the command 
13838 \begin_inset Flex Code
13839 status collapsed
13840
13841 \begin_layout Plain Layout
13842
13843 \backslash
13844 baselineskip
13845 \end_layout
13846
13847 \end_inset
13848
13849  needs to be inserted as \SpecialChar TeX
13850  code):
13851 \end_layout
13852
13853 \begin_layout Standard
13854 \begin_inset Flex Multiple Columns
13855 status open
13856
13857 \begin_layout Plain Layout
13858 \begin_inset Argument 3
13859 status open
13860
13861 \begin_layout Plain Layout
13862 7
13863 \begin_inset ERT
13864 status collapsed
13865
13866 \begin_layout Plain Layout
13867
13868
13869 \backslash
13870 baselineskip
13871 \end_layout
13872
13873 \end_inset
13874
13875
13876 \end_layout
13877
13878 \end_inset
13879
13880
13881 \size small
13882 On the evening of the crime, he returned from the club exactly at ten.
13883  His mother and sister were out spending the evening with a relation.
13884  The servant deposed that she heard him enter the front room on the second
13885  floor, generally used as his sitting-room.
13886  She had lit a fire there, and as it smoked she had opened the window.
13887  No sound was heard from the room until eleven-twenty, the hour of the return
13888  of Lady Maynooth and her daughter.
13889  Desiring to say good-night, she attempted to enter her son's room.
13890  The door was locked on the inside, and no answer could be got to their
13891  cries and knocking.
13892  Help was obtained, and the door forced.
13893  The unfortunate young man was found lying near the table.
13894  His head had been horribly mutilated by an expanding revolver bullet, but
13895  no weapon of any sort was to be found in the room.
13896 \end_layout
13897
13898 \end_inset
13899
13900
13901 \end_layout
13902
13903 \begin_layout Subsubsection
13904 Surrounding Space
13905 \end_layout
13906
13907 \begin_layout Standard
13908 The amount of space before and after multiple columns can be changed by
13909  changing the length 
13910 \begin_inset Flex Code
13911 status collapsed
13912
13913 \begin_layout Plain Layout
13914
13915 \backslash
13916 multicolsep
13917 \end_layout
13918
13919 \end_inset
13920
13921 .
13922  For example the command
13923 \end_layout
13924
13925 \begin_layout LyX-Code
13926
13927 \backslash
13928 setlength{
13929 \backslash
13930 multicolsep}{3cm}
13931 \end_layout
13932
13933 \begin_layout Standard
13934 in \SpecialChar TeX
13935  Code changes its value to 3
13936 \begin_inset space \thinspace{}
13937 \end_inset
13938
13939 cm.
13940  The change must be made before the multiple columns' start.
13941  The predefined value is 13
13942 \begin_inset space \thinspace{}
13943 \end_inset
13944
13945 pt.
13946 \end_layout
13947
13948 \begin_layout Standard
13949 For this example 
13950 \begin_inset Flex Code
13951 status collapsed
13952
13953 \begin_layout Plain Layout
13954
13955 \backslash
13956 multicolsep
13957 \end_layout
13958
13959 \end_inset
13960
13961  was set to 2.5
13962 \begin_inset space \thinspace{}
13963 \end_inset
13964
13965 cm:
13966 \end_layout
13967
13968 \begin_layout Standard
13969 \begin_inset ERT
13970 status open
13971
13972 \begin_layout Plain Layout
13973
13974
13975 \backslash
13976 setlength{
13977 \backslash
13978 multicolsep}{2.5cm}
13979 \end_layout
13980
13981 \end_inset
13982
13983
13984 \end_layout
13985
13986 \begin_layout Standard
13987 \begin_inset Flex Multiple Columns
13988 status open
13989
13990 \begin_layout Plain Layout
13991
13992 \size small
13993 All day I turned these facts over in my mind, endeavouring to hit upon some
13994  theory which could reconcile them all, and to find that line of least resistanc
13995 e which my poor friend had declared to be the starting-point of every investigat
13996 ion.
13997  I confess that I made little progress.
13998  In the evening I strolled across the Park, and found myself about six o'clock
13999  at the Oxford Street end of Park Lane.
14000  A group of loafers upon the pavements, all staring up at a particular window,
14001  directed me to the house which I had come to see.
14002  A tall, thin man with coloured glasses, whom I strongly suspected of being
14003  a plain-clothes detective, was pointing out some theory of his own, while
14004  the others crowded round to listen to what he said.
14005  I got as near him as I could, but his observations seemed to me to be absurd,
14006  so I withdrew again in some disgust.
14007  As I did so I struck against an elderly, deformed man, who had been behind
14008  me, and I knocked down several books which he was carrying.
14009 \end_layout
14010
14011 \end_inset
14012
14013
14014 \end_layout
14015
14016 \begin_layout Standard
14017 \begin_inset Note Greyedout
14018 status open
14019
14020 \begin_layout Plain Layout
14021
14022 \series bold
14023 Note:
14024 \series default
14025  The values you set with 
14026 \begin_inset Flex Code
14027 status collapsed
14028
14029 \begin_layout Plain Layout
14030
14031 \backslash
14032 setlength
14033 \end_layout
14034
14035 \end_inset
14036
14037  will be used for all following multiple columns until you change them again.
14038 \end_layout
14039
14040 \end_inset
14041
14042
14043 \end_layout
14044
14045 \begin_layout Standard
14046 \begin_inset ERT
14047 status collapsed
14048
14049 \begin_layout Plain Layout
14050
14051
14052 \backslash
14053 setlength{
14054 \backslash
14055 multicolsep}{13pt}
14056 \end_layout
14057
14058 \end_inset
14059
14060
14061 \begin_inset Note Note
14062 status collapsed
14063
14064 \begin_layout Plain Layout
14065 go back to the default
14066 \end_layout
14067
14068 \end_inset
14069
14070
14071 \end_layout
14072
14073 \begin_layout Standard
14074 \begin_inset Newpage newpage
14075 \end_inset
14076
14077
14078 \end_layout
14079
14080 \begin_layout Subsubsection
14081 Column Breaks
14082 \end_layout
14083
14084 \begin_layout Standard
14085 A column break can be forced by inserting the command 
14086 \begin_inset Flex Code
14087 status collapsed
14088
14089 \begin_layout Plain Layout
14090
14091 \backslash
14092 columnbreak{}
14093 \end_layout
14094
14095 \end_inset
14096
14097  as \SpecialChar TeX
14098  Code to that position in the text where the column should be broken.
14099  Note that this leads in most cases to whitespace in the text.
14100 \begin_inset Newline newline
14101 \end_inset
14102
14103 Here is an example:
14104 \end_layout
14105
14106 \begin_layout Standard
14107 \begin_inset Flex Multiple Columns
14108 status open
14109
14110 \begin_layout Plain Layout
14111
14112 \size small
14113 \begin_inset Quotes eld
14114 \end_inset
14115
14116 You're surprised to see me, sir,
14117 \begin_inset Quotes erd
14118 \end_inset
14119
14120  said he, in a strange, croaking voice.
14121 \end_layout
14122
14123 \begin_layout Plain Layout
14124
14125 \size small
14126 I acknowledged that I was.
14127 \end_layout
14128
14129 \begin_layout Plain Layout
14130
14131 \size small
14132 \begin_inset Quotes eld
14133 \end_inset
14134
14135 Well, I've a conscience, sir, and when I chanced to see you go into this
14136  house, as I came hobbling after you, I thought to myself, I'll just step
14137  in and see that kind gentleman, and tell him that if I was a bit gruff
14138  in my manner there was not any harm meant, and that I am much obliged to
14139  him for picking up my books.
14140 \begin_inset Quotes erd
14141 \end_inset
14142
14143
14144 \end_layout
14145
14146 \begin_layout Plain Layout
14147
14148 \size small
14149 \begin_inset Quotes eld
14150 \end_inset
14151
14152 You make too much of a trifle,
14153 \begin_inset Quotes erd
14154 \end_inset
14155
14156  said I.
14157  
14158 \begin_inset Quotes eld
14159 \end_inset
14160
14161 May I ask how you knew who I was?
14162 \begin_inset Quotes erd
14163 \end_inset
14164
14165  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
14166 \begin_inset ERT
14167 status collapsed
14168
14169 \begin_layout Plain Layout
14170
14171
14172 \backslash
14173 columnbreak{}
14174 \end_layout
14175
14176 \end_inset
14177
14178
14179 \end_layout
14180
14181 \begin_layout Plain Layout
14182
14183 \size small
14184 \begin_inset Quotes eld
14185 \end_inset
14186
14187 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
14188  you'll find my little bookshop at the corner of Church Street, and very
14189  happy to see you, I am sure.
14190  Maybe you collect yourself, sir.
14191  Here's 
14192 \noun on
14193 British
14194 \begin_inset space ~
14195 \end_inset
14196
14197 Birds
14198 \noun default
14199 , and 
14200 \noun on
14201 Catullus
14202 \noun default
14203 , and 
14204 \noun on
14205 The Holy War
14206 \noun default
14207
14208 \begin_inset space ~
14209 \end_inset
14210
14211 – a bargain, every one of them.
14212  With five volumes you could just fill that gap on that second shelf.
14213  It looks untidy, does it not, sir?
14214 \begin_inset Quotes erd
14215 \end_inset
14216
14217
14218 \end_layout
14219
14220 \end_inset
14221
14222
14223 \end_layout
14224
14225 \begin_layout Subsubsection
14226 Column Separation
14227 \end_layout
14228
14229 \begin_layout Standard
14230 The width of the columns is automatically calculated, but you can modify
14231  the space between the columns.
14232  This is done by changing the length 
14233 \begin_inset Flex Code
14234 status collapsed
14235
14236 \begin_layout Plain Layout
14237
14238 \backslash
14239 columnsep
14240 \end_layout
14241
14242 \end_inset
14243
14244 .
14245  Its predefined value is 10
14246 \begin_inset space \thinspace{}
14247 \end_inset
14248
14249 pt.
14250  Here is an example where 
14251 \begin_inset Flex Code
14252 status collapsed
14253
14254 \begin_layout Plain Layout
14255
14256 \backslash
14257 columnsep
14258 \end_layout
14259
14260 \end_inset
14261
14262  is set to 3
14263 \begin_inset space \thinspace{}
14264 \end_inset
14265
14266 cm:
14267 \end_layout
14268
14269 \begin_layout Standard
14270 \begin_inset ERT
14271 status open
14272
14273 \begin_layout Plain Layout
14274
14275
14276 \backslash
14277 setlength{
14278 \backslash
14279 columnsep}{3cm}
14280 \end_layout
14281
14282 \end_inset
14283
14284
14285 \end_layout
14286
14287 \begin_layout Standard
14288 \begin_inset Flex Multiple Columns
14289 status open
14290
14291 \begin_layout Plain Layout
14292
14293 \size small
14294 My observations of No.
14295 \begin_inset space \space{}
14296 \end_inset
14297
14298 427 Park Lane did little to clear up the problem in which I was interested.
14299  The house was separated from the street by a low wall and railing, the
14300  whole not more than five feet high.
14301  It was perfectly easy, therefore, for anyone to get into the garden, but
14302  the window was entirely inaccessible, since there was no water pipe or
14303  anything which could help the most active man to climb it.
14304  More puzzled than ever, I retraced my steps to Kensington.
14305  I had not been in my study five minutes when the maid entered to say that
14306  a person desired to see me.
14307  To my astonishment it was none other than my strange old book collector,
14308  his sharp, wizened face peering out from a frame of white hair, and his
14309  precious volumes, a dozen of them at least, wedged under his right arm.
14310 \end_layout
14311
14312 \end_inset
14313
14314
14315 \end_layout
14316
14317 \begin_layout Standard
14318 \begin_inset ERT
14319 status collapsed
14320
14321 \begin_layout Plain Layout
14322
14323
14324 \backslash
14325 setlength{
14326 \backslash
14327 columnsep}{10pt}
14328 \end_layout
14329
14330 \end_inset
14331
14332
14333 \begin_inset Note Note
14334 status collapsed
14335
14336 \begin_layout Plain Layout
14337 go back to the default
14338 \end_layout
14339
14340 \end_inset
14341
14342
14343 \end_layout
14344
14345 \begin_layout Subsubsection
14346 Vertical Lines
14347 \end_layout
14348
14349 \begin_layout Standard
14350 Between the columns a rule with a width of the length 
14351 \begin_inset Flex Code
14352 status collapsed
14353
14354 \begin_layout Plain Layout
14355
14356 \backslash
14357 columnseprule
14358 \end_layout
14359
14360 \end_inset
14361
14362  is placed.
14363  If this rule width is set to 0
14364 \begin_inset space \thinspace{}
14365 \end_inset
14366
14367 pt (this is the default), the rule is suppressed.
14368  In the following example the rule is 2
14369 \begin_inset space \thinspace{}
14370 \end_inset
14371
14372 pt wide:
14373 \end_layout
14374
14375 \begin_layout Standard
14376 \begin_inset ERT
14377 status open
14378
14379 \begin_layout Plain Layout
14380
14381
14382 \backslash
14383 setlength{
14384 \backslash
14385 columnseprule}{2pt}
14386 \end_layout
14387
14388 \end_inset
14389
14390
14391 \end_layout
14392
14393 \begin_layout Standard
14394 \begin_inset Flex Multiple Columns
14395 status open
14396
14397 \begin_layout Plain Layout
14398
14399 \size small
14400 \begin_inset Quotes eld
14401 \end_inset
14402
14403 You're surprised to see me, sir,
14404 \begin_inset Quotes erd
14405 \end_inset
14406
14407  said he, in a strange, croaking voice.
14408 \end_layout
14409
14410 \begin_layout Plain Layout
14411
14412 \size small
14413 I acknowledged that I was.
14414 \end_layout
14415
14416 \begin_layout Plain Layout
14417
14418 \size small
14419 \begin_inset Quotes eld
14420 \end_inset
14421
14422 Well, I've a conscience, sir, and when I chanced to see you go into this
14423  house, as I came hobbling after you, I thought to myself, I'll just step
14424  in and see that kind gentleman, and tell him that if I was a bit gruff
14425  in my manner there was not any harm meant, and that I am much obliged to
14426  him for picking up my books.
14427 \begin_inset Quotes erd
14428 \end_inset
14429
14430
14431 \end_layout
14432
14433 \begin_layout Plain Layout
14434
14435 \size small
14436 \begin_inset Quotes eld
14437 \end_inset
14438
14439 You make too much of a trifle,
14440 \begin_inset Quotes erd
14441 \end_inset
14442
14443  said I.
14444  
14445 \begin_inset Quotes eld
14446 \end_inset
14447
14448 May I ask how you knew who I was?
14449 \begin_inset Quotes erd
14450 \end_inset
14451
14452
14453 \end_layout
14454
14455 \begin_layout Plain Layout
14456
14457 \size small
14458 \begin_inset Quotes eld
14459 \end_inset
14460
14461 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
14462  you'll find my little bookshop at the corner of Church Street, and very
14463  happy to see you, I am sure.
14464  Maybe you collect yourself, sir.
14465  Here's 
14466 \noun on
14467 British
14468 \begin_inset space ~
14469 \end_inset
14470
14471 Birds
14472 \noun default
14473 , and 
14474 \noun on
14475 Catullus
14476 \noun default
14477 , and 
14478 \noun on
14479 The Holy War
14480 \noun default
14481
14482 \begin_inset space ~
14483 \end_inset
14484
14485 – a bargain, every one of them.
14486  With five volumes you could just fill that gap on that second shelf.
14487  It looks untidy, does it not, sir?
14488 \begin_inset Quotes erd
14489 \end_inset
14490
14491
14492 \end_layout
14493
14494 \end_inset
14495
14496
14497 \end_layout
14498
14499 \begin_layout Standard
14500 \begin_inset VSpace defskip
14501 \end_inset
14502
14503
14504 \end_layout
14505
14506 \begin_layout Standard
14507 The rule can be colored by redefining the command 
14508 \begin_inset Flex Code
14509 status collapsed
14510
14511 \begin_layout Plain Layout
14512
14513 \backslash
14514 columnseprulecolor
14515 \end_layout
14516
14517 \end_inset
14518
14519 .
14520  This is done by inserting the command
14521 \end_layout
14522
14523 \begin_layout LyX-Code
14524
14525 \backslash
14526 renewcommand{
14527 \backslash
14528 columnseprulecolor}{
14529 \backslash
14530 color{red}}
14531 \end_layout
14532
14533 \begin_layout Standard
14534 as \SpecialChar TeX
14535  Code before the multicolumn inset.
14536  Replace 
14537 \begin_inset Flex Code
14538 status collapsed
14539
14540 \begin_layout Plain Layout
14541 red
14542 \end_layout
14543
14544 \end_inset
14545
14546  in this command by a color of your choice.
14547  You can use all pre- and self-defined colors.
14548  See the 
14549 \emph on
14550 EmbeddedObjects
14551 \emph default
14552  manual, section 
14553 \emph on
14554 Colored
14555 \begin_inset space ~
14556 \end_inset
14557
14558 Tables
14559 \emph default
14560  for more information about pre- and self-defined colors.
14561  To go back to the default color insert the command
14562 \end_layout
14563
14564 \begin_layout LyX-Code
14565
14566 \backslash
14567 renewcommand{
14568 \backslash
14569 columnseprulecolor}{
14570 \backslash
14571 normalcolor}
14572 \end_layout
14573
14574 \begin_layout Standard
14575 Here is the example with a cyan rule and 1
14576 \begin_inset space \thinspace{}
14577 \end_inset
14578
14579 cm column separation:
14580 \end_layout
14581
14582 \begin_layout Standard
14583 \begin_inset ERT
14584 status open
14585
14586 \begin_layout Plain Layout
14587
14588
14589 \backslash
14590 setlength{
14591 \backslash
14592 columnsep}{1cm}
14593 \end_layout
14594
14595 \begin_layout Plain Layout
14596
14597
14598 \backslash
14599 renewcommand{
14600 \backslash
14601 columnseprulecolor}{
14602 \backslash
14603 color{cyan}}
14604 \end_layout
14605
14606 \end_inset
14607
14608
14609 \end_layout
14610
14611 \begin_layout Standard
14612 \begin_inset Flex Multiple Columns
14613 status open
14614
14615 \begin_layout Plain Layout
14616
14617 \size small
14618 \begin_inset Quotes eld
14619 \end_inset
14620
14621 You're surprised to see me, sir,
14622 \begin_inset Quotes erd
14623 \end_inset
14624
14625  said he, in a strange, croaking voice.
14626 \end_layout
14627
14628 \begin_layout Plain Layout
14629
14630 \size small
14631 I acknowledged that I was.
14632 \end_layout
14633
14634 \begin_layout Plain Layout
14635
14636 \size small
14637 \begin_inset Quotes eld
14638 \end_inset
14639
14640 Well, I've a conscience, sir, and when I chanced to see you go into this
14641  house, as I came hobbling after you, I thought to myself, I'll just step
14642  in and see that kind gentleman, and tell him that if I was a bit gruff
14643  in my manner there was not any harm meant, and that I am much obliged to
14644  him for picking up my books.
14645 \begin_inset Quotes erd
14646 \end_inset
14647
14648
14649 \end_layout
14650
14651 \begin_layout Plain Layout
14652
14653 \size small
14654 \begin_inset Quotes eld
14655 \end_inset
14656
14657 You make too much of a trifle,
14658 \begin_inset Quotes erd
14659 \end_inset
14660
14661  said I.
14662  
14663 \begin_inset Quotes eld
14664 \end_inset
14665
14666 May I ask how you knew who I was?
14667 \begin_inset Quotes erd
14668 \end_inset
14669
14670
14671 \end_layout
14672
14673 \begin_layout Plain Layout
14674
14675 \size small
14676 \begin_inset Quotes eld
14677 \end_inset
14678
14679 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
14680  you'll find my little bookshop at the corner of Church Street, and very
14681  happy to see you, I am sure.
14682  Maybe you collect yourself, sir.
14683  Here's 
14684 \noun on
14685 British
14686 \begin_inset space ~
14687 \end_inset
14688
14689 Birds
14690 \noun default
14691 , and 
14692 \noun on
14693 Catullus
14694 \noun default
14695 , and 
14696 \noun on
14697 The Holy War
14698 \noun default
14699
14700 \begin_inset space ~
14701 \end_inset
14702
14703 – a bargain, every one of them.
14704  With five volumes you could just fill that gap on that second shelf.
14705  It looks untidy, does it not, sir?
14706 \begin_inset Quotes erd
14707 \end_inset
14708
14709
14710 \end_layout
14711
14712 \end_inset
14713
14714
14715 \end_layout
14716
14717 \begin_layout Standard
14718 \begin_inset ERT
14719 status collapsed
14720
14721 \begin_layout Plain Layout
14722
14723
14724 \backslash
14725 setlength{
14726 \backslash
14727 columnseprule}{0pt}
14728 \end_layout
14729
14730 \begin_layout Plain Layout
14731
14732
14733 \backslash
14734 renewcommand{
14735 \backslash
14736 columnseprulecolor}{
14737 \backslash
14738 normalcolor}
14739 \end_layout
14740
14741 \end_inset
14742
14743
14744 \begin_inset Note Note
14745 status collapsed
14746
14747 \begin_layout Plain Layout
14748 go back to the default
14749 \end_layout
14750
14751 \end_inset
14752
14753
14754 \end_layout
14755
14756 \begin_layout Section
14757
14758 \change_inserted 564990737 1671270380
14759 Paragraph Styles
14760 \end_layout
14761
14762 \begin_layout Subsection
14763
14764 \change_inserted 564990737 1671270398
14765 Custom
14766 \change_deleted 564990737 1671270396
14767 Non-standard
14768 \change_unchanged
14769  Paragraph Shapes
14770 \end_layout
14771
14772 \begin_layout Standard
14773 \noindent
14774 \SpecialChar LaTeX
14775  as well as any other text processor uses by default rectangular paragraphs.
14776  For special cases like for example posters, invitation cards or poems you
14777  can modify the paragraph shape to one of your choice.
14778  This can be done by using the \SpecialChar LaTeX
14779 -package 
14780 \begin_inset Flex Code
14781 status collapsed
14782
14783 \begin_layout Plain Layout
14784 shapepar
14785 \end_layout
14786
14787 \end_inset
14788
14789  which is loaded by using in the document settings the module 
14790 \family sans
14791 Custom paragraph shapes
14792 \family default
14793 .
14794 \end_layout
14795
14796 \begin_layout Subsubsection
14797 Predefined shapes
14798 \end_layout
14799
14800 \begin_layout Standard
14801
14802 \series bold
14803 shapepar
14804 \series default
14805  provides the following shapes:
14806 \end_layout
14807
14808 \begin_layout Standard
14809 \begin_inset Tabular
14810 <lyxtabular version="3" rows="13" columns="3">
14811 <features booktabs="true" islongtable="true" longtabularalignment="center">
14812 <column alignment="left" valignment="middle" width="16col%">
14813 <column alignment="left" valignment="middle" width="40col%">
14814 <column alignment="left" valignment="middle" width="35col%">
14815 <row endhead="true">
14816 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14817 \begin_inset Text
14818
14819 \begin_layout Plain Layout
14820
14821 \series bold
14822 \size small
14823 Name
14824 \end_layout
14825
14826 \end_inset
14827 </cell>
14828 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14829 \begin_inset Text
14830
14831 \begin_layout Plain Layout
14832
14833 \series bold
14834 \size small
14835 Description
14836 \end_layout
14837
14838 \end_inset
14839 </cell>
14840 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14841 \begin_inset Text
14842
14843 \begin_layout Plain Layout
14844
14845 \series bold
14846 \size small
14847 Annotation
14848 \end_layout
14849
14850 \end_inset
14851 </cell>
14852 </row>
14853 <row interlinespace="default">
14854 <cell alignment="left" valignment="top" usebox="none">
14855 \begin_inset Text
14856
14857 \begin_layout Plain Layout
14858
14859 \size small
14860 CDlabel
14861 \end_layout
14862
14863 \end_inset
14864 </cell>
14865 <cell alignment="left" valignment="top" usebox="none">
14866 \begin_inset Text
14867
14868 \begin_layout Plain Layout
14869
14870 \size small
14871 Circle with circular hole (in the size of a CD/DVD)
14872 \end_layout
14873
14874 \end_inset
14875 </cell>
14876 <cell alignment="left" valignment="top" usebox="none">
14877 \begin_inset Text
14878
14879 \begin_layout Plain Layout
14880
14881 \size small
14882 Cannot be scaled, take care there is not too much text
14883 \end_layout
14884
14885 \end_inset
14886 </cell>
14887 </row>
14888 <row interlinespace="default">
14889 <cell alignment="left" valignment="top" usebox="none">
14890 \begin_inset Text
14891
14892 \begin_layout Plain Layout
14893
14894 \size small
14895 Circle
14896 \end_layout
14897
14898 \end_inset
14899 </cell>
14900 <cell alignment="left" valignment="top" usebox="none">
14901 \begin_inset Text
14902
14903 \begin_layout Plain Layout
14904
14905 \size small
14906 Circle
14907 \end_layout
14908
14909 \end_inset
14910 </cell>
14911 <cell alignment="left" valignment="top" usebox="none">
14912 \begin_inset Text
14913
14914 \begin_layout Plain Layout
14915
14916 \size small
14917 Fragile, calculation might fail
14918 \end_layout
14919
14920 \end_inset
14921 </cell>
14922 </row>
14923 <row interlinespace="default">
14924 <cell alignment="left" valignment="top" usebox="none">
14925 \begin_inset Text
14926
14927 \begin_layout Plain Layout
14928
14929 \size small
14930 Diamond
14931 \end_layout
14932
14933 \end_inset
14934 </cell>
14935 <cell alignment="left" valignment="top" usebox="none">
14936 \begin_inset Text
14937
14938 \begin_layout Plain Layout
14939
14940 \size small
14941 Rhomboid (symbolizing a 
14942 \begin_inset Quotes eld
14943 \end_inset
14944
14945 diamond
14946 \begin_inset Quotes erd
14947 \end_inset
14948
14949 )
14950 \end_layout
14951
14952 \end_inset
14953 </cell>
14954 <cell alignment="left" valignment="top" usebox="none">
14955 \begin_inset Text
14956
14957 \begin_layout Plain Layout
14958
14959 \size small
14960 -
14961 \end_layout
14962
14963 \end_inset
14964 </cell>
14965 </row>
14966 <row interlinespace="default">
14967 <cell alignment="left" valignment="top" usebox="none">
14968 \begin_inset Text
14969
14970 \begin_layout Plain Layout
14971
14972 \size small
14973 Heart
14974 \end_layout
14975
14976 \end_inset
14977 </cell>
14978 <cell alignment="left" valignment="top" usebox="none">
14979 \begin_inset Text
14980
14981 \begin_layout Plain Layout
14982
14983 \size small
14984 Heart-like shape
14985 \end_layout
14986
14987 \end_inset
14988 </cell>
14989 <cell alignment="left" valignment="top" usebox="none">
14990 \begin_inset Text
14991
14992 \begin_layout Plain Layout
14993
14994 \size small
14995 -
14996 \end_layout
14997
14998 \end_inset
14999 </cell>
15000 </row>
15001 <row interlinespace="default">
15002 <cell alignment="left" valignment="top" usebox="none">
15003 \begin_inset Text
15004
15005 \begin_layout Plain Layout
15006
15007 \size small
15008 Hexagon
15009 \end_layout
15010
15011 \end_inset
15012 </cell>
15013 <cell alignment="left" valignment="top" usebox="none">
15014 \begin_inset Text
15015
15016 \begin_layout Plain Layout
15017
15018 \size small
15019 Hexagon
15020 \end_layout
15021
15022 \end_inset
15023 </cell>
15024 <cell alignment="left" valignment="top" usebox="none">
15025 \begin_inset Text
15026
15027 \begin_layout Plain Layout
15028
15029 \size small
15030 -
15031 \end_layout
15032
15033 \end_inset
15034 </cell>
15035 </row>
15036 <row interlinespace="default">
15037 <cell alignment="left" valignment="top" usebox="none">
15038 \begin_inset Text
15039
15040 \begin_layout Plain Layout
15041
15042 \size small
15043 Nut
15044 \end_layout
15045
15046 \end_inset
15047 </cell>
15048 <cell alignment="left" valignment="top" usebox="none">
15049 \begin_inset Text
15050
15051 \begin_layout Plain Layout
15052
15053 \size small
15054 Nut for bolt (hexagon with circular hole)
15055 \end_layout
15056
15057 \end_inset
15058 </cell>
15059 <cell alignment="left" valignment="top" usebox="none">
15060 \begin_inset Text
15061
15062 \begin_layout Plain Layout
15063
15064 \size small
15065 -
15066 \end_layout
15067
15068 \end_inset
15069 </cell>
15070 </row>
15071 <row interlinespace="default">
15072 <cell alignment="left" valignment="top" usebox="none">
15073 \begin_inset Text
15074
15075 \begin_layout Plain Layout
15076
15077 \size small
15078 Square
15079 \end_layout
15080
15081 \end_inset
15082 </cell>
15083 <cell alignment="left" valignment="top" usebox="none">
15084 \begin_inset Text
15085
15086 \begin_layout Plain Layout
15087
15088 \size small
15089 Square
15090 \end_layout
15091
15092 \end_inset
15093 </cell>
15094 <cell alignment="left" valignment="top" usebox="none">
15095 \begin_inset Text
15096
15097 \begin_layout Plain Layout
15098
15099 \size small
15100 -
15101 \end_layout
15102
15103 \end_inset
15104 </cell>
15105 </row>
15106 <row interlinespace="default">
15107 <cell alignment="left" valignment="top" usebox="none">
15108 \begin_inset Text
15109
15110 \begin_layout Plain Layout
15111
15112 \size small
15113 Star
15114 \end_layout
15115
15116 \end_inset
15117 </cell>
15118 <cell alignment="left" valignment="top" usebox="none">
15119 \begin_inset Text
15120
15121 \begin_layout Plain Layout
15122
15123 \size small
15124 Five-point star
15125 \end_layout
15126
15127 \end_inset
15128 </cell>
15129 <cell alignment="left" valignment="top" usebox="none">
15130 \begin_inset Text
15131
15132 \begin_layout Plain Layout
15133
15134 \size small
15135 -
15136 \end_layout
15137
15138 \end_inset
15139 </cell>
15140 </row>
15141 <row interlinespace="default">
15142 <cell alignment="left" valignment="top" usebox="none">
15143 \begin_inset Text
15144
15145 \begin_layout Plain Layout
15146
15147 \size small
15148 Candle
15149 \end_layout
15150
15151 \end_inset
15152 </cell>
15153 <cell alignment="left" valignment="top" usebox="none">
15154 \begin_inset Text
15155
15156 \begin_layout Plain Layout
15157
15158 \size small
15159 Burning candle
15160 \end_layout
15161
15162 \end_inset
15163 </cell>
15164 <cell alignment="left" valignment="top" usebox="none">
15165 \begin_inset Text
15166
15167 \begin_layout Plain Layout
15168
15169 \size small
15170 -
15171 \end_layout
15172
15173 \end_inset
15174 </cell>
15175 </row>
15176 <row interlinespace="default">
15177 <cell alignment="left" valignment="top" usebox="none">
15178 \begin_inset Text
15179
15180 \begin_layout Plain Layout
15181
15182 \size small
15183 Drop down/up
15184 \end_layout
15185
15186 \end_inset
15187 </cell>
15188 <cell alignment="left" valignment="top" usebox="none">
15189 \begin_inset Text
15190
15191 \begin_layout Plain Layout
15192
15193 \size small
15194 Normal/reversed rain drop
15195 \end_layout
15196
15197 \end_inset
15198 </cell>
15199 <cell alignment="left" valignment="top" usebox="none">
15200 \begin_inset Text
15201
15202 \begin_layout Plain Layout
15203
15204 \size small
15205 Fragile, calculation might fail
15206 \end_layout
15207
15208 \end_inset
15209 </cell>
15210 </row>
15211 <row interlinespace="default">
15212 <cell alignment="left" valignment="top" usebox="none">
15213 \begin_inset Text
15214
15215 \begin_layout Plain Layout
15216
15217 \size small
15218 \SpecialChar TeX
15219
15220 \end_layout
15221
15222 \end_inset
15223 </cell>
15224 <cell alignment="left" valignment="top" usebox="none">
15225 \begin_inset Text
15226
15227 \begin_layout Plain Layout
15228
15229 \size small
15230 The \SpecialChar TeX
15231  logo
15232 \end_layout
15233
15234 \end_inset
15235 </cell>
15236 <cell alignment="left" valignment="top" usebox="none">
15237 \begin_inset Text
15238
15239 \begin_layout Plain Layout
15240
15241 \size small
15242 -
15243 \end_layout
15244
15245 \end_inset
15246 </cell>
15247 </row>
15248 <row interlinespace="default">
15249 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
15250 \begin_inset Text
15251
15252 \begin_layout Plain Layout
15253
15254 \size small
15255 Triangle up/down/
15256 \begin_inset Newline newline
15257 \end_inset
15258
15259 left/right
15260 \end_layout
15261
15262 \end_inset
15263 </cell>
15264 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
15265 \begin_inset Text
15266
15267 \begin_layout Plain Layout
15268
15269 \size small
15270 Triangles in different orientations
15271 \end_layout
15272
15273 \end_inset
15274 </cell>
15275 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
15276 \begin_inset Text
15277
15278 \begin_layout Plain Layout
15279
15280 \size small
15281 -
15282 \end_layout
15283
15284 \end_inset
15285 </cell>
15286 </row>
15287 </lyxtabular>
15288
15289 \end_inset
15290
15291
15292 \end_layout
15293
15294 \begin_layout Standard
15295 To use a shape for your paragraph, simply select it in \SpecialChar LyX
15296 's pull-down box
15297  for environments in the toolbar.
15298 \end_layout
15299
15300 \begin_layout Standard
15301 \begin_inset Newpage newpage
15302 \end_inset
15303
15304
15305 \end_layout
15306
15307 \begin_layout Standard
15308 Here is an example paragraph in the shape of a nut:
15309 \end_layout
15310
15311 \begin_layout Standard
15312 \begin_inset VSpace bigskip
15313 \end_inset
15314
15315
15316 \end_layout
15317
15318 \begin_layout Nut
15319
15320 \lang latin
15321 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
15322  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
15323  voluptua.
15324  At vero eos et accusam et justo duo dolores et ea rebum.
15325  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
15326  sit amet.
15327  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
15328  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
15329  voluptua.
15330 \end_layout
15331
15332 \begin_layout Standard
15333 \begin_inset VSpace bigskip
15334 \end_inset
15335
15336
15337 \end_layout
15338
15339 \begin_layout Standard
15340 \begin_inset Note Greyedout
15341 status open
15342
15343 \begin_layout Plain Layout
15344
15345 \series bold
15346 Note
15347 \series default
15348
15349 \family sans
15350 shapepar
15351 \family default
15352  paragraphs cannot run over a page break.
15353 \end_layout
15354
15355 \end_inset
15356
15357
15358 \end_layout
15359
15360 \begin_layout Standard
15361 \begin_inset VSpace bigskip
15362 \end_inset
15363
15364
15365 \end_layout
15366
15367 \begin_layout Standard
15368 The package 
15369 \begin_inset Flex Code
15370 status collapsed
15371
15372 \begin_layout Plain Layout
15373 shapepar
15374 \end_layout
15375
15376 \end_inset
15377
15378  takes care that the shape will always be preserved, no matter how much
15379  text is in the paragraph.
15380  Therefore the paragraph size changes with the amount of contained text.
15381  This can lead to paragraph sizes exceeding the page margins.
15382  To demonstrate the size scaling, here is the same example paragraph but
15383  with twice as much text:
15384 \end_layout
15385
15386 \begin_layout Standard
15387 \begin_inset Newpage newpage
15388 \end_inset
15389
15390
15391 \end_layout
15392
15393 \begin_layout Nut
15394
15395 \lang latin
15396 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
15397  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
15398  voluptua.
15399  At vero eos et accusam et justo duo dolores et ea rebum.
15400  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
15401  sit amet.
15402  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
15403  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
15404  voluptua.
15405  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
15406  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
15407  voluptua.
15408  At vero eos et accusam et justo duo dolores et ea rebum.
15409  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
15410  sit amet.
15411  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
15412  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
15413  voluptua.
15414 \end_layout
15415
15416 \begin_layout Standard
15417 \begin_inset VSpace bigskip
15418 \end_inset
15419
15420
15421 \end_layout
15422
15423 \begin_layout Standard
15424 An exception is the shape 
15425 \family sans
15426 CDlabel
15427 \family default
15428 .
15429  It cannot be scaled because it must fit the size of a CD/DVD.
15430  Therefore the amount of text that fits into the shape is limited.
15431 \begin_inset Newline newline
15432 \end_inset
15433
15434 The 
15435 \family sans
15436 drop
15437 \family default
15438  shapes and the 
15439 \family sans
15440 circle
15441 \family default
15442  shape are fragile, meaning that the calculation of their size can fail,
15443  depending on the amount of text.
15444  You will then get the \SpecialChar LaTeX
15445  error 
15446 \begin_inset Quotes eld
15447 \end_inset
15448
15449 Arithmetic overflow
15450 \begin_inset Quotes erd
15451 \end_inset
15452
15453 .
15454  In this case one can try to remove or add some text; if nothing works one
15455  has to use another shape.
15456 \end_layout
15457
15458 \begin_layout Standard
15459 \begin_inset VSpace bigskip
15460 \end_inset
15461
15462
15463 \end_layout
15464
15465 \begin_layout Standard
15466 For shapes with tips you will maybe see that \SpecialChar LaTeX
15467 's hyphenation routine fails
15468  for text in the tips.
15469  Therefore it is often necessary to add hyphenation points 
15470 \family sans
15471 (
15472 \begin_inset Info
15473 type  "shortcut"
15474 arg   "specialchar-insert hyphenation"
15475 \end_inset
15476
15477
15478 \family default
15479 ) to the corresponding text parts.
15480 \end_layout
15481
15482 \begin_layout Standard
15483 \begin_inset VSpace bigskip
15484 \end_inset
15485
15486
15487 \end_layout
15488
15489 \begin_layout Standard
15490 Shapepar paragraphs are either always centered or placed on the page so
15491  that their left border touches the left page margin.
15492  You can therefore not use the paragraph dialog to align such paragraphs.
15493  A solution is to put the paragraph into a minipage or parbox and align
15494  the box.
15495  The problem is hereby to find the right width for the box.
15496  Because if it is too wide and you center the box, the paragraph is not
15497  centered too because it sticks at the left side of the box.
15498  So you might have to play a bit with the width until it fits.
15499  Here are two heart-shaped paragraphs, the first one is not aligned, the
15500  second one is right-aligned:
15501 \end_layout
15502
15503 \begin_layout Standard
15504 \begin_inset Newpage newpage
15505 \end_inset
15506
15507
15508 \end_layout
15509
15510 \begin_layout Heart
15511 \noindent
15512
15513 \lang latin
15514 Lo\SpecialChar softhyphen
15515 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
15516  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
15517  voluptua.
15518  At vero eos et accusam et justo duo dolores et ea rebum.
15519  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
15520  sit amet.
15521 \end_layout
15522
15523 \begin_layout Standard
15524 \begin_inset VSpace bigskip
15525 \end_inset
15526
15527
15528 \end_layout
15529
15530 \begin_layout Standard
15531 \noindent
15532 \align right
15533 \begin_inset Box Frameless
15534 position "t"
15535 hor_pos "c"
15536 has_inner_box 1
15537 inner_pos "t"
15538 use_parbox 1
15539 use_makebox 0
15540 width "42col%"
15541 special "none"
15542 height "1in"
15543 height_special "totalheight"
15544 thickness "0.4pt"
15545 separation "3pt"
15546 shadowsize "4pt"
15547 framecolor "black"
15548 backgroundcolor "none"
15549 status open
15550
15551 \begin_layout Heart
15552 \noindent
15553
15554 \lang latin
15555 Lo\SpecialChar softhyphen
15556 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
15557  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
15558  voluptua.
15559  At vero eos et accusam et justo duo dolores et ea rebum.
15560  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
15561  sit amet.
15562 \end_layout
15563
15564 \end_inset
15565
15566
15567 \end_layout
15568
15569 \begin_layout Subsubsection
15570 Custom shapes
15571 \end_layout
15572
15573 \begin_layout Standard
15574 You can define any shape you want.
15575  Doing this manually is a lot of work because every coordinate must be specified.
15576  But there is a way to let the computer calculate the coordinates:
15577 \end_layout
15578
15579 \begin_layout Enumerate
15580 Install the program 
15581 \begin_inset CommandInset href
15582 LatexCommand href
15583 name "Jpgfdraw"
15584 target "https://www.ctan.org/tex-archive/graphics/jpgfdraw"
15585 literal "false"
15586
15587 \end_inset
15588
15589 .
15590 \end_layout
15591
15592 \begin_layout Enumerate
15593 In 
15594 \family sans
15595 Jpgfdraw
15596 \family default
15597  go to the menu 
15598 \family sans
15599 TeX/LaTeX\SpecialChar menuseparator
15600 Settings\SpecialChar menuseparator
15601 Set Normal Size
15602 \family default
15603  and select the font size you are using in your document.
15604  For example this document uses the size 12
15605 \begin_inset space \thinspace{}
15606 \end_inset
15607
15608 pt.
15609 \end_layout
15610
15611 \begin_layout Enumerate
15612 Draw a shape.
15613 \end_layout
15614
15615 \begin_layout Enumerate
15616 Use the menu 
15617 \family sans
15618 TeX/LaTeX\SpecialChar menuseparator
15619 Shapepar
15620 \family default
15621  to export the shape to coordinates.
15622  In the appearing dialog use either the outline of your shape for the coordinate
15623 s or the path itself.
15624 \begin_inset Foot
15625 status collapsed
15626
15627 \begin_layout Plain Layout
15628 For more information see 
15629 \begin_inset CommandInset href
15630 LatexCommand href
15631 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
15632 literal "false"
15633
15634 \end_inset
15635
15636
15637 \end_layout
15638
15639 \end_inset
15640
15641
15642 \end_layout
15643
15644 \begin_layout Standard
15645 The coordinates are written into a \SpecialChar TeX
15646  file.
15647  To use it for your \SpecialChar LyX
15648  document
15649 \end_layout
15650
15651 \begin_layout Enumerate
15652 Place the cursor before the first character of your paragraph (or into a
15653  new empty one).
15654 \end_layout
15655
15656 \begin_layout Enumerate
15657 Open in \SpecialChar LyX
15658  the menu 
15659 \family sans
15660 Insert\SpecialChar menuseparator
15661 File\SpecialChar menuseparator
15662 Child
15663 \begin_inset space ~
15664 \end_inset
15665
15666 Document
15667 \family default
15668 , select the file and use 
15669 \family sans
15670 Input
15671 \family default
15672  as 
15673 \family sans
15674 Include Type.
15675 \end_layout
15676
15677 \begin_layout Standard
15678 \begin_inset VSpace defskip
15679 \end_inset
15680
15681
15682 \end_layout
15683
15684 \begin_layout Standard
15685 \begin_inset Note Greyedout
15686 status open
15687
15688 \begin_layout Plain Layout
15689
15690 \series bold
15691 Note
15692 \series default
15693 : The changed shape only applies to the current paragraph; everything is
15694  reset to normal for the next paragraph.
15695  Therefore the shape definition file must be input into every paragraph
15696  with the desired shape.
15697 \end_layout
15698
15699 \end_inset
15700
15701
15702 \end_layout
15703
15704 \begin_layout Standard
15705 \begin_inset VSpace bigskip
15706 \end_inset
15707
15708
15709 \end_layout
15710
15711 \begin_layout Standard
15712 Here is an example:
15713 \end_layout
15714
15715 \begin_layout Standard
15716 \begin_inset VSpace bigskip
15717 \end_inset
15718
15719
15720 \end_layout
15721
15722 \begin_layout Standard
15723 \begin_inset CommandInset include
15724 LatexCommand input
15725 filename "SpecialParagraphShape.tex"
15726 literal "true"
15727
15728 \end_inset
15729
15730
15731 \lang latin
15732 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
15733  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
15734  voluptua.
15735  At vero eos et accusam et justo duo dolores et ea rebum.
15736  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
15737  sit amet.
15738  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
15739  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
15740  voluptua.
15741 \end_layout
15742
15743 \begin_layout Standard
15744 \begin_inset VSpace bigskip
15745 \end_inset
15746
15747
15748 \end_layout
15749
15750 \begin_layout Standard
15751
15752 \series bold
15753 A tip:
15754 \series default
15755  to draw complexer shapes in 
15756 \family sans
15757 Jpgfdraw
15758 \family default
15759  you can draw the shape in a program of your choice and import the resulting
15760  image to 
15761 \family sans
15762 Jpgfdraw
15763 \family default
15764 .
15765  Then you only need to draw a line or spline along the outline of the image.
15766 \end_layout
15767
15768 \begin_layout Standard
15769 \begin_inset VSpace bigskip
15770 \end_inset
15771
15772
15773 \end_layout
15774
15775 \begin_layout Standard
15776 The module 
15777 \family sans
15778 Custom paragraph shapes
15779 \family default
15780  also provides the two commands 
15781 \family sans
15782 shapepar
15783 \family default
15784  and 
15785 \family sans
15786 Shapepar
15787 \family default
15788  which can be used to define custom shapes coordinate by coordinate.
15789 \begin_inset Foot
15790 status collapsed
15791
15792 \begin_layout Plain Layout
15793 These commands are internally used for all shapes described here.
15794 \end_layout
15795
15796 \end_inset
15797
15798  For information how these styles are used and about further customization
15799  possibilities, have a look at the 
15800 \begin_inset CommandInset href
15801 LatexCommand href
15802 name "documentation"
15803 target "https://www.ctan.org/tex-archive/macros/latex/contrib/shapepar/shapepar.pdf"
15804 literal "false"
15805
15806 \end_inset
15807
15808  of the package 
15809 \begin_inset Flex Code
15810 status collapsed
15811
15812 \begin_layout Plain Layout
15813 shapepar
15814 \end_layout
15815
15816 \end_inset
15817
15818 .
15819 \end_layout
15820
15821 \begin_layout Chapter
15822
15823 \change_deleted 564990737 1671304317
15824 Customizing 
15825 \change_unchanged
15826 Bibliograph
15827 \change_inserted 564990737 1671304322
15828 y
15829 \change_deleted 564990737 1671304331
15830 ies with Bib\SpecialChar TeX
15831  or Biblatex
15832 \change_unchanged
15833
15834 \end_layout
15835
15836 \begin_layout Standard
15837 The most basic information about how to use Bib\SpecialChar TeX
15838  or 
15839 \family sans
15840 Biblatex
15841 \family default
15842  with \SpecialChar LyX
15843  is contained in the section 
15844 \emph on
15845 Bibliography databases
15846 \emph default
15847  of the 
15848 \emph on
15849 User's Guide
15850 \emph default
15851 .
15852  The following subsections explain special bibliography features supported
15853  by \SpecialChar LyX
15854 .
15855 \end_layout
15856
15857 \begin_layout Section
15858 Alternative Citation Styles
15859 \end_layout
15860
15861 \begin_layout Standard
15862 Standard Bib\SpecialChar TeX
15863  uses numbers (e.
15864 \begin_inset space \thinspace{}
15865 \end_inset
15866
15867 g.
15868 \begin_inset space \space{}
15869 \end_inset
15870
15871
15872 \begin_inset Quotes eld
15873 \end_inset
15874
15875 [12]
15876 \begin_inset Quotes erd
15877 \end_inset
15878
15879 ) to refer to a cited work.
15880  However, in many scientific disciplines, other citation styles are in use.
15881  The most common one is the author-year style (e.
15882 \begin_inset space \thinspace{}
15883 \end_inset
15884
15885 g.
15886 \begin_inset space \space{}
15887 \end_inset
15888
15889
15890 \begin_inset Quotes eld
15891 \end_inset
15892
15893 Knuth 1984a
15894 \begin_inset Quotes erd
15895 \end_inset
15896
15897 ).
15898  \SpecialChar LyX
15899  supports three packages that provide this style, 
15900 \begin_inset Flex Code
15901 status collapsed
15902
15903 \begin_layout Plain Layout
15904 biblatex
15905 \end_layout
15906
15907 \end_inset
15908
15909
15910 \begin_inset Flex Code
15911 status collapsed
15912
15913 \begin_layout Plain Layout
15914 natbib
15915 \end_layout
15916
15917 \end_inset
15918
15919 , and 
15920 \begin_inset Flex Code
15921 status collapsed
15922
15923 \begin_layout Plain Layout
15924 jurabib
15925 \end_layout
15926
15927 \end_inset
15928
15929 .
15930  Each of these packages has their pros and cons, which cannot be listed
15931  in detail.
15932  If you only want to have simple author-year (or author-numerical) style,
15933  or if you want to use one of the countless style files for 
15934 \begin_inset Flex Code
15935 status collapsed
15936
15937 \begin_layout Plain Layout
15938 natbib
15939 \end_layout
15940
15941 \end_inset
15942
15943 , then the established 
15944 \begin_inset Flex Code
15945 status collapsed
15946
15947 \begin_layout Plain Layout
15948 natbib
15949 \end_layout
15950
15951 \end_inset
15952
15953  package is probably your choice.
15954  If you look for specific citation styles common in law studies, you might
15955  consider the 
15956 \begin_inset Flex Code
15957 status collapsed
15958
15959 \begin_layout Plain Layout
15960 jurabib
15961 \end_layout
15962
15963 \end_inset
15964
15965  package.
15966  If you want to have full control over the formatting or look for advanced
15967  features such as ibidem, footnote citations, full title citations, advanced
15968  date formats (such as 400 BC) or full localization to other languages than
15969  English, you should definitely consider 
15970 \begin_inset Flex Code
15971 status collapsed
15972
15973 \begin_layout Plain Layout
15974 biblatex
15975 \end_layout
15976
15977 \end_inset
15978
15979 , which exceeds all other packages in terms of features, but is also quite
15980  heavy and more resource-hungry.
15981 \end_layout
15982
15983 \begin_layout Standard
15984 The handling of these packages in \SpecialChar LyX
15985  is basically the same.
15986  Go to 
15987 \begin_inset Flex Noun
15988 status collapsed
15989
15990 \begin_layout Plain Layout
15991 Document\SpecialChar menuseparator
15992 Settings
15993 \end_layout
15994
15995 \end_inset
15996
15997  and select under 
15998 \begin_inset Flex Noun
15999 status collapsed
16000
16001 \begin_layout Plain Layout
16002 Bibliography
16003 \end_layout
16004
16005 \end_inset
16006
16007  the 
16008 \begin_inset Flex Noun
16009 status collapsed
16010
16011 \begin_layout Plain Layout
16012 Style Format
16013 \end_layout
16014
16015 \end_inset
16016
16017  
16018 \begin_inset Flex Noun
16019 status collapsed
16020
16021 \begin_layout Plain Layout
16022 Basic (BibTeX)
16023 \end_layout
16024
16025 \end_inset
16026
16027
16028 \begin_inset Flex Noun
16029 status collapsed
16030
16031 \begin_layout Plain Layout
16032 Biblatex
16033 \end_layout
16034
16035 \end_inset
16036
16037
16038 \begin_inset Flex Noun
16039 status collapsed
16040
16041 \begin_layout Plain Layout
16042 Biblatex (Natbib mode)
16043 \end_layout
16044
16045 \end_inset
16046
16047
16048 \begin_inset Flex Noun
16049 status collapsed
16050
16051 \begin_layout Plain Layout
16052 Natbib (BibTeX)
16053 \end_layout
16054
16055 \end_inset
16056
16057  or 
16058 \begin_inset Flex Noun
16059 status collapsed
16060
16061 \begin_layout Plain Layout
16062 Jurabib (BibTeX)
16063 \end_layout
16064
16065 \end_inset
16066
16067  (see sec.
16068 \begin_inset space ~
16069 \end_inset
16070
16071 6.5.3 in the User's Guide for more information on these choices).
16072  With all these packages, you will get some extra features in the citation
16073  dialog and you can select the style of the reference (
16074 \begin_inset Quotes eld
16075 \end_inset
16076
16077 Knuth 1984
16078 \begin_inset Quotes erd
16079 \end_inset
16080
16081
16082 \begin_inset Quotes eld
16083 \end_inset
16084
16085 Knuth (1984)
16086 \begin_inset Quotes erd
16087 \end_inset
16088
16089
16090 \begin_inset Quotes eld
16091 \end_inset
16092
16093 Knuth, 1984
16094 \begin_inset Quotes erd
16095 \end_inset
16096
16097
16098 \begin_inset Quotes eld
16099 \end_inset
16100
16101 1984
16102 \begin_inset Quotes erd
16103 \end_inset
16104
16105  etc.).
16106  Note that either package needs specifically designed style files.
16107  They all ship their own, but there are lots of additional style files,
16108  and there is even an interactive style file builder
16109 \begin_inset Foot
16110 status collapsed
16111
16112 \begin_layout Plain Layout
16113 See 
16114 \begin_inset Flex URL
16115 status open
16116
16117 \begin_layout Plain Layout
16118
16119 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
16120 \end_layout
16121
16122 \end_inset
16123
16124
16125 \end_layout
16126
16127 \end_inset
16128
16129  for 
16130 \begin_inset Flex Code
16131 status collapsed
16132
16133 \begin_layout Plain Layout
16134 natbib
16135 \end_layout
16136
16137 \end_inset
16138
16139 .
16140 \end_layout
16141
16142 \begin_layout Section
16143 Subdivided Bibliographies
16144 \end_layout
16145
16146 \begin_layout Standard
16147 Sometimes you might need to divide your bibliography into several sections.
16148  If you are for instance a historian, the possibility to separate sources
16149  and scientific works is most likely a 
16150 \begin_inset Quotes eld
16151 \end_inset
16152
16153 must have
16154 \begin_inset Quotes erd
16155 \end_inset
16156
16157 .
16158  Unfortunately, Bib\SpecialChar TeX
16159  itself does not allow you to do this.
16160  But with the help of some \SpecialChar LaTeX
16161  packages, Bib\SpecialChar TeX
16162  can be extended to fit your needs.
16163 \end_layout
16164
16165 \begin_layout Standard
16166 \SpecialChar LyX
16167  provides native support for one of these packages, 
16168 \family typewriter
16169 bibtopic
16170 \family default
16171 .
16172 \begin_inset Foot
16173 status collapsed
16174
16175 \begin_layout Plain Layout
16176 Available from 
16177 \begin_inset Flex URL
16178 status open
16179
16180 \begin_layout Plain Layout
16181
16182 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
16183 \end_layout
16184
16185 \end_inset
16186
16187
16188 \end_layout
16189
16190 \end_inset
16191
16192  The advantage of this package (compared to other packages such as 
16193 \family typewriter
16194 multibib
16195 \family default
16196 ) is that you don't need to define new citation commands.
16197  Instead, you need to prepare different bibliographic databases which include
16198  the entries for the different sections of the bibliography.
16199  For example: If you want to divide your bibliography into the sections
16200  
16201 \begin_inset Quotes eld
16202 \end_inset
16203
16204 Sources
16205 \begin_inset Quotes erd
16206 \end_inset
16207
16208  and 
16209 \begin_inset Quotes eld
16210 \end_inset
16211
16212 Scientific works
16213 \begin_inset Quotes erd
16214 \end_inset
16215
16216 , you first need to create two bibliographic databases, e.
16217 \begin_inset space \thinspace{}
16218 \end_inset
16219
16220 g.
16221 \begin_inset space \space{}
16222 \end_inset
16223
16224
16225 \begin_inset Flex Code
16226 status collapsed
16227
16228 \begin_layout Plain Layout
16229 sources.bib
16230 \end_layout
16231
16232 \end_inset
16233
16234  and 
16235 \begin_inset Flex Code
16236 status collapsed
16237
16238 \begin_layout Plain Layout
16239 scientific.bib
16240 \end_layout
16241
16242 \end_inset
16243
16244 .
16245  
16246 \end_layout
16247
16248 \begin_layout Standard
16249 Go to 
16250 \begin_inset Flex Noun
16251 status collapsed
16252
16253 \begin_layout Plain Layout
16254 Document\SpecialChar menuseparator
16255 Settings
16256 \end_layout
16257
16258 \end_inset
16259
16260  and check under 
16261 \begin_inset Flex Noun
16262 status collapsed
16263
16264 \begin_layout Plain Layout
16265 Bibliography
16266 \end_layout
16267
16268 \end_inset
16269
16270  the option 
16271 \begin_inset Flex Noun
16272 status collapsed
16273
16274 \begin_layout Plain Layout
16275 Subdivided bibliography
16276 \end_layout
16277
16278 \end_inset
16279
16280 .
16281  Now you can insert multiple Bib\SpecialChar TeX
16282  bibliographies, one for each section of
16283  your bibliography.
16284  Returning to our example: Insert the Bib\SpecialChar TeX
16285  bibliography 
16286 \begin_inset Flex Code
16287 status collapsed
16288
16289 \begin_layout Plain Layout
16290 sources.bib
16291 \end_layout
16292
16293 \end_inset
16294
16295  and a second one for the database 
16296 \begin_inset Flex Code
16297 status collapsed
16298
16299 \begin_layout Plain Layout
16300 scientific.bib
16301 \end_layout
16302
16303 \end_inset
16304
16305 .
16306  You are free to use the same or different styles for each section.
16307  Additionally, you can choose if the bibliography section should contain
16308  
16309 \begin_inset Quotes eld
16310 \end_inset
16311
16312 all cited references
16313 \begin_inset Quotes erd
16314 \end_inset
16315
16316  of the specified database(s) (which is the default), 
16317 \begin_inset Quotes eld
16318 \end_inset
16319
16320 all uncited references
16321 \begin_inset Quotes erd
16322 \end_inset
16323
16324  or even 
16325 \begin_inset Quotes eld
16326 \end_inset
16327
16328 all references
16329 \begin_inset Quotes erd
16330 \end_inset
16331
16332 .
16333  This might be useful if you would like to separate your bibliography into
16334  three sections: 
16335 \begin_inset Quotes eld
16336 \end_inset
16337
16338 Cited sources
16339 \begin_inset Quotes erd
16340 \end_inset
16341
16342
16343 \begin_inset Quotes eld
16344 \end_inset
16345
16346 Uncited sources
16347 \begin_inset Quotes erd
16348 \end_inset
16349
16350 , and 
16351 \begin_inset Quotes eld
16352 \end_inset
16353
16354 Scientific works
16355 \begin_inset Quotes erd
16356 \end_inset
16357
16358 .
16359  The titles for the sections can be added as ordinary sections or subsections.
16360  Since 
16361 \begin_inset Flex Code
16362 status collapsed
16363
16364 \begin_layout Plain Layout
16365 bibtopic
16366 \end_layout
16367
16368 \end_inset
16369
16370  removes the bibliography title, you have to manually re-add that, too (as
16371  a chapter* or section*, for instance).
16372 \end_layout
16373
16374 \begin_layout Standard
16375 With 
16376 \family sans
16377 Biblatex
16378 \family default
16379 , the procedure is a bit different.
16380  Since 
16381 \family typewriter
16382 bibtopic
16383 \family default
16384  does not work with 
16385 \family sans
16386 Biblatex
16387 \family default
16388 , the aforementioned 
16389 \begin_inset Flex Noun
16390 status collapsed
16391
16392 \begin_layout Plain Layout
16393 Subdivided bibliography
16394 \end_layout
16395
16396 \end_inset
16397
16398  option is disabled if you use 
16399 \family sans
16400 Biblatex
16401 \family default
16402 .
16403  However, 
16404 \family sans
16405 Biblatex
16406 \family default
16407  provides its own means to generate subdivided bibliographies.
16408  You can either add keywords to bibliography entries via the 
16409 \begin_inset Flex Code
16410 status collapsed
16411
16412 \begin_layout Plain Layout
16413 keywords
16414 \end_layout
16415
16416 \end_inset
16417
16418  entry option and then filter bibliography sections by keyword (by adding
16419  
16420 \begin_inset Flex Code
16421 status collapsed
16422
16423 \begin_layout Plain Layout
16424 keyword=mykeyword
16425 \end_layout
16426
16427 \end_inset
16428
16429  to the 
16430 \begin_inset Flex Noun
16431 status collapsed
16432
16433 \begin_layout Plain Layout
16434 Options
16435 \end_layout
16436
16437 \end_inset
16438
16439  field of the dialog that opens if you left-click on the 
16440 \begin_inset Flex Noun
16441 status collapsed
16442
16443 \begin_layout Plain Layout
16444 Biblatex Generated Bibliography
16445 \end_layout
16446
16447 \end_inset
16448
16449  button), or you can filter by entry types (such as 
16450 \emph on
16451 book
16452 \emph default
16453  or 
16454 \emph on
16455 article
16456 \emph default
16457 ) by entering e.
16458 \begin_inset space \thinspace{}
16459 \end_inset
16460
16461 g.
16462  
16463 \begin_inset Flex Code
16464 status collapsed
16465
16466 \begin_layout Plain Layout
16467 type=book
16468 \end_layout
16469
16470 \end_inset
16471
16472  or 
16473 \begin_inset Flex Code
16474 status collapsed
16475
16476 \begin_layout Plain Layout
16477 nottype=collection
16478 \end_layout
16479
16480 \end_inset
16481
16482  to the mentioned 
16483 \begin_inset Flex Noun
16484 status collapsed
16485
16486 \begin_layout Plain Layout
16487 Options
16488 \end_layout
16489
16490 \end_inset
16491
16492  field, or you can create so-called 
16493 \begin_inset Quotes eld
16494 \end_inset
16495
16496 Bibliography Categories
16497 \begin_inset Quotes erd
16498 \end_inset
16499
16500  to which you can assign individual entries.
16501  Please refer to the Biblatex manual, section 
16502 \emph on
16503 Subdivided Bibliographies
16504 \emph default
16505 , for details.
16506 \end_layout
16507
16508 \begin_layout Section
16509 Multiple Bibliographies
16510 \begin_inset CommandInset label
16511 LatexCommand label
16512 name "subsec:Multiple-Bibliographies"
16513
16514 \end_inset
16515
16516
16517 \end_layout
16518
16519 \begin_layout Standard
16520 Multiple bibliographies, e.
16521 \begin_inset space \thinspace{}
16522 \end_inset
16523
16524 g.
16525 \begin_inset space \space{}
16526 \end_inset
16527
16528 a bibliography for each part, chapter, section, subsection or child (sub-documen
16529 t) of the document, are also supported by \SpecialChar LyX
16530 .
16531  In order to enable it, go to 
16532 \begin_inset Flex Noun
16533 status collapsed
16534
16535 \begin_layout Plain Layout
16536 Document\SpecialChar menuseparator
16537 Settings\SpecialChar menuseparator
16538 Bibliography
16539 \end_layout
16540
16541 \end_inset
16542
16543  and select the relevant unit (e.
16544 \begin_inset space \thinspace{}
16545 \end_inset
16546
16547 g., 
16548 \begin_inset Quotes eld
16549 \end_inset
16550
16551 per section
16552 \begin_inset Quotes erd
16553 \end_inset
16554
16555 ) in the 
16556 \begin_inset Flex Noun
16557 status collapsed
16558
16559 \begin_layout Plain Layout
16560 Multiple Bibliographies
16561 \end_layout
16562
16563 \end_inset
16564
16565  combo box.
16566  Then add a Bib(la)\SpecialChar TeX
16567  bibliography to each unit (e.
16568 \begin_inset space \thinspace{}
16569 \end_inset
16570
16571 g., section) of your document.
16572  In the output, a separate bibliography, containing only the references
16573  done in the current unit is generated.
16574 \end_layout
16575
16576 \begin_layout Standard
16577 If you use Bib\SpecialChar TeX
16578 , either the 
16579 \begin_inset Flex Code
16580 status collapsed
16581
16582 \begin_layout Plain Layout
16583 chapterbib
16584 \end_layout
16585
16586 \end_inset
16587
16588  or the 
16589 \begin_inset Flex Code
16590 status collapsed
16591
16592 \begin_layout Plain Layout
16593 bibtopic
16594 \end_layout
16595
16596 \end_inset
16597
16598  package is used to create multiple bibliographies.
16599  The former package is used if you select 
16600 \begin_inset Quotes eld
16601 \end_inset
16602
16603 per child document
16604 \begin_inset Quotes erd
16605 \end_inset
16606
16607  and do 
16608 \emph on
16609 not
16610 \emph default
16611  check 
16612 \begin_inset Flex Noun
16613 status collapsed
16614
16615 \begin_layout Plain Layout
16616 Sectioned Bibliography
16617 \end_layout
16618
16619 \end_inset
16620
16621 .
16622  In all other cases, 
16623 \begin_inset Flex Code
16624 status collapsed
16625
16626 \begin_layout Plain Layout
16627 bibtopic
16628 \end_layout
16629
16630 \end_inset
16631
16632  is used.
16633 \begin_inset Foot
16634 status collapsed
16635
16636 \begin_layout Plain Layout
16637 An alternative approach, if you are willing to use some 
16638 \begin_inset Flex Noun
16639 status collapsed
16640
16641 \begin_layout Plain Layout
16642 \SpecialChar TeX
16643  Code
16644 \end_layout
16645
16646 \end_inset
16647
16648  (see section
16649 \begin_inset space ~
16650 \end_inset
16651
16652
16653 \begin_inset CommandInset ref
16654 LatexCommand ref
16655 reference "sec:Inserting-TeX-Code"
16656
16657 \end_inset
16658
16659 ), is to use the 
16660 \begin_inset Flex Code
16661 status collapsed
16662
16663 \begin_layout Plain Layout
16664 bibunits
16665 \end_layout
16666
16667 \end_inset
16668
16669  package.
16670 \end_layout
16671
16672 \end_inset
16673
16674  If 
16675 \begin_inset Flex Code
16676 status collapsed
16677
16678 \begin_layout Plain Layout
16679 bibtopic
16680 \end_layout
16681
16682 \end_inset
16683
16684  is used, \SpecialChar LyX
16685  encloses the specified units in 
16686 \begin_inset Flex Code
16687 status collapsed
16688
16689 \begin_layout Plain Layout
16690 bibtopic
16691 \end_layout
16692
16693 \end_inset
16694
16695 's 
16696 \begin_inset Flex Code
16697 status collapsed
16698
16699 \begin_layout Plain Layout
16700
16701 \backslash
16702 begin{btUnit}
16703 \end_layout
16704
16705 \end_inset
16706
16707  and 
16708 \begin_inset Flex Code
16709 status collapsed
16710
16711 \begin_layout Plain Layout
16712
16713 \backslash
16714 end{btUnit}
16715 \end_layout
16716
16717 \end_inset
16718
16719  in order to create the units.
16720  Note that this approach has some limitations.
16721  First, every citation reference has to be inside some 
16722 \begin_inset Flex Code
16723 status collapsed
16724
16725 \begin_layout Plain Layout
16726 btUnit
16727 \end_layout
16728
16729 \end_inset
16730
16731 .
16732  So citations outside a defined unit (e.
16733 \begin_inset space \thinspace{}
16734 \end_inset
16735
16736 g., before the first section if you use 
16737 \begin_inset Quotes eld
16738 \end_inset
16739
16740 by section
16741 \begin_inset Quotes erd
16742 \end_inset
16743
16744 ) will appear as 
16745 \begin_inset Quotes eld
16746 \end_inset
16747
16748 ???
16749 \begin_inset Quotes erd
16750 \end_inset
16751
16752 .
16753  You can also create your own units by entering 
16754 \begin_inset Flex Code
16755 status collapsed
16756
16757 \begin_layout Plain Layout
16758
16759 \backslash
16760 begin{btUnit}
16761 \end_layout
16762
16763 \end_inset
16764
16765  and 
16766 \begin_inset Flex Code
16767 status collapsed
16768
16769 \begin_layout Plain Layout
16770
16771 \backslash
16772 end{btUnit}
16773 \end_layout
16774
16775 \end_inset
16776
16777  as \SpecialChar TeX
16778  code (for instance to work around the mentioned limitation).
16779  Note, though, that 
16780 \begin_inset Flex Code
16781 status collapsed
16782
16783 \begin_layout Plain Layout
16784 btUnit
16785 \end_layout
16786
16787 \end_inset
16788
16789 s cannot be nested.
16790  A second limitation is that 
16791 \begin_inset Flex Code
16792 status collapsed
16793
16794 \begin_layout Plain Layout
16795 bibtopic
16796 \end_layout
16797
16798 \end_inset
16799
16800  always processes all references of a bibliography database, even if they
16801  are not cited.
16802  This can result in odd labels (e.
16803 \begin_inset space \thinspace{}
16804 \end_inset
16805
16806 g.
16807  
16808 \begin_inset Quotes eld
16809 \end_inset
16810
16811 Miller 2014b
16812 \begin_inset Quotes erd
16813 \end_inset
16814
16815  if two works of this author from 2014 are in the database, even if only
16816  one is cited).
16817 \end_layout
16818
16819 \begin_layout Standard
16820 If you use 
16821 \family sans
16822 Biblatex
16823 \family default
16824 , the 
16825 \begin_inset Flex Code
16826 status collapsed
16827
16828 \begin_layout Plain Layout
16829 refsection
16830 \end_layout
16831
16832 \end_inset
16833
16834  option is used instead.
16835  If you need specific units, you can start them with the \SpecialChar TeX
16836  code 
16837 \begin_inset Flex Code
16838 status collapsed
16839
16840 \begin_layout Plain Layout
16841
16842 \backslash
16843 newrefsection
16844 \end_layout
16845
16846 \end_inset
16847
16848  or 
16849 \begin_inset Flex Code
16850 status collapsed
16851
16852 \begin_layout Plain Layout
16853
16854 \backslash
16855 newrefsegment
16856 \end_layout
16857
16858 \end_inset
16859
16860 , respectively.
16861  If you also want to control the end of the unit, use the environment 
16862 \begin_inset Flex Code
16863 status collapsed
16864
16865 \begin_layout Plain Layout
16866
16867 \backslash
16868 begin{refsection}
16869 \end_layout
16870
16871 \end_inset
16872
16873  \SpecialChar ldots
16874  
16875 \begin_inset Flex Code
16876 status collapsed
16877
16878 \begin_layout Plain Layout
16879
16880 \backslash
16881 end{refsection}
16882 \end_layout
16883
16884 \end_inset
16885
16886  instead.
16887  Note, though, that 
16888 \begin_inset Flex Code
16889 status collapsed
16890
16891 \begin_layout Plain Layout
16892 refsection
16893 \end_layout
16894
16895 \end_inset
16896
16897 s cannot be nested.
16898  In addition to the individual bibliography of the current unit, 
16899 \family sans
16900 Biblatex
16901 \family default
16902  also provides an easy way to output all bibliographies, subsequently, at
16903  one place (e.
16904 \begin_inset space \thinspace{}
16905 \end_inset
16906
16907 g., at the end of the document).
16908  Select 
16909 \begin_inset Quotes eld
16910 \end_inset
16911
16912 all reference units
16913 \begin_inset Quotes erd
16914 \end_inset
16915
16916  from the Content combo box of the Bib(la)TeX inset dialog in order to achieve
16917  this.
16918  Please refer to the 
16919 \family sans
16920 Biblatex
16921 \family default
16922  manual for more information on this topic.
16923 \end_layout
16924
16925 \begin_layout Chapter
16926
16927 \change_deleted 564990737 1671355654
16928 Itemize 
16929 \change_unchanged
16930 Bullet
16931 \change_inserted 564990737 1671355667
16932 s
16933 \change_deleted 564990737 1671355661
16934  Selection
16935 \change_inserted 564990737 1671355684
16936
16937 \begin_inset CommandInset label
16938 LatexCommand label
16939 name "chap:bullets"
16940
16941 \end_inset
16942
16943
16944 \change_deleted 564990737 1671355684
16945
16946 \begin_inset CommandInset label
16947 LatexCommand label
16948 name "sec:bullet"
16949
16950 \end_inset
16951
16952
16953 \change_unchanged
16954
16955 \end_layout
16956
16957 \begin_layout Standard
16958 by
16959 \noun on
16960  Allan Rae
16961 \end_layout
16962
16963 \begin_layout Section
16964 Introduction
16965 \end_layout
16966
16967 \begin_layout Standard
16968 \SpecialChar LyX
16969  provides 216 bullet shapes that can be accessed from a simple dialog.
16970  Using this dialog you can easily specify what bullet shape to use at each
16971  level of an itemized list.
16972  These settings are document-wide so you won't be able to specify different
16973  sets of bullets for different paragraphs.
16974 \begin_inset Foot
16975 status collapsed
16976
16977 \begin_layout Plain Layout
16978 Well, actually you can but you'll have to do it by hand.
16979 \end_layout
16980
16981 \end_inset
16982
16983
16984 \end_layout
16985
16986 \begin_layout Section
16987 How it looks
16988 \end_layout
16989
16990 \begin_layout Standard
16991 Open the dialog by selecting the 
16992 \begin_inset Flex Noun
16993 status collapsed
16994
16995 \begin_layout Plain Layout
16996 Document\SpecialChar menuseparator
16997 Settings
16998 \end_layout
16999
17000 \end_inset
17001
17002  menu item and then select the 
17003 \begin_inset Flex Noun
17004 status collapsed
17005
17006 \begin_layout Plain Layout
17007 Bullets
17008 \end_layout
17009
17010 \end_inset
17011
17012  tab.
17013 \end_layout
17014
17015 \begin_layout Standard
17016 The dialog provides you with a table of bullet shapes.
17017  A column of buttons on the left of the table provides access to the six
17018  different panels of bullet shapes.
17019  The row of buttons across the top is used to select which bullet depth
17020  you are changing.
17021
17022 \change_deleted 244031559 1603875981
17023  A text entry under the table shows the currently selected bullet shape's
17024  \SpecialChar LaTeX
17025  equivalent and this can be edited if desired.
17026  If you do modify the text you will also need to specify any needed packages
17027  in the \SpecialChar LaTeX
17028  preamble.
17029 \change_unchanged
17030
17031 \end_layout
17032
17033 \begin_layout Standard
17034 The six panels are divided up by the packages they require.
17035  The following table shows the mappings from button name to \SpecialChar LaTeX
17036  package.
17037 \end_layout
17038
17039 \begin_layout Standard
17040 \align center
17041 \begin_inset Tabular
17042 <lyxtabular version="3" rows="7" columns="2">
17043 <features tabularvalignment="middle">
17044 <column alignment="center" valignment="top" width="0pt">
17045 <column alignment="center" valignment="top" width="0pt">
17046 <row>
17047 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17048 \begin_inset Text
17049
17050 \begin_layout Plain Layout
17051
17052 \family roman
17053 \series medium
17054 \shape up
17055 \size normal
17056 \emph off
17057 \bar no
17058 \noun off
17059 \color none
17060 Button
17061 \end_layout
17062
17063 \end_inset
17064 </cell>
17065 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17066 \begin_inset Text
17067
17068 \begin_layout Plain Layout
17069
17070 \family roman
17071 \series medium
17072 \shape up
17073 \size normal
17074 \emph off
17075 \bar no
17076 \noun off
17077 \color none
17078 Packages Required
17079 \end_layout
17080
17081 \end_inset
17082 </cell>
17083 </row>
17084 <row>
17085 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17086 \begin_inset Text
17087
17088 \begin_layout Plain Layout
17089
17090 \family sans
17091 \series medium
17092 \shape up
17093 \size normal
17094 \emph off
17095 \bar no
17096 \noun off
17097 \color none
17098 Standard
17099 \end_layout
17100
17101 \end_inset
17102 </cell>
17103 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17104 \begin_inset Text
17105
17106 \begin_layout Plain Layout
17107
17108 \series medium
17109 \shape up
17110 \size normal
17111 \emph off
17112 \bar no
17113 \noun off
17114 \color none
17115 base \SpecialChar LaTeX
17116
17117 \end_layout
17118
17119 \end_inset
17120 </cell>
17121 </row>
17122 <row>
17123 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17124 \begin_inset Text
17125
17126 \begin_layout Plain Layout
17127
17128 \family sans
17129 \series medium
17130 \shape up
17131 \size normal
17132 \emph off
17133 \bar no
17134 \noun off
17135 \color none
17136 Maths
17137 \end_layout
17138
17139 \end_inset
17140 </cell>
17141 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17142 \begin_inset Text
17143
17144 \begin_layout Plain Layout
17145
17146 \family typewriter
17147 \series medium
17148 \shape up
17149 \size normal
17150 \emph off
17151 \bar no
17152 \noun off
17153 \color none
17154 amssymb.sty
17155 \end_layout
17156
17157 \end_inset
17158 </cell>
17159 </row>
17160 <row>
17161 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17162 \begin_inset Text
17163
17164 \begin_layout Plain Layout
17165
17166 \family sans
17167 \series medium
17168 \shape up
17169 \size normal
17170 \emph off
17171 \bar no
17172 \noun off
17173 \color none
17174 Ding1
17175 \end_layout
17176
17177 \end_inset
17178 </cell>
17179 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17180 \begin_inset Text
17181
17182 \begin_layout Plain Layout
17183
17184 \family typewriter
17185 \series medium
17186 \shape up
17187 \size normal
17188 \emph off
17189 \bar no
17190 \noun off
17191 \color none
17192 pifont.sty
17193 \end_layout
17194
17195 \end_inset
17196 </cell>
17197 </row>
17198 <row>
17199 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17200 \begin_inset Text
17201
17202 \begin_layout Plain Layout
17203
17204 \family sans
17205 \series medium
17206 \shape up
17207 \size normal
17208 \emph off
17209 \bar no
17210 \noun off
17211 \color none
17212 Ding2
17213 \end_layout
17214
17215 \end_inset
17216 </cell>
17217 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17218 \begin_inset Text
17219
17220 \begin_layout Plain Layout
17221
17222 \family typewriter
17223 \series medium
17224 \shape up
17225 \size normal
17226 \emph off
17227 \bar no
17228 \noun off
17229 \color none
17230 pifont.sty
17231 \end_layout
17232
17233 \end_inset
17234 </cell>
17235 </row>
17236 <row>
17237 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17238 \begin_inset Text
17239
17240 \begin_layout Plain Layout
17241
17242 \family sans
17243 \series medium
17244 \shape up
17245 \size normal
17246 \emph off
17247 \bar no
17248 \noun off
17249 \color none
17250 Ding3
17251 \end_layout
17252
17253 \end_inset
17254 </cell>
17255 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17256 \begin_inset Text
17257
17258 \begin_layout Plain Layout
17259
17260 \family typewriter
17261 \series medium
17262 \shape up
17263 \size normal
17264 \emph off
17265 \bar no
17266 \noun off
17267 \color none
17268 pifont.sty
17269 \end_layout
17270
17271 \end_inset
17272 </cell>
17273 </row>
17274 <row>
17275 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17276 \begin_inset Text
17277
17278 \begin_layout Plain Layout
17279
17280 \family sans
17281 \series medium
17282 \shape up
17283 \size normal
17284 \emph off
17285 \bar no
17286 \noun off
17287 \color none
17288 Ding4
17289 \end_layout
17290
17291 \end_inset
17292 </cell>
17293 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17294 \begin_inset Text
17295
17296 \begin_layout Plain Layout
17297
17298 \family typewriter
17299 \series medium
17300 \shape up
17301 \size normal
17302 \emph off
17303 \bar no
17304 \noun off
17305 \color none
17306 pifont.sty
17307 \end_layout
17308
17309 \end_inset
17310 </cell>
17311 </row>
17312 </lyxtabular>
17313
17314 \end_inset
17315
17316
17317 \end_layout
17318
17319 \begin_layout Standard
17320 \SpecialChar LyX
17321  doesn't stop you using bullets from packages you don't have.
17322  If you get errors from \SpecialChar LaTeX
17323  when you try to view or print the file, then it
17324  is likely you are missing a package.
17325 \begin_inset Foot
17326 status collapsed
17327
17328 \begin_layout Plain Layout
17329 \SpecialChar LyX
17330  doesn't restrict your use since you may be editing locally and exporting
17331  elsewhere.
17332 \end_layout
17333
17334 \end_inset
17335
17336
17337 \end_layout
17338
17339 \begin_layout Section
17340 How to use it
17341 \end_layout
17342
17343 \begin_layout Standard
17344 Select which bullet depth you want to change then select the bullet shape
17345  and size.
17346  Any changes will not be visible in \SpecialChar LyX
17347 , but are visible when viewing the document.
17348 \end_layout
17349
17350 \begin_layout Standard
17351 You can reset a bullet shape to the default simply by clicking your right
17352  mouse button on the appropriate bullet depth button.
17353 \begin_inset Foot
17354 status open
17355
17356 \begin_layout Plain Layout
17357 If you 
17358 \emph on
17359 really
17360 \emph default
17361  want to have multiple sets of paragraphs with different sets of bullets
17362  in each, then you're going to have to get your hands dirty with \SpecialChar TeX
17363  code.
17364  The bullet selection dialog can help though because it provides you with
17365  the \SpecialChar LaTeX
17366  code for a wide range of bullet shapes.
17367  To make your own custom paragraphs you have the following options:
17368 \end_layout
17369
17370 \begin_layout Plain Layout
17371 \begin_inset ERT
17372 status open
17373
17374 \begin_layout Plain Layout
17375
17376
17377 \backslash
17378 let
17379 \backslash
17380 savelabelitemi=
17381 \backslash
17382 labelitemi
17383 \end_layout
17384
17385 \end_inset
17386
17387
17388 \end_layout
17389
17390 \begin_layout Plain Layout
17391 \begin_inset ERT
17392 status open
17393
17394 \begin_layout Plain Layout
17395
17396
17397 \backslash
17398 renewcommand
17399 \backslash
17400 labelitemi[0]{
17401 \backslash
17402 small
17403 \backslash
17404 (
17405 \backslash
17406 sharp
17407 \backslash
17408 )}
17409 \end_layout
17410
17411 \end_inset
17412
17413
17414 \end_layout
17415
17416 \begin_layout Itemize
17417 Use the \SpecialChar LaTeX
17418  command 
17419 \begin_inset Flex Code
17420 status collapsed
17421
17422 \begin_layout Plain Layout
17423
17424 \backslash
17425 renewcommand{}{}
17426 \end_layout
17427
17428 \end_inset
17429
17430  to specify a new bullet shape for a given depth.
17431  You'll also need to save the current bullet shape so you can restore it
17432  again afterwards.
17433  In this itemized list the following \SpecialChar LaTeX
17434  code was used to change the bullet
17435  used for the first depth.
17436 \end_layout
17437
17438 \begin_deeper
17439 \begin_layout LyX-Code
17440
17441 \backslash
17442 let
17443 \backslash
17444 savelabelitemi=
17445 \backslash
17446 labelitemi 
17447 \end_layout
17448
17449 \begin_layout LyX-Code
17450
17451 \backslash
17452 renewcommand
17453 \backslash
17454 labelitemi[0]{
17455 \backslash
17456 small
17457 \backslash
17458 (
17459 \backslash
17460 sharp
17461 \backslash
17462 )}
17463 \end_layout
17464
17465 \end_deeper
17466 \begin_layout Itemize
17467 Note that the itemize depth is specified in Roman numerals as part of the
17468  
17469 \family typewriter
17470
17471 \backslash
17472 labelitem
17473 \family default
17474  command.
17475 \end_layout
17476
17477 \begin_layout Itemize
17478 \begin_inset Argument item:1
17479 status open
17480
17481 \begin_layout Plain Layout
17482 \begin_inset ERT
17483 status open
17484
17485 \begin_layout Plain Layout
17486
17487
17488 \backslash
17489 (
17490 \backslash
17491 star
17492 \backslash
17493 )
17494 \end_layout
17495
17496 \end_inset
17497
17498
17499 \end_layout
17500
17501 \end_inset
17502
17503  Specify each individual entry by starting each item with the bullet shape
17504  enclosed in a 
17505 \begin_inset Quotes eld
17506 \end_inset
17507
17508 Custom Item
17509 \begin_inset Quotes erd
17510 \end_inset
17511
17512  inset (available at 
17513 \family sans
17514 Insert\SpecialChar menuseparator
17515 Custom Item
17516 \family default
17517 ) and set as 
17518 \begin_inset Flex Noun
17519 status collapsed
17520
17521 \begin_layout Plain Layout
17522 \SpecialChar TeX
17523  Code
17524 \end_layout
17525
17526 \end_inset
17527
17528 .
17529  For example, this item was started with 
17530 \begin_inset Flex Code
17531 status collapsed
17532
17533 \begin_layout Plain Layout
17534
17535 \backslash
17536 (
17537 \backslash
17538 star
17539 \backslash
17540 )
17541 \end_layout
17542
17543 \end_inset
17544
17545 .
17546 \end_layout
17547
17548 \begin_layout Plain Layout
17549 \begin_inset ERT
17550 status open
17551
17552 \begin_layout Plain Layout
17553
17554
17555 \backslash
17556 renewcommand
17557 \backslash
17558 labelitemi[0]{
17559 \backslash
17560 savelabelitemi}
17561 \end_layout
17562
17563 \end_inset
17564
17565
17566 \end_layout
17567
17568 \begin_layout Plain Layout
17569 You'll also need to revert the labelitem back to its previous setting for
17570  the global bullet shape settings to remain in effect.
17571  The way used here was:
17572 \end_layout
17573
17574 \begin_layout LyX-Code
17575
17576 \backslash
17577 renewcommand
17578 \backslash
17579 labelitemi[0]{
17580 \backslash
17581 savelabelitemi}
17582 \end_layout
17583
17584 \end_inset
17585
17586
17587 \end_layout
17588
17589 \begin_layout Chapter
17590 Supplemental Tools
17591 \end_layout
17592
17593 \begin_layout Section
17594 Multipart Documents
17595 \end_layout
17596
17597 \begin_layout Subsection
17598 General Operation
17599 \end_layout
17600
17601 \begin_layout Standard
17602 When you are working on a large file with many sections, it is often convenient
17603  to break up the document into several files, or perhaps you have something
17604  where a table may change from time to time, but the preceding text does
17605  not.
17606  In these cases, you should seriously consider using multipart documents.
17607  For example, scientific papers often have five major sections: the introduction
17608 , observations, results, discussion, and conclusion.
17609  Each of these could be its own separate \SpecialChar LyX
17610  file, with one 
17611 \begin_inset Quotes eld
17612 \end_inset
17613
17614 master
17615 \begin_inset Quotes erd
17616 \end_inset
17617
17618  file which contains the title, authors, abstract, references, etc., plus
17619  the five included files.
17620  It is important to note that each of these files is a full \SpecialChar LyX
17621  file which
17622  can be formatted and printed on its own, as well as included in a master
17623  file.
17624  Each of these files must have the same document class, however—don't attempt
17625  to mix book classes with article classes.
17626  You may also include \SpecialChar LaTeX
17627  files; however, these files must not have their own
17628  preamble (i.
17629 \begin_inset space \thinspace{}
17630 \end_inset
17631
17632 e.
17633 \begin_inset space \space{}
17634 \end_inset
17635
17636 everything up to and including the 
17637 \begin_inset Flex Code
17638 status collapsed
17639
17640 \begin_layout Plain Layout
17641
17642 \backslash
17643 begin{document}
17644 \end_layout
17645
17646 \end_inset
17647
17648  line as well as the 
17649 \begin_inset Flex Code
17650 status collapsed
17651
17652 \begin_layout Plain Layout
17653
17654 \backslash
17655 end{document}
17656 \end_layout
17657
17658 \end_inset
17659
17660  line must be deleted) or else errors will be generated when you try to
17661  make a DVI file.
17662 \end_layout
17663
17664 \begin_layout Standard
17665 \SpecialChar LyX
17666  allows you to include files quite easily with 
17667 \begin_inset Flex Noun
17668 status collapsed
17669
17670 \begin_layout Plain Layout
17671 Insert\SpecialChar menuseparator
17672 Child
17673 \begin_inset space ~
17674 \end_inset
17675
17676 Document
17677 \end_layout
17678
17679 \end_inset
17680
17681 .
17682  When you click on this selection a small box is inserted into the file
17683  at the current cursor location.
17684  Clicking on the box raises a dialog which allows you to select the file
17685  to be included, and the method of its inclusion.
17686  
17687 \end_layout
17688
17689 \begin_layout Standard
17690 The file selection box should by now be obvious.
17691  The three inclusion methods are 
17692 \begin_inset Quotes eld
17693 \end_inset
17694
17695 include
17696 \begin_inset Quotes erd
17697 \end_inset
17698
17699
17700 \begin_inset Quotes eld
17701 \end_inset
17702
17703 input
17704 \begin_inset Quotes erd
17705 \end_inset
17706
17707 , and 
17708 \begin_inset Quotes eld
17709 \end_inset
17710
17711 verbatim
17712 \begin_inset Quotes erd
17713 \end_inset
17714
17715 .
17716  The methods 
17717 \begin_inset Quotes eld
17718 \end_inset
17719
17720 include
17721 \begin_inset Quotes erd
17722 \end_inset
17723
17724  and 
17725 \begin_inset Quotes eld
17726 \end_inset
17727
17728 input
17729 \begin_inset Quotes erd
17730 \end_inset
17731
17732  are similar in many ways, but there are also some notable differences:
17733 \end_layout
17734
17735 \begin_layout Enumerate
17736 Files that are 
17737 \begin_inset Quotes eld
17738 \end_inset
17739
17740 included
17741 \begin_inset Quotes erd
17742 \end_inset
17743
17744  are typeset beginning on a new page, while files that are 
17745 \begin_inset Quotes eld
17746 \end_inset
17747
17748 inputted
17749 \begin_inset Quotes erd
17750 \end_inset
17751
17752  are typeset starting on the current page.
17753 \end_layout
17754
17755 \begin_layout Enumerate
17756 \begin_inset Quotes eld
17757 \end_inset
17758
17759 Included
17760 \begin_inset Quotes erd
17761 \end_inset
17762
17763  files cannot themselves 
17764 \begin_inset Quotes eld
17765 \end_inset
17766
17767 include
17768 \begin_inset Quotes erd
17769 \end_inset
17770
17771  further files (
17772 \begin_inset Quotes eld
17773 \end_inset
17774
17775 grandchilds
17776 \begin_inset Quotes erd
17777 \end_inset
17778
17779 ).
17780  With 
17781 \begin_inset Quotes eld
17782 \end_inset
17783
17784 input
17785 \begin_inset Quotes erd
17786 \end_inset
17787
17788 , on the other hand, infinite sub-inputting is possible.
17789 \end_layout
17790
17791 \begin_layout Enumerate
17792 \begin_inset Quotes eld
17793 \end_inset
17794
17795 Include
17796 \begin_inset Quotes erd
17797 \end_inset
17798
17799  allow for the output of only selected 
17800 \begin_inset Quotes eld
17801 \end_inset
17802
17803 included
17804 \begin_inset Quotes erd
17805 \end_inset
17806
17807  files, while maintaining the actual counters (pagination etc.) and references
17808  (please refer to the section 
17809 \emph on
17810 Child
17811 \begin_inset space ~
17812 \end_inset
17813
17814 Documents
17815 \emph default
17816  of the 
17817 \emph on
17818 Embedded
17819 \begin_inset space ~
17820 \end_inset
17821
17822 Objects
17823 \emph default
17824  manual for details).
17825 \end_layout
17826
17827 \begin_layout Standard
17828 Hence, 
17829 \begin_inset Quotes eld
17830 \end_inset
17831
17832 include
17833 \begin_inset Quotes erd
17834 \end_inset
17835
17836  is the preferred method for chapters that are outsourced to child documents,
17837  while 
17838 \begin_inset Quotes eld
17839 \end_inset
17840
17841 input
17842 \begin_inset Quotes erd
17843 \end_inset
17844
17845  is more suitable for arbitrary file inheritance.
17846 \end_layout
17847
17848 \begin_layout Standard
17849
17850 \begin_inset Quotes eld
17851 \end_inset
17852
17853 verbatim
17854 \begin_inset Quotes erd
17855 \end_inset
17856
17857  included file allows you to include a file typeset exactly as it appears
17858  in the file, i.
17859 \begin_inset space \thinspace{}
17860 \end_inset
17861
17862 e.
17863 \begin_inset space \space{}
17864 \end_inset
17865
17866 in 
17867 \begin_inset Flex Code
17868 status collapsed
17869
17870 \begin_layout Plain Layout
17871 verbatim
17872 \end_layout
17873
17874 \end_inset
17875
17876  mode, with the characters set in a fixed-width typewriter font.
17877  Normally, spaces in this file are invisible, though two consecutive spaces
17878  are conserved, unlike \SpecialChar LyX
17879 's normal treatment of spaces.
17880  However, setting the 
17881 \begin_inset Flex Noun
17882 status collapsed
17883
17884 \begin_layout Plain Layout
17885 Mark
17886 \begin_inset space ~
17887 \end_inset
17888
17889 spaces
17890 \begin_inset space ~
17891 \end_inset
17892
17893 in
17894 \begin_inset space ~
17895 \end_inset
17896
17897 output
17898 \end_layout
17899
17900 \end_inset
17901
17902  checkbox typesets a mark to unambiguously define the presence of a space.
17903  
17904 \end_layout
17905
17906 \begin_layout Standard
17907 Generally, the master file is converted into a full \SpecialChar LaTeX
17908  file before typesetting,
17909  while the included files are converted to \SpecialChar LaTeX
17910  files that do not have all the
17911  preamble information.
17912 \end_layout
17913
17914 \begin_layout Subsection
17915 Cross-References Between Files
17916 \end_layout
17917
17918 \begin_layout Standard
17919 \begin_inset Box Shadowbox
17920 position "t"
17921 hor_pos "c"
17922 has_inner_box 1
17923 inner_pos "t"
17924 use_parbox 0
17925 use_makebox 0
17926 width "100col%"
17927 special "none"
17928 height "1in"
17929 height_special "totalheight"
17930 thickness "0.4pt"
17931 separation "3pt"
17932 shadowsize "4pt"
17933 framecolor "black"
17934 backgroundcolor "none"
17935 status open
17936
17937 \begin_layout Plain Layout
17938 This section is somewhat out of date.
17939  Need to describe default master documents and how children are opened when
17940  the master is.
17941  [[FIXME]]
17942 \end_layout
17943
17944 \end_inset
17945
17946
17947 \end_layout
17948
17949 \begin_layout Standard
17950 It is possible to set up cross-references between the different files.
17951  First, open all the files in question: let's call them A and B in a two
17952  file example, where B is included in A.
17953  Let's say you insert a label in A, then want to reference it in B.
17954  Open the cross-reference dialog whilst in document B, and you can select
17955  the 
17956 \begin_inset Quotes eld
17957 \end_inset
17958
17959 buffer
17960 \begin_inset Quotes erd
17961 \end_inset
17962
17963  to use.
17964 \end_layout
17965
17966 \begin_layout Subsection
17967 Bibliography Lists in all Subdocuments
17968 \end_layout
17969
17970 \begin_layout Standard
17971 If you work with child documents, you might want to have only one main bibliogra
17972 phy at the end, but still be able to have a selected bibliography for the
17973  child if you output it on its own.
17974  Here is how to achieve this.
17975 \end_layout
17976
17977 \begin_layout Standard
17978 For the main document, you just insert a bibliography inset at the place
17979  where the main bibliography has to appear (within the master file or within
17980  a child).
17981  If the bibliography inset is in the master file, the references will be
17982  inherited by all children, so they are available in the citation dialog
17983  within each child.
17984 \end_layout
17985
17986 \begin_layout Standard
17987 For child-specific bibliographies, insert bibliography insets within the
17988  child documents, at the place where the bibliography should appear when
17989  the child is compiled separately.
17990  However, the trick is to insert them into a branch (
17991 \family sans
17992 Insert\SpecialChar menuseparator
17993 Branch\SpecialChar menuseparator
17994 Insert New Branch...
17995 \family default
17996 ), e.
17997 \begin_inset space \thinspace{}
17998 \end_inset
17999
18000 g.
18001  called 
18002 \begin_inset Quotes eld
18003 \end_inset
18004
18005 Childonly
18006 \begin_inset Quotes erd
18007 \end_inset
18008
18009 .
18010  Within the children, activate the branch (
18011 \family sans
18012 Document\SpecialChar menuseparator
18013 Settings...\SpecialChar menuseparator
18014 Branches
18015 \family default
18016 ).
18017  Within the master, deactivate the branch (
18018 \family sans
18019 Document\SpecialChar menuseparator
18020 Settings...\SpecialChar menuseparator
18021 Branches
18022 \family default
18023 ).
18024  Now the child's bibliography will be ignored by the master, but considered
18025  by the child.
18026 \end_layout
18027
18028 \begin_layout Standard
18029 If you need multiple bibliographies (e.
18030 \begin_inset space \thinspace{}
18031 \end_inset
18032
18033 g., one per child in the 
18034 \emph on
18035 main document
18036 \emph default
18037 ), please refer to sec.
18038 \begin_inset space ~
18039 \end_inset
18040
18041
18042 \begin_inset CommandInset ref
18043 LatexCommand ref
18044 reference "subsec:Multiple-Bibliographies"
18045
18046 \end_inset
18047
18048 .
18049 \end_layout
18050
18051 \begin_layout Section
18052 \SpecialChar LyX
18053  Archives
18054 \end_layout
18055
18056 \begin_layout Standard
18057 Users sometimes need to be able to 
18058 \begin_inset Quotes eld
18059 \end_inset
18060
18061 bundle
18062 \begin_inset Quotes erd
18063 \end_inset
18064
18065  a \SpecialChar LyX
18066  file together with all the images (and other files) on which it depends,
18067  either for sending to a publisher or for sharing with a co-author.
18068  \SpecialChar LyX
18069  includes a Python script (
18070 \begin_inset Flex Code
18071 status collapsed
18072
18073 \begin_layout Plain Layout
18074 lyxpak.py
18075 \end_layout
18076
18077 \end_inset
18078
18079 ) that automates this process.
18080  To use it, you must have either the 
18081 \begin_inset Flex Code
18082 status collapsed
18083
18084 \begin_layout Plain Layout
18085 zipfile
18086 \end_layout
18087
18088 \end_inset
18089
18090  or 
18091 \begin_inset Flex Code
18092 status collapsed
18093
18094 \begin_layout Plain Layout
18095 tarfile
18096 \end_layout
18097
18098 \end_inset
18099
18100  python modules installed on your system.
18101  By default, the script prefers the 
18102 \begin_inset Flex Code
18103 status collapsed
18104
18105 \begin_layout Plain Layout
18106 gzip
18107 \end_layout
18108
18109 \end_inset
18110
18111 -compressed 
18112 \begin_inset Flex Code
18113 status collapsed
18114
18115 \begin_layout Plain Layout
18116 tar
18117 \end_layout
18118
18119 \end_inset
18120
18121  format on Unix-like systems and the 
18122 \begin_inset Flex Code
18123 status collapsed
18124
18125 \begin_layout Plain Layout
18126 zip
18127 \end_layout
18128
18129 \end_inset
18130
18131  format on Windows.
18132 \end_layout
18133
18134 \begin_layout Standard
18135 \SpecialChar LyX
18136 's configuration process will set the script up to export a `\SpecialChar LyX
18137  Archive',
18138  and this format will then be available under 
18139 \begin_inset Flex Code
18140 status collapsed
18141
18142 \begin_layout Plain Layout
18143 File\SpecialChar menuseparator
18144 Export
18145 \end_layout
18146
18147 \end_inset
18148
18149 .
18150 \end_layout
18151
18152 \begin_layout Standard
18153 Independently of the platform, the generation of a particular archive format
18154  can be forced by adding either the 
18155 \begin_inset Flex Code
18156 status collapsed
18157
18158 \begin_layout Plain Layout
18159 -t
18160 \end_layout
18161
18162 \end_inset
18163
18164  (for the 
18165 \begin_inset Flex Code
18166 status collapsed
18167
18168 \begin_layout Plain Layout
18169 tar
18170 \end_layout
18171
18172 \end_inset
18173
18174  format) or 
18175 \begin_inset Flex Code
18176 status collapsed
18177
18178 \begin_layout Plain Layout
18179 -z
18180 \end_layout
18181
18182 \end_inset
18183
18184  (for the 
18185 \begin_inset Flex Code
18186 status collapsed
18187
18188 \begin_layout Plain Layout
18189 zip
18190 \end_layout
18191
18192 \end_inset
18193
18194  format) switch to the 
18195 \begin_inset Flex Code
18196 status collapsed
18197
18198 \begin_layout Plain Layout
18199 \SpecialChar LyX
18200 \SpecialChar menuseparator
18201 \SpecialChar LyX
18202  Archive
18203 \end_layout
18204
18205 \end_inset
18206
18207  converter in 
18208 \begin_inset Flex Code
18209 status collapsed
18210
18211 \begin_layout Plain Layout
18212 Tools\SpecialChar menuseparator
18213 Preferences\SpecialChar menuseparator
18214 File Handling\SpecialChar menuseparator
18215 Converters
18216 \end_layout
18217
18218 \end_inset
18219
18220 .
18221  (Make sure you add the switch after the script name, not before it.)
18222 \end_layout
18223
18224 \begin_layout Section
18225 Fancy Headers and Footers
18226 \end_layout
18227
18228 \begin_layout Standard
18229 The default page layout is rather plain; for an 
18230 \begin_inset Flex Code
18231 status collapsed
18232
18233 \begin_layout Plain Layout
18234 article
18235 \end_layout
18236
18237 \end_inset
18238
18239  document class, all you get is a centered page number at the bottom of
18240  the page.
18241  This document uses KOMA-script's book class, so it appears to be a bit
18242  fancier.
18243  But to really put on a show, you need to set the document page style to
18244  
18245 \begin_inset Quotes eld
18246 \end_inset
18247
18248 fancy
18249 \begin_inset Quotes erd
18250 \end_inset
18251
18252 , as mentioned in the 
18253 \emph on
18254 User Guide
18255 \emph default
18256 .
18257  This section describes the \SpecialChar LaTeX
18258  code you need to insert in your \SpecialChar LaTeX
18259  preamble in
18260  order to get the desired effects.
18261 \end_layout
18262
18263 \begin_layout Standard
18264 For more information on fancy headers, see the 
18265 \begin_inset Flex Code
18266 status collapsed
18267
18268 \begin_layout Plain Layout
18269 fancyhdr
18270 \end_layout
18271
18272 \end_inset
18273
18274  package documentation.
18275  (
18276 \begin_inset Flex URL
18277 status collapsed
18278
18279 \begin_layout Plain Layout
18280
18281 https://www.ctan.org/tex-archive/help/Catalogue/entries/fancyhdr.html
18282 \end_layout
18283
18284 \end_inset
18285
18286 )
18287 \end_layout
18288
18289 \begin_layout Standard
18290 The page header is divided into three fields, not surprisingly labeled 
18291 \begin_inset Quotes eld
18292 \end_inset
18293
18294 left
18295 \begin_inset Quotes erd
18296 \end_inset
18297
18298
18299 \begin_inset Quotes eld
18300 \end_inset
18301
18302 center
18303 \begin_inset Quotes erd
18304 \end_inset
18305
18306 , and 
18307 \begin_inset Quotes eld
18308 \end_inset
18309
18310 right
18311 \begin_inset Quotes erd
18312 \end_inset
18313
18314 .
18315  The footer is also divided into these three fields.
18316  The \SpecialChar LaTeX
18317  commands to set these fields in the simplest manner are 
18318 \begin_inset Flex Code
18319 status collapsed
18320
18321 \begin_layout Plain Layout
18322
18323 \backslash
18324 lhead
18325 \end_layout
18326
18327 \end_inset
18328
18329
18330 \begin_inset Flex Code
18331 status collapsed
18332
18333 \begin_layout Plain Layout
18334
18335 \backslash
18336 chead
18337 \end_layout
18338
18339 \end_inset
18340
18341
18342 \begin_inset Flex Code
18343 status collapsed
18344
18345 \begin_layout Plain Layout
18346
18347 \backslash
18348 rhead
18349 \end_layout
18350
18351 \end_inset
18352
18353
18354 \begin_inset Flex Code
18355 status collapsed
18356
18357 \begin_layout Plain Layout
18358
18359 \backslash
18360 lfoot
18361 \end_layout
18362
18363 \end_inset
18364
18365 , etc.
18366  Suppose you wish to put your name in the upper left hand corner of each
18367  page.
18368  Simply insert the following command in the preamble: 
18369 \end_layout
18370
18371 \begin_layout Standard
18372
18373 \family typewriter
18374
18375 \backslash
18376 lhead{John Q.
18377  DocWriter}
18378 \end_layout
18379
18380 \begin_layout Standard
18381 You will now see your name in the upper left.
18382  If a field has a default entry that you would like to get rid of (often
18383  the page number appears in the central footer) simply include a command
18384  with a blank argument, e.
18385 \begin_inset space \thinspace{}
18386 \end_inset
18387
18388 g.:
18389 \end_layout
18390
18391 \begin_layout Standard
18392
18393 \family typewriter
18394
18395 \backslash
18396 cfoot{}
18397 \end_layout
18398
18399 \begin_layout Standard
18400 Let's get really fancy: lets put the section number with the word 
18401 \begin_inset Quotes eld
18402 \end_inset
18403
18404 Section
18405 \begin_inset Quotes erd
18406 \end_inset
18407
18408  (e.
18409 \begin_inset space \thinspace{}
18410 \end_inset
18411
18412 g.
18413 \begin_inset space \space{}
18414 \end_inset
18415
18416 Section 3) in the upper left, the page number (e.
18417 \begin_inset space \thinspace{}
18418 \end_inset
18419
18420 g.
18421 \begin_inset space \space{}
18422 \end_inset
18423
18424 Page 4) in the upper right, your name in the lower left, and the date in
18425  the lower right.
18426  The following commands should now appear in the preamble:
18427 \end_layout
18428
18429 \begin_layout Standard
18430
18431 \family typewriter
18432
18433 \backslash
18434 lhead{Section 
18435 \backslash
18436 thesection}
18437 \end_layout
18438
18439 \begin_layout Standard
18440
18441 \family typewriter
18442
18443 \backslash
18444 chead{}
18445 \end_layout
18446
18447 \begin_layout Standard
18448
18449 \family typewriter
18450
18451 \backslash
18452 rhead{Page 
18453 \backslash
18454 thepage}
18455 \end_layout
18456
18457 \begin_layout Standard
18458
18459 \family typewriter
18460
18461 \backslash
18462 lfoot{John Q.
18463  DocWriter}
18464 \end_layout
18465
18466 \begin_layout Standard
18467
18468 \family typewriter
18469
18470 \backslash
18471 cfoot{}
18472 \end_layout
18473
18474 \begin_layout Standard
18475
18476 \family typewriter
18477
18478 \backslash
18479 rfoot{
18480 \backslash
18481 today}
18482 \end_layout
18483
18484 \begin_layout Standard
18485 The commands 
18486 \begin_inset Flex Code
18487 status collapsed
18488
18489 \begin_layout Plain Layout
18490
18491 \backslash
18492 thesection
18493 \end_layout
18494
18495 \end_inset
18496
18497  and 
18498 \begin_inset Flex Code
18499 status collapsed
18500
18501 \begin_layout Plain Layout
18502
18503 \backslash
18504 thepage
18505 \end_layout
18506
18507 \end_inset
18508
18509  access \SpecialChar LaTeX
18510 's section and page counters, and so print out the current section
18511  and page number.
18512  
18513 \begin_inset Flex Code
18514 status collapsed
18515
18516 \begin_layout Plain Layout
18517
18518 \backslash
18519 today
18520 \end_layout
18521
18522 \end_inset
18523
18524  simply prints out today's date.
18525 \end_layout
18526
18527 \begin_layout Standard
18528 The thicknesses of the horizontal rules drawn beneath the header and above
18529  the footer can also be modified.
18530  If you don't want one of the rules, set its thickness to 0.
18531  The header rule has a default thickness of 0.4pt, the footer rule is 0pt.
18532  Use commands
18533 \family typewriter
18534  
18535 \family default
18536 like 
18537 \begin_inset Flex Code
18538 status collapsed
18539
18540 \begin_layout Plain Layout
18541
18542 \backslash
18543 renewcommand{
18544 \backslash
18545 headrulewidth}{0.4pt}
18546 \end_layout
18547
18548 \end_inset
18549
18550  and 
18551 \begin_inset Flex Code
18552 status collapsed
18553
18554 \begin_layout Plain Layout
18555
18556 \backslash
18557 renewcommand{
18558 \backslash
18559 footrulewidth}{0.4pt}
18560 \end_layout
18561
18562 \end_inset
18563
18564  to set the thicknesses.
18565 \end_layout
18566
18567 \begin_layout Standard
18568 You can switch the header/footer settings on and off for individual pages
18569  using commands like 
18570 \begin_inset Flex Code
18571 status collapsed
18572
18573 \begin_layout Plain Layout
18574
18575 \backslash
18576 thispagestyle{empty}
18577 \end_layout
18578
18579 \end_inset
18580
18581
18582 \begin_inset Flex Code
18583 status collapsed
18584
18585 \begin_layout Plain Layout
18586
18587 \backslash
18588 thispagestyle{plain}
18589 \end_layout
18590
18591 \end_inset
18592
18593 , and 
18594 \begin_inset Flex Code
18595 status collapsed
18596
18597 \begin_layout Plain Layout
18598
18599 \backslash
18600 thispagestyle{fancy}
18601 \end_layout
18602
18603 \end_inset
18604
18605 .
18606  Simply insert them in the text on the page you want changed and mark them
18607  as \SpecialChar TeX
18608  code.
18609  In fact, title pages are marked as plain by default, while following pages
18610  are marked fancy when using the global fancy setting.
18611 \end_layout
18612
18613 \begin_layout Standard
18614 As a final example, it is possible to include an image in the header or
18615  footer.
18616  Suppose you want to put a company logo in the upper lefthand corner.
18617  You might try something like
18618 \end_layout
18619
18620 \begin_layout Standard
18621
18622 \family typewriter
18623
18624 \backslash
18625 lhead{
18626 \backslash
18627 resizebox{1in}{!}{
18628 \backslash
18629 includegraphics{logo.eps}}}
18630 \end_layout
18631
18632 \begin_layout Standard
18633 \noindent
18634 (you may need to preface this with 
18635 \begin_inset Flex Code
18636 status collapsed
18637
18638 \begin_layout Plain Layout
18639
18640 \backslash
18641 usepackage{graphics}
18642 \end_layout
18643
18644 \end_inset
18645
18646  if you don't include graphics elsewhere in your document).
18647 \end_layout
18648
18649 \begin_layout Chapter
18650 \SpecialChar LyX
18651  and the World Wide Web
18652 \end_layout
18653
18654 \begin_layout Standard
18655 \SpecialChar LyX
18656  has long supported the export of documents to various web-friendly formats,
18657  such as HTML.
18658  Before version 2.0, however, HTML export was always accomplished by the
18659  use of external converters.
18660 \begin_inset Foot
18661 status collapsed
18662
18663 \begin_layout Plain Layout
18664 For details on the use of external converters with \SpecialChar LyX
18665 , see the 
18666 \emph on
18667 Converters
18668 \emph default
18669  section of the Customization manual.
18670 \end_layout
18671
18672 \end_inset
18673
18674  These fall into two large groups: there are converters that use \SpecialChar LaTeX
18675  as an
18676  intermediate format, such as 
18677 \begin_inset Flex Code
18678 status collapsed
18679
18680 \begin_layout Plain Layout
18681 htlatex
18682 \end_layout
18683
18684 \end_inset
18685
18686
18687 \begin_inset Flex Code
18688 status collapsed
18689
18690 \begin_layout Plain Layout
18691 html2latex
18692 \end_layout
18693
18694 \end_inset
18695
18696 , and 
18697 \begin_inset Flex Code
18698 status collapsed
18699
18700 \begin_layout Plain Layout
18701 plastex
18702 \end_layout
18703
18704 \end_inset
18705
18706 , relying upon \SpecialChar LyX
18707  to produce the \SpecialChar LaTeX
18708 ; and there is a converter that works directly
18709  on \SpecialChar LyX
18710  files, 
18711 \begin_inset Flex Code
18712 status collapsed
18713
18714 \begin_layout Plain Layout
18715 e\SpecialChar LyX
18716 er
18717 \end_layout
18718
18719 \end_inset
18720
18721 .
18722  All of these have different advantages and disadvantages.
18723  
18724 \end_layout
18725
18726 \begin_layout Standard
18727 The \SpecialChar LaTeX
18728 -based converters have the advantage that, in principle, they know everythin
18729 g about the exported document that \SpecialChar LaTeX
18730  does.
18731  Such converters do not care, for example, if a certain block of code was
18732  produced by \SpecialChar LyX
18733  or was Evil Red Text.
18734  These converters know about 
18735 \begin_inset Flex Code
18736 status collapsed
18737
18738 \begin_layout Plain Layout
18739 aux
18740 \end_layout
18741
18742 \end_inset
18743
18744  files, counters, and references, and can often make use of the 
18745 \begin_inset Flex Code
18746 status collapsed
18747
18748 \begin_layout Plain Layout
18749 bbl
18750 \end_layout
18751
18752 \end_inset
18753
18754  files generated by Bib\SpecialChar TeX
18755 .
18756  On the other hand, \SpecialChar LaTeX
18757  is a very hard language to parse—it is sometimes said
18758  that only \SpecialChar TeX
18759  itself understands \SpecialChar TeX
18760 —and \SpecialChar LaTeX
18761 -based converters will often choke on
18762  what seem to be quite simple constructs; complex ones can throw them completely
18763 , and as of this writing, for example, the 
18764 \emph on
18765 Embedded Objects
18766 \emph default
18767  manual will not export with 
18768 \begin_inset Flex Code
18769 status collapsed
18770
18771 \begin_layout Plain Layout
18772 htlatex
18773 \end_layout
18774
18775 \end_inset
18776
18777 , though the others will.
18778  The other issue concerns how math is handled.
18779  These converters typically convert the formulae into little pictures that
18780  are then linked from the HTML document.
18781  Since these are actually generated by \SpecialChar LaTeX
18782 , they are accurate.
18783  But they do not scale well, and just getting them to look as if they are
18784  actually meant to be in your document—so that the font sizes seem to be
18785  roughly the same—can be a challenge.
18786 \end_layout
18787
18788 \begin_layout Standard
18789 Alex Fernandez's 
18790 \begin_inset Flex Code
18791 status collapsed
18792
18793 \begin_layout Plain Layout
18794 e\SpecialChar LyX
18795 er
18796 \end_layout
18797
18798 \end_inset
18799
18800  (
18801 \begin_inset CommandInset href
18802 LatexCommand href
18803 name "http://pinchito.es/elyxer/"
18804 target "http://pinchito.es/elyxer/"
18805 literal "false"
18806
18807 \end_inset
18808
18809 ) solves some of these problems.
18810  In particular, the formulae it produces scale perfectly, since it renders
18811  math using a combination of HTML and CSS rather than converting the formulae
18812  to images.
18813  But even moderately complex formula are rendered less well than with 
18814 \begin_inset Flex Code
18815 status collapsed
18816
18817 \begin_layout Plain Layout
18818 htlatex
18819 \end_layout
18820
18821 \end_inset
18822
18823 ; this reflects the limitations of HTML.
18824 \begin_inset Foot
18825 status collapsed
18826
18827 \begin_layout Plain Layout
18828 That said, 
18829 \begin_inset Flex Code
18830 status collapsed
18831
18832 \begin_layout Plain Layout
18833 e\SpecialChar LyX
18834 er
18835 \end_layout
18836
18837 \end_inset
18838
18839  can also use jsMath and MathJax for equations, but this setting is only
18840  available globally and requires one to have access to a server that runs
18841  the backend.
18842 \end_layout
18843
18844 \end_inset
18845
18846  More importantly (as of version 1.1.1, at least), 
18847 \begin_inset Flex Code
18848 status collapsed
18849
18850 \begin_layout Plain Layout
18851 e\SpecialChar LyX
18852 er
18853 \end_layout
18854
18855 \end_inset
18856
18857  has limited support for math macros and no support for user-defined paragraph
18858  or character styles.
18859  These limitations make 
18860 \begin_inset Flex Code
18861 status collapsed
18862
18863 \begin_layout Plain Layout
18864 e\SpecialChar LyX
18865 er
18866 \end_layout
18867
18868 \end_inset
18869
18870  unsuitable for many of the documents \SpecialChar LyX
18871  users produce.
18872  In principle, of course, these problems could be solved, but the \SpecialChar LyX
18873  developers
18874  have decided to follow a different path and have made \SpecialChar LyX
18875  itself capable of
18876  writing XHTML, just as it is capable of writing \SpecialChar LaTeX
18877 , DocBook, and plaintext.
18878 \end_layout
18879
18880 \begin_layout Standard
18881 As of this writing, XHTML output remains under development and should probably
18882  be regarded as 
18883 \begin_inset Quotes eld
18884 \end_inset
18885
18886 experimental
18887 \begin_inset Quotes erd
18888 \end_inset
18889
18890 .
18891 \begin_inset Foot
18892 status collapsed
18893
18894 \begin_layout Plain Layout
18895 The file 
18896 \begin_inset Flex Code
18897 status collapsed
18898
18899 \begin_layout Plain Layout
18900 development/HTML/HTML.notes
18901 \end_layout
18902
18903 \end_inset
18904
18905 , which can be found in the \SpecialChar LyX
18906  source tree or 
18907 \begin_inset CommandInset href
18908 LatexCommand href
18909 name "accessed online"
18910 target "https://www.lyx.org/trac/browser/lyxgit/development/HTML/HTML.notes?rev=master"
18911 literal "false"
18912
18913 \end_inset
18914
18915 , usually contains up-to-date information about the state of XHTML output.
18916  See also the list of XHTML bugs on 
18917 \begin_inset CommandInset href
18918 LatexCommand href
18919 name "the bug tracker"
18920 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"
18921 literal "false"
18922
18923 \end_inset
18924
18925 .
18926 \end_layout
18927
18928 \end_inset
18929
18930  Still, the developers have chosen this approach because it has several
18931  potential advantages over the other two.
18932 \end_layout
18933
18934 \begin_layout Standard
18935 These advantages are primarily due to the fact that the XHTML output routines,
18936  since they are part of \SpecialChar LyX
18937 , know everything \SpecialChar LyX
18938  knows about the document being
18939  exported.
18940 \begin_inset Foot
18941 status collapsed
18942
18943 \begin_layout Plain Layout
18944 Another advantage is that, since these routines are internal to \SpecialChar LyX
18945 , they are
18946  immune to changes in \SpecialChar LyX
18947 's file format, or to changes in the semantics of
18948  existing insets.
18949 \end_layout
18950
18951 \end_inset
18952
18953  So they know about the table of contents (as displayed in the outline),
18954  about the counters associated with different paragraph styles, and about
18955  user-defined styles.
18956  The XHTML output routines know what \SpecialChar LyX
18957  knows about internationalization,
18958  too, so they will output 
18959 \begin_inset Quotes eld
18960 \end_inset
18961
18962 Chapter 1
18963 \begin_inset Quotes erd
18964 \end_inset
18965
18966  or 
18967 \begin_inset Quotes eld
18968 \end_inset
18969
18970
18971 \lang ngerman
18972 Kapitel
18973 \lang english
18974  1
18975 \begin_inset Quotes erd
18976 \end_inset
18977
18978 , depending upon the language in effect at the time.
18979  
18980 \end_layout
18981
18982 \begin_layout Standard
18983 Quite generally, the output routines know what \SpecialChar LyX
18984  knows about document layout,
18985  that is, about how the document is to be rendered on screen.
18986  We use this information when we output the document as XHTML.
18987  In particular, \SpecialChar LyX
18988  
18989 \emph on
18990 automatically
18991 \emph default
18992  generates CSS style information corresponding to the layout information
18993  it uses to render the document on screen: if section headings are supposed
18994  to be sans-serif and bold as seen in \SpecialChar LyX
18995 , then (by default) they will be sans-seri
18996 f and bold when viewed in a web browser, too.
18997  And this is true not just for pre-defined styles, like Section, but for
18998  any style, including user-defined styles.
18999  Indeed, the XHTML output routines make no distinction between user-defined
19000  paragraph and 
19001 \change_deleted 244031559 1603876931
19002 character
19003 \change_inserted 244031559 1603876940
19004 text
19005 \change_unchanged
19006  styles and \SpecialChar LyX
19007 's own pre-defined styles: in each case, everything \SpecialChar LyX
19008  knows about
19009  the styles is contained in the layout files.
19010  And much the same is true as regards pre-defined textual insets, such as
19011  footnotes, and various custom insets.
19012  
19013 \end_layout
19014
19015 \begin_layout Standard
19016 The result is that XHTML output can be customized and extended in exactly
19017  the same way \SpecialChar LaTeX
19018  output can be customized and extended: through layout files
19019  and modules.
19020  See chapter five of the 
19021 \emph on
19022 Customization 
19023 \emph default
19024 manual for the details.
19025 \end_layout
19026
19027 \begin_layout Standard
19028 The remainder of this chapter contains more detailed information on XHTML
19029  output, its limitations, and ways to work around those limitations.
19030 \end_layout
19031
19032 \begin_layout Section
19033 Math Output in XHTML
19034 \end_layout
19035
19036 \begin_layout Standard
19037 \SpecialChar LyX
19038  offers four choices for how math is rendered.
19039  These have various advantages and disadvantages:
19040 \end_layout
19041
19042 \begin_layout Itemize
19043 MathML
19044 \begin_inset Newline newline
19045 \end_inset
19046
19047 MathML is a dialect of XML designed specifically for mathematics on the
19048  web, and it typically renders very well in browsers that support it.
19049  The disadvantage is that not all browsers support MathML, and support is
19050  not complete even in the Gecko-based browsers, such as Firefox.
19051 \begin_inset Newline newline
19052 \end_inset
19053
19054 If \SpecialChar LyX
19055  is unable to render a formula as MathML—for example, if the formula
19056  uses the 
19057 \begin_inset Flex Code
19058 status collapsed
19059
19060 \begin_layout Plain Layout
19061 xymatrix
19062 \end_layout
19063
19064 \end_inset
19065
19066  package or ERT—then it will instead output the formula as an image.
19067  
19068 \end_layout
19069
19070 \begin_layout Itemize
19071 HTML
19072 \begin_inset Newline newline
19073 \end_inset
19074
19075 As mentioned above, 
19076 \begin_inset Flex Code
19077 status collapsed
19078
19079 \begin_layout Plain Layout
19080 elyxer
19081 \end_layout
19082
19083 \end_inset
19084
19085  outputs math as HTML, styled by CSS.
19086 \begin_inset Foot
19087 status collapsed
19088
19089 \begin_layout Plain Layout
19090 \SpecialChar LyX
19091  has borrowed some of the CSS for its HTML output from 
19092 \begin_inset Flex Code
19093 status collapsed
19094
19095 \begin_layout Plain Layout
19096 elyxer
19097 \end_layout
19098
19099 \end_inset
19100
19101 .
19102 \end_layout
19103
19104 \end_inset
19105
19106  For simple formulae, this can work quite well, though with more complicated
19107  formulae it tends to break down.
19108  Still, this method has the advantage that it is very widely supported and
19109  so it may be appropriate for documents that contain only a little, fairly
19110  simple math.
19111 \begin_inset Newline newline
19112 \end_inset
19113
19114 If Lyx is unable to render a formula as HTML—for example, if the formula
19115  uses the 
19116 \begin_inset Flex Code
19117 status collapsed
19118
19119 \begin_layout Plain Layout
19120 xymatrix
19121 \end_layout
19122
19123 \end_inset
19124
19125  package or ERT—then it will instead output the formula as an image.
19126  
19127 \end_layout
19128
19129 \begin_layout Itemize
19130 Images
19131 \begin_inset Newline newline
19132 \end_inset
19133
19134 Like 
19135 \begin_inset Flex Code
19136 status collapsed
19137
19138 \begin_layout Plain Layout
19139 htlatex
19140 \end_layout
19141
19142 \end_inset
19143
19144 , \SpecialChar LyX
19145  will output formulae as images, the very same images, in fact, that are
19146  used for instant preview.
19147 \begin_inset Foot
19148 status collapsed
19149
19150 \begin_layout Plain Layout
19151 Instant preview does 
19152 \emph on
19153 not 
19154 \emph default
19155 have to be on for images to be output, however.
19156 \end_layout
19157
19158 \end_inset
19159
19160  The advantage to this method is that the images are simply generated by
19161  \SpecialChar LaTeX
19162 , so they are very accurate.
19163  The disadvantage, as mentioned earlier, is that these are bitmapped images,
19164  so they do not scale terribly well, and one cannot copy them, etc.
19165 \begin_inset Newline newline
19166 \end_inset
19167
19168 The size of the images can be controlled by setting the 
19169 \begin_inset Quotes eld
19170 \end_inset
19171
19172 Math Images Scaling
19173 \begin_inset Quotes erd
19174 \end_inset
19175
19176  parameter under 
19177 \begin_inset Flex Noun
19178 status collapsed
19179
19180 \begin_layout Plain Layout
19181 Document\SpecialChar menuseparator
19182 Settings\SpecialChar menuseparator
19183 Formats
19184 \end_layout
19185
19186 \end_inset
19187
19188 .
19189 \begin_inset Foot
19190 status collapsed
19191
19192 \begin_layout Plain Layout
19193 For those who want to know, this controls the resolution of the image in
19194  dots per inch and is based upon a default of 75 dpi.
19195 \end_layout
19196
19197 \end_inset
19198
19199
19200 \begin_inset Newline newline
19201 \end_inset
19202
19203 If \SpecialChar LyX
19204  for some reason fails to create an image for a formula (e.g., if a required
19205  \SpecialChar LaTeX
19206  package is not installed), then it will fall back to outputing the raw
19207  \SpecialChar LaTeX
19208 .
19209 \end_layout
19210
19211 \begin_layout Itemize
19212 \SpecialChar LaTeX
19213
19214 \begin_inset Newline newline
19215 \end_inset
19216
19217 Finally, \SpecialChar LyX
19218  will happily output math as \SpecialChar LaTeX
19219 .
19220  As well as being the output of last resort, this method can be used with
19221  such tools as 
19222 \begin_inset CommandInset href
19223 LatexCommand href
19224 name "jsMath"
19225 target "http://www.math.union.edu/~dpvc/jsMath/"
19226 literal "false"
19227
19228 \end_inset
19229
19230 , which uses JavaScript to render \SpecialChar LaTeX
19231  embedded in HTML documents.
19232  \SpecialChar LyX
19233  wraps the \SpecialChar LaTeX
19234  in either a 
19235 \begin_inset Flex Code
19236 status collapsed
19237
19238 \begin_layout Plain Layout
19239 span
19240 \end_layout
19241
19242 \end_inset
19243
19244  (for inline formulas) or 
19245 \begin_inset Flex Code
19246 status collapsed
19247
19248 \begin_layout Plain Layout
19249 div
19250 \end_layout
19251
19252 \end_inset
19253
19254  (for displayed formulas) with 
19255 \begin_inset Flex Code
19256 status collapsed
19257
19258 \begin_layout Plain Layout
19259 class='math'
19260 \end_layout
19261
19262 \end_inset
19263
19264 , as is required for jsMath.
19265 \end_layout
19266
19267 \begin_layout Standard
19268 One of these output methods must be selected under 
19269 \begin_inset Flex Noun
19270 status collapsed
19271
19272 \begin_layout Plain Layout
19273 Document\SpecialChar menuseparator
19274 Settings\SpecialChar menuseparator
19275 Formats
19276 \end_layout
19277
19278 \end_inset
19279
19280 .
19281  By default, \SpecialChar LyX
19282  outputs MathML.
19283  This is a document-wide setting, therefore.
19284 \end_layout
19285
19286 \begin_layout Standard
19287 Eventually, \SpecialChar LyX
19288  will offer the user the option to select an alternate output
19289  method for a particular inset, say, one that isn't being rendered very
19290  well by MathML.
19291 \begin_inset Foot
19292 status collapsed
19293
19294 \begin_layout Plain Layout
19295 That said, since \SpecialChar LyX
19296  falls back to images if the inset contains ERT, then one
19297  can force output as an image by putting some harmless ERT into the math,
19298  for example: 
19299 \begin_inset Formula $a=b\relax$
19300 \end_inset
19301
19302 .
19303 \end_layout
19304
19305 \end_inset
19306
19307
19308 \end_layout
19309
19310 \begin_layout Section
19311 Bibliography and Citations
19312 \end_layout
19313
19314 \begin_layout Standard
19315 XHTML output fully supports bibliographies and citations.
19316  
19317 \end_layout
19318
19319 \begin_layout Standard
19320 Citation labels are generated by the same machinery that generates \SpecialChar LyX
19321 's on-screen
19322  labels, so the labels will look in the output much as they do in \SpecialChar LyX
19323 , though
19324  better.
19325  If you are using numerical citations, then \SpecialChar LyX
19326  will output numerical labels,
19327  such as [1] or [17], rather than simply showing the citation key in square
19328  brackets, as it does on-screen.
19329  If you are using author-year citations, then \SpecialChar LyX
19330  will add lowercase letters
19331  to the years, just as Bib\SpecialChar TeX
19332  does, if it finds more than one citation for
19333  a given author-year combination.
19334  The labels will be printed with the bibliography entries.
19335  Note that there is, at present, no way to customize the appearance of the
19336  labels, for example, to choose between square brackets and parentheses.
19337 \end_layout
19338
19339 \begin_layout Standard
19340 Bibliography output is handled by the same machinery that handles the presentati
19341 on of reference information in the citation dialog, so you will see in the
19342  XHTML output pretty much what you would see if you were to look at a given
19343  entry in the citation dialog.
19344  The formatting can be customized in your layout file or, preferably, in
19345  a module.
19346  See the 
19347 \emph on
19348 Customization
19349 \emph default
19350  manual for the details.
19351 \end_layout
19352
19353 \begin_layout Standard
19354 The main defect at present is that cross-referenced information is printed
19355  with every entry with which it is associated.
19356  So you can see things like this:
19357 \end_layout
19358
19359 \begin_layout Quote
19360 Jason Stanley, 
19361 \begin_inset Quotes eld
19362 \end_inset
19363
19364 Context and Logical Form
19365 \begin_inset Quotes erd
19366 \end_inset
19367
19368 , in 
19369 \emph on
19370 Language in Context: Selected Essays
19371 \emph default
19372  (Oxford: Oxford University Press, 2007), pp.
19373  30–68.
19374 \end_layout
19375
19376 \begin_layout Quote
19377 Jason Stanley, 
19378 \begin_inset Quotes eld
19379 \end_inset
19380
19381 Semantics in Context
19382 \begin_inset Quotes erd
19383 \end_inset
19384
19385 , in 
19386 \emph on
19387 Language in Context: Selected Essays
19388 \emph default
19389  (Oxford: Oxford University Press, 2007), pp.
19390  201–30.
19391 \end_layout
19392
19393 \begin_layout Standard
19394 This should be fixed before long.
19395 \end_layout
19396
19397 \begin_layout Standard
19398 There is no support at present for sectioned bibliographies.
19399  If you have multiple bibliographies, then \SpecialChar LyX
19400  will print the same bibliography
19401  over and over.
19402 \end_layout
19403
19404 \begin_layout Section
19405 Indexes
19406 \end_layout
19407
19408 \begin_layout Standard
19409 \SpecialChar LyX
19410  will happily export indexes as XHTML, but with certain limitations at the
19411  moment.
19412 \end_layout
19413
19414 \begin_layout Standard
19415 Index export will be most reliable when you do not attempt to use the fancy
19416  constructs that are described in the section on indexes in the 
19417 \emph on
19418 User's Guide
19419 \emph default
19420 .
19421 \begin_inset Foot
19422 status collapsed
19423
19424 \begin_layout Plain Layout
19425 The main issue here is that \SpecialChar LyX
19426  itself does not really handle these.
19427  It just lets you enter what you would have to enter in raw \SpecialChar LaTeX
19428 .
19429 \end_layout
19430
19431 \end_inset
19432
19433  We'll describe how they are handled using the subsection headings from
19434  that section.
19435 \end_layout
19436
19437 \begin_layout Itemize
19438 Grouping Index Entries (aka, sub-entries): \SpecialChar LyX
19439  makes an effort to support these,
19440  but the entries must be separated by 
19441 \begin_inset Quotes eld
19442 \end_inset
19443
19444  ! 
19445 \begin_inset Quotes erd
19446 \end_inset
19447
19448 , that is, there must be spaces around the exclamation point.
19449  This is because it is otherwise too difficult to check for escaped exclamation
19450  points, ones in math, and so forth.
19451 \end_layout
19452
19453 \begin_layout Itemize
19454 Page Ranges: There is no support at all for page ranges, since these make
19455  no sense with XHMTL.
19456  Instead, you will just get two index entries, one at either end.
19457 \end_layout
19458
19459 \begin_layout Itemize
19460 Cross-referencing: There is no support for cross-referencing.
19461  If \SpecialChar LyX
19462  finds an entry containing the 
19463 \begin_inset Quotes eld
19464 \end_inset
19465
19466 |see\SpecialChar ldots
19467
19468 \begin_inset Quotes erd
19469 \end_inset
19470
19471  construct, it is just dropped, and the rest is treated as an ordinary index
19472  entry.
19473 \end_layout
19474
19475 \begin_layout Itemize
19476 Index Entry Order: \SpecialChar LyX
19477  does support attempts to fix the sorting order.
19478  It will take what is before the first `@' it finds and use that for sorting,
19479  taking what follows the first `@' to be the actual entry.
19480  At present, \SpecialChar LyX
19481  does not check for escaped `@', so do not try to index email
19482  addresses.
19483 \end_layout
19484
19485 \begin_layout Itemize
19486 Index Entry Layout: You can format entries by using the text style dialog,
19487  or by using any other method available within \SpecialChar LyX
19488  itself.
19489  There is no support for constructs like: 
19490 \begin_inset Quotes eld
19491 \end_inset
19492
19493 entry|textbf
19494 \begin_inset Quotes erd
19495 \end_inset
19496
19497 .
19498  Indeed, if \SpecialChar LyX
19499  finds a pipe symbol, `|', in an entry, it will delete it and
19500  everything that follows it.
19501 \end_layout
19502
19503 \begin_layout Itemize
19504 Multiple Indexes: There is no support for multiple indexes.
19505  Rather, all index entries will be printed as one large index.
19506  To avoid our printing several versions of the index, we print only the
19507  main index, so make sure you have one.
19508 \end_layout
19509
19510 \begin_layout Section
19511 Nomenclature and Glossary
19512 \end_layout
19513
19514 \begin_layout Standard
19515 There is at present no support for glossaries.
19516  Adding it would be fairly trivial, and welcome.
19517 \end_layout
19518
19519 \begin_layout Chapter
19520
19521 \change_inserted 1075283030 1616534180
19522 DocBook Output
19523 \end_layout
19524
19525 \begin_layout Standard
19526
19527 \change_inserted 1075283030 1616534386
19528 Apart from HTML, \SpecialChar LyX
19529  can generate documents in the DocBook XML vocabulary.
19530  With versions 2.3 and before, only select templates could be used to generate
19531  DocBook documents (only version 4).
19532  Starting with \SpecialChar LyX
19533  2.4, most \SpecialChar LyX
19534  layouts can generate valid DocBook documents (only
19535  version 5).
19536  This feature is built into \SpecialChar LyX
19537  and does not require the use of external tools.
19538 \end_layout
19539
19540 \begin_layout Standard
19541
19542 \change_inserted 1075283030 1616534437
19543 The result is that the DocBook output can be customized and extended in
19544  exactly the same way \SpecialChar LaTeX
19545  output can be customized and extended: through layout
19546  files and modules.
19547  See chapter five of the 
19548 \emph on
19549 Customization 
19550 \emph default
19551 manual for the details.
19552 \end_layout
19553
19554 \begin_layout Standard
19555
19556 \change_inserted 1075283030 1616534475
19557 Most \SpecialChar LyX
19558  features are supported with DocBook, like math output.
19559 \end_layout
19560
19561 \begin_layout Itemize
19562
19563 \change_inserted 1075283030 1616534741
19564 Math output is performed mostly in MathML (the major exception being constructio
19565 ns not supported by \SpecialChar LyX
19566 , i.e.
19567  ERTs).
19568  All formulae are also available in raw \SpecialChar TeX
19569  in the DocBook output for further
19570  processing.
19571 \end_layout
19572
19573 \begin_layout Itemize
19574
19575 \change_inserted 1075283030 1616534852
19576 Bibliographies and citations are implemented, including with an external
19577  BibTeX file.
19578  Bibliography entries are not prerendered when the detailed information
19579  are available, but rather output with the standard DocBook constructs.
19580  The external DocBook processor is expected to handle the rendering of entries.
19581 \end_layout
19582
19583 \begin_layout Itemize
19584
19585 \change_inserted 1075283030 1616534863
19586 Indexes are supported, including multiple indices.
19587  Grouping (with 
19588 \family typewriter
19589 !
19590 \family default
19591 ), page ranges, and cross-references (
19592 \family typewriter
19593 |see
19594 \family default
19595 ) are supported, with the exception of the same symbols escaped.
19596  Entry order (
19597 \family typewriter
19598 @
19599 \family default
19600 ) and layout (
19601 \family typewriter
19602 |mathbf
19603 \family default
19604 ) are not supported.
19605  There is no support for escaping of index entries.
19606 \end_layout
19607
19608 \begin_layout Itemize
19609
19610 \change_inserted 1075283030 1616534884
19611 Glossaries are implemented.
19612 \end_layout
19613
19614 \begin_layout Standard
19615
19616 \change_inserted 1075283030 1616534894
19617 Two major parameters can be set at the document level.
19618 \end_layout
19619
19620 \begin_layout Itemize
19621
19622 \change_inserted 1075283030 1616534948
19623 Format for tables: \SpecialChar LyX
19624  can generate tables either as HTML (default value) or
19625  CALS, depending on the user's requirements.
19626  Most DocBook processors accept both formats.
19627 \end_layout
19628
19629 \begin_layout Itemize
19630
19631 \change_inserted 1075283030 1616535006
19632 MathML prefix: in DocBook, MathML is included within its own name space,
19633  unlike HTML.
19634  The implication is that there must be an indication of the tags belonging
19635  to the MathML standard.
19636  Three choices are offered: 
19637 \end_layout
19638
19639 \begin_deeper
19640 \begin_layout Itemize
19641
19642 \change_inserted 1075283030 1616535044
19643 Inline: the MathML name space is defined for each formula (using the 
19644 \family typewriter
19645 xmlns
19646 \family default
19647  attribute on each formula)
19648 \end_layout
19649
19650 \begin_layout Itemize
19651
19652 \change_inserted 1075283030 1616535090
19653 With the 
19654 \family typewriter
19655 m
19656 \family default
19657  prefix (default): the MathML name space is defined at the document level
19658  (using the 
19659 \family typewriter
19660 xmlns:m
19661 \family default
19662  attribute on the root element).
19663  Each MathML is prefixed with 
19664 \family typewriter
19665 m
19666 \family default
19667 : for instance, 
19668 \family typewriter
19669 m:math
19670 \end_layout
19671
19672 \begin_layout Itemize
19673
19674 \change_inserted 1075283030 1616620405
19675 With the 
19676 \family typewriter
19677 mml
19678 \family default
19679  prefix: similar to the 
19680 \family typewriter
19681 m
19682 \family default
19683  option, but with 
19684 \family typewriter
19685 mml
19686 \end_layout
19687
19688 \begin_layout Standard
19689
19690 \change_inserted 1075283030 1616620470
19691 This option is especially useful if you want \SpecialChar LyX
19692  to match your personal style
19693  or to work with buggy software that only accepts one prefix for MathML.
19694 \change_unchanged
19695
19696 \end_layout
19697
19698 \end_deeper
19699 \begin_layout Chapter
19700 The \SpecialChar LyX
19701  Server
19702 \end_layout
19703
19704 \begin_layout Section
19705 Introduction
19706 \end_layout
19707
19708 \begin_layout Standard
19709 The `\SpecialChar LyX
19710  server' allows other programs to talk to \SpecialChar LyX
19711 , invoke \SpecialChar LyX
19712  commands, and retrieve
19713  information about the \SpecialChar LyX
19714  internal state.
19715  This is only intended for advanced users, but they should find it useful.
19716  It is by writing to the \SpecialChar LyX
19717  server, for example, that bibliography managers,
19718  such as JabRef, are able to 
19719 \begin_inset Quotes eld
19720 \end_inset
19721
19722 push
19723 \begin_inset Quotes erd
19724 \end_inset
19725
19726  citations to \SpecialChar LyX
19727 .
19728 \end_layout
19729
19730 \begin_layout Section
19731 Starting the \SpecialChar LyX
19732  Server
19733 \begin_inset CommandInset label
19734 LatexCommand label
19735 name "sec:Starting-the-Server"
19736
19737 \end_inset
19738
19739
19740 \end_layout
19741
19742 \begin_layout Standard
19743 The \SpecialChar LyX
19744  server works through the use of a pair of named pipes.
19745  These are usually located in 
19746 \begin_inset Flex Code
19747 status collapsed
19748
19749 \begin_layout Plain Layout
19750 UserDir
19751 \end_layout
19752
19753 \end_inset
19754
19755 , (except on Windows, where 
19756 \emph on
19757 local
19758 \emph default
19759  named pipes are special objects located in 
19760 \begin_inset Flex Code
19761 status collapsed
19762
19763 \begin_layout Plain Layout
19764
19765 \backslash
19766
19767 \backslash
19768 .
19769 \backslash
19770 pipe
19771 \end_layout
19772
19773 \end_inset
19774
19775 ) and have the names 
19776 \begin_inset Quotes eld
19777 \end_inset
19778
19779
19780 \begin_inset Flex Code
19781 status collapsed
19782
19783 \begin_layout Plain Layout
19784 lyxpipe.in
19785 \end_layout
19786
19787 \end_inset
19788
19789
19790 \begin_inset Quotes erd
19791 \end_inset
19792
19793  and 
19794 \begin_inset Quotes eld
19795 \end_inset
19796
19797
19798 \begin_inset Flex Code
19799 status collapsed
19800
19801 \begin_layout Plain Layout
19802 lyxpipe.out
19803 \end_layout
19804
19805 \end_inset
19806
19807
19808 \begin_inset Quotes erd
19809 \end_inset
19810
19811 .
19812  External programs write into 
19813 \begin_inset Flex Code
19814 status collapsed
19815
19816 \begin_layout Plain Layout
19817 lyxpipe.in
19818 \end_layout
19819
19820 \end_inset
19821
19822  and read back data from 
19823 \begin_inset Flex Code
19824 status collapsed
19825
19826 \begin_layout Plain Layout
19827 lyxpipe.out
19828 \end_layout
19829
19830 \end_inset
19831
19832 .
19833  The stem of the pipe names can be defined in the 
19834 \begin_inset Flex Noun
19835 status collapsed
19836
19837 \begin_layout Plain Layout
19838 Tools\SpecialChar menuseparator
19839 Preferences
19840 \end_layout
19841
19842 \end_inset
19843
19844  dialog, for example 
19845 \begin_inset Flex Code
19846 status collapsed
19847
19848 \begin_layout Plain Layout
19849 "/home/myhome/lyxpipe"
19850 \end_layout
19851
19852 \end_inset
19853
19854 , or 
19855 \begin_inset Flex Code
19856 status collapsed
19857
19858 \begin_layout Plain Layout
19859 "
19860 \backslash
19861
19862 \backslash
19863 .
19864 \backslash
19865 pipe
19866 \backslash
19867 lyxpipe"
19868 \end_layout
19869
19870 \end_inset
19871
19872  on Windows (where any working path instead of lyxpipe can be used, for
19873  example 
19874 \begin_inset Flex Code
19875 status collapsed
19876
19877 \begin_layout Plain Layout
19878 "
19879 \backslash
19880
19881 \backslash
19882 .
19883 \backslash
19884 pipe
19885 \backslash
19886 my
19887 \backslash
19888 lyx
19889 \backslash
19890 pipe"
19891 \end_layout
19892
19893 \end_inset
19894
19895  would also work).
19896  You 
19897 \emph on
19898 must
19899 \emph default
19900  configure this manually in order for the server to start.
19901 \end_layout
19902
19903 \begin_layout Standard
19904 \SpecialChar LyX
19905  will add the '
19906 \begin_inset Flex Code
19907 status collapsed
19908
19909 \begin_layout Plain Layout
19910 .in
19911 \end_layout
19912
19913 \end_inset
19914
19915 ' and '
19916 \begin_inset Flex Code
19917 status collapsed
19918
19919 \begin_layout Plain Layout
19920 .out
19921 \end_layout
19922
19923 \end_inset
19924
19925 ' to create the pipes.
19926  If one of the pipes already exists, \SpecialChar LyX
19927  will assume that another \SpecialChar LyX
19928  process
19929  is already running and will not start the server.
19930  On POSIX (Unix like) systems, if for some other reason, an unused 
19931 \begin_inset Quotes eld
19932 \end_inset
19933
19934 stale
19935 \begin_inset Quotes erd
19936 \end_inset
19937
19938  pipe is left in existence when \SpecialChar LyX
19939  closes, then \SpecialChar LyX
19940  will try to delete it.
19941  If this fails for some reason, you will need to delete the pipes manually
19942  and then restart \SpecialChar LyX
19943 .
19944  On Windows, pipes are deleted by the OS on program termination or crash,
19945  so 
19946 \begin_inset Quotes eld
19947 \end_inset
19948
19949 stale
19950 \begin_inset Quotes erd
19951 \end_inset
19952
19953  pipes should not be possible.
19954 \end_layout
19955
19956 \begin_layout Standard
19957 To have several \SpecialChar LyX
19958  processes with servers at the same time, you have to use
19959  different configurations, perhaps by using separate user directories, each
19960  with its own 
19961 \begin_inset Flex Code
19962 status collapsed
19963
19964 \begin_layout Plain Layout
19965 preferences
19966 \end_layout
19967
19968 \end_inset
19969
19970  file, for each process.
19971 \end_layout
19972
19973 \begin_layout Standard
19974 If you are developing a client program, you might find it useful to enable
19975  debugging information from the \SpecialChar LyX
19976  server.
19977  Do this by starting \SpecialChar LyX
19978  as 
19979 \begin_inset Flex Code
19980 status collapsed
19981
19982 \begin_layout Plain Layout
19983 lyx -dbg lyxserver
19984 \end_layout
19985
19986 \end_inset
19987
19988 .
19989 \end_layout
19990
19991 \begin_layout Standard
19992 You can find a complete example client written in C++ in the source distribution
19993  as 
19994 \begin_inset Flex Code
19995 status collapsed
19996
19997 \begin_layout Plain Layout
19998 development/lyxserver/server_monitor.cpp
19999 \end_layout
20000
20001 \end_inset
20002
20003 .
20004 \end_layout
20005
20006 \begin_layout Standard
20007 Another useful tool is the command-line based client found in 
20008 \begin_inset Flex Code
20009 status collapsed
20010
20011 \begin_layout Plain Layout
20012 src/client/lyxclient
20013 \end_layout
20014
20015 \end_inset
20016
20017 .
20018 \end_layout
20019
20020 \begin_layout Section
20021 Normal communication
20022 \end_layout
20023
20024 \begin_layout Standard
20025 To issue a \SpecialChar LyX
20026  call, the client writes a line of ASCII text into the input
20027  pipe.
20028  This line has the following format:
20029 \end_layout
20030
20031 \begin_layout Quote
20032 LYXCMD:
20033 \emph on
20034 clientname
20035 \emph default
20036 :
20037 \emph on
20038 function
20039 \emph default
20040 :
20041 \emph on
20042 argument
20043 \end_layout
20044
20045 \begin_layout Description
20046 clientname is a name that the client can choose arbitrarily.
20047  Its only use is that \SpecialChar LyX
20048  will echo it if it sends an answer—so a client can
20049  dispatch results from different requesters.
20050 \end_layout
20051
20052 \begin_layout Description
20053 function is the function you want \SpecialChar LyX
20054  to perform.
20055  It is the same as the commands you'd use in the minibuffer.
20056 \end_layout
20057
20058 \begin_layout Description
20059 argument is an optional argument which is meaningful only to some functions
20060  (for instance, the 
20061 \begin_inset Quotes eld
20062 \end_inset
20063
20064 self-insert
20065 \begin_inset Quotes erd
20066 \end_inset
20067
20068  LFUN will insert the argument as text at the cursor position).
20069 \end_layout
20070
20071 \begin_layout Standard
20072 The answer from \SpecialChar LyX
20073  will arrive in the output pipe and be of the form
20074 \end_layout
20075
20076 \begin_layout Quote
20077 INFO:
20078 \emph on
20079 clientname
20080 \emph default
20081 :
20082 \emph on
20083 function
20084 \emph default
20085 :
20086 \emph on
20087 data
20088 \end_layout
20089
20090 \begin_layout Standard
20091 where 
20092 \emph on
20093 clientname
20094 \emph default
20095  and 
20096 \emph on
20097 function
20098 \emph default
20099  are just echoed from the command request, while 
20100 \emph on
20101 data
20102 \emph default
20103  is more or less useful information filled according to how the command
20104  execution worked out.
20105  Some commands, such as 
20106 \begin_inset Quotes eld
20107 \end_inset
20108
20109 font-state
20110 \begin_inset Quotes erd
20111 \end_inset
20112
20113 , will return information about the internal state of \SpecialChar LyX
20114 , while other will
20115  return an empty data-response.
20116  This means that the command execution went fine.
20117 \end_layout
20118
20119 \begin_layout Standard
20120 In case of errors, the response from \SpecialChar LyX
20121  will have this form
20122 \end_layout
20123
20124 \begin_layout Quote
20125 ERROR:
20126 \emph on
20127 clientname
20128 \emph default
20129 :
20130 \emph on
20131 function
20132 \emph default
20133 :
20134 \emph on
20135 error message
20136 \end_layout
20137
20138 \begin_layout Standard
20139 where the 
20140 \emph on
20141 error message
20142 \emph default
20143  should contain an explanation of why the command failed.
20144 \end_layout
20145
20146 \begin_layout Standard
20147 Examples:
20148 \end_layout
20149
20150 \begin_layout LyX-Code
20151 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
20152 \begin_inset Newline newline
20153 \end_inset
20154
20155 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
20156 \begin_inset Newline newline
20157 \end_inset
20158
20159 read a <~/.lyxpipe.out
20160 \begin_inset Newline newline
20161 \end_inset
20162
20163 echo $a
20164 \end_layout
20165
20166 \begin_layout Subsection
20167 AppleScript (Mac OS X)
20168 \end_layout
20169
20170 \begin_layout Standard
20171 Since \SpecialChar LyX
20172  2.1, \SpecialChar LyX
20173  supports basic interactions with AppleScript for normal communicatio
20174 n through the command run.
20175  This command takes a direct argument (the 
20176 \series bold
20177 function
20178 \series default
20179  to perform) and an optional argument.
20180  It either returns the output of the function or triggers an error with
20181  the error message and code.
20182 \end_layout
20183
20184 \begin_layout Standard
20185 Example:
20186 \end_layout
20187
20188 \begin_layout LyX-Code
20189 tell application "\SpecialChar LyX
20190 "
20191 \end_layout
20192
20193 \begin_layout LyX-Code
20194   try
20195 \end_layout
20196
20197 \begin_layout LyX-Code
20198     -- Stores the current file name into f
20199 \end_layout
20200
20201 \begin_layout LyX-Code
20202     set f to (run "server-get-filename" with argument "")
20203 \end_layout
20204
20205 \begin_layout LyX-Code
20206     on error the error_message number the error_number
20207 \end_layout
20208
20209 \begin_layout LyX-Code
20210       display dialog "Error: " & the error_number & ".
20211  " ¬
20212 \end_layout
20213
20214 \begin_layout LyX-Code
20215               & the error_message buttons {"OK"} default button 1
20216 \end_layout
20217
20218 \begin_layout LyX-Code
20219   end try
20220 \end_layout
20221
20222 \begin_layout LyX-Code
20223 end tell
20224 \end_layout
20225
20226 \begin_layout Section
20227 Notification
20228 \end_layout
20229
20230 \begin_layout Standard
20231 \SpecialChar LyX
20232  can notify clients of events going on asynchronously.
20233  Currently it will only do this if the user binds a key sequence with the
20234  function 
20235 \begin_inset Quotes eld
20236 \end_inset
20237
20238 notify
20239 \begin_inset Quotes erd
20240 \end_inset
20241
20242 .
20243  The format of the string \SpecialChar LyX
20244  sends is as follows:
20245 \end_layout
20246
20247 \begin_layout Quote
20248 \begin_inset Flex Code
20249 status collapsed
20250
20251 \begin_layout Plain Layout
20252 NOTIFY:
20253 \end_layout
20254
20255 \end_inset
20256
20257
20258 \emph on
20259 key-sequence
20260 \end_layout
20261
20262 \begin_layout Standard
20263 where 
20264 \emph on
20265 key-sequence
20266 \emph default
20267  is the printed representation of the key sequence that was actually typed
20268  by the user.
20269 \end_layout
20270
20271 \begin_layout Standard
20272 This mechanism can be used to extend \SpecialChar LyX
20273 's command set and implement macros.
20274  Bind some key sequence to 
20275 \begin_inset Quotes eld
20276 \end_inset
20277
20278 notify
20279 \begin_inset Quotes erd
20280 \end_inset
20281
20282 .
20283  Then start a client that listens on the output pipe, dispatches the command
20284  according to the sequence, and starts a function that may use \SpecialChar LyX
20285  calls and
20286  \SpecialChar LyX
20287  requests to issue a command or a series of commands to \SpecialChar LyX
20288 .
20289 \end_layout
20290
20291 \begin_layout Section
20292 The simple \SpecialChar LyX
20293  Server Protocol
20294 \end_layout
20295
20296 \begin_layout Standard
20297 \SpecialChar LyX
20298  implements a simple protocol that can be used for session management.
20299  All messages are of the form
20300 \end_layout
20301
20302 \begin_layout Quote
20303 LYXSRV:
20304 \emph on
20305 clientname
20306 \emph default
20307 :
20308 \emph on
20309 protocol message
20310 \end_layout
20311
20312 \begin_layout Standard
20313 where 
20314 \emph on
20315 protocol message
20316 \emph default
20317  can be 
20318 \begin_inset Quotes eld
20319 \end_inset
20320
20321 hello
20322 \begin_inset Quotes erd
20323 \end_inset
20324
20325  or 
20326 \begin_inset Quotes eld
20327 \end_inset
20328
20329 bye
20330 \begin_inset Quotes erd
20331 \end_inset
20332
20333 .
20334  If 
20335 \begin_inset Quotes eld
20336 \end_inset
20337
20338 hello
20339 \begin_inset Quotes erd
20340 \end_inset
20341
20342  is received from a client, \SpecialChar LyX
20343  will report back to inform the client that
20344  it's listening to it's messages, while 
20345 \begin_inset Quotes eld
20346 \end_inset
20347
20348 bye
20349 \begin_inset Quotes erd
20350 \end_inset
20351
20352  sent from \SpecialChar LyX
20353  will inform clients that \SpecialChar LyX
20354  is closing.
20355 \end_layout
20356
20357 \begin_layout Section
20358 Reverse DVI/PDF search
20359 \end_layout
20360
20361 \begin_layout Standard
20362 Some DVI/PDF viewers
20363 \begin_inset Foot
20364 status collapsed
20365
20366 \begin_layout Plain Layout
20367 The following viewers offer the reverse PDF search feature: Okular on KDE/Linux,
20368  Qpdfview on Unix, Skim on Mac OSX and SumatraPDF on Windows.
20369 \end_layout
20370
20371 \end_inset
20372
20373  provide 
20374 \emph on
20375 reverse search
20376 \emph default
20377  facility (also called 
20378 \emph on
20379 inverse search
20380 \emph default
20381 ).
20382  This means that you can tell \SpecialChar LyX
20383  to put the cursor to a specific line in the
20384  document by clicking at the respective position in the DVI/PDF output.
20385  To achieve this, the viewer must be able to communicate with \SpecialChar LyX
20386 .
20387  This is done via the \SpecialChar LyX
20388  server either by using the named pipe (
20389 \emph on
20390 lyxpipe
20391 \emph default
20392 ), or the UNIX domain socket (
20393 \emph on
20394 lyxsocket
20395 \emph default
20396 ) that \SpecialChar LyX
20397  creates in its temporary directory (this is the way the 
20398 \begin_inset Flex Code
20399 status collapsed
20400
20401 \begin_layout Plain Layout
20402 lyxclient
20403 \end_layout
20404
20405 \end_inset
20406
20407  program communicates with \SpecialChar LyX
20408 ).
20409  In some cases, you need a helper script that mediates between the viewer
20410  and \SpecialChar LyX
20411 , in others, the viewer can communicate with \SpecialChar LyX
20412  directly.
20413  This depends on the selected viewer and on your operating system.
20414  The same applies to the way viewers need to be configured and the way the
20415  reverse search is actually performed.
20416  In what follows, we will thus describe how to setup reverse search for
20417  specific viewers.
20418  Before we turn to this, though, we will explain what needs to be done generally
20419  to enable reverse search in the DVI/PDF output.
20420 \end_layout
20421
20422 \begin_layout Subsection
20423 Automatic setup
20424 \begin_inset CommandInset label
20425 LatexCommand label
20426 name "subsec:rev-search"
20427
20428 \end_inset
20429
20430
20431 \end_layout
20432
20433 \begin_layout Standard
20434 In most cases \SpecialChar LyX
20435  will do the work for you by pressing the following button
20436  in the toolbar: 
20437 \begin_inset Info
20438 type  "icon"
20439 arg   "buffer-toggle-output-sync"
20440 \end_inset
20441
20442 .
20443  Alternatively, you can also enable the feature by checking 
20444 \family sans
20445 Synchronize with Output
20446 \family default
20447  in 
20448 \begin_inset Flex Noun
20449 status collapsed
20450
20451 \begin_layout Plain Layout
20452 Document\SpecialChar menuseparator
20453 Settings\SpecialChar menuseparator
20454 Formats
20455 \end_layout
20456
20457 \end_inset
20458
20459 .
20460  In such a case \SpecialChar LyX
20461  will automatically insert the necessary Sync\SpecialChar TeX
20462  macro (for
20463  PDF) or load the srcltx package (for DVI) respectively.
20464  This option can be easily reached also on 
20465 \begin_inset Flex Code
20466 status collapsed
20467
20468 \begin_layout Plain Layout
20469 View/Update
20470 \end_layout
20471
20472 \end_inset
20473
20474  Toolbar.
20475 \end_layout
20476
20477 \begin_layout Standard
20478 If you need a different setting, you can select or input a custom macro
20479  from the drop down box just below 
20480 \begin_inset Flex Noun
20481 status collapsed
20482
20483 \begin_layout Plain Layout
20484 Document\SpecialChar menuseparator
20485 Settings\SpecialChar menuseparator
20486 Output\SpecialChar menuseparator
20487 Synchronize with Output
20488 \end_layout
20489
20490 \end_inset
20491
20492 .
20493 \end_layout
20494
20495 \begin_layout Standard
20496 Note that the method 
20497 \begin_inset Flex Code
20498 status collapsed
20499
20500 \begin_layout Plain Layout
20501
20502 \backslash
20503 synctex=1
20504 \end_layout
20505
20506 \end_inset
20507
20508  enables gzip compression.
20509  If your viewer does not support it, you should instead use 
20510 \begin_inset Flex Code
20511 status collapsed
20512
20513 \begin_layout Plain Layout
20514
20515 \backslash
20516 synctex=-1
20517 \end_layout
20518
20519 \end_inset
20520
20521 .
20522 \end_layout
20523
20524 \begin_layout Standard
20525 Please also note that including the 
20526 \begin_inset Flex Code
20527 status collapsed
20528
20529 \begin_layout Plain Layout
20530 srcltx
20531 \end_layout
20532
20533 \end_inset
20534
20535  package or 
20536 \begin_inset Flex Code
20537 status collapsed
20538
20539 \begin_layout Plain Layout
20540 src-specials
20541 \end_layout
20542
20543 \end_inset
20544
20545  sometimes has an undesired impact on the typesetting.
20546  Thus, you should switch output synchronization off for the final typesetting
20547  if you use the 
20548 \begin_inset Flex Code
20549 status collapsed
20550
20551 \begin_layout Plain Layout
20552 srcltx
20553 \end_layout
20554
20555 \end_inset
20556
20557  package or 
20558 \begin_inset Flex Code
20559 status collapsed
20560
20561 \begin_layout Plain Layout
20562 src-specials
20563 \end_layout
20564
20565 \end_inset
20566
20567 .
20568  
20569 \end_layout
20570
20571 \begin_layout Standard
20572 In case you need some more special settings that are not covered by the
20573  automatic settings, read the next section about how to set up output synchroniz
20574 ation manually.
20575  If the automatic setup suits your needs, you can readily jump to section
20576 \begin_inset space ~
20577 \end_inset
20578
20579
20580 \begin_inset CommandInset ref
20581 LatexCommand ref
20582 reference "subsec:configuring-viewers"
20583
20584 \end_inset
20585
20586 , where the necessary configuration steps in your viewer – needed both with
20587  the automatic and the manual setup – are described.
20588 \end_layout
20589
20590 \begin_layout Subsection
20591 Manual setup
20592 \end_layout
20593
20594 \begin_layout Standard
20595 \SpecialChar LaTeX
20596  provides several different methods for reverse search.
20597  Some are built-in in the 
20598 \begin_inset Flex Code
20599 status collapsed
20600
20601 \begin_layout Plain Layout
20602 latex/pdflatex
20603 \end_layout
20604
20605 \end_inset
20606
20607  program, some are provided by external packages.
20608  Your choice depends on whether your \SpecialChar LaTeX
20609  distribution already provides a given
20610  method (the built-in methods are rather new) and whether your viewer can
20611  cope with it.
20612  The available methods are described in the following.
20613 \end_layout
20614
20615 \begin_layout Subsubsection*
20616 Built-in DVI-search via src-specials (DVI only) 
20617 \end_layout
20618
20619 \begin_layout Standard
20620 This method provides the DVI file with the necessary information for reverse
20621  search.
20622  It is available in \SpecialChar LaTeX
20623  since quite some time (any somewhat recent \SpecialChar LaTeX
20624  distribution
20625  should include it), and it works reliably.
20626  To enable it, change the 
20627 \begin_inset Flex Noun
20628 status collapsed
20629
20630 \begin_layout Plain Layout
20631 La
20632 \family sans
20633 TeX
20634 \family default
20635  (plain)->DVI
20636 \end_layout
20637
20638 \end_inset
20639
20640  or 
20641 \begin_inset Flex Noun
20642 status collapsed
20643
20644 \begin_layout Plain Layout
20645 La
20646 \family sans
20647 TeX
20648 \family default
20649  (plain)->DraftDVI
20650 \end_layout
20651
20652 \end_inset
20653
20654  converter in 
20655 \begin_inset Flex Noun
20656 status collapsed
20657
20658 \begin_layout Plain Layout
20659 Preferences\SpecialChar menuseparator
20660 File Handling\SpecialChar menuseparator
20661 Converters
20662 \end_layout
20663
20664 \end_inset
20665
20666  to 
20667 \begin_inset Flex Code
20668 status collapsed
20669
20670 \begin_layout Plain Layout
20671 latex -src-specials $$i
20672 \end_layout
20673
20674 \end_inset
20675
20676 .
20677  If this doesn't work, check if your \SpecialChar TeX
20678  engine needs different options (the
20679  syntax might differ in some distributions).
20680 \end_layout
20681
20682 \begin_layout Subsubsection*
20683 External Packages (PDFSync and scrltx) 
20684 \end_layout
20685
20686 \begin_layout Standard
20687 The packages 
20688 \emph on
20689 pdfsync
20690 \emph default
20691  and 
20692 \emph on
20693 scrltx
20694 \emph default
20695  provide reverse search facility for PDF output (via pdflatex) and DVI output,
20696  respectively.
20697  In order to enable it, load the packages in the \SpecialChar LyX
20698  preamble: 
20699 \end_layout
20700
20701 \begin_layout Itemize
20702 \begin_inset Flex Code
20703 status collapsed
20704
20705 \begin_layout Plain Layout
20706
20707 \backslash
20708 usepackage{pdfsync}
20709 \end_layout
20710
20711 \end_inset
20712
20713  for reverse PDF search,
20714 \end_layout
20715
20716 \begin_layout Itemize
20717 \begin_inset Flex Code
20718 status collapsed
20719
20720 \begin_layout Plain Layout
20721
20722 \backslash
20723 usepackage[active]{srcltx}
20724 \end_layout
20725
20726 \end_inset
20727
20728  for reverse DVI search.
20729 \end_layout
20730
20731 \begin_layout Standard
20732 If you want to be able to perform both DVI and PDF reverse searches, you
20733  can also insert in the preamble the following lines
20734 \end_layout
20735
20736 \begin_layout LyX-Code
20737
20738 \backslash
20739 usepackage{ifpdf}
20740 \begin_inset Newline newline
20741 \end_inset
20742
20743
20744 \backslash
20745 ifpdf
20746 \begin_inset Newline newline
20747 \end_inset
20748
20749   
20750 \backslash
20751 usepackage{pdfsync}
20752 \begin_inset Newline newline
20753 \end_inset
20754
20755
20756 \backslash
20757 else
20758 \begin_inset Newline newline
20759 \end_inset
20760
20761   
20762 \backslash
20763 usepackage[active]{srcltx}
20764 \begin_inset Newline newline
20765 \end_inset
20766
20767
20768 \backslash
20769 fi
20770 \end_layout
20771
20772 \begin_layout Standard
20773 This way, you can preview the file as either DVI or PDF (pdflatex) and the
20774  right package will be used.
20775 \end_layout
20776
20777 \begin_layout Standard
20778 Note that PDFSync might affect the output layout of your document.
20779  It is therefore advised to disable PDFsync for final documents.
20780 \end_layout
20781
20782 \begin_layout Subsubsection*
20783 Built-in reverse search via Sync\SpecialChar TeX
20784  (DVI and PDF) 
20785 \end_layout
20786
20787 \begin_layout Standard
20788 Recent versions of 
20789 \begin_inset Flex Code
20790 status collapsed
20791
20792 \begin_layout Plain Layout
20793 (pdf)latex
20794 \end_layout
20795
20796 \end_inset
20797
20798  have built-in support for both PDF and DVI reverse search.
20799  This so-called 
20800 \emph on
20801 Sync\SpecialChar TeX
20802
20803 \emph default
20804  facility is basically the result of the integration of the PDFSync package
20805  to the pdftex program and its merge with the 
20806 \emph on
20807 scr-specials
20808 \emph default
20809  approach.
20810  You need at least \SpecialChar TeX
20811 Live 2008 or a recent Mik\SpecialChar TeX
20812  distribution in order to use
20813  it.
20814 \begin_inset Foot
20815 status collapsed
20816
20817 \begin_layout Plain Layout
20818 For some reason, Mik\SpecialChar TeX
20819  does not understand/obey the command \SpecialChar LyX
20820  inserts into
20821  the preamble when you check the "Enable Forward/Reverse Search" button
20822  in the toolbar and does not generate the necessary info.
20823 \end_layout
20824
20825 \begin_layout Plain Layout
20826 The generation of the required info can be forced by changing the converter
20827  "\SpecialChar LaTeX
20828  (pdflatex) -> PDF (pdflatex)" in Preferences->File handling->Converters
20829  from the default "pdflatex $$i" to "pdflatex -synctex=1 $$i" (i.e., by adding
20830  the -synctex=1 switch).
20831 \end_layout
20832
20833 \end_inset
20834
20835  Also note that only a few PDF viewers (such as Okular and Qpdfview on Unix,
20836  Skim on the Mac, SumatraPDF on Windows; see the next section for details)
20837  already provide Sync\SpecialChar TeX
20838  support.
20839 \end_layout
20840
20841 \begin_layout Standard
20842 To enable Sync\SpecialChar TeX
20843  for DVI output, change the 
20844 \begin_inset Flex Noun
20845 status collapsed
20846
20847 \begin_layout Plain Layout
20848 La
20849 \family sans
20850 TeX
20851 \family default
20852  (plain) -> DVI
20853 \end_layout
20854
20855 \end_inset
20856
20857  or 
20858 \begin_inset Flex Noun
20859 status collapsed
20860
20861 \begin_layout Plain Layout
20862 La
20863 \family sans
20864 TeX
20865 \family default
20866  (plain) -> DraftDVI
20867 \end_layout
20868
20869 \end_inset
20870
20871  converter in 
20872 \begin_inset Flex Noun
20873 status collapsed
20874
20875 \begin_layout Plain Layout
20876 Preferences\SpecialChar menuseparator
20877 File Handling\SpecialChar menuseparator
20878 Converters
20879 \end_layout
20880
20881 \end_inset
20882
20883  to 
20884 \begin_inset Flex Code
20885 status collapsed
20886
20887 \begin_layout Plain Layout
20888 latex -synctex=1 $$i
20889 \end_layout
20890
20891 \end_inset
20892
20893 , and for PDF output, change the 
20894 \begin_inset Flex Noun
20895 status collapsed
20896
20897 \begin_layout Plain Layout
20898 La
20899 \family sans
20900 TeX
20901 \family default
20902  (pdflatex) -> PDF (pdflatex)
20903 \end_layout
20904
20905 \end_inset
20906
20907  converter to 
20908 \begin_inset Flex Code
20909 status collapsed
20910
20911 \begin_layout Plain Layout
20912 pdflatex -synctex=1 $$i
20913 \end_layout
20914
20915 \end_inset
20916
20917 .
20918  Should your viewer not be considered in the following description, or in
20919  case of missing success, please check the documentation of your viewer
20920  whether the viewer needs to be configured for the use with Sync\SpecialChar TeX
20921 .
20922 \begin_inset Foot
20923 status collapsed
20924
20925 \begin_layout Plain Layout
20926 Note that the option 
20927 \begin_inset Flex Code
20928 status collapsed
20929
20930 \begin_layout Plain Layout
20931 -synctex=1
20932 \end_layout
20933
20934 \end_inset
20935
20936  option enables gzip compression.
20937  If your viewer does not support it, you should instead use 
20938 \begin_inset Flex Code
20939 status collapsed
20940
20941 \begin_layout Plain Layout
20942 -synctex=-1
20943 \end_layout
20944
20945 \end_inset
20946
20947 .
20948 \end_layout
20949
20950 \end_inset
20951
20952
20953 \end_layout
20954
20955 \begin_layout Subsection
20956 Configuring and using specific viewers
20957 \begin_inset CommandInset label
20958 LatexCommand label
20959 name "subsec:configuring-viewers"
20960
20961 \end_inset
20962
20963
20964 \end_layout
20965
20966 \begin_layout Subsubsection*
20967 Xdvi (all platforms)
20968 \end_layout
20969
20970 \begin_layout Standard
20971 If you use 
20972 \begin_inset Flex Code
20973 status collapsed
20974
20975 \begin_layout Plain Layout
20976 xdvi
20977 \end_layout
20978
20979 \end_inset
20980
20981 , you don't need to do anything else for performing a reverse DVI search,
20982  as \SpecialChar LyX
20983  already provides the necessary hooks for automatically using the 
20984 \begin_inset Flex Code
20985 status collapsed
20986
20987 \begin_layout Plain Layout
20988 lyxclient
20989 \end_layout
20990
20991 \end_inset
20992
20993  program.
20994  Just setup your document as described above (reverse search is triggered
20995  by Ctrl-click or Alt-click on Mac OSX, respectively).
20996 \end_layout
20997
20998 \begin_layout Standard
20999 However, if for whatever reason you want to use the named pipe instead of
21000  the socket for communicating with \SpecialChar LyX
21001 , simply change the DVI viewer in 
21002 \begin_inset Flex Noun
21003 status collapsed
21004
21005 \begin_layout Plain Layout
21006 Preferences\SpecialChar menuseparator
21007 File Handling\SpecialChar menuseparator
21008 File formats
21009 \end_layout
21010
21011 \end_inset
21012
21013  to
21014 \begin_inset Foot
21015 status collapsed
21016
21017 \begin_layout Plain Layout
21018 On Mac OSX you have to use 
21019 \begin_inset Flex Code
21020 status collapsed
21021
21022 \begin_layout Plain Layout
21023 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
21024 \end_layout
21025
21026 \end_inset
21027
21028
21029 \end_layout
21030
21031 \end_inset
21032
21033  
21034 \begin_inset Flex Code
21035 status collapsed
21036
21037 \begin_layout Plain Layout
21038 xdvi -editor "lyxeditor.sh %f %l"
21039 \end_layout
21040
21041 \end_inset
21042
21043 , where 
21044 \begin_inset Flex Code
21045 status collapsed
21046
21047 \begin_layout Plain Layout
21048 lyxeditor.sh
21049 \end_layout
21050
21051 \end_inset
21052
21053  is a suitable script.
21054  For example, a minimal shell script is the following one:
21055 \end_layout
21056
21057 \begin_layout LyX-Code
21058 #!/bin/sh
21059 \begin_inset Newline newline
21060 \end_inset
21061
21062 LYXPIPE="/path/to/lyxpipe"
21063 \begin_inset Newline newline
21064 \end_inset
21065
21066 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
21067 \begin_inset Newline newline
21068 \end_inset
21069
21070 echo "$COMMAND" > "${LYXPIPE}".in || exit
21071 \begin_inset Newline newline
21072 \end_inset
21073
21074 read TMP < "${LYXPIPE}".out || exit
21075 \end_layout
21076
21077 \begin_layout Standard
21078 where 
21079 \begin_inset Flex Code
21080 status collapsed
21081
21082 \begin_layout Plain Layout
21083 /path/to/lyxpipe
21084 \end_layout
21085
21086 \end_inset
21087
21088  is the LyXServer pipe path specified in 
21089 \begin_inset Flex Noun
21090 status collapsed
21091
21092 \begin_layout Plain Layout
21093 Preferences\SpecialChar menuseparator
21094 Paths
21095 \end_layout
21096
21097 \end_inset
21098
21099 .
21100 \begin_inset Foot
21101 status collapsed
21102
21103 \begin_layout Plain Layout
21104 In the 
21105 \begin_inset Flex Code
21106 status collapsed
21107
21108 \begin_layout Plain Layout
21109 development/tools
21110 \end_layout
21111
21112 \end_inset
21113
21114  folder of a source distribution you can find a 
21115 \begin_inset Flex Code
21116 status collapsed
21117
21118 \begin_layout Plain Layout
21119 lyxeditor
21120 \end_layout
21121
21122 \end_inset
21123
21124  script which is able to locate the 
21125 \emph on
21126 lyxpipe
21127 \emph default
21128  based on your preferences.
21129 \end_layout
21130
21131 \end_inset
21132
21133
21134 \end_layout
21135
21136 \begin_layout Subsubsection*
21137 MacDviX (Mac OSX)
21138 \end_layout
21139
21140 \begin_layout Standard
21141 At the end of 
21142 \begin_inset Flex Code
21143 status collapsed
21144
21145 \begin_layout Plain Layout
21146 /Applications/MacDviX_Folder/calleditor.script
21147 \end_layout
21148
21149 \end_inset
21150
21151 , add the following lines:
21152 \end_layout
21153
21154 \begin_layout LyX-Code
21155 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
21156 \begin_inset Newline newline
21157 \end_inset
21158
21159 exit 1
21160 \end_layout
21161
21162 \begin_layout Standard
21163 Modify the lines accordingly if you install \SpecialChar LyX
21164  somewhere else than in the
21165  Applications folder.
21166 \end_layout
21167
21168 \begin_layout Standard
21169 Reverse search is triggered by Alt-click (OPTION-click).
21170 \end_layout
21171
21172 \begin_layout Subsubsection*
21173 Skim (Mac OSX)
21174 \end_layout
21175
21176 \begin_layout Standard
21177 Enter 
21178 \begin_inset Flex Code
21179 status collapsed
21180
21181 \begin_layout Plain Layout
21182 open -a Skim.app $$i
21183 \end_layout
21184
21185 \end_inset
21186
21187  to the viewer setting in 
21188 \begin_inset Flex Noun
21189 status collapsed
21190
21191 \begin_layout Plain Layout
21192 Preferences\SpecialChar menuseparator
21193 File Handling\SpecialChar menuseparator
21194 File formats\SpecialChar menuseparator
21195 PDF (pdflatex)
21196 \end_layout
21197
21198 \end_inset
21199
21200 , and then in 
21201 \begin_inset Flex Noun
21202 status collapsed
21203
21204 \begin_layout Plain Layout
21205 Skim\SpecialChar menuseparator
21206 Preferences\SpecialChar menuseparator
21207 Sync
21208 \end_layout
21209
21210 \end_inset
21211
21212  choose 
21213 \begin_inset Flex Noun
21214 status collapsed
21215
21216 \begin_layout Plain Layout
21217 custom
21218 \end_layout
21219
21220 \end_inset
21221
21222  preset and enter command 
21223 \begin_inset Flex Noun
21224 status collapsed
21225
21226 \begin_layout Plain Layout
21227 /Applications/\SpecialChar LyX
21228 .app/Contents/MacOS/lyxeditor
21229 \end_layout
21230
21231 \end_inset
21232
21233 .
21234 \end_layout
21235
21236 \begin_layout Standard
21237 Reverse search is triggered by COMMAND-SHIFT-click
21238 \end_layout
21239
21240 \begin_layout Subsubsection*
21241 Evince (GNOME)
21242 \end_layout
21243
21244 \begin_layout Standard
21245 Reverse search with evince does not work out of the box, but it can be achieved
21246  by means of some third party helper scripts.
21247  Please refer to 
21248 \begin_inset CommandInset href
21249 LatexCommand href
21250 target "https://wiki.lyx.org/LyX/SyncTeX"
21251 literal "false"
21252
21253 \end_inset
21254
21255  for details.
21256 \end_layout
21257
21258 \begin_layout Subsubsection*
21259 Okular (KDE)
21260 \end_layout
21261
21262 \begin_layout Standard
21263 Go to 
21264 \begin_inset Flex Noun
21265 status collapsed
21266
21267 \begin_layout Plain Layout
21268 Settings\SpecialChar menuseparator
21269 Configure Okular\SpecialChar menuseparator
21270 Editor
21271 \end_layout
21272
21273 \end_inset
21274
21275  and select LyX
21276 \begin_inset Quotes erd
21277 \end_inset
21278
21279  as editor.
21280  This inserts the appropriate command (
21281 \begin_inset Flex Code
21282 status collapsed
21283
21284 \begin_layout Plain Layout
21285 lyxclient -g %f %l
21286 \end_layout
21287
21288 \end_inset
21289
21290 ).
21291 \end_layout
21292
21293 \begin_layout Standard
21294 Reverse search is triggered by SHIFT-click.
21295
21296 \change_inserted -712698321 1578211026
21297  Note that this only works if Okular is in 
21298 \begin_inset Quotes eld
21299 \end_inset
21300
21301 Browse
21302 \begin_inset Quotes erd
21303 \end_inset
21304
21305  mode (i.
21306 \begin_inset space \thinspace{}
21307 \end_inset
21308
21309 e., the hand symbol is clicked).
21310 \change_unchanged
21311
21312 \end_layout
21313
21314 \begin_layout Subsubsection*
21315 Qpdfview (Unix)
21316 \end_layout
21317
21318 \begin_layout Standard
21319 Qpdfview supports Sync\SpecialChar TeX
21320  since version 0.3.5.
21321  Go to 
21322 \begin_inset Flex Noun
21323 status collapsed
21324
21325 \begin_layout Plain Layout
21326 Edit\SpecialChar menuseparator
21327 Settings\SpecialChar menuseparator
21328 Behavior
21329 \end_layout
21330
21331 \end_inset
21332
21333 , click on the input field of the 
21334 \begin_inset Quotes eld
21335 \end_inset
21336
21337 Source editor
21338 \begin_inset Quotes erd
21339 \end_inset
21340
21341  item and add the command 
21342 \begin_inset Flex Code
21343 status collapsed
21344
21345 \begin_layout Plain Layout
21346 lyxclient -g %1 %2
21347 \end_layout
21348
21349 \end_inset
21350
21351 .
21352 \end_layout
21353
21354 \begin_layout Standard
21355 Reverse search is triggered by double-click or, in more recent versions,
21356  by context menu.
21357 \end_layout
21358
21359 \begin_layout Subsubsection*
21360 YAP (Windows)
21361 \end_layout
21362
21363 \begin_layout Standard
21364 Launch yap, choose its 
21365 \begin_inset Flex Noun
21366 status collapsed
21367
21368 \begin_layout Plain Layout
21369 View\SpecialChar menuseparator
21370 Options
21371 \end_layout
21372
21373 \end_inset
21374
21375  menu and select the 
21376 \begin_inset Quotes eld
21377 \end_inset
21378
21379 Inverse DVI Search
21380 \begin_inset Quotes erd
21381 \end_inset
21382
21383  tab.
21384  Click on the 
21385 \begin_inset Quotes eld
21386 \end_inset
21387
21388 New\SpecialChar ldots
21389
21390 \begin_inset Quotes erd
21391 \end_inset
21392
21393  button and, in the window that opens, enter 
21394 \begin_inset Quotes eld
21395 \end_inset
21396
21397 \SpecialChar LyX
21398  Editor
21399 \begin_inset Quotes erd
21400 \end_inset
21401
21402  (or any other name you like) in the 
21403 \begin_inset Quotes eld
21404 \end_inset
21405
21406 Name:
21407 \begin_inset Quotes erd
21408 \end_inset
21409
21410  field.
21411  Now click on the button labeled 
21412 \begin_inset Quotes eld
21413 \end_inset
21414
21415 \SpecialChar ldots
21416
21417 \begin_inset Quotes erd
21418 \end_inset
21419
21420  to open a file dialog and navigate to the directory containing the batch
21421  file 
21422 \begin_inset Flex Code
21423 status collapsed
21424
21425 \begin_layout Plain Layout
21426 lyxeditor.bat
21427 \end_layout
21428
21429 \end_inset
21430
21431  (see below).
21432  Select 
21433 \begin_inset Flex Code
21434 status collapsed
21435
21436 \begin_layout Plain Layout
21437 lyxeditor.bat
21438 \end_layout
21439
21440 \end_inset
21441
21442  and then specify the program arguments as 
21443 \begin_inset Flex Code
21444 status collapsed
21445
21446 \begin_layout Plain Layout
21447 %f %l
21448 \end_layout
21449
21450 \end_inset
21451
21452 .
21453  The 
21454 \begin_inset Flex Code
21455 status collapsed
21456
21457 \begin_layout Plain Layout
21458 lyxeditor.bat
21459 \end_layout
21460
21461 \end_inset
21462
21463  wrapper is used for communicating with \SpecialChar LyX
21464  through the 
21465 \emph on
21466 lyxpipe
21467 \emph default
21468  and is as follows:
21469 \end_layout
21470
21471 \begin_layout LyX-Code
21472 @echo off
21473 \begin_inset Newline newline
21474 \end_inset
21475
21476 echo LYXCMD:revdvi:server-goto-file-row:%~1 %2> 
21477 \backslash
21478
21479 \backslash
21480 .
21481 \backslash
21482 pipe
21483 \backslash
21484 lyxpipe.in
21485 \begin_inset Newline newline
21486 \end_inset
21487
21488 type 
21489 \backslash
21490
21491 \backslash
21492 .
21493 \backslash
21494 pipe
21495 \backslash
21496 lyxpipe.out
21497 \end_layout
21498
21499 \begin_layout Standard
21500 Make sure that the \SpecialChar LyX
21501 Server pipe path you specified in \SpecialChar LyX
21502  is 
21503 \begin_inset Flex Code
21504 status collapsed
21505
21506 \begin_layout Plain Layout
21507
21508 \backslash
21509
21510 \backslash
21511 .
21512 \backslash
21513 pipe
21514 \backslash
21515 lyxpipe
21516 \end_layout
21517
21518 \end_inset
21519
21520 , otherwise change the 
21521 \begin_inset Flex Code
21522 status collapsed
21523
21524 \begin_layout Plain Layout
21525 lyxeditor.bat
21526 \end_layout
21527
21528 \end_inset
21529
21530  wrapper accordingly.
21531 \end_layout
21532
21533 \begin_layout Standard
21534 In yap, reverse search is triggered by double-click.
21535 \end_layout
21536
21537 \begin_layout Subsubsection*
21538 SumatraPDF (Windows)
21539 \end_layout
21540
21541 \begin_layout Standard
21542 In order to use SumatraPDF for inverse search, enter 
21543 \begin_inset Flex Code
21544 status collapsed
21545
21546 \begin_layout Plain Layout
21547 SumatraPDF -inverse-search "lyxeditor.bat "%f" %l"
21548 \end_layout
21549
21550 \end_inset
21551
21552  in the viewer setting in 
21553 \begin_inset Flex Noun
21554 status collapsed
21555
21556 \begin_layout Plain Layout
21557 Preferences\SpecialChar menuseparator
21558 File Handling\SpecialChar menuseparator
21559 File formats\SpecialChar menuseparator
21560 PDF (pdflatex)
21561 \end_layout
21562
21563 \end_inset
21564
21565 , where 
21566 \begin_inset Flex Code
21567 status collapsed
21568
21569 \begin_layout Plain Layout
21570 lyxeditor.bat
21571 \end_layout
21572
21573 \end_inset
21574
21575  is the previous wrapper.
21576  If SumatraPDF.exe is not in your command PATH, use its full file name.
21577 \end_layout
21578
21579 \begin_layout Standard
21580 Reverse search is triggered by double-click.
21581 \end_layout
21582
21583 \begin_layout Subsubsection*
21584 YAP (Cygwin)
21585 \end_layout
21586
21587 \begin_layout Standard
21588 First of all, make sure that yap is your default DVI viewer in the Windows
21589  environment, then launch it, choose its 
21590 \begin_inset Flex Noun
21591 status collapsed
21592
21593 \begin_layout Plain Layout
21594 View\SpecialChar menuseparator
21595 Options
21596 \end_layout
21597
21598 \end_inset
21599
21600  menu and select the 
21601 \begin_inset Quotes eld
21602 \end_inset
21603
21604 Inverse DVI Search
21605 \begin_inset Quotes erd
21606 \end_inset
21607
21608  tab.
21609  Click on the 
21610 \begin_inset Quotes eld
21611 \end_inset
21612
21613 New\SpecialChar ldots
21614
21615 \begin_inset Quotes erd
21616 \end_inset
21617
21618  button and, in the window that opens, enter 
21619 \begin_inset Quotes eld
21620 \end_inset
21621
21622 \SpecialChar LyX
21623  Editor
21624 \begin_inset Quotes erd
21625 \end_inset
21626
21627  (or any other name you like) in the 
21628 \begin_inset Quotes eld
21629 \end_inset
21630
21631 Name:
21632 \begin_inset Quotes erd
21633 \end_inset
21634
21635  field.
21636  Now click on the button labeled 
21637 \begin_inset Quotes eld
21638 \end_inset
21639
21640 \SpecialChar ldots
21641
21642 \begin_inset Quotes erd
21643 \end_inset
21644
21645  to open a file dialog and navigate to the directory containing the 
21646 \begin_inset Flex Code
21647 status collapsed
21648
21649 \begin_layout Plain Layout
21650 lyxeditor.exe
21651 \end_layout
21652
21653 \end_inset
21654
21655  program (which is installed by default on Cygwin along with the \SpecialChar LyX
21656  executable).
21657  Select 
21658 \begin_inset Flex Code
21659 status collapsed
21660
21661 \begin_layout Plain Layout
21662 lyxeditor.exe
21663 \end_layout
21664
21665 \end_inset
21666
21667  and then specify the program arguments as 
21668 \begin_inset Flex Code
21669 status collapsed
21670
21671 \begin_layout Plain Layout
21672 -g %f %l
21673 \end_layout
21674
21675 \end_inset
21676
21677 .
21678  In this way, you will be using the 
21679 \emph on
21680 lyxsocket
21681 \emph default
21682  for communicating with \SpecialChar LyX
21683 .
21684  If, for whatever reason, you want to use the 
21685 \emph on
21686 lyxpipe
21687 \emph default
21688 , omit the 
21689 \begin_inset Flex Code
21690 status collapsed
21691
21692 \begin_layout Plain Layout
21693 -g
21694 \end_layout
21695
21696 \end_inset
21697
21698  option and be sure to specify the \SpecialChar LyX
21699 Server pipe path in the \SpecialChar LyX
21700  preferences.
21701 \end_layout
21702
21703 \begin_layout Standard
21704 In yap, reverse search is triggered by double-click.
21705 \end_layout
21706
21707 \begin_layout Subsubsection*
21708 SumatraPDF (Cygwin)
21709 \end_layout
21710
21711 \begin_layout Standard
21712 In order to use SumatraPDF for inverse search, enter 
21713 \begin_inset Flex Code
21714 status collapsed
21715
21716 \begin_layout Plain Layout
21717 SumatraPDF -inverse-search "lyxeditor -g %f %l"
21718 \end_layout
21719
21720 \end_inset
21721
21722  in the viewer setting in 
21723 \begin_inset Flex Noun
21724 status collapsed
21725
21726 \begin_layout Plain Layout
21727 Preferences\SpecialChar menuseparator
21728 File Handling\SpecialChar menuseparator
21729 File formats\SpecialChar menuseparator
21730 PDF (pdflatex)
21731 \end_layout
21732
21733 \end_inset
21734
21735 .
21736  If SumatraPDF.exe is not in your command PATH, use its full posix path.
21737  The 
21738 \begin_inset Flex Code
21739 status collapsed
21740
21741 \begin_layout Plain Layout
21742 -g
21743 \end_layout
21744
21745 \end_inset
21746
21747  enables communication via the 
21748 \emph on
21749 lyxsocket
21750 \emph default
21751 .
21752  Again, omit the 
21753 \begin_inset Flex Code
21754 status collapsed
21755
21756 \begin_layout Plain Layout
21757 -g
21758 \end_layout
21759
21760 \end_inset
21761
21762  option if you want to use the 
21763 \emph on
21764 lyxpipe
21765 \emph default
21766 , and be sure to specify the \SpecialChar LyX
21767 Server pipe path in the \SpecialChar LyX
21768  preferences.
21769 \end_layout
21770
21771 \begin_layout Standard
21772 Reverse search is triggered by double-click.
21773 \end_layout
21774
21775 \begin_layout Section
21776 Forward search
21777 \end_layout
21778
21779 \begin_layout Standard
21780 Forward search is, as the name implies, in a sense the 
21781 \begin_inset Quotes eld
21782 \end_inset
21783
21784 opposite
21785 \begin_inset Quotes erd
21786 \end_inset
21787
21788  of reverse search.
21789  It allows you to let the viewer jump to a given position from within \SpecialChar LyX
21790 .
21791  If forward search is set up (as described in what follows), you can put
21792  the cursor anywhere in your \SpecialChar LyX
21793  document, and hit 
21794 \begin_inset Flex Noun
21795 status collapsed
21796
21797 \begin_layout Plain Layout
21798 Navigate\SpecialChar menuseparator
21799 Forward search
21800 \end_layout
21801
21802 \end_inset
21803
21804  (or select 
21805 \begin_inset Flex Noun
21806 status collapsed
21807
21808 \begin_layout Plain Layout
21809 Forward search
21810 \end_layout
21811
21812 \end_inset
21813
21814  in the context menu via right mouse click), and then the viewer will jump
21815  to that position as well.
21816  This implies, of course, that your viewer supports this function.
21817 \end_layout
21818
21819 \begin_layout Standard
21820 To make forward search possible, you first need to provide the generated
21821  output PDF/DVI file with additional information about the \SpecialChar TeX
21822  sources.
21823  This can be done via the methods described in the section 
21824 \begin_inset CommandInset ref
21825 LatexCommand ref
21826 reference "subsec:rev-search"
21827
21828 \end_inset
21829
21830 .
21831 \end_layout
21832
21833 \begin_layout Standard
21834 Additionally, you need to configure \SpecialChar LyX
21835  for using your viewers in 
21836 \begin_inset Flex Noun
21837 status collapsed
21838
21839 \begin_layout Plain Layout
21840 Tools\SpecialChar menuseparator
21841 Preferences\SpecialChar menuseparator
21842 Output\SpecialChar menuseparator
21843 General
21844 \end_layout
21845
21846 \end_inset
21847
21848 .
21849  We provide a range of tested configurations for some viewers, which you
21850  can select from the drop down list.
21851  If none of these configurations suits you, you have to find out and enter
21852  a suitable configuration yourself.
21853  The definition syntax uses the following placeholders:
21854 \end_layout
21855
21856 \begin_layout Itemize
21857 \noindent
21858 \begin_inset Flex Code
21859 status collapsed
21860
21861 \begin_layout Plain Layout
21862 $$n
21863 \end_layout
21864
21865 \end_inset
21866
21867 : row number
21868 \end_layout
21869
21870 \begin_layout Itemize
21871 \noindent
21872 \begin_inset Flex Code
21873 status collapsed
21874
21875 \begin_layout Plain Layout
21876 $$t
21877 \end_layout
21878
21879 \end_inset
21880
21881 : name of the (temporary) exported .tex file (without path)
21882 \end_layout
21883
21884 \begin_layout Itemize
21885 \noindent
21886 \begin_inset Flex Code
21887 status collapsed
21888
21889 \begin_layout Plain Layout
21890 $$f
21891 \end_layout
21892
21893 \end_inset
21894
21895 : name of the (temporary) exported .tex file (including path)
21896 \end_layout
21897
21898 \begin_layout Itemize
21899 \noindent
21900 \begin_inset Flex Code
21901 status collapsed
21902
21903 \begin_layout Plain Layout
21904 $$o
21905 \end_layout
21906
21907 \end_inset
21908
21909 : name of the exported output file (either dvi or pdf, depending on which
21910  one exists in the temporary directory)
21911 \end_layout
21912
21913 \begin_layout Standard
21914 Note that only some of the viewers provide full and usable forward search
21915  functionality out of the box, among them yap, xdvi, okular
21916 \begin_inset Foot
21917 status collapsed
21918
21919 \begin_layout Plain Layout
21920 You might want to set 
21921 \begin_inset Flex Code
21922 status collapsed
21923
21924 \begin_layout Plain Layout
21925 okular --unique
21926 \end_layout
21927
21928 \end_inset
21929
21930  in 
21931 \begin_inset Flex Noun
21932 status collapsed
21933
21934 \begin_layout Plain Layout
21935 Tools\SpecialChar menuseparator
21936 Preferences\SpecialChar menuseparator
21937 File Handling\SpecialChar menuseparator
21938 File
21939 \begin_inset space ~
21940 \end_inset
21941
21942 Formats
21943 \end_layout
21944
21945 \end_inset
21946
21947
21948 \end_layout
21949
21950 \end_inset
21951
21952 , qpdfview, and SumatraPDF
21953 \begin_inset Foot
21954 status collapsed
21955
21956 \begin_layout Plain Layout
21957 SumatraPDF can also use DDE commands through the external program CMCDDE
21958  — downloadable from 
21959 \begin_inset CommandInset href
21960 LatexCommand href
21961 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
21962 literal "false"
21963
21964 \end_inset
21965
21966
21967 \end_layout
21968
21969 \end_inset
21970
21971 .
21972  Others, such as evince
21973 \begin_inset Foot
21974 status collapsed
21975
21976 \begin_layout Plain Layout
21977 Forward search with evince can be achieved by means of third party helper
21978  scripts.
21979  Please refer to 
21980 \begin_inset CommandInset href
21981 LatexCommand href
21982 target "https://wiki.lyx.org/LyX/SyncTeX"
21983 literal "false"
21984
21985 \end_inset
21986
21987  for details.
21988 \end_layout
21989
21990 \end_inset
21991
21992 , require some extra tools in order to use forward search.
21993  While many of the widespread PDF viewers (most notably Adobe Reader) do
21994  not support forward search at all, some other viewers – e.
21995 \begin_inset space \thinspace{}
21996 \end_inset
21997
21998 g.
21999  xpdf – allow at least to reload the document and jump to a specific page
22000  of the file, so you can at least navigate 
22001 \begin_inset Quotes eld
22002 \end_inset
22003
22004 near
22005 \begin_inset Quotes erd
22006 \end_inset
22007
22008 .
22009  This latter functionality is provided by an external call of synctex (see
22010  the predefined example configurations).
22011  
22012 \end_layout
22013
22014 \begin_layout Standard
22015 Forward search works both with DVI and PDF output.
22016  \SpecialChar LyX
22017  simply checks which preview format you have used before (i.
22018 \begin_inset space \thinspace{}
22019 \end_inset
22020
22021 e., which format is already there in the temporary directory) and chooses
22022  the appropriate configuration for the respective format.
22023 \end_layout
22024
22025 \begin_layout Chapter
22026
22027 \change_deleted 564990737 1671097409
22028 Special Document Classes
22029 \change_unchanged
22030
22031 \end_layout
22032
22033 \begin_layout Section
22034
22035 \change_deleted 564990737 1669742044
22036 A&A Paper
22037 \end_layout
22038
22039 \begin_layout Standard
22040
22041 \change_deleted 564990737 1669742044
22042 by 
22043 \noun on
22044 Peter Sütterlin
22045 \end_layout
22046
22047 \begin_layout Subsection
22048
22049 \change_deleted 564990737 1669742044
22050 Introduction
22051 \end_layout
22052
22053 \begin_layout Standard
22054
22055 \change_deleted 564990737 1669742044
22056 This section describes how \SpecialChar LyX
22057  can be used to write articles for submission
22058  to the scientific journal 
22059 \emph on
22060 Astronomy and Astrophysics
22061 \emph default
22062  (
22063 \begin_inset Flex URL
22064 status collapsed
22065
22066 \begin_layout Plain Layout
22067
22068 https://www.aanda.org/
22069 \end_layout
22070
22071 \end_inset
22072
22073 ) using Version 5.01 of the document class 
22074 \family typewriter
22075 aa.cls
22076 \family default
22077 .
22078  This package can be downloaded from the ftp site
22079 \end_layout
22080
22081 \begin_layout Standard
22082
22083 \change_deleted 564990737 1669742044
22084 \begin_inset VSpace medskip
22085 \end_inset
22086
22087
22088 \end_layout
22089
22090 \begin_layout Standard
22091 \align center
22092
22093 \change_deleted 564990737 1669742044
22094 \begin_inset Flex URL
22095 status collapsed
22096
22097 \begin_layout Plain Layout
22098
22099 ftp://ftp.edpsciences.org/pub/aa/readme.html
22100 \end_layout
22101
22102 \end_inset
22103
22104
22105 \end_layout
22106
22107 \begin_layout Standard
22108
22109 \change_deleted 564990737 1669742044
22110 \begin_inset VSpace medskip
22111 \end_inset
22112
22113
22114 \end_layout
22115
22116 \begin_layout Standard
22117
22118 \change_deleted 564990737 1669742044
22119 A manual comes together with that package, and this text is not meant to
22120  replace the original manual but is merely a short guide in how to realize
22121  the correct form of your paper.
22122  
22123 \end_layout
22124
22125 \begin_layout Standard
22126
22127 \change_deleted 564990737 1669742044
22128 Please note that the publisher of the journal was changed from Springer
22129  to EDP Sciences starting January 1, 2001.
22130  That change involved also some slight changes to the style files, namely
22131  the removal of the thesaurus command.
22132  The \SpecialChar LyX
22133  class aa supports the newest version of these style files, V 5.01.
22134  If you have an older version installed, please upgrade.
22135  For compatibility, the old (version 4) layout has been kept as 
22136 \family sans
22137 article (A&A V4)
22138 \family default
22139 .
22140  Please refer to the comments in 
22141 \family typewriter
22142 \SpecialChar LyX
22143 Dir/layouts/aapaper.layout
22144 \family default
22145 .
22146 \end_layout
22147
22148 \begin_layout Subsection
22149
22150 \change_deleted 564990737 1669742044
22151 Getting started
22152 \end_layout
22153
22154 \begin_layout Standard
22155
22156 \change_deleted 564990737 1669742044
22157 It is recommended you start from the example template distributed with \SpecialChar LyX
22158 .
22159  If you are not using a template, note the following settings:
22160 \end_layout
22161
22162 \begin_layout Itemize
22163
22164 \change_deleted 564990737 1669742044
22165 Select 
22166 \family sans
22167 article (A&A)
22168 \family default
22169  in the 
22170 \family sans
22171 Document\SpecialChar menuseparator
22172 Settings
22173 \family default
22174  dialog (OK, that one was obvious).
22175 \end_layout
22176
22177 \begin_layout Itemize
22178
22179 \change_deleted 564990737 1669742044
22180 Don't change the option 
22181 \family sans
22182 Page
22183 \begin_inset space ~
22184 \end_inset
22185
22186 style
22187 \family default
22188 : Leave it set to 
22189 \family sans
22190 default
22191 \family default
22192 .
22193  The whole layout is done by the macros, you shouldn't change anything.
22194 \end_layout
22195
22196 \begin_layout Subsection
22197
22198 \change_deleted 564990737 1669742044
22199 The header block
22200 \end_layout
22201
22202 \begin_layout Standard
22203
22204 \change_deleted 564990737 1669742044
22205 First thing to enter is the header information.
22206  It consists of seven entries, of which some are optional.
22207  They are
22208 \end_layout
22209
22210 \begin_layout Itemize
22211
22212 \change_deleted 564990737 1669742044
22213
22214 \family sans
22215 Title
22216 \family default
22217 : [required] 
22218 \end_layout
22219
22220 \begin_layout Itemize
22221
22222 \change_deleted 564990737 1669742044
22223
22224 \family sans
22225 Subtitle
22226 \family default
22227 : [optional] 
22228 \end_layout
22229
22230 \begin_layout Itemize
22231
22232 \change_deleted 564990737 1669742044
22233
22234 \family sans
22235 Author
22236 \family default
22237 : [required]
22238 \end_layout
22239
22240 \begin_layout Itemize
22241
22242 \change_deleted 564990737 1669742044
22243
22244 \family sans
22245 Address
22246 \family default
22247 : [required]
22248 \end_layout
22249
22250 \begin_layout Itemize
22251
22252 \change_deleted 564990737 1669742044
22253
22254 \family sans
22255 Offprints
22256 \family default
22257 : [optional] if more than one author: whom to contact for offprint requests.
22258 \end_layout
22259
22260 \begin_layout Itemize
22261
22262 \change_deleted 564990737 1669742044
22263
22264 \family sans
22265 Mail
22266 \family default
22267 : [optional] mail address for contacts.
22268 \end_layout
22269
22270 \begin_layout Itemize
22271
22272 \change_deleted 564990737 1669742044
22273
22274 \family sans
22275 Date
22276 \family default
22277 : [required].
22278  Suggested format is 
22279 \family typewriter
22280 Received: <date>; Accepted <date> 
22281 \end_layout
22282
22283 \begin_layout Standard
22284
22285 \change_deleted 564990737 1669742044
22286 There is no need to issue the 
22287 \family typewriter
22288
22289 \backslash
22290 maketitle
22291 \family default
22292  command, this is done automatically by \SpecialChar LyX
22293  when the header is finished.
22294  Although the order of the single header entries doesn't matter it is advised
22295  to keep the above sequence, just to get the best optics and meets the layout
22296  of the real document.
22297 \end_layout
22298
22299 \begin_layout Standard
22300
22301 \change_deleted 564990737 1669742044
22302 If you want to place footnotes in the header block, e.
22303 \begin_inset space \thinspace{}
22304 \end_inset
22305
22306 g.
22307 \begin_inset space \space{}
22308 \end_inset
22309
22310 to state your present address, just use the standard footnote via the menu
22311  
22312 \family sans
22313 Insert\SpecialChar menuseparator
22314 Footnote.
22315
22316 \family default
22317  \SpecialChar LyX
22318  will automagically use the term 
22319 \family typewriter
22320
22321 \backslash
22322 thanks{}
22323 \family default
22324  in that case.
22325 \end_layout
22326
22327 \begin_layout Standard
22328
22329 \change_deleted 564990737 1669742044
22330 Under 
22331 \family sans
22332 Edit\SpecialChar menuseparator
22333 Text Style
22334 \family default
22335 , you'll find two insets which are relevant for the titling:
22336 \end_layout
22337
22338 \begin_layout Itemize
22339
22340 \change_deleted 564990737 1669742044
22341
22342 \family sans
22343 Institute
22344 \family typewriter
22345  
22346 \family default
22347 to mark corresponding author\SpecialChar breakableslash
22348 institute pairs.
22349  The institutes are numbered sequentially as they appear in the 
22350 \family sans
22351 Address
22352 \family default
22353  field, so you have to put a marker to each author.
22354 \end_layout
22355
22356 \begin_layout Itemize
22357
22358 \change_deleted 564990737 1669742044
22359
22360 \family sans
22361 Email
22362 \family default
22363  to supply an email address for fast contact.
22364 \end_layout
22365
22366 \begin_layout Standard
22367
22368 \change_deleted 564990737 1669742044
22369 In addition to these topics, the macros use one additional \SpecialChar LaTeX
22370  command that
22371  has no counterpart in \SpecialChar LyX
22372 :
22373 \end_layout
22374
22375 \begin_layout Itemize
22376
22377 \change_deleted 564990737 1669742044
22378
22379 \family typewriter
22380
22381 \backslash
22382 and
22383 \family default
22384  to separate different names for more than one author and institute, respectivel
22385 y.
22386 \end_layout
22387
22388 \begin_layout Standard
22389
22390 \change_deleted 564990737 1669742044
22391 The appropriate command has to be entered in \SpecialChar LyX
22392  and marked as \SpecialChar LaTeX
22393  code.
22394  See the examples.
22395  
22396 \end_layout
22397
22398 \begin_layout Subsection
22399
22400 \change_deleted 564990737 1669742044
22401 The abstract
22402 \end_layout
22403
22404 \begin_layout Standard
22405
22406 \change_deleted 564990737 1669742044
22407 The abstract should immediately follow the header block.
22408  With version 5 the abstract environment was changed to a command, and there
22409  is now a restriction to only one paragraph.
22410  In addition, it should contain an entry with the keywords.
22411  This is done via the paragraph style 
22412 \family sans
22413 Keywords
22414 \family default
22415 .
22416  Refer to the example paper.
22417 \end_layout
22418
22419 \begin_layout Subsection
22420
22421 \change_deleted 564990737 1669742044
22422 Supported environments
22423 \end_layout
22424
22425 \begin_layout Standard
22426
22427 \change_deleted 564990737 1669742044
22428 The A&A paper layout supports the following environments for structuring
22429  your text:
22430 \end_layout
22431
22432 \begin_layout Itemize
22433
22434 \change_deleted 564990737 1669742044
22435
22436 \family sans
22437 Standard
22438 \end_layout
22439
22440 \begin_layout Itemize
22441
22442 \change_deleted 564990737 1669742044
22443
22444 \family sans
22445 Section
22446 \end_layout
22447
22448 \begin_layout Itemize
22449
22450 \change_deleted 564990737 1669742044
22451
22452 \family sans
22453 Subsection
22454 \end_layout
22455
22456 \begin_layout Itemize
22457
22458 \change_deleted 564990737 1669742044
22459
22460 \family sans
22461 Subsubsection
22462 \end_layout
22463
22464 \begin_layout Itemize
22465
22466 \change_deleted 564990737 1669742044
22467
22468 \family sans
22469 Itemize
22470 \end_layout
22471
22472 \begin_layout Itemize
22473
22474 \change_deleted 564990737 1669742044
22475
22476 \family sans
22477 Enumerate
22478 \end_layout
22479
22480 \begin_layout Itemize
22481
22482 \change_deleted 564990737 1669742044
22483
22484 \family sans
22485 Description
22486 \end_layout
22487
22488 \begin_layout Itemize
22489
22490 \change_deleted 564990737 1669742044
22491
22492 \family sans
22493 Caption
22494 \end_layout
22495
22496 \begin_layout Itemize
22497
22498 \change_deleted 564990737 1669742044
22499
22500 \family sans
22501 Abstract
22502 \end_layout
22503
22504 \begin_layout Itemize
22505
22506 \change_deleted 564990737 1669742044
22507
22508 \family sans
22509 Acknowledgment
22510 \end_layout
22511
22512 \begin_layout Itemize
22513
22514 \change_deleted 564990737 1669742044
22515
22516 \family sans
22517 Bibliography
22518 \end_layout
22519
22520 \begin_layout Itemize
22521
22522 \change_deleted 564990737 1669742044
22523
22524 \family sans
22525 \SpecialChar LaTeX
22526
22527 \end_layout
22528
22529 \begin_layout Subsection
22530
22531 \change_deleted 564990737 1669742044
22532 Commands not supported by \SpecialChar LyX
22533
22534 \end_layout
22535
22536 \begin_layout Standard
22537
22538 \change_deleted 564990737 1669742044
22539 Some commands are not yet supported by the 
22540 \family sans
22541 paper (A&A)
22542 \family default
22543  layout for \SpecialChar LyX
22544 .
22545  Some have already been mentioned.
22546  For the sake of completeness, they are listed all together here:
22547 \end_layout
22548
22549 \begin_layout Itemize
22550
22551 \change_deleted 564990737 1669742044
22552
22553 \family typewriter
22554
22555 \backslash
22556 and
22557 \end_layout
22558
22559 \begin_layout Itemize
22560
22561 \change_deleted 564990737 1669742044
22562
22563 \family typewriter
22564
22565 \backslash
22566 authorrunning
22567 \end_layout
22568
22569 \begin_layout Itemize
22570
22571 \change_deleted 564990737 1669742044
22572
22573 \family typewriter
22574
22575 \backslash
22576 object{}
22577 \end_layout
22578
22579 \begin_layout Itemize
22580
22581 \change_deleted 564990737 1669742044
22582
22583 \family typewriter
22584
22585 \backslash
22586 titlerunning{}
22587 \end_layout
22588
22589 \begin_layout Standard
22590
22591 \change_deleted 564990737 1669742044
22592 If you want to use any of these commands, you have to enter them yourself.
22593  
22594 \series bold
22595 Do not forget to mark them as \SpecialChar LaTeX
22596  code!
22597 \end_layout
22598
22599 \begin_layout Subsection
22600
22601 \change_deleted 564990737 1669742044
22602 Figure and Table Floats
22603 \end_layout
22604
22605 \begin_layout Standard
22606
22607 \change_deleted 564990737 1669742044
22608 \SpecialChar LyX
22609  provides support for the necessary float environments 
22610 \family sans
22611 figure, figure*, table
22612 \family default
22613  and 
22614 \family sans
22615 table*
22616 \family default
22617 , therefore we won't tell much about it here.
22618  Refer to the 
22619 \emph on
22620 User's
22621 \begin_inset space ~
22622 \end_inset
22623
22624 Guide
22625 \emph default
22626 .
22627  Just remember that tables should be left-aligned.
22628  For that, select the table and change the alignment in 
22629 \family sans
22630 Edit\SpecialChar menuseparator
22631 Paragraph
22632 \begin_inset space ~
22633 \end_inset
22634
22635 Settings.
22636 \end_layout
22637
22638 \begin_layout Standard
22639
22640 \change_deleted 564990737 1669742044
22641 There is only one special thing: the figures with caption besides the figure.
22642  To create such a figure, you have to do the following:
22643 \end_layout
22644
22645 \begin_layout Enumerate
22646
22647 \change_deleted 564990737 1669742044
22648 Create a wide figure float: 
22649 \family sans
22650 Insert\SpecialChar menuseparator
22651 Float\SpecialChar menuseparator
22652 Figure
22653 \family default
22654 , then right click in the figure and select 
22655 \family sans
22656 Span
22657 \begin_inset space ~
22658 \end_inset
22659
22660 columns
22661 \family default
22662 .
22663 \end_layout
22664
22665 \begin_layout Enumerate
22666
22667 \change_deleted 564990737 1669742044
22668 Enter your caption text.
22669 \end_layout
22670
22671 \begin_layout Enumerate
22672
22673 \change_deleted 564990737 1669742044
22674 Press 
22675 \family sans
22676 Return
22677 \family default
22678  to move the cursor above the caption.
22679 \end_layout
22680
22681 \begin_layout Enumerate
22682
22683 \change_deleted 564990737 1669742044
22684 Insert your figure
22685 \end_layout
22686
22687 \begin_layout Enumerate
22688
22689 \change_deleted 564990737 1669742044
22690 Position the cursor behind the figure and insert a horizontal fill: 
22691 \family sans
22692 Insert\SpecialChar menuseparator
22693 Special
22694 \begin_inset space ~
22695 \end_inset
22696
22697 Character\SpecialChar menuseparator
22698 Horizontal
22699 \begin_inset space ~
22700 \end_inset
22701
22702 Fill
22703 \family default
22704 .
22705 \end_layout
22706
22707 \begin_layout Enumerate
22708
22709 \change_deleted 564990737 1669742044
22710 Switch to \SpecialChar LaTeX
22711  mode: 
22712 \family sans
22713 M-c
22714 \begin_inset space ~
22715 \end_inset
22716
22717 t
22718 \family default
22719 .
22720 \end_layout
22721
22722 \begin_layout Enumerate
22723
22724 \change_deleted 564990737 1669742044
22725 Enter 
22726 \family typewriter
22727
22728 \backslash
22729 parbox[b]{55mm}{
22730 \family default
22731 .
22732  
22733 \series bold
22734 Do not close the brace!
22735 \end_layout
22736
22737 \begin_layout Enumerate
22738
22739 \change_deleted 564990737 1669742044
22740 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
22741  mode and insert
22742  the closing brace: 
22743 \family sans
22744 M-c
22745 \begin_inset space ~
22746 \end_inset
22747
22748 t
22749 \family default
22750  
22751 \family typewriter
22752 }
22753 \family default
22754 .
22755 \end_layout
22756
22757 \begin_layout Standard
22758
22759 \change_deleted 564990737 1669742044
22760 Also, refer to the figures in the example paper.
22761 \end_layout
22762
22763 \begin_layout Subsection
22764
22765 \change_deleted 564990737 1669742044
22766 Referee layout
22767 \end_layout
22768
22769 \begin_layout Standard
22770
22771 \change_deleted 564990737 1669742044
22772 For submission, the paper has to be formated in a special double-spacing
22773  layout.
22774  For this purpose, you have to give the option 
22775 \family typewriter
22776 referee
22777 \family default
22778  to the document class.
22779  This must be done using the custom class options field in the 
22780 \family sans
22781 Document\SpecialChar menuseparator
22782 Settings
22783 \family default
22784  dialog.
22785  Just enter the string 
22786 \family typewriter
22787 referee
22788 \family default
22789  there.
22790 \end_layout
22791
22792 \begin_layout Subsection
22793
22794 \change_deleted 564990737 1669742044
22795 The example paper
22796 \end_layout
22797
22798 \begin_layout Standard
22799
22800 \change_deleted 564990737 1669742044
22801 The 
22802 \family sans
22803 Examples
22804 \family default
22805  directory contains an example paper written with \SpecialChar LyX
22806 .
22807  It is the example paper from the original macro package, translated to
22808  \SpecialChar LyX
22809 .
22810  Use it for inspiration, and compare the original \SpecialChar LaTeX
22811  code with \SpecialChar LyX
22812  way of writing.
22813 \end_layout
22814
22815 \begin_layout Section
22816
22817 \change_deleted 564990737 1671097429
22818 Dinbrief
22819 \end_layout
22820
22821 \begin_layout Standard
22822
22823 \change_deleted 564990737 1671097429
22824 The document class 
22825 \family sans
22826 dinbrief
22827 \family default
22828  can be used to type letters according to German conventions.
22829  A template file is included in 
22830 \family typewriter
22831 .../lyx/share/templates
22832 \family default
22833  for you to use as a starting point.
22834 \end_layout
22835
22836 \begin_layout Section
22837
22838 \change_deleted 564990737 1671097429
22839 Elsevier Journals
22840 \end_layout
22841
22842 \begin_layout Standard
22843
22844 \change_deleted 564990737 1671097429
22845 See the \SpecialChar LyX
22846  template file 
22847 \family typewriter
22848 elsarticle.lyx
22849 \family default
22850 .
22851  It contains all infos you need.
22852 \end_layout
22853
22854 \begin_layout Section
22855
22856 \change_deleted 564990737 1669755802
22857 ijmpc and ijmpd
22858 \end_layout
22859
22860 \begin_layout Standard
22861
22862 \change_deleted 564990737 1669755802
22863 by 
22864 \noun on
22865 Panayotis Papasotiriou
22866 \end_layout
22867
22868 \begin_layout Subsection
22869
22870 \change_deleted 564990737 1669755802
22871 Overview
22872 \end_layout
22873
22874 \begin_layout Standard
22875
22876 \change_deleted 564990737 1669755802
22877 The ijmpc package is a set of macros that facilitates electronic manuscript
22878  submission to the 
22879 \emph on
22880 International Journal of Modern Physics C
22881 \emph default
22882 .
22883  Similarly, the ijmpd package is for creating manuscripts to be submitted
22884  to the 
22885 \emph on
22886 International Journal of Modern Physics D
22887 \emph default
22888 .
22889  Both journals are published by World Scientific.
22890  The corresponding document classes are named 
22891 \family typewriter
22892 ws-ijmpc.cls
22893 \family default
22894  and 
22895 \family typewriter
22896 ws-ijmpd.cls
22897 \family default
22898 , respectively.
22899  These files, together with instructions for the authors, can be downloaded
22900  from the sites 
22901 \begin_inset Flex URL
22902 status collapsed
22903
22904 \begin_layout Plain Layout
22905
22906 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
22907 \end_layout
22908
22909 \end_inset
22910
22911  and 
22912 \begin_inset Flex URL
22913 status collapsed
22914
22915 \begin_layout Plain Layout
22916
22917 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
22918 \end_layout
22919
22920 \end_inset
22921
22922 .
22923  Both packages are modified versions of the standard 
22924 \begin_inset Quotes eld
22925 \end_inset
22926
22927 article
22928 \begin_inset Quotes erd
22929 \end_inset
22930
22931  package, and they are almost (but not exactly) identical.
22932  Most of their features are supported by \SpecialChar LyX
22933 .
22934  I have used \SpecialChar LyX
22935  successfully to write articles submitted to both journals
22936  without any problem.
22937 \end_layout
22938
22939 \begin_layout Subsection
22940
22941 \change_deleted 564990737 1669755802
22942 Writing a paper
22943 \end_layout
22944
22945 \begin_layout Standard
22946
22947 \change_deleted 564990737 1669755802
22948 As usual, the easiest way to write a paper is to start with a template.
22949  Click on 
22950 \family sans
22951 File\SpecialChar menuseparator
22952 New from
22953 \family default
22954  
22955 \family sans
22956 Template
22957 \family default
22958 , then choose the 
22959 \family typewriter
22960 ijmpc.lyx
22961 \family default
22962  or 
22963 \family typewriter
22964 ijmpd.lyx
22965 \family default
22966  template.
22967  This will give an (almost) empty document that includes the most common
22968  fields found in a manuscript.
22969  Simply overwrite the existing text (including the brackets, 
22970 \family typewriter
22971 <>
22972 \family default
22973 ) with your text.
22974  You should keep in mind the following remarks.
22975 \end_layout
22976
22977 \begin_layout Enumerate
22978
22979 \change_deleted 564990737 1669755802
22980 \SpecialChar LyX
22981  won't let you change the font size and the page style of the document,
22982  because such modifications are not allowed by both packages.
22983 \end_layout
22984
22985 \begin_layout Enumerate
22986
22987 \change_deleted 564990737 1669755802
22988 The language of the document should not be changed.
22989  Before previewing your paper, be sure that the babel package is not used.
22990  To do this, click on 
22991 \begin_inset Info
22992 type  "menu"
22993 arg   "dialog-show document"
22994 \end_inset
22995
22996  
22997 \family sans
22998 \SpecialChar menuseparator
22999 Language
23000 \family default
23001 , and select 
23002 \begin_inset Quotes eld
23003 \end_inset
23004
23005 None
23006 \begin_inset Quotes erd
23007 \end_inset
23008
23009  as 
23010 \family sans
23011 Language Package
23012 \family default
23013 .
23014 \end_layout
23015
23016 \begin_layout Enumerate
23017
23018 \change_deleted 564990737 1669755802
23019 The 
23020 \begin_inset Quotes eld
23021 \end_inset
23022
23023 Keywords
23024 \begin_inset Quotes erd
23025 \end_inset
23026
23027  style must be used to define keywords.
23028 \end_layout
23029
23030 \begin_layout Enumerate
23031
23032 \change_deleted 564990737 1669755802
23033 The ijmpc package provides a style named 
23034 \begin_inset Quotes eld
23035 \end_inset
23036
23037 Classification Codes
23038 \begin_inset Quotes erd
23039 \end_inset
23040
23041 , which can be used to define classification codes, such as PACS numbers.
23042  Note that this facility is not supported by the ijmpd package.
23043 \end_layout
23044
23045 \begin_layout Enumerate
23046
23047 \change_deleted 564990737 1669755802
23048 Several new environments are available: 
23049 \begin_inset Quotes eld
23050 \end_inset
23051
23052 Definition
23053 \begin_inset Quotes erd
23054 \end_inset
23055
23056
23057 \begin_inset Quotes eld
23058 \end_inset
23059
23060 Step
23061 \begin_inset Quotes erd
23062 \end_inset
23063
23064
23065 \begin_inset Quotes eld
23066 \end_inset
23067
23068 Example
23069 \begin_inset Quotes erd
23070 \end_inset
23071
23072
23073 \begin_inset Quotes eld
23074 \end_inset
23075
23076 Remark
23077 \begin_inset Quotes erd
23078 \end_inset
23079
23080
23081 \begin_inset Quotes eld
23082 \end_inset
23083
23084 Notation
23085 \begin_inset Quotes erd
23086 \end_inset
23087
23088
23089 \begin_inset Quotes eld
23090 \end_inset
23091
23092 Theorem
23093 \begin_inset Quotes erd
23094 \end_inset
23095
23096
23097 \begin_inset Quotes eld
23098 \end_inset
23099
23100 Proof
23101 \begin_inset Quotes erd
23102 \end_inset
23103
23104
23105 \begin_inset Quotes eld
23106 \end_inset
23107
23108 Corollary
23109 \begin_inset Quotes erd
23110 \end_inset
23111
23112
23113 \begin_inset Quotes eld
23114 \end_inset
23115
23116 Lemma
23117 \begin_inset Quotes erd
23118 \end_inset
23119
23120
23121 \begin_inset Quotes eld
23122 \end_inset
23123
23124 Proposition
23125 \begin_inset Quotes erd
23126 \end_inset
23127
23128
23129 \begin_inset Quotes eld
23130 \end_inset
23131
23132 Prop
23133 \begin_inset Quotes erd
23134 \end_inset
23135
23136
23137 \begin_inset Quotes eld
23138 \end_inset
23139
23140 Question
23141 \begin_inset Quotes erd
23142 \end_inset
23143
23144
23145 \begin_inset Quotes eld
23146 \end_inset
23147
23148 Claim
23149 \begin_inset Quotes erd
23150 \end_inset
23151
23152 , and 
23153 \begin_inset Quotes eld
23154 \end_inset
23155
23156 Conjecture
23157 \begin_inset Quotes erd
23158 \end_inset
23159
23160 .
23161  Their use is more or less obvious.
23162  \SpecialChar LyX
23163  supports all these environments; it will use the proper label, text style,
23164  and numbering scheme for each of them.
23165 \end_layout
23166
23167 \begin_layout Enumerate
23168
23169 \change_deleted 564990737 1669755802
23170 Both packages use basic citations; the natbib package should not be used.
23171  In \SpecialChar LyX
23172 , citation references are shown as usual; in the output, citations are
23173  shown as superscripts.
23174  If you want to use a citation as normal text, you should use the 
23175 \family typewriter
23176 refcite
23177 \family default
23178  command, e.
23179 \begin_inset space \thinspace{}
23180 \end_inset
23181
23182 g.
23183 \begin_inset space \space{}
23184 \end_inset
23185
23186
23187 \begin_inset Quotes eld
23188 \end_inset
23189
23190 See Ref.
23191 \begin_inset space \space{}
23192 \end_inset
23193
23194
23195 \family typewriter
23196
23197 \backslash
23198 refcite{key}
23199 \family default
23200
23201 \begin_inset Quotes erd
23202 \end_inset
23203
23204 .
23205 \end_layout
23206
23207 \begin_layout Enumerate
23208
23209 \change_deleted 564990737 1669755802
23210 There is no 
23211 \begin_inset Quotes eld
23212 \end_inset
23213
23214 Acknowledgments
23215 \begin_inset Quotes erd
23216 \end_inset
23217
23218  section in both packages.
23219  To put acknowledgments, just use the 
23220 \begin_inset Quotes eld
23221 \end_inset
23222
23223 Section*
23224 \begin_inset Quotes erd
23225 \end_inset
23226
23227  environment.
23228 \end_layout
23229
23230 \begin_layout Enumerate
23231
23232 \change_deleted 564990737 1669755802
23233 Appendices may be added to the paper, 
23234 \emph on
23235 after
23236 \emph default
23237  the Acknowledgments and 
23238 \shape italic
23239 before
23240 \shape default
23241  the References.
23242  \SpecialChar LyX
23243  provides a special environment, called 
23244 \begin_inset Quotes eld
23245 \end_inset
23246
23247 Appendices Section
23248 \begin_inset Quotes erd
23249 \end_inset
23250
23251  which marks the beginning of the appendices.
23252  This environment should be left blank; it just sends a \SpecialChar LaTeX
23253  command, but nothing
23254  is really printed.
23255  In \SpecialChar LyX
23256 , the word 
23257 \begin_inset Quotes eld
23258 \end_inset
23259
23260 Appendix
23261 \begin_inset Quotes erd
23262 \end_inset
23263
23264  is printed with blue letters, as a signal that all sections after that
23265  point are appendices.
23266  To write an appendix, use the 
23267 \begin_inset Quotes eld
23268 \end_inset
23269
23270 Appendix
23271 \begin_inset Quotes erd
23272 \end_inset
23273
23274  environment.
23275  \SpecialChar LyX
23276  will number each appendix with capital letters, as required by both journals.
23277  Note that 
23278 \begin_inset Quotes eld
23279 \end_inset
23280
23281 Appendices Section
23282 \begin_inset Quotes erd
23283 \end_inset
23284
23285  
23286 \emph on
23287 must
23288 \emph default
23289  be present before the first appendix; if not, all appendices will be numbered
23290  as normal sections in the output.
23291 \end_layout
23292
23293 \begin_layout Enumerate
23294
23295 \change_deleted 564990737 1669755802
23296 The ijmpc and the ijmpd packages use the 
23297 \family typewriter
23298 tbl
23299 \family default
23300  command to implement table captions.
23301  As a result, a table created by \SpecialChar LyX
23302  is printed correctly, but its caption
23303  is ignored.
23304  However, you can use some \SpecialChar TeX
23305  code to overcome this problem, so that captions
23306  are printed as expected.
23307  To do so, create a float table as usual, remove the caption, and replace
23308  it with the \SpecialChar TeX
23309  code 
23310 \family typewriter
23311
23312 \backslash
23313 tbl{
23314 \emph on
23315 your table caption
23316 \emph default
23317 }{
23318 \family default
23319  (sic); you must also the \SpecialChar TeX
23320  code 
23321 \family typewriter
23322 }
23323 \family default
23324  immediately after the tabular material.
23325  Study the example table included in the template files to see how this
23326  trick is implemented.
23327  Alternatively, If you need table captions, you should implement the whole
23328  table float in a 
23329 \family typewriter
23330 .tex
23331 \family default
23332  file, then include this file to the \SpecialChar LyX
23333  document (
23334 \family sans
23335 Insert\SpecialChar menuseparator
23336 File\SpecialChar menuseparator
23337 Child
23338 \begin_inset space ~
23339 \end_inset
23340
23341 Document
23342 \family default
23343 ).
23344  Details on how to create a table float can be found in the files 
23345 \family typewriter
23346 ws-ijmpc.tex
23347 \family default
23348  and 
23349 \family typewriter
23350 ws-ijmpd.tex
23351 \family default
23352 , included in the corresponding packages.
23353 \end_layout
23354
23355 \begin_layout Subsection
23356
23357 \change_deleted 564990737 1669755802
23358 Preparing a paper for submission
23359 \end_layout
23360
23361 \begin_layout Standard
23362
23363 \change_deleted 564990737 1669755802
23364 Before you submit your paper you must export the \SpecialChar LyX
23365  document as a \SpecialChar LaTeX
23366  file (
23367 \family sans
23368 File\SpecialChar menuseparator
23369 Export\SpecialChar menuseparator
23370 \SpecialChar LaTeX
23371
23372 \family default
23373 )
23374 \begin_inset Foot
23375 status open
23376
23377 \begin_layout Plain Layout
23378 Actually you have the choice between \SpecialChar LaTeX
23379  (plain) and pdflatex.
23380  If you intend to use pdflatex to prepare the paper, you should use the
23381  pdflatex option so that included graphics are converted to PDF format,
23382  ready for use by pdflatex.
23383 \end_layout
23384
23385 \end_inset
23386
23387 , then make the following changes to the resulting 
23388 \family typewriter
23389 .tex
23390 \family default
23391  file.
23392 \end_layout
23393
23394 \begin_layout Enumerate
23395
23396 \change_deleted 564990737 1669755802
23397 Remove the comment lines before the 
23398 \family typewriter
23399
23400 \backslash
23401 documentclass
23402 \family default
23403  command.
23404 \end_layout
23405
23406 \begin_layout Enumerate
23407
23408 \change_deleted 564990737 1669755802
23409 Remove everything between (and including) the 
23410 \family typewriter
23411
23412 \backslash
23413 makeatletter
23414 \family default
23415  and 
23416 \family typewriter
23417
23418 \backslash
23419 makeatother
23420 \family default
23421  commands, except for any commands you specifically put into the \SpecialChar LaTeX
23422  preamble.
23423 \end_layout
23424
23425 \begin_layout Standard
23426
23427 \change_deleted 564990737 1669755802
23428 The modified 
23429 \family typewriter
23430 .tex
23431 \family default
23432  file should be saved and processed through \SpecialChar LaTeX
23433  as many times as necessary.
23434  You may also want to check the resulting 
23435 \family typewriter
23436 .dvi
23437 \family default
23438  document.
23439 \change_unchanged
23440
23441 \end_layout
23442
23443 \begin_layout Section
23444
23445 \change_deleted 564990737 1669801478
23446 iopart
23447 \end_layout
23448
23449 \begin_layout Standard
23450
23451 \change_deleted 564990737 1669801478
23452 by 
23453 \noun on
23454 Uwe Stöhr
23455 \end_layout
23456
23457 \begin_layout Subsection
23458
23459 \change_deleted 564990737 1669801478
23460 Overview
23461 \end_layout
23462
23463 \begin_layout Standard
23464
23465 \change_deleted 564990737 1669801478
23466 The iopart package provides a document class to create electronic manuscript
23467  submission to the journals published by the Institute of Physics.
23468  Instructions for the authors how to create a paper using the iopart class
23469  can be downloaded together with the iopart package from the site 
23470 \begin_inset Flex URL
23471 status collapsed
23472
23473 \begin_layout Plain Layout
23474
23475 ftp://ftp.iop.org/pub/journals/latex2e
23476 \end_layout
23477
23478 \end_inset
23479
23480 .
23481 \end_layout
23482
23483 \begin_layout Subsection
23484
23485 \change_deleted 564990737 1669801478
23486 Writing a paper
23487 \end_layout
23488
23489 \begin_layout Standard
23490
23491 \change_deleted 564990737 1669801478
23492 The easiest way to write a paper is to start with the template 
23493 \emph on
23494 IOP-article.lyx
23495 \emph default
23496  that is available via 
23497 \family sans
23498 File\SpecialChar menuseparator
23499 New From Template
23500 \family default
23501  The template explains how to use the special text environments.
23502  Here are the most important advices:
23503 \end_layout
23504
23505 \begin_layout Itemize
23506
23507 \change_deleted 564990737 1669801478
23508 To be able to compile your document to a PDF, PS, or DVI, ensure that the
23509  no AMS packages are loaded in 
23510 \family sans
23511 Document\SpecialChar menuseparator
23512 Settings\SpecialChar menuseparator
23513 Math Options
23514 \family default
23515 !
23516 \end_layout
23517
23518 \begin_layout Itemize
23519
23520 \change_deleted 564990737 1669801478
23521
23522 \size normal
23523 The title environment defines the kind of your paper.
23524  So use one of the following environments for the title:
23525 \end_layout
23526
23527 \begin_deeper
23528 \begin_layout Itemize
23529
23530 \change_deleted 564990737 1669801478
23531
23532 \family sans
23533 \size normal
23534 Title
23535 \family default
23536  for a Paper
23537 \end_layout
23538
23539 \begin_layout Itemize
23540
23541 \change_deleted 564990737 1669801478
23542
23543 \family sans
23544 \size normal
23545 Review
23546 \family default
23547  for a Review
23548 \end_layout
23549
23550 \begin_layout Itemize
23551
23552 \change_deleted 564990737 1669801478
23553
23554 \family sans
23555 \size normal
23556 Topical
23557 \family default
23558  for a Topical review
23559 \end_layout
23560
23561 \begin_layout Itemize
23562
23563 \change_deleted 564990737 1669801478
23564
23565 \family sans
23566 \size normal
23567 Comment
23568 \family default
23569  for a Comment
23570 \end_layout
23571
23572 \begin_layout Itemize
23573
23574 \change_deleted 564990737 1669801478
23575
23576 \family sans
23577 \size normal
23578 Note
23579 \family default
23580  for a Note
23581 \end_layout
23582
23583 \begin_layout Itemize
23584
23585 \change_deleted 564990737 1669801478
23586
23587 \family sans
23588 \size normal
23589 Paper
23590 \family default
23591  for a Paper (same as Title)
23592 \end_layout
23593
23594 \begin_layout Itemize
23595
23596 \change_deleted 564990737 1669801478
23597
23598 \family sans
23599 \size normal
23600 Prelim
23601 \family default
23602  for a Preliminary communication
23603 \end_layout
23604
23605 \begin_layout Itemize
23606
23607 \change_deleted 564990737 1669801478
23608
23609 \family sans
23610 \size normal
23611 Rapid
23612 \family default
23613  for a Rapid communication
23614 \end_layout
23615
23616 \begin_layout Itemize
23617
23618 \change_deleted 564990737 1669801478
23619
23620 \family sans
23621 \size normal
23622 Letter
23623 \family default
23624  for a Letter to the editor
23625 \end_layout
23626
23627 \end_deeper
23628 \begin_layout Itemize
23629
23630 \change_deleted 564990737 1669801478
23631
23632 \size normal
23633 All title environments except of 
23634 \family sans
23635 Letter
23636 \family default
23637  can have an optional short title.
23638 \end_layout
23639
23640 \begin_layout Itemize
23641
23642 \change_deleted 564990737 1669801478
23643 There is a general title environment 
23644 \family sans
23645 Article
23646 \family default
23647  which is not directly supported by \SpecialChar LyX
23648 .
23649  This can be used as \SpecialChar TeX
23650  code when your document doesn't fit into one of the
23651  other title types.
23652 \end_layout
23653
23654 \begin_layout Standard
23655
23656 \change_deleted 564990737 1669801478
23657 For more informations like hints for special table and formula formatting,
23658  look at the IOP author guidelines.
23659 \change_unchanged
23660
23661 \end_layout
23662
23663 \begin_layout Section
23664
23665 \change_deleted 564990737 1670317155
23666 Kluwer
23667 \end_layout
23668
23669 \begin_layout Standard
23670
23671 \change_deleted 564990737 1670317155
23672 by 
23673 \noun on
23674 Panayotis Papasotiriou
23675 \end_layout
23676
23677 \begin_layout Subsection
23678
23679 \change_deleted 564990737 1670317155
23680 Overview
23681 \end_layout
23682
23683 \begin_layout Standard
23684
23685 \change_deleted 564990737 1670317155
23686 The Kluwer package is a set of macros produced by Kluwer Academic Publishers
23687  that facilitates electronic manuscript submission to the journals they
23688  publish.
23689  Most known of them (at least in my domain of interest) are 
23690 \emph on
23691 Astrophysics and Space Science
23692 \emph default
23693  and 
23694 \emph on
23695 Solar Physics
23696 \emph default
23697 , but there are many others (see a complete list at 
23698 \begin_inset Flex URL
23699 status collapsed
23700
23701 \begin_layout Plain Layout
23702
23703 http://www.wkap.nl/jrnllist.htm/JRNLHOME
23704 \end_layout
23705
23706 \end_inset
23707
23708 ).
23709  The Kluwer package may be downloaded from the site 
23710 \begin_inset Flex URL
23711 status collapsed
23712
23713 \begin_layout Plain Layout
23714
23715 http://www.wkap.nl/kaphtml.htm/STYLEFILES
23716 \end_layout
23717
23718 \end_inset
23719
23720 .
23721  A complete user guide is contained in that package (but it can also be
23722  downloaded separately).
23723 \end_layout
23724
23725 \begin_layout Standard
23726
23727 \change_deleted 564990737 1670317155
23728 \SpecialChar LyX
23729  supports many features of the package but not everything.
23730  However, the \SpecialChar TeX
23731  code needed is reduced to some 
23732 \begin_inset Quotes eld
23733 \end_inset
23734
23735 peculiar
23736 \begin_inset Quotes erd
23737 \end_inset
23738
23739  commands of the package (see
23740 \begin_inset space ~
23741 \end_inset
23742
23743
23744 \begin_inset CommandInset ref
23745 LatexCommand ref
23746 reference "subsec:kluwer_peculiarities"
23747
23748 \end_inset
23749
23750 ).
23751  I have recently used \SpecialChar LyX
23752  to write an article submitted to the 
23753 \emph on
23754 Astrophysics and Space Science
23755 \emph default
23756  without any problem.
23757 \end_layout
23758
23759 \begin_layout Subsection
23760
23761 \change_deleted 564990737 1670317155
23762 Writing a paper
23763 \end_layout
23764
23765 \begin_layout Standard
23766
23767 \change_deleted 564990737 1670317155
23768 The easiest way to write a paper is to start with the Kluwer template file.
23769  Click on 
23770 \family sans
23771 File\SpecialChar menuseparator
23772 New from
23773 \family default
23774  
23775 \family sans
23776 Template
23777 \family default
23778 , then choose the 
23779 \family typewriter
23780 kluwer.lyx
23781 \family default
23782  template.
23783  This will give an (almost) empty document that includes the most common
23784  fields found in a manuscript and a short description of their use.
23785  As in most templates, simply overwrite the existing text (including the
23786  brackets, 
23787 \family typewriter
23788 <>
23789 \family default
23790 ) with the correct information.
23791 \end_layout
23792
23793 \begin_layout Subsection
23794
23795 \change_deleted 564990737 1670317155
23796 Preparing a paper for submission
23797 \end_layout
23798
23799 \begin_layout Standard
23800
23801 \change_deleted 564990737 1670317155
23802 As in the AAS\SpecialChar TeX
23803  package, before you submit your paper to a journal you must
23804  
23805 \begin_inset Quotes eld
23806 \end_inset
23807
23808 postprocess
23809 \begin_inset Quotes erd
23810 \end_inset
23811
23812  it as follows.
23813 \end_layout
23814
23815 \begin_layout Enumerate
23816
23817 \change_deleted 564990737 1670317155
23818 Export your paper as a \SpecialChar LaTeX
23819  file.
23820  To do this, click on 
23821 \family sans
23822 File\SpecialChar menuseparator
23823 Export\SpecialChar menuseparator
23824 \SpecialChar LaTeX
23825
23826 \family default
23827 .
23828  
23829 \end_layout
23830
23831 \begin_layout Enumerate
23832
23833 \change_deleted 564990737 1670317155
23834 Edit the resulting 
23835 \family typewriter
23836 .tex
23837 \family default
23838  file with a text editor and make the following changes
23839 \end_layout
23840
23841 \begin_deeper
23842 \begin_layout Enumerate
23843
23844 \change_deleted 564990737 1670317155
23845 remove the comment lines before the 
23846 \family typewriter
23847
23848 \backslash
23849 documentclass
23850 \family default
23851  command,
23852 \end_layout
23853
23854 \begin_layout Enumerate
23855
23856 \change_deleted 564990737 1670317155
23857 remove everything between (and including) the 
23858 \family typewriter
23859
23860 \backslash
23861 makeatletter
23862 \family default
23863  and 
23864 \family typewriter
23865
23866 \backslash
23867 makeatother
23868 \family default
23869  commands, except for any commands you specifically put into the \SpecialChar LaTeX
23870  preamble.
23871 \end_layout
23872
23873 \begin_layout Standard
23874
23875 \change_deleted 564990737 1670317155
23876 Save the resulting 
23877 \family typewriter
23878 .tex
23879 \family default
23880  file.
23881 \end_layout
23882
23883 \end_deeper
23884 \begin_layout Enumerate
23885
23886 \change_deleted 564990737 1670317155
23887 Run the 
23888 \family typewriter
23889 .tex
23890 \family default
23891  file through \SpecialChar LaTeX
23892  as many times as necessary (usually up to three).
23893 \end_layout
23894
23895 \begin_layout Enumerate
23896
23897 \change_deleted 564990737 1670317155
23898 View the resulting 
23899 \family typewriter
23900 .dvi
23901 \family default
23902  document using, e.
23903 \begin_inset space \thinspace{}
23904 \end_inset
23905
23906 g.
23907 \begin_inset space \space{}
23908 \end_inset
23909
23910
23911 \family sans
23912 xdvi
23913 \family default
23914 , and check if everything is OK (it should, if you didn't make any mistake).
23915 \end_layout
23916
23917 \begin_layout Subsection
23918
23919 \change_deleted 564990737 1670317155
23920 \begin_inset Quotes eld
23921 \end_inset
23922
23923 Peculiarities
23924 \begin_inset Quotes erd
23925 \end_inset
23926
23927  of the Kluwer package
23928 \begin_inset CommandInset label
23929 LatexCommand label
23930 name "subsec:kluwer_peculiarities"
23931
23932 \end_inset
23933
23934
23935 \end_layout
23936
23937 \begin_layout Standard
23938
23939 \change_deleted 564990737 1670317155
23940 The Kluwer package has the following 
23941 \begin_inset Quotes eld
23942 \end_inset
23943
23944 peculiarities
23945 \begin_inset Quotes erd
23946 \end_inset
23947
23948 .
23949 \end_layout
23950
23951 \begin_layout Enumerate
23952
23953 \change_deleted 564990737 1670317155
23954 It is possible to write multiple articles in the same \SpecialChar LaTeX
23955  file
23956 \begin_inset Foot
23957 status collapsed
23958
23959 \begin_layout Plain Layout
23960 I can't imagine any good reason to do this.
23961 \end_layout
23962
23963 \end_inset
23964
23965 .
23966  Each article must be included in the environment 
23967 \begin_inset Quotes eld
23968 \end_inset
23969
23970 article
23971 \begin_inset Quotes erd
23972 \end_inset
23973
23974 .
23975  Unfortunately, this environment cannot be omitted, even if you write just
23976  one article.
23977  Therefore, each article starts with the command 
23978 \family typewriter
23979
23980 \backslash
23981 begin{article}
23982 \family default
23983  and, obviously, ends with the command 
23984 \family typewriter
23985
23986 \backslash
23987 end{article}
23988 \family default
23989 .
23990  Although this can be implemented in \SpecialChar LyX
23991 , I didn't included it, since it looks
23992  ugly and can confuse the novice user.
23993  Therefore, you need to enter them directly and mark them as \SpecialChar LaTeX
23994  code (the
23995  well-known 
23996 \begin_inset Quotes eld
23997 \end_inset
23998
23999 \SpecialChar TeX
24000  code
24001 \begin_inset Quotes erd
24002 \end_inset
24003
24004 ).
24005 \end_layout
24006
24007 \begin_layout Enumerate
24008
24009 \change_deleted 564990737 1670317155
24010 Information given at the beginning of the article (i.
24011 \begin_inset space \thinspace{}
24012 \end_inset
24013
24014 e.
24015 \begin_inset space \space{}
24016 \end_inset
24017
24018 title, subtitle, author, institution, running title, running author, abstract
24019  and keywords) must be included in an environment called 
24020 \begin_inset Quotes eld
24021 \end_inset
24022
24023 opening
24024 \begin_inset Quotes erd
24025 \end_inset
24026
24027 .
24028  This is not implemented in \SpecialChar LyX
24029 , so you must enter title, subtitle etc.
24030 \begin_inset space ~
24031 \end_inset
24032
24033 between two \SpecialChar TeX
24034  code lines (
24035 \family typewriter
24036
24037 \backslash
24038 begin{opening}
24039 \family default
24040  and 
24041 \family typewriter
24042
24043 \backslash
24044 end{opening}
24045 \family default
24046 ).
24047 \end_layout
24048
24049 \begin_layout Enumerate
24050
24051 \change_deleted 564990737 1670317155
24052 According to the user manual, the label of each bibliography item must be
24053  written as 
24054 \family typewriter
24055
24056 \backslash
24057 protect
24058 \backslash
24059 citeauthoryear{
24060 \family default
24061 \emph on
24062 author(s)
24063 \family typewriter
24064 \emph default
24065 }{
24066 \family default
24067 \emph on
24068 year
24069 \family typewriter
24070 \emph default
24071 }
24072 \family default
24073 .
24074 \end_layout
24075
24076 \begin_layout Standard
24077
24078 \change_deleted 564990737 1670317155
24079 The 
24080 \family typewriter
24081 kluwer.lyx
24082 \family default
24083  template takes care of all these 
24084 \begin_inset Quotes eld
24085 \end_inset
24086
24087 peculiarities
24088 \begin_inset Quotes erd
24089 \end_inset
24090
24091 .
24092  If you start a new paper using this template you don't need to do anything
24093  special.
24094  Just 
24095 \end_layout
24096
24097 \begin_layout Enumerate
24098
24099 \change_deleted 564990737 1670317155
24100 don't delete the \SpecialChar TeX
24101  code included in the template, and
24102 \end_layout
24103
24104 \begin_layout Enumerate
24105
24106 \change_deleted 564990737 1670317155
24107 copy the example bibliography item included in the template and modify it
24108  as necessary to enter new bibliography items.
24109 \end_layout
24110
24111 \begin_layout Section
24112
24113 \change_deleted 564990737 1671097446
24114 Paper
24115 \end_layout
24116
24117 \begin_layout Standard
24118
24119 \change_deleted 564990737 1671097446
24120 The document class 
24121 \family sans
24122 paper
24123 \family default
24124  provides an alternative to the standard 
24125 \family sans
24126 article
24127 \family default
24128  class.
24129  It provides similar functionality, but you might prefer this layout with
24130  sans serif sections, headings, and more.
24131 \end_layout
24132
24133 \begin_layout Section
24134
24135 \change_deleted 564990737 1671097446
24136 Springer Journals (
24137 \family sans
24138 svjour
24139 \family default
24140 )
24141 \end_layout
24142
24143 \begin_layout Standard
24144
24145 \change_deleted 564990737 1671097446
24146 by 
24147 \noun on
24148 Martin Vermeer
24149 \end_layout
24150
24151 \begin_layout Subsection
24152
24153 \change_deleted 564990737 1671097446
24154 Description
24155 \end_layout
24156
24157 \begin_layout Standard
24158
24159 \change_deleted 564990737 1671097446
24160 These are the layout files for some of the journal formats used by Springer
24161  Verlag and listed on 
24162 \begin_inset Flex URL
24163 status collapsed
24164
24165 \begin_layout Plain Layout
24166
24167 http://www.springer.de/author/tex/help-journals.html
24168 \end_layout
24169
24170 \end_inset
24171
24172 , where you should also go to fetch the class files (yes, these are \SpecialChar LaTeX2e
24173  now!).
24174  It is a modular system: the things common to all journals are implemented
24175  in 
24176 \family typewriter
24177 svjour.inc
24178 \family default
24179 , which journal-specific layout files (such as, e.
24180 \begin_inset space \thinspace{}
24181 \end_inset
24182
24183 g.
24184 \begin_inset space \space{}
24185 \end_inset
24186
24187
24188 \family typewriter
24189 svjog.layout
24190 \family default
24191  for Journal of Geodesy) can include.
24192 \end_layout
24193
24194 \begin_layout Standard
24195
24196 \change_deleted 564990737 1671097446
24197 This means that implementing support for any other Springer journal on this
24198  list is as simple as writing your own 
24199 \family typewriter
24200 sv
24201 \family default
24202 <myjournal>
24203 \family typewriter
24204 .layout
24205 \family default
24206  file following the outline given in 
24207 \family typewriter
24208 svjog.layout
24209 \family default
24210 .
24211  
24212 \end_layout
24213
24214 \begin_layout Standard
24215
24216 \change_deleted 564990737 1671097446
24217 It is reasonably well tested only for the Journal of Geodesy.
24218  
24219 \family typewriter
24220 svjour
24221 \family default
24222  and 
24223 \family typewriter
24224 svjog
24225 \family default
24226  come with the standard \SpecialChar LyX
24227  distribution.
24228  Install the relevant class file (downloaded from Springer) in a proper
24229  directory, reconfigure \SpecialChar LaTeX
24230  (in the te\SpecialChar TeX
24231  case by running 
24232 \family typewriter
24233 texhash
24234 \family default
24235 , as root if necessary — doesn't \SpecialChar LyX
24236  take care of this?), reconfigure \SpecialChar LyX
24237  and
24238  it should work.
24239 \end_layout
24240
24241 \begin_layout Subsection
24242
24243 \change_deleted 564990737 1671097446
24244 New styles
24245 \end_layout
24246
24247 \begin_layout Standard
24248
24249 \change_deleted 564990737 1671097446
24250 A large number of theorem-like styles — 
24251 \family sans
24252 Claim, Conjecture,
24253 \family default
24254  
24255 \family sans
24256 \SpecialChar ldots
24257 Theorem
24258 \family default
24259 .
24260 \end_layout
24261
24262 \begin_layout Standard
24263
24264 \change_deleted 564990737 1671097446
24265
24266 \family sans
24267 Headnote, Dedication, Subtitle, Running_\SpecialChar LaTeX
24268 _Title, Author_Running, Institute,
24269  Mail, Offprints, Keywords, Acknowledgements, Acknowledgement
24270 \family default
24271 .
24272  See the Springer class file documentation for details.
24273 \end_layout
24274
24275 \begin_layout Subsection
24276
24277 \change_deleted 564990737 1671097446
24278 Supported journals
24279 \end_layout
24280
24281 \begin_layout Itemize
24282
24283 \change_deleted 564990737 1671097446
24284
24285 \emph on
24286 Journal of Geodesy
24287 \emph default
24288
24289 \family typewriter
24290 svjog.layout
24291 \family default
24292  — Martin Vermeer
24293 \end_layout
24294
24295 \begin_layout Itemize
24296
24297 \change_deleted 564990737 1671097446
24298
24299 \emph on
24300 Probability Theory and Related Fields
24301 \emph default
24302
24303 \family typewriter
24304 svprobth.layout
24305 \family default
24306  — Jean-Marc Lasgouttes
24307 \end_layout
24308
24309 \begin_layout Standard
24310
24311 \change_deleted 564990737 1671097446
24312 Add your own, it isn't so hard!
24313 \end_layout
24314
24315 \begin_layout Subsection
24316
24317 \change_deleted 564990737 1671097446
24318 Credits
24319 \end_layout
24320
24321 \begin_layout Standard
24322
24323 \change_deleted 564990737 1671097446
24324 These files are partly based on the older 
24325 \family typewriter
24326 ejour2.layout
24327 \family default
24328 , which was again based on a tinkered-with version of an old \SpecialChar LaTeX
24329  2.09 style
24330  file from Springer.
24331  All this, and the 
24332 \family typewriter
24333 ejour2
24334 \family default
24335  layout, are now defunct.
24336  Jean-Marc Lasgouttes helped out big in making me find my way around the
24337  \SpecialChar LyX
24338  layout file mechanism.
24339 \end_layout
24340
24341 \begin_layout Subsection
24342
24343 \change_deleted 564990737 1671097446
24344 Bugs
24345 \end_layout
24346
24347 \begin_layout Standard
24348
24349 \change_deleted 564990737 1671097446
24350 Probably.
24351  But probably less than in the old hacked-\SpecialChar LaTeX
24352  
24353 \family typewriter
24354 ejour2
24355 \family default
24356 .
24357 \end_layout
24358
24359 \begin_layout Chapter
24360 \SpecialChar LyX
24361  Features needing Extra Software
24362 \end_layout
24363
24364 \begin_layout Section
24365 Checking \SpecialChar TeX
24366
24367 \end_layout
24368
24369 \begin_layout Standard
24370 by 
24371 \noun on
24372 Asger Alstrup
24373 \end_layout
24374
24375 \begin_layout Subsection
24376 Introduction
24377 \end_layout
24378
24379 \begin_layout Standard
24380 If you have the 
24381 \family typewriter
24382 chktex
24383 \family default
24384  program installed
24385 \begin_inset Foot
24386 status collapsed
24387
24388 \begin_layout Plain Layout
24389
24390 \family typewriter
24391 chktex
24392 \family default
24393  is not yet available when you are using the \SpecialChar LaTeX
24394  distribution MiK\SpecialChar TeX
24395 .
24396 \end_layout
24397
24398 \end_inset
24399
24400 , you'll find in the 
24401 \family sans
24402 Tools
24403 \family default
24404  menu the entry: 
24405 \family sans
24406 Check
24407 \begin_inset space ~
24408 \end_inset
24409
24410 TeX
24411 \family default
24412 .
24413  You can get 
24414 \family typewriter
24415 chktex
24416 \family default
24417  from CTAN,
24418 \begin_inset Newline newline
24419 \end_inset
24420
24421
24422 \begin_inset CommandInset href
24423 LatexCommand href
24424 target "https://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
24425 literal "false"
24426
24427 \end_inset
24428
24429 .
24430 \end_layout
24431
24432 \begin_layout Standard
24433 The 
24434 \family sans
24435 Chk\SpecialChar TeX
24436
24437 \family default
24438  package is a program that was written by 
24439 \begin_inset Flex Noun
24440 status collapsed
24441
24442 \begin_layout Plain Layout
24443 Jens T.
24444 \begin_inset space ~
24445 \end_inset
24446
24447 Berger Thielemann
24448 \end_layout
24449
24450 \end_inset
24451
24452  in frustration because some constructs in \SpecialChar LaTeX
24453  are sometimes non-intuitive,
24454  and easy to forget.
24455  The program runs over your \SpecialChar LaTeX
24456  file, checks the integrity of the file, and
24457  flags some common errors.
24458  In other technical words, it is 
24459 \family typewriter
24460 lint
24461 \family default
24462  for \SpecialChar LaTeX
24463 .
24464 \end_layout
24465
24466 \begin_layout Standard
24467 Well, what is a syntax checker doing in \SpecialChar LyX
24468  which is supposed to produce correct
24469  \SpecialChar LaTeX
24470  anyways? The answer is simple: Just as 
24471 \family typewriter
24472 Lint
24473 \family default
24474  not only checks the 
24475 \emph on
24476 syntax
24477 \emph default
24478  of C programs, but also does 
24479 \emph on
24480 semantic
24481 \emph default
24482  checks for type-errors, 
24483 \family sans
24484 Chk\SpecialChar TeX
24485
24486 \family default
24487  catches some common 
24488 \emph on
24489 typographic
24490 \emph default
24491  errors, in addition to the syntactical ones.
24492  Specifically, 
24493 \family sans
24494 Chk\SpecialChar TeX
24495
24496 \family default
24497  is capable of detecting several common errors, such as
24498 \end_layout
24499
24500 \begin_layout Itemize
24501 Ellipsis detection:
24502 \begin_inset Newline newline
24503 \end_inset
24504
24505 Use \SpecialChar ldots
24506  instead of ...
24507 \end_layout
24508
24509 \begin_layout Itemize
24510 No space in front of/after parenthesis:
24511 \begin_inset Newline newline
24512 \end_inset
24513
24514 ( wrong spacing )
24515 \end_layout
24516
24517 \begin_layout Itemize
24518 Enforcement of normal space after common abbreviations:
24519 \begin_inset Newline newline
24520 \end_inset
24521
24522 e.
24523 \begin_inset space \thinspace{}
24524 \end_inset
24525
24526 g.
24527 \begin_inset space \space{}
24528 \end_inset
24529
24530 is too wide spacing.
24531 \end_layout
24532
24533 \begin_layout Itemize
24534 Enforcement of end-of-sentence space when the last sentence ends with a
24535  capital letter:
24536 \begin_inset Newline newline
24537 \end_inset
24538
24539 This is a TEST.
24540  And this is wrong spacing.
24541 \end_layout
24542
24543 \begin_layout Itemize
24544 Space in front of labels and similar commands:
24545 \begin_inset Newline newline
24546 \end_inset
24547
24548 The label should stick right up to the text to avoid falling to a wrong
24549  page.
24550  
24551 \begin_inset CommandInset label
24552 LatexCommand label
24553 name "sec:chktex"
24554
24555 \end_inset
24556
24557  
24558 \begin_inset Foot
24559 status collapsed
24560
24561 \begin_layout Plain Layout
24562 This footnote is in danger of falling off to a wrong page
24563 \end_layout
24564
24565 \end_inset
24566
24567  The label is separated too much.
24568 \end_layout
24569
24570 \begin_layout Itemize
24571 Space in front of references, instead of hard spaces:
24572 \begin_inset Newline newline
24573 \end_inset
24574
24575 If you have bad luck, the text will break right between the referenced text
24576  and reference number, and that's a pity.
24577  See section 
24578 \begin_inset CommandInset ref
24579 LatexCommand ref
24580 reference "sec:chktex"
24581
24582 \end_inset
24583
24584 .
24585 \end_layout
24586
24587 \begin_layout Itemize
24588 Use of 
24589 \begin_inset Quotes eld
24590 \end_inset
24591
24592 x
24593 \begin_inset Quotes erd
24594 \end_inset
24595
24596  instead of 
24597 \begin_inset Formula $\times$
24598 \end_inset
24599
24600  between numbers:
24601 \begin_inset Newline newline
24602 \end_inset
24603
24604 2x2 looks cheap compared to 
24605 \begin_inset Formula $2\times2$
24606 \end_inset
24607
24608 .
24609 \end_layout
24610
24611 \begin_layout Standard
24612 and more \SpecialChar ldots
24613  It is an invaluable tool when you are 
24614 \begin_inset Quotes eld
24615 \end_inset
24616
24617 finishing up
24618 \begin_inset Quotes erd
24619 \end_inset
24620
24621  your document before printing, and you should run it right after the obligatory
24622  spelling check, and before you go fine tuning the typesetting.
24623 \end_layout
24624
24625 \begin_layout Subsection
24626 How to use it
24627 \end_layout
24628
24629 \begin_layout Standard
24630 If you have the program installed, usage is as simple as choosing 
24631 \family sans
24632 Tools\SpecialChar menuseparator
24633 Check
24634 \begin_inset space ~
24635 \end_inset
24636
24637 TeX
24638 \family default
24639 .
24640  This will make \SpecialChar LyX
24641  generate a \SpecialChar LaTeX
24642  file of your document, start 
24643 \family sans
24644 Chk\SpecialChar TeX
24645
24646 \family default
24647  to check it, and then make \SpecialChar LyX
24648  insert 
24649 \begin_inset Quotes eld
24650 \end_inset
24651
24652 error boxes
24653 \begin_inset Quotes erd
24654 \end_inset
24655
24656  with the warnings from 
24657 \family sans
24658 Chk\SpecialChar TeX
24659
24660 \family default
24661 , if there were any.
24662  The warnings will be placed close to the point of the mistake, and you
24663  can quickly find them by using the 
24664 \family sans
24665 Navigate\SpecialChar menuseparator
24666 Error
24667 \family default
24668  menu item, or the shortcut key 
24669 \family sans
24670 C-g
24671 \family default
24672  from the default 
24673 \family typewriter
24674 cua
24675 \family default
24676  bind file.
24677  Open the error boxes by clicking on them with the mouse, or use the shortcut
24678  key 
24679 \family sans
24680 C-i
24681 \family default
24682  from 
24683 \family typewriter
24684 cua
24685 \family default
24686  bindings, or the corresponding 
24687 \family sans
24688 C-o
24689 \family default
24690  for the alternate 
24691 \family typewriter
24692 emacs
24693 \family default
24694  bind file.
24695  Read the warning and correct the mistake, if it is a mistake.
24696  If you have trouble understanding what the warning is about, you can safely
24697  ignore it.
24698  Remember that there is a hidden layer between the document on screen and
24699  the technical details in invoking 
24700 \family sans
24701 Chk\SpecialChar TeX
24702
24703 \family default
24704 , and this gap can make some warnings seem arcane or just plain silly.
24705 \end_layout
24706
24707 \begin_layout Standard
24708 This document is an excellent testing bed for the feature, and it should
24709  provide quite a few warnings for you to fiddle with.
24710  Since computers are only so smart, expect most of the warnings to be false
24711  alarms, though.
24712 \end_layout
24713
24714 \begin_layout Subsection
24715 How to fine tune it
24716 \end_layout
24717
24718 \begin_layout Standard
24719 Sometimes, you'll find that 
24720 \family sans
24721 Chk\SpecialChar TeX
24722
24723 \family default
24724  makes more noise than suits your mood.
24725  Then you can choose not to use it, wait until your mood changes, or try
24726  to customize 
24727 \family sans
24728 Chk\SpecialChar TeX
24729
24730 \family default
24731  to get better along with you.
24732 \end_layout
24733
24734 \begin_layout Standard
24735 Although 
24736 \family sans
24737 Chk\SpecialChar TeX
24738
24739 \family default
24740  
24741 \emph on
24742 is
24743 \emph default
24744  very configurable and extensible, you should not expect to solve all problems
24745  with 
24746 \family sans
24747 Chk\SpecialChar TeX
24748
24749 \family default
24750  in \SpecialChar LyX
24751  this way.
24752  Since \SpecialChar LyX
24753  has to generate a somewhat special \SpecialChar LaTeX
24754  file to be able to match the
24755  line numbers from the 
24756 \family sans
24757 Chk\SpecialChar TeX
24758
24759 \family default
24760  output
24761 \begin_inset Foot
24762 status collapsed
24763
24764 \begin_layout Plain Layout
24765 You can inspect the specific output from 
24766 \family sans
24767 chktex
24768 \family default
24769  by using 
24770 \family sans
24771 Document\SpecialChar menuseparator
24772 \SpecialChar LaTeX
24773
24774 \begin_inset space ~
24775 \end_inset
24776
24777 Log
24778 \family default
24779  right after a 
24780 \family sans
24781 chktex
24782 \family default
24783  run.
24784 \end_layout
24785
24786 \end_inset
24787
24788  to the internal document structure, some of the warnings will not appear
24789  correctly.
24790  There are two things you can do about this:
24791 \end_layout
24792
24793 \begin_layout Itemize
24794 Fine tune the 
24795 \family sans
24796 Chk\SpecialChar TeX
24797
24798 \family default
24799  invocation command line in 
24800 \begin_inset Flex Noun
24801 status collapsed
24802
24803 \begin_layout Plain Layout
24804 Tools\SpecialChar menuseparator
24805 Preferences\SpecialChar menuseparator
24806 Output\SpecialChar menuseparator
24807 LaTeX\SpecialChar menuseparator
24808 CheckTeX command
24809 \end_layout
24810
24811 \end_inset
24812
24813 , or the global 
24814 \family sans
24815 Chk\SpecialChar TeX
24816
24817 \family default
24818  installation configuration file (usually with the file 
24819 \family typewriter
24820 chktexrc
24821 \family default
24822 ).
24823  See below to learn what warnings can be enabled and disabled on the command
24824  line.
24825 \end_layout
24826
24827 \begin_layout Itemize
24828 Export your document as a raw \SpecialChar LaTeX
24829  file using 
24830 \family sans
24831 File\SpecialChar menuseparator
24832 Export\SpecialChar menuseparator
24833 \SpecialChar LaTeX
24834
24835 \family default
24836  and run 
24837 \family typewriter
24838 chktex
24839 \family default
24840  manually on that.
24841  Invoked in this way, it can be a hassle to find the corresponding place
24842  in the document inside \SpecialChar LyX
24843 , but with a little patience, you should be able
24844  to do it.
24845 \end_layout
24846
24847 \begin_layout Standard
24848 Here follows the warning messages that can be enabled and disabled in 
24849 \family sans
24850 Preferences
24851 \family default
24852 .
24853  Use 
24854 \family typewriter
24855 -n#
24856 \family default
24857  to disable a warning, and 
24858 \family typewriter
24859 -w#
24860 \family default
24861  to enable a warning.
24862  The emphasized entries are disabled by default, because the default is
24863  "
24864 \family typewriter
24865 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
24866 \family default
24867 ".
24868 \end_layout
24869
24870 \begin_layout Standard
24871 Notice that you should only use the options that enable and disable warnings,
24872  because \SpecialChar LyX
24873  relies on some of the other command line parameters to be set
24874  in a specific way to have a chance to communicate with 
24875 \family typewriter
24876 chktex
24877 \family default
24878 .
24879 \end_layout
24880
24881 \begin_layout Enumerate
24882
24883 \size small
24884 \emph on
24885 Command terminated with space.
24886 \end_layout
24887
24888 \begin_layout Enumerate
24889
24890 \size small
24891 Non-breaking space (
24892 \begin_inset Quotes eld
24893 \end_inset
24894
24895
24896 \family typewriter
24897 ~
24898 \family default
24899
24900 \begin_inset Quotes erd
24901 \end_inset
24902
24903 ) should have been used.
24904 \end_layout
24905
24906 \begin_layout Enumerate
24907
24908 \size small
24909 \emph on
24910 You should enclose the previous parenthesis with 
24911 \begin_inset Quotes eld
24912 \end_inset
24913
24914
24915 \family typewriter
24916 {}
24917 \family default
24918
24919 \begin_inset Quotes erd
24920 \end_inset
24921
24922 .
24923 \end_layout
24924
24925 \begin_layout Enumerate
24926
24927 \size small
24928 Italic correction (
24929 \begin_inset Quotes eld
24930 \end_inset
24931
24932
24933 \family typewriter
24934
24935 \backslash
24936 /
24937 \family default
24938
24939 \begin_inset Quotes erd
24940 \end_inset
24941
24942 ) found in non-italic buffer.
24943 \end_layout
24944
24945 \begin_layout Enumerate
24946
24947 \size small
24948 Italic correction (
24949 \begin_inset Quotes eld
24950 \end_inset
24951
24952
24953 \family typewriter
24954
24955 \backslash
24956 /
24957 \family default
24958
24959 \begin_inset Quotes erd
24960 \end_inset
24961
24962 ) found more than once.
24963 \end_layout
24964
24965 \begin_layout Enumerate
24966
24967 \size small
24968 \emph on
24969 No italic correction (
24970 \begin_inset Quotes eld
24971 \end_inset
24972
24973
24974 \family typewriter
24975
24976 \backslash
24977 /
24978 \family default
24979
24980 \begin_inset Quotes erd
24981 \end_inset
24982
24983 ) found.
24984 \end_layout
24985
24986 \begin_layout Enumerate
24987
24988 \size small
24989 Accent command 
24990 \begin_inset Quotes eld
24991 \end_inset
24992
24993
24994 \family typewriter
24995 cmd
24996 \family default
24997
24998 \begin_inset Quotes erd
24999 \end_inset
25000
25001  needs use of 
25002 \begin_inset Quotes eld
25003 \end_inset
25004
25005
25006 \family typewriter
25007 cmd
25008 \family default
25009
25010 \begin_inset Quotes erd
25011 \end_inset
25012
25013 .
25014 \end_layout
25015
25016 \begin_layout Enumerate
25017
25018 \size small
25019 Wrong length of dash may have been used.
25020 \end_layout
25021
25022 \begin_layout Enumerate
25023
25024 \size small
25025 \emph on
25026 \begin_inset Quotes eld
25027 \end_inset
25028
25029
25030 \family typewriter
25031 %s
25032 \family default
25033
25034 \begin_inset Quotes erd
25035 \end_inset
25036
25037  expected, found 
25038 \begin_inset Quotes eld
25039 \end_inset
25040
25041
25042 \family typewriter
25043 %s
25044 \family default
25045
25046 \begin_inset Quotes erd
25047 \end_inset
25048
25049 .
25050 \end_layout
25051
25052 \begin_layout Enumerate
25053
25054 \size small
25055 Solo 
25056 \begin_inset Quotes eld
25057 \end_inset
25058
25059
25060 \family typewriter
25061 %s
25062 \family default
25063
25064 \begin_inset Quotes erd
25065 \end_inset
25066
25067  found.
25068 \end_layout
25069
25070 \begin_layout Enumerate
25071
25072 \size small
25073 You should use 
25074 \begin_inset Quotes eld
25075 \end_inset
25076
25077
25078 \family typewriter
25079 %s
25080 \family default
25081
25082 \begin_inset Quotes erd
25083 \end_inset
25084
25085  to achieve an ellipsis.
25086 \end_layout
25087
25088 \begin_layout Enumerate
25089
25090 \size small
25091 Inter-word spacing (
25092 \begin_inset Quotes eld
25093 \end_inset
25094
25095
25096 \family typewriter
25097
25098 \backslash
25099
25100 \family default
25101  
25102 \begin_inset Quotes eld
25103 \end_inset
25104
25105 ) should perhaps be used.
25106 \end_layout
25107
25108 \begin_layout Enumerate
25109
25110 \size small
25111 Inter-sentence spacing (
25112 \begin_inset Quotes eld
25113 \end_inset
25114
25115
25116 \family typewriter
25117
25118 \backslash
25119 @
25120 \family default
25121
25122 \begin_inset Quotes erd
25123 \end_inset
25124
25125 ) should perhaps be used.
25126 \end_layout
25127
25128 \begin_layout Enumerate
25129
25130 \size small
25131 Could not find argument for command.
25132 \end_layout
25133
25134 \begin_layout Enumerate
25135
25136 \size small
25137 No match found for 
25138 \begin_inset Quotes eld
25139 \end_inset
25140
25141
25142 \family typewriter
25143 %s
25144 \family default
25145
25146 \begin_inset Quotes erd
25147 \end_inset
25148
25149 .
25150 \end_layout
25151
25152 \begin_layout Enumerate
25153
25154 \size small
25155 Math mode still on at end of \SpecialChar LaTeX
25156  file.
25157 \end_layout
25158
25159 \begin_layout Enumerate
25160
25161 \size small
25162 Number of 
25163 \begin_inset Quotes eld
25164 \end_inset
25165
25166
25167 \family typewriter
25168 char
25169 \family default
25170
25171 \begin_inset Quotes erd
25172 \end_inset
25173
25174  doesn't match the number of 
25175 \begin_inset Quotes eld
25176 \end_inset
25177
25178
25179 \family typewriter
25180 char
25181 \family default
25182
25183 \begin_inset Quotes erd
25184 \end_inset
25185
25186 .
25187 \end_layout
25188
25189 \begin_layout Enumerate
25190
25191 \size small
25192 You should use either 
25193 \family typewriter
25194
25195 \begin_inset Quotes eld
25196 \end_inset
25197
25198
25199 \family default
25200  or 
25201 \family typewriter
25202
25203 \begin_inset Quotes erd
25204 \end_inset
25205
25206
25207 \family default
25208  as an alternative to 
25209 \begin_inset Quotes eld
25210 \end_inset
25211
25212
25213 \family typewriter
25214 "
25215 \family default
25216
25217 \begin_inset Quotes erd
25218 \end_inset
25219
25220 .
25221 \end_layout
25222
25223 \begin_layout Enumerate
25224
25225 \size small
25226 You should use "
25227 \family typewriter
25228 '
25229 \family default
25230 " (ASCII 39) instead of "
25231 \family typewriter
25232 ´
25233 \family default
25234 " (ASCII 180).
25235 \end_layout
25236
25237 \begin_layout Enumerate
25238
25239 \size small
25240 User-specified pattern found.
25241 \end_layout
25242
25243 \begin_layout Enumerate
25244
25245 \size small
25246 This command might not be intended.
25247 \end_layout
25248
25249 \begin_layout Enumerate
25250
25251 \size small
25252 \emph on
25253 Comment displayed.
25254 \end_layout
25255
25256 \begin_layout Enumerate
25257
25258 \size small
25259 Either 
25260 \family typewriter
25261 ''
25262 \backslash
25263 ,'
25264 \family default
25265  or 
25266 \family typewriter
25267 '
25268 \backslash
25269 ,''
25270 \family default
25271  will look better.
25272 \end_layout
25273
25274 \begin_layout Enumerate
25275
25276 \size small
25277 Delete this space to maintain correct page references.
25278 \end_layout
25279
25280 \begin_layout Enumerate
25281
25282 \size small
25283 \emph on
25284 You might wish to put this between a pair of 
25285 \begin_inset Quotes eld
25286 \end_inset
25287
25288
25289 \family typewriter
25290 {}
25291 \family default
25292
25293 \begin_inset Quotes erd
25294 \end_inset
25295
25296 .
25297 \end_layout
25298
25299 \begin_layout Enumerate
25300
25301 \size small
25302 You ought to remove spaces in front of punctuation.
25303 \end_layout
25304
25305 \begin_layout Enumerate
25306
25307 \size small
25308 Could not execute \SpecialChar LaTeX
25309  command.
25310 \end_layout
25311
25312 \begin_layout Enumerate
25313
25314 \size small
25315 Don't use 
25316 \family typewriter
25317
25318 \backslash
25319 /
25320 \family default
25321  in front of small punctuation.
25322 \end_layout
25323
25324 \begin_layout Enumerate
25325
25326 \family typewriter
25327 \size small
25328 $
25329 \backslash
25330 times$
25331 \family default
25332  may look prettier here.
25333 \end_layout
25334
25335 \begin_layout Enumerate
25336
25337 \size small
25338 \emph on
25339 Multiple spaces detected in output.
25340 \end_layout
25341
25342 \begin_layout Enumerate
25343
25344 \size small
25345 This text may be ignored.
25346 \end_layout
25347
25348 \begin_layout Enumerate
25349
25350 \size small
25351 Use 
25352 \family typewriter
25353
25354 \begin_inset Quotes eld
25355 \end_inset
25356
25357
25358 \family default
25359  to begin quotation, not 
25360 \family typewriter
25361 '
25362 \family default
25363 .
25364 \end_layout
25365
25366 \begin_layout Enumerate
25367
25368 \size small
25369 Use 
25370 \family typewriter
25371 '
25372 \family default
25373  to end quotation, not 
25374 \family typewriter
25375
25376 \begin_inset Quotes eld
25377 \end_inset
25378
25379
25380 \family default
25381 .
25382 \end_layout
25383
25384 \begin_layout Enumerate
25385
25386 \size small
25387 Don't mix quotes.
25388 \end_layout
25389
25390 \begin_layout Enumerate
25391
25392 \size small
25393 You should perhaps use 
25394 \begin_inset Quotes eld
25395 \end_inset
25396
25397
25398 \family typewriter
25399 cmd
25400 \family default
25401
25402 \begin_inset Quotes erd
25403 \end_inset
25404
25405  instead.
25406 \end_layout
25407
25408 \begin_layout Enumerate
25409
25410 \size small
25411 You should put a space in front of/after parenthesis.
25412 \end_layout
25413
25414 \begin_layout Enumerate
25415
25416 \size small
25417 You should avoid spaces in front of/after parenthesis.
25418 \end_layout
25419
25420 \begin_layout Enumerate
25421
25422 \size small
25423 \emph on
25424 You should not use punctuation in front of/after quotes.
25425 \end_layout
25426
25427 \begin_layout Enumerate
25428
25429 \size small
25430 Double space found.
25431 \end_layout
25432
25433 \begin_layout Enumerate
25434
25435 \size small
25436 You should put punctuation outside inner/inside display math mode.
25437 \end_layout
25438
25439 \begin_layout Enumerate
25440
25441 \size small
25442 You ought to not use primitive \SpecialChar TeX
25443  in \SpecialChar LaTeX
25444  code.
25445 \end_layout
25446
25447 \begin_layout Enumerate
25448
25449 \size small
25450 You should remove spaces in front of 
25451 \begin_inset Quotes eld
25452 \end_inset
25453
25454
25455 \family typewriter
25456 %s
25457 \family default
25458
25459 \begin_inset Quotes erd
25460 \end_inset
25461
25462
25463 \end_layout
25464
25465 \begin_layout Enumerate
25466
25467 \size small
25468 \begin_inset Quotes eld
25469 \end_inset
25470
25471
25472 \family typewriter
25473 %s
25474 \family default
25475
25476 \begin_inset Quotes erd
25477 \end_inset
25478
25479  is normally not followed by 
25480 \begin_inset Quotes eld
25481 \end_inset
25482
25483
25484 \family typewriter
25485 %c
25486 \family default
25487
25488 \begin_inset Quotes erd
25489 \end_inset
25490
25491 .
25492 \end_layout
25493
25494 \begin_layout Standard
25495 In later versions of \SpecialChar LyX
25496 , we hope to provide a more complete interface to this
25497  tool (and it's smaller cousin 
25498 \family typewriter
25499 lacheck
25500 \family default
25501 ) to exploit the full power of it.
25502  But it's not exactly useless as it is now: go try it on one of your existing
25503  documents of a certain length and be surprised.
25504 \end_layout
25505
25506 \begin_layout Section
25507 Version Control in \SpecialChar LyX
25508
25509 \end_layout
25510
25511 \begin_layout Standard
25512 by
25513 \noun on
25514  Lars Gullik Bjønnes 
25515 \noun default
25516 and 
25517 \noun on
25518 Pavel Sanda
25519 \end_layout
25520
25521 \begin_layout Subsection
25522 Introduction
25523 \end_layout
25524
25525 \begin_layout Standard
25526 \SpecialChar LyX
25527  supports some of the most basic RCS/CVS/SVN/GIT commands.
25528  If you need something a bit more sophisticated you will have to do that
25529  manually in a terminal.
25530 \end_layout
25531
25532 \begin_layout Standard
25533 Also note that CVS support is not as good as subversion support, so we advise
25534  using SVN instead.
25535  A good place to start learning Subversion is the SVN Book
25536 \begin_inset Foot
25537 status collapsed
25538
25539 \begin_layout Plain Layout
25540 \begin_inset CommandInset href
25541 LatexCommand href
25542 target "http://svnbook.red-bean.com/"
25543 literal "false"
25544
25545 \end_inset
25546
25547
25548 \end_layout
25549
25550 \end_inset
25551
25552 .
25553  In the case of RCS you should read 
25554 \begin_inset Quotes eld
25555 \end_inset
25556
25557 rcsintro
25558 \begin_inset Quotes erd
25559 \end_inset
25560
25561  (a man file, read it with 
25562 \family typewriter
25563 man rcsintro
25564 \family default
25565 ).
25566  This file describes all the basic features of RCS.
25567  You should especially notice the comment about a RCS directory, and the
25568  notion of a master RCS file (the file ending in 
25569 \family typewriter
25570 ,v
25571 \family default
25572 ).
25573 \end_layout
25574
25575 \begin_layout Standard
25576 Before you begin to use the version control features in \SpecialChar LyX
25577 , you should be
25578  familiar with RCS/CVS/SVN/GIT usage.
25579  The implementation in \SpecialChar LyX
25580  assumes a recent version of the GNU RCS or CVS/SVN
25581  package — no guarantees are made for older versions.
25582  Most of the log messages are not currently displayed after operations —
25583  you can check them in the Messages pane if you are unsure.
25584  Regular users of version control will appreciate the VC toolbar, which
25585  can be enabled via 
25586 \family sans
25587 View\SpecialChar menuseparator
25588 Toolbars\SpecialChar menuseparator
25589 Version
25590 \begin_inset space ~
25591 \end_inset
25592
25593 Control
25594 \family default
25595 .
25596 \end_layout
25597
25598 \begin_layout Standard
25599 For introducing your own external commands consult 
25600 \begin_inset Flex Code
25601 status collapsed
25602
25603 \begin_layout Plain Layout
25604 vc-command
25605 \end_layout
25606
25607 \end_inset
25608
25609  in the manual 
25610 \emph on
25611 \SpecialChar LyX
25612  Functions
25613 \emph default
25614 .
25615 \end_layout
25616
25617 \begin_layout Standard
25618 It is strongly recommended to store documents in uncompressed format if
25619  using version control (uncheck 
25620 \family sans
25621 Document\SpecialChar menuseparator
25622 Compressed
25623 \family default
25624  if it is checked): Uncompressed LyX documents are text files and therefore
25625  for merging two different versions by version control systems.
25626  Compressed LyX documents are binary files, which cannot be merged by version
25627  control systems.
25628 \end_layout
25629
25630 \begin_layout Subsection
25631 RCS commands in \SpecialChar LyX
25632
25633 \end_layout
25634
25635 \begin_layout Standard
25636 The following sections describe the RCS commands supported by \SpecialChar LyX
25637 .
25638  You can find them in the 
25639 \family sans
25640 File\SpecialChar menuseparator
25641 Version
25642 \begin_inset space ~
25643 \end_inset
25644
25645 Control
25646 \family default
25647  submenu.
25648  \SpecialChar LyX
25649  was tested against RCS 5.7/5.8.
25650 \end_layout
25651
25652 \begin_layout Subsubsection
25653
25654 \family sans
25655 Register
25656 \end_layout
25657
25658 \begin_layout Standard
25659 If your document is not under revision control, this is the only item shown
25660  in the menu.
25661  And if it is under revision control, the 
25662 \family sans
25663 Register
25664 \family default
25665  item is not visible.
25666  
25667 \end_layout
25668
25669 \begin_layout Standard
25670 This command registers your document with RCS (unless you are under the
25671  directory managed by CVS)\SpecialChar endofsentence
25672  You are asked interactively to supply an initial
25673  description of the document.
25674  The document is now set in Read-Only mode and you have to 
25675 \family sans
25676 Check
25677 \begin_inset space ~
25678 \end_inset
25679
25680 Out
25681 \begin_inset space ~
25682 \end_inset
25683
25684 For
25685 \begin_inset space ~
25686 \end_inset
25687
25688 Edit
25689 \family default
25690 , before making any changes to it.
25691  A document under revision control has a 
25692 \begin_inset Quotes eld
25693 \end_inset
25694
25695 [RCS:<version> <locker>]
25696 \begin_inset Quotes erd
25697 \end_inset
25698
25699  item tagged to the filename in the minibuffer.
25700 \end_layout
25701
25702 \begin_layout Standard
25703 RCS command that is run:
25704 \end_layout
25705
25706 \begin_layout LyX-Code
25707
25708 \family typewriter
25709 ci -q -u -i -t-"<initial description>" <file-name>
25710 \end_layout
25711
25712 \begin_layout Standard
25713 Read 
25714 \family typewriter
25715 man ci
25716 \family default
25717  to understand the switches.
25718  
25719 \end_layout
25720
25721 \begin_layout Subsubsection
25722
25723 \family sans
25724 Check In Changes
25725 \end_layout
25726
25727 \begin_layout Standard
25728 When you are finished editing a file, you check in your changes.
25729  When you do this, you are asked for a description of the changes.
25730  This is stored in the history log.
25731  The version number is bumped, your changes are applied to the master RCS
25732  file, the document is unlocked and set to Read-Only mode.
25733 \end_layout
25734
25735 \begin_layout Itemize
25736 RCS command: 
25737 \family typewriter
25738 ci -q -u -m"<description>" <file-name>
25739 \end_layout
25740
25741 \begin_layout Subsubsection
25742
25743 \family sans
25744 Check Out For Edit
25745 \end_layout
25746
25747 \begin_layout Standard
25748 By doing this you lock the document so that only you can edit it.
25749  This will also make the document Read-Write only for you.
25750  You will usually continue editing for a while and when you are finished
25751  you check in your changes.
25752  The status line is changed to reflect that you have locked the file.
25753 \end_layout
25754
25755 \begin_layout Itemize
25756 RCS command: 
25757 \family typewriter
25758 co -q -l <file-name>
25759 \end_layout
25760
25761 \begin_layout Subsubsection
25762
25763 \family sans
25764 Revert To Repository Version
25765 \end_layout
25766
25767 \begin_layout Standard
25768 This will discard all changes made to the document since the last check
25769  in.
25770  You get a warning before changes are discarded.
25771 \end_layout
25772
25773 \begin_layout Itemize
25774 RCS command: 
25775 \family typewriter
25776 co -f -u<version> <file-name>
25777 \end_layout
25778
25779 \begin_layout Subsubsection
25780
25781 \family sans
25782 Copy
25783 \end_layout
25784
25785 \begin_layout Standard
25786 This will create a copy of the current document.
25787  Since RCS does not support copy operations natively, the version history
25788  is not preserved, and the copy is added as a new file.
25789  It requires a clean document without any changes since the last checkin.
25790  You are asked for a file name and a description of the copy operation.
25791  After that the copy is created, both locally and in the repository.
25792  If the parent directories of the copied and original document differ, all
25793  relative paths of included files of the copy are adjusted (like in 
25794 \family sans
25795 File\SpecialChar menuseparator
25796 Save As
25797 \family default
25798 \SpecialChar ldots
25799 ).
25800  Finally, the copy is loaded instead of the original document.
25801 \end_layout
25802
25803 \begin_layout Labeling
25804 \labelwidthstring 00.00.0000
25805 RCS
25806 \begin_inset space ~
25807 \end_inset
25808
25809 commands: 
25810 \begin_inset space ~
25811 \end_inset
25812
25813
25814 \begin_inset Newline newline
25815 \end_inset
25816
25817 Copy 
25818 \begin_inset Flex Code
25819 status collapsed
25820
25821 \begin_layout Plain Layout
25822
25823 \family typewriter
25824 \begin_inset Quotes qld
25825 \end_inset
25826
25827 <file-name>
25828 \begin_inset Quotes qld
25829 \end_inset
25830
25831
25832 \end_layout
25833
25834 \end_inset
25835
25836  to 
25837 \begin_inset Flex Code
25838 status collapsed
25839
25840 \begin_layout Plain Layout
25841
25842 \family typewriter
25843 \begin_inset Quotes qld
25844 \end_inset
25845
25846 <new-file-name>
25847 \begin_inset Quotes qld
25848 \end_inset
25849
25850
25851 \end_layout
25852
25853 \end_inset
25854
25855
25856 \begin_inset Newline newline
25857 \end_inset
25858
25859
25860 \begin_inset Flex Code
25861 status collapsed
25862
25863 \begin_layout Plain Layout
25864 ci -q -u 
25865 \family typewriter
25866 -i 
25867 \begin_inset Quotes qld
25868 \end_inset
25869
25870 <new-file-name>
25871 \begin_inset Quotes qld
25872 \end_inset
25873
25874
25875 \end_layout
25876
25877 \end_inset
25878
25879
25880 \end_layout
25881
25882 \begin_layout Subsubsection
25883
25884 \family sans
25885 Undo Last Checkin
25886 \end_layout
25887
25888 \begin_layout Standard
25889 This makes as if the last check in never happened.
25890  No changes are made to the document loaded into \SpecialChar LyX
25891 , but the last version
25892  is removed from the master RCS file.
25893 \end_layout
25894
25895 \begin_layout Itemize
25896 RCS command: 
25897 \family typewriter
25898 rcs -o<version> <file-name>
25899 \end_layout
25900
25901 \begin_layout Subsubsection
25902
25903 \family sans
25904 Show History
25905 \end_layout
25906
25907 \begin_layout Standard
25908 This shows the complete history of the RCS document.
25909  The output of 
25910 \family typewriter
25911 rlog <file-name>
25912 \family default
25913  is shown in a browser.
25914  See 
25915 \family typewriter
25916 man rlog
25917 \family default
25918  for more info.
25919 \end_layout
25920
25921 \begin_layout Subsubsection
25922 Revision info
25923 \end_layout
25924
25925 \begin_layout Standard
25926 \SpecialChar LyX
25927  supports RCS version number, author name, date and time of last commit.
25928  All those are extracted from 
25929 \family typewriter
25930 rlog -r <file-name>
25931 \family default
25932 .
25933  See 
25934 \begin_inset CommandInset ref
25935 LatexCommand ref
25936 reference "subsec:VCS-Revision-Information"
25937
25938 \end_inset
25939
25940  for details.
25941 \end_layout
25942
25943 \begin_layout Subsection
25944 CVS commands in \SpecialChar LyX
25945
25946 \end_layout
25947
25948 \begin_layout Standard
25949 A subset of CVS operations is supported by \SpecialChar LyX
25950 .
25951  You can find the commands in the 
25952 \family sans
25953 File\SpecialChar menuseparator
25954 Version
25955 \begin_inset space ~
25956 \end_inset
25957
25958 Control
25959 \family default
25960  submenu.
25961  The version control system SVN is more powerful, so please use it instead
25962  of CVS if possible.
25963 \end_layout
25964
25965 \begin_layout Subsubsection
25966
25967 \family sans
25968 General CVS usage
25969 \end_layout
25970
25971 \begin_layout Standard
25972 If you start from scratch with CVS you have to create your repository and
25973  checkout the working copy with external tools.
25974  If you're using a client-server setup you may need to login before doing
25975  the first repository checkout.
25976 \end_layout
25977
25978 \begin_layout Standard
25979 If your documents are under revision control and others are using the same
25980  repository problems arise when different changes to the same document at
25981  the same location happen.
25982  Standard CVS repositories don't operate with a file locking mechanism.
25983  This may be surprising, but conflicts only occur if people disagree on
25984  the proper content of the same part of a document.
25985  So, if co-workers are used to communicate regularly, these conflicts occur
25986  rarely.
25987  If they don't communicate they have a fundamental problem anyway.
25988  Nevertheless some people like to work with so called 
25989 \begin_inset Quotes eld
25990 \end_inset
25991
25992 reserved checkouts
25993 \begin_inset Quotes erd
25994 \end_inset
25995
25996 .
25997  If they do so the working copy of all files is readonly when checked out
25998  first and the user starts editing after using a special command to make
25999  the working copy writable.
26000  When the changes are checked in the working copy returns to readonly state.
26001  With \SpecialChar LyX
26002  one has to edit the 
26003 \begin_inset Flex Code
26004 status collapsed
26005
26006 \begin_layout Plain Layout
26007 .cvsrc
26008 \end_layout
26009
26010 \end_inset
26011
26012  file and add the line 
26013 \begin_inset Flex Code
26014 status collapsed
26015
26016 \begin_layout Plain Layout
26017 cvs -r
26018 \end_layout
26019
26020 \end_inset
26021
26022  to work with reserved checkouts.
26023  The benefit is the possibility to see who is using a writable copy of some
26024  document.
26025  It's not guaranteed only one user makes a copy writable.
26026 \end_layout
26027
26028 \begin_layout Standard
26029 \SpecialChar LyX
26030  tries to guess if you're using reserved or non-reserved checkouts.
26031  If your working copy is readonly or it is writable and an additional copy
26032  of your document exists in the CVS/Base sub-directory a reserved otherwise
26033  a non-reserved checkout is assumed.
26034  When a reserved checkout is detected you have to use 
26035 \begin_inset Flex Noun
26036 status collapsed
26037
26038 \begin_layout Plain Layout
26039 Check Out
26040 \end_layout
26041
26042 \end_inset
26043
26044  to make your working copy writable if it's readonly.
26045  After doing so the 
26046 \begin_inset Flex Noun
26047 status collapsed
26048
26049 \begin_layout Plain Layout
26050 Check In
26051 \end_layout
26052
26053 \end_inset
26054
26055  operation is possible and that makes your working copy readonly again after
26056  transferring your changes to the repository.
26057 \end_layout
26058
26059 \begin_layout Standard
26060 More information about CVS can be found here 
26061 \begin_inset Flex URL
26062 status collapsed
26063
26064 \begin_layout Plain Layout
26065
26066 http://www.nongnu.org/cvs
26067 \end_layout
26068
26069 \end_inset
26070
26071  and here 
26072 \begin_inset Flex URL
26073 status collapsed
26074
26075 \begin_layout Plain Layout
26076
26077 http://ximbiot.com/cvs
26078 \end_layout
26079
26080 \end_inset
26081
26082 .
26083 \end_layout
26084
26085 \begin_layout Standard
26086 Read 
26087 \family typewriter
26088 man cvs
26089 \family default
26090  to understand the sub-commands and the switches mentioned below.
26091 \end_layout
26092
26093 \begin_layout Subsubsection
26094
26095 \family sans
26096 Register
26097 \end_layout
26098
26099 \begin_layout Standard
26100 If your document is not under revision control, this is the only item shown
26101  in the menu.
26102  And if it is under revision control, the 
26103 \family sans
26104 Register
26105 \family default
26106  item is not visible.
26107  
26108 \end_layout
26109
26110 \begin_layout Standard
26111 This command registers in CVS your document 
26112 \begin_inset Flex Strong
26113 status collapsed
26114
26115 \begin_layout Plain Layout
26116
26117 \emph on
26118 only
26119 \end_layout
26120
26121 \end_inset
26122
26123  in the case you have already the documents directory under CVS control
26124  (in particular 
26125 \family typewriter
26126 CVS/Entries
26127 \family default
26128  file exists).
26129  This means you have to create or checkout the archive by yourself using
26130  external tools.
26131  (In case you forget that step \SpecialChar LyX
26132  registers the document with RCS.)
26133 \end_layout
26134
26135 \begin_layout Standard
26136 Then you are asked interactively to supply an initial description of the
26137  document.
26138  Don't forget that registered file is not yet checked in.
26139 \end_layout
26140
26141 \begin_layout Standard
26142 CVS command that is run: 
26143 \family typewriter
26144 cvs -q add -m"<entered message>" "<file-name>"
26145 \end_layout
26146
26147 \begin_layout Standard
26148 The term 
26149 \family typewriter
26150 "<file-name>"
26151 \family default
26152  above and for all other CVS commands is an abbreviation for 
26153 \begin_inset Quotes eld
26154 \end_inset
26155
26156 change the current working directory to file location and use the file name
26157  without path component as argument
26158 \begin_inset Quotes erd
26159 \end_inset
26160
26161 .
26162 \end_layout
26163
26164 \begin_layout Subsubsection
26165
26166 \family sans
26167 Check In Changes
26168 \end_layout
26169
26170 \begin_layout Standard
26171 When you are finished editing a file, you commit your changes.
26172  When you do this and you had changed the document, you are asked for a
26173  description of the changes.
26174  After that changes are written to the repository.
26175  In case you didn't change the document and a reserved checkout is detected
26176  the reservation made on 
26177 \begin_inset Flex Noun
26178 status collapsed
26179
26180 \begin_layout Plain Layout
26181 Check Out
26182 \end_layout
26183
26184 \end_inset
26185
26186  is undone.
26187 \end_layout
26188
26189 \begin_layout Labeling
26190 \labelwidthstring 00.00.0000
26191 CVS
26192 \begin_inset space ~
26193 \end_inset
26194
26195 command: 
26196 \begin_inset space ~
26197 \end_inset
26198
26199
26200 \begin_inset Newline newline
26201 \end_inset
26202
26203
26204 \begin_inset Flex Code
26205 status collapsed
26206
26207 \begin_layout Plain Layout
26208 cvs 
26209 \family typewriter
26210 -q commit -m"<description>" "<file-name>"
26211 \end_layout
26212
26213 \end_inset
26214
26215  or
26216 \begin_inset Newline newline
26217 \end_inset
26218
26219
26220 \begin_inset Flex Code
26221 status collapsed
26222
26223 \begin_layout Plain Layout
26224 cvs -q unedit 
26225 \family typewriter
26226 "<file-name>"
26227 \end_layout
26228
26229 \end_inset
26230
26231
26232 \end_layout
26233
26234 \begin_layout Subsubsection
26235
26236 \family sans
26237 Check Out Changes
26238 \end_layout
26239
26240 \begin_layout Standard
26241 When you are sharing a repository with others, you may have to incorporate
26242  their changes into your working copy.
26243 \end_layout
26244
26245 \begin_layout Standard
26246 CVS command: 
26247 \family typewriter
26248 cvs -q update "<file-name>"
26249 \end_layout
26250
26251 \begin_layout Standard
26252 If a readonly checkout is detected the working copy is made writable and
26253  reserved.
26254 \end_layout
26255
26256 \begin_layout Standard
26257 CVS command: 
26258 \family typewriter
26259 cvs -q edit "<file-name>"
26260 \end_layout
26261
26262 \begin_layout Subsubsection
26263
26264 \family sans
26265 Revert To Repository Version
26266 \end_layout
26267
26268 \begin_layout Standard
26269 This will discard all changes made to the document since the last check
26270  in.
26271  You get a warning before changes are discarded.
26272  Firstly the file is deleted, secondly CVS update command is run.
26273 \end_layout
26274
26275 \begin_layout Standard
26276 CVS command: 
26277 \family typewriter
26278 cvs -q update "<file-name>"
26279 \end_layout
26280
26281 \begin_layout Standard
26282 If a reserved checkout is detected and the working copy has no changes only
26283  the reservation is undone.
26284 \end_layout
26285
26286 \begin_layout Standard
26287 CVS command: 
26288 \family typewriter
26289 cvs -q unedit "<file-name>"
26290 \end_layout
26291
26292 \begin_layout Subsubsection
26293
26294 \family sans
26295 Copy
26296 \end_layout
26297
26298 \begin_layout Standard
26299 This will create a copy of the current document.
26300  Since CVS does not support copy operations natively, the version history
26301  is not preserved, and the copy is added as a new file.
26302  It requires a clean document without any changes since the last checkin.
26303  You are asked for a file name and a description of the copy operation.
26304  After that the copy is created, both locally and in the repository.
26305  If the parent directories of the copied and original document differ, all
26306  relative paths of included files of the copy are adjusted (like in 
26307 \family sans
26308 File\SpecialChar menuseparator
26309 Save As
26310 \family default
26311 \SpecialChar ldots
26312 ).
26313  Finally, the copy is loaded instead of the original document.
26314 \end_layout
26315
26316 \begin_layout Labeling
26317 \labelwidthstring 00.00.0000
26318 CVS
26319 \begin_inset space ~
26320 \end_inset
26321
26322 commands: 
26323 \begin_inset space ~
26324 \end_inset
26325
26326
26327 \begin_inset Newline newline
26328 \end_inset
26329
26330 Copy 
26331 \begin_inset Flex Code
26332 status collapsed
26333
26334 \begin_layout Plain Layout
26335 "<file-name>"
26336 \end_layout
26337
26338 \end_inset
26339
26340  to 
26341 \begin_inset Flex Code
26342 status collapsed
26343
26344 \begin_layout Plain Layout
26345 "<new-file-name>"
26346 \end_layout
26347
26348 \end_inset
26349
26350
26351 \begin_inset Newline newline
26352 \end_inset
26353
26354
26355 \begin_inset Flex Code
26356 status collapsed
26357
26358 \begin_layout Plain Layout
26359 cvs -q add "<new-file-name>"
26360 \end_layout
26361
26362 \end_inset
26363
26364
26365 \end_layout
26366
26367 \begin_layout Subsubsection
26368
26369 \family sans
26370 Rename
26371 \end_layout
26372
26373 \begin_layout Standard
26374 This will rename the current document.
26375  Since CVS does not support rename operations natively, the version history
26376  is not preserved, the renamed document is added as a new file, and the
26377  original document is deleted.
26378  It requires a clean document without any changes since the last checkin.
26379  You are asked for a file name and a description of the rename operation.
26380  After that the document is renamed, both locally and in the repository.
26381  If the parent directories of the new and old file names differ, all relative
26382  paths of included files are adjusted (like in 
26383 \family sans
26384 File\SpecialChar menuseparator
26385 Save As
26386 \family default
26387 \SpecialChar ldots
26388 ).
26389  Finally, the document is reloaded using the new name.
26390 \end_layout
26391
26392 \begin_layout Labeling
26393 \labelwidthstring 00.00.0000
26394 CVS
26395 \begin_inset space ~
26396 \end_inset
26397
26398 commands: 
26399 \begin_inset space ~
26400 \end_inset
26401
26402
26403 \begin_inset Newline newline
26404 \end_inset
26405
26406 Rename 
26407 \begin_inset Flex Code
26408 status collapsed
26409
26410 \begin_layout Plain Layout
26411 "<file-name>"
26412 \end_layout
26413
26414 \end_inset
26415
26416  to 
26417 \begin_inset Flex Code
26418 status collapsed
26419
26420 \begin_layout Plain Layout
26421 "<new-file-name>"
26422 \end_layout
26423
26424 \end_inset
26425
26426
26427 \begin_inset Newline newline
26428 \end_inset
26429
26430
26431 \begin_inset Flex Code
26432 status collapsed
26433
26434 \begin_layout Plain Layout
26435 cvs -q add "<new-file-name>"
26436 \end_layout
26437
26438 \end_inset
26439
26440
26441 \begin_inset Newline newline
26442 \end_inset
26443
26444
26445 \begin_inset Flex Code
26446 status collapsed
26447
26448 \begin_layout Plain Layout
26449 cvs -q remove "<file-name>"
26450 \end_layout
26451
26452 \end_inset
26453
26454
26455 \end_layout
26456
26457 \begin_layout Subsubsection
26458 Update of the local directory checkout from repository
26459 \end_layout
26460
26461 \begin_layout Standard
26462 Once your documents gets more complex, containing sub-documents and pictures,
26463  including external 
26464 \begin_inset Flex Code
26465 status collapsed
26466
26467 \begin_layout Plain Layout
26468 .tex
26469 \end_layout
26470
26471 \end_inset
26472
26473  files and so on using version control becomes more complicated.
26474  \SpecialChar LyX
26475  supports updating the whole tree in which resides the document.
26476  This become especially useful once you cooperate with people which neither
26477  have detailed knowledge about CVS usage nor they have ambition to commit
26478  additional material to the repository.
26479  You have to organize the files structure so that all external files are
26480  in the same directory or subdirectories of the document.
26481  It's good practice anyway to store multipart documents in an extra directory.
26482 \end_layout
26483
26484 \begin_layout Standard
26485 The 
26486 \begin_inset Flex Code
26487 status collapsed
26488
26489 \begin_layout Plain Layout
26490 Update local directory from repository
26491 \end_layout
26492
26493 \end_inset
26494
26495  command updates the whole directory.
26496  If local changes are detected user is warned before update starts.
26497  In case of merge conflicts both versions of the conflicting document parts
26498  are placed in the final document.
26499  You have to review and correct the result of the merge.
26500  You'll find the conflicts enclosed in pairs of 
26501 \begin_inset Flex Code
26502 status collapsed
26503
26504 \begin_layout Plain Layout
26505 <<<<<<<
26506 \end_layout
26507
26508 \end_inset
26509
26510  and 
26511 \begin_inset Flex Code
26512 status collapsed
26513
26514 \begin_layout Plain Layout
26515 >>>>>>>
26516 \end_layout
26517
26518 \end_inset
26519
26520  separated by 
26521 \begin_inset Flex Code
26522 status collapsed
26523
26524 \begin_layout Plain Layout
26525 =======
26526 \end_layout
26527
26528 \end_inset
26529
26530 .
26531  The first part is your version as before the update operation with the
26532  document name prepended.
26533  The second one is the repository version with the version number after
26534  the sequence of 
26535 \begin_inset Flex Code
26536 status collapsed
26537
26538 \begin_layout Plain Layout
26539 >
26540 \end_layout
26541
26542 \end_inset
26543
26544  signs.
26545 \end_layout
26546
26547 \begin_layout Labeling
26548 \labelwidthstring 00.00.0000
26549 CVS
26550 \begin_inset space ~
26551 \end_inset
26552
26553 commands: 
26554 \begin_inset space ~
26555 \end_inset
26556
26557
26558 \begin_inset Newline newline
26559 \end_inset
26560
26561
26562 \begin_inset Flex Code
26563 status collapsed
26564
26565 \begin_layout Plain Layout
26566 cd $path; cvs diff 
26567 \family typewriter
26568 "."
26569 \end_layout
26570
26571 \end_inset
26572
26573  (Ask if changes are detected.)
26574 \begin_inset Newline newline
26575 \end_inset
26576
26577
26578 \begin_inset Flex Code
26579 status collapsed
26580
26581 \begin_layout Plain Layout
26582 cd $path; cvs -q update 
26583 \family typewriter
26584 "."
26585 \end_layout
26586
26587 \end_inset
26588
26589
26590 \end_layout
26591
26592 \begin_layout Standard
26593 where 
26594 \begin_inset Flex Code
26595 status collapsed
26596
26597 \begin_layout Plain Layout
26598 $path
26599 \end_layout
26600
26601 \end_inset
26602
26603  stands for the path to the document.
26604 \end_layout
26605
26606 \begin_layout Subsubsection
26607
26608 \family sans
26609 Show History
26610 \end_layout
26611
26612 \begin_layout Standard
26613 This shows the complete history of the CVS document.
26614  The output of 
26615 \family typewriter
26616 cvs log "<file-name>"
26617 \family default
26618  is shown in a browser.
26619 \end_layout
26620
26621 \begin_layout Subsubsection
26622 Revision info
26623 \end_layout
26624
26625 \begin_layout Standard
26626 \SpecialChar LyX
26627  supports CVS version number, author name, date and time of last commit.
26628  All those are extracted from 
26629 \family typewriter
26630 cvs log -r <file-name>
26631 \family default
26632 .
26633  See 
26634 \begin_inset CommandInset ref
26635 LatexCommand ref
26636 reference "subsec:VCS-Revision-Information"
26637
26638 \end_inset
26639
26640  for details.
26641 \end_layout
26642
26643 \begin_layout Subsection
26644 SVN commands in \SpecialChar LyX
26645
26646 \end_layout
26647
26648 \begin_layout Standard
26649 SVN is now partially supported by \SpecialChar LyX
26650 .
26651  You can find the commands in the 
26652 \family sans
26653 File\SpecialChar menuseparator
26654 Version
26655 \begin_inset space ~
26656 \end_inset
26657
26658 Control
26659 \family default
26660  submenu.
26661  Please note that if you use password protected access to repository via
26662  ssh, you will be asked in terminal window.
26663  \SpecialChar LyX
26664  was tested against SVN 1.5, 1.6, 1.7 and 1.8
26665 \begin_inset Foot
26666 status collapsed
26667
26668 \begin_layout Plain Layout
26669 Most of the commands will work with 1.4 too, see 
26670 \begin_inset CommandInset ref
26671 LatexCommand ref
26672 reference "subsec:SVN-Repo-Update"
26673
26674 \end_inset
26675
26676 .
26677  There seems to be currently unresolved permissions problem under SVN 1.8
26678  with reverting changes when file is locked.
26679 \end_layout
26680
26681 \end_inset
26682
26683
26684 \end_layout
26685
26686 \begin_layout Subsubsection
26687
26688 \family sans
26689 Register
26690 \end_layout
26691
26692 \begin_layout Standard
26693 If your document is not under revision control, this is the only item shown
26694  in the menu.
26695  And if it is under revision control, the 
26696 \family sans
26697 Register
26698 \family default
26699  item is not visible.
26700 \end_layout
26701
26702 \begin_layout Standard
26703 This command registers in SVN your document ONLY in case you have already
26704  the documents directory under SVN control (in particular 
26705 \family typewriter
26706 .svn/entries
26707 \family default
26708  file exists).
26709  This means you have to checkout the archive by yourself.
26710 \end_layout
26711
26712 \begin_layout Standard
26713 Then you are asked interactively to supply an initial description of the
26714  document.
26715  Don't forget that registered file is not yet commited.
26716 \end_layout
26717
26718 \begin_layout Standard
26719 SVN command that is run: 
26720 \family typewriter
26721 svn add -q 
26722 \begin_inset Quotes qld
26723 \end_inset
26724
26725 <file-name>
26726 \begin_inset Quotes qld
26727 \end_inset
26728
26729
26730 \end_layout
26731
26732 \begin_layout Standard
26733 Read 
26734 \family typewriter
26735 man svn
26736 \family default
26737  to understand the switches.
26738 \end_layout
26739
26740 \begin_layout Subsubsection
26741
26742 \family sans
26743 Check In Changes
26744 \end_layout
26745
26746 \begin_layout Standard
26747 When you are finished editing a file, you commit your changes.
26748  When you do this, you are asked for a description of the changes.
26749  After that changes are commited.
26750 \end_layout
26751
26752 \begin_layout Standard
26753 SVN command:
26754 \begin_inset Foot
26755 status collapsed
26756
26757 \begin_layout Plain Layout
26758 In case locking is not enabled.
26759  See Section 
26760 \begin_inset CommandInset ref
26761 LatexCommand ref
26762 reference "subsec:SVN-File-Locking"
26763
26764 \end_inset
26765
26766 .
26767 \end_layout
26768
26769 \end_inset
26770
26771  
26772 \family typewriter
26773 svn commit -q -m"<description>" <file-name>
26774 \end_layout
26775
26776 \begin_layout Subsubsection
26777
26778 \family sans
26779 Check Out For Edit
26780 \end_layout
26781
26782 \begin_layout Standard
26783 Updates the changes of this file from the repository.
26784  Be sure you understand SVN merging and conflicts resolving before using
26785  this function, because all conflicts has to be resolved manually by you!
26786 \end_layout
26787
26788 \begin_layout Standard
26789 SVN command:
26790 \begin_inset Foot
26791 status collapsed
26792
26793 \begin_layout Plain Layout
26794 Ditto.
26795 \end_layout
26796
26797 \end_inset
26798
26799  
26800 \family typewriter
26801 svn update --non-interactive 
26802 \begin_inset Quotes qld
26803 \end_inset
26804
26805 <file-name>
26806 \begin_inset Quotes qld
26807 \end_inset
26808
26809
26810 \end_layout
26811
26812 \begin_layout Subsubsection
26813
26814 \family sans
26815 Revert To Repository Version
26816 \end_layout
26817
26818 \begin_layout Standard
26819 This will discard all changes made to the document since the last check
26820  in.
26821  You get a warning before changes are discarded.
26822 \end_layout
26823
26824 \begin_layout Standard
26825 SVN command: 
26826 \family typewriter
26827 svn revert -q 
26828 \begin_inset Quotes qld
26829 \end_inset
26830
26831 <file-name>
26832 \begin_inset Quotes qld
26833 \end_inset
26834
26835
26836 \end_layout
26837
26838 \begin_layout Subsubsection
26839
26840 \family sans
26841 Copy
26842 \end_layout
26843
26844 \begin_layout Standard
26845 This will create a copy of the current document including the version history.
26846  It requires a clean document without any changes since the last checkin.
26847  You are asked for a file name and a description of the copy operation.
26848  After that the copy is created, both locally and in the repository.
26849  If the parent directories of the copied and original document differ, all
26850  relative paths of included files of the copy are adjusted (like in 
26851 \family sans
26852 File\SpecialChar menuseparator
26853 Save As
26854 \family default
26855 \SpecialChar ldots
26856 ).
26857  Finally, the copy is loaded instead of the original document.
26858 \end_layout
26859
26860 \begin_layout Labeling
26861 \labelwidthstring 00.00.0000
26862 SVN
26863 \begin_inset space ~
26864 \end_inset
26865
26866 commands: 
26867 \begin_inset space ~
26868 \end_inset
26869
26870
26871 \begin_inset Newline newline
26872 \end_inset
26873
26874
26875 \begin_inset Flex Code
26876 status collapsed
26877
26878 \begin_layout Plain Layout
26879 svn copy -q 
26880 \family typewriter
26881
26882 \begin_inset Quotes qld
26883 \end_inset
26884
26885 <file-name>
26886 \begin_inset Quotes qld
26887 \end_inset
26888
26889  
26890 \begin_inset Quotes qld
26891 \end_inset
26892
26893 <new-file-name>
26894 \begin_inset Quotes qld
26895 \end_inset
26896
26897
26898 \end_layout
26899
26900 \end_inset
26901
26902
26903 \begin_inset Newline newline
26904 \end_inset
26905
26906
26907 \begin_inset Flex Code
26908 status collapsed
26909
26910 \begin_layout Plain Layout
26911 svn commit
26912 \end_layout
26913
26914 \end_inset
26915
26916
26917 \end_layout
26918
26919 \begin_layout Subsubsection
26920
26921 \family sans
26922 Rename
26923 \end_layout
26924
26925 \begin_layout Standard
26926 This will rename the current document including the version history.
26927  It requires a clean document without any changes since the last checkin.
26928  You are asked for a file name and a description of the rename operation.
26929  After that the document is renamed, both locally and in the repository.
26930  If the parent directories of the new and old file names differ, all relative
26931  paths of included files are adjusted (like in 
26932 \family sans
26933 File\SpecialChar menuseparator
26934 Save As
26935 \family default
26936 \SpecialChar ldots
26937 ).
26938  Finally, the document is reloaded using the new name.
26939 \end_layout
26940
26941 \begin_layout Labeling
26942 \labelwidthstring 00.00.0000
26943 SVN
26944 \begin_inset space ~
26945 \end_inset
26946
26947 commands: 
26948 \begin_inset space ~
26949 \end_inset
26950
26951
26952 \begin_inset Newline newline
26953 \end_inset
26954
26955
26956 \begin_inset Flex Code
26957 status collapsed
26958
26959 \begin_layout Plain Layout
26960 svn move -q 
26961 \family typewriter
26962
26963 \begin_inset Quotes qld
26964 \end_inset
26965
26966 <file-name>
26967 \begin_inset Quotes qld
26968 \end_inset
26969
26970  
26971 \begin_inset Quotes qld
26972 \end_inset
26973
26974 <new-file-name>
26975 \begin_inset Quotes qld
26976 \end_inset
26977
26978
26979 \end_layout
26980
26981 \end_inset
26982
26983
26984 \begin_inset Newline newline
26985 \end_inset
26986
26987
26988 \begin_inset Flex Code
26989 status collapsed
26990
26991 \begin_layout Plain Layout
26992 svn commit
26993 \end_layout
26994
26995 \end_inset
26996
26997
26998 \end_layout
26999
27000 \begin_layout Subsubsection
27001 \begin_inset CommandInset label
27002 LatexCommand label
27003 name "subsec:SVN-Repo-Update"
27004
27005 \end_inset
27006
27007 Update of the local directory checkout from repository
27008 \begin_inset Foot
27009 status collapsed
27010
27011 \begin_layout Plain Layout
27012 Note that this command will work only with subversion 
27013 \begin_inset Formula $\geqq1.5$
27014 \end_inset
27015
27016
27017 \end_layout
27018
27019 \end_inset
27020
27021
27022 \end_layout
27023
27024 \begin_layout Standard
27025 All the commands above have one shortcoming – they deal with the current
27026  document only.
27027  Once your document contains pictures, includes external 
27028 \begin_inset Flex Code
27029 status collapsed
27030
27031 \begin_layout Plain Layout
27032 .tex
27033 \end_layout
27034
27035 \end_inset
27036
27037  files and so on administration becomes more complicated.
27038  \SpecialChar LyX
27039  now supports updating the whole tree in which resides the document
27040 \begin_inset Foot
27041 status collapsed
27042
27043 \begin_layout Plain Layout
27044 One need to organize the files structure so that all external files are
27045  in the same directory or subdirectories of the document.
27046  
27047 \end_layout
27048
27049 \end_inset
27050
27051 .
27052  This become especially useful once you cooperate with people which neither
27053  know about subversion management nor they have ambition to commit additional
27054  material to the repository.
27055  
27056 \end_layout
27057
27058 \begin_layout Standard
27059 \begin_inset Flex Code
27060 status collapsed
27061
27062 \begin_layout Plain Layout
27063 Update local directory from repository
27064 \end_layout
27065
27066 \end_inset
27067
27068  command updates the whole directory and in case of merge conflicts local
27069  version of the files are left, so no unintended data loss occurs.
27070  If local changes are detected user is warned before update starts.
27071 \end_layout
27072
27073 \begin_layout Labeling
27074 \labelwidthstring 00.00.0000
27075 SVN
27076 \begin_inset space ~
27077 \end_inset
27078
27079 commands: 
27080 \begin_inset space ~
27081 \end_inset
27082
27083
27084 \begin_inset Newline newline
27085 \end_inset
27086
27087
27088 \begin_inset Flex Code
27089 status collapsed
27090
27091 \begin_layout Plain Layout
27092 svn diff $path
27093 \end_layout
27094
27095 \end_inset
27096
27097  (Ask if changes are detected.)
27098 \begin_inset Newline newline
27099 \end_inset
27100
27101
27102 \begin_inset Flex Code
27103 status collapsed
27104
27105 \begin_layout Plain Layout
27106 svn update --accept mine-full $path
27107 \end_layout
27108
27109 \end_inset
27110
27111
27112 \end_layout
27113
27114 \begin_layout Standard
27115 where 
27116 \begin_inset Flex Code
27117 status collapsed
27118
27119 \begin_layout Plain Layout
27120 $path
27121 \end_layout
27122
27123 \end_inset
27124
27125  stands for the path to the document.
27126 \end_layout
27127
27128 \begin_layout Subsubsection
27129
27130 \family sans
27131 Show History
27132 \end_layout
27133
27134 \begin_layout Standard
27135 This shows the complete history of the SVN document.
27136  The output of 
27137 \family typewriter
27138 svn log 
27139 \begin_inset Quotes qld
27140 \end_inset
27141
27142 <file-name>
27143 \begin_inset Quotes qld
27144 \end_inset
27145
27146
27147 \family default
27148  is shown in a browser.
27149 \end_layout
27150
27151 \begin_layout Subsubsection
27152 File Locking
27153 \begin_inset CommandInset label
27154 LatexCommand label
27155 name "subsec:SVN-File-Locking"
27156
27157 \end_inset
27158
27159
27160 \end_layout
27161
27162 \begin_layout Standard
27163 The file exchange through various revision control systems brings the problem
27164  of merge conflicts in case two different users try to edit the same (parts
27165  of) document.
27166  When such a conflict happens it needs manual resolving and one reasonable
27167  alternative is to provide some kind of locking mechanism, which guarantees
27168  that only one user is allowed to edit file at the given time.
27169 \end_layout
27170
27171 \begin_layout Standard
27172 SVN has two such mechanisms to provide mutual exclusivity for file access
27173  – locks and automatic setting of write permissions (see sec.
27174  
27175 \begin_inset CommandInset ref
27176 LatexCommand ref
27177 reference "subsec:Automatical-Locking-Property"
27178
27179 \end_inset
27180
27181 ) based on 
27182 \begin_inset Flex Code
27183 status collapsed
27184
27185 \begin_layout Plain Layout
27186 svn:needs-lock
27187 \end_layout
27188
27189 \end_inset
27190
27191  file svn property
27192 \begin_inset Foot
27193 status collapsed
27194
27195 \begin_layout Plain Layout
27196 \begin_inset Flex URL
27197 status open
27198
27199 \begin_layout Plain Layout
27200
27201 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
27202 \end_layout
27203
27204 \end_inset
27205
27206
27207 \end_layout
27208
27209 \end_inset
27210
27211 .
27212  If this property is detected for a given document \SpecialChar LyX
27213  starts to use SVN locks
27214  for document editing automatically and the whole check-in/out mechanism
27215  switches to the same regimen as for RCS.
27216  This in particular means there are two different modes of file use in \SpecialChar LyX
27217 :
27218 \end_layout
27219
27220 \begin_layout Itemize
27221 Unlocked state.
27222  The loaded file is in the read-only mode.
27223  For editing on needs to check-out.
27224  
27225 \emph on
27226 Check-out
27227 \emph default
27228  consists of updating from the repository and gaining write lock.
27229  If the lock is not possible to obtain, we remain in unlocked state.
27230 \end_layout
27231
27232 \begin_layout Itemize
27233 Locked state.
27234  The loaded file is in the 
27235 \begin_inset Quotes els
27236 \end_inset
27237
27238 normal
27239 \begin_inset Quotes ers
27240 \end_inset
27241
27242  edit mode.
27243  No other user is allowed to edit the file.
27244  
27245 \emph on
27246 Check-in
27247 \emph default
27248  consists of commiting changes and releasing write-lock.
27249  If no changes have been made to the document, no commit will be produced
27250 \begin_inset Foot
27251 status collapsed
27252
27253 \begin_layout Plain Layout
27254 Don't be puzzled by the fact that you will be asked for commit message anyway.
27255 \end_layout
27256
27257 \end_inset
27258
27259  and only the write-lock will be released.
27260 \end_layout
27261
27262 \begin_layout Standard
27263 SVN commands:
27264 \end_layout
27265
27266 \begin_layout Labeling
27267 \labelwidthstring 00.00.0000
27268 Check-in:
27269 \family typewriter
27270  svn commit -q -m"<description>" "<file-name>"
27271 \begin_inset Newline newline
27272 \end_inset
27273
27274 svn unlock "<file-name>"
27275 \end_layout
27276
27277 \begin_layout Labeling
27278 \labelwidthstring 00.00.0000
27279 Check-out: 
27280 \family typewriter
27281 svn update "<file-name>"
27282 \begin_inset Newline newline
27283 \end_inset
27284
27285 svn lock "<file-name>"
27286 \end_layout
27287
27288 \begin_layout Subsubsection
27289
27290 \family typewriter
27291 \begin_inset CommandInset label
27292 LatexCommand label
27293 name "subsec:Automatical-Locking-Property"
27294
27295 \end_inset
27296
27297
27298 \family default
27299 Automatic Locking Property
27300 \end_layout
27301
27302 \begin_layout Standard
27303 The above mentioned automatic setting of write permissions of the .lyx file
27304  can be set through
27305 \family sans
27306  File\SpecialChar menuseparator
27307 Version
27308 \begin_inset space ~
27309 \end_inset
27310
27311 Control\SpecialChar menuseparator
27312 Use Locking Property
27313 \family default
27314 .
27315  This command is active only when the file is not locked on the svn server
27316  (i.e.
27317  you need to check-out before proceeding).
27318 \end_layout
27319
27320 \begin_layout Labeling
27321 \labelwidthstring 00.00.0000
27322 SVN
27323 \begin_inset space ~
27324 \end_inset
27325
27326 commands:
27327 \end_layout
27328
27329 \begin_layout Labeling
27330 \labelwidthstring 00.00.0000
27331 Set:
27332 \family typewriter
27333  svn propset svn:needs-lock ON "<file-name>"
27334 \end_layout
27335
27336 \begin_layout Labeling
27337 \labelwidthstring 00.00.0000
27338 Unset: 
27339 \family typewriter
27340 svn propdel svn:needs-lock "<file-name>"
27341 \end_layout
27342
27343 \begin_layout Subsubsection
27344 \begin_inset CommandInset label
27345 LatexCommand label
27346 name "subsec:VCS-Revision-Information"
27347
27348 \end_inset
27349
27350 Revision Information in Documents
27351 \end_layout
27352
27353 \begin_layout Standard
27354 There are more possibilities how to activate revision information in our
27355  document.
27356 \end_layout
27357
27358 \begin_layout Itemize
27359 \SpecialChar LyX
27360  supports directly:
27361 \end_layout
27362
27363 \begin_deeper
27364 \begin_layout Itemize
27365 tree revision information (
27366 \begin_inset Flex Code
27367 status collapsed
27368
27369 \begin_layout Plain Layout
27370 vcs-tree-revision
27371 \end_layout
27372
27373 \end_inset
27374
27375 ).
27376  The result is the output of the 
27377 \begin_inset Flex Code
27378 status collapsed
27379
27380 \begin_layout Plain Layout
27381 svnversion
27382 \end_layout
27383
27384 \end_inset
27385
27386  command, the following table gives you an idea, how to read the results.
27387 \end_layout
27388
27389 \begin_layout Standard
27390 \align center
27391 \begin_inset Tabular
27392 <lyxtabular version="3" rows="6" columns="2">
27393 <features tabularvalignment="middle">
27394 <column alignment="left" valignment="top">
27395 <column alignment="left" valignment="top">
27396 <row>
27397 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27398 \begin_inset Text
27399
27400 \begin_layout Plain Layout
27401
27402 \series bold
27403 Output
27404 \end_layout
27405
27406 \end_inset
27407 </cell>
27408 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27409 \begin_inset Text
27410
27411 \begin_layout Plain Layout
27412
27413 \series bold
27414 Meaning
27415 \end_layout
27416
27417 \end_inset
27418 </cell>
27419 </row>
27420 <row>
27421 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
27422 \begin_inset Text
27423
27424 \begin_layout Plain Layout
27425 4123:4168
27426 \end_layout
27427
27428 \end_inset
27429 </cell>
27430 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27431 \begin_inset Text
27432
27433 \begin_layout Plain Layout
27434 mixed revision working copy
27435 \end_layout
27436
27437 \end_inset
27438 </cell>
27439 </row>
27440 <row>
27441 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
27442 \begin_inset Text
27443
27444 \begin_layout Plain Layout
27445 4168M
27446 \end_layout
27447
27448 \end_inset
27449 </cell>
27450 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27451 \begin_inset Text
27452
27453 \begin_layout Plain Layout
27454 modified working copy
27455 \end_layout
27456
27457 \end_inset
27458 </cell>
27459 </row>
27460 <row>
27461 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
27462 \begin_inset Text
27463
27464 \begin_layout Plain Layout
27465 4123S
27466 \end_layout
27467
27468 \end_inset
27469 </cell>
27470 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27471 \begin_inset Text
27472
27473 \begin_layout Plain Layout
27474 switched working copy
27475 \end_layout
27476
27477 \end_inset
27478 </cell>
27479 </row>
27480 <row>
27481 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
27482 \begin_inset Text
27483
27484 \begin_layout Plain Layout
27485 4123P
27486 \end_layout
27487
27488 \end_inset
27489 </cell>
27490 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27491 \begin_inset Text
27492
27493 \begin_layout Plain Layout
27494 partial working copy, from a sparse checkout
27495 \end_layout
27496
27497 \end_inset
27498 </cell>
27499 </row>
27500 <row>
27501 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27502 \begin_inset Text
27503
27504 \begin_layout Plain Layout
27505 4123:4168MS
27506 \end_layout
27507
27508 \end_inset
27509 </cell>
27510 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27511 \begin_inset Text
27512
27513 \begin_layout Plain Layout
27514 mixed revision, modified, switched working copy
27515 \end_layout
27516
27517 \end_inset
27518 </cell>
27519 </row>
27520 </lyxtabular>
27521
27522 \end_inset
27523
27524
27525 \end_layout
27526
27527 \begin_layout Itemize
27528 file revision information.
27529  The result comes from parsing the output of 
27530 \begin_inset Flex Code
27531 status collapsed
27532
27533 \begin_layout Plain Layout
27534 svn
27535 \begin_inset space ~
27536 \end_inset
27537
27538 info
27539 \begin_inset space ~
27540 \end_inset
27541
27542 --xml
27543 \begin_inset space ~
27544 \end_inset
27545
27546 file.lyx
27547 \end_layout
27548
27549 \end_inset
27550
27551 .
27552  Supported flags are:
27553 \end_layout
27554
27555 \begin_deeper
27556 \begin_layout Itemize
27557 version number of the last commit (
27558 \begin_inset Flex Code
27559 status collapsed
27560
27561 \begin_layout Plain Layout
27562 vcs-revision
27563 \end_layout
27564
27565 \end_inset
27566
27567 )
27568 \end_layout
27569
27570 \begin_layout Itemize
27571 author of the last commit (
27572 \begin_inset Flex Code
27573 status collapsed
27574
27575 \begin_layout Plain Layout
27576 vcs-author
27577 \end_layout
27578
27579 \end_inset
27580
27581 )
27582 \end_layout
27583
27584 \begin_layout Itemize
27585 date of the last commit (
27586 \begin_inset Flex Code
27587 status collapsed
27588
27589 \begin_layout Plain Layout
27590 vcs-date
27591 \end_layout
27592
27593 \end_inset
27594
27595 )
27596 \end_layout
27597
27598 \begin_layout Itemize
27599 time of the last commit (
27600 \begin_inset Flex Code
27601 status collapsed
27602
27603 \begin_layout Plain Layout
27604 vcs-time
27605 \end_layout
27606
27607 \end_inset
27608
27609 )
27610 \end_layout
27611
27612 \end_deeper
27613 \begin_layout Standard
27614 You can obtain this info via InsetInfo (
27615 \change_inserted 5863208 1564400022
27616
27617 \lang american
27618 Insert\SpecialChar menuseparator
27619 Field\SpecialChar menuseparator
27620 Version Control Revision
27621 \change_deleted 5863208 1564399852
27622
27623 \lang english
27624 e.g.
27625  
27626 \begin_inset Flex Code
27627 status collapsed
27628
27629 \begin_layout Plain Layout
27630 info-insert buffer vcs-date
27631 \end_layout
27632
27633 \end_inset
27634
27635
27636 \change_unchanged
27637 ).
27638  The information will be available only when you have the file stored under
27639  svn managment (i.e.
27640  the 
27641 \begin_inset Flex Code
27642 status collapsed
27643
27644 \begin_layout Plain Layout
27645 .svn
27646 \end_layout
27647
27648 \end_inset
27649
27650  directory is available with your document).
27651 \end_layout
27652
27653 \end_deeper
27654 \begin_layout Itemize
27655 Another—a hacking one—possibility is to use svn keywords
27656 \begin_inset Foot
27657 status collapsed
27658
27659 \begin_layout Plain Layout
27660 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
27661 \end_layout
27662
27663 \end_inset
27664
27665 .
27666  In short – you set file keywords property (e.g.
27667  
27668 \family sans
27669 svn propset svn:keywords 'Rev' file.lyx
27670 \family default
27671 ) and then paste keyword \SpecialChar TeX
27672  code
27673 \begin_inset Foot
27674 status collapsed
27675
27676 \begin_layout Plain Layout
27677 This is an easy way how to ensure that \SpecialChar LyX
27678  won't break the line in the middle
27679  of keyword tag.
27680 \end_layout
27681
27682 \end_inset
27683
27684  tag in your document (e.g.
27685  
27686 \begin_inset Flex Code
27687 status collapsed
27688
27689 \begin_layout Plain Layout
27690 $Rev$
27691 \end_layout
27692
27693 \end_inset
27694
27695 ).
27696  This way svn client will automatically substitute revision number (e.g.
27697  
27698 \begin_inset Flex Code
27699 status collapsed
27700
27701 \begin_layout Plain Layout
27702 $Rev: 59 $
27703 \end_layout
27704
27705 \end_inset
27706
27707 ) after each update and commit.
27708  There are more problems with this approach.
27709  Firstly, the '$' character is used in \SpecialChar TeX
27710  world for math equations, so any
27711  occurence of math formula 
27712 \begin_inset Formula $Rev$
27713 \end_inset
27714
27715  become 
27716 \begin_inset Formula $Rev:59$
27717 \end_inset
27718
27719  in your \SpecialChar LyX
27720  document.
27721  Similarly for other keywords like Id, Date, Author, etc.
27722  Secondly svn output is dependent on your locales, so its very easy that
27723  svn would produce some problematic strings once Date is used.
27724  Thirdly you get the whole 'Rev: 59' string in your document instead of
27725  the plain number.
27726  Until subversion implements user's custom keywords it will be hard to use
27727  this approach reliably or let \SpecialChar LyX
27728  to support it directly.
27729 \end_layout
27730
27731 \begin_layout Subsection
27732 SVN and Windows Environment
27733 \end_layout
27734
27735 \begin_layout Quote
27736 My inclination is to say that if the user cannot figure out the command
27737  line operations on their own fairly quickly, they would be well advised
27738  to use TortoiseSVN.
27739  —P.
27740  A.
27741  Rubin
27742 \end_layout
27743
27744 \begin_layout Subsubsection
27745 Preparation
27746 \end_layout
27747
27748 \begin_layout Standard
27749 In addition to installing \SpecialChar LyX
27750 , and having access to a Subversion repository,
27751  the user will need to install the Subversion client program.
27752  A Windows installer for the client program is available from 
27753 \begin_inset CommandInset href
27754 LatexCommand href
27755 name "CollabNet"
27756 target "http://www.collab.net/nonav/downloads/subversion/"
27757 literal "false"
27758
27759 \end_inset
27760
27761 .
27762  The user may also want to install 
27763 \begin_inset CommandInset href
27764 LatexCommand href
27765 name "TortoiseSVN"
27766 target "http://tortoisesvn.tigris.org/"
27767 literal "false"
27768
27769 \end_inset
27770
27771 , which integrates Subversion operations into the context (rightclick) menu
27772  of Windows Explorer.
27773  Operations done outside \SpecialChar LyX
27774  will typically be more convenient using the Explorer
27775  context menu.
27776  Note that TortoiseSVN is not a replacement for the client program, which
27777  is what \SpecialChar LyX
27778  itself will use.
27779 \end_layout
27780
27781 \begin_layout Subsubsection
27782 Bringing a document under Subversion control
27783 \end_layout
27784
27785 \begin_layout Standard
27786 Before a \SpecialChar LyX
27787  document can be brought under version control in Subversion, its
27788  parent directory needs to be under version control.
27789  If the document is being added to a project already in the repository,
27790  this is accomplished by checking the project out to the directory where
27791  the new document will be placed.
27792  If the project itself is not yet under version control (for instance, if
27793  this document starts a new project), the directory must be imported into
27794  the repository.
27795  This is done outside \SpecialChar LyX
27796 .
27797  Both import and checkout are easily accomplished from the Explorer context
27798  menu using TortoiseSVN, or alternatively can be done using the command
27799  line client at a DOS prompt.
27800  The procedure for importing the project using TortoiseSVN is described
27801  below, assuming an existing repository and a new project being started
27802  in 
27803 \family typewriter
27804 C:
27805 \backslash
27806 new project
27807 \family default
27808 .
27809  For information on using the Subversion client program, run 
27810 \family typewriter
27811 svn --help 
27812 \family default
27813 in a DOS shell.
27814 \end_layout
27815
27816 \begin_layout Enumerate
27817 Locate 
27818 \family typewriter
27819 C:
27820 \backslash
27821 new project 
27822 \family default
27823 in Windows Explorer, right click it, and select 
27824 \family sans
27825 TortoiseSVN\SpecialChar menuseparator
27826 Repo-browser
27827 \family default
27828 .
27829  If necessary, adjust the URL for the repository, then click OK.
27830 \end_layout
27831
27832 \begin_layout Enumerate
27833 Right click the level of the repository under which you want to place the
27834  new project folder (typically the top level) and click 
27835 \family sans
27836 Create folder
27837 \family default
27838  Supply a name for the project folder and click OK.
27839  Add a message for the log file if desired, then click OK again.
27840  The new project folder should appear in the repository.
27841  Finally, click OK again to exit the repository browser.
27842 \end_layout
27843
27844 \begin_layout Enumerate
27845 Once again right click 
27846 \family typewriter
27847 C:
27848 \backslash
27849 new project
27850 \family default
27851 , this time selecting SVN Checkout\SpecialChar ldots
27852  Select the URL of the project folder
27853  you just created in the repository, and set the checkout directory to 
27854 \family typewriter
27855 C:
27856 \backslash
27857 new project.
27858
27859 \family default
27860  Click OK.
27861  You will be warned about a non-empty folder; click OK to proceed.
27862  You should now have a 
27863 \family typewriter
27864 .svn
27865 \family default
27866  directory under 
27867 \family typewriter
27868 C:
27869 \backslash
27870 new project.
27871 \end_layout
27872
27873 \begin_layout Enumerate
27874 Create or open your document in \SpecialChar LyX
27875  and click 
27876 \family sans
27877 File\SpecialChar menuseparator
27878 Version
27879 \begin_inset space ~
27880 \end_inset
27881
27882 Control\SpecialChar menuseparator
27883 Register.
27884  
27885 \family default
27886 Add a log message and click OK to commit the document to version control.
27887 \end_layout
27888
27889 \begin_layout Standard
27890 From this point onward, you should have full functionality in the 
27891 \family sans
27892 File\SpecialChar menuseparator
27893 Version
27894 \begin_inset space ~
27895 \end_inset
27896
27897 Control
27898 \family default
27899  menu.
27900  You also have the option of checking the document in and out, viewing its
27901  history, etc.
27902  using the TortoiseSVN context menu in Windows Explorer or the Subversion
27903  client program from a command prompt.
27904 \end_layout
27905
27906 \begin_layout Subsubsection
27907 SSH tunnel used with SVN under Windows
27908 \end_layout
27909
27910 \begin_layout Standard
27911 Compared with Linux setting up an svn client to communicate over ssh under
27912  Windows is a rather troublesome task.
27913  We will at least offer some hints how to setup the client side but prior
27914  knowledge about ssh and the Windows command line is needed, also be prepared
27915  for a great deal of frustration\SpecialChar ldots
27916
27917 \end_layout
27918
27919 \begin_layout Enumerate
27920 Get an svn client for windows, as described in the previous sections.
27921  When it is a fresh install run some svn command (e.g.
27922  
27923 \begin_inset Flex Code
27924 status collapsed
27925
27926 \begin_layout Plain Layout
27927 svn --version
27928 \end_layout
27929
27930 \end_inset
27931
27932 ) to create config files, which you will need to change later on.
27933 \end_layout
27934
27935 \begin_layout Enumerate
27936 Choose an ssh client for Windows.
27937  There are several possibilities, we will use the one from Putty tools
27938 \begin_inset Foot
27939 status collapsed
27940
27941 \begin_layout Plain Layout
27942 \begin_inset Flex URL
27943 status collapsed
27944
27945 \begin_layout Plain Layout
27946
27947 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
27948 \end_layout
27949
27950 \end_inset
27951
27952
27953 \end_layout
27954
27955 \end_inset
27956
27957 .
27958  You will need to set the connection up so that the client doesn't ask for
27959  any password from you.
27960  To keep things easy we will use only keys without any additional password
27961  protection etc.
27962 \end_layout
27963
27964 \begin_deeper
27965 \begin_layout Enumerate
27966 Generate keys by 
27967 \begin_inset Flex Code
27968 status collapsed
27969
27970 \begin_layout Plain Layout
27971 puttygen
27972 \end_layout
27973
27974 \end_inset
27975
27976 .
27977  Save your private .ppk key file and put the public one on the server side.
27978  If the SVN server runs on Linux, note that the format of the public key
27979  is not compatible with Linux openssh and you will need to direcly copy-paste
27980  the key from the 
27981 \begin_inset Quotes eld
27982 \end_inset
27983
27984
27985 \emph on
27986 Public key for pasting into OpenSSH authorized_keys file
27987 \emph default
27988 :
27989 \begin_inset Quotes erd
27990 \end_inset
27991
27992  edit field into the server's 
27993 \begin_inset Flex Code
27994 status collapsed
27995
27996 \begin_layout Plain Layout
27997 ~/.ssh/authorized_keys
27998 \end_layout
27999
28000 \end_inset
28001
28002  / 
28003 \begin_inset Flex Code
28004 status collapsed
28005
28006 \begin_layout Plain Layout
28007 authorized_keys2
28008 \end_layout
28009
28010 \end_inset
28011
28012  file.
28013 \end_layout
28014
28015 \begin_layout Enumerate
28016 Get the Putty's 
28017 \begin_inset Flex Code
28018 status collapsed
28019
28020 \begin_layout Plain Layout
28021 plink
28022 \end_layout
28023
28024 \end_inset
28025
28026 .
28027  In the SVN config file
28028 \begin_inset Foot
28029 status collapsed
28030
28031 \begin_layout Plain Layout
28032 Exact path depends on Windows version, usually somewhere around 
28033 \begin_inset Flex Code
28034 status collapsed
28035
28036 \begin_layout Plain Layout
28037 c:
28038 \backslash
28039 Documents and Settings
28040 \backslash
28041 user
28042 \backslash
28043 Application Data
28044 \backslash
28045 Subversion
28046 \backslash
28047 config
28048 \end_layout
28049
28050 \end_inset
28051
28052  / 
28053 \begin_inset Flex Code
28054 status collapsed
28055
28056 \begin_layout Plain Layout
28057 AppData
28058 \backslash
28059 Roaming
28060 \backslash
28061 Subversion
28062 \end_layout
28063
28064 \end_inset
28065
28066 .
28067 \end_layout
28068
28069 \end_inset
28070
28071 , section [tunnels], setup ssh command, e.g.
28072  
28073 \begin_inset Flex Code
28074 status collapsed
28075
28076 \begin_layout Plain Layout
28077 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
28078 \end_layout
28079
28080 \end_inset
28081
28082 .
28083 \begin_inset Foot
28084 status collapsed
28085
28086 \begin_layout Plain Layout
28087 It will usually take a lot of time to get exact command right and it depends
28088  on many things.
28089  For example do not have some remote server saved as a default session in
28090  Putty etc.
28091  If things fail, try to connect via plink without SVN first.
28092 \end_layout
28093
28094 \end_inset
28095
28096
28097 \end_layout
28098
28099 \end_deeper
28100 \begin_layout Enumerate
28101 Checkout the SVN archive, e.
28102 \begin_inset space \thinspace{}
28103 \end_inset
28104
28105 g.
28106 \begin_inset Newline newline
28107 \end_inset
28108
28109
28110 \begin_inset Flex Code
28111 status collapsed
28112
28113 \begin_layout Plain Layout
28114 svn co svn+ssh://user@server/repository_path
28115 \end_layout
28116
28117 \end_inset
28118
28119 .
28120 \end_layout
28121
28122 \begin_layout Subsubsection
28123 End-of-Line Conversions
28124 \end_layout
28125
28126 \begin_layout Standard
28127 When the collaborators are mixing Linux and Windows environments, \SpecialChar LyX
28128  will
28129  use different line endings inside the .lyx files.
28130  This is not a problem as far as \SpecialChar LyX
28131  functionality is concerned, but the commit
28132  diffs will be huge and merge-conflicts prone.
28133  Fortunately SVN itself knows
28134 \begin_inset Foot
28135 status collapsed
28136
28137 \begin_layout Plain Layout
28138 \begin_inset Flex URL
28139 status collapsed
28140
28141 \begin_layout Plain Layout
28142
28143 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
28144 \end_layout
28145
28146 \end_inset
28147
28148
28149 \end_layout
28150
28151 \end_inset
28152
28153  how to deal with CR/LF problems when switching .lyx files to the 
28154 \begin_inset Flex Code
28155 status collapsed
28156
28157 \begin_layout Plain Layout
28158 native
28159 \end_layout
28160
28161 \end_inset
28162
28163  mode.
28164 \begin_inset Foot
28165 status collapsed
28166
28167 \begin_layout Plain Layout
28168 For the lazy guys: 
28169 \begin_inset Flex Code
28170 status collapsed
28171
28172 \begin_layout Plain Layout
28173 svn propset svn:eol-style native FILE_NAME
28174 \end_layout
28175
28176 \end_inset
28177
28178
28179 \end_layout
28180
28181 \end_inset
28182
28183
28184 \end_layout
28185
28186 \begin_layout Subsection
28187 GIT commands in \SpecialChar LyX
28188
28189 \end_layout
28190
28191 \begin_layout Standard
28192 A minimal subset of GIT commands is now supported by \SpecialChar LyX
28193 .
28194  You can find the commands in the 
28195 \family sans
28196 File\SpecialChar menuseparator
28197 Version
28198 \begin_inset space ~
28199 \end_inset
28200
28201 Control
28202 \family default
28203  submenu.
28204  Please note that if you use password protected access to repository via
28205  ssh, you will be asked in terminal window.
28206  \SpecialChar LyX
28207  was tested against GIT 1.7.
28208 \begin_inset Foot
28209 status collapsed
28210
28211 \begin_layout Plain Layout
28212 Windows users please note that you need to ensure that git is on the path.
28213  This can be set from within \SpecialChar LyX
28214  at 
28215 \family sans
28216 Tools\SpecialChar menuseparator
28217 Preferences\SpecialChar menuseparator
28218 Paths\SpecialChar menuseparator
28219 PATH prefix
28220 \family default
28221 .
28222 \end_layout
28223
28224 \end_inset
28225
28226
28227 \end_layout
28228
28229 \begin_layout Standard
28230 One big difference of GIT and the other supported version control systems
28231  is the distributed nature of GIT: With traditional version control systems
28232  there is one central server which hosts the repository.
28233  Users commit their changes to the server, and get updates made by other
28234  users from it.
28235  With GIT, users commit to a local repository.
28236  The local repository can be synchronized with one or more remote repositories
28237  using the 
28238 \begin_inset Flex Code
28239 status collapsed
28240
28241 \begin_layout Plain Layout
28242 pull
28243 \end_layout
28244
28245 \end_inset
28246
28247  and 
28248 \begin_inset Flex Code
28249 status collapsed
28250
28251 \begin_layout Plain Layout
28252 push
28253 \end_layout
28254
28255 \end_inset
28256
28257  GIT commands.
28258  \SpecialChar LyX
28259  does not interact in any way with remote GIT repositories.
28260  It works exclusively with the local repository in a very similar way as
28261  with a central CVS or SVN repository.
28262  If you use remote GIT repositories you need to do the 
28263 \begin_inset Flex Code
28264 status collapsed
28265
28266 \begin_layout Plain Layout
28267 pull
28268 \end_layout
28269
28270 \end_inset
28271
28272  and 
28273 \begin_inset Flex Code
28274 status collapsed
28275
28276 \begin_layout Plain Layout
28277 push
28278 \end_layout
28279
28280 \end_inset
28281
28282  operations with your favourite GIT client.
28283 \end_layout
28284
28285 \begin_layout Subsubsection
28286
28287 \family sans
28288 Register
28289 \end_layout
28290
28291 \begin_layout Standard
28292 If your document is not under revision control, this is the only item shown
28293  in the menu.
28294  And if it is under revision control, the 
28295 \family sans
28296 Register
28297 \family default
28298  item is not visible.
28299 \end_layout
28300
28301 \begin_layout Standard
28302 This command registers in GIT your document ONLY in case you have already
28303  the documents directory under GIT control (in particular 
28304 \family typewriter
28305 .git/index
28306 \family default
28307  file exists).
28308  This means you have to checkout the archive by yourself.
28309 \end_layout
28310
28311 \begin_layout Standard
28312 Then you are asked interactively to supply an initial description of the
28313  document.
28314  Don't forget that registered file is not yet committed.
28315 \end_layout
28316
28317 \begin_layout Standard
28318 GIT command that is run: 
28319 \family typewriter
28320 git add 
28321 \begin_inset Quotes qld
28322 \end_inset
28323
28324 <file-name>
28325 \begin_inset Quotes qld
28326 \end_inset
28327
28328
28329 \end_layout
28330
28331 \begin_layout Standard
28332 Read 
28333 \family typewriter
28334 man git
28335 \family default
28336  to understand the switches.
28337 \end_layout
28338
28339 \begin_layout Subsubsection
28340
28341 \family sans
28342 Check In Changes
28343 \end_layout
28344
28345 \begin_layout Standard
28346 When you are finished editing a file, you commit your changes.
28347  When you do this, you are asked for a description of the changes.
28348  After that changes are committed.
28349 \end_layout
28350
28351 \begin_layout Standard
28352 GIT command: 
28353 \family typewriter
28354 git commit -q -m"<description>" <file-name>
28355 \end_layout
28356
28357 \begin_layout Subsubsection
28358
28359 \family sans
28360 Revert To Repository Version
28361 \end_layout
28362
28363 \begin_layout Standard
28364 This will discard all changes made to the document since the last check
28365  in.
28366  You get a warning before changes are discarded.
28367 \end_layout
28368
28369 \begin_layout Standard
28370 GIT command: 
28371 \family typewriter
28372 git checkout -q 
28373 \begin_inset Quotes qld
28374 \end_inset
28375
28376 <file-name>
28377 \begin_inset Quotes qld
28378 \end_inset
28379
28380
28381 \end_layout
28382
28383 \begin_layout Subsubsection
28384
28385 \family sans
28386 Rename
28387 \end_layout
28388
28389 \begin_layout Standard
28390 This will rename the current document including the version history.
28391  It requires a clean document without any changes since the last checkin.
28392  You are asked for a file name and a description of the rename operation.
28393  After that the document is renamed, both locally and in the repository.
28394  If the parent directories of the new and old file names differ, all relative
28395  paths of included files are adjusted (like in 
28396 \family sans
28397 File\SpecialChar menuseparator
28398 Save As
28399 \family default
28400 \SpecialChar ldots
28401 ).
28402  Finally, the document is reloaded using the new name.
28403 \end_layout
28404
28405 \begin_layout Labeling
28406 \labelwidthstring 00.00.0000
28407 GIT
28408 \begin_inset space ~
28409 \end_inset
28410
28411 commands: 
28412 \begin_inset space ~
28413 \end_inset
28414
28415
28416 \begin_inset Newline newline
28417 \end_inset
28418
28419
28420 \begin_inset Flex Code
28421 status collapsed
28422
28423 \begin_layout Plain Layout
28424 git mv 
28425 \family typewriter
28426
28427 \begin_inset Quotes qld
28428 \end_inset
28429
28430 <file-name>
28431 \begin_inset Quotes qld
28432 \end_inset
28433
28434  
28435 \begin_inset Quotes qld
28436 \end_inset
28437
28438 <new-file-name>
28439 \begin_inset Quotes qld
28440 \end_inset
28441
28442
28443 \end_layout
28444
28445 \end_inset
28446
28447
28448 \begin_inset Newline newline
28449 \end_inset
28450
28451
28452 \begin_inset Flex Code
28453 status collapsed
28454
28455 \begin_layout Plain Layout
28456 git commit
28457 \end_layout
28458
28459 \end_inset
28460
28461
28462 \end_layout
28463
28464 \begin_layout Subsubsection
28465
28466 \family sans
28467 Show History
28468 \end_layout
28469
28470 \begin_layout Standard
28471 This shows the complete history of the GIT document.
28472  The output of 
28473 \family typewriter
28474 git log 
28475 \begin_inset Quotes qld
28476 \end_inset
28477
28478 <file-name>
28479 \begin_inset Quotes qld
28480 \end_inset
28481
28482
28483 \family default
28484  is shown in a browser.
28485 \end_layout
28486
28487 \begin_layout Subsubsection
28488 Version Info
28489 \end_layout
28490
28491 \begin_layout Standard
28492 \SpecialChar LyX
28493  supports GIT hash number of the last commit to the file, 
28494 \change_inserted 1119979965 1564297456
28495 its abbreviated form, 
28496 \change_unchanged
28497 author name, date and time of last commit.
28498  All those are extracted from 
28499 \family typewriter
28500 git log -n 1 --pretty=format:%H%n
28501 \change_inserted 1119979965 1564297427
28502 %h%n
28503 \change_unchanged
28504 %an%n%ai
28505 \family default
28506 .
28507  Tree version information is obtained via 
28508 \family typewriter
28509 git describe --abbrev --dirty --long
28510 \family default
28511 .
28512  See 
28513 \begin_inset CommandInset ref
28514 LatexCommand ref
28515 reference "subsec:VCS-Revision-Information"
28516
28517 \end_inset
28518
28519  for other details.
28520 \end_layout
28521
28522 \begin_layout Subsection
28523 Further tuning
28524 \end_layout
28525
28526 \begin_layout Standard
28527 With the recent addition of the 
28528 \begin_inset Flex Code
28529 status collapsed
28530
28531 \begin_layout Plain Layout
28532 vc-command
28533 \end_layout
28534
28535 \end_inset
28536
28537  function \SpecialChar LyX
28538  power users are allowed to create their own commands for revision
28539  control.
28540 \end_layout
28541
28542 \begin_layout Standard
28543 As an example you can see how two TortoiseSVN commands could be integrated
28544  directly:
28545 \end_layout
28546
28547 \begin_layout Description
28548 Commit: 
28549 \begin_inset Flex Code
28550 status collapsed
28551
28552 \begin_layout Plain Layout
28553 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
28554 \end_layout
28555
28556 \end_inset
28557
28558
28559 \end_layout
28560
28561 \begin_layout Description
28562 Revert: 
28563 \begin_inset Flex Code
28564 status collapsed
28565
28566 \begin_layout Plain Layout
28567 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
28568 \end_layout
28569
28570 \end_inset
28571
28572
28573 \end_layout
28574
28575 \begin_layout Subsection
28576 Version control and Document comparison
28577 \end_layout
28578
28579 \begin_layout Standard
28580 One of the typical uses of version control is to inspect the changes between
28581  revisions, usually by creating 
28582 \begin_inset Flex Code
28583 status collapsed
28584
28585 \begin_layout Plain Layout
28586 diff
28587 \end_layout
28588
28589 \end_inset
28590
28591  dumps.
28592  While this is useful for plain text files, it is much less useful in the
28593  case of \SpecialChar LyX
28594  files, which have more a complicated structure.
28595  Hence we provide binding to the Document comparison feature.
28596  There are two ways of calling this feature – either by direct call of 
28597 \begin_inset Flex Code
28598 status collapsed
28599
28600 \begin_layout Plain Layout
28601 vc-compare
28602 \end_layout
28603
28604 \end_inset
28605
28606  \SpecialChar LyX
28607  function (for details see \SpecialChar LyX
28608  functions manual) or by the toolbar icon 
28609 \begin_inset Info
28610 type  "icon"
28611 arg   "vc-compare"
28612 \end_inset
28613
28614  or the menu item 
28615 \begin_inset Info
28616 type  "menu"
28617 arg   "vc-compare"
28618 \end_inset
28619
28620 , respectively.
28621  One can either compare two chosen revisions of the document or he can simply
28622  compare the current version of edited text with older revisions (where
28623  '
28624 \begin_inset Flex Noun
28625 status collapsed
28626
28627 \begin_layout Plain Layout
28628 0
28629 \end_layout
28630
28631 \end_inset
28632
28633 ' revisions back means comparison of the edited file with last commited
28634  revision).
28635  
28636 \end_layout
28637
28638 \begin_layout Standard
28639 This feature is supported for SVN and RCS though due to the more complicated
28640  versioning scheme of RCS there is a constraint – when addressing the revisions
28641  in dialog, numbers always point to the last number in RCS revision number,
28642  i.e.
28643  '35' in '1.2.35'.
28644  We don't currently support GIT addressing of revisions, one can just compare
28645  edited document with its revision X steps backs, where X is addressed as
28646  
28647 \begin_inset Flex Code
28648 status collapsed
28649
28650 \begin_layout Plain Layout
28651 HEAD~X
28652 \end_layout
28653
28654 \end_inset
28655
28656 .
28657 \end_layout
28658
28659 \begin_layout Section
28660 Literate Programming
28661 \end_layout
28662
28663 \begin_layout Standard
28664 Updated by 
28665 \noun on
28666 Kayvan Sylvan 
28667 \noun default
28668 (kayvan@sylvan.com)
28669 \noun on
28670
28671 \noun default
28672 original documentation written by 
28673 \noun on
28674 Edmar Wienskoski Jr.
28675
28676 \noun default
28677  (edmar-w-jr@technologist.com)
28678 \end_layout
28679
28680 \begin_layout Subsection
28681 Introduction
28682 \end_layout
28683
28684 \begin_layout Standard
28685 The main purpose of this documentation is to show you how to use \SpecialChar LyX
28686  for literate
28687  programming, where it is assumed that you are familiar with this programming
28688  technique, and know what 
28689 \begin_inset Quotes eld
28690 \end_inset
28691
28692 tangling
28693 \begin_inset Quotes erd
28694 \end_inset
28695
28696  and 
28697 \begin_inset Quotes eld
28698 \end_inset
28699
28700 weaving
28701 \begin_inset Quotes erd
28702 \end_inset
28703
28704  means.
28705  If that is not the case, please follow the web links provided in the following
28706  sections.
28707  There is a lot of good documentation out there covering old development
28708  history to the latest tools tips.
28709 \end_layout
28710
28711 \begin_layout Standard
28712 It is also assumed that you are familiar with \SpecialChar LyX
28713  itself to a point that you
28714  are comfortable changing your \SpecialChar LyX
28715  preferences, and X resources file.
28716  If that is not the case please refer to other \SpecialChar LyX
28717  documentation to cover your
28718  specific needs.
28719 \end_layout
28720
28721 \begin_layout Subsection
28722 Literate Programming
28723 \end_layout
28724
28725 \begin_layout Standard
28726 From the Literate Programming FAQ: 
28727 \end_layout
28728
28729 \begin_layout Quotation
28730 Literate programming is the combination of documentation and source together
28731  in a fashion suited for reading by human beings.
28732  In fact, literate programs should be enjoyable reading, even inviting!
28733  (Sorry Bob, I couldn't resist!) In general, literate programs combine source
28734  and documentation in a single file.
28735  Literate programming tools then parse the file to produce either readable
28736  documentation or compilable source.
28737  The WEB style of literate programming was created by D.
28738 \begin_inset space \thinspace{}
28739 \end_inset
28740
28741 E.
28742  Knuth during the development of his \SpecialChar TeX
28743  typesetting software.
28744  
28745 \end_layout
28746
28747 \begin_layout Standard
28748 Another excerpt says:
28749 \end_layout
28750
28751 \begin_layout Quotation
28752
28753 \emph on
28754 How is literate programming different from verbose commenting?
28755 \end_layout
28756
28757 \begin_layout Quotation
28758 There are three distinguishing characteristics.
28759  In order of importance, they are: 
28760 \end_layout
28761
28762 \begin_deeper
28763 \begin_layout Itemize
28764 flexible order of elaboration 
28765 \end_layout
28766
28767 \begin_layout Itemize
28768 automatic support for browsing 
28769 \end_layout
28770
28771 \begin_layout Itemize
28772 typeset documentation, especially diagrams and mathematics 
28773 \end_layout
28774
28775 \end_deeper
28776 \begin_layout Standard
28777 Now that I sparked your curiosity, take a look in the references.
28778 \end_layout
28779
28780 \begin_layout Subsubsection
28781 References
28782 \end_layout
28783
28784 \begin_layout Standard
28785 The complete Literate Programming FAQ can be found at:
28786 \end_layout
28787
28788 \begin_layout Quote
28789 Literate Programming FAQ 
28790 \begin_inset Flex URL
28791 status open
28792
28793 \begin_layout Plain Layout
28794
28795 http://www.literateprogramming.com/lpfaq.pdf
28796 \end_layout
28797
28798 \end_inset
28799
28800
28801 \end_layout
28802
28803 \begin_layout Standard
28804 The FAQ lists 23 (twenty three!) different literate programming tools.
28805  Where some are specialized or 
28806 \begin_inset Quotes eld
28807 \end_inset
28808
28809 tailored
28810 \begin_inset Quotes erd
28811 \end_inset
28812
28813  for particular programming languages, while other have general scope.
28814  I selected 
28815 \noun on
28816 Noweb
28817 \noun default
28818  for my own use for several reasons:
28819 \end_layout
28820
28821 \begin_layout Itemize
28822 It can generate the documentation either in \SpecialChar LaTeX
28823  or HTML.
28824 \end_layout
28825
28826 \begin_layout Itemize
28827 It has a open architecture, i.
28828 \begin_inset space \thinspace{}
28829 \end_inset
28830
28831 e.
28832 \begin_inset space \space{}
28833 \end_inset
28834
28835 it is easy to plug in new filters
28836 \begin_inset Foot
28837 status collapsed
28838
28839 \begin_layout Plain Layout
28840
28841 \emph on
28842 Filters 
28843 \emph default
28844 are programs that read a given data stream and output a manipulated data
28845  stream.
28846  That way, a WEB file (consisting of literate code) can be turned into a
28847  file consisting only of C program code or \SpecialChar LaTeX
28848  code.
28849 \end_layout
28850
28851 \end_inset
28852
28853  and to perform special processing that you may need.
28854  
28855 \end_layout
28856
28857 \begin_layout Itemize
28858 There is a good selection of filters available already (the HTML is one
28859  of them).
28860 \end_layout
28861
28862 \begin_layout Itemize
28863 It is free.
28864 \end_layout
28865
28866 \begin_layout Standard
28867 The Noweb web page can be found at: 
28868 \end_layout
28869
28870 \begin_layout Quote
28871 Noweb home page 
28872 \begin_inset Flex URL
28873 status collapsed
28874
28875 \begin_layout Plain Layout
28876
28877 https://www.cs.tufts.edu/~nr/noweb/
28878 \end_layout
28879
28880 \end_inset
28881
28882
28883 \end_layout
28884
28885 \begin_layout Standard
28886 Starting from there you can reach many other interesting links and even
28887  some literate program examples.
28888 \end_layout
28889
28890 \begin_layout Subsection
28891 \SpecialChar LyX
28892  and Literate Programming with Noweb
28893 \end_layout
28894
28895 \begin_layout Standard
28896 The \SpecialChar LyX
28897  support for Literate Programming is provided by using the generic \SpecialChar LyX
28898
28899  converters mechanism.
28900  This support is provided in a 
28901 \begin_inset Quotes eld
28902 \end_inset
28903
28904 Noweb independent
28905 \begin_inset Quotes erd
28906 \end_inset
28907
28908  way, i.
28909 \begin_inset space \thinspace{}
28910 \end_inset
28911
28912 e.
28913 \begin_inset space \space{}
28914 \end_inset
28915
28916 you will be able to use this new \SpecialChar LyX
28917  feature with some other literate programming
28918  tool of your choice by just changing your \SpecialChar LyX
28919  preferences.
28920 \end_layout
28921
28922 \begin_layout Subsubsection
28923 Generating documents and code (weaving and tangling)
28924 \end_layout
28925
28926 \begin_layout Paragraph
28927 Using the noweb module
28928 \end_layout
28929
28930 \begin_layout Standard
28931 If you have installed Noweb and \SpecialChar LyX
28932  successfully, whenever you open a new document,
28933  after you have chosen its document class, use the 
28934 \family sans
28935 Document\SpecialChar menuseparator
28936 Settings
28937 \family default
28938  menu to add the 
28939 \begin_inset Quotes eld
28940 \end_inset
28941
28942 noweb
28943 \begin_inset Quotes erd
28944 \end_inset
28945
28946  module.
28947  If Noweb is correctly installed, when you click on the 
28948 \begin_inset Quotes eld
28949 \end_inset
28950
28951 Modules
28952 \begin_inset Quotes erd
28953 \end_inset
28954
28955  link, you will see the 
28956 \begin_inset Quotes eld
28957 \end_inset
28958
28959 noweb
28960 \begin_inset Quotes erd
28961 \end_inset
28962
28963  module in the available list and you can add it to your document.
28964 \end_layout
28965
28966 \begin_layout Paragraph
28967 Typing code in
28968 \end_layout
28969
28970 \begin_layout Standard
28971 \SpecialChar LyX
28972  enables you to write code with a custom inset named 
28973 \begin_inset Flex Noun
28974 status collapsed
28975
28976 \begin_layout Plain Layout
28977 Chunk
28978 \end_layout
28979
28980 \end_inset
28981
28982 .
28983  Noweb delimits chunks like this:
28984 \end_layout
28985
28986 \begin_layout LyX-Code
28987 <<My code>>=
28988 \end_layout
28989
28990 \begin_layout LyX-Code
28991   code
28992 \end_layout
28993
28994 \begin_layout LyX-Code
28995   more code
28996 \end_layout
28997
28998 \begin_layout LyX-Code
28999   even more code
29000 \end_layout
29001
29002 \begin_layout LyX-Code
29003   @
29004 \end_layout
29005
29006 \begin_layout Standard
29007 The problem is that whatever is written in between the << and the 
29008 \family typewriter
29009 @
29010 \family default
29011  must be taken literally, i.
29012 \begin_inset space \thinspace{}
29013 \end_inset
29014
29015 e.
29016 \begin_inset space \space{}
29017 \end_inset
29018
29019 \SpecialChar LyX
29020  should be prevented from making any special interpretation of what has
29021  been written.
29022  This is also handled by 
29023 \begin_inset Flex Noun
29024 status collapsed
29025
29026 \begin_layout Plain Layout
29027 Chunk
29028 \end_layout
29029
29030 \end_inset
29031
29032 , that works like a normal text inset but has a free spacing capability.
29033 \end_layout
29034
29035 \begin_layout Standard
29036 As a special note, you can also use the 
29037 \begin_inset Quotes eld
29038 \end_inset
29039
29040 %def
29041 \begin_inset Quotes erd
29042 \end_inset
29043
29044  construct of Noweb in your chunks to add items to Noweb's identifier cross-refe
29045 rence:
29046 \end_layout
29047
29048 \begin_layout LyX-Code
29049 <<My chunk>>=
29050 \end_layout
29051
29052 \begin_layout LyX-Code
29053 def some_function(args):
29054 \end_layout
29055
29056 \begin_layout LyX-Code
29057    "This is the doc string for this function."
29058 \end_layout
29059
29060 \begin_layout LyX-Code
29061    print "My args: ", args
29062 \end_layout
29063
29064 \begin_layout LyX-Code
29065 @ %def some_function
29066 \end_layout
29067
29068 \begin_layout Standard
29069 For an example of this usage and the resulting cross-reference output, look
29070  at the Literate python program in 
29071 \emph on
29072 LIBDIR/examples/listerrors.lyx
29073 \emph default
29074  which should make this all clear.
29075 \end_layout
29076
29077 \begin_layout Paragraph
29078 Generating the documentation
29079 \end_layout
29080
29081 \begin_layout Standard
29082 At this point you already have a new document file with a proper document
29083  class, and with some code and text on it.
29084  How do I print it? The answer is simple, you select 
29085 \family sans
29086 View\SpecialChar menuseparator
29087 DVI,
29088 \family default
29089  etc.
29090  Just like you would do for a plain document.
29091  No special procedure is required.
29092 \end_layout
29093
29094 \begin_layout Standard
29095 To help orientate you, I will now explain what happens inside \SpecialChar LyX
29096 :
29097 \end_layout
29098
29099 \begin_layout Enumerate
29100 When the 
29101 \family sans
29102 Update\SpecialChar menuseparator
29103 DVI
29104 \family default
29105  menu option is chosen, a \SpecialChar LaTeX
29106  file is generated.
29107  
29108 \end_layout
29109
29110 \begin_deeper
29111 \begin_layout Standard
29112 If the document is of any literate class the generated file will be named
29113  with an extension name defined by the 
29114 \begin_inset Quotes eld
29115 \end_inset
29116
29117 literate
29118 \begin_inset Quotes erd
29119 \end_inset
29120
29121  format (defined in the Preferences panel), otherwise the file will have
29122  the usual 
29123 \family typewriter
29124 .tex
29125 \family default
29126  extension.
29127 \end_layout
29128
29129 \end_deeper
29130 \begin_layout Enumerate
29131 Note that the only difference so far is in the name of the file, no special
29132  processing is required by \SpecialChar LyX
29133 .
29134  Given that you formatted the code using the 
29135 \begin_inset Flex Noun
29136 status collapsed
29137
29138 \begin_layout Plain Layout
29139 Chunk
29140 \end_layout
29141
29142 \end_inset
29143
29144  inset that, by itself, takes care of the business.
29145 \end_layout
29146
29147 \begin_layout Enumerate
29148 If the document is of any literate class \SpecialChar LyX
29149  will then use the internal \SpecialChar LyX
29150  to
29151  Noweb converter, followed by the Noweb to \SpecialChar LaTeX
29152  converter
29153 \begin_inset Foot
29154 status collapsed
29155
29156 \begin_layout Plain Layout
29157 The converters are defined in the 
29158 \family sans
29159 Tools\SpecialChar menuseparator
29160 Preferences
29161 \family default
29162  panel, under the 
29163 \begin_inset Quotes eld
29164 \end_inset
29165
29166 Conversion
29167 \begin_inset Quotes erd
29168 \end_inset
29169
29170  tab.
29171  See section 
29172 \emph on
29173 Converters
29174 \emph default
29175  of the 
29176 \emph on
29177 Customization
29178 \emph default
29179  manual for general information about converters.
29180 \end_layout
29181
29182 \end_inset
29183
29184  to generate the \SpecialChar LaTeX
29185  file.
29186 \end_layout
29187
29188 \begin_deeper
29189 \begin_layout Standard
29190 Otherwise it will just skip this step.
29191 \end_layout
29192
29193 \end_deeper
29194 \begin_layout Enumerate
29195 Finally, \SpecialChar LaTeX
29196  is invoked and the regular post processing continues as in a plain
29197  document.
29198 \end_layout
29199
29200 \begin_layout Standard
29201 Independence from a particular 
29202 \begin_inset Quotes eld
29203 \end_inset
29204
29205 literate tool
29206 \begin_inset Quotes erd
29207 \end_inset
29208
29209  is easily achieved by changing the commands that are run by the various
29210  converters.
29211 \end_layout
29212
29213 \begin_layout Paragraph
29214 Generating the code
29215 \end_layout
29216
29217 \begin_layout Standard
29218 When the build menu option is chosen or the corresponding button in the
29219  toolbar is pressed, a \SpecialChar LaTeX
29220  file is generated just like step 1 above.
29221  Next, \SpecialChar LyX
29222  invokes the 
29223 \family typewriter
29224 Noweb->Program
29225 \family default
29226  converter.
29227  This converter needs to be defined by the user and is not installed by
29228  default, though the Program format is.
29229  This converter (like any other converter) will have two parts:
29230 \end_layout
29231
29232 \begin_layout Enumerate
29233 The converter program itself.
29234  This program performs the conversion from the one format to the other (in
29235  this case, from the Noweb format to the Program pseudo-format).
29236 \end_layout
29237
29238 \begin_layout Enumerate
29239 The error log parser.
29240  This is a program whose sole purpose is to rewrite error messages in a
29241  format that \SpecialChar LyX
29242  understands.
29243  This makes it possible for \SpecialChar LyX
29244  to place error boxes in the right places in
29245  the file buffer.
29246 \end_layout
29247
29248 \begin_layout Standard
29249 The first part, the 
29250 \begin_inset Quotes eld
29251 \end_inset
29252
29253 Converter
29254 \begin_inset Quotes erd
29255 \end_inset
29256
29257  setting, should be set to
29258 \end_layout
29259
29260 \begin_layout LyX-Code
29261
29262 \family typewriter
29263 build-script $$i
29264 \family default
29265  $$r
29266 \end_layout
29267
29268 \begin_layout Standard
29269 This basically means that \SpecialChar LyX
29270  will call 
29271 \begin_inset Quotes eld
29272 \end_inset
29273
29274 build-script
29275 \begin_inset Quotes erd
29276 \end_inset
29277
29278  (a program or script) with the name of the Noweb file (normally a file
29279  in the \SpecialChar LyX
29280  temp directory) and the directory path of the original \SpecialChar LyX
29281  file.
29282  
29283 \end_layout
29284
29285 \begin_layout Standard
29286 This is an implementation of 
29287 \begin_inset Quotes eld
29288 \end_inset
29289
29290 build-script
29291 \begin_inset Quotes erd
29292 \end_inset
29293
29294  that you can place in a directory on your path:
29295 \end_layout
29296
29297 \begin_layout LyX-Code
29298
29299 \family sans
29300 #!/bin/sh
29301 \end_layout
29302
29303 \begin_layout LyX-Code
29304
29305 \family sans
29306 #
29307 \end_layout
29308
29309 \begin_layout LyX-Code
29310
29311 \family sans
29312 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
29313 \end_layout
29314
29315 \begin_layout Standard
29316 The next part of the converter setting is the 
29317 \begin_inset Quotes eld
29318 \end_inset
29319
29320 Flags
29321 \begin_inset Quotes erd
29322 \end_inset
29323
29324  which is to be set to
29325 \end_layout
29326
29327 \begin_layout LyX-Code
29328
29329 \family typewriter
29330 parselog=$$s/scripts/listerrors
29331 \end_layout
29332
29333 \begin_layout Standard
29334 This will run any errors that are generated by the 
29335 \begin_inset Quotes eld
29336 \end_inset
29337
29338 build-script
29339 \begin_inset Quotes erd
29340 \end_inset
29341
29342  process through the 
29343 \begin_inset Quotes eld
29344 \end_inset
29345
29346 listerrors
29347 \begin_inset Quotes erd
29348 \end_inset
29349
29350  program.
29351 \end_layout
29352
29353 \begin_layout Standard
29354 The build will normally take place in \SpecialChar LyX
29355 's temporary directory, so the files
29356  produced by the conversion will be in that directory.
29357  \SpecialChar LyX
29358  will copy out what it regards as the `main' file, but the 
29359 \family typewriter
29360 Noweb->Program
29361 \family default
29362  conversion may produce several files, and so most of these would then be
29363  deleted when \SpecialChar LyX
29364  was closed.
29365  This is why we pass in the NOWEB_OUTPUT_DIR environment variable so that
29366  the build-script chunk can place the generated files in that location.
29367 \end_layout
29368
29369 \begin_layout Paragraph
29370 Build instructions in the document
29371 \end_layout
29372
29373 \begin_layout Standard
29374 The last piece of the integration between \SpecialChar LyX
29375  and noweb is the 
29376 \begin_inset Quotes eld
29377 \end_inset
29378
29379 build-script
29380 \begin_inset Quotes erd
29381 \end_inset
29382
29383  chunk.
29384  Generally, the instructions for building your program should be embedded
29385  in a chunk of its own.
29386  The noweb-specific 
29387 \begin_inset Quotes eld
29388 \end_inset
29389
29390 build-script
29391 \begin_inset Quotes erd
29392 \end_inset
29393
29394  above uses the notangle command to look for this chunk (called 
29395 \begin_inset Quotes eld
29396 \end_inset
29397
29398 build-script
29399 \begin_inset Quotes erd
29400 \end_inset
29401
29402 ) and runs its contents through 
29403 \begin_inset Quotes eld
29404 \end_inset
29405
29406 sh
29407 \begin_inset Quotes erd
29408 \end_inset
29409
29410 .
29411 \end_layout
29412
29413 \begin_layout Standard
29414 Typically, such a chunk would look something like this:
29415 \end_layout
29416
29417 \begin_layout LyX-Code
29418 <<build-script>>=
29419 \end_layout
29420
29421 \begin_layout LyX-Code
29422 #!/bin/sh
29423 \begin_inset Newline newline
29424 \end_inset
29425
29426 if [ -z "${NOWEB_SOURCE}" ]
29427 \begin_inset Newline newline
29428 \end_inset
29429
29430 then
29431 \end_layout
29432
29433 \begin_layout LyX-Code
29434 NOWEB_SOURCE=myfile.nw
29435 \begin_inset Newline newline
29436 \end_inset
29437
29438 fi
29439 \begin_inset Newline newline
29440 \end_inset
29441
29442 [...
29443  code to extract files ...
29444  use NOWEB_OUTPUT_DIR here ...]
29445 \begin_inset Newline newline
29446 \end_inset
29447
29448 [...
29449  code to compile files ...]
29450 \begin_inset Newline newline
29451 \end_inset
29452
29453 @
29454 \end_layout
29455
29456 \begin_layout Standard
29457 Look in 
29458 \emph on
29459 LIBDIR/examples/listerrors.lyx
29460 \emph default
29461  or in 
29462 \emph on
29463 LIBDIR/examples/Literate.lyx
29464 \emph default
29465  which implement two versions of the 
29466 \begin_inset Quotes eld
29467 \end_inset
29468
29469 listerrors
29470 \begin_inset Quotes erd
29471 \end_inset
29472
29473  program for some illustrations of how all of these pieces go together or
29474  in 
29475 \emph on
29476 LIBDIR/examples/noweb2lyx.lyx.
29477
29478 \emph default
29479  Interestingly, these three files show off the language-indepence of the
29480  \SpecialChar LyX
29481  literate programming support since they are written in Python, C and Perl
29482  respectively.
29483 \end_layout
29484
29485 \begin_layout Subsubsection
29486 Configuring \SpecialChar LyX
29487
29488 \end_layout
29489
29490 \begin_layout Standard
29491 All the Literate Programming support is configured by the 
29492 \family sans
29493 Tools\SpecialChar menuseparator
29494 Preferences
29495 \family default
29496  panel in the 
29497 \begin_inset Quotes eld
29498 \end_inset
29499
29500 File Handling
29501 \begin_inset Quotes erd
29502 \end_inset
29503
29504  tab.
29505  The important parts are:
29506 \end_layout
29507
29508 \begin_layout Description
29509 the
29510 \begin_inset space ~
29511 \end_inset
29512
29513
29514 \begin_inset Quotes eld
29515 \end_inset
29516
29517 NoWeb
29518 \begin_inset Quotes erd
29519 \end_inset
29520
29521
29522 \begin_inset space ~
29523 \end_inset
29524
29525 format Set up via the File Formats tab, this is where the Noweb-specific
29526  pieces are set up.
29527  The 
29528 \family sans
29529 GUI Name
29530 \family default
29531  is set to 
29532 \family typewriter
29533 NoWeb
29534 \family default
29535 , the file extension is set to 
29536 \family typewriter
29537 .nw
29538 \family default
29539 .
29540  This tells \SpecialChar LyX
29541  to create a file with a 
29542 \family typewriter
29543 .nw
29544 \family default
29545  extension in the first step of the conversion process.
29546 \end_layout
29547
29548 \begin_layout Description
29549 the
29550 \begin_inset space ~
29551 \end_inset
29552
29553
29554 \family sans
29555 Program
29556 \family default
29557
29558 \begin_inset space ~
29559 \end_inset
29560
29561 format This is an empty format whose sole purpose is to be the endpoint
29562  of a conversion (which then allows us to set up a converter for it).
29563 \end_layout
29564
29565 \begin_layout Description
29566
29567 \family sans
29568 NoWeb
29569 \family default
29570 ->
29571 \family sans
29572 \SpecialChar LaTeX
29573
29574 \family default
29575  This converter performs the 
29576 \begin_inset Quotes eld
29577 \end_inset
29578
29579 weaving
29580 \begin_inset Quotes erd
29581 \end_inset
29582
29583  of the literate document.
29584  For Noweb, it is set to 
29585 \begin_inset Quotes eld
29586 \end_inset
29587
29588
29589 \family typewriter
29590 noweave -delay -index $$i > $$o
29591 \family default
29592
29593 \begin_inset Quotes erd
29594 \end_inset
29595
29596
29597 \end_layout
29598
29599 \begin_layout Description
29600
29601 \family sans
29602 NoWeb
29603 \family default
29604 ->
29605 \family sans
29606 Program
29607 \family default
29608  This performs the 
29609 \begin_inset Quotes eld
29610 \end_inset
29611
29612 tangling step
29613 \begin_inset Quotes erd
29614 \end_inset
29615
29616 .
29617  As stated above, the Converter is set to 
29618 \begin_inset Quotes eld
29619 \end_inset
29620
29621
29622 \family typewriter
29623 build-script $$i
29624 \family default
29625  $$r
29626 \begin_inset Quotes erd
29627 \end_inset
29628
29629 , with Flags set to
29630 \begin_inset Newline newline
29631 \end_inset
29632
29633
29634 \begin_inset Quotes eld
29635 \end_inset
29636
29637
29638 \family typewriter
29639 parselog=$$s/scripts/listerrors
29640 \family default
29641
29642 \begin_inset Quotes erd
29643 \end_inset
29644
29645 .
29646 \end_layout
29647
29648 \begin_layout Subsubsection
29649 Debug extensions
29650 \end_layout
29651
29652 \begin_layout Standard
29653 There is also a new function implemented in the \SpecialChar LyX
29654  server, the 
29655 \begin_inset Quotes eld
29656 \end_inset
29657
29658 server-goto-file-row" function, to be used with ddd/gdb or other debugger.
29659  
29660 \end_layout
29661
29662 \begin_layout Standard
29663 When debugging code with ddd/gdb, it is possible to invoke a text editor
29664  at the current execution position with a single key stroke.
29665  The default ddd configuration for that is shift-ctrl-V.
29666  It happens that you can define the editor command line invocation in ddd
29667  by accessing the 
29668 \family sans
29669 Edit\SpecialChar menuseparator
29670 Preferences\SpecialChar menuseparator
29671 Helpers
29672 \family default
29673  dialog and changing the "Edit Sources" entry.
29674 \end_layout
29675
29676 \begin_layout Standard
29677 I take advantage of the newly created \SpecialChar LyX
29678  server function and this ddd feature,
29679  and set 
29680 \begin_inset Quotes eld
29681 \end_inset
29682
29683 Edit Sources
29684 \begin_inset Quotes erd
29685 \end_inset
29686
29687  to:
29688 \end_layout
29689
29690 \begin_layout LyX-Code
29691 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
29692 \end_layout
29693
29694 \begin_layout Standard
29695 With this, whenever you are using ddd and find a point in the program that
29696  you want to edit, you just press shift-ctrl-V (in the ddd window), and
29697  ddd will forward this information to \SpecialChar LyX
29698  through the \SpecialChar LyX
29699  server and then the
29700  \SpecialChar LyX
29701  window will show the same file with the cursor at the same position ddd
29702  was pointing to.
29703  No more guessing or long scrolling to locate a point in the program back
29704  from debugging !
29705 \end_layout
29706
29707 \begin_layout Standard
29708 Note however that you must enable the \SpecialChar LyX
29709  server to get this feature working
29710  (it is disabled by default).
29711  Sec.
29712 \begin_inset space ~
29713 \end_inset
29714
29715
29716 \begin_inset CommandInset ref
29717 LatexCommand ref
29718 reference "sec:Starting-the-Server"
29719
29720 \end_inset
29721
29722  explains how to do that.
29723 \end_layout
29724
29725 \begin_layout Subsubsection
29726 Toolbar extensions
29727 \end_layout
29728
29729 \begin_layout Standard
29730 There are six new buttons that can be added to your \SpecialChar LyX
29731  toolbar.
29732  Four of these buttons are short cuts to layout styles: 
29733 \family sans
29734 Standard
29735 \family default
29736
29737 \family sans
29738 Section
29739 \family default
29740
29741 \family sans
29742 \SpecialChar LaTeX
29743
29744 \family default
29745 , and 
29746 \family sans
29747 \SpecialChar LyX
29748 -Code
29749 \family default
29750 , one for the custom inset 
29751 \family sans
29752 Chunk
29753 \family default
29754 .
29755  The last one is a short cut to the 
29756 \begin_inset Quotes eld
29757 \end_inset
29758
29759 Build Program
29760 \begin_inset Quotes erd
29761 \end_inset
29762
29763  File menu entry.
29764  
29765 \end_layout
29766
29767 \begin_layout Standard
29768 \SpecialChar LyX
29769  has a range of buttons that are available for tool bar customization.
29770  In my toolbar I like to combine the six short cuts above with two more:
29771  One for 
29772 \family sans
29773 Document
29774 \family default
29775 \SpecialChar menuseparator
29776
29777 \family sans
29778 Update
29779 \family default
29780 \SpecialChar menuseparator
29781
29782 \family sans
29783 DVI
29784 \family default
29785  and the other for 
29786 \family sans
29787 Document\SpecialChar menuseparator
29788 View\SpecialChar menuseparator
29789 DVI
29790 \family default
29791  File menu entries.
29792  Here is how it looks like:
29793 \end_layout
29794
29795 \begin_layout LyX-Code
29796 Toolbar
29797 \end_layout
29798
29799 \begin_layout LyX-Code
29800   Layouts
29801 \end_layout
29802
29803 \begin_layout LyX-Code
29804   Icon "layout Standard"
29805 \end_layout
29806
29807 \begin_layout LyX-Code
29808   Icon "layout Section"
29809 \end_layout
29810
29811 \begin_layout LyX-Code
29812   Icon "layout \SpecialChar LaTeX
29813 "
29814 \end_layout
29815
29816 \begin_layout LyX-Code
29817   Icon "layout \SpecialChar LyX
29818 -Code"
29819 \end_layout
29820
29821 \begin_layout LyX-Code
29822   Icon "flex.insert Chunk"
29823 \end_layout
29824
29825 \begin_layout LyX-Code
29826   Separator
29827 \end_layout
29828
29829 \begin_layout LyX-Code
29830   Icon "buffer-view"
29831 \end_layout
29832
29833 \begin_layout LyX-Code
29834   Icon "buffer-typeset"
29835 \end_layout
29836
29837 \begin_layout LyX-Code
29838   Icon "build-program"
29839 \end_layout
29840
29841 \begin_layout LyX-Code
29842   Separator
29843 \end_layout
29844
29845 \begin_layout LyX-Code
29846 .
29847 \end_layout
29848
29849 \begin_layout LyX-Code
29850 .
29851 \end_layout
29852
29853 \begin_layout LyX-Code
29854 .
29855 \end_layout
29856
29857 \begin_layout LyX-Code
29858 End
29859 \end_layout
29860
29861 \begin_layout Subsubsection
29862 Colors customization
29863 \end_layout
29864
29865 \begin_layout Standard
29866 There are a number of colors in \SpecialChar LyX
29867  that can be customized in 
29868 \family sans
29869 Preferences
29870 \family default
29871 .
29872  One of the things that bothers people is the \SpecialChar LaTeX
29873  font color.
29874  The default color is red, since the chunks uses \SpecialChar LaTeX
29875  font, and there is a lot
29876  of chunks in literate documents, you may get tired of seeing everything
29877  in red.
29878  You can change it by going to the tabs 
29879 \family sans
29880 Look&Feel
29881 \family default
29882
29883 \family sans
29884 Colors.
29885 \end_layout
29886
29887 \begin_layout Standard
29888 The next thing is the visible presence of the newline character in the screen.
29889  You can choose the color of this particular character and make it blend
29890  in the background.
29891  I recommend you choosing a color that is close to the background but not
29892  equal, that way you still can see it is there, but it is not bothering
29893  you anymore.
29894 \end_layout
29895
29896 \begin_layout Subsection
29897 \SpecialChar LyX
29898  and knitr/Sweave
29899 \end_layout
29900
29901 \begin_layout Standard
29902 Support for 
29903 \family sans
29904 knitr
29905 \family default
29906  and 
29907 \family sans
29908 Sweave
29909 \family default
29910  is documented in 
29911 \change_deleted 564990737 1671643409
29912 the 
29913 \emph on
29914 knitr.lyx
29915 \emph default
29916  example file
29917 \change_inserted 564990737 1671643443
29918
29919 \family sans
29920 \lang british
29921 File\SpecialChar menuseparator
29922 Open Example\SpecialChar menuseparator
29923 Modules\SpecialChar menuseparator
29924 Rnw (knitr)
29925 \change_unchanged
29926
29927 \family default
29928 \lang english
29929  and in 
29930 \change_deleted 564990737 1671643461
29931 the Sweave manual (menu 
29932 \family sans
29933 Help\SpecialChar menuseparator
29934 Specific Manuals
29935 \family default
29936 )
29937 \change_inserted 564990737 1671643461
29938
29939 \family sans
29940 \lang british
29941 Help\SpecialChar menuseparator
29942 Specific Manuals\SpecialChar menuseparator
29943 Sweave
29944 \change_unchanged
29945
29946 \family default
29947 \lang english
29948 .
29949 \end_layout
29950
29951 \begin_layout Chapter
29952
29953 \change_deleted 564990737 1671355343
29954 Special features
29955 \end_layout
29956
29957 \begin_layout Standard
29958
29959 \change_deleted 564990737 1671355343
29960 You can do everything with \SpecialChar LyX
29961  that you can do with \SpecialChar LaTeX
29962 .
29963  However, \SpecialChar LyX
29964  cannot support every \SpecialChar LaTeX
29965  feature directly.
29966  But you can always use \SpecialChar TeX
29967  Code.
29968  This chapter shows you some more special things you might want to use.
29969  For other special things you can do with figures, tables, floats, boxes
29970  and notes, have a look at the 
29971 \emph on
29972 Embedded
29973 \begin_inset space ~
29974 \end_inset
29975
29976 Objects
29977 \emph default
29978  manual.
29979 \change_unchanged
29980
29981 \end_layout
29982
29983 \end_body
29984 \end_document