]> git.lyx.org Git - lyx.git/blob - lib/doc/Additional.lyx
Insert four entries for Floats & Captions modules, four entries for Foot- and Endnote...
[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 graphicboxes
40 \end_modules
41 \maintain_unincluded_children no
42 \language english
43 \language_package default
44 \inputencoding utf8
45 \fontencoding auto
46 \font_roman "lmodern" "default"
47 \font_sans "lmss" "default"
48 \font_typewriter "lmtt" "default"
49 \font_math "auto" "auto"
50 \font_default_family default
51 \use_non_tex_fonts false
52 \font_sc false
53 \font_roman_osf false
54 \font_sans_osf false
55 \font_typewriter_osf false
56 \font_sf_scale 100 100
57 \font_tt_scale 100 100
58 \use_microtype false
59 \use_dash_ligatures true
60 \graphics default
61 \default_output_format pdf2
62 \output_sync 0
63 \bibtex_command default
64 \index_command default
65 \float_placement class
66 \float_alignment class
67 \paperfontsize 12
68 \spacing single
69 \use_hyperref true
70 \pdf_title "LyX's Additional Features manual"
71 \pdf_author "LyX Team"
72 \pdf_subject "LyX's additional features documentation"
73 \pdf_keywords "LyX, Documentation, Additional"
74 \pdf_bookmarks true
75 \pdf_bookmarksnumbered true
76 \pdf_bookmarksopen false
77 \pdf_bookmarksopenlevel 1
78 \pdf_breaklinks false
79 \pdf_pdfborder false
80 \pdf_colorlinks true
81 \pdf_backref false
82 \pdf_pdfusetitle false
83 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
84 \papersize a4
85 \use_geometry false
86 \use_package amsmath 1
87 \use_package amssymb 1
88 \use_package cancel 1
89 \use_package esint 1
90 \use_package mathdots 1
91 \use_package mathtools 1
92 \use_package mhchem 1
93 \use_package stackrel 1
94 \use_package stmaryrd 1
95 \use_package undertilde 1
96 \cite_engine basic
97 \cite_engine_type default
98 \biblio_style plain
99 \use_bibtopic false
100 \use_indices false
101 \paperorientation portrait
102 \suppress_date false
103 \justification true
104 \use_refstyle 0
105 \use_minted 0
106 \use_lineno 0
107 \notefontcolor #0000ff
108 \index Index
109 \shortcut idx
110 \color #008000
111 \end_index
112 \secnumdepth 3
113 \tocdepth 3
114 \paragraph_separation indent
115 \paragraph_indentation default
116 \is_math_indent 1
117 \math_indentation default
118 \math_numbering_side default
119 \quotes_style english
120 \dynamic_quotes 0
121 \papercolumns 1
122 \papersides 2
123 \paperpagestyle headings
124 \tablestyle default
125 \tracking_changes true
126 \output_changes false
127 \change_bars false
128 \postpone_fragile_content false
129 \html_math_output 0
130 \html_css_as_file 0
131 \html_be_strict true
132 \docbook_table_output 0
133 \docbook_mathml_prefix 1
134 \author -712698321 "Jürgen Spitzmüller"
135 \author 177693 "x"
136 \author 5863208 "ab"
137 \author 244031559 "Yuriy"
138 \author 564990737 "John Lyx"
139 \author 630872221 "Jean-Pierre Chrétien" jeanpierre.chretien@free.fr
140 \author 1075283030 "Thibaut"
141 \author 1119979965 "Joel A. Kulesza"
142 \end_header
143
144 \begin_body
145
146 \begin_layout Title
147 Additional \SpecialChar LyX
148  Features
149 \end_layout
150
151 \begin_layout Subtitle
152 Version 2.
153 \change_deleted 630872221 1622909155
154 3
155 \change_inserted 630872221 1622909155
156 4
157 \change_unchanged
158 .x
159 \end_layout
160
161 \begin_layout Author
162 by the \SpecialChar LyX
163  Team
164 \begin_inset Foot
165 status collapsed
166
167 \begin_layout Plain Layout
168 \noindent
169 Principal maintainer of this file is
170 \noun on
171  Richard Kimberly Heck
172 \noun default
173 .
174  If you have comments or error corrections, please send them to the \SpecialChar LyX
175  Documentati
176 on mailing list, 
177 \begin_inset Flex Code
178 status collapsed
179
180 \begin_layout Plain Layout
181 <lyx-docs@lists.lyx.org>
182 \end_layout
183
184 \end_inset
185
186 .
187 \end_layout
188
189 \end_inset
190
191
192 \end_layout
193
194 \begin_layout Standard
195 \begin_inset CommandInset toc
196 LatexCommand tableofcontents
197
198 \end_inset
199
200
201 \end_layout
202
203 \begin_layout Chapter
204 Introduction
205 \end_layout
206
207 \begin_layout Standard
208 This manual is essentially Part II of the 
209 \emph on
210 User's Guide\SpecialChar endofsentence
211
212 \emph default
213  The reason for separating the two documents is simple: the 
214 \emph on
215 User's Guide
216 \emph default
217  is already quite lengthy, and it contains information on all of the basic
218  features one needs to know in order to prepare most documents.
219  However, the \SpecialChar LyX
220  Team has worked to make \SpecialChar LyX
221  extensible through various configuration
222  files and external packages.
223  That means that if you want to support the Fizzwizzle \SpecialChar LaTeX
224  package, you can
225  create a layout file (or module) for it without having to alter \SpecialChar LyX
226  itself.
227  We've already had contributions of several new features this way, and some
228  of them are documented here.
229  There are also some more `advanced' features, such as how to control the
230  presentation of bibliographies and how to work with multi-part documents,
231  that are not covered in the 
232 \emph on
233 User's Guide
234 \emph default
235  and are discussed here.
236 \end_layout
237
238 \begin_layout Standard
239 This manual also documents some special features, like fax support
240 \change_deleted 244031559 1603802929
241 ,
242 \change_inserted 244031559 1603802931
243  and
244 \change_unchanged
245  version control
246 \change_deleted 244031559 1603802954
247 , and SGML support
248 \change_unchanged
249 , which require additional software to work properly.
250  There is also a chapter on \SpecialChar LyX
251 's support for HTML.
252  And lastly, there's a chapter of \SpecialChar LaTeX
253  tools and tips, things you can use to
254  spruce up your documents by directly using the powerful features of \SpecialChar LaTeX
255 .
256  After all, \SpecialChar LyX
257  
258 \emph on
259 is
260 \emph default
261  only WYSIWYM and will only ever interface to some, not all, \SpecialChar LaTeX
262  features.
263 \end_layout
264
265 \begin_layout Standard
266 If you haven't read the 
267 \emph on
268 Introduction
269 \emph default
270  yet, you are definitely in the wrong manual.
271  The 
272 \emph on
273 Introduction
274 \emph default
275  is the first place to go, since it describes the notation and format of
276  all of the manuals.
277  You should also be thoroughly familiar with the 
278 \emph on
279 User's Guide
280 \emph default
281  and all of the basic features of \SpecialChar LyX
282  before attempting to read this one.
283 \end_layout
284
285 \begin_layout Standard
286 Since many of the topics in this manual depend heavily on \SpecialChar LyX
287 's interaction
288  with \SpecialChar LaTeX
289 , this first chapter covers the inner workings of \SpecialChar LyX
290  and how to direct
291  \SpecialChar LyX
292  to generate exactly the \SpecialChar LaTeX
293  code you want.
294  It is obviously for more seasoned \SpecialChar LyX
295  users.
296 \end_layout
297
298 \begin_layout Chapter
299 \SpecialChar LyX
300  and \SpecialChar LaTeX
301
302 \end_layout
303
304 \begin_layout Section
305 How \SpecialChar LyX
306  Uses \SpecialChar LaTeX
307
308 \end_layout
309
310 \begin_layout Standard
311 This chapter is for both \SpecialChar TeX
312 -nicians and the \SpecialChar LaTeX
313 -curious.
314  In it, we'll explain how \SpecialChar LyX
315  and \SpecialChar LaTeX
316  work together to produce printable output.
317  This is the only place in any of the manuals where we assume you know something
318  about \SpecialChar LaTeX
319 .
320 \end_layout
321
322 \begin_layout Standard
323 At one time, \SpecialChar LyX
324  was called a 
325 \begin_inset Quotes eld
326 \end_inset
327
328 WYSIWYM frontend to \SpecialChar LaTeX
329 ,
330 \begin_inset Quotes erd
331 \end_inset
332
333  but that's no longer true.
334  There are frontends to \SpecialChar LaTeX
335  out there.
336 \begin_inset Foot
337 status collapsed
338
339 \begin_layout Plain Layout
340 Some familar ones are \SpecialChar TeX
341 maker and kile, on Linux, and \SpecialChar TeX
342 shop, OSX.
343  There are also the \SpecialChar LaTeX
344  modes for vi and emacs, of course.
345 \end_layout
346
347 \end_inset
348
349  These are basically text editors with the ability to run \SpecialChar LaTeX
350  and mark any
351  errors in the file you're editing.
352  Although \SpecialChar LyX
353  
354 \emph on
355 is
356 \emph default
357  an editor, and it 
358 \emph on
359 does
360 \emph default
361  run \SpecialChar LaTeX
362 , and it also indicates errors in the file, it also does much, much
363  more.
364  For one thing, you don't need to know \SpecialChar LaTeX
365  to use \SpecialChar LyX
366  effectively.
367  And \SpecialChar LyX
368  has added its own extensions to \SpecialChar LaTeX
369 .
370  Try the following sometime: select 
371 \begin_inset Flex Noun
372 status collapsed
373
374 \begin_layout Plain Layout
375 Export\SpecialChar menuseparator
376 LaTeX
377 \end_layout
378
379 \end_inset
380
381  from the 
382 \begin_inset Flex Noun
383 status collapsed
384
385 \begin_layout Plain Layout
386 File
387 \end_layout
388
389 \end_inset
390
391  menu (or 
392 \begin_inset Flex Noun
393 status collapsed
394
395 \begin_layout Plain Layout
396 View\SpecialChar menuseparator
397 Source
398 \begin_inset space ~
399 \end_inset
400
401 Pane
402 \end_layout
403
404 \end_inset
405
406 ), then look at the preamble of the resulting 
407 \begin_inset Flex Code
408 status collapsed
409
410 \begin_layout Plain Layout
411 .tex
412 \end_layout
413
414 \end_inset
415
416  file.
417  You'll notice a variety of new macros defined specifically by \SpecialChar LyX
418 .
419  These macros are defined automatically, according to the features you use
420  in the document.
421 \end_layout
422
423 \begin_layout Standard
424 There are several commands that automatically invoke \SpecialChar LaTeX
425 .
426  They are:
427 \end_layout
428
429 \begin_layout Itemize
430 \begin_inset Flex Noun
431 status collapsed
432
433 \begin_layout Plain Layout
434 Document\SpecialChar menuseparator
435 View
436 \end_layout
437
438 \end_inset
439
440
441 \end_layout
442
443 \begin_layout Itemize
444 \begin_inset Flex Noun
445 status collapsed
446
447 \begin_layout Plain Layout
448 Document\SpecialChar menuseparator
449 Update
450 \end_layout
451
452 \end_inset
453
454
455 \end_layout
456
457 \begin_layout Standard
458 They will only invoke \SpecialChar LaTeX
459  if the file has changed since the last time \SpecialChar LaTeX
460  was
461  run.
462  
463 \end_layout
464
465 \begin_layout Standard
466 When \SpecialChar LyX
467  runs \SpecialChar LaTeX
468  on the file you're editing, it performs these steps:
469 \end_layout
470
471 \begin_layout Enumerate
472 Convert the document to \SpecialChar LaTeX
473  and save to a file with the extension 
474 \begin_inset Flex Code
475 status collapsed
476
477 \begin_layout Plain Layout
478 .tex
479 \end_layout
480
481 \end_inset
482
483  in place of 
484 \begin_inset Flex Code
485 status collapsed
486
487 \begin_layout Plain Layout
488 .lyx
489 \end_layout
490
491 \end_inset
492
493 .
494 \end_layout
495
496 \begin_layout Enumerate
497 Run \SpecialChar LaTeX
498  on the 
499 \begin_inset Flex Code
500 status collapsed
501
502 \begin_layout Plain Layout
503 .tex
504 \end_layout
505
506 \end_inset
507
508  file (maybe several times), and run any other commands (such as 
509 \begin_inset Flex Code
510 status collapsed
511
512 \begin_layout Plain Layout
513 bibtex
514 \end_layout
515
516 \end_inset
517
518  or 
519 \begin_inset Flex Code
520 status collapsed
521
522 \begin_layout Plain Layout
523 makeindex
524 \end_layout
525
526 \end_inset
527
528 ) needed to compile the \SpecialChar LaTeX
529  file.
530 \end_layout
531
532 \begin_layout Enumerate
533 If there are any errors, show the error log.
534 \end_layout
535
536 \begin_layout Standard
537 If you have run \SpecialChar LaTeX
538  using 
539 \begin_inset Flex Noun
540 status collapsed
541
542 \begin_layout Plain Layout
543 View\SpecialChar menuseparator
544 DVI
545 \end_layout
546
547 \end_inset
548
549 , \SpecialChar LyX
550  then runs a DVI viewer to display the DVI-file.
551  If you have used 
552 \begin_inset Flex Noun
553 status collapsed
554
555 \begin_layout Plain Layout
556 View\SpecialChar menuseparator
557 PostScript
558 \end_layout
559
560 \end_inset
561
562 , \SpecialChar LyX
563  performs further steps:
564 \end_layout
565
566 \begin_layout Enumerate
567 Run 
568 \begin_inset Flex Code
569 status collapsed
570
571 \begin_layout Plain Layout
572 dvips
573 \end_layout
574
575 \end_inset
576
577  to convert the DVI file to PostScript.
578 \end_layout
579
580 \begin_layout Enumerate
581 Run a PostScript viewer, such as 
582 \begin_inset Flex Code
583 status collapsed
584
585 \begin_layout Plain Layout
586 ghostview
587 \end_layout
588
589 \end_inset
590
591 , to display the PostScript file.
592 \end_layout
593
594 \begin_layout Standard
595 \SpecialChar LyX
596  does similar things when viewing, or exporting, other formats.
597 \end_layout
598
599 \begin_layout Section
600 Translating \SpecialChar LaTeX
601  files into \SpecialChar LyX
602
603 \end_layout
604
605 \begin_layout Standard
606 You can import a \SpecialChar LaTeX
607  file into \SpecialChar LyX
608  by using the 
609 \begin_inset Flex Noun
610 status collapsed
611
612 \begin_layout Plain Layout
613 File\SpecialChar menuseparator
614 Import\SpecialChar menuseparator
615 LaTeX
616 \end_layout
617
618 \end_inset
619
620  command in \SpecialChar LyX
621 .
622  This will call a program named 
623 \begin_inset Flex Code
624 status collapsed
625
626 \begin_layout Plain Layout
627 tex2lyx
628 \end_layout
629
630 \end_inset
631
632  which will create a file 
633 \begin_inset Flex Code
634 status collapsed
635
636 \begin_layout Plain Layout
637 foo.lyx
638 \end_layout
639
640 \end_inset
641
642  from the file 
643 \begin_inset Flex Code
644 status collapsed
645
646 \begin_layout Plain Layout
647 foo.tex
648 \end_layout
649
650 \end_inset
651
652 .
653  \SpecialChar LyX
654  will then open that file.
655 \begin_inset Foot
656 status collapsed
657
658 \begin_layout Plain Layout
659 \begin_inset Flex Code
660 status collapsed
661
662 \begin_layout Plain Layout
663 tex2lyx
664 \end_layout
665
666 \end_inset
667
668  can also be run from the command line, of course.
669 \end_layout
670
671 \end_inset
672
673
674 \end_layout
675
676 \begin_layout Standard
677 \begin_inset Flex Code
678 status collapsed
679
680 \begin_layout Plain Layout
681 tex2lyx
682 \end_layout
683
684 \end_inset
685
686  will translate most legal \SpecialChar LaTeX
687 , but not everything.
688  It will put things it doesn't understand into \SpecialChar TeX
689  code, so after translating
690  a file with 
691 \begin_inset Flex Code
692 status collapsed
693
694 \begin_layout Plain Layout
695 tex2lyx
696 \end_layout
697
698 \end_inset
699
700 , you can look for \SpecialChar TeX
701  code and hand-edit it until it looks right.
702 \end_layout
703
704 \begin_layout Standard
705 If you don't know what \SpecialChar TeX
706  code is, read the next section.
707 \end_layout
708
709 \begin_layout Section
710 \begin_inset CommandInset label
711 LatexCommand label
712 name "sec:Inserting-TeX-Code"
713
714 \end_inset
715
716 Inserting \SpecialChar TeX
717  Code into \SpecialChar LyX
718  Documents 
719 \end_layout
720
721 \begin_layout Standard
722 Anything you can do in \SpecialChar LaTeX
723  you can do in \SpecialChar LyX
724 , for a very simple reason: You can
725  always insert \SpecialChar TeX
726  code into any \SpecialChar LyX
727  document.
728  \SpecialChar LyX
729  cannot, and will never be able to, display every possible \SpecialChar LaTeX
730  construct.
731  If ever you need to insert \SpecialChar LaTeX
732  commands into your \SpecialChar LyX
733  document, you can use the
734  
735 \begin_inset Flex Code
736 status collapsed
737
738 \begin_layout Plain Layout
739 \SpecialChar TeX
740  Code
741 \end_layout
742
743 \end_inset
744
745  box, which you can insert into your document with 
746 \begin_inset Flex Noun
747 status collapsed
748
749 \begin_layout Plain Layout
750 Insert\SpecialChar menuseparator
751
752 \family sans
753 TeX
754 \family default
755  Code
756 \end_layout
757
758 \end_inset
759
760  or the keyboard shortcut 
761 \begin_inset Info
762 type  "shortcut"
763 arg   "ert-insert"
764 \end_inset
765
766 .
767 \end_layout
768
769 \begin_layout Standard
770 Here's an example of inserting \SpecialChar LaTeX
771  commands in a \SpecialChar LyX
772  document.
773  The code looks like this:
774 \end_layout
775
776 \begin_layout LyX-Code
777
778 \backslash
779 begin{tabular}{ll}
780 \begin_inset Newline newline
781 \end_inset
782
783
784 \backslash
785 begin{minipage}{5cm}
786 \begin_inset Newline newline
787 \end_inset
788
789 This is an example of a minipage environment.
790  You 
791 \begin_inset Newline newline
792 \end_inset
793
794 can put nearly everything in it, even (non-floating) 
795 \begin_inset Newline newline
796 \end_inset
797
798 figures and tables.
799  
800 \begin_inset Newline newline
801 \end_inset
802
803
804 \backslash
805 end{minipage}
806 \begin_inset Newline newline
807 \end_inset
808
809 &
810 \begin_inset Newline newline
811 \end_inset
812
813
814 \backslash
815 begin{minipage}{5cm}
816 \begin_inset Newline newline
817 \end_inset
818
819
820 \backslash
821 begin{verbatim}
822 \begin_inset Newline newline
823 \end_inset
824
825
826 \backslash
827 begin{minipage}{5cm}
828 \begin_inset Newline newline
829 \end_inset
830
831 This ...
832  
833 \begin_inset Newline newline
834 \end_inset
835
836
837 \backslash
838 end{minipage}
839 \begin_inset Newline newline
840 \end_inset
841
842
843 \backslash
844 end{verbatim}
845 \begin_inset Newline newline
846 \end_inset
847
848
849 \backslash
850 end{minipage}
851 \begin_inset Newline newline
852 \end_inset
853
854
855 \backslash
856 end{tabular}
857 \end_layout
858
859 \begin_layout LyX-Code
860
861 \end_layout
862
863 \begin_layout Standard
864 The 
865 \begin_inset Flex Code
866 status collapsed
867
868 \begin_layout Plain Layout
869 \SpecialChar TeX
870  Code
871 \end_layout
872
873 \end_inset
874
875  box containing this text is directly after this paragraph.
876  Those of you reading the manual in \SpecialChar LyX
877  will only see the \SpecialChar TeX
878  code inset.
879  Those reading a printed version of the manuals will see the actual results:
880 \begin_inset VSpace bigskip
881 \end_inset
882
883
884 \end_layout
885
886 \begin_layout Standard
887 \begin_inset ERT
888 status open
889
890 \begin_layout Plain Layout
891
892
893 \backslash
894 begin{tabular}{ll}
895 \end_layout
896
897 \begin_layout Plain Layout
898
899
900 \backslash
901 begin{minipage}{5cm}
902 \end_layout
903
904 \begin_layout Plain Layout
905
906 This is an example of a minipage environment.
907  You can put nearly everything in it, even (non-floating) figures and tables.
908  
909 \end_layout
910
911 \begin_layout Plain Layout
912
913
914 \backslash
915 end{minipage}
916 \end_layout
917
918 \begin_layout Plain Layout
919
920 &
921 \end_layout
922
923 \begin_layout Plain Layout
924
925
926 \backslash
927 begin{minipage}{5cm}
928 \end_layout
929
930 \begin_layout Plain Layout
931
932
933 \backslash
934 begin{verbatim}
935 \end_layout
936
937 \begin_layout Plain Layout
938
939
940 \backslash
941 begin{minipage}{5cm}
942 \end_layout
943
944 \begin_layout Plain Layout
945
946 This ...
947  
948 \end_layout
949
950 \begin_layout Plain Layout
951
952
953 \backslash
954 end{minipage}
955 \end_layout
956
957 \begin_layout Plain Layout
958
959
960 \backslash
961 end{verbatim}
962 \end_layout
963
964 \begin_layout Plain Layout
965
966
967 \backslash
968 end{minipage}
969 \end_layout
970
971 \begin_layout Plain Layout
972
973
974 \backslash
975 end{tabular}
976 \end_layout
977
978 \end_inset
979
980
981 \begin_inset VSpace bigskip
982 \end_inset
983
984
985 \end_layout
986
987 \begin_layout Standard
988 In addition to using \SpecialChar TeX
989  code, you can also create a separate file containing
990  some complex \SpecialChar LaTeX
991  structure and then use 
992 \begin_inset Flex Noun
993 status collapsed
994
995 \begin_layout Plain Layout
996 Insert\SpecialChar menuseparator
997 Child
998 \begin_inset space ~
999 \end_inset
1000
1001 Document
1002 \end_layout
1003
1004 \end_inset
1005
1006  to include your file (you should select the type 
1007 \begin_inset Flex Code
1008 status collapsed
1009
1010 \begin_layout Plain Layout
1011 Input
1012 \end_layout
1013
1014 \end_inset
1015
1016 ).
1017  We recommend that you only do this if you have a 
1018 \begin_inset Flex Code
1019 status collapsed
1020
1021 \begin_layout Plain Layout
1022 .tex
1023 \end_layout
1024
1025 \end_inset
1026
1027  file which you 
1028 \emph on
1029 know
1030 \emph default
1031  works already.
1032  Otherwise, you'll have a big job tracking down \SpecialChar LaTeX
1033  errors.
1034 \end_layout
1035
1036 \begin_layout Standard
1037 There are a few last points to emphasize:
1038 \end_layout
1039
1040 \begin_layout Itemize
1041 \SpecialChar LyX
1042  
1043 \emph on
1044 does not
1045 \emph default
1046  check if your \SpecialChar LaTeX
1047  code is correct.
1048 \end_layout
1049
1050 \begin_layout Itemize
1051 Beware of reinventing the wheel.
1052 \end_layout
1053
1054 \begin_layout Standard
1055 On that last point, \SpecialChar LyX
1056  does have quite a few features tucked into it, and
1057  more are coming.
1058  Be sure to check the manuals to make sure that \SpecialChar LyX
1059  doesn't have such-and-such
1060  feature before you decide you have to do it by hand.
1061  Moreover, there are numerous \SpecialChar LaTeX
1062  packages out there to do all sorts of things,
1063  from labels to envelopes to fancy multipage tables.
1064  Check out 
1065 \change_inserted 244031559 1603815732
1066
1067 \begin_inset CommandInset href
1068 LatexCommand href
1069 name "CTAN"
1070 target "https://www.ctan.org/"
1071 literal "false"
1072
1073 \end_inset
1074
1075
1076 \change_deleted 244031559 1603815732
1077
1078 \begin_inset CommandInset href
1079 LatexCommand href
1080 name "CTAN"
1081 target "http://www.ctan.org/"
1082 literal "false"
1083
1084 \end_inset
1085
1086
1087 \change_unchanged
1088  for details.
1089 \end_layout
1090
1091 \begin_layout Standard
1092 If you do need to do some wild and fancy things within your document, be
1093  sure to check out a good \SpecialChar LaTeX
1094  book for assistance.
1095  There are a number of them listed in the bibliography of the 
1096 \emph on
1097 User's Guide
1098 \emph default
1099 .
1100 \end_layout
1101
1102 \begin_layout Section
1103 \SpecialChar LyX
1104  and the \SpecialChar LaTeX
1105  Preamble
1106 \end_layout
1107
1108 \begin_layout Subsection
1109 About the \SpecialChar LaTeX
1110  Preamble
1111 \end_layout
1112
1113 \begin_layout Standard
1114 If you already know \SpecialChar LaTeX
1115 , there is no need to explain here what the preamble
1116  is good for.
1117  If you don't, the following will give you some ideas—we recommend again
1118  that you consult a \SpecialChar LaTeX
1119  book for further information.
1120  In any case, you should read the points below, because they explain what
1121  you can do and what you don't need to do in the \SpecialChar LaTeX
1122  preamble of a \SpecialChar LyX
1123  document.
1124 \end_layout
1125
1126 \begin_layout Standard
1127 The \SpecialChar LaTeX
1128  preamble comes at the very beginning of a document, 
1129 \emph on
1130 before
1131 \emph default
1132  the text.
1133  It serves to:
1134 \end_layout
1135
1136 \begin_layout Itemize
1137 Declare the document class.
1138  
1139 \begin_inset Newline newline
1140 \end_inset
1141
1142 \SpecialChar LyX
1143  already does this for you.
1144  If you're a seasoned \SpecialChar LaTeX
1145 -nician, and you have a custom document class you
1146  want to use, check out the 
1147 \emph on
1148 Customization Manual
1149 \emph default
1150  for information on how to make \SpecialChar LyX
1151  interface to it.
1152 \end_layout
1153
1154 \begin_layout Itemize
1155 Declare the usage of packages.
1156  
1157 \begin_inset Newline newline
1158 \end_inset
1159
1160 \SpecialChar LaTeX
1161  packages provide special commands, which are only available within a document
1162  when the package has been declared in the preamble.
1163  In addition to providing special commands, the inclusion of a package can
1164  change the document.
1165  For example, the package 
1166 \begin_inset Flex Code
1167 status collapsed
1168
1169 \begin_layout Plain Layout
1170 indentfirst
1171 \end_layout
1172
1173 \end_inset
1174
1175  forces all paragraphs to be indented.
1176  There are other packages for labels, envelopes, margins, etc.
1177  
1178 \end_layout
1179
1180 \begin_layout Itemize
1181 Set counters, variables, lengths and widths.
1182  
1183 \begin_inset Newline newline
1184 \end_inset
1185
1186 There are several \SpecialChar LaTeX
1187  counters and variables that 
1188 \emph on
1189 must
1190 \emph default
1191  be set globally from within the preamble in order to have the desired effect.
1192  (There are variables that you can set and reset inside the document, too.)
1193  Margins are a good example of something that must be set in the preamble.
1194  Another example is the label format for lists.
1195  You can actually set these just about anywhere, but it's best to do it
1196  just once, inside the preamble.
1197 \end_layout
1198
1199 \begin_layout Itemize
1200 Declare user defined commands (with 
1201 \begin_inset Flex Code
1202 status collapsed
1203
1204 \begin_layout Plain Layout
1205
1206 \backslash
1207 newcommand
1208 \end_layout
1209
1210 \end_inset
1211
1212  or 
1213 \begin_inset Flex Code
1214 status collapsed
1215
1216 \begin_layout Plain Layout
1217
1218 \backslash
1219 renewcommand
1220 \end_layout
1221
1222 \end_inset
1223
1224 ).
1225 \begin_inset Newline newline
1226 \end_inset
1227
1228 These are abbreviations for \SpecialChar LaTeX
1229  commands which appear very often inside a document.
1230  Although the preamble is a good place to declare such commands, they 
1231 \emph on
1232 can
1233 \emph default
1234  be declared anywhere (before they are used for the first time, of course).
1235  This can be useful if there is a lot of raw \SpecialChar LaTeX
1236  code in your document, which
1237  normally should not be the case.
1238 \end_layout
1239
1240 \begin_layout Standard
1241 \SpecialChar LyX
1242  adds its own set of definitions to the preamble of the 
1243 \begin_inset Flex Code
1244 status collapsed
1245
1246 \begin_layout Plain Layout
1247 .tex
1248 \end_layout
1249
1250 \end_inset
1251
1252  file it produces.
1253  This makes \SpecialChar LaTeX
1254  files generated by \SpecialChar LyX
1255  portable.
1256 \end_layout
1257
1258 \begin_layout Subsection
1259 Changing the Preamble
1260 \end_layout
1261
1262 \begin_layout Standard
1263 The commands which \SpecialChar LyX
1264  adds to the preamble of a \SpecialChar LaTeX
1265  file are fixed; you can't
1266  change them without patching \SpecialChar LyX
1267  itself.
1268  You can, however, add your own stuff to the preamble by selecting 
1269 \begin_inset Flex Noun
1270 status collapsed
1271
1272 \begin_layout Plain Layout
1273 \SpecialChar LaTeX
1274
1275 \begin_inset space ~
1276 \end_inset
1277
1278 Preamble
1279 \end_layout
1280
1281 \end_inset
1282
1283  in the 
1284 \begin_inset Flex Noun
1285 status collapsed
1286
1287 \begin_layout Plain Layout
1288 Document\SpecialChar menuseparator
1289 Settings
1290 \end_layout
1291
1292 \end_inset
1293
1294  dialog.
1295  \SpecialChar LyX
1296  adds anything in the 
1297 \begin_inset Flex Noun
1298 status collapsed
1299
1300 \begin_layout Plain Layout
1301 Preamble
1302 \end_layout
1303
1304 \end_inset
1305
1306  dialog to its own built-in preamble.
1307  Before adding your own declarations in the preamble, you should make sure
1308  that \SpecialChar LyX
1309  doesn't already support what you want to do.
1310  (Remember what we said about reinventing the wheel?) Also, 
1311 \emph on
1312 make sure your preamble code is correct
1313 \emph default
1314 .
1315  \SpecialChar LyX
1316  doesn't check it for you.
1317  If there is an error, you're likely to get an error like 
1318 \begin_inset Quotes eld
1319 \end_inset
1320
1321
1322 \begin_inset Flex Code
1323 status collapsed
1324
1325 \begin_layout Plain Layout
1326 Missing 
1327 \backslash
1328 begin{document}
1329 \end_layout
1330
1331 \end_inset
1332
1333
1334 \begin_inset Quotes erd
1335 \end_inset
1336
1337 .
1338  If you see this error, check your preamble.
1339 \end_layout
1340
1341 \begin_layout Subsection
1342 Examples
1343 \end_layout
1344
1345 \begin_layout Standard
1346 Here are some examples of what you can add to a preamble, and what they
1347  do.
1348 \end_layout
1349
1350 \begin_layout Subsubsection
1351 Example #1: Offsets
1352 \end_layout
1353
1354 \begin_layout Standard
1355 There are two variables under \SpecialChar LaTeX
1356  that control page position: 
1357 \begin_inset Flex Code
1358 status collapsed
1359
1360 \begin_layout Plain Layout
1361
1362 \backslash
1363 hoffset
1364 \end_layout
1365
1366 \end_inset
1367
1368  and 
1369 \begin_inset Flex Code
1370 status collapsed
1371
1372 \begin_layout Plain Layout
1373
1374 \backslash
1375 voffset
1376 \end_layout
1377
1378 \end_inset
1379
1380 .
1381  Their names should be self-explanatory.
1382  These variables are useful if you think for a moment about computer labels.
1383  Sometimes, the size of a print medium and the area of the medium that you
1384  can actually print on aren't the same.
1385  This is where 
1386 \begin_inset Flex Code
1387 status collapsed
1388
1389 \begin_layout Plain Layout
1390
1391 \backslash
1392 hoffset
1393 \end_layout
1394
1395 \end_inset
1396
1397  and 
1398 \begin_inset Flex Code
1399 status collapsed
1400
1401 \begin_layout Plain Layout
1402
1403 \backslash
1404 voffset
1405 \end_layout
1406
1407 \end_inset
1408
1409  come in.
1410 \end_layout
1411
1412 \begin_layout Standard
1413 The default values for 
1414 \begin_inset Flex Code
1415 status collapsed
1416
1417 \begin_layout Plain Layout
1418
1419 \backslash
1420 hoffset
1421 \end_layout
1422
1423 \end_inset
1424
1425  and 
1426 \begin_inset Flex Code
1427 status collapsed
1428
1429 \begin_layout Plain Layout
1430
1431 \backslash
1432 voffset
1433 \end_layout
1434
1435 \end_inset
1436
1437  are both 0
1438 \begin_inset space \thinspace{}
1439 \end_inset
1440
1441 points, i.
1442 \begin_inset space \thinspace{}
1443 \end_inset
1444
1445 e.
1446 \begin_inset space \space{}
1447 \end_inset
1448
1449 the page isn't shifted.
1450  Unfortunately, some DVI drivers always seem to shift the page.
1451  We have no idea why, or why the sysadmin hasn't fixed such behavior.
1452  If you're using \SpecialChar LyX
1453  on a system that you don't personally maintain, and your
1454  sysadmin is a doofus, 
1455 \begin_inset Flex Code
1456 status collapsed
1457
1458 \begin_layout Plain Layout
1459
1460 \backslash
1461 hoffset
1462 \end_layout
1463
1464 \end_inset
1465
1466  and 
1467 \begin_inset Flex Code
1468 status collapsed
1469
1470 \begin_layout Plain Layout
1471
1472 \backslash
1473 voffset
1474 \end_layout
1475
1476 \end_inset
1477
1478  can save the day.
1479  Suppose your left and top margins are always 0.5
1480 \begin_inset space \thinspace{}
1481 \end_inset
1482
1483 inches too big.
1484  You can add this to the preamble:
1485 \end_layout
1486
1487 \begin_layout LyX-Code
1488
1489 \backslash
1490 setlength{
1491 \backslash
1492 hoffset}{-0.5 in}
1493 \end_layout
1494
1495 \begin_layout LyX-Code
1496
1497 \backslash
1498 setlength{
1499 \backslash
1500 voffset}{-0.5 in}
1501 \end_layout
1502
1503 \begin_layout Standard
1504 and your margins should now be correct.
1505 \end_layout
1506
1507 \begin_layout Subsubsection
1508 Example #2: Labels
1509 \end_layout
1510
1511 \begin_layout Standard
1512 Speaking of labels, suppose you wanted to print out a bunch of address labels.
1513  There's a rather nice package, available at your nearest CTAN archive,
1514  for printing sheets of labels: 
1515 \begin_inset Flex Code
1516 status collapsed
1517
1518 \begin_layout Plain Layout
1519 labels.sty
1520 \end_layout
1521
1522 \end_inset
1523
1524 .
1525  Now, your system may not have this package installed by default.
1526  We leave that up to you to check.
1527  You'll also want to read the documentation for it; we're not going to do
1528  that for you.
1529  Since this is an example, however, we'll give you an example of how you
1530  use this package.
1531 \end_layout
1532
1533 \begin_layout Standard
1534 First, make sure you're using the 
1535 \begin_inset Flex Code
1536 status collapsed
1537
1538 \begin_layout Plain Layout
1539 article
1540 \end_layout
1541
1542 \end_inset
1543
1544  document class.
1545  Next, you need to put the following in your preamble:
1546 \end_layout
1547
1548 \begin_layout LyX-Code
1549
1550 \backslash
1551 usepackage{labels}
1552 \end_layout
1553
1554 \begin_layout LyX-Code
1555
1556 \backslash
1557 LabelCols=3
1558 \end_layout
1559
1560 \begin_layout LyX-Code
1561
1562 \backslash
1563 LabelRows=7
1564 \end_layout
1565
1566 \begin_layout LyX-Code
1567
1568 \backslash
1569 LeftBorder=8mm
1570 \end_layout
1571
1572 \begin_layout LyX-Code
1573
1574 \backslash
1575 RightBorder=8mm
1576 \end_layout
1577
1578 \begin_layout LyX-Code
1579
1580 \backslash
1581 TopBorder=9mm
1582 \end_layout
1583
1584 \begin_layout LyX-Code
1585
1586 \backslash
1587 BottomBorder=2mm
1588 \end_layout
1589
1590 \begin_layout Standard
1591 This sets things up for Avery label sheets, stock #5360.
1592  You're now ready to print labels, but you'll need to insert \SpecialChar LaTeX
1593  code, placing
1594  the commands 
1595 \begin_inset Flex Code
1596 status collapsed
1597
1598 \begin_layout Plain Layout
1599
1600 \backslash
1601 begin{labels}
1602 \end_layout
1603
1604 \end_inset
1605
1606  and 
1607 \begin_inset Flex Code
1608 status collapsed
1609
1610 \begin_layout Plain Layout
1611
1612 \backslash
1613 end{labels}
1614 \end_layout
1615
1616 \end_inset
1617
1618  around each label text.
1619  This and other special features of 
1620 \begin_inset Flex Code
1621 status collapsed
1622
1623 \begin_layout Plain Layout
1624 labels.sty
1625 \end_layout
1626
1627 \end_inset
1628
1629  are explained in its documentation.
1630 \end_layout
1631
1632 \begin_layout Standard
1633 Someday, someone may write a \SpecialChar LyX
1634  layout file to support this package directly.
1635  Maybe that someone is you.
1636 \end_layout
1637
1638 \begin_layout Subsubsection
1639 Example #3: Paragraph Indentation
1640 \end_layout
1641
1642 \begin_layout Standard
1643 Americans are trained to indent the first line of 
1644 \emph on
1645 every
1646 \emph default
1647  paragraph.
1648  As with all of their other weird quirks, most Americans will whine and
1649  moan until they can have their way and indent the first line of all paragraphs.
1650  (Yes, we're joking.
1651  (We are?) 
1652 \emph on
1653 Yeah
1654 \emph default
1655 , we are.)
1656 \end_layout
1657
1658 \begin_layout Standard
1659 Of course, this behavior isn't standard typography.
1660  In books, you typically only indent the first line of a paragraph 
1661 \emph on
1662 if
1663 \emph default
1664  it follows another one.
1665  The idea behind indenting the first line of a paragraph is to distinguish
1666  neighboring paragraphs from one another.
1667  If there is no previous paragraph—for example, if it follows a figure or
1668  is the first paragraph in a section—then there is no need for indentation.
1669  
1670 \end_layout
1671
1672 \begin_layout Standard
1673 If you're a typical American (we're still joking!), though, you don't care
1674  about such esoteric things; you want your indentation! Add this to the
1675  preamble:
1676 \end_layout
1677
1678 \begin_layout LyX-Code
1679
1680 \backslash
1681 usepackage{indentfirst}
1682 \end_layout
1683
1684 \begin_layout Standard
1685 If your \SpecialChar TeX
1686  distribution isn't braindead, you'll have this package, and all
1687  of your paragraphs will get the indentation the Founding Fathers intended
1688  they should have.
1689 \end_layout
1690
1691 \begin_layout Subsubsection
1692 Example #4: This Document
1693 \end_layout
1694
1695 \begin_layout Standard
1696 You can also check out the preamble of this document to get an idea of some
1697  of the advanced things you can do.
1698 \end_layout
1699
1700 \begin_layout Section
1701 \SpecialChar LyX
1702  and \SpecialChar LaTeX
1703  Errors
1704 \end_layout
1705
1706 \begin_layout Standard
1707 When \SpecialChar LyX
1708  calls \SpecialChar LaTeX
1709 , it tells \SpecialChar LaTeX
1710  to blithely ignore any errors and keep going.
1711  It then uses the logfile from the \SpecialChar LaTeX
1712  run to do a post-mortem.
1713  After analyzing the logfile, \SpecialChar LyX
1714  displays a dialog listing the errors.
1715  Clicking on any one of them will take you to the position in your \SpecialChar LyX
1716  file
1717  where the error occurred.
1718 \begin_inset Foot
1719 status collapsed
1720
1721 \begin_layout Plain Layout
1722 Well, usually.
1723  Analyzing the logfile is a tough job, and \SpecialChar LyX
1724  doesn't always go to the right
1725  line.
1726  There are also cases where \SpecialChar LaTeX
1727  reports the error on one line, but the actual
1728  error is earlier.
1729  This is not unlike forgetting a closing brace in a program: You'll get
1730  an error, but only later.
1731 \end_layout
1732
1733 \end_inset
1734
1735
1736 \end_layout
1737
1738 \begin_layout Standard
1739 Some folks also like to look at the log file directly: It is available from
1740  
1741 \begin_inset Flex Noun
1742 status collapsed
1743
1744 \begin_layout Plain Layout
1745 Document\SpecialChar menuseparator
1746 LaTeX
1747 \begin_inset space ~
1748 \end_inset
1749
1750 Log
1751 \end_layout
1752
1753 \end_inset
1754
1755 .
1756  There are some fairly common error messages and warnings.
1757  We'll cover those here.
1758  You should look at a good \SpecialChar LaTeX
1759  book for a complete listing.
1760 \end_layout
1761
1762 \begin_layout Itemize
1763 \begin_inset Flex Code
1764 status collapsed
1765
1766 \begin_layout Plain Layout
1767 LaTeX Warning
1768 \end_layout
1769
1770 \end_inset
1771
1772
1773 \begin_inset Newline newline
1774 \end_inset
1775
1776 Anything beginning with these words is a warning message for the purpose
1777  of 
1778 \begin_inset Quotes eld
1779 \end_inset
1780
1781 debugging
1782 \begin_inset Quotes erd
1783 \end_inset
1784
1785  the \SpecialChar LaTeX
1786  code itself.
1787  You'll get messages like this if you added or changed cross-references
1788  or bibliography entries, in which case, \SpecialChar LaTeX
1789  is trying to tell you that you
1790  need to make another run.
1791  You can by-and-large ignore these.
1792 \end_layout
1793
1794 \begin_layout Itemize
1795 \begin_inset Flex Code
1796 status collapsed
1797
1798 \begin_layout Plain Layout
1799 LaTeX Font Warning
1800 \end_layout
1801
1802 \end_inset
1803
1804
1805 \begin_inset Newline newline
1806 \end_inset
1807
1808 Another warning message, this time about fonts which \SpecialChar LaTeX
1809  couldn't find.
1810  The rest of the message will often say something about a replacement font
1811  that \SpecialChar LaTeX
1812  used.
1813  You can safely ignore these, too.
1814 \end_layout
1815
1816 \begin_layout Itemize
1817 \begin_inset Flex Code
1818 status collapsed
1819
1820 \begin_layout Plain Layout
1821 Overfull 
1822 \backslash
1823 hbox
1824 \end_layout
1825
1826 \end_inset
1827
1828
1829 \begin_inset Newline newline
1830 \end_inset
1831
1832 \SpecialChar LaTeX
1833  absolutely 
1834 \emph on
1835 loves
1836 \emph default
1837  to spew these out.
1838  It seems to generate at least one of these messages for just about any
1839  document you write.
1840  They are warnings about lines that were too long and run past the right
1841  margin.
1842  This happens if \SpecialChar LaTeX
1843  does not find a reasonable way to break the lines (notoriously
1844  often with typewriter font, since this does not allow for automatic break
1845  points).
1846  In many cases, this is unnoticeable in the final output.
1847  (It can be just a point or two.) Sometimes, however, the lines run rather
1848  visibly into the margin; something you will not want to have in your final
1849  print.
1850  
1851 \begin_inset Newline newline
1852 \end_inset
1853
1854 There are several global ways to try to minimize the overfull lines.
1855  Clicking 
1856 \family sans
1857 Enable micro-typographic extensions
1858 \family default
1859  in 
1860 \family sans
1861 Document\SpecialChar menuseparator
1862 Settings\SpecialChar menuseparator
1863 Fonts
1864 \family default
1865  might already improve things a lot.
1866  Furthermore, \SpecialChar LaTeX
1867  code such as the following in 
1868 \family sans
1869 Document\SpecialChar menuseparator
1870 Settings\SpecialChar menuseparator
1871 Preamble
1872 \family default
1873  usually reduces the overfull lines drastically (we use this in the preamble
1874  of this document):
1875 \end_layout
1876
1877 \begin_deeper
1878 \begin_layout LyX-Code
1879
1880 \backslash
1881 tolerance 1414
1882 \begin_inset Newline newline
1883 \end_inset
1884
1885
1886 \backslash
1887 hbadness 1414
1888 \begin_inset Newline newline
1889 \end_inset
1890
1891
1892 \backslash
1893 emergencystretch 1.5em
1894 \begin_inset Newline newline
1895 \end_inset
1896
1897
1898 \backslash
1899 hfuzz 0.3pt
1900 \end_layout
1901
1902 \begin_layout Standard
1903 In some cases, however, you eventually have to rewrite the text to get the
1904  line breaking right.
1905 \begin_inset Foot
1906 status collapsed
1907
1908 \begin_layout Plain Layout
1909 For more information, see 
1910 \begin_inset Flex URL
1911 status open
1912
1913 \begin_layout Plain Layout
1914
1915 http://www.tex.ac.uk/FAQ-overfull.html
1916 \end_layout
1917
1918 \end_inset
1919
1920
1921 \end_layout
1922
1923 \end_inset
1924
1925
1926 \end_layout
1927
1928 \begin_layout Standard
1929 In any case, you should check the respective lines, at least for the final
1930  version of your document.
1931  Your eyes will tell you if there's a problem with something that's too
1932  wide.
1933 \begin_inset Foot
1934 status collapsed
1935
1936 \begin_layout Plain Layout
1937 You can also enable the `draft' option in 
1938 \begin_inset Flex Noun
1939 status collapsed
1940
1941 \begin_layout Plain Layout
1942 Document\SpecialChar menuseparator
1943 Settings
1944 \end_layout
1945
1946 \end_inset
1947
1948 , and then \SpecialChar LaTeX
1949  will draw a black box in the margin of lines that are overfull.
1950 \end_layout
1951
1952 \end_inset
1953
1954  
1955 \end_layout
1956
1957 \end_deeper
1958 \begin_layout Itemize
1959 \begin_inset Flex Code
1960 status collapsed
1961
1962 \begin_layout Plain Layout
1963 Underfull 
1964 \backslash
1965 hbox
1966 \end_layout
1967
1968 \end_inset
1969
1970
1971 \begin_inset Newline newline
1972 \end_inset
1973
1974 Not quite as common as its cousin.
1975  This happens again if \SpecialChar LaTeX
1976  does not find a reasonable break point and consequently
1977  generates too loose lines.
1978  As with the overfull lines, you should check if this is a visible problem.
1979 \end_layout
1980
1981 \begin_layout Itemize
1982 \begin_inset Flex Code
1983 status collapsed
1984
1985 \begin_layout Plain Layout
1986 Overfull 
1987 \backslash
1988 vbox
1989 \end_layout
1990
1991 \end_inset
1992
1993  and 
1994 \begin_inset Flex Code
1995 status collapsed
1996
1997 \begin_layout Plain Layout
1998 Underfull 
1999 \backslash
2000 vbox
2001 \end_layout
2002
2003 \end_inset
2004
2005
2006 \begin_inset Newline newline
2007 \end_inset
2008
2009 Warnings about troubles breaking the page.
2010  Once again, just look at the output.
2011  Your eyes will tell you where something has gone wrong.
2012 \end_layout
2013
2014 \begin_layout Itemize
2015 \begin_inset Flex Code
2016 status collapsed
2017
2018 \begin_layout Plain Layout
2019 LaTeX Error: File 
2020 \begin_inset Quotes els
2021 \end_inset
2022
2023 Xxxx
2024 \begin_inset Quotes ers
2025 \end_inset
2026
2027  not found
2028 \end_layout
2029
2030 \end_inset
2031
2032
2033 \begin_inset Newline newline
2034 \end_inset
2035
2036 The file 
2037 \begin_inset Quotes eld
2038 \end_inset
2039
2040 Xxxx
2041 \begin_inset Quotes erd
2042 \end_inset
2043
2044  isn't installed on this system.
2045  This usually appears because some package your document needs isn't installed.
2046  If you didn't touch the preamble or didn't use the 
2047 \begin_inset Flex Code
2048 status collapsed
2049
2050 \begin_layout Plain Layout
2051
2052 \backslash
2053 usepackage{}
2054 \end_layout
2055
2056 \end_inset
2057
2058  command, then one of the packages \SpecialChar LyX
2059  tried to load is missing.
2060  Use 
2061 \begin_inset Flex Noun
2062 status collapsed
2063
2064 \begin_layout Plain Layout
2065 Help\SpecialChar menuseparator
2066 \SpecialChar LaTeX
2067  Configuration
2068 \end_layout
2069
2070 \end_inset
2071
2072  to get a list of packages that \SpecialChar LyX
2073  knows about.
2074  This file is updated whenever you reconfigure \SpecialChar LyX
2075  (using 
2076 \begin_inset Flex Noun
2077 status collapsed
2078
2079 \begin_layout Plain Layout
2080 Tools\SpecialChar menuseparator
2081 Reconfigure
2082 \end_layout
2083
2084 \end_inset
2085
2086 ) and tells you which packages have been detected and what they do.
2087 \begin_inset Newline newline
2088 \end_inset
2089
2090 If you did use the 
2091 \begin_inset Flex Code
2092 status collapsed
2093
2094 \begin_layout Plain Layout
2095
2096 \backslash
2097 usepackage{}
2098 \end_layout
2099
2100 \end_inset
2101
2102  command and the package in question isn't installed, then you'll need to
2103  install it yourself.
2104 \end_layout
2105
2106 \begin_layout Itemize
2107 \begin_inset Flex Code
2108 status collapsed
2109
2110 \begin_layout Plain Layout
2111 LaTeX Error: Unknown option
2112 \end_layout
2113
2114 \end_inset
2115
2116
2117 \begin_inset Newline newline
2118 \end_inset
2119
2120 Error messages beginning with this are trying to tell you that you specified
2121  a bad or undefined option to a package.
2122  Check the package's documentation.
2123 \end_layout
2124
2125 \begin_layout Itemize
2126 \begin_inset Flex Code
2127 status collapsed
2128
2129 \begin_layout Plain Layout
2130 Undefined control sequence
2131 \end_layout
2132
2133 \end_inset
2134
2135
2136 \begin_inset Newline newline
2137 \end_inset
2138
2139 If you've inserted \SpecialChar LaTeX
2140  code into your document, but made a typo, you'll get
2141  one of these.
2142  You may have forgotten to load a package.
2143  In any case, this error message usually means that you used an undefined
2144  command.
2145  
2146 \end_layout
2147
2148 \begin_layout Standard
2149 There are other error and warning messages.
2150  Some are self-explanatory.
2151  These are usually \SpecialChar LaTeX
2152  messages.
2153  Others are downright cryptic.
2154  These are usually \SpecialChar TeX
2155  error messages, and we really have 
2156 \emph on
2157 no clue
2158 \emph default
2159  what they mean or how to decipher them.
2160  No-one does.
2161 \end_layout
2162
2163 \begin_layout Standard
2164 There's a general sequence you should follow if you get error messages:
2165 \end_layout
2166
2167 \begin_layout Enumerate
2168 Look at the \SpecialChar LaTeX
2169  code you inserted for typos.
2170 \end_layout
2171
2172 \begin_layout Enumerate
2173 If there are no typos, check that you used the command(s) correctly.
2174 \end_layout
2175
2176 \begin_layout Enumerate
2177 If you get a bunch of error boxes piled up at the very top of the document—and
2178  especially if you see a 
2179 \begin_inset Quotes eld
2180 \end_inset
2181
2182
2183 \begin_inset Flex Code
2184 status collapsed
2185
2186 \begin_layout Plain Layout
2187 Missing 
2188 \backslash
2189 begin{document}
2190 \end_layout
2191
2192 \end_inset
2193
2194
2195 \begin_inset Quotes erd
2196 \end_inset
2197
2198  error—it means that there are errors in the preamble.
2199  Start debugging your preamble.
2200 \end_layout
2201
2202 \begin_layout Enumerate
2203 If you didn't add anything to the preamble and didn't add any \SpecialChar LaTeX
2204  code to the
2205  document, the first suspect is your \SpecialChar LaTeX
2206  distribution itself.
2207  Check for missing packages and install them.
2208 \end_layout
2209
2210 \begin_layout Enumerate
2211 Okay, so there are no missing packages.
2212  Did you use any of the fine-tuning options in \SpecialChar LyX
2213 ? Specifically, did you 
2214 \emph on
2215 misuse
2216 \emph default
2217  any of them, like trying to manually insert lots of 
2218 \begin_inset Flex Code
2219 status collapsed
2220
2221 \begin_layout Plain Layout
2222
2223 \change_deleted 177693 1654669036
2224 Protected
2225 \change_inserted 177693 1654669038
2226 Non-Breaking
2227 \change_unchanged
2228
2229 \begin_inset space ~
2230 \end_inset
2231
2232
2233 \change_deleted 177693 1654669040
2234 Blanks
2235 \change_inserted 177693 1654669041
2236 Spaces
2237 \change_unchanged
2238
2239 \end_layout
2240
2241 \end_inset
2242
2243
2244 \begin_inset Flex Code
2245 status collapsed
2246
2247 \begin_layout Plain Layout
2248 Linebreaks
2249 \end_layout
2250
2251 \end_inset
2252
2253 , or 
2254 \begin_inset Flex Code
2255 status collapsed
2256
2257 \begin_layout Plain Layout
2258 Pagebreaks
2259 \end_layout
2260
2261 \end_inset
2262
2263 ? Did you try to kludge something together with these instead of using the
2264  appropriate paragraph environment?
2265 \end_layout
2266
2267 \begin_layout Enumerate
2268 All right, you didn't use any of the fine-tuning options, you played by
2269  the rules.
2270  Did you try to pull a fancy maneuver? Did you do something funky inside
2271  a table or an equation, like inserting a graphic into a table cell?
2272 \end_layout
2273
2274 \begin_layout Enumerate
2275 Do you have long sections of text where \SpecialChar LaTeX
2276  cannot find a place to break a
2277  line? By default, \SpecialChar LaTeX
2278  is rather strict about how much extra inter-word spacing
2279  it will add in order to break a line.
2280  Preferably, you should rework the paragraph to avoid the problem.
2281 \end_layout
2282
2283 \begin_layout Enumerate
2284 Did you go overboard with the nesting? \SpecialChar LyX
2285  (currently) doesn't check to make
2286  sure you're in the limits for nesting environments.
2287  If you nested a bunch of environments to the 
2288 \begin_inset Formula $17^{\mathrm{th}}$
2289 \end_inset
2290
2291  level, that's the problem.
2292  (The limit in \SpecialChar LaTeX
2293  is five.)
2294 \end_layout
2295
2296 \begin_layout Enumerate
2297 Okay, you didn't get any error messages, but your output looks awful.
2298  If you have a table or figure that's too wide or long for the page, you
2299  need to:
2300 \end_layout
2301
2302 \begin_deeper
2303 \begin_layout Enumerate
2304 rescale the figure so it fits.
2305 \end_layout
2306
2307 \begin_layout Enumerate
2308 trim down the table so it fits.
2309 \end_layout
2310
2311 \end_deeper
2312 \begin_layout Enumerate
2313 If something else is wrong with the output, and you didn't try to pull anything
2314  fancy or kludge the fine-tuning options, we're not sure what's wrong.
2315 \end_layout
2316
2317 \begin_layout Standard
2318 If all this doesn't help—well, then 
2319 \emph on
2320 perhaps
2321 \emph default
2322  you might have found a bug in \SpecialChar LyX
2323 \SpecialChar ldots
2324 .
2325 \end_layout
2326
2327 \begin_layout Chapter
2328
2329 \change_inserted 564990737 1670439508
2330 Document classes
2331 \end_layout
2332
2333 \begin_layout Section
2334
2335 \change_inserted 564990737 1670439533
2336 \begin_inset CommandInset label
2337 LatexCommand label
2338 name "sec:Collections"
2339
2340 \end_inset
2341
2342 Collections
2343 \end_layout
2344
2345 \begin_layout Subsection
2346 AMS \SpecialChar LaTeX
2347
2348 \end_layout
2349
2350 \begin_layout Standard
2351 by 
2352 \noun on
2353 David Johnson
2354 \noun default
2355 ; updated by 
2356 \noun on
2357 Richard Kimberly Heck
2358 \end_layout
2359
2360 \begin_layout Standard
2361 \begin_inset VSpace bigskip
2362 \end_inset
2363
2364
2365 \end_layout
2366
2367 \begin_layout Standard
2368 \noindent
2369 The AMS \SpecialChar LaTeX
2370  layouts are set up to conform to suggested styles for mathematical
2371  papers to be submitted to American Mathematical Society publications.
2372  The layouts are not tailored to a specific journal, but easily can be.
2373  You should refer to the AMS documentation for specific instructions for
2374  each journal (usually it will entail only changing a single line in the
2375  \SpecialChar TeX
2376  output).
2377  That documentation is available on the Web at 
2378 \begin_inset Flex URL
2379 status open
2380
2381 \begin_layout Plain Layout
2382
2383 http://www.ams.org
2384 \end_layout
2385
2386 \end_inset
2387
2388  or by ftp at 
2389 \begin_inset Flex URL
2390 status open
2391
2392 \begin_layout Plain Layout
2393
2394 ftp://ftp.ams.org/pub/tex/amslatex/
2395 \end_layout
2396
2397 \end_inset
2398
2399 .
2400  These layouts are appropriate, and useful, for any mathematical writing.
2401  
2402 \end_layout
2403
2404 \begin_layout Standard
2405 There are two basic AMS \SpecialChar LaTeX
2406  layouts: 
2407 \end_layout
2408
2409 \begin_layout Itemize
2410 amsart: The standard AMS article format.
2411 \end_layout
2412
2413 \begin_layout Itemize
2414 amsbook: the standard AMS book (really, monograph) format.
2415  
2416 \end_layout
2417
2418 \begin_layout Standard
2419 The layouts themselves contain only the minimum necessary to use the AMS
2420  classes.
2421  They do not, in particular, contain any of the `theorem' environments used
2422  for setting theorems, lemmas, and the like.
2423  These are contained, instead, in the 
2424 \begin_inset Flex Code
2425 status collapsed
2426
2427 \begin_layout Plain Layout
2428 Theorems (AMS)
2429 \end_layout
2430
2431 \end_inset
2432
2433  module, which is loaded by default when you select one of the AMS classes.
2434  (It can also be used with other classes and can be removed, if you would
2435  rather use something else.) Less commonly used environments are in the 
2436 \begin_inset Flex Code
2437 status collapsed
2438
2439 \begin_layout Plain Layout
2440 Theorems (AMS-Extended)
2441 \end_layout
2442
2443 \end_inset
2444
2445  module, which must be loaded manually.
2446 \end_layout
2447
2448 \begin_layout Standard
2449 By default, theorems and the like are numbered consecutively throughout
2450  the document, but this may be modified by loading the module 
2451 \begin_inset Flex Code
2452 status collapsed
2453
2454 \begin_layout Plain Layout
2455 Theorems (Order by Section)
2456 \end_layout
2457
2458 \end_inset
2459
2460  or, if you are using 
2461 \begin_inset Flex Code
2462 status collapsed
2463
2464 \begin_layout Plain Layout
2465 book (AMS)
2466 \end_layout
2467
2468 \end_inset
2469
2470 , the module 
2471 \begin_inset Flex Code
2472 status collapsed
2473
2474 \begin_layout Plain Layout
2475 Theorems (Order by Chapter)
2476 \end_layout
2477
2478 \end_inset
2479
2480 .
2481  These will number the results as 
2482 \begin_inset Formula $n.m$
2483 \end_inset
2484
2485 , where the first number refers to the section (or chapter) and the second
2486  refers to the total number of results so far in that section (or chapter).
2487  Many environments are also available unnumbered.
2488  These are indicated by an asterisk at the end.
2489  If you happen to want 
2490 \emph on
2491 only
2492 \emph default
2493  unnumbered results, the module 
2494 \begin_inset Flex Code
2495 status collapsed
2496
2497 \begin_layout Plain Layout
2498 Theorems (Starred)
2499 \end_layout
2500
2501 \end_inset
2502
2503  provides that option.
2504 \end_layout
2505
2506 \begin_layout Standard
2507 Note that these modules do not 
2508 \emph on
2509 have
2510 \emph default
2511  to be used with the AMS classes.
2512  It is perfectly possible to use the 
2513 \begin_inset Flex Code
2514 status collapsed
2515
2516 \begin_layout Plain Layout
2517 Theorems (AMS)
2518 \end_layout
2519
2520 \end_inset
2521
2522  module, and the others mentioned, with other classes, such as 
2523 \begin_inset Flex Code
2524 status collapsed
2525
2526 \begin_layout Plain Layout
2527 article
2528 \end_layout
2529
2530 \end_inset
2531
2532
2533 \begin_inset Flex Code
2534 status collapsed
2535
2536 \begin_layout Plain Layout
2537 report
2538 \end_layout
2539
2540 \end_inset
2541
2542
2543 \begin_inset Flex Code
2544 status collapsed
2545
2546 \begin_layout Plain Layout
2547 book (KOMA-script)
2548 \end_layout
2549
2550 \end_inset
2551
2552 , and so forth.
2553 \end_layout
2554
2555 \begin_layout Subsubsection
2556 What these layouts provide
2557 \end_layout
2558
2559 \begin_layout Standard
2560 There is a long list of included environments provided by these layouts.
2561  In AMS-\SpecialChar LaTeX
2562 , there is, in fact, an opportunity to define an unlimited variety
2563  of `theorem' environments.
2564  However, the AMS recommends the environments that are available in \SpecialChar LyX
2565 .
2566  
2567 \end_layout
2568
2569 \begin_layout Standard
2570 The following environments—as well as the standard environments, such as
2571  
2572 \begin_inset Flex Noun
2573 status collapsed
2574
2575 \begin_layout Plain Layout
2576 section
2577 \end_layout
2578
2579 \end_inset
2580
2581
2582 \begin_inset Flex Noun
2583 status collapsed
2584
2585 \begin_layout Plain Layout
2586 bibliography
2587 \end_layout
2588
2589 \end_inset
2590
2591
2592 \begin_inset Flex Noun
2593 status collapsed
2594
2595 \begin_layout Plain Layout
2596 title
2597 \end_layout
2598
2599 \end_inset
2600
2601
2602 \begin_inset Flex Noun
2603 status collapsed
2604
2605 \begin_layout Plain Layout
2606 author
2607 \end_layout
2608
2609 \end_inset
2610
2611 , and 
2612 \begin_inset Flex Noun
2613 status collapsed
2614
2615 \begin_layout Plain Layout
2616 date
2617 \end_layout
2618
2619 \end_inset
2620
2621 —are provided by 
2622 \begin_inset Flex Code
2623 status collapsed
2624
2625 \begin_layout Plain Layout
2626 article (AMS)
2627 \end_layout
2628
2629 \end_inset
2630
2631  and 
2632 \begin_inset Flex Code
2633 status collapsed
2634
2635 \begin_layout Plain Layout
2636 book (AMS)
2637 \end_layout
2638
2639 \end_inset
2640
2641 :
2642 \end_layout
2643
2644 \begin_layout Description
2645 Address This should be the author's permanent address.
2646 \end_layout
2647
2648 \begin_layout Description
2649 Current
2650 \begin_inset space ~
2651 \end_inset
2652
2653 Address This should be the author's temporary address at the time of submission,
2654  if different from the Address.
2655 \end_layout
2656
2657 \begin_layout Description
2658 Email Author's e-mail address
2659 \end_layout
2660
2661 \begin_layout Description
2662 URL Author's Web address, if desired.
2663 \end_layout
2664
2665 \begin_layout Description
2666 Keywords Key words or phrases used to identify specific topics discussed
2667  in the paper.
2668 \end_layout
2669
2670 \begin_layout Description
2671 Subjectclass These refer to the AMS Subject Classifications, published and
2672  described in 
2673 \emph on
2674 Mathematical Reviews
2675 \emph default
2676 .
2677  These are also available online at the AMS cites listed above.
2678 \end_layout
2679
2680 \begin_layout Description
2681 Thanks
2682 \end_layout
2683
2684 \begin_layout Description
2685 Dedicatory
2686 \end_layout
2687
2688 \begin_layout Description
2689 Translator
2690 \end_layout
2691
2692 \begin_layout Standard
2693 The following environments are provided by both the 
2694 \begin_inset Flex Code
2695 status collapsed
2696
2697 \begin_layout Plain Layout
2698 Theorems
2699 \end_layout
2700
2701 \end_inset
2702
2703  and 
2704 \begin_inset Flex Code
2705 status collapsed
2706
2707 \begin_layout Plain Layout
2708 Theorems (AMS)
2709 \end_layout
2710
2711 \end_inset
2712
2713  modules, in the latter case in both starred (unnumbered) and unstarred
2714  (numbered) versions.
2715  These same environments are provided only in the starred versions by the
2716  
2717 \begin_inset Flex Code
2718 status collapsed
2719
2720 \begin_layout Plain Layout
2721 Theorems (Starred)
2722 \end_layout
2723
2724 \end_inset
2725
2726  module:
2727 \end_layout
2728
2729 \begin_layout Theorem
2730 This is typically used for the statements of major results.
2731  
2732 \end_layout
2733
2734 \begin_layout Corollary*
2735 This is used for statements which follow fairly directly from previous statement
2736 s.
2737  Again, these can be major results.
2738  
2739 \end_layout
2740
2741 \begin_layout Lemma
2742 These are smaller results needed to prove other statements.
2743 \end_layout
2744
2745 \begin_layout Proposition
2746 These are less major results which (hopefully) add to the general theory
2747  being discussed.
2748 \end_layout
2749
2750 \begin_layout Conjecture
2751 These are statements provided without justification, which the author does
2752  not know how to prove, but which seem to be true (to the author, at least).
2753 \end_layout
2754
2755 \begin_layout Definition*
2756 Guess what this is for.
2757  The font is different for this environment than for the previous ones.
2758  
2759 \end_layout
2760
2761 \begin_layout Example*
2762 Used for examples illustrating proven results.
2763 \end_layout
2764
2765 \begin_layout Problem
2766 It's not really known what this is for.
2767  You should figure it out.
2768 \end_layout
2769
2770 \begin_layout Exercise*
2771 Write a description for this one.
2772 \end_layout
2773
2774 \begin_layout Remark
2775 This environment is also a type of theorem, usually a lesser sort of observation.
2776 \end_layout
2777
2778 \begin_layout Claim*
2779 Often used in the course of giving a proof of a larger result.
2780 \end_layout
2781
2782 \begin_layout Case
2783 Generally, these are used to break up long arguments, using specific instances
2784  of some condition.
2785  
2786 \end_layout
2787
2788 \begin_layout Case
2789 The numbering scheme for cases is on its own, not together with other numbered
2790  statements.
2791  
2792 \end_layout
2793
2794 \begin_layout Proof
2795 At the end of this environment, a QED symbol (usually a square, but it can
2796  vary with different styles) is placed.
2797  If you want to have other environments within this one—for example, Case
2798  environments—and have the QED symbol appear only after them, then the other
2799  environments need to be nested within the proof environment.
2800  See the section 
2801 \emph on
2802 Nesting Environments
2803 \emph default
2804  of the 
2805 \emph on
2806 User's Guide
2807 \emph default
2808  for information on nesting.
2809 \end_layout
2810
2811 \begin_layout Standard
2812 And these environments are provided by 
2813 \begin_inset Flex Code
2814 status collapsed
2815
2816 \begin_layout Plain Layout
2817 Theorems (AMS-Extended)
2818 \end_layout
2819
2820 \end_inset
2821
2822 :
2823 \end_layout
2824
2825 \begin_layout Criterion*
2826 A required condition.
2827 \end_layout
2828
2829 \begin_layout Algorithm*
2830 A general procedure to be used.
2831 \end_layout
2832
2833 \begin_layout Axiom*
2834 This is a property or statement taken as true within the system being discussed.
2835 \end_layout
2836
2837 \begin_layout Condition*
2838 Sometimes used to state a condition assumed within the present context of
2839  discussion.
2840 \end_layout
2841
2842 \begin_layout Note*
2843 Similar to a Remark.
2844 \end_layout
2845
2846 \begin_layout Notation*
2847 Used for the explanation of, yes, notation.
2848 \end_layout
2849
2850 \begin_layout Summary
2851 Do we really need to tell you? 
2852 \end_layout
2853
2854 \begin_layout Acknowledgement*
2855 Acknowledgement.
2856 \end_layout
2857
2858 \begin_layout Conclusion*
2859 Sometimes used at the end of a long train of argument.
2860 \end_layout
2861
2862 \begin_layout Fact
2863 Used in a way similar to Proposition, though perhaps lower on the scale.
2864 \end_layout
2865
2866 \begin_layout Standard
2867 In addition, the AMS classes automatically provide the AMS \SpecialChar LaTeX
2868  and AMS fonts
2869  packages.
2870  They need to be available on your system in order to use these environments.
2871 \end_layout
2872
2873 \begin_layout Subsection
2874
2875 \change_inserted 564990737 1671383236
2876
2877 \lang american
2878 \begin_inset CommandInset label
2879 LatexCommand label
2880 name "subsec:Extra-font-sizes"
2881
2882 \end_inset
2883
2884 Extra font sizes
2885 \end_layout
2886
2887 \begin_layout Standard
2888
2889 \change_inserted 564990737 1671383236
2890
2891 \lang american
2892 The “Extra font sizes” collection provides the document classes 
2893 \family sans
2894 article
2895 \begin_inset space \thinspace{}
2896 \end_inset
2897
2898 (with extra font sizes)
2899 \family default
2900
2901 \family sans
2902 book
2903 \begin_inset space \thinspace{}
2904 \end_inset
2905
2906 (with extra font sizes)
2907 \family default
2908
2909 \family sans
2910 letter
2911 \begin_inset space \thinspace{}
2912 \end_inset
2913
2914 (with extra font sizes)
2915 \family default
2916  and 
2917 \family sans
2918 report
2919 \begin_inset space \thinspace{}
2920 \end_inset
2921
2922 (with extra font sizes)
2923 \family default
2924  which use the 
2925 \family typewriter
2926 article.cls
2927 \family default
2928
2929 \family typewriter
2930 book.cls
2931 \family default
2932
2933 \family typewriter
2934 letter.cls
2935 \family default
2936  and 
2937 \family typewriter
2938 report.cls
2939 \family default
2940  document classes respectively but offer the additional 
2941 \family sans
2942 \bar under
2943 B
2944 \bar default
2945 ase
2946 \begin_inset space ~
2947 \end_inset
2948
2949 Size
2950 \family default
2951  options 8, 9, 14, 17 and 20 in the 
2952 \family sans
2953 \bar under
2954 D
2955 \bar default
2956 ocument\SpecialChar menuseparator
2957
2958 \bar under
2959 S
2960 \bar default
2961 ettings\SpecialChar menuseparator
2962 Fonts
2963 \family default
2964  dialog.
2965 \end_layout
2966
2967 \begin_layout Subsection
2968
2969 \change_inserted 564990737 1671383236
2970
2971 \lang american
2972 Hebrew
2973 \end_layout
2974
2975 \begin_layout Standard
2976
2977 \change_inserted 564990737 1671383236
2978
2979 \lang american
2980 The document classes 
2981 \family sans
2982 article
2983 \begin_inset space \thinspace{}
2984 \end_inset
2985
2986 (Hebrew)
2987 \family default
2988  and 
2989 \family sans
2990 letter
2991 \begin_inset space \thinspace{}
2992 \end_inset
2993
2994 (Hebrew)
2995 \family default
2996  use the 
2997 \family typewriter
2998 article.cl
2999 \family sans
3000 s
3001 \family default
3002  and 
3003 \family typewriter
3004 letter.cls
3005 \family default
3006  document classes to facilitate the use of Hebrew in \SpecialChar LyX
3007 .
3008 \end_layout
3009
3010 \begin_layout Subsection
3011
3012 \change_inserted 564990737 1671383236
3013
3014 \lang american
3015 \begin_inset CommandInset label
3016 LatexCommand label
3017 name "subsec:Japanese"
3018
3019 \end_inset
3020
3021 Japanese
3022 \end_layout
3023
3024 \begin_layout Standard
3025
3026 \change_inserted 564990737 1671383236
3027
3028 \lang american
3029 The document classes 
3030 \family sans
3031 article
3032 \begin_inset space \thinspace{}
3033 \end_inset
3034
3035 (Japanese JS Class)
3036 \family default
3037 ,
3038 \family sans
3039  article
3040 \begin_inset space \thinspace{}
3041 \end_inset
3042
3043 (Japanese Standard Class Vertical Writing)
3044 \family default
3045
3046 \family sans
3047 article
3048 \begin_inset space \thinspace{}
3049 \end_inset
3050
3051 (Japanese Standard Class)
3052 \family default
3053
3054 \family sans
3055 book
3056 \begin_inset space \thinspace{}
3057 \end_inset
3058
3059 (Japanese JS Class)
3060 \family default
3061 ,
3062 \family sans
3063  book
3064 \begin_inset space \thinspace{}
3065 \end_inset
3066
3067 (Japanese Standard Class Vertical Writing)
3068 \family default
3069
3070 \family sans
3071 book
3072 \begin_inset space \thinspace{}
3073 \end_inset
3074
3075 (Japanese Standard Class)
3076 \family default
3077
3078 \family sans
3079 report
3080 \begin_inset space \thinspace{}
3081 \end_inset
3082
3083 (Japanese Vertical Writing)
3084 \family default
3085  and 
3086 \family sans
3087 report
3088 \begin_inset space \thinspace{}
3089 \end_inset
3090
3091 (Japanese Standard Class)
3092 \family default
3093  provide document classes for the Japanese language.
3094 \end_layout
3095
3096 \begin_layout Subsection
3097 Koma-Script
3098 \end_layout
3099
3100 \begin_layout Standard
3101 by 
3102 \noun on
3103 Bernd Rellermeyer
3104 \end_layout
3105
3106 \begin_layout Subsubsection
3107 Overview
3108 \end_layout
3109
3110 \begin_layout Standard
3111 The \SpecialChar LyX
3112  document classes 
3113 \emph on
3114 article (koma-script)
3115 \emph default
3116
3117 \emph on
3118 report (koma-script)
3119 \emph default
3120
3121 \emph on
3122 book
3123 \emph default
3124  
3125 \emph on
3126 (koma-script)
3127 \emph default
3128 , and 
3129 \emph on
3130 letter
3131 \emph default
3132  
3133 \emph on
3134 (koma-script)
3135 \emph default
3136  correspond to the \SpecialChar LaTeX
3137  document classes 
3138 \family typewriter
3139 scrartcl.cls
3140 \family default
3141
3142 \family typewriter
3143 scrreprt.cls
3144 \family default
3145
3146 \family typewriter
3147 scrbook.cls
3148 \family default
3149 , and 
3150 \family typewriter
3151 scrlettr.cls
3152 \family default
3153 , resp.
3154 \begin_inset space ~
3155 \end_inset
3156
3157 of the Koma-Script family.
3158  They are replacements for the standard document classes 
3159 \family typewriter
3160 article.cls
3161 \family default
3162
3163 \family typewriter
3164 report.cls
3165 \family default
3166
3167 \family typewriter
3168 book.cls
3169 \family default
3170  and 
3171 \family typewriter
3172 letter.cls
3173 \family default
3174 , resp., and fit better to European typography conventions in a number of
3175  points.
3176 \end_layout
3177
3178 \begin_layout Itemize
3179 Standard character size is 11pt in 
3180 \emph on
3181 article (koma-script)
3182 \emph default
3183
3184 \emph on
3185 report (koma-script)
3186 \emph default
3187 , and 
3188 \emph on
3189 book (koma-script)
3190 \emph default
3191 , and 12pt in 
3192 \emph on
3193 letter (koma-script)
3194 \emph default
3195 .
3196 \end_layout
3197
3198 \begin_layout Itemize
3199 Headings, labels of the description environment, and a number of elements
3200  of the 
3201 \emph on
3202 letter (koma-script)
3203 \emph default
3204  document class are set in a bold sans serif font.
3205 \begin_inset Foot
3206 status collapsed
3207
3208 \begin_layout Plain Layout
3209 There is a big difference between the bold sans serif old cm fonts and new
3210  ec fonts, especially in the appearance of headings.
3211  In comparison, the ec bold sans serif fonts look a bit thin.
3212  Here the \SpecialChar LaTeX
3213  package 
3214 \family typewriter
3215 cmsd.sty by
3216 \family default
3217  
3218 \shape smallcaps
3219 Walter Schmidt
3220 \shape default
3221  helps to produce the 
3222 \begin_inset Quotes eld
3223 \end_inset
3224
3225 usual
3226 \begin_inset Quotes erd
3227 \end_inset
3228
3229  appearance when using the ec fonts.
3230 \end_layout
3231
3232 \end_inset
3233
3234  The numbering of chapter headings is made in the same way as the numbering
3235  of section headings, that is without the extra line 
3236 \begin_inset Quotes eld
3237 \end_inset
3238
3239 Chapter\SpecialChar ldots
3240
3241 \begin_inset Quotes erd
3242 \end_inset
3243
3244 .
3245  In addition, the appearance of the headings can be modified by using a
3246  number of options (in \SpecialChar LyX
3247  to be entered in the field 
3248 \family sans
3249 Extra
3250 \begin_inset space ~
3251 \end_inset
3252
3253 Options
3254 \family default
3255  of the dialog 
3256 \family sans
3257 Layout\SpecialChar menuseparator
3258 Document
3259 \family default
3260 ).
3261  
3262 \end_layout
3263
3264 \begin_layout Itemize
3265 The main means in the Koma-Script document classes to design the type area
3266  are the options 
3267 \family sans
3268 BCOR
3269 \family default
3270  and 
3271 \family sans
3272 DIV
3273 \family default
3274  (in \SpecialChar LyX
3275  to be entered in the extra class options field in the dialog 
3276 \family sans
3277 Document\SpecialChar menuseparator
3278 Settings
3279 \family default
3280 ).
3281  They make a clearer modification of page margins possible as do the options
3282  of the dialog 
3283 \family sans
3284 Document\SpecialChar menuseparator
3285 Settings
3286 \family default
3287 .
3288  
3289 \end_layout
3290
3291 \begin_layout Itemize
3292 The \SpecialChar LaTeX
3293  document classes of the Koma-Script family define a number of additional
3294  commands.
3295  Those part of it which makes sense in \SpecialChar LyX
3296  is implemented in corresponding
3297  paragraph types.
3298 \end_layout
3299
3300 \begin_layout Standard
3301 Detailed descriptions of the \SpecialChar LaTeX
3302  document classes of the Koma-Script family
3303  can be found in the Koma-Script documentation 
3304 \emph on
3305 scrguide
3306 \emph default
3307  (German) and 
3308 \emph on
3309 scrguien
3310 \emph default
3311  (English).
3312 \end_layout
3313
3314 \begin_layout Subsubsection
3315 article (koma-script), report (koma-script), and book (koma-script)
3316 \end_layout
3317
3318 \begin_layout Standard
3319 The document classes 
3320 \emph on
3321 article (koma-script)
3322 \emph default
3323
3324 \emph on
3325 report (koma-script)
3326 \emph default
3327 , and 
3328 \emph on
3329 book
3330 \emph default
3331  
3332 \emph on
3333 (koma-script)
3334 \emph default
3335  are implemented in the layout files 
3336 \family typewriter
3337 scrartcl.layout
3338 \family default
3339
3340 \family typewriter
3341 scrreprt.layout
3342 \family default
3343 , and 
3344 \family typewriter
3345 scrbook.layout
3346 \family default
3347 , resp.
3348  They contain all the paragraph types of the corresponding standard document
3349  classes 
3350 \emph on
3351 article
3352 \emph default
3353
3354 \emph on
3355 report
3356 \emph default
3357 , and 
3358 \emph on
3359 book
3360 \emph default
3361 , resp., partly modified, with the exception of the \SpecialChar LyX
3362  specific 
3363 \family sans
3364 List
3365 \family default
3366 -type, which is replaced by the new 
3367 \family sans
3368 Labeling
3369 \family default
3370 -type having the same functionality.
3371  Beside the 
3372 \family sans
3373 Labeling
3374 \family default
3375 -Type there is a number of new paragraph types added.
3376  They are 
3377 \emph on
3378 not
3379 \emph default
3380  part of 
3381 \emph on
3382 letter (koma-script)
3383 \emph default
3384 .
3385 \end_layout
3386
3387 \begin_layout Itemize
3388
3389 \family sans
3390 Addpart, Addchap
3391 \family default
3392
3393 \family sans
3394 Addsec
3395 \family default
3396 : are equivalents to 
3397 \family sans
3398 Part*, Chapter*
3399 \family default
3400  and 
3401 \family sans
3402 Section*
3403 \family default
3404 , resp., additionally inserting an entry in the table of contents.
3405  
3406 \family sans
3407 Addpart
3408 \family default
3409  and 
3410 \family sans
3411 Addchap
3412 \family default
3413  are not contained in 
3414 \emph on
3415 article (koma-script)
3416 \emph default
3417 .
3418 \end_layout
3419
3420 \begin_layout Itemize
3421
3422 \family sans
3423 Addchap*
3424 \family default
3425
3426 \family sans
3427 Addsec*
3428 \family default
3429 : behave exactly as 
3430 \family sans
3431 Addchap
3432 \family default
3433  and 
3434 \family sans
3435 Addsec
3436 \family default
3437 , resp., additionally clearing running heads.
3438  
3439 \family sans
3440 Addchap*
3441 \family default
3442  is not contained in 
3443 \emph on
3444 article (koma-script)
3445 \emph default
3446 .
3447 \begin_inset Foot
3448 status collapsed
3449
3450 \begin_layout Plain Layout
3451 There is also an 
3452 \family typewriter
3453
3454 \backslash
3455 addpart*
3456 \family default
3457  command in 
3458 \emph on
3459 book (koma-script)
3460 \emph default
3461  and in 
3462 \emph on
3463 report (koma-script)
3464 \emph default
3465 , but since this is identical to 
3466 \family sans
3467 Part*
3468 \family default
3469 , is has not been implemented in \SpecialChar LyX
3470 .
3471 \end_layout
3472
3473 \end_inset
3474
3475
3476 \end_layout
3477
3478 \begin_layout Itemize
3479
3480 \family sans
3481 Minisec
3482 \family default
3483 : generates a heading directly above the following paragraph in the standard
3484  character size without affecting the structure of the document.
3485 \end_layout
3486
3487 \begin_layout Itemize
3488
3489 \family sans
3490 Captionabove
3491 \family default
3492  and 
3493 \family sans
3494 Captionbelow
3495 \family default
3496  are special captions which respect the different space settings needed
3497  for captions placed above or below an element (if you follow strict typographic
3498  rules, you might want to place table captions always above the table).
3499  You can also use the class option 
3500 \family typewriter
3501 tablecaptionsabove
3502 \family default
3503 , which will switch 
3504 \family sans
3505 caption
3506 \family default
3507  to 
3508 \family sans
3509 captionabove
3510 \family default
3511  for tables and 
3512 \family sans
3513 captionbelow
3514 \family default
3515  for figures.
3516  You need at least Koma-Script version 2.8q to use this.
3517 \end_layout
3518
3519 \begin_layout Itemize
3520
3521 \family sans
3522 Dictum
3523 \family default
3524 : can be used to set a bonmot, e.
3525 \begin_inset space \thinspace{}
3526 \end_inset
3527
3528 g.
3529 \begin_inset space \space{}
3530 \end_inset
3531
3532 at the beginning of a chapter.
3533  If you use the optional argument (
3534 \family sans
3535 Insert\SpecialChar menuseparator
3536 Dictum
3537 \begin_inset space ~
3538 \end_inset
3539
3540 Author
3541 \family default
3542 ), you can insert the dictum's author there.
3543  Dictum and author are separated by a line.
3544  You need at least Koma-Script version 2.8q to use this.
3545  
3546 \family sans
3547 Dictum
3548 \family default
3549  is not contained in 
3550 \emph on
3551 article (koma-script)
3552 \emph default
3553 .
3554 \end_layout
3555
3556 \begin_layout Standard
3557 The following types, together with the standard types 
3558 \family sans
3559 Title
3560 \family default
3561
3562 \family sans
3563 Author
3564 \family default
3565 , and 
3566 \family sans
3567 Date
3568 \family default
3569 , form the title area of the document.
3570  They must be entered ahead of the first 
3571 \begin_inset Quotes eld
3572 \end_inset
3573
3574 ordinary
3575 \begin_inset Quotes erd
3576 \end_inset
3577
3578  paragraph.
3579 \begin_inset Foot
3580 status collapsed
3581
3582 \begin_layout Plain Layout
3583 The corresponding \SpecialChar LaTeX
3584  commands must appear before the 
3585 \family typewriter
3586
3587 \backslash
3588 maketitle
3589 \family default
3590  command.
3591 \end_layout
3592
3593 \end_inset
3594
3595  When such a type is used more than once, the latter usage overwrites the
3596  former one, that means, for every type only the latest usage is valid.
3597  The order of the different types however has, like 
3598 \family sans
3599 Title
3600 \family default
3601
3602 \family sans
3603 Author
3604 \family default
3605 , and 
3606 \family sans
3607 Date
3608 \family default
3609 , no effect on the appearance of the produced document.
3610 \end_layout
3611
3612 \begin_layout Itemize
3613
3614 \family sans
3615 Subject
3616 \family default
3617 : produces a centered paragraph above the ordinary title (
3618 \family sans
3619 Title
3620 \family default
3621
3622 \family sans
3623 Author
3624 \family default
3625
3626 \family sans
3627 Date
3628 \family default
3629 ) for the subject of the document.
3630 \end_layout
3631
3632 \begin_layout Itemize
3633
3634 \family sans
3635 Publishers
3636 \family default
3637 : produces a centered paragraph below the ordinary title (
3638 \family sans
3639 Title
3640 \family default
3641
3642 \family sans
3643 Author
3644 \family default
3645
3646 \family sans
3647 Date
3648 \family default
3649 ) for the publishers' name.
3650 \end_layout
3651
3652 \begin_layout Itemize
3653
3654 \family sans
3655 Dedication
3656 \family default
3657 : in 
3658 \emph on
3659 report (koma-script)
3660 \emph default
3661  and 
3662 \emph on
3663 book (koma-script)
3664 \emph default
3665  produces a centered paragraph on its own page behind the title page, or
3666  in 
3667 \emph on
3668 article (koma-script)
3669 \emph default
3670  produces a centered paragraph below the ordinary title (
3671 \family sans
3672 Title
3673 \family default
3674
3675 \family sans
3676 Author
3677 \family default
3678
3679 \family sans
3680 Date
3681 \family default
3682
3683 \family sans
3684 Publishers
3685 \family default
3686 ) for a dedication.
3687 \end_layout
3688
3689 \begin_layout Itemize
3690
3691 \family sans
3692 Titlehead
3693 \family default
3694 : produces a left aligned paragraph above the ordinary title (
3695 \family sans
3696 Title
3697 \family default
3698
3699 \family sans
3700 Author
3701 \family default
3702
3703 \family sans
3704 Date
3705 \family default
3706
3707 \family sans
3708 Subject
3709 \family default
3710 ) for a document`s head.
3711 \end_layout
3712
3713 \begin_layout Itemize
3714
3715 \family sans
3716 Uppertitleback
3717 \family default
3718 : produces in a double-sided print in 
3719 \emph on
3720 report (koma-script)
3721 \emph default
3722  and 
3723 \emph on
3724 book (koma-script)
3725 \emph default
3726  a left-aligned paragraph at the top of the title page`s back or has no
3727  effect in a single-sided print or in 
3728 \emph on
3729 article (koma-script)
3730 \emph default
3731 .
3732 \end_layout
3733
3734 \begin_layout Itemize
3735
3736 \family sans
3737 Lowertitleback
3738 \family default
3739 : produces in a double-sided print in 
3740 \emph on
3741 report (koma-script)
3742 \emph default
3743  and 
3744 \emph on
3745 book (koma-script)
3746 \emph default
3747  a left-aligned paragraph at the bottom of the title page`s back or has
3748  no effect in a single-sided print or in 
3749 \emph on
3750 article (koma-script)
3751 \emph default
3752 .
3753 \end_layout
3754
3755 \begin_layout Itemize
3756
3757 \family sans
3758 Extratitle
3759 \family default
3760 : produces a special 
3761 \begin_inset Quotes eld
3762 \end_inset
3763
3764 dirty
3765 \begin_inset Quotes erd
3766 \end_inset
3767
3768  page ahead of the actual document containing a paragraph without special
3769  formatting.
3770 \end_layout
3771
3772 \begin_layout Standard
3773 The layout files for the document classes 
3774 \emph on
3775 article (koma-script)
3776 \emph default
3777
3778 \emph on
3779 report (koma-script)
3780 \emph default
3781 , and 
3782 \emph on
3783 book (koma-script)
3784 \emph default
3785  do include the file 
3786 \family typewriter
3787 scrmacros.inc
3788 \family default
3789 .
3790  This is thought of as a place to define your own types.
3791  Copy scrmacros
3792 \family typewriter
3793 .inc
3794 \family default
3795  in your personal layout directory and edit the file!
3796 \end_layout
3797
3798 \begin_layout Subsubsection
3799 letter (koma-script)
3800 \end_layout
3801
3802 \begin_layout Description
3803 Note: This section discusses the obsolete 
3804 \family sans
3805 KOMA-Script-Letter (v.
3806 \begin_inset space ~
3807 \end_inset
3808
3809 1)
3810 \family default
3811 , which is not even included anymore in recent KOMA releases.
3812  Please refer to the next section for the current KOMA-Script-Letter class
3813  (v.
3814 \begin_inset space ~
3815 \end_inset
3816
3817 2)!
3818 \end_layout
3819
3820 \begin_layout Standard
3821 \noindent
3822 The document class 
3823 \emph on
3824 letter (koma-script)
3825 \emph default
3826  is implemented in the layout file 
3827 \family typewriter
3828 scrlettr.layout
3829 \family default
3830 .
3831  It contains all the paragraph types of the corresponding standard document
3832  class 
3833 \emph on
3834 letter
3835 \emph default
3836 , partly modified, with the exception of the \SpecialChar LyX
3837  specific types 
3838 \family sans
3839 \SpecialChar LyX
3840 -Code
3841 \family default
3842  and 
3843 \family sans
3844 Comment
3845 \family default
3846  and the 
3847 \family sans
3848 List
3849 \family default
3850  type, which is replaced by the new 
3851 \family sans
3852 Labeling
3853 \family default
3854  type.
3855  In addition, it contains, in contrast to the standard document class, the
3856  standard types 
3857 \family sans
3858 \SpecialChar LaTeX
3859
3860 \family default
3861
3862 \family sans
3863 Quotation
3864 \family default
3865
3866 \family sans
3867 Quote
3868 \family default
3869 , and 
3870 \family sans
3871 Verse
3872 \family default
3873 .
3874  Furthermore, there are a number of new letter specific types.
3875 \end_layout
3876
3877 \begin_layout Standard
3878 The appearance of the letter produced by this document class can be controlled
3879  by a number of \SpecialChar LaTeX
3880  commands, which you can put in the \SpecialChar LaTeX
3881  preamble.
3882 \begin_inset Foot
3883 status collapsed
3884
3885 \begin_layout Plain Layout
3886 For example, the standard appearance of the letter`s heading, consisting
3887  of name and address, is quite self-willed.
3888  An 
3889 \begin_inset Quotes eld
3890 \end_inset
3891
3892 ordinary
3893 \begin_inset Quotes erd
3894 \end_inset
3895
3896  heading is produced by the following \SpecialChar LaTeX
3897  commands in the preamble:
3898 \end_layout
3899
3900 \begin_layout LyX-Code
3901
3902 \backslash
3903 firsthead{
3904 \backslash
3905 parbox[b]{
3906 \backslash
3907 textwidth}
3908 \end_layout
3909
3910 \begin_layout LyX-Code
3911   {
3912 \backslash
3913 ignorespaces 
3914 \backslash
3915 fromname
3916 \backslash
3917
3918 \backslash
3919  
3920 \backslash
3921 ignorespaces 
3922 \backslash
3923 fromaddress}} 
3924 \end_layout
3925
3926 \begin_layout LyX-Code
3927
3928 \backslash
3929 nexthead{
3930 \backslash
3931 parbox[b]{
3932 \backslash
3933 textwidth}
3934 \end_layout
3935
3936 \begin_layout LyX-Code
3937   {
3938 \backslash
3939 ignorespaces 
3940 \backslash
3941 fromname 
3942 \backslash
3943 hfill 
3944 \backslash
3945 ignorespaces 
3946 \backslash
3947 pagename
3948 \backslash
3949  
3950 \backslash
3951 thepage}}
3952 \end_layout
3953
3954 \end_inset
3955
3956  A detailed German description of such \SpecialChar LaTeX
3957  commands can be found in the Koma-Script
3958  documentation 
3959 \emph on
3960 scrguide
3961 \emph default
3962 .
3963  With it, the letter's author can produce his personal letter layout.
3964 \end_layout
3965
3966 \begin_layout Standard
3967 The types 
3968 \family sans
3969 Letter
3970 \family default
3971  and 
3972 \family sans
3973 Opening
3974 \family default
3975  define the beginning of the letter and must be used in every letter.
3976  To emphasize them in the \SpecialChar LyX
3977  document class, they are marked with the letter
3978  
3979 \shape italic
3980 L
3981 \shape default
3982  or 
3983 \shape italic
3984 O
3985 \shape default
3986 , resp.
3987 \begin_inset space ~
3988 \end_inset
3989
3990 in the left margin.
3991  It is possible to write any number of letters in one file.
3992  An 
3993 \family sans
3994 Opening
3995 \family default
3996  type produces a new letter using the same addressee and a 
3997 \family sans
3998 Letter
3999 \family default
4000  type produces a new addressee.
4001  The types 
4002 \family sans
4003 Closing
4004 \family default
4005
4006 \family sans
4007 PS
4008 \family default
4009
4010 \family sans
4011 CC
4012 \family default
4013 , and 
4014 \family sans
4015 Encl
4016 \family default
4017  are ordinary paragraph types and can also be used several times in one
4018  and the same letter.
4019 \end_layout
4020
4021 \begin_layout Itemize
4022
4023 \family sans
4024 Letter
4025 \family default
4026 : produces a paragraph for the addressee and implicitly defines the beginning
4027  of the letter.
4028 \end_layout
4029
4030 \begin_layout Itemize
4031
4032 \family sans
4033 Opening
4034 \family default
4035 : produces a paragraph for the form of address and implicitly produces a
4036  new letter.
4037 \end_layout
4038
4039 \begin_layout Itemize
4040
4041 \family sans
4042 Closing
4043 \family default
4044 : produces a paragraph for a close.
4045 \end_layout
4046
4047 \begin_layout Itemize
4048
4049 \family sans
4050 PS
4051 \family default
4052 : produces a paragraph for a postscript.
4053 \end_layout
4054
4055 \begin_layout Itemize
4056
4057 \family sans
4058 CC
4059 \family default
4060 : produces a paragraph for a distribution list.
4061 \end_layout
4062
4063 \begin_layout Itemize
4064
4065 \family sans
4066 Encl
4067 \family default
4068 : produces a paragraph for enclosures.
4069 \end_layout
4070
4071 \begin_layout Standard
4072 The types 
4073 \family sans
4074 Name
4075 \family default
4076
4077 \family sans
4078 Signature
4079 \family default
4080
4081 \family sans
4082 Address
4083 \family default
4084
4085 \family sans
4086 Telephone
4087 \family default
4088
4089 \family sans
4090 Place
4091 \family default
4092
4093 \family sans
4094 Backaddress
4095 \family default
4096
4097 \family sans
4098 Specialmail
4099 \family default
4100
4101 \family sans
4102 Location
4103 \family default
4104
4105 \family sans
4106 Title
4107 \family default
4108 , and 
4109 \family sans
4110 Subject
4111 \family default
4112  are input types provided with a label to enter information, which will
4113  be processed by the document class.
4114 \begin_inset Foot
4115 status collapsed
4116
4117 \begin_layout Plain Layout
4118 It could be seen as a matter of inconsequence, that the types 
4119 \family sans
4120 Letter
4121 \family default
4122  and 
4123 \family sans
4124 Opening
4125 \family default
4126  described above are not such input types as well.
4127  Because of the special meaning of those types, however, I have implemented
4128  them as ordinary paragraph types with a one letter mark in the left margin.
4129  Moreover, it would affect my feeling of symmetry, if the 
4130 \family sans
4131 Opening
4132 \family default
4133  type and the 
4134 \family sans
4135 Closing
4136 \family default
4137  type had such a serious different appearance.
4138 \end_layout
4139
4140 \end_inset
4141
4142  The types must be used ahead of the corresponding 
4143 \family sans
4144 Opening
4145 \family default
4146  type.
4147 \end_layout
4148
4149 \begin_layout Standard
4150 An implementation of these types in a WYSIWYG fashion does not seem to make
4151  sense, because the real appearance of the produced letter does not only
4152  depend on the usage of the particular type, but also on other factors.
4153  For example, a signature entered in the 
4154 \family sans
4155 Signature
4156 \family default
4157  type will in the standard behavior appear in the produced letter only,
4158  when in the same letter also a 
4159 \family sans
4160 Closing
4161 \family default
4162  type is used.
4163  The entered value of the 
4164 \family sans
4165 Telephone
4166 \family default
4167  type will in the standard behavior not appear in the produced letter at
4168  all.
4169  The possibility to design the letter`s heading freely is already indicated
4170  in a footnote above.
4171 \end_layout
4172
4173 \begin_layout Standard
4174 The input types can also be used as empty paragraphs.
4175  This makes sense e.
4176 \begin_inset space \thinspace{}
4177 \end_inset
4178
4179 g.
4180 \begin_inset space \space{}
4181 \end_inset
4182
4183 for the 
4184 \family sans
4185 Signature
4186 \family default
4187  type.
4188  If the 
4189 \family sans
4190 Signature
4191 \family default
4192  type is not used at all, in the standard behavior the value of the 
4193 \family sans
4194 Name
4195 \family default
4196  type is used as signature, whereas if an empty 
4197 \family sans
4198 Signature
4199 \family default
4200  type is used, no signature value is defined.
4201 \end_layout
4202
4203 \begin_layout Standard
4204 By using the input types it is possible to write a letter template, containing
4205  filled input types with your personal dates (name, address, etc.) and empty
4206  input types for other dates you want to enter.
4207 \end_layout
4208
4209 \begin_layout Itemize
4210
4211 \family sans
4212 Name
4213 \family default
4214 : sender's name, in the standard behavior appears as a centered paragraph
4215  in small caps in the letter`s heading.
4216 \end_layout
4217
4218 \begin_layout Itemize
4219
4220 \family sans
4221 Signature
4222 \family default
4223 : sender's signature, in the standard behavior appears below the 
4224 \family sans
4225 Closing
4226 \family default
4227  type.
4228  If no 
4229 \family sans
4230 Signature
4231 \family default
4232  type is used, the value of the 
4233 \family sans
4234 Name
4235 \family default
4236  type appears instead.
4237 \end_layout
4238
4239 \begin_layout Itemize
4240
4241 \family sans
4242 Address
4243 \family default
4244 : sender's address, in the standard behavior appears in a centered paragraph
4245  in the letter`s heading below the sender's name.
4246 \end_layout
4247
4248 \begin_layout Itemize
4249
4250 \family sans
4251 Telephone
4252 \family default
4253 : sender's telephone number, in the standard behavior only sets the \SpecialChar LaTeX
4254  variable
4255  
4256 \family typewriter
4257
4258 \backslash
4259 telephonenum
4260 \family default
4261 .
4262 \end_layout
4263
4264 \begin_layout Itemize
4265
4266 \family sans
4267 Place
4268 \family default
4269 : place of the letter`s making.
4270 \end_layout
4271
4272 \begin_layout Itemize
4273
4274 \family sans
4275 Date
4276 \family default
4277 : date of the letter`s making.
4278  
4279 \family sans
4280 Place
4281 \family default
4282  and 
4283 \family sans
4284 Date
4285 \family default
4286 , in the standard behavior, produce the place and the date in a right-aligned
4287  line below the addressee's field.
4288  If an empty 
4289 \family sans
4290 Date
4291 \family default
4292  type is used, neither place nor date appear, independent of the value of
4293  the 
4294 \family sans
4295 Place
4296 \family default
4297  type.
4298  If no 
4299 \family sans
4300 Date
4301 \family default
4302  type is used, the date of the letter `s production is used.
4303 \end_layout
4304
4305 \begin_layout Itemize
4306
4307 \family sans
4308 Backaddress
4309 \family default
4310 : sender`s back address, in the standard behavior appears above the addressee's
4311  field in a small sans serif font.
4312 \end_layout
4313
4314 \begin_layout Itemize
4315
4316 \family sans
4317 Specialmail
4318 \family default
4319 : special mail information, in the standard behavior appears underlined
4320  above the addressee's field below the back address.
4321 \end_layout
4322
4323 \begin_layout Itemize
4324
4325 \family sans
4326 Location
4327 \family default
4328 : additional information, in the standard behavior appears on right side
4329  below the addressee`s field.
4330 \end_layout
4331
4332 \begin_layout Itemize
4333
4334 \family sans
4335 Title
4336 \family default
4337 : the letter's title, in the standard behavior appears in a big, bold, sans
4338  serif font above the subject.
4339 \end_layout
4340
4341 \begin_layout Itemize
4342
4343 \family sans
4344 Subject
4345 \family default
4346 : the letter's subject, in the standard behavior appears in a bold font
4347  above the 
4348 \family sans
4349 Opening
4350 \family default
4351  paragraph.
4352 \end_layout
4353
4354 \begin_layout Standard
4355 The types 
4356 \family sans
4357 Yourref
4358 \family default
4359
4360 \family sans
4361 Yourmail
4362 \family default
4363
4364 \family sans
4365 Myref
4366 \family default
4367
4368 \family sans
4369 Customer
4370 \family default
4371 , and 
4372 \family sans
4373 Invoice
4374 \family default
4375  produce a business letter like line above the 
4376 \family sans
4377 Title
4378 \family default
4379  line containing the fields 
4380 \begin_inset Quotes eld
4381 \end_inset
4382
4383 Your ref.
4384 \begin_inset Quotes erd
4385 \end_inset
4386
4387
4388 \begin_inset Quotes eld
4389 \end_inset
4390
4391 Your letter of
4392 \begin_inset Quotes erd
4393 \end_inset
4394
4395
4396 \begin_inset Quotes eld
4397 \end_inset
4398
4399 Our ref.
4400 \begin_inset Quotes erd
4401 \end_inset
4402
4403
4404 \begin_inset Quotes eld
4405 \end_inset
4406
4407 Customer no.
4408 \begin_inset Quotes erd
4409 \end_inset
4410
4411
4412 \begin_inset Quotes eld
4413 \end_inset
4414
4415 Invoice no.
4416 \begin_inset Quotes erd
4417 \end_inset
4418
4419 , and 
4420 \begin_inset Quotes eld
4421 \end_inset
4422
4423 Date
4424 \begin_inset Quotes erd
4425 \end_inset
4426
4427 .
4428  For the date field, the value of the 
4429 \family sans
4430 Date
4431 \family default
4432  type is used.
4433  If one of these 
4434 \begin_inset Quotes eld
4435 \end_inset
4436
4437 business letter types
4438 \begin_inset Quotes erd
4439 \end_inset
4440
4441  is used, the value of the 
4442 \family sans
4443 Place
4444 \family default
4445  type however does not appear, but only the \SpecialChar LaTeX
4446  variable 
4447 \family typewriter
4448
4449 \backslash
4450 fromplace
4451 \family default
4452  is set.
4453  The ordinary output of place and date in a right-aligned line below the
4454  addressee`s field is suppressed.
4455  The types are implemented as input types provided with a label and must
4456  be used ahead of the corresponding 
4457 \family sans
4458 Opening
4459 \family default
4460  type.
4461 \end_layout
4462
4463 \begin_layout Itemize
4464
4465 \family sans
4466 Yourref
4467 \family default
4468 : Your ref.
4469 \end_layout
4470
4471 \begin_layout Itemize
4472
4473 \family sans
4474 Yourmail
4475 \family default
4476 : Your letter of.
4477 \end_layout
4478
4479 \begin_layout Itemize
4480
4481 \family sans
4482 Myref
4483 \family default
4484 : Our ref.
4485 \end_layout
4486
4487 \begin_layout Itemize
4488
4489 \family sans
4490 Customer
4491 \family default
4492 : Customer no.
4493 \end_layout
4494
4495 \begin_layout Itemize
4496
4497 \family sans
4498 Invoice
4499 \family default
4500 : Invoice no.
4501 \end_layout
4502
4503 \begin_layout Subsubsection
4504 The new letter class: letter (koma-script v.2)
4505 \end_layout
4506
4507 \begin_layout Standard
4508 by 
4509 \noun on
4510 Jürgen Spitzmüller
4511 \end_layout
4512
4513 \begin_layout Standard
4514 \begin_inset VSpace medskip
4515 \end_inset
4516
4517
4518 \end_layout
4519
4520 \begin_layout Standard
4521 \noindent
4522 Koma-Script version 2.8 has introduced a new letter class 
4523 \family typewriter
4524 scrlttr2
4525 \family default
4526  which supersedes the now unsupported 
4527 \family typewriter
4528 scrlettr
4529 \family default
4530 .
4531  It has — on the \SpecialChar LaTeX
4532  side — a completely new interface and is not compatible
4533  with the old class.
4534  Therefore, \SpecialChar LyX
4535  supports both, though it is recommended you use the new class.
4536 \end_layout
4537
4538 \begin_layout Standard
4539 This class covers the same functionality as 
4540 \emph on
4541 letter (koma-script),
4542 \emph default
4543  and a few more.
4544  The basic items are 
4545 \family sans
4546 Address
4547 \family default
4548  (receiver's address, same as 
4549 \family sans
4550 Letter
4551 \family default
4552  in the old layout), 
4553 \family sans
4554 Opening
4555 \family default
4556 , and 
4557 \family sans
4558 Closing
4559 \family default
4560 .
4561  
4562 \family sans
4563 NextAddress
4564 \family default
4565  will start a new letter (i.
4566 \begin_inset space \thinspace{}
4567 \end_inset
4568
4569 e.
4570 \begin_inset space \space{}
4571 \end_inset
4572
4573 you can write several letters per document).
4574  New elements are sender's 
4575 \family sans
4576 E-Mail
4577 \family default
4578
4579 \family sans
4580 URL
4581 \family default
4582
4583 \family sans
4584 Fax
4585 \family default
4586
4587 \family sans
4588 Bank
4589 \family default
4590  and the possibility to use a 
4591 \family sans
4592 Logo
4593 \family default
4594  (via 
4595 \family sans
4596 Insert\SpecialChar menuseparator
4597 Graphics
4598 \family default
4599 ) in the header.
4600 \end_layout
4601
4602 \begin_layout Standard
4603 The biggest improvement is, though, that the letter's layout is configurable
4604  to meet almost any needs.
4605  This can be done via the preamble or with a special style file (Letter
4606  Class Option, extension 
4607 \family typewriter
4608 *.lco
4609 \family default
4610 ), that will be read in as a class option.
4611 \begin_inset Foot
4612 status collapsed
4613
4614 \begin_layout Plain Layout
4615 The KOMA package comes with some default 
4616 \family typewriter
4617 *.lco
4618 \family default
4619  files.
4620  There is, for instance, a 
4621 \family typewriter
4622 DIN.lco
4623 \family default
4624  file that follows german typesetting rules, or a 
4625 \family typewriter
4626 KOMAold.lco
4627 \family default
4628  that provides the default layout of the old 
4629 \family typewriter
4630 scrlettr
4631 \family default
4632  class.
4633  The latter can be loaded with the class option 
4634 \family typewriter
4635 KOMAold
4636 \family default
4637 , inserted via the 
4638 \family sans
4639 Layout\SpecialChar menuseparator
4640 Document\SpecialChar menuseparator
4641 Extra Options
4642 \family default
4643  field.
4644 \end_layout
4645
4646 \end_inset
4647
4648  Have a look at the
4649 \change_deleted 564990737 1671617922
4650  
4651 \emph on
4652 koma-letter2
4653 \change_unchanged
4654
4655 \emph default
4656  template 
4657 \change_deleted 564990737 1671617938
4658 that is included in \SpecialChar LyX
4659  for examples
4660 \change_inserted 564990737 1671617997
4661  in 
4662 \family sans
4663 \bar under
4664 \lang american
4665 F
4666 \bar default
4667 ile\SpecialChar menuseparator
4668 New
4669 \begin_inset space ~
4670 \end_inset
4671
4672 fro
4673 \bar under
4674 m
4675 \bar default
4676
4677 \begin_inset space ~
4678 \end_inset
4679
4680 Template\SpecialChar menuseparator
4681 Letters
4682 \lang english
4683 \SpecialChar menuseparator
4684 KOMA-Script Letter (V.2)
4685 \change_unchanged
4686
4687 \family default
4688 .
4689  A detailed description is to be found in the Koma-Script documentation
4690  (
4691 \emph on
4692 scrguide
4693 \emph default
4694 ).
4695 \end_layout
4696
4697 \begin_layout Subsubsection
4698 Problems
4699 \end_layout
4700
4701 \begin_layout Standard
4702 Visualizing the Koma-Script document classes in \SpecialChar LyX
4703 , the \SpecialChar LyX
4704  internals cause some
4705  problems.
4706 \end_layout
4707
4708 \begin_layout Itemize
4709 The chapter number of a 
4710 \family sans
4711 Chapter
4712 \family default
4713  type appears on a line of its own above the chapter heading instead of
4714  appearing in the same line ahead of it.
4715  The cause for that is the \SpecialChar LyX
4716  internal behavior for the labeltype 
4717 \family sans
4718 Counter_Chapter
4719 \family default
4720  in the layout file.
4721 \end_layout
4722
4723 \begin_layout Itemize
4724 The headings of the types 
4725 \family sans
4726 Addchap
4727 \family default
4728  and 
4729 \family sans
4730 Addsec
4731 \family default
4732  are only put in the 
4733 \begin_inset Quotes eld
4734 \end_inset
4735
4736 true
4737 \begin_inset Quotes erd
4738 \end_inset
4739
4740  \SpecialChar LaTeX
4741  table of contents, but not in the \SpecialChar LyX
4742  table of contents (
4743 \family sans
4744 Document\SpecialChar menuseparator
4745 Table
4746 \begin_inset space ~
4747 \end_inset
4748
4749 of
4750 \begin_inset space ~
4751 \end_inset
4752
4753 Contents
4754 \family default
4755 ).
4756 \end_layout
4757
4758 \begin_layout Itemize
4759 The paragraphs in a 
4760 \emph on
4761 letter
4762 \emph default
4763  document class appear in a skip separation mode, not indented.
4764  This is the standard behavior, no special \SpecialChar LaTeX
4765  commands are needed for that.
4766  But in the 
4767 \family sans
4768 Document\SpecialChar menuseparator
4769 Settings
4770 \family default
4771  dialog the corresponding radio button indicates 
4772 \family sans
4773 Indent
4774 \family default
4775 .
4776  A 
4777 \family sans
4778 Skip
4779 \family default
4780  value always has the effect that extra \SpecialChar LaTeX
4781  commands are inserted in the document
4782  to produce the gap, which is not what is wanted in this case.
4783 \end_layout
4784
4785 \begin_layout Subsection
4786
4787 \change_inserted 564990737 1670924924
4788 Polish M.
4789 \begin_inset space \thinspace{}
4790 \end_inset
4791
4792 W.
4793 \begin_inset space \space{}
4794 \end_inset
4795
4796 collection
4797 \change_deleted 564990737 1670924933
4798 Article (mwart), book (mwbk) and report (mwrep)
4799 \begin_inset Argument status
4800 status collapsed
4801
4802 \begin_layout Plain Layout
4803 The 
4804 \family typewriter
4805 mw
4806 \family default
4807  Classes
4808 \end_layout
4809
4810 \end_inset
4811
4812
4813 \change_unchanged
4814
4815 \end_layout
4816
4817 \begin_layout Standard
4818 by 
4819 \noun on
4820 Tomasz Luczak
4821 \end_layout
4822
4823 \begin_layout Standard
4824 The \SpecialChar LyX
4825  document classes 
4826 \emph on
4827 article (mwart)
4828 \emph default
4829
4830 \emph on
4831 report (mwrep)
4832 \emph default
4833  and 
4834 \emph on
4835 book
4836 \emph default
4837  
4838 \emph on
4839 (mwbk)
4840 \emph default
4841  correspond to the \SpecialChar LaTeX
4842  document classes 
4843 \family typewriter
4844 mwart.cls
4845 \family default
4846
4847 \family typewriter
4848 mwrep.cls
4849 \family default
4850  and 
4851 \family typewriter
4852 mwbk.cls
4853 \family default
4854 , resp.
4855  They are replacements for the standard document classes 
4856 \family typewriter
4857 article.cls
4858 \family default
4859
4860 \family typewriter
4861 report.cls
4862 \family default
4863  and 
4864 \family typewriter
4865 book.cls
4866 \family default
4867 , resp., and fit better to Polish typography conventions in a number of points.
4868  
4869 \end_layout
4870
4871 \begin_layout Standard
4872 Basic differences:
4873 \end_layout
4874
4875 \begin_layout Itemize
4876 Unnumbered titles (with star, e.
4877 \begin_inset space \thinspace{}
4878 \end_inset
4879
4880 g.
4881 \begin_inset space \space{}
4882 \end_inset
4883
4884
4885 \family sans
4886 Section*
4887 \family default
4888 ) are added into table of contents,
4889 \end_layout
4890
4891 \begin_layout Itemize
4892 Additional page styles:
4893 \end_layout
4894
4895 \begin_deeper
4896 \begin_layout Description
4897 uheadings header with separated lines,
4898 \end_layout
4899
4900 \begin_layout Description
4901 myheadings custom header, contents headers via commands: 
4902 \family typewriter
4903
4904 \backslash
4905 markright
4906 \family default
4907  and 
4908 \family typewriter
4909
4910 \backslash
4911 markboth
4912 \family default
4913 ,
4914 \end_layout
4915
4916 \begin_layout Description
4917 myuheadings custom header with separated lines,
4918 \end_layout
4919
4920 \begin_layout Description
4921 outer page number is placed on outer side of page
4922 \end_layout
4923
4924 \end_deeper
4925 \begin_layout Itemize
4926 Options 
4927 \end_layout
4928
4929 \begin_deeper
4930 \begin_layout Description
4931 rmheadings serif titles — default,
4932 \end_layout
4933
4934 \begin_layout Description
4935 sfheadings sansserif titles,
4936 \end_layout
4937
4938 \begin_layout Description
4939 authortitle on title page first placed is author next title — default,
4940 \end_layout
4941
4942 \begin_layout Description
4943 titleauthor on title page first placed is title next author,
4944 \end_layout
4945
4946 \begin_layout Description
4947 withmarginpar reserve place on page for margins.
4948 \end_layout
4949
4950 \end_deeper
4951 \begin_layout Section
4952
4953 \change_inserted 564990737 1670439534
4954 Articles
4955 \end_layout
4956
4957 \begin_layout Standard
4958
4959 \change_inserted 564990737 1670794710
4960 See also the document classes in the Collections (section
4961 \begin_inset space ~
4962 \end_inset
4963
4964
4965 \begin_inset CommandInset ref
4966 LatexCommand ref
4967 reference "sec:Collections"
4968
4969 \end_inset
4970
4971 ).
4972 \end_layout
4973
4974 \begin_layout Subsection
4975
4976 \change_inserted 564990737 1670794716
4977
4978 \lang american
4979 A&A Paper
4980 \end_layout
4981
4982 \begin_layout Standard
4983
4984 \change_inserted 564990737 1670794716
4985
4986 \lang american
4987 Original by 
4988 \noun on
4989 Peter Sütterlin
4990 \noun default
4991 ; updated by the \SpecialChar LyX
4992  Team
4993 \end_layout
4994
4995 \begin_layout Subsubsection
4996
4997 \change_inserted 564990737 1670794716
4998
4999 \lang american
5000 Introduction
5001 \end_layout
5002
5003 \begin_layout Standard
5004
5005 \change_inserted 564990737 1670794716
5006
5007 \lang american
5008 This section describes how \SpecialChar LyX
5009  can be used to write articles for submission
5010  to the scientific journal 
5011 \emph on
5012 Astronomy and Astrophysics
5013 \emph default
5014  (
5015 \begin_inset CommandInset href
5016 LatexCommand href
5017 name "aa-package"
5018 target "http://ftp.edpsciences.org/pub/aa/aa-package.zip"
5019 literal "false"
5020
5021 \end_inset
5022
5023 ) using Version 9.1 of the document class 
5024 \family typewriter
5025 aa.cls
5026 \family default
5027 ; information about it is available at 
5028 \begin_inset Flex URL
5029 status collapsed
5030
5031 \begin_layout Plain Layout
5032
5033 \change_inserted 564990737 1670794716
5034
5035 https://www.aanda.org/for-authors/latex-issues/texnical-background-information
5036 \change_unchanged
5037
5038 \end_layout
5039
5040 \end_inset
5041
5042 .
5043 \end_layout
5044
5045 \begin_layout Standard
5046
5047 \change_inserted 564990737 1670794716
5048
5049 \lang american
5050 A manual comes together with the package and should be consulted before
5051  installing this document class as described in the 
5052 \emph on
5053 Installing New Document Classe
5054 \emph default
5055 s section of the 
5056 \emph on
5057 Customization
5058 \emph default
5059  manual.
5060  
5061 \end_layout
5062
5063 \begin_layout Standard
5064
5065 \change_inserted 564990737 1670794716
5066
5067 \lang american
5068 \begin_inset Note Greyedout
5069 status open
5070
5071 \begin_layout Plain Layout
5072
5073 \change_inserted 564990737 1670794716
5074
5075 \lang american
5076 Please note that the publisher of the journal was changed from Springer
5077  to EDP Sciences starting January 1, 2001.
5078  That change also involved some slight changes to the style files, namely
5079  the removal of the thesaurus command.
5080  If you have an older version installed, please upgrade.
5081  For information about compatibility with the old (version 4) layout, please
5082  refer to the comments in 
5083 \family typewriter
5084 \SpecialChar LyX
5085 Dir/layouts/aapaper.layout
5086 \family default
5087 .
5088 \end_layout
5089
5090 \end_inset
5091
5092
5093 \end_layout
5094
5095 \begin_layout Subsubsection
5096
5097 \change_inserted 564990737 1670794716
5098
5099 \lang american
5100 Getting started
5101 \end_layout
5102
5103 \begin_layout Standard
5104
5105 \change_inserted 564990737 1671617129
5106
5107 \lang american
5108 It is recommended you start from the template in the menu 
5109 \family sans
5110 \bar under
5111 F
5112 \bar default
5113 ile\SpecialChar menuseparator
5114 New
5115 \begin_inset space ~
5116 \end_inset
5117
5118 fro
5119 \bar under
5120 m
5121 \bar default
5122
5123 \begin_inset space ~
5124 \end_inset
5125
5126 Template
5127 \lang english
5128 \SpecialChar menuseparator
5129 Articles\SpecialChar menuseparator
5130 Astronomy & Astrophysics
5131 \family default
5132 \lang american
5133 .
5134  If you are not using the template, note the following settings:
5135 \end_layout
5136
5137 \begin_layout Itemize
5138
5139 \change_inserted 564990737 1670794716
5140
5141 \lang american
5142 Select 
5143 \family sans
5144 article (A&A)
5145 \family default
5146  in the 
5147 \family sans
5148 \bar under
5149 D
5150 \bar default
5151 ocument\SpecialChar menuseparator
5152
5153 \bar under
5154 S
5155 \bar default
5156 ettings\SpecialChar menuseparator
5157 Document
5158 \begin_inset space ~
5159 \end_inset
5160
5161 Class
5162 \family default
5163  dialog (OK, that one was obvious).
5164 \end_layout
5165
5166 \begin_layout Itemize
5167
5168 \change_inserted 564990737 1670794716
5169
5170 \lang american
5171 Don't change the 
5172 \family sans
5173 Headings
5174 \begin_inset space ~
5175 \end_inset
5176
5177
5178 \bar under
5179 s
5180 \bar default
5181 tyle
5182 \family default
5183  in the 
5184 \family sans
5185 Page
5186 \begin_inset space ~
5187 \end_inset
5188
5189 Layout
5190 \family default
5191  dialog: leave it set to 
5192 \family sans
5193 Default
5194 \family default
5195 .
5196  The whole layout is done by the macros, you shouldn't change anything.
5197 \end_layout
5198
5199 \begin_layout Subsubsection
5200
5201 \change_inserted 564990737 1670794716
5202
5203 \lang american
5204 The header block
5205 \end_layout
5206
5207 \begin_layout Standard
5208
5209 \change_inserted 564990737 1670794716
5210
5211 \lang american
5212 First thing to enter is the header information.
5213  It consists of five entries, of which one is optional.
5214  They are
5215 \end_layout
5216
5217 \begin_layout Itemize
5218
5219 \change_inserted 564990737 1670794716
5220
5221 \family sans
5222 \lang american
5223 Title
5224 \family default
5225 : [required] 
5226 \end_layout
5227
5228 \begin_layout Itemize
5229
5230 \change_inserted 564990737 1670794716
5231
5232 \family sans
5233 \lang american
5234 Subtitle
5235 \family default
5236 : [optional] 
5237 \end_layout
5238
5239 \begin_layout Itemize
5240
5241 \change_inserted 564990737 1670794716
5242
5243 \family sans
5244 \lang american
5245 Author
5246 \family default
5247 : [required]
5248 \end_layout
5249
5250 \begin_layout Itemize
5251
5252 \change_inserted 564990737 1670794716
5253
5254 \family typewriter
5255 \lang american
5256 Institute
5257 \family default
5258 : [required]
5259 \end_layout
5260
5261 \begin_layout Itemize
5262
5263 \change_inserted 564990737 1670794716
5264
5265 \family sans
5266 \lang american
5267 Date
5268 \family default
5269 : [required].
5270  Suggested format is 
5271 \family typewriter
5272 Received: <date>; Accepted <date> 
5273 \end_layout
5274
5275 \begin_layout Standard
5276
5277 \change_inserted 564990737 1670794716
5278
5279 \lang american
5280 Although the order of the single header entries doesn't matter it is advised
5281  to keep the above sequence, just to get the best optics and meets the layout
5282  of the real document.
5283 \end_layout
5284
5285 \begin_layout Standard
5286
5287 \change_inserted 564990737 1670794716
5288
5289 \lang american
5290 If you want to place footnotes in the header block, e.
5291 \begin_inset space \thinspace{}
5292 \end_inset
5293
5294 g.
5295 \begin_inset space \space{}
5296 \end_inset
5297
5298 to state your present address, just use the standard footnote via the menu
5299  
5300 \family sans
5301 \bar under
5302 I
5303 \bar default
5304 nsert\SpecialChar menuseparator
5305
5306 \bar under
5307 F
5308 \bar default
5309 ootnote.
5310
5311 \family default
5312  \SpecialChar LyX
5313  will automagically use the term 
5314 \family typewriter
5315
5316 \backslash
5317 thanks{}
5318 \family default
5319  in that case.
5320 \end_layout
5321
5322 \begin_layout Standard
5323
5324 \change_inserted 564990737 1670794716
5325
5326 \lang american
5327 In addition to these topics, the macros use three additional \SpecialChar LaTeX
5328  commands that
5329  have no counterpart in \SpecialChar LyX
5330 :
5331 \end_layout
5332
5333 \begin_layout Itemize
5334
5335 \change_inserted 564990737 1670794716
5336
5337 \family typewriter
5338 \lang american
5339
5340 \backslash
5341 and
5342 \family default
5343  to separate different names for more than one author and institute, respectivel
5344 y.
5345 \end_layout
5346
5347 \begin_layout Itemize
5348
5349 \change_inserted 564990737 1670794716
5350
5351 \family typewriter
5352 \lang american
5353
5354 \backslash
5355 inst{<nr>}
5356 \family default
5357  to mark corresponding author/institute pairs.
5358  The institutes are numbered sequentially as they appear in the 
5359 \family sans
5360 Institute
5361 \family default
5362  field, so you have to put a marker to each author.
5363 \end_layout
5364
5365 \begin_layout Itemize
5366
5367 \change_inserted 564990737 1670794716
5368
5369 \family typewriter
5370 \lang american
5371
5372 \backslash
5373 email{address}
5374 \family default
5375  to supply an email address for fast contact.
5376 \end_layout
5377
5378 \begin_layout Standard
5379
5380 \change_inserted 564990737 1671642374
5381
5382 \lang american
5383 In all cases, the appropriate command has to be entered as \SpecialChar TeX
5384  code in \SpecialChar LyX
5385 .
5386  See the examples in the template and in 
5387 \family sans
5388 \lang british
5389 File\SpecialChar menuseparator
5390 Open Example\SpecialChar menuseparator
5391 Articles\SpecialChar menuseparator
5392 Astronomy & Astrophysics
5393 \family default
5394 \lang american
5395 .
5396 \change_unchanged
5397
5398 \end_layout
5399
5400 \begin_layout Subsubsection
5401
5402 \change_inserted 564990737 1670794716
5403
5404 \lang american
5405 The abstract
5406 \end_layout
5407
5408 \begin_layout Standard
5409
5410 \change_inserted 564990737 1670794716
5411
5412 \lang american
5413 The abstract should immediately follow the header block and must contain
5414  five tokens: 
5415 \family typewriter
5416
5417 \backslash
5418 abstract{}{}{}{}{}
5419 \family default
5420  
5421 \end_layout
5422
5423 \begin_layout Enumerate
5424
5425 \change_inserted 564990737 1670794716
5426
5427 \family typewriter
5428 \lang american
5429 context heading
5430 \family default
5431  (optional) {} leave it empty if necessary 
5432 \end_layout
5433
5434 \begin_layout Enumerate
5435
5436 \change_inserted 564990737 1670794716
5437
5438 \family typewriter
5439 \lang american
5440 aims heading
5441 \family default
5442  (mandatory) {} 
5443 \end_layout
5444
5445 \begin_layout Enumerate
5446
5447 \change_inserted 564990737 1670794716
5448
5449 \family typewriter
5450 \lang american
5451 methods heading
5452 \family default
5453  (mandatory) {} 
5454 \end_layout
5455
5456 \begin_layout Enumerate
5457
5458 \change_inserted 564990737 1670794716
5459
5460 \family typewriter
5461 \lang american
5462 results heading
5463 \family default
5464  (mandatory) {} 
5465 \end_layout
5466
5467 \begin_layout Enumerate
5468
5469 \change_inserted 564990737 1670794716
5470
5471 \family typewriter
5472 \lang american
5473 conclusions heading
5474 \family default
5475  (optional) {} leave it empty if necessary 
5476 \end_layout
5477
5478 \begin_layout Standard
5479
5480 \change_inserted 564990737 1670794716
5481
5482 \lang american
5483 (NB.
5484  This structure not shown in 
5485 \emph on
5486 aa_sample.lyx.
5487 \emph default
5488 )
5489 \end_layout
5490
5491 \begin_layout Subsubsection
5492
5493 \change_inserted 564990737 1670794716
5494
5495 \lang american
5496 Supported environments
5497 \end_layout
5498
5499 \begin_layout Standard
5500
5501 \change_inserted 564990737 1670794716
5502
5503 \lang american
5504 The A&A paper layout supports the following environments for structuring
5505  your text:
5506 \end_layout
5507
5508 \begin_layout Itemize
5509
5510 \change_inserted 564990737 1670794716
5511
5512 \family sans
5513 \lang american
5514 Standard
5515 \end_layout
5516
5517 \begin_layout Itemize
5518
5519 \change_inserted 564990737 1670794716
5520
5521 \family sans
5522 \lang american
5523 Section
5524 \end_layout
5525
5526 \begin_layout Itemize
5527
5528 \change_inserted 564990737 1670794716
5529
5530 \family sans
5531 \lang american
5532 Subsection
5533 \end_layout
5534
5535 \begin_layout Itemize
5536
5537 \change_inserted 564990737 1670794716
5538
5539 \family sans
5540 \lang american
5541 Subsubsection
5542 \end_layout
5543
5544 \begin_layout Itemize
5545
5546 \change_inserted 564990737 1670794716
5547
5548 \family sans
5549 \lang american
5550 Itemize
5551 \end_layout
5552
5553 \begin_layout Itemize
5554
5555 \change_inserted 564990737 1670794716
5556
5557 \family sans
5558 \lang american
5559 Enumerate
5560 \end_layout
5561
5562 \begin_layout Itemize
5563
5564 \change_inserted 564990737 1670794716
5565
5566 \family sans
5567 \lang american
5568 Description
5569 \end_layout
5570
5571 \begin_layout Itemize
5572
5573 \change_inserted 564990737 1670794716
5574
5575 \family sans
5576 \lang american
5577 Caption
5578 \end_layout
5579
5580 \begin_layout Itemize
5581
5582 \change_inserted 564990737 1670794716
5583
5584 \family sans
5585 \lang american
5586 Abstract
5587 \end_layout
5588
5589 \begin_layout Itemize
5590
5591 \change_inserted 564990737 1670794716
5592
5593 \family sans
5594 \lang american
5595 Acknowledgment
5596 \end_layout
5597
5598 \begin_layout Itemize
5599
5600 \change_inserted 564990737 1670794716
5601
5602 \family sans
5603 \lang american
5604 Bibliography
5605 \end_layout
5606
5607 \begin_layout Itemize
5608
5609 \change_inserted 564990737 1670794716
5610
5611 \family sans
5612 \lang american
5613 \SpecialChar LaTeX
5614
5615 \end_layout
5616
5617 \begin_layout Subsubsection
5618
5619 \change_inserted 564990737 1670794716
5620
5621 \lang american
5622 Commands not supported by \SpecialChar LyX
5623
5624 \end_layout
5625
5626 \begin_layout Standard
5627
5628 \change_inserted 564990737 1670794716
5629
5630 \lang american
5631 Some commands are not yet supported by the 
5632 \family sans
5633 paper (A&A)
5634 \family default
5635  layout for \SpecialChar LyX
5636 .
5637  Some have already been mentioned.
5638  For the sake of completeness, they are listed all together here:
5639 \end_layout
5640
5641 \begin_layout Itemize
5642
5643 \change_inserted 564990737 1670794716
5644
5645 \family typewriter
5646 \lang american
5647
5648 \backslash
5649 and
5650 \end_layout
5651
5652 \begin_layout Itemize
5653
5654 \change_inserted 564990737 1670794716
5655
5656 \family typewriter
5657 \lang american
5658
5659 \backslash
5660 email
5661 \end_layout
5662
5663 \begin_layout Itemize
5664
5665 \change_inserted 564990737 1670794716
5666
5667 \family typewriter
5668 \lang american
5669
5670 \backslash
5671 inst{}
5672 \end_layout
5673
5674 \begin_layout Itemize
5675
5676 \change_inserted 564990737 1670794716
5677
5678 \family typewriter
5679 \lang american
5680
5681 \backslash
5682 keywords{}
5683 \end_layout
5684
5685 \begin_layout Itemize
5686
5687 \change_inserted 564990737 1670794716
5688
5689 \family typewriter
5690 \lang american
5691
5692 \backslash
5693 object{}
5694 \end_layout
5695
5696 \begin_layout Standard
5697
5698 \change_inserted 564990737 1670794716
5699
5700 \lang american
5701 If you want to use any of these commands, you have to enter them yourself.
5702  
5703 \family typewriter
5704 Do not forget to use
5705 \family sans
5706  
5707 \bar under
5708 I
5709 \bar default
5710 nsert\SpecialChar menuseparator
5711 \SpecialChar TeX
5712
5713 \begin_inset space ~
5714 \end_inset
5715
5716 Code
5717 \family default
5718 \series bold
5719 !
5720 \end_layout
5721
5722 \begin_layout Subsubsection
5723
5724 \change_inserted 564990737 1670794716
5725
5726 \lang american
5727 Figure and Table Floats
5728 \end_layout
5729
5730 \begin_layout Standard
5731
5732 \change_inserted 564990737 1670794716
5733
5734 \lang american
5735 \SpecialChar LyX
5736  provides support for the necessary float environments 
5737 \family sans
5738 figure, figure*, table
5739 \family default
5740  and 
5741 \family sans
5742 table*
5743 \family default
5744 , therefore we won't tell much about it here.
5745  Refer to the 
5746 \emph on
5747 User's
5748 \begin_inset space ~
5749 \end_inset
5750
5751 Guide
5752 \emph default
5753 .
5754  Just remember that tables should be left-aligned.
5755  For that, select the table and change the alignment in 
5756 \family sans
5757 \bar under
5758 E
5759 \bar default
5760 dit\SpecialChar menuseparator
5761
5762 \bar under
5763 P
5764 \bar default
5765 aragraph
5766 \begin_inset space ~
5767 \end_inset
5768
5769 Settings.
5770 \end_layout
5771
5772 \begin_layout Standard
5773
5774 \change_inserted 564990737 1670794716
5775
5776 \lang american
5777 There is only one special thing: the figures with a caption beside the figure.
5778  To create such a figure, you have to do the following:
5779 \end_layout
5780
5781 \begin_layout Enumerate
5782
5783 \change_inserted 564990737 1670794716
5784
5785 \lang american
5786 Create a wide figure float: 
5787 \family sans
5788 \bar under
5789 I
5790 \bar default
5791 nsert\SpecialChar menuseparator
5792 Flo
5793 \bar under
5794 a
5795 \bar default
5796 t\SpecialChar menuseparator
5797 Figure
5798 \family default
5799 , then, from within the float, use the menu 
5800 \family sans
5801 \bar under
5802 E
5803 \bar default
5804 dit\SpecialChar menuseparator
5805 Flo
5806 \bar under
5807 a
5808 \bar default
5809 t
5810 \begin_inset space ~
5811 \end_inset
5812
5813 Settings
5814 \family default
5815  and check 
5816 \family sans
5817 \bar under
5818 S
5819 \bar default
5820 pan
5821 \begin_inset space ~
5822 \end_inset
5823
5824 columns
5825 \family default
5826  in the 
5827 \family sans
5828 float
5829 \family default
5830  dialog.
5831 \end_layout
5832
5833 \begin_layout Enumerate
5834
5835 \change_inserted 564990737 1670794716
5836
5837 \lang american
5838 Enter your caption text.
5839 \end_layout
5840
5841 \begin_layout Enumerate
5842
5843 \change_inserted 564990737 1670794716
5844
5845 \lang american
5846 Press 
5847 \family sans
5848 Return
5849 \family default
5850  to move the cursor above the caption.
5851 \end_layout
5852
5853 \begin_layout Enumerate
5854
5855 \change_inserted 564990737 1670794716
5856
5857 \lang american
5858 Insert your figure
5859 \end_layout
5860
5861 \begin_layout Enumerate
5862
5863 \change_inserted 564990737 1670794716
5864
5865 \lang american
5866 Position the cursor after the figure and insert a horizontal fill by using
5867  the menu: 
5868 \family sans
5869 \bar under
5870 I
5871 \bar default
5872 nsert\SpecialChar menuseparator
5873 F
5874 \bar under
5875 o
5876 \bar default
5877 rmatting\SpecialChar menuseparator
5878 H
5879 \bar under
5880 o
5881 \bar default
5882 rizontal
5883 \begin_inset space ~
5884 \end_inset
5885
5886 Space
5887 \family default
5888  to open the 
5889 \family sans
5890 space
5891 \family default
5892  dialog and select the 
5893 \family sans
5894 Horizontal fill
5895 \family default
5896  option from the 
5897 \family sans
5898 \bar under
5899 S
5900 \bar default
5901 pacing
5902 \family default
5903  pull-down menu.
5904 \end_layout
5905
5906 \begin_layout Enumerate
5907
5908 \change_inserted 564990737 1670794716
5909
5910 \lang american
5911 Switch to \SpecialChar LaTeX
5912  mode: 
5913 \family sans
5914 M-c
5915 \begin_inset space ~
5916 \end_inset
5917
5918 t
5919 \family default
5920 .
5921 \end_layout
5922
5923 \begin_layout Enumerate
5924
5925 \change_inserted 564990737 1670794716
5926
5927 \lang american
5928 Enter 
5929 \family typewriter
5930
5931 \backslash
5932 parbox[b]{55mm}{
5933 \family default
5934  
5935 \emph on
5936 Do not close the brace!
5937 \end_layout
5938
5939 \begin_layout Enumerate
5940
5941 \change_inserted 564990737 1670794716
5942
5943 \lang american
5944 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
5945  mode and insert
5946  the closing brace: 
5947 \family sans
5948 M-c
5949 \begin_inset space ~
5950 \end_inset
5951
5952 t
5953 \family default
5954  
5955 \family typewriter
5956 }
5957 \family default
5958 .
5959 \end_layout
5960
5961 \begin_layout Standard
5962
5963 \change_inserted 564990737 1671642458
5964
5965 \lang american
5966 Also, refer to the figures in the file in 
5967 \family sans
5968 \lang british
5969 File\SpecialChar menuseparator
5970 Open Example\SpecialChar menuseparator
5971 Articles\SpecialChar menuseparator
5972 Astronomy & Astrophysics
5973 \family default
5974 \lang american
5975 .
5976 \end_layout
5977
5978 \begin_layout Subsubsection
5979
5980 \change_inserted 564990737 1670794716
5981
5982 \lang american
5983 Referee layout
5984 \end_layout
5985
5986 \begin_layout Standard
5987
5988 \change_inserted 564990737 1670794716
5989
5990 \lang american
5991 For submission, the paper has to be formatted in a special double-spacing
5992  layout.
5993  For this purpose, you have to add the option 
5994 \family typewriter
5995 referee
5996 \family default
5997  to the 
5998 \family sans
5999 Cus
6000 \bar under
6001 t
6002 \bar default
6003 om Class
6004 \begin_inset space ~
6005 \end_inset
6006
6007 options
6008 \family default
6009  in the 
6010 \family sans
6011 \bar under
6012 D
6013 \bar default
6014 ocument\SpecialChar menuseparator
6015
6016 \bar under
6017 S
6018 \bar default
6019 ettings\SpecialChar menuseparator
6020 Document
6021 \begin_inset space ~
6022 \end_inset
6023
6024 Class
6025 \family default
6026  dialog.
6027  
6028 \end_layout
6029
6030 \begin_layout Subsubsection
6031
6032 \change_inserted 564990737 1670794716
6033
6034 \lang american
6035 The example paper
6036 \end_layout
6037
6038 \begin_layout Standard
6039
6040 \change_inserted 564990737 1671642520
6041
6042 \lang american
6043 The example in 
6044 \family sans
6045 \lang british
6046 File\SpecialChar menuseparator
6047 Open Example\SpecialChar menuseparator
6048 Articles\SpecialChar menuseparator
6049 Astronomy & Astrophysics
6050 \family default
6051 \lang american
6052  was written with \SpecialChar LyX
6053 .
6054  It is the example paper from the original macro package, 
6055 \family typewriter
6056 aa.dem
6057 \family default
6058  in the 
6059 \begin_inset CommandInset href
6060 LatexCommand href
6061 name "aa-package"
6062 target "http://ftp.edpsciences.org/pub/aa/aa-package.zip"
6063 literal "false"
6064
6065 \end_inset
6066
6067 , but translated to \SpecialChar LyX
6068  using the older unstructured abstract type.
6069  Use it for inspiration, and compare the \SpecialChar LaTeX
6070  code in 
6071 \family typewriter
6072 aa.dem
6073 \family default
6074  with the \SpecialChar LyX
6075  way of writing.
6076 \end_layout
6077
6078 \begin_layout Subsection
6079 AAS\SpecialChar TeX
6080
6081 \end_layout
6082
6083 \begin_layout Standard
6084 by 
6085 \noun on
6086 Mike Ressler
6087 \end_layout
6088
6089 \begin_layout Subsubsection
6090 Introduction
6091 \end_layout
6092
6093 \begin_layout Standard
6094 AAS\SpecialChar TeX
6095  is a set of macros produced by the American Astronomical Society to
6096  facilitate electronic manuscript submission to the three journals they
6097  publish: the Astrophysical Journal (including the Letters and Supplement),
6098  the Astronomical Journal, and the Publications of the Astronomical Society
6099  of the Pacific.
6100  \SpecialChar LyX
6101  has proven to be an excellent tool for generating these documents, especially
6102  given its equation, citation, and figure handling capabilities.
6103  \SpecialChar LyX
6104  requires version 5.0 (or higher) of these macros; preferably 6.0, which
6105  is the version described here, or higher.
6106  Versions prior to 5.0 are intended for use with \SpecialChar LaTeX
6107 2.09 and are fundamentally
6108  incompatible with \SpecialChar LyX
6109 .
6110  The AAS\SpecialChar TeX
6111  package may be downloaded from the AAS\SpecialChar TeX
6112  Web site
6113 \end_layout
6114
6115 \begin_layout Standard
6116 \begin_inset VSpace medskip
6117 \end_inset
6118
6119
6120 \end_layout
6121
6122 \begin_layout Standard
6123 \align center
6124 \begin_inset Flex URL
6125 status collapsed
6126
6127 \begin_layout Plain Layout
6128
6129 https://aas.org/aastex/aastex-downloads
6130 \end_layout
6131
6132 \end_inset
6133
6134
6135 \end_layout
6136
6137 \begin_layout Standard
6138 \begin_inset VSpace medskip
6139 \end_inset
6140
6141
6142 \end_layout
6143
6144 \begin_layout Standard
6145 A complete user guide is contained in that package and you should familiarize
6146  yourself with it thoroughly before embarking on writing a paper in \SpecialChar LyX
6147 .
6148  \SpecialChar LyX
6149  will not reduce the need to figure out all the AAS\SpecialChar TeX
6150  commands, it will only
6151  reduce the drudgery of typing everything in.
6152  It is your responsibility to ensure that the final exported \SpecialChar LaTeX
6153  document conforms
6154  completely to the requirements of the journal to which you are submitting
6155  your paper.
6156 \end_layout
6157
6158 \begin_layout Subsubsection
6159 Starting a New Paper
6160 \end_layout
6161
6162 \begin_layout Standard
6163 I strongly suggest that you start with the AAS\SpecialChar TeX
6164  template file.
6165  Click on 
6166 \family sans
6167 File\SpecialChar menuseparator
6168 New from
6169 \family default
6170  
6171 \family sans
6172 Template
6173 \change_inserted 564990737 1671617265
6174 \SpecialChar menuseparator
6175 Articles\SpecialChar menuseparator
6176 American Astronomical Society
6177 \change_deleted 564990737 1671617310
6178
6179 \family default
6180 , enter the new file name, then choose the 
6181 \family typewriter
6182 aastex6.lyx
6183 \family default
6184  template
6185 \change_unchanged
6186 .
6187  This will show the most common fields found in a manuscript.
6188  Simply overwrite the existing text (including the brackets, 
6189 \family typewriter
6190 <>
6191 \family default
6192 ) with the correct information.
6193  Many of the AAS\SpecialChar TeX
6194  commands and environments can be implemented directly in
6195  \SpecialChar LyX
6196 , but some cannot.
6197  For commands such as these, the \SpecialChar LaTeX
6198  code must be entered directly and marked
6199  as such.
6200  Such commands are referred to as \SpecialChar TeX
6201  code, or Evil Red Text.
6202  I tried to minimize the amount of \SpecialChar TeX
6203  code needed in an AAS\SpecialChar TeX
6204  document.
6205 \end_layout
6206
6207 \begin_layout Subsubsection
6208 Finishing Your Paper
6209 \end_layout
6210
6211 \begin_layout Standard
6212 When the paper is finished to your satisfaction and previews/prints correctly,
6213  there are a few 
6214 \begin_inset Quotes eld
6215 \end_inset
6216
6217 postprocessing
6218 \begin_inset Quotes erd
6219 \end_inset
6220
6221  actions which need to be done before you submit it to the journals.
6222  
6223 \end_layout
6224
6225 \begin_layout Enumerate
6226 Export your paper as a \SpecialChar LaTeX
6227  file (
6228 \family sans
6229 File\SpecialChar menuseparator
6230 Export\SpecialChar menuseparator
6231 \SpecialChar LaTeX
6232
6233 \family default
6234 ).
6235  
6236 \end_layout
6237
6238 \begin_layout Enumerate
6239 Edit the resulting 
6240 \family typewriter
6241 .tex
6242 \family default
6243  file with your favorite text editor
6244 \end_layout
6245
6246 \begin_deeper
6247 \begin_layout Enumerate
6248 remove the comment lines before the 
6249 \family typewriter
6250
6251 \backslash
6252 documentclass
6253 \family default
6254  command
6255 \end_layout
6256
6257 \begin_layout Enumerate
6258 remove the 
6259 \family typewriter
6260
6261 \backslash
6262 usepackage...{fontenc}
6263 \family default
6264  line if it appears (usually just after 
6265 \family typewriter
6266
6267 \backslash
6268 documentclass
6269 \family default
6270 }; also remove the 
6271 \family typewriter
6272
6273 \backslash
6274 secnumdepth
6275 \family default
6276  line if it appears.
6277 \end_layout
6278
6279 \begin_layout Enumerate
6280 remove everything between (and including) the 
6281 \family typewriter
6282
6283 \backslash
6284 makeatletter
6285 \family default
6286  and 
6287 \family typewriter
6288
6289 \backslash
6290 makeatother
6291 \family default
6292  commands, except for any commands you specifically put into the \SpecialChar LaTeX
6293  preamble
6294  (which should appear immediately after the 
6295 \begin_inset Quotes eld
6296 \end_inset
6297
6298 User specified \SpecialChar LaTeX
6299  commands
6300 \begin_inset Quotes erd
6301 \end_inset
6302
6303  comment in the 
6304 \family typewriter
6305 .tex
6306 \family default
6307  file).
6308 \end_layout
6309
6310 \end_deeper
6311 \begin_layout Enumerate
6312 Run the resulting file through \SpecialChar LaTeX
6313  to make sure it still processes correctly.
6314 \end_layout
6315
6316 \begin_layout Enumerate
6317 Reread the journal requirements to make sure your filenames and formats
6318  are correct.
6319 \end_layout
6320
6321 \begin_layout Enumerate
6322 Submit it.
6323 \end_layout
6324
6325 \begin_layout Subsubsection
6326 Comments On Specific Commands
6327 \end_layout
6328
6329 \begin_layout Standard
6330 I will not describe the detailed usage of the individual AAS\SpecialChar TeX
6331  commands: the
6332  AAS\SpecialChar TeX
6333  User Guide (
6334 \family typewriter
6335 aasguide.tex
6336 \family default
6337 ) gives a good description of each.
6338  Thus it's probably easiest for me to go down the list as found in the guide
6339  and offer comments where necessary.
6340  So let's begin \SpecialChar ldots
6341
6342 \end_layout
6343
6344 \begin_layout Paragraph
6345 Things that work as expected
6346 \end_layout
6347
6348 \begin_layout Standard
6349 Because they work as you might expect, I simply list them and the section
6350  they are found in: 
6351 \family typewriter
6352
6353 \backslash
6354 documentclass
6355 \family default
6356  (2.1.1), 
6357 \family typewriter
6358
6359 \backslash
6360 begin{document}
6361 \family default
6362  (2.2), 
6363 \family typewriter
6364
6365 \backslash
6366 title
6367 \family default
6368  (2.3), 
6369 \family typewriter
6370
6371 \backslash
6372 author
6373 \family default
6374  (2.3), 
6375 \family typewriter
6376
6377 \backslash
6378 affil
6379 \family default
6380  (2.3), 
6381 \family typewriter
6382
6383 \backslash
6384 abstract
6385 \family default
6386  (2.4), 
6387 \family typewriter
6388
6389 \backslash
6390 keywords
6391 \family default
6392  (2.5), 
6393 \family typewriter
6394
6395 \backslash
6396 section
6397 \family default
6398  (2.7), 
6399 \family typewriter
6400
6401 \backslash
6402 subsection
6403 \family default
6404  (2.7), 
6405 \family typewriter
6406
6407 \backslash
6408 subsubsection
6409 \family default
6410  (2.7), 
6411 \family typewriter
6412
6413 \backslash
6414 paragraph
6415 \family default
6416  (2.7), 
6417 \family typewriter
6418
6419 \backslash
6420 facility
6421 \family default
6422  (2.10), 
6423 \family typewriter
6424
6425 \backslash
6426 begin{displaymath}
6427 \family default
6428  (2.12), 
6429 \family typewriter
6430
6431 \backslash
6432 begin{equation}
6433 \family default
6434  (2.12), 
6435 \family typewriter
6436
6437 \backslash
6438 begin{eqnarray}
6439 \family default
6440  (2.12), 
6441 \family typewriter
6442
6443 \backslash
6444 begin{mathletters}
6445 \family default
6446  (2.12), 
6447 \family typewriter
6448
6449 \backslash
6450 begin{thebibliography}
6451 \family default
6452  (2.13.1), 
6453 \family typewriter
6454
6455 \backslash
6456 bibitem
6457 \family default
6458  (2.13.2), all the cite commands and their variations (2.13.2), the generic
6459  graphicx figure commands (2.14.1), 
6460 \family typewriter
6461
6462 \backslash
6463 begin{table}
6464 \family default
6465  (2.15.4), 
6466 \family typewriter
6467
6468 \backslash
6469 begin{tabular}
6470 \family default
6471  (2.15.4), 
6472 \family typewriter
6473
6474 \backslash
6475 caption
6476 \family default
6477  (2.15.4), 
6478 \family typewriter
6479
6480 \backslash
6481 label
6482 \family default
6483  (2.15.4, amongst other places), 
6484 \family typewriter
6485
6486 \backslash
6487 tablerefs
6488 \family default
6489  (2.15.5), 
6490 \family typewriter
6491
6492 \backslash
6493 tablecomments
6494 \family default
6495  (2.15.5), 
6496 \family typewriter
6497
6498 \backslash
6499 url
6500 \family default
6501  (2.17.4), 
6502 \family typewriter
6503
6504 \backslash
6505 end{document}
6506 \family default
6507  (2.18).
6508 \end_layout
6509
6510 \begin_layout Standard
6511 The following style options also work correctly: 
6512 \family typewriter
6513 longabstract
6514 \family default
6515  (2.4), 
6516 \family typewriter
6517 preprint
6518 \family default
6519  (3.2.1), 
6520 \family typewriter
6521 preprint2
6522 \family default
6523  (3.2.2), 
6524 \family typewriter
6525 eqsecnum
6526 \family default
6527  (3.3), 
6528 \family typewriter
6529 flushrt
6530 \family default
6531  (3.4).
6532  Simply put them in the 
6533 \family sans
6534 Options
6535 \family default
6536  box in 
6537 \family sans
6538 Layout\SpecialChar menuseparator
6539 Document
6540 \family default
6541 .
6542 \end_layout
6543
6544 \begin_layout Paragraph
6545 Things that work, but require more comment
6546 \end_layout
6547
6548 \begin_layout Standard
6549 The following items work, but require a little more discussion:
6550 \end_layout
6551
6552 \begin_layout Itemize
6553 These items are reserved for use by the journal editors, but you can put
6554  them into the \SpecialChar LaTeX
6555  preamble if you feel compelled to do so: 
6556 \family typewriter
6557
6558 \backslash
6559 received
6560 \family default
6561
6562 \family typewriter
6563
6564 \backslash
6565 revised
6566 \family default
6567
6568 \family typewriter
6569
6570 \backslash
6571 accepted
6572 \family default
6573
6574 \family typewriter
6575
6576 \backslash
6577 ccc
6578 \family default
6579
6580 \family typewriter
6581
6582 \backslash
6583 cpright
6584 \family default
6585  (all from 2.1.3)
6586 \end_layout
6587
6588 \begin_layout Itemize
6589 These items may be placed in the \SpecialChar LaTeX
6590  preamble, and are included as blanks in
6591  the template file: 
6592 \family typewriter
6593
6594 \backslash
6595 slugcomment
6596 \family default
6597  (2.1.4), 
6598 \family typewriter
6599
6600 \backslash
6601 shorttitle
6602 \family default
6603  (2.1.5), 
6604 \family typewriter
6605
6606 \backslash
6607 shortauthors
6608 \family default
6609  (2.1.5)
6610 \end_layout
6611
6612 \begin_layout Itemize
6613
6614 \family typewriter
6615
6616 \backslash
6617 email
6618 \family default
6619  (2.3) – can only be used 
6620 \begin_inset Quotes eld
6621 \end_inset
6622
6623 standalone
6624 \begin_inset Quotes erd
6625 \end_inset
6626
6627 , not in the middle of a paragraph.
6628  Use \SpecialChar TeX
6629  code if you need to embed it.
6630 \end_layout
6631
6632 \begin_layout Itemize
6633
6634 \family typewriter
6635
6636 \backslash
6637 and
6638 \family default
6639  (2.3) – will have extra {} after it.
6640  This should not cause an error.
6641 \end_layout
6642
6643 \begin_layout Itemize
6644
6645 \family typewriter
6646
6647 \backslash
6648 notetoeditor
6649 \family default
6650  (2.6) – can only be used 
6651 \begin_inset Quotes eld
6652 \end_inset
6653
6654 standalone
6655 \begin_inset Quotes erd
6656 \end_inset
6657
6658 , not in the middle of a paragraph.
6659  Use \SpecialChar TeX
6660  code if you need to embed it.
6661 \end_layout
6662
6663 \begin_layout Itemize
6664
6665 \family typewriter
6666
6667 \backslash
6668 placetable
6669 \family default
6670  (2.8) – can't insert a cross-reference tag, you must type the tag name by
6671  hand
6672 \end_layout
6673
6674 \begin_layout Itemize
6675
6676 \family typewriter
6677
6678 \backslash
6679 placefigure
6680 \family default
6681  (2.8) – same as for 
6682 \family typewriter
6683
6684 \backslash
6685 placetable
6686 \end_layout
6687
6688 \begin_layout Itemize
6689
6690 \family typewriter
6691
6692 \backslash
6693 acknowledgements
6694 \family default
6695  (2.9) – will have extra {} after it.
6696  This should not cause an error.
6697 \end_layout
6698
6699 \begin_layout Itemize
6700
6701 \family typewriter
6702
6703 \backslash
6704 appendix
6705 \family default
6706  (2.11) – will have extra {} after it.
6707  This should not cause an error.
6708 \end_layout
6709
6710 \begin_layout Itemize
6711
6712 \family typewriter
6713
6714 \backslash
6715 figcaption
6716 \family default
6717  (2.14.2) – you can insert an optional filename argument by placing the cursor
6718  at the beginning of the text and selecting 
6719 \family sans
6720 Insert\SpecialChar menuseparator
6721 Short Title
6722 \family default
6723 .
6724  
6725 \begin_inset Quotes eld
6726 \end_inset
6727
6728 Short Title
6729 \begin_inset Quotes erd
6730 \end_inset
6731
6732  inserts an optional argument of the type needed by 
6733 \family typewriter
6734
6735 \backslash
6736 figcaption
6737 \family default
6738 .
6739  Hopefully it will be renamed someday.
6740 \end_layout
6741
6742 \begin_layout Itemize
6743
6744 \family typewriter
6745
6746 \backslash
6747 objectname
6748 \family default
6749  (2.17.1) – same as 
6750 \family typewriter
6751
6752 \backslash
6753 figcaption
6754 \family default
6755  for the catalog ID optional parameter
6756 \end_layout
6757
6758 \begin_layout Itemize
6759
6760 \family typewriter
6761
6762 \backslash
6763 dataset
6764 \family default
6765  (2.17.1) – same as 
6766 \family typewriter
6767
6768 \backslash
6769 figcaption
6770 \family default
6771  for the catalog ID optional parameter
6772 \end_layout
6773
6774 \begin_layout Paragraph
6775 Things not implemented, use \SpecialChar TeX
6776  code
6777 \end_layout
6778
6779 \begin_layout Standard
6780
6781 \family typewriter
6782
6783 \backslash
6784 eqnum
6785 \family default
6786  (2.12), 
6787 \family typewriter
6788
6789 \backslash
6790 setcounter{equation}
6791 \family default
6792  (2.12), Journal name abbreviations (2.13.4), 
6793 \family typewriter
6794
6795 \backslash
6796 figurenum
6797 \family default
6798  (2.14.1), 
6799 \family typewriter
6800
6801 \backslash
6802 epsscale
6803 \family default
6804  (2.14.1), 
6805 \family typewriter
6806
6807 \backslash
6808 plotone
6809 \family default
6810  (2.14.1), 
6811 \family typewriter
6812
6813 \backslash
6814 plottwo
6815 \family default
6816  (2.14.1), 
6817 \family typewriter
6818
6819 \backslash
6820 tablenum
6821 \family default
6822  (2.15.4), 
6823 \family typewriter
6824
6825 \backslash
6826 tableline
6827 \family default
6828  (2.15.4, insert it as the first element in the lefthand cell after where
6829  you want it.
6830  Don't use any of \SpecialChar LyX
6831 's rules in the table), 
6832 \family typewriter
6833
6834 \backslash
6835 tablenotemark
6836 \family default
6837  (2.15.5), 
6838 \family typewriter
6839
6840 \backslash
6841 tablenotetext
6842 \family default
6843  (2.15.5), much of Misc (2.17, except 
6844 \family typewriter
6845
6846 \backslash
6847 objectname
6848 \family default
6849
6850 \family typewriter
6851
6852 \backslash
6853 dataset
6854 \family default
6855
6856 \family typewriter
6857
6858 \backslash
6859 url
6860 \family default
6861 , and 
6862 \family typewriter
6863
6864 \backslash
6865 email
6866 \family default
6867 ; see above), 
6868 \family typewriter
6869
6870 \backslash
6871 singlespace
6872 \family default
6873  (3.1), 
6874 \family typewriter
6875
6876 \backslash
6877 doublespace
6878 \family default
6879  (3.1), 
6880 \family typewriter
6881
6882 \backslash
6883 onecolumn
6884 \family default
6885  (3.2), 
6886 \family typewriter
6887
6888 \backslash
6889 twocolumn
6890 \family default
6891  (3.2)
6892 \end_layout
6893
6894 \begin_layout Paragraph
6895 Things that cannot be implemented
6896 \end_layout
6897
6898 \begin_layout Standard
6899 \SpecialChar ldots
6900  at least in any meaningful sort of way, so I suggest ignoring them.
6901  They are the references environment (2.13.3), and the deluxetable environment
6902  (2.15).
6903  If you really, really need to use deluxetable, I suggest editing it in
6904  a separate file with a text editor, then using 
6905 \family sans
6906 Insert\SpecialChar menuseparator
6907 Child
6908 \begin_inset space ~
6909 \end_inset
6910
6911 Document
6912 \family default
6913  to include it in your \SpecialChar LyX
6914  document.
6915  See 
6916 \change_deleted 564990737 1671642564
6917 the 
6918 \family typewriter
6919 aas_sample.lyx
6920 \family default
6921  file to see
6922 \change_inserted 564990737 1671642618
6923
6924 \family sans
6925 \lang british
6926 File\SpecialChar menuseparator
6927 Open Example\SpecialChar menuseparator
6928 Articles\SpecialChar menuseparator
6929 American Astronomical Society
6930 \change_unchanged
6931
6932 \family default
6933 \lang english
6934  
6935 \change_inserted 564990737 1671642621
6936 for 
6937 \change_unchanged
6938 an example of this.
6939 \end_layout
6940
6941 \begin_layout Subsubsection
6942 FAQs, Tips, Tricks, and Other Ruminations
6943 \end_layout
6944
6945 \begin_layout Paragraph
6946 Getting \SpecialChar LyX
6947  and AAS\SpecialChar TeX
6948  to cooperate
6949 \end_layout
6950
6951 \begin_layout Standard
6952 It can be a bit tricky to get \SpecialChar LyX
6953  to recognize a new layout and document class.
6954  When all else fails, do this:
6955 \end_layout
6956
6957 \begin_layout Enumerate
6958 Make certain that \SpecialChar LaTeX
6959  can find AAS\SpecialChar TeX
6960 .
6961  Copy sample.tex (and perhaps table.tex) from the AAS\SpecialChar TeX
6962  distribution into a
6963  directory completely unrelated to \SpecialChar LaTeX
6964  or AAS\SpecialChar TeX
6965  and run \SpecialChar LaTeX
6966  on 
6967 \family typewriter
6968 sample.tex
6969 \family default
6970 .
6971 \end_layout
6972
6973 \begin_layout Enumerate
6974 Make certain that 
6975 \family typewriter
6976 aastex.layout
6977 \family default
6978  appears in \SpecialChar LyX
6979 's 
6980 \family typewriter
6981 layouts
6982 \family default
6983  folder
6984 \end_layout
6985
6986 \begin_layout Enumerate
6987 Rerun 
6988 \family sans
6989 Tools\SpecialChar menuseparator
6990 Reconfigure
6991 \family default
6992  in \SpecialChar LyX
6993 , then restart \SpecialChar LyX
6994 .
6995 \end_layout
6996
6997 \begin_layout Enumerate
6998 Open a regular new file, not from a template.
6999  Does AAS\SpecialChar TeX
7000  appear in the class list in 
7001 \family sans
7002 Document\SpecialChar menuseparator
7003 Settings
7004 \family default
7005 ?
7006 \end_layout
7007
7008 \begin_layout Standard
7009 If you get a warning from an existing AAS\SpecialChar TeX
7010  document about not being able
7011  to find the AAS\SpecialChar TeX
7012  layout or a message about 
7013 \begin_inset Quotes eld
7014 \end_inset
7015
7016 You should not mix title layouts with normal ones
7017 \begin_inset Quotes erd
7018 \end_inset
7019
7020 , things haven't been installed correctly.
7021 \end_layout
7022
7023 \begin_layout Paragraph
7024 \SpecialChar LaTeX
7025  error processing a table 
7026 \end_layout
7027
7028 \begin_layout Standard
7029 \SpecialChar LyX
7030 , by default, attempts to center the table caption/title.
7031  This seems to produce a bad interaction in AAS\SpecialChar TeX
7032  so you should click somewhere
7033  in the caption/title, then select 
7034 \family sans
7035 Edit\SpecialChar menuseparator
7036 Paragraph
7037 \begin_inset space ~
7038 \end_inset
7039
7040 Settings
7041 \family default
7042 , then set the 
7043 \family sans
7044 Alignment
7045 \family default
7046  to 
7047 \family sans
7048 Block
7049 \family default
7050 .
7051  This took care of it for me.
7052 \end_layout
7053
7054 \begin_layout Paragraph
7055 References
7056 \end_layout
7057
7058 \begin_layout Standard
7059 A couple of things: 1) I have noticed some funny spacing in the reference
7060  entries in the text.
7061  When you enter the bibliography item data, make sure their is 
7062 \emph on
7063 no
7064 \emph default
7065  space between the last author and the parenthesis setting off the year;
7066  
7067 \emph on
7068 e.
7069 \begin_inset space \thinspace{}
7070 \end_inset
7071
7072 g.
7073 \begin_inset space \space{}
7074 \end_inset
7075
7076
7077 \emph default
7078 type 
7079 \family typewriter
7080 Ressler(1992)
7081 \family default
7082 , not 
7083 \family typewriter
7084 Ressler (1992)
7085 \family default
7086 .
7087  2) Entering the references at all is not obvious.
7088  The easiest thing is to start typing your first reference at the end of
7089  the document, then mark it as type 
7090 \family sans
7091 References
7092 \family default
7093 .
7094  That will put a small gray box in front of what you just typed.
7095  Click on the box to fill in the rest of the information.
7096  For new references, go to the end of an existing reference and press return.
7097  That will create a new line with its own box, etc.
7098 \end_layout
7099
7100 \begin_layout Paragraph
7101 Including EPS files
7102 \end_layout
7103
7104 \begin_layout Standard
7105 Even though AAS\SpecialChar TeX
7106  provides its own figure commands (
7107 \family typewriter
7108
7109 \backslash
7110 plotone
7111 \family default
7112 , for example), I much prefer \SpecialChar LaTeX
7113 's standard figure commands (with the default
7114  graphicx).
7115  You can insert the 
7116 \family typewriter
7117
7118 \backslash
7119 plotone
7120 \family default
7121 , etc.
7122 \begin_inset space ~
7123 \end_inset
7124
7125 commands as \SpecialChar TeX
7126  code into a Figure Float box if you desire, but I never have
7127  much luck getting the layout right.
7128  With the standard graphics, \SpecialChar LyX
7129  will insert a 
7130 \family typewriter
7131
7132 \backslash
7133 usepackage{graphicx}
7134 \family default
7135  command into the \SpecialChar LaTeX
7136  preamble and handle the figures in the standard \SpecialChar LaTeX2e
7137  way,
7138  interspersing the figures in the text.
7139  I believe ApJ accepts figures exactly this way now; AJ might still use
7140  the 
7141 \begin_inset Quotes eld
7142 \end_inset
7143
7144 stack everything at the end
7145 \begin_inset Quotes erd
7146 \end_inset
7147
7148  technique.
7149 \end_layout
7150
7151 \begin_layout Paragraph
7152 Things I could have done, but didn't
7153 \end_layout
7154
7155 \begin_layout Standard
7156 There are a few 
7157 \begin_inset Quotes eld
7158 \end_inset
7159
7160 pretty
7161 \begin_inset Quotes erd
7162 \end_inset
7163
7164  things I could have implemented, but chose not to.
7165  For instance, I saw no point in double-spacing the text in the \SpecialChar LyX
7166  window,
7167  even though it is double-spaced in the paper manuscript.
7168  Also, I chose not to make separate layouts for the preprint and preprint2
7169  styles.
7170  Since I assume you will spend most of your time in the plain manuscript
7171  mode anyway, I decided not to chew up more disk space with this.
7172  
7173 \end_layout
7174
7175 \begin_layout Subsubsection
7176 Final Caveat
7177 \end_layout
7178
7179 \begin_layout Standard
7180 Your mileage may vary.
7181  I've now had papers published by both ApJ and AJ that have had 98% of the
7182  effort done in \SpecialChar LyX
7183 ; the last 2% was the \SpecialChar LaTeX
7184  post-processing and a few cleanups.
7185  I have had no trouble with the submission process, and I'm sure the journals
7186  were never aware that there might be a difference.
7187  So, go forth and publish!
7188 \end_layout
7189
7190 \begin_layout Subsection
7191
7192 \change_inserted 564990737 1671442131
7193
7194 \lang american
7195 Chess
7196 \end_layout
7197
7198 \begin_layout Standard
7199
7200 \change_inserted 564990737 1671642768
7201
7202 \lang american
7203 The document class 
7204 \family sans
7205 article
7206 \begin_inset space \thinspace{}
7207 \end_inset
7208
7209 (Chess)
7210 \family default
7211  uses the 
7212 \family typewriter
7213 article.cls
7214 \family default
7215  document class together with the style 
7216 \family sans
7217 lyxskak.sty
7218 \family default
7219  to facilitate the description of chess games.
7220  See 
7221 \family sans
7222 \lang british
7223 File\SpecialChar menuseparator
7224 Open Example
7225 \lang english
7226 \SpecialChar menuseparator
7227 Articles\SpecialChar menuseparator
7228 Chess
7229 \family default
7230 \lang american
7231  where you will find 
7232 \family sans
7233 \lang english
7234 Game 1
7235 \family default
7236 \lang american
7237  and 
7238 \family sans
7239 \lang english
7240 Game 2
7241 \family default
7242 \lang american
7243 .
7244 \end_layout
7245
7246 \begin_layout Subsection
7247
7248 \change_inserted 564990737 1671042028
7249
7250 \lang american
7251 Elsevier
7252 \end_layout
7253
7254 \begin_layout Standard
7255
7256 \change_inserted 564990737 1671617396
7257
7258 \lang american
7259 The document class 
7260 \family sans
7261 article
7262 \begin_inset space \thinspace{}
7263 \end_inset
7264
7265 (Elsevier)
7266 \family default
7267  provides the 
7268 \family typewriter
7269 elsarticle.cls
7270 \family default
7271  document class.
7272  This provides the following additional environments: 
7273 \family sans
7274 Title
7275 \begin_inset space ~
7276 \end_inset
7277
7278 footnote
7279 \family default
7280
7281 \family sans
7282 Author
7283 \begin_inset space ~
7284 \end_inset
7285
7286 footnote
7287 \family default
7288
7289 \family sans
7290 Corresponding
7291 \begin_inset space ~
7292 \end_inset
7293
7294 author
7295 \family default
7296
7297 \family sans
7298 Address
7299 \family default
7300
7301 \family sans
7302 Email
7303 \family default
7304  and 
7305 \family sans
7306 Keywords
7307 \family default
7308 .
7309  A template is available in the menu 
7310 \family sans
7311 \bar under
7312 F
7313 \bar default
7314 ile\SpecialChar menuseparator
7315 New
7316 \begin_inset space ~
7317 \end_inset
7318
7319 fro
7320 \bar under
7321 m
7322 \bar default
7323
7324 \begin_inset space ~
7325 \end_inset
7326
7327 Template
7328 \lang english
7329 \SpecialChar menuseparator
7330 Articles\SpecialChar menuseparator
7331 Elsevier
7332 \family default
7333 \lang american
7334 .
7335  It has been customized with further environments and contains all the informati
7336 on you may need.
7337  However, the documentation is also available from 
7338 \begin_inset CommandInset href
7339 LatexCommand href
7340 name "CTAN"
7341 target "http://mirrors.ctan.org/macros/latex/contrib/elsarticle/doc/elsdoc.pdf"
7342 literal "false"
7343
7344 \end_inset
7345
7346 .
7347 \end_layout
7348
7349 \begin_layout Subsection
7350
7351 \change_inserted 564990737 1671042046
7352
7353 \lang american
7354 Paper
7355 \end_layout
7356
7357 \begin_layout Standard
7358
7359 \change_inserted 564990737 1671042046
7360
7361 \lang american
7362 The document class 
7363 \family sans
7364 article
7365 \begin_inset space \thinspace{}
7366 \end_inset
7367
7368 (paper)
7369 \family default
7370  provides an alternative to the 
7371 \family typewriter
7372 article.cls
7373 \family default
7374  document class.
7375  It provides similar functionality, but you might prefer this layout with
7376  sans serif sections, headings, and more.
7377 \end_layout
7378
7379 \begin_layout Subsection
7380 Rev\SpecialChar TeX
7381 4
7382 \end_layout
7383
7384 \begin_layout Standard
7385 by 
7386 \noun on
7387 Amir Karger
7388 \end_layout
7389
7390 \begin_layout Standard
7391 \begin_inset VSpace bigskip
7392 \end_inset
7393
7394
7395 \end_layout
7396
7397 \begin_layout Standard
7398 \noindent
7399 The 
7400 \family sans
7401 Revtex
7402 \begin_inset space ~
7403 \end_inset
7404
7405 4
7406 \family default
7407  textclass works with the American Physical Sociey's Rev\SpecialChar TeX
7408  4.0 (the 
7409 \begin_inset Formula $\beta$
7410 \end_inset
7411
7412  release of May, 1999) class.
7413 \end_layout
7414
7415 \begin_layout Standard
7416 \SpecialChar LyX
7417  has a 
7418 \family sans
7419 Revtex
7420 \family default
7421  textclass, which works with Rev\SpecialChar TeX
7422  3.1.
7423  However, v3.1 is basically obsolete, as it works with \SpecialChar LaTeX
7424  2.09.
7425  That means that it doesn't interact very well with \SpecialChar LyX
7426 , which requires \SpecialChar LaTeX2e
7427 , although
7428  it has been kludged to work.
7429  Since Rev\SpecialChar TeX
7430  4.0 has been designed to work much more cleanly with \SpecialChar LaTeX2e
7431 , \SpecialChar LyX
7432  with the
7433  
7434 \family sans
7435 Rev\SpecialChar TeX
7436
7437 \begin_inset space ~
7438 \end_inset
7439
7440 4
7441 \family default
7442  textclass should also be pretty easy to use.
7443 \end_layout
7444
7445 \begin_layout Standard
7446 These documents are supposed to be used in 
7447 \emph on
7448 addition
7449 \emph default
7450  to the Rev\SpecialChar TeX
7451  4.0 documents, so we don't describe any of the special Rev\SpecialChar TeX
7452  macros,
7453  and assume you'll know what to put in the preamble if necessary.
7454 \end_layout
7455
7456 \begin_layout Subsubsection
7457 Installation
7458 \end_layout
7459
7460 \begin_layout Standard
7461 All you need to do is install Rev\SpecialChar TeX
7462  4, as described in the package's README
7463  file.
7464  The package can be found at The Rev\SpecialChar TeX
7465  4 Web Site 
7466 \begin_inset Flex URL
7467 status collapsed
7468
7469 \begin_layout Plain Layout
7470
7471 http://publish.aps.org/revtex4/
7472 \end_layout
7473
7474 \end_inset
7475
7476 .
7477  Install it somewhere that \SpecialChar LaTeX
7478  can see it.
7479  Test it by trying to \SpecialChar LaTeX
7480  a short Rev\SpecialChar TeX
7481  4 document in some random directory (i.
7482 \begin_inset space \thinspace{}
7483 \end_inset
7484
7485 e.
7486 \begin_inset space \space{}
7487 \end_inset
7488
7489 not the directory where you installed the class file.) Then, if you reconfigure
7490  \SpecialChar LyX
7491 , it will find the class file and let you use the Rev\SpecialChar TeX
7492 4 textclass.
7493 \end_layout
7494
7495 \begin_layout Standard
7496 Probably the easiest way to get started is either to import a Rev\SpecialChar TeX
7497  4 document
7498  using 
7499 \family typewriter
7500 tex2lyx
7501 \family default
7502 , or to use the 
7503 \family sans
7504 Revtex
7505 \begin_inset space ~
7506 \end_inset
7507
7508 4
7509 \family default
7510  template, found in the templates directory.
7511 \end_layout
7512
7513 \begin_layout Subsubsection
7514 Preamble Matter
7515 \end_layout
7516
7517 \begin_layout Standard
7518 Optional arguments to 
7519 \family typewriter
7520
7521 \backslash
7522 documentclass
7523 \family default
7524 , like 
7525 \begin_inset Quotes eld
7526 \end_inset
7527
7528 preprint
7529 \begin_inset Quotes erd
7530 \end_inset
7531
7532  and 
7533 \begin_inset Quotes eld
7534 \end_inset
7535
7536 aps
7537 \begin_inset Quotes erd
7538 \end_inset
7539
7540 , go in the 
7541 \family sans
7542 Extra
7543 \begin_inset space ~
7544 \end_inset
7545
7546 Options
7547 \family default
7548  field in the 
7549 \family sans
7550 Document
7551 \begin_inset space ~
7552 \end_inset
7553
7554 Layout
7555 \family default
7556  dialog, as usual.
7557  Remember that in Rev\SpecialChar TeX
7558 , at least one optional argument is required! 
7559 \end_layout
7560
7561 \begin_layout Standard
7562 Other preamble matter, like 
7563 \family typewriter
7564
7565 \backslash
7566 draft
7567 \family default
7568  etc.
7569 \begin_inset space ~
7570 \end_inset
7571
7572 goes in the 
7573 \family sans
7574 \SpecialChar LaTeX
7575
7576 \begin_inset space ~
7577 \end_inset
7578
7579 Preamble
7580 \family default
7581  dialog, also as usual.
7582 \end_layout
7583
7584 \begin_layout Subsubsection
7585 Layouts
7586 \end_layout
7587
7588 \begin_layout Standard
7589 The layouts basically correspond to the commands in Rev\SpecialChar TeX
7590 4.0.
7591  For example, the Email layout corresponds to 
7592 \family typewriter
7593
7594 \backslash
7595 email{}
7596 \family default
7597 .
7598  Note that (at least as of Rev\SpecialChar TeX
7599  4.0 Beta), the 
7600 \family sans
7601 Address
7602 \family default
7603  and 
7604 \family sans
7605 Affiliation
7606 \family default
7607  layouts are exactly equivalent, so you shouldn't need to use both.
7608 \begin_inset Foot
7609 status collapsed
7610
7611 \begin_layout Plain Layout
7612 In case you're curious, both were included so that 
7613 \family typewriter
7614 tex2lyx
7615 \family default
7616  would be able to translate both 
7617 \family typewriter
7618
7619 \backslash
7620 address
7621 \family default
7622  and 
7623 \family typewriter
7624
7625 \backslash
7626 affiliation
7627 \family default
7628 .
7629 \end_layout
7630
7631 \end_inset
7632
7633
7634 \end_layout
7635
7636 \begin_layout Subsubsection
7637 Important Notes
7638 \end_layout
7639
7640 \begin_layout Standard
7641 There are a couple of important unique aspects of Rev\SpecialChar TeX
7642  4 which might cause
7643  bugs that will be even more confusing in \SpecialChar LyX
7644 .
7645 \end_layout
7646
7647 \begin_layout Standard
7648 In Rev\SpecialChar TeX
7649 , the 
7650 \family typewriter
7651
7652 \backslash
7653 thanks
7654 \family default
7655  command goes 
7656 \emph on
7657 outside
7658 \emph default
7659  the 
7660 \family typewriter
7661
7662 \backslash
7663 author
7664 \family default
7665  command.
7666  The \SpecialChar LyX
7667  equivalent is that there is a separate Thanks layout.
7668  Do 
7669 \emph on
7670 not
7671 \emph default
7672  write footnotes in the 
7673 \family sans
7674 Author
7675 \family default
7676  layout, or weird things may happen.
7677  See the Rev\SpecialChar TeX
7678  4 documentation for more details.
7679 \end_layout
7680
7681 \begin_layout Standard
7682 Also, the 
7683 \family sans
7684 Author
7685 \begin_inset space ~
7686 \end_inset
7687
7688 Email
7689 \family default
7690
7691 \family sans
7692 Author
7693 \begin_inset space ~
7694 \end_inset
7695
7696 URL
7697 \family default
7698 , and 
7699 \family sans
7700 Thanks
7701 \family default
7702  layouts must be placed 
7703 \emph on
7704 in between
7705 \emph default
7706  the 
7707 \family sans
7708 Author
7709 \family default
7710  layout and the corresponding 
7711 \family sans
7712 Address
7713 \family default
7714  (or equivalent 
7715 \family sans
7716 Affiliation
7717 \family default
7718 ) layout.
7719  If you put the 
7720 \family sans
7721 Thanks
7722 \family default
7723  after the 
7724 \family sans
7725 Address
7726 \family default
7727 , the \SpecialChar LaTeX
7728  won't compile.
7729 \end_layout
7730
7731 \begin_layout Subsection
7732
7733 \change_inserted 564990737 1671042072
7734
7735 \lang american
7736 Springer Journals
7737 \end_layout
7738
7739 \begin_layout Standard
7740
7741 \change_inserted 564990737 1671042072
7742
7743 \lang american
7744 All the 
7745 \family sans
7746 svj*
7747 \family default
7748  classes were replaced in 2013 with a completely new 
7749 \family sans
7750 sr-vorl.cls
7751 \family default
7752 .
7753  This package provides a \SpecialChar LaTeX
7754  class and templates for books to be published
7755  at Springer Gabler Research, Springer Vieweg Research, Springer Spektrum
7756  Research, Springer VS Research, or Springer VS Forschung.
7757  The documentation is available in German from 
7758 \begin_inset CommandInset href
7759 LatexCommand href
7760 name "CTAN"
7761 target "http://mirrors.ctan.org/macros/latex/contrib/springer/sr-vorl/sr-vorl.pdf"
7762 literal "false"
7763
7764 \end_inset
7765
7766 .
7767 \end_layout
7768
7769 \begin_layout Section
7770
7771 \change_inserted 564990737 1670439560
7772 Books
7773 \end_layout
7774
7775 \begin_layout Standard
7776
7777 \change_inserted 564990737 1670439581
7778 See also the document classes in the Collections (section
7779 \begin_inset space ~
7780 \end_inset
7781
7782
7783 \begin_inset CommandInset ref
7784 LatexCommand ref
7785 reference "sec:Collections"
7786
7787 \end_inset
7788
7789 ).
7790 \end_layout
7791
7792 \begin_layout Subsection
7793 Memoir
7794 \end_layout
7795
7796 \begin_layout Standard
7797 By 
7798 \noun on
7799 Jürgen Spitzmüller
7800 \end_layout
7801
7802 \begin_layout Subsubsection
7803 Overview
7804 \end_layout
7805
7806 \begin_layout Standard
7807 Memoir is a very powerful and constantly evolving class.
7808  It has been designed with regard to fictional and non-fictional literature.
7809  Its aim is to let the user have maximum control over the typesetting of
7810  his document.
7811  Memoir is based on the standard book class, but it can also emulate the
7812  article class (see below).
7813 \end_layout
7814
7815 \begin_layout Standard
7816 Peter Wilson, the developer of Memoir, is known as the author of lots of
7817  useful packages in the \SpecialChar LaTeX
7818  world.
7819  Most of them have been merged with Memoir.
7820  Therefore, it is much easier to layout the table of contents, appendices,
7821  chapter designs and such.
7822  \SpecialChar LyX
7823 , though, does not support all of these goodies natively.
7824  Some of them might be added to forthcoming releases
7825 \begin_inset Foot
7826 status collapsed
7827
7828 \begin_layout Plain Layout
7829 You are invited to send suggestions to 
7830 \begin_inset Flex URL
7831 status collapsed
7832
7833 \begin_layout Plain Layout
7834
7835 lyx-devel@lists.lyx.org
7836 \end_layout
7837
7838 \end_inset
7839
7840 .
7841 \end_layout
7842
7843 \end_inset
7844
7845 , lots will probably never be supported, due to the limitations of \SpecialChar LyX
7846 's framework.
7847  Of course you can still use all features with the help of some native \SpecialChar LaTeX
7848
7849  commands (\SpecialChar TeX
7850  code
7851 \begin_inset Foot
7852 status collapsed
7853
7854 \begin_layout Plain Layout
7855 Cf.
7856 \begin_inset ERT
7857 status collapsed
7858
7859 \begin_layout Plain Layout
7860
7861
7862 \backslash
7863  
7864 \end_layout
7865
7866 \end_inset
7867
7868 section
7869 \begin_inset space ~
7870 \end_inset
7871
7872
7873 \begin_inset CommandInset ref
7874 LatexCommand ref
7875 reference "sec:Inserting-TeX-Code"
7876
7877 \end_inset
7878
7879  for details.
7880 \end_layout
7881
7882 \end_inset
7883
7884 ).
7885  In this section, we can only list those features that are natively supported
7886  by \SpecialChar LyX
7887 .
7888  For detailed descriptions (and for the rest of features) we recommend you
7889  have a look at the detailed manual of the Memoir class
7890 \begin_inset Foot
7891 status collapsed
7892
7893 \begin_layout Plain Layout
7894 Cf.
7895 \begin_inset ERT
7896 status collapsed
7897
7898 \begin_layout Plain Layout
7899
7900
7901 \backslash
7902  
7903 \end_layout
7904
7905 \end_inset
7906
7907
7908 \begin_inset Flex URL
7909 status collapsed
7910
7911 \begin_layout Plain Layout
7912
7913 CTAN:/macros/latex/memoir/memman.pdf
7914 \end_layout
7915
7916 \end_inset
7917
7918 .
7919 \end_layout
7920
7921 \end_inset
7922
7923 , which is not only a user guide for the class, but also both a comprehensive
7924  description on good typesetting and a superb example for good typesetting
7925  itself.
7926 \end_layout
7927
7928 \begin_layout Subsubsection
7929 Basic features and restrictions
7930 \end_layout
7931
7932 \begin_layout Standard
7933 Memoir supports basically all features of the standard book classes.
7934  There are, however, some differences, as follows:
7935 \end_layout
7936
7937 \begin_layout Description
7938 Font
7939 \begin_inset space ~
7940 \end_inset
7941
7942 sizes: Memoir has a broader range of font sizes: 9, 10, 11, 12, 14, 17
7943 \end_layout
7944
7945 \begin_layout Description
7946 Page
7947 \begin_inset space ~
7948 \end_inset
7949
7950 style: The fancy page style is not supported, due to a command clash between
7951  Memoir and the fancyhdr package (they both define a command with the same
7952  name, which confuses \SpecialChar LaTeX
7953 ).
7954  Instead, Memoir comes with a number of its own page styles (see 
7955 \family sans
7956 Document\SpecialChar menuseparator
7957 Settings\SpecialChar menuseparator
7958 Page
7959 \begin_inset space ~
7960 \end_inset
7961
7962 Style
7963 \family default
7964 ).
7965  If you want to use these for the chapter pages, you have to use the command
7966  
7967 \family typewriter
7968
7969 \backslash
7970 chapterstyle
7971 \family default
7972  in the main text or in preamble (e.
7973 \begin_inset space \thinspace{}
7974 \end_inset
7975
7976 g.
7977 \begin_inset space \space{}
7978 \end_inset
7979
7980
7981 \family typewriter
7982
7983 \backslash
7984 chapterstyle{companion}
7985 \family default
7986 ).
7987 \end_layout
7988
7989 \begin_layout Description
7990 Sectioning: Sectionings (chapter, section, subsection etc.) come with an
7991  optional argument in the standard classes.
7992  With this, you can specify an alternative version of the title for the
7993  table of contents and the headers (for instance, if the title is too long).
7994  In \SpecialChar LyX
7995 , you can do this via 
7996 \family sans
7997 Insert\SpecialChar menuseparator
7998 Short
7999 \begin_inset space ~
8000 \end_inset
8001
8002 Title
8003 \family default
8004  at the beginning of a chapter/section.
8005  Memoir features a second optional argument and thus separates the table
8006  of contents from the header.
8007  You can define three variants of a title with this: one for the main text,
8008  one for the table of contents, and one for the headers.
8009  \SpecialChar LyX
8010  makes these available in form of specific 
8011 \family sans
8012 Short Title
8013 \family default
8014  variants in the 
8015 \family sans
8016 Insert
8017 \family default
8018  menu.
8019 \end_layout
8020
8021 \begin_layout Description
8022 TOC/LOT/LOF: In the standard classes (and in many other classes), the table
8023  of contents, the list of figures and the list of table start a new page
8024  automatically.
8025  Memoir does not follow this route.
8026  You have to insert a page break yourself, if you want to have one.
8027 \end_layout
8028
8029 \begin_layout Description
8030 Titlepage: For some unknown reason, Memoir uses pagination on the title
8031  page (in the standard classes, title pages are 
8032 \begin_inset Quotes eld
8033 \end_inset
8034
8035 empty
8036 \begin_inset Quotes erd
8037 \end_inset
8038
8039 ).
8040  If you want an empty title page, type 
8041 \family typewriter
8042
8043 \backslash
8044 aliaspagestyle{title}{empty}
8045 \family default
8046  in the preamble.
8047 \end_layout
8048
8049 \begin_layout Description
8050 Article: With the class option 
8051 \emph on
8052 article
8053 \emph default
8054  (to be inserted in 
8055 \family sans
8056 Document\SpecialChar menuseparator
8057 Settings\SpecialChar menuseparator
8058 Class Settings\SpecialChar menuseparator
8059 Custom
8060 \begin_inset space ~
8061 \end_inset
8062
8063 Options
8064 \family default
8065 ), you can emulate article style.
8066  That is, counters (footnotes, figures, tables etc.) will not be reset on
8067  new chapters, chapters don't start a new page (but are—in contrary to 
8068 \begin_inset Quotes eld
8069 \end_inset
8070
8071 real
8072 \begin_inset Quotes erd
8073 \end_inset
8074
8075  article classes—still allowed), parts, though, use their own page, as in
8076  book.
8077 \end_layout
8078
8079 \begin_layout Description
8080 Oldfontcommands: By default, Memoir does not allow the use of the deprecated
8081  font commands, which have been used in the old \SpecialChar LaTeX
8082  version 2.09 (e.
8083 \begin_inset space \thinspace{}
8084 \end_inset
8085
8086 g.
8087 \begin_inset space \space{}
8088 \end_inset
8089
8090
8091 \family typewriter
8092
8093 \backslash
8094 rm
8095 \family default
8096
8097 \family typewriter
8098
8099 \backslash
8100 it
8101 \family default
8102 ).
8103  It produces an error and stops \SpecialChar LaTeX
8104  whenever such a command appears.
8105  The class option 
8106 \emph on
8107 oldfontcommands
8108 \emph default
8109  reallows the commands and spits out warnings instead (which does at least
8110  not stop \SpecialChar LaTeX
8111 ).
8112  Since a lot of packages and particularly Bib\SpecialChar TeX
8113  style files are still using
8114  those commands, we have decided to use this option by default.
8115 \end_layout
8116
8117 \begin_layout Subsubsection
8118 Extra features
8119 \end_layout
8120
8121 \begin_layout Standard
8122 We will only describe the features supported by \SpecialChar LyX
8123  (which is not much currently).
8124  Please consult the Memoir manual
8125 \begin_inset Foot
8126 status collapsed
8127
8128 \begin_layout Plain Layout
8129 Cf.
8130 \begin_inset ERT
8131 status collapsed
8132
8133 \begin_layout Plain Layout
8134
8135
8136 \backslash
8137  
8138 \end_layout
8139
8140 \end_inset
8141
8142
8143 \begin_inset Flex URL
8144 status collapsed
8145
8146 \begin_layout Plain Layout
8147
8148 CTAN:/macros/latex/memoir/memman.pdf
8149 \end_layout
8150
8151 \end_inset
8152
8153 .
8154 \end_layout
8155
8156 \end_inset
8157
8158  for details.
8159 \end_layout
8160
8161 \begin_layout Description
8162 Abstract: You may wonder why an abstract is an extra feature.
8163  Well, it is in book class.
8164  Usually books don't have abstracts.
8165  Memoir, however, has.
8166  You can use it wherever and how often you like.
8167 \end_layout
8168
8169 \begin_layout Description
8170 Chapterprecis: You may know this older typesetting style: The contents of
8171  a chapter are summarized below the title and also in the table of contents
8172  (e.
8173 \begin_inset space \thinspace{}
8174 \end_inset
8175
8176 g.
8177 \begin_inset space \space{}
8178 \end_inset
8179
8180
8181 \emph on
8182 Our hero arrives in Troia; he loses some friends; he finds others
8183 \emph default
8184 ).
8185  Chapterprecis does exactly this.
8186  It is therefore only sensible below a chapter.
8187 \end_layout
8188
8189 \begin_layout Description
8190 Epigraph: An epigraph is a smart slogan or motto at the beginning of a chapter.
8191  The epigraph environment provides an elegant way of typesetting such a
8192  motto.
8193  The motto itself (text) and its (optional) author (source) are divided
8194  by a short line.
8195  The author (source) can be inserted via 
8196 \family sans
8197 Insert\SpecialChar menuseparator
8198 Epigraph Source
8199 \family default
8200 \emph on
8201 .
8202 \end_layout
8203
8204 \begin_layout Description
8205 Poemtitle: Memoir has lots of possibilities to typeset poetry (up to very
8206  complex figurative poems).
8207  \SpecialChar LyX
8208  can only support a few of them.
8209  One is poemtitle, which is a centered title for poems, which will also
8210  be added to the table of contents (verse is the standard environment for
8211  poems.
8212  Memoir has some enhanced versions of verse, but you need to use \SpecialChar TeX
8213  code,
8214  because they have to be nested inside regular verse environments, which
8215  is not possible with \SpecialChar LyX
8216 ).
8217 \end_layout
8218
8219 \begin_layout Description
8220 Poemtitle*: Same as poemtitle, but it adds no entry to the table of contents.
8221 \end_layout
8222
8223 \begin_layout Subsection
8224
8225 \change_inserted 564990737 1671442175
8226
8227 \lang american
8228 Recipe Book
8229 \end_layout
8230
8231 \begin_layout Standard
8232
8233 \change_inserted 564990737 1671442175
8234
8235 \lang american
8236 The document class 
8237 \family typewriter
8238 RecipeBook.cls
8239 \family default
8240  uses the 
8241 \family sans
8242 book
8243 \begin_inset space \thinspace{}
8244 \end_inset
8245
8246 (KOMA-Script)
8247 \family default
8248  document class but adds two environments:
8249 \end_layout
8250
8251 \begin_layout Description
8252
8253 \change_inserted 564990737 1671442175
8254
8255 \lang american
8256 Recipe a numbered section environment at the 
8257 \family typewriter
8258 Subsubsection
8259 \family default
8260  level which generates a bold centered heading above a double horizontal
8261  rule
8262 \end_layout
8263
8264 \begin_layout Description
8265
8266 \change_inserted 564990737 1671442175
8267
8268 \lang american
8269 Ingredients a 
8270 \family typewriter
8271 Description
8272 \family default
8273  environment where 
8274 \series bold
8275 \emph on
8276 Ingredients
8277 \series default
8278 \emph default
8279  are what are being described and the environment ends with a horizontal
8280  rule.
8281 \end_layout
8282
8283 \begin_layout Standard
8284
8285 \change_inserted 564990737 1671642866
8286
8287 \family sans
8288 \lang british
8289 File\SpecialChar menuseparator
8290 Open Example\SpecialChar menuseparator
8291 Books\SpecialChar menuseparator
8292 Recipe Book
8293 \family default
8294 \lang american
8295  illustrates its use.
8296 \end_layout
8297
8298 \begin_layout Standard
8299
8300 \change_inserted 564990737 1671442175
8301
8302 \lang american
8303 It is designed for typesetting one or two recipes per page, with dimensions
8304  of 5.5
8305 \begin_inset Quotes qrd
8306 \end_inset
8307
8308  x 8.5
8309 \begin_inset Quotes qrd
8310 \end_inset
8311
8312 .
8313  The hyperlinked table of contents (ToC) and page numbers make browsing
8314  recipes convenient, and the pages can be joined together or printed 2 per
8315  page to normal letterpaper easily.
8316  The size was chosen to work in half-page 3-ring binder cover sheets, because
8317  un-laminated paper just doesn't last in the kitchen.
8318 \end_layout
8319
8320 \begin_layout Standard
8321
8322 \change_inserted 564990737 1671442175
8323
8324 \lang american
8325 The half-letter pages can be printed two per page using your printer driver,
8326  or bound together using 
8327 \family typewriter
8328 pdfjam --nup 2x1 --papersize '{11in,8.5in}'
8329 \family default
8330  
8331 \family typewriter
8332 Recipes.pdf
8333 \family default
8334  where 
8335 \family typewriter
8336 Recipes.pdf
8337 \family default
8338  is the compiled version of your recipes.
8339 \end_layout
8340
8341 \begin_layout Section
8342
8343 \change_inserted 564990737 1671442207
8344 Curricula vitarum
8345 \end_layout
8346
8347 \begin_layout Subsection
8348
8349 \change_inserted 564990737 1671442208
8350
8351 \lang american
8352 Europass
8353 \end_layout
8354
8355 \begin_layout Standard
8356
8357 \change_inserted 564990737 1671642942
8358
8359 \lang american
8360 The document class 
8361 \family sans
8362 curriculum
8363 \begin_inset space \space{}
8364 \end_inset
8365
8366 vitae
8367 \begin_inset space \thinspace{}
8368 \end_inset
8369
8370 (Europass)
8371 \family default
8372  provides the 
8373 \family typewriter
8374 europasscv.cls
8375 \family default
8376  document class, an unofficial implementation of the ‘Europass CV’ recommended
8377  by the European Commission in 2013.
8378  
8379 \family sans
8380 \lang british
8381 File\SpecialChar menuseparator
8382 Open Example\SpecialChar menuseparator
8383 Curricula Vitae\SpecialChar menuseparator
8384 Europass CV (2013)
8385 \family default
8386 \lang american
8387  offers guidance on its use.
8388  Its documentation is available from 
8389 \begin_inset CommandInset href
8390 LatexCommand href
8391 name "CTAN"
8392 target "http://mirrors.ctan.org/macros/latex/contrib/europasscv/europasscv.pdf"
8393 literal "false"
8394
8395 \end_inset
8396
8397 .
8398 \end_layout
8399
8400 \begin_layout Subsection
8401
8402 \change_inserted 564990737 1671442208
8403
8404 \lang american
8405 European
8406 \end_layout
8407
8408 \begin_layout Standard
8409
8410 \change_inserted 564990737 1671642984
8411
8412 \lang american
8413 The document class 
8414 \family sans
8415 curriculum
8416 \begin_inset space \space{}
8417 \end_inset
8418
8419 vitae
8420 \begin_inset space \thinspace{}
8421 \end_inset
8422
8423 (Europe)
8424 \family default
8425  provides the 
8426 \family typewriter
8427 europecv.cls
8428 \family default
8429  document class, an unofficial implementation of the “Europass CV” recommended
8430  by the European Commission in 2002.
8431  
8432 \family sans
8433 \lang british
8434 File\SpecialChar menuseparator
8435 Open Example\SpecialChar menuseparator
8436 Curricula Vitae\SpecialChar menuseparator
8437 Europe CV
8438 \family default
8439 \lang american
8440  offers guidance on its use.
8441  Its documentation is available from 
8442 \begin_inset CommandInset href
8443 LatexCommand href
8444 name "CTAN"
8445 target "http://mirrors.ctan.org/macros/latex/contrib/europecv/europecv.pdf"
8446 literal "false"
8447
8448 \end_inset
8449
8450 .
8451 \end_layout
8452
8453 \begin_layout Subsection
8454
8455 \change_inserted 564990737 1671442208
8456
8457 \lang american
8458 Modern
8459 \end_layout
8460
8461 \begin_layout Standard
8462
8463 \change_inserted 564990737 1671643003
8464
8465 \lang american
8466 The document class 
8467 \family sans
8468 curriculum
8469 \begin_inset space \space{}
8470 \end_inset
8471
8472 vitae
8473 \begin_inset space \thinspace{}
8474 \end_inset
8475
8476 (modern)
8477 \family default
8478  provides the 
8479 \family typewriter
8480 moderncv.cls
8481 \family default
8482  document class.
8483  This allows the creation of customizable CVs.
8484  
8485 \family sans
8486 \lang british
8487 File\SpecialChar menuseparator
8488 Open Example\SpecialChar menuseparator
8489 Curricula Vitae\SpecialChar menuseparator
8490 Modern CV
8491 \family default
8492 \lang american
8493  offers guidance on its use.
8494  Its documentation is available from 
8495 \begin_inset CommandInset href
8496 LatexCommand href
8497 name "CTAN"
8498 target "http://mirrors.ctan.org/macros/latex/contrib/moderncv/manual/moderncv_userguide.pdf"
8499 literal "false"
8500
8501 \end_inset
8502
8503 .
8504 \end_layout
8505
8506 \begin_layout Subsection
8507
8508 \change_inserted 564990737 1671442208
8509
8510 \lang american
8511 Simple
8512 \end_layout
8513
8514 \begin_layout Standard
8515
8516 \change_inserted 564990737 1671643024
8517
8518 \lang american
8519 The document class 
8520 \family sans
8521 curriculum
8522 \begin_inset space \space{}
8523 \end_inset
8524
8525 vitae
8526 \begin_inset space \thinspace{}
8527 \end_inset
8528
8529 (simple)
8530 \family default
8531  provides the 
8532 \family typewriter
8533 simplecv.cls
8534 \family default
8535  document class, originally developed for use with \SpecialChar LyX
8536 .
8537  
8538 \family sans
8539 \lang british
8540 File\SpecialChar menuseparator
8541 Open Example\SpecialChar menuseparator
8542 Curricula Vitae\SpecialChar menuseparator
8543 Simple CV
8544 \family default
8545 \lang american
8546  offers guidance on its use.
8547  Its documentation is available from 
8548 \begin_inset CommandInset href
8549 LatexCommand href
8550 name "CTAN"
8551 target "http://mirrors.ctan.org/macros/latex/contrib/simplecv/simplecv.pdf"
8552 literal "false"
8553
8554 \end_inset
8555
8556
8557 \end_layout
8558
8559 \begin_layout Section
8560
8561 \change_inserted 564990737 1671041968
8562 Letters
8563 \end_layout
8564
8565 \begin_layout Subsection
8566
8567 \change_inserted 564990737 1671041970
8568
8569 \lang american
8570 Din-Brief
8571 \end_layout
8572
8573 \begin_layout Standard
8574
8575 \change_inserted 564990737 1671617528
8576
8577 \lang american
8578 The document class 
8579 \family sans
8580 Din-Brief
8581 \family default
8582  provides the 
8583 \family typewriter
8584 dinbrief.cls
8585 \family default
8586  document class for writing letters according to the 
8587 \emph on
8588 Deutsches Institut für Normung
8589 \emph default
8590  conventions.
8591  The file in the menu 
8592 \family sans
8593 \bar under
8594 F
8595 \bar default
8596 ile\SpecialChar menuseparator
8597 New
8598 \begin_inset space ~
8599 \end_inset
8600
8601 fro
8602 \bar under
8603 m
8604 \bar default
8605
8606 \begin_inset space ~
8607 \end_inset
8608
8609 Template\SpecialChar menuseparator
8610 Letters\SpecialChar menuseparator
8611 DIN-Brief
8612 \family default
8613  offers guidance on its use.
8614  The documentation is available from 
8615 \begin_inset CommandInset href
8616 LatexCommand href
8617 name "CTAN"
8618 target "http://mirrors.ctan.org/macros/latex/contrib/dinbrief/liesmich"
8619 literal "false"
8620
8621 \end_inset
8622
8623 .
8624 \end_layout
8625
8626 \begin_layout Subsection
8627
8628 \change_inserted 564990737 1671458835
8629
8630 \lang american
8631 letter
8632 \end_layout
8633
8634 \begin_layout Standard
8635
8636 \change_inserted 564990737 1671617591
8637
8638 \lang american
8639 The document class 
8640 \family sans
8641 letter
8642 \family default
8643  provides the 
8644 \family sans
8645 letter.cls
8646 \family default
8647  document class for English letters and to create mailing labels.
8648  The file in the menu 
8649 \family sans
8650 \bar under
8651 F
8652 \bar default
8653 ile\SpecialChar menuseparator
8654 New
8655 \begin_inset space ~
8656 \end_inset
8657
8658 fro
8659 \bar under
8660 m
8661 \bar default
8662
8663 \begin_inset space ~
8664 \end_inset
8665
8666 Template\SpecialChar menuseparator
8667 Letters\SpecialChar menuseparator
8668 Letter (Standard Class)
8669 \family default
8670  offers guidance on its use.
8671 \end_layout
8672
8673 \begin_layout Section
8674
8675 \change_inserted 564990737 1670439660
8676 Presentations
8677 \end_layout
8678
8679 \begin_layout Subsection
8680
8681 \change_inserted 564990737 1671458922
8682
8683 \lang american
8684 Beamer
8685 \end_layout
8686
8687 \begin_layout Standard
8688
8689 \change_inserted 564990737 1671617655
8690
8691 \lang american
8692 The document class 
8693 \family sans
8694 presentation
8695 \begin_inset space \thinspace{}
8696 \end_inset
8697
8698 (beamer)
8699 \family default
8700  uses the 
8701 \family typewriter
8702 beamer.cls
8703 \family default
8704  document class for creating presentations.
8705  The file in the menu 
8706 \family sans
8707 \bar under
8708 F
8709 \bar default
8710 ile\SpecialChar menuseparator
8711 New
8712 \begin_inset space ~
8713 \end_inset
8714
8715 fro
8716 \bar under
8717 m
8718 \bar default
8719
8720 \begin_inset space ~
8721 \end_inset
8722
8723 Template\SpecialChar menuseparator
8724 Presentations\SpecialChar menuseparator
8725 Beamer
8726 \family default
8727  offers guidance on its use.
8728  The documentation is available from 
8729 \begin_inset CommandInset href
8730 LatexCommand href
8731 name "CTAN"
8732 target "http://mirrors.ctan.org/macros/latex/contrib/beamer/doc/beameruserguide.pdf"
8733 literal "false"
8734
8735 \end_inset
8736
8737 .
8738 \end_layout
8739
8740 \begin_layout Subsection
8741 Foils [aka 
8742 \family sans
8743 Foil\SpecialChar TeX
8744
8745 \family default
8746 ]
8747 \begin_inset CommandInset label
8748 LatexCommand label
8749 name "sec:foiltex"
8750
8751 \end_inset
8752
8753
8754 \end_layout
8755
8756 \begin_layout Standard
8757 by 
8758 \noun on
8759 Allan Rae
8760 \end_layout
8761
8762 \begin_layout Subsubsection
8763 Introduction
8764 \end_layout
8765
8766 \begin_layout Standard
8767 This section describes how to use \SpecialChar LyX
8768  to make slides for overhead projectors.
8769  There are two document classes that can do this: the default slides class
8770  and the 
8771 \family sans
8772 Foil\SpecialChar TeX
8773
8774 \family default
8775  slides class.
8776  This section documents the latter.
8777 \end_layout
8778
8779 \begin_layout Standard
8780 I'm going to say this again, nice and clear, so that there's no misunderstanding
8781 :
8782 \end_layout
8783
8784 \begin_layout Standard
8785 \begin_inset VSpace bigskip
8786 \end_inset
8787
8788
8789 \end_layout
8790
8791 \begin_layout Standard
8792 \align center
8793
8794 \size large
8795 This section documents the class 
8796 \begin_inset Quotes eld
8797 \end_inset
8798
8799
8800 \family sans
8801 FoilTeX
8802 \family default
8803
8804 \begin_inset Quotes erd
8805 \end_inset
8806
8807  
8808 \emph on
8809 only.
8810 \end_layout
8811
8812 \begin_layout Standard
8813 \begin_inset VSpace bigskip
8814 \end_inset
8815
8816
8817 \end_layout
8818
8819 \begin_layout Standard
8820 If you're looking for the documentation for 
8821 \begin_inset Quotes eld
8822 \end_inset
8823
8824
8825 \family sans
8826 slides (default)
8827 \family default
8828
8829 \begin_inset Quotes erd
8830 \end_inset
8831
8832 , check out section
8833 \begin_inset space ~
8834 \end_inset
8835
8836
8837 \begin_inset CommandInset ref
8838 LatexCommand ref
8839 reference "sec:slitex"
8840
8841 \end_inset
8842
8843 .
8844  If your machine doesn't have the 
8845 \family sans
8846 foils
8847 \family default
8848  class 
8849 \family sans
8850 FoilTeX
8851 \family default
8852  installed, you'll probably have to use the default 
8853 \family sans
8854 slides
8855 \family default
8856  class, which isn't quite as good as 
8857 \family sans
8858 foils.
8859 \end_layout
8860
8861 \begin_layout Standard
8862 The 
8863 \family sans
8864 foils
8865 \family default
8866  class is designed for use with version
8867 \begin_inset space ~
8868 \end_inset
8869
8870 2.1 of the 
8871 \family sans
8872 foils.cls
8873 \family default
8874  \SpecialChar LaTeX
8875  class file which is now an integral part of \SpecialChar LaTeX2e
8876 .
8877 \end_layout
8878
8879 \begin_layout Subsubsection
8880 Getting Started
8881 \end_layout
8882
8883 \begin_layout Standard
8884 Obviously, to use this document class, you need to select 
8885 \family sans
8886 FoilTeX
8887 \family default
8888  from the 
8889 \family sans
8890 Class
8891 \family default
8892  entry in the 
8893 \family sans
8894 Document
8895 \begin_inset space ~
8896 \end_inset
8897
8898 Layout
8899 \family default
8900  dialog.
8901  There are some settings in the 
8902 \family sans
8903 Document
8904 \begin_inset space ~
8905 \end_inset
8906
8907 Layout
8908 \family default
8909  dialog that you should know about that are specific to this class:
8910 \end_layout
8911
8912 \begin_layout Itemize
8913 Don't change the options 
8914 \family sans
8915 Sides
8916 \family default
8917  and 
8918 \family sans
8919 Columns
8920 \family default
8921  on the 
8922 \family sans
8923 Document
8924 \begin_inset space ~
8925 \end_inset
8926
8927 Layout
8928 \family default
8929  dialog.
8930  They're ignored by the 
8931 \family sans
8932 foils
8933 \family default
8934  class.
8935 \end_layout
8936
8937 \begin_layout Itemize
8938 The default font size is 20
8939 \begin_inset space \thinspace{}
8940 \end_inset
8941
8942 pt with the other options being 17
8943 \begin_inset space \thinspace{}
8944 \end_inset
8945
8946 pt, 25
8947 \begin_inset space \thinspace{}
8948 \end_inset
8949
8950 pt and 30
8951 \begin_inset space \thinspace{}
8952 \end_inset
8953
8954 pt.
8955 \end_layout
8956
8957 \begin_layout Itemize
8958 The default font is 
8959 \family sans
8960 sans
8961 \family default
8962  
8963 \family sans
8964 serif
8965 \family default
8966  but all math equations are still typeset in the usual roman font.
8967 \end_layout
8968
8969 \begin_layout Itemize
8970
8971 \family sans
8972 Foil\SpecialChar TeX
8973
8974 \family default
8975  supports A4 and Letter paper sizes as well as a special size for working
8976  with 35
8977 \begin_inset space \thinspace{}
8978 \end_inset
8979
8980 mm slides.
8981  It doesn't support A5, B5, legal or executive paper sizes.
8982 \end_layout
8983
8984 \begin_layout Itemize
8985 Don't bother changing the 
8986 \family sans
8987 Float Placement
8988 \family default
8989  settings because they are ignored anyway.
8990  All floats appear where they are defined in the text.
8991 \end_layout
8992
8993 \begin_layout Itemize
8994 The 
8995 \family sans
8996 Pagestyle
8997 \family default
8998  setting behaves a bit differently for this class.
8999  
9000 \family sans
9001 Foil\SpecialChar TeX
9002
9003 \family default
9004  provides extensive footer and header capabilities including a user-defined
9005  logo.
9006  See section
9007 \begin_inset space ~
9008 \end_inset
9009
9010
9011 \begin_inset CommandInset ref
9012 LatexCommand ref
9013 reference "sec:foilfoot"
9014
9015 \end_inset
9016
9017  for more details.
9018  The title page is treated differently to all other pages in the document
9019  and is 
9020 \emph on
9021 always
9022 \emph default
9023  unnumbered and 
9024 \emph on
9025 always
9026 \emph default
9027  has the logo centered at the bottom of the page (if one is defined).
9028  The possible page style choices and what they do are as follows:
9029 \end_layout
9030
9031 \begin_deeper
9032 \begin_layout Labeling
9033 \labelwidthstring MMMMMMM
9034
9035 \family sans
9036 \series bold
9037 empty
9038 \family default
9039 \series default
9040  The final output contains no page numbers, or other headers or footers
9041  (except footnotes of course).
9042  
9043 \end_layout
9044
9045 \begin_layout Labeling
9046 \labelwidthstring MMMMMMM
9047
9048 \family sans
9049 \series bold
9050 plain
9051 \family default
9052 \series default
9053  The final output contains page numbers centered at the bottom of the page.
9054  No other headings or footers (other than footnotes).
9055 \end_layout
9056
9057 \begin_layout Labeling
9058 \labelwidthstring MMMMMMM
9059
9060 \series bold
9061 foilheadings
9062 \series default
9063  Page numbers in lower right corner.
9064  Additional headers and footers are also shown.
9065  This is also the default.
9066 \end_layout
9067
9068 \begin_layout Labeling
9069 \labelwidthstring MMMMMMM
9070
9071 \series bold
9072 fancy
9073 \series default
9074  Gives you access to the 
9075 \family sans
9076 fancyheadings
9077 \family default
9078  package although its use with 
9079 \family sans
9080 Foil\SpecialChar TeX
9081
9082 \family default
9083  is discouraged by the writer of the 
9084 \family sans
9085 Foil\SpecialChar TeX
9086
9087 \family default
9088  package because of some potential page layout clashes.
9089 \end_layout
9090
9091 \end_deeper
9092 \begin_layout Paragraph
9093 Extra Options
9094 \end_layout
9095
9096 \begin_layout Standard
9097 The following options may be used in the extra class options in the 
9098 \family sans
9099 Document\SpecialChar menuseparator
9100 Settings
9101 \family default
9102  dialog.
9103 \end_layout
9104
9105 \begin_layout Labeling
9106 \labelwidthstring MMMMMMx
9107
9108 \series bold
9109 35mmSlide
9110 \series default
9111  This sets up the page layout for 7.33
9112 \begin_inset space \thinspace{}
9113 \end_inset
9114
9115 in by 11
9116 \begin_inset space \thinspace{}
9117 \end_inset
9118
9119 in paper, which is about the same aspect ratio as a 35
9120 \begin_inset space \thinspace{}
9121 \end_inset
9122
9123 mm slide, making it a bit easier to work with this medium.
9124 \end_layout
9125
9126 \begin_layout Labeling
9127 \labelwidthstring MMMMMMx
9128
9129 \series bold
9130 headrule
9131 \series default
9132  Places a rule across the page below the header on every page except the
9133  title page.
9134 \end_layout
9135
9136 \begin_layout Labeling
9137 \labelwidthstring MMMMMMx
9138
9139 \series bold
9140 footrule
9141 \series default
9142  Places a rule across the page above the footer on every page except the
9143  title page.
9144 \end_layout
9145
9146 \begin_layout Labeling
9147 \labelwidthstring MMMMMMx
9148
9149 \series bold
9150 dvips
9151 \series default
9152  This is automatically set each time you create a new 
9153 \family sans
9154 foils
9155 \family default
9156  document.
9157  This option tells 
9158 \family sans
9159 Foil\SpecialChar TeX
9160
9161 \family default
9162  to use the dvips driver to rotate those pages that are set as landscape
9163  foils.
9164 \end_layout
9165
9166 \begin_layout Labeling
9167 \labelwidthstring MMMMMMx
9168
9169 \series bold
9170 landscape
9171 \series default
9172  Simply changes the page dimensions to those of a landscape page but doesn't
9173  do any rotation.
9174  Thus if you use this option you need to use an external program to rotate
9175  each page or feed your paper through your printer as landscape.
9176  Note that this option effectively reverses the roles of the 
9177 \family sans
9178 Foilhead
9179 \family default
9180  and 
9181 \family sans
9182 Rotatefoilhead
9183 \family default
9184  environments (don't worry these are described in the next section).
9185 \end_layout
9186
9187 \begin_layout Labeling
9188 \labelwidthstring MMMMMMx
9189
9190 \series bold
9191 leqno
9192 \series default
9193  Equation numbers on the left.
9194 \end_layout
9195
9196 \begin_layout Labeling
9197 \labelwidthstring MMMMMMx
9198
9199 \series bold
9200 fleqn
9201 \series default
9202  Flush-left equations.
9203 \end_layout
9204
9205 \begin_layout Subsubsection
9206 Supported Environments
9207 \end_layout
9208
9209 \begin_layout Standard
9210 Most of the environments commonly supported in other classes are also supported
9211  by the 
9212 \family sans
9213 foils
9214 \family default
9215  class.
9216  There are several additional environments provided by 
9217 \family sans
9218 Foil\SpecialChar TeX
9219
9220 \family default
9221  as well as a couple added by \SpecialChar LyX
9222 .
9223  The following environments are shared with other classes:
9224 \end_layout
9225
9226 \begin_layout Standard
9227 \begin_inset Flex Multiple Columns
9228 status open
9229
9230 \begin_layout Itemize
9231
9232 \family sans
9233 Standard
9234 \end_layout
9235
9236 \begin_layout Itemize
9237
9238 \family sans
9239 Itemize
9240 \end_layout
9241
9242 \begin_layout Itemize
9243
9244 \family sans
9245 Enumerate
9246 \end_layout
9247
9248 \begin_layout Itemize
9249
9250 \family sans
9251 Description
9252 \end_layout
9253
9254 \begin_layout Itemize
9255
9256 \family sans
9257 List
9258 \end_layout
9259
9260 \begin_layout Itemize
9261
9262 \family sans
9263 \SpecialChar LyX
9264 -Code
9265 \end_layout
9266
9267 \begin_layout Itemize
9268
9269 \family sans
9270 Verse
9271 \end_layout
9272
9273 \begin_layout Itemize
9274
9275 \family sans
9276 Quote
9277 \end_layout
9278
9279 \begin_layout Itemize
9280
9281 \family sans
9282 Quotation
9283 \end_layout
9284
9285 \begin_layout Itemize
9286
9287 \family sans
9288 TitleAuthor
9289 \end_layout
9290
9291 \begin_layout Itemize
9292
9293 \family sans
9294 Date
9295 \end_layout
9296
9297 \begin_layout Itemize
9298
9299 \family sans
9300 Abstract
9301 \end_layout
9302
9303 \begin_layout Itemize
9304
9305 \family sans
9306 Bibliography
9307 \end_layout
9308
9309 \begin_layout Itemize
9310
9311 \family sans
9312 Address
9313 \end_layout
9314
9315 \begin_layout Itemize
9316
9317 \family sans
9318 RightAddress
9319 \end_layout
9320
9321 \end_inset
9322
9323
9324 \end_layout
9325
9326 \begin_layout Standard
9327 That is, all the major environments apart from the sectioning environments.
9328  Since foils are essentially self-contained sections, with a title and body,
9329  
9330 \family sans
9331 Foil\SpecialChar TeX
9332
9333 \family default
9334  provides specific commands for starting new foils and these are:
9335 \end_layout
9336
9337 \begin_layout Itemize
9338
9339 \family sans
9340 Foilhead
9341 \end_layout
9342
9343 \begin_layout Itemize
9344
9345 \family sans
9346 Rotatefoilhead
9347 \end_layout
9348
9349 \begin_layout Standard
9350 \SpecialChar LyX
9351  also provides slightly modified versions of these two environments called:
9352 \end_layout
9353
9354 \begin_layout Itemize
9355
9356 \family sans
9357 ShortFoilhead
9358 \end_layout
9359
9360 \begin_layout Itemize
9361
9362 \family sans
9363 ShortRotatefoilhead
9364 \end_layout
9365
9366 \begin_layout Standard
9367 and the differences will be explained in the next section.
9368 \end_layout
9369
9370 \begin_layout Standard
9371 Since foils are often used in presenting ideas or new theorems and such
9372  
9373 \family sans
9374 Foil\SpecialChar TeX
9375
9376 \family default
9377  also provides a comprehensive box of goodies for presenting them:
9378 \end_layout
9379
9380 \begin_layout Standard
9381 \begin_inset Flex Multiple Columns
9382 status open
9383
9384 \begin_layout Itemize
9385
9386 \family sans
9387 Theorem
9388 \end_layout
9389
9390 \begin_layout Itemize
9391
9392 \family sans
9393 Lemma
9394 \end_layout
9395
9396 \begin_layout Itemize
9397
9398 \family sans
9399 Corollary
9400 \end_layout
9401
9402 \begin_layout Itemize
9403
9404 \family sans
9405 Proposition
9406 \end_layout
9407
9408 \begin_layout Itemize
9409
9410 \family sans
9411 Definition
9412 \end_layout
9413
9414 \begin_layout Itemize
9415
9416 \family sans
9417 Proof
9418 \end_layout
9419
9420 \begin_layout Itemize
9421
9422 \family sans
9423 Theorem*
9424 \end_layout
9425
9426 \begin_layout Itemize
9427
9428 \family sans
9429 Lemma*
9430 \end_layout
9431
9432 \begin_layout Itemize
9433
9434 \family sans
9435 Corollary*
9436 \end_layout
9437
9438 \begin_layout Itemize
9439
9440 \family sans
9441 Proposition*
9442 \end_layout
9443
9444 \begin_layout Itemize
9445
9446 \family sans
9447 Definition*
9448 \end_layout
9449
9450 \end_inset
9451
9452
9453 \end_layout
9454
9455 \begin_layout Standard
9456 The starred versions are unnumbered while the unstarred versions are numbered.
9457  There are also two list environments added by \SpecialChar LyX
9458  and these are:
9459 \end_layout
9460
9461 \begin_layout Itemize
9462
9463 \family sans
9464 TickList
9465 \end_layout
9466
9467 \begin_layout Itemize
9468
9469 \family sans
9470 CrossList
9471 \end_layout
9472
9473 \begin_layout Standard
9474
9475 \family sans
9476 Foil\SpecialChar TeX
9477
9478 \family default
9479  provides some powerful header and footer capabilities that are best set
9480  in the preamble although they may be set at any point in a document.
9481  If you want to change these settings in your document the best place to
9482  do so is at the very top of a foil, i.
9483 \begin_inset space \thinspace{}
9484 \end_inset
9485
9486 e.
9487 \emph on
9488
9489 \begin_inset space \space{}
9490 \end_inset
9491
9492
9493 \emph default
9494 straight after the foilhead.
9495 \end_layout
9496
9497 \begin_layout Standard
9498 For this purpose, the following command styles are provided [
9499 \shape smallcaps
9500 Martin Vermeer
9501 \shape default
9502 ]:
9503 \end_layout
9504
9505 \begin_layout Standard
9506 \begin_inset Flex Multiple Columns
9507 status open
9508
9509 \begin_layout Itemize
9510
9511 \family sans
9512 My
9513 \begin_inset space ~
9514 \end_inset
9515
9516 Logo
9517 \end_layout
9518
9519 \begin_layout Itemize
9520
9521 \family sans
9522 Restriction
9523 \end_layout
9524
9525 \begin_layout Itemize
9526
9527 \family sans
9528 Right
9529 \begin_inset space ~
9530 \end_inset
9531
9532 Footer
9533 \end_layout
9534
9535 \begin_layout Itemize
9536
9537 \family sans
9538 Right
9539 \begin_inset space ~
9540 \end_inset
9541
9542 Header
9543 \end_layout
9544
9545 \begin_layout Itemize
9546
9547 \family sans
9548 Left
9549 \begin_inset space ~
9550 \end_inset
9551
9552 Header
9553 \end_layout
9554
9555 \begin_deeper
9556 \begin_layout Plain Layout
9557 \begin_inset space ~
9558 \end_inset
9559
9560
9561 \end_layout
9562
9563 \end_deeper
9564 \end_inset
9565
9566
9567 \end_layout
9568
9569 \begin_layout Standard
9570 There are also a few commands provided by 
9571 \family sans
9572 Foil\SpecialChar TeX
9573
9574 \family default
9575  that aren't directly supported by \SpecialChar LyX
9576  but I'll tell you what they do and how
9577  to use them in section
9578 \begin_inset space ~
9579 \end_inset
9580
9581
9582 \begin_inset CommandInset ref
9583 LatexCommand ref
9584 reference "sec:unsuppfoils"
9585
9586 \end_inset
9587
9588 .
9589 \end_layout
9590
9591 \begin_layout Subsubsection
9592 Building a Set of Foils
9593 \end_layout
9594
9595 \begin_layout Standard
9596 This section will give a simple introduction to using the different environments
9597  to build a set of foils.
9598  If you want to see an example set of foils, take a look at 
9599 \change_deleted 564990737 1671643085
9600 the 
9601 \family typewriter
9602 Foils.lyx
9603 \family default
9604  file you find in \SpecialChar LyX
9605 's 
9606 \family typewriter
9607 examples
9608 \family default
9609  folder
9610 \change_inserted 564990737 1671643099
9611
9612 \family sans
9613 \lang british
9614 File\SpecialChar menuseparator
9615 Open Example
9616 \lang english
9617 \SpecialChar menuseparator
9618 Presentations\SpecialChar menuseparator
9619 Foils
9620 \change_unchanged
9621
9622 \family default
9623 .
9624 \end_layout
9625
9626 \begin_layout Paragraph
9627 Give It a Title Page
9628 \end_layout
9629
9630 \begin_layout Standard
9631 Unlike other classes that provide 
9632 \family sans
9633 Title
9634 \family default
9635
9636 \family sans
9637 Author
9638 \family default
9639
9640 \family sans
9641 Date
9642 \family default
9643  and 
9644 \family sans
9645 Abstract
9646 \family default
9647  environments, 
9648 \family sans
9649 foils
9650 \family default
9651  creates the title on a page of its own.
9652  If you leave out the 
9653 \family sans
9654 Date
9655 \family default
9656  environment \SpecialChar LaTeX
9657  will substitute the current date (every time you regenerate
9658  the output).
9659 \end_layout
9660
9661 \begin_layout Paragraph
9662 Start a New Foil
9663 \end_layout
9664
9665 \begin_layout Standard
9666 As I mentioned earlier, there are four ways of starting a new foil.
9667  For portrait foils you should use 
9668 \family sans
9669 Foilhead
9670 \family default
9671  or 
9672 \family sans
9673 ShortFoilhead.
9674
9675 \family default
9676  The difference between these two environments is the amount of space between
9677  the title of the foil (the foilhead) and the body of the foil.
9678 \end_layout
9679
9680 \begin_layout Standard
9681 Landscape foils are generated using the 
9682 \family sans
9683 Rotatefoilhead
9684 \family default
9685  and 
9686 \family sans
9687 ShortRotatefoilhead
9688 \family default
9689  environments.
9690  Again the only difference is the spacing between foilhead and body.
9691  Both of the short versions have 0.5
9692 \begin_inset space ~
9693 \end_inset
9694
9695 inches less separation between the foilhead and the body.
9696  
9697 \end_layout
9698
9699 \begin_layout Standard
9700 One problem with the support for landscape foils is the requirement that
9701  you have to use the 
9702 \family typewriter
9703 dvips
9704 \family default
9705  driver to generate the PostScript output otherwise the foils won't be rotated.
9706  It is possible to get landscape foils even if you haven't got the 
9707 \family typewriter
9708 dvips
9709 \family default
9710  driver provided you can feed your foils sideways through your printer ;-)
9711 \end_layout
9712
9713 \begin_layout Paragraph
9714 Theorems, Lemmas, Proofs and more
9715 \end_layout
9716
9717 \begin_layout Standard
9718 You can't have two of the same type of these environments directly following
9719  each other.
9720  If you use a normal paragraph break, , you will just be extending the previous
9721  environment as if you had merged the two environments together.
9722  Rather than that, you need to insert a so-called separator.
9723  Please refer to the section entitled 
9724 \emph on
9725 Separate Nestings
9726 \emph default
9727  in the 
9728 \emph on
9729 User's Guide
9730 \emph default
9731 .
9732 \end_layout
9733
9734 \begin_layout Paragraph
9735 Lists
9736 \end_layout
9737
9738 \begin_layout Standard
9739 You get all the commonly supported list styles found in other classes as
9740  well as two new ones.
9741  I'll only describe the new ones here.
9742  If you want to find out more about the other list environments check out
9743  the 
9744 \emph on
9745 User's Guide.
9746
9747 \emph default
9748  If you intend to use itemized lists you might also want to read about the
9749  
9750 \family sans
9751 Itemize
9752 \begin_inset space ~
9753 \end_inset
9754
9755 Bullet
9756 \begin_inset space ~
9757 \end_inset
9758
9759 Selection
9760 \family default
9761  dialog described above in section
9762 \begin_inset space ~
9763 \end_inset
9764
9765
9766 \change_inserted 564990737 1671355684
9767
9768 \begin_inset CommandInset ref
9769 LatexCommand ref
9770 reference "chap:bullets"
9771
9772 \end_inset
9773
9774
9775 \change_deleted 564990737 1671355684
9776
9777 \begin_inset CommandInset ref
9778 LatexCommand ref
9779 reference "sec:bullet"
9780
9781 \end_inset
9782
9783
9784 \change_unchanged
9785 .
9786 \end_layout
9787
9788 \begin_layout Standard
9789 The two new list styles, 
9790 \family sans
9791 TickList
9792 \family default
9793  and 
9794 \family sans
9795 CrossList
9796 \family default
9797 , are designed to make it easier for you to create lists of do's and don'ts
9798  or right and wrong by providing dedicated environments that use a tick
9799  or a cross as the label of the list.
9800  These lists are in fact dedicated variants of the 
9801 \family sans
9802 Itemize
9803 \family default
9804  environment.
9805  They do however require that you have the 
9806 \family typewriter
9807 psnfss
9808 \family default
9809  packages installed.
9810 \end_layout
9811
9812 \begin_layout Paragraph
9813 Figures and Tables
9814 \end_layout
9815
9816 \begin_layout Standard
9817
9818 \family sans
9819 Foil\SpecialChar TeX
9820
9821 \family default
9822  redefines the floating tables and figures so that they appear exactly where
9823  they are in the text rather than pushing them to the top of the page or
9824  to some user specified location.
9825  In fact if you change the float placement settings they are simply ignored.
9826 \end_layout
9827
9828 \begin_layout Paragraph
9829 Page Headers and Footers
9830 \begin_inset CommandInset label
9831 LatexCommand label
9832 name "sec:foilfoot"
9833
9834 \end_inset
9835
9836
9837 \end_layout
9838
9839 \begin_layout Standard
9840
9841 \family sans
9842 My
9843 \begin_inset space ~
9844 \end_inset
9845
9846 Logo
9847 \family default
9848  and 
9849 \family sans
9850 Restriction
9851 \family default
9852  are two commands used to control the left-footer text string.
9853  The first is meant to allow you to include a graphic logo on your foils
9854  and defaults to 
9855 \begin_inset Quotes eld
9856 \end_inset
9857
9858 -Typeset by 
9859 \family sans
9860 Foil\SpecialChar TeX
9861
9862 \family default
9863 -
9864 \begin_inset Quotes erd
9865 \end_inset
9866
9867 .
9868  While the second is meant to provide a classification for the audience,
9869  
9870 \emph on
9871 e.
9872 \begin_inset space \thinspace{}
9873 \end_inset
9874
9875 g.
9876 \emph default
9877
9878 \begin_inset space \space{}
9879 \end_inset
9880
9881 Confidential.
9882  It is empty by default.
9883 \end_layout
9884
9885 \begin_layout Standard
9886 The remaining page corners can be filled by 
9887 \family sans
9888 Right
9889 \begin_inset space ~
9890 \end_inset
9891
9892 Footer
9893 \family default
9894  (which defaults to page numbers), 
9895 \family sans
9896 Right
9897 \begin_inset space ~
9898 \end_inset
9899
9900 Header
9901 \family default
9902  (top right) and 
9903 \family sans
9904 Left
9905 \begin_inset space ~
9906 \end_inset
9907
9908 Header
9909 \family default
9910  (top left).
9911 \end_layout
9912
9913 \begin_layout Subsubsection
9914 Unsupported 
9915 \family sans
9916 Foil\SpecialChar TeX
9917
9918 \family default
9919  Goodies
9920 \begin_inset CommandInset label
9921 LatexCommand label
9922 name "sec:unsuppfoils"
9923
9924 \end_inset
9925
9926
9927 \end_layout
9928
9929 \begin_layout Standard
9930 All the commands mentioned below need to be set in a 
9931 \family sans
9932 \SpecialChar LaTeX
9933
9934 \family default
9935  environment or as 
9936 \family sans
9937 \SpecialChar TeX
9938
9939 \family default
9940  within another environment.
9941 \end_layout
9942
9943 \begin_layout Paragraph
9944 Lengths
9945 \end_layout
9946
9947 \begin_layout Standard
9948 All lengths are adjusted using the 
9949 \family typewriter
9950
9951 \backslash
9952 setlength{
9953 \family default
9954 \emph on
9955 lengthname
9956 \family typewriter
9957 \emph default
9958 }{
9959 \family default
9960 \emph on
9961 newlength
9962 \family typewriter
9963 \emph default
9964 }
9965 \family default
9966  command.
9967  Where 
9968 \emph on
9969 lengthname
9970 \emph default
9971  should be replaced by the name given to the length you want to change and
9972  
9973 \emph on
9974 newlength
9975 \emph default
9976  is the length value.
9977  All lengths should be specified in units of length such as inches (
9978 \family typewriter
9979 in
9980 \family default
9981 ), millimeters (
9982 \family typewriter
9983 mm
9984 \family default
9985 ) or points (
9986 \family typewriter
9987 pt
9988 \family default
9989 ) or relative to some document or font-based length such as 
9990 \family typewriter
9991
9992 \backslash
9993 textwidth
9994 \family default
9995 .
9996  
9997 \end_layout
9998
9999 \begin_layout Standard
10000 It's possible to change the spacing between a foilhead and the body of the
10001  foil by adjusting the length specified by 
10002 \family typewriter
10003
10004 \backslash
10005 foilheadskip
10006 \family default
10007 .
10008  For example, to make 
10009 \emph on
10010 all
10011 \emph default
10012  foilheads 0.5
10013 \begin_inset space \space{}
10014 \end_inset
10015
10016 in closer to their bodies put the following in the preamble: 
10017 \family typewriter
10018
10019 \backslash
10020 setlength{
10021 \backslash
10022 foilheadskip}{-0.5in}
10023 \end_layout
10024
10025 \begin_layout Standard
10026 The spacings around floats can be adjusted by setting these lengths:
10027 \end_layout
10028
10029 \begin_layout Labeling
10030 \labelwidthstring MMMMMMMMMMM
10031
10032 \family typewriter
10033
10034 \backslash
10035 abovefloatskip
10036 \family default
10037  Separation between the text and the top of the float
10038 \end_layout
10039
10040 \begin_layout Labeling
10041 \labelwidthstring MMMMMMMMMMM
10042
10043 \family typewriter
10044
10045 \backslash
10046 abovecaptionskip
10047 \family default
10048  Separation between the float and the caption
10049 \end_layout
10050
10051 \begin_layout Labeling
10052 \labelwidthstring MMMMMMMMMMM
10053
10054 \family typewriter
10055
10056 \backslash
10057 belowcaptionskip
10058 \family default
10059  Separation between the caption and the following text
10060 \end_layout
10061
10062 \begin_layout Labeling
10063 \labelwidthstring MMMMMMMMMMM
10064
10065 \family typewriter
10066
10067 \backslash
10068 captionwidth
10069 \family default
10070  You can make the captions narrower than the surrounding text by adjusting
10071  this length.
10072  Best done relative to 
10073 \family typewriter
10074
10075 \backslash
10076 textwidth
10077 \family default
10078 .
10079 \end_layout
10080
10081 \begin_layout Standard
10082 There are also several title page related lengths that you may find useful
10083  if you have a long title or several authors:
10084 \end_layout
10085
10086 \begin_layout Labeling
10087 \labelwidthstring MMMMMMMMMMM
10088
10089 \family typewriter
10090
10091 \backslash
10092 abovetitleskip
10093 \family default
10094  Separation from headers to 
10095 \family sans
10096 Title
10097 \end_layout
10098
10099 \begin_layout Labeling
10100 \labelwidthstring MMMMMMMMMMM
10101
10102 \family typewriter
10103
10104 \backslash
10105 titleauthorskip
10106 \family default
10107  between 
10108 \family sans
10109 Title
10110 \family default
10111  and 
10112 \family sans
10113 Author
10114 \family default
10115  environments
10116 \end_layout
10117
10118 \begin_layout Labeling
10119 \labelwidthstring MMMMMMMMMMM
10120
10121 \family typewriter
10122
10123 \backslash
10124 authorauthorskip
10125 \family default
10126  between multiple 
10127 \family sans
10128 Author
10129 \family default
10130  lines
10131 \end_layout
10132
10133 \begin_layout Labeling
10134 \labelwidthstring MMMMMMMMMMM
10135
10136 \family typewriter
10137
10138 \backslash
10139 authordateskip
10140 \family default
10141  between the 
10142 \family sans
10143 Author
10144 \family default
10145  and the 
10146 \family sans
10147 Date
10148 \end_layout
10149
10150 \begin_layout Labeling
10151 \labelwidthstring MMMMMMMMMMM
10152
10153 \family typewriter
10154
10155 \backslash
10156 dateabstractskip
10157 \family default
10158  between the 
10159 \family sans
10160 Date
10161 \family default
10162  and the 
10163 \family sans
10164 Abstract
10165 \end_layout
10166
10167 \begin_layout Standard
10168 The last length related command affects all the list environments.
10169  If you place 
10170 \family typewriter
10171
10172 \backslash
10173 zerolistvertdimens
10174 \family default
10175  
10176 \emph on
10177 inside
10178 \emph default
10179  a list environment then all the vertical spacing between the list items
10180  is removed.
10181  Note that this is a command not a length so it doesn't require 
10182 \family typewriter
10183
10184 \backslash
10185 setlength
10186 \family default
10187  like the stuff mentioned above.
10188 \end_layout
10189
10190 \begin_layout Paragraph
10191 Headers and Footers
10192 \end_layout
10193
10194 \begin_layout Standard
10195 The 
10196 \family typewriter
10197
10198 \backslash
10199 LogoOn
10200 \family default
10201  and 
10202 \family typewriter
10203
10204 \backslash
10205 LogoOff
10206 \family default
10207  commands control whether the logo in the 
10208 \family sans
10209 MyLogo
10210 \family default
10211  definition appear on a given page.
10212  If you put 
10213 \family typewriter
10214
10215 \backslash
10216 LogoOff
10217 \family default
10218  in the preamble then none of the foils will have the logo on them.
10219  If you don't want the logo on a particular page place the 
10220 \family typewriter
10221
10222 \backslash
10223 LogoOff
10224 \family default
10225  directly after the foilhead of that page and the 
10226 \family typewriter
10227
10228 \backslash
10229 LogoOn
10230 \family default
10231  directly after the next foilhead.
10232 \end_layout
10233
10234 \begin_layout Standard
10235 If you decide to use the 
10236 \family sans
10237 fancy
10238 \family default
10239  page style setting in the 
10240 \family sans
10241 Document
10242 \begin_inset space ~
10243 \end_inset
10244
10245 Layout
10246 \family default
10247  dialog you should probably add 
10248 \family typewriter
10249
10250 \backslash
10251 let
10252 \backslash
10253 headwidth
10254 \backslash
10255 textwidth
10256 \family default
10257  to your preamble so headers and footers on landscape pages are correctly
10258  placed when rotated.
10259  This is due to some clashes between the page layouts provided by the 
10260 \family sans
10261 fancyheadings
10262 \family default
10263  package and the 
10264 \family sans
10265 foils
10266 \family default
10267  class.
10268 \end_layout
10269
10270 \begin_layout Subsection
10271
10272 \change_inserted 564990737 1671459032
10273
10274 \lang american
10275 Powerdot
10276 \end_layout
10277
10278 \begin_layout Standard
10279
10280 \change_inserted 564990737 1671643165
10281
10282 \lang american
10283 The document class 
10284 \family sans
10285 presentation
10286 \begin_inset space \thinspace{}
10287 \end_inset
10288
10289 (powerdot)
10290 \family default
10291  uses the 
10292 \family typewriter
10293 powerdot.cls
10294 \family default
10295  document class for creating presentations.
10296  
10297 \family sans
10298 \lang british
10299 File\SpecialChar menuseparator
10300 Open Example\SpecialChar menuseparator
10301 Presentations\SpecialChar menuseparator
10302 Powerdot
10303 \family default
10304 \lang american
10305  offers guidance on its use.
10306  The documentation is available from 
10307 \begin_inset CommandInset href
10308 LatexCommand href
10309 name "CTAN"
10310 target "http://mirrors.ctan.org/macros/latex/contrib/powerdot/doc/powerdot.pdf"
10311 literal "false"
10312
10313 \end_inset
10314
10315 .
10316 \end_layout
10317
10318 \begin_layout Subsection
10319
10320 \change_inserted 564990737 1671459032
10321
10322 \lang american
10323 \begin_inset CommandInset label
10324 LatexCommand label
10325 name "subsec:Seminar"
10326
10327 \end_inset
10328
10329
10330 \family sans
10331 Seminar
10332 \end_layout
10333
10334 \begin_layout Standard
10335
10336 \change_inserted 564990737 1671643194
10337
10338 \lang american
10339 The document class 
10340 \family sans
10341 presentations
10342 \begin_inset space \thinspace{}
10343 \end_inset
10344
10345 (seminar)
10346 \family default
10347  uses the 
10348 \family typewriter
10349 seminar.cls
10350 \family default
10351  document class for creating presentations.
10352  
10353 \family sans
10354 \lang british
10355 File\SpecialChar menuseparator
10356 Open Example\SpecialChar menuseparator
10357 Presentations\SpecialChar menuseparator
10358 Seminar
10359 \family default
10360 \lang american
10361  offers guidance on its use.
10362  The documentation is available from 
10363 \begin_inset CommandInset href
10364 LatexCommand href
10365 name "CTAN"
10366 target "http://mirrors.ctan.org/macros/latex/contrib/seminar/doc/seminar-doc.pdf"
10367 literal "false"
10368
10369 \end_inset
10370
10371 .
10372 \end_layout
10373
10374 \begin_layout Subsection
10375 Slides [aka 
10376 \noun on
10377 Sli\SpecialChar TeX
10378
10379 \noun default
10380 ]
10381 \begin_inset CommandInset label
10382 LatexCommand label
10383 name "sec:slitex"
10384
10385 \end_inset
10386
10387
10388 \end_layout
10389
10390 \begin_layout Standard
10391 by 
10392 \noun on
10393 John Weiss
10394 \noun default
10395  
10396 \end_layout
10397
10398 \begin_layout Subsubsection
10399 Introduction
10400 \end_layout
10401
10402 \begin_layout Standard
10403 This section describes how to use \SpecialChar LyX
10404  to make slides for overhead projectors.
10405  There are two document classes that can do this: the default slides class
10406  and the 
10407 \family sans
10408 Foil\SpecialChar TeX
10409
10410 \family default
10411  slides class.
10412  This section documents the former.
10413 \end_layout
10414
10415 \begin_layout Standard
10416 I'm going to say this again, nice and clear, so that there's no misunderstanding
10417 :
10418 \end_layout
10419
10420 \begin_layout Standard
10421 \begin_inset VSpace bigskip
10422 \end_inset
10423
10424
10425 \end_layout
10426
10427 \begin_layout Standard
10428 \align center
10429
10430 \size large
10431 This section documents the class 
10432 \begin_inset Quotes eld
10433 \end_inset
10434
10435
10436 \family sans
10437 slides (default)
10438 \family default
10439
10440 \begin_inset Quotes erd
10441 \end_inset
10442
10443  
10444 \emph on
10445 only.
10446 \end_layout
10447
10448 \begin_layout Standard
10449 \begin_inset VSpace bigskip
10450 \end_inset
10451
10452
10453 \end_layout
10454
10455 \begin_layout Standard
10456 If you're looking for the documentation for 
10457 \begin_inset Quotes eld
10458 \end_inset
10459
10460
10461 \family sans
10462 slides (Foil\SpecialChar TeX
10463 )
10464 \family default
10465
10466 \begin_inset Quotes erd
10467 \end_inset
10468
10469 , check out section
10470 \begin_inset space ~
10471 \end_inset
10472
10473
10474 \begin_inset CommandInset ref
10475 LatexCommand ref
10476 reference "sec:foiltex"
10477
10478 \end_inset
10479
10480 .
10481  The 
10482 \family sans
10483 foils
10484 \family default
10485  class [
10486 \begin_inset Quotes eld
10487 \end_inset
10488
10489
10490 \family sans
10491 slides (Foil\SpecialChar TeX
10492 )
10493 \family default
10494
10495 \begin_inset Quotes erd
10496 \end_inset
10497
10498 ] is actually somewhat better than the default 
10499 \family sans
10500 slides
10501 \family default
10502  class,
10503 \begin_inset Foot
10504 status collapsed
10505
10506 \begin_layout Plain Layout
10507 \SpecialChar ldots
10508 or so I've been told repeatedly by its advocates.
10509  Having never used it, I have no idea if this claim is true or not.
10510 \end_layout
10511
10512 \end_inset
10513
10514  which this section documents.
10515 \end_layout
10516
10517 \begin_layout Standard
10518 This class is the \SpecialChar LaTeX2e
10519  improvement of the old 
10520 \noun on
10521 Sli\SpecialChar TeX
10522
10523 \noun default
10524  package.
10525  Every \SpecialChar LaTeX2e
10526  distribution includes this class [which I'll just refer to as 
10527 \begin_inset Quotes eld
10528 \end_inset
10529
10530
10531 \family sans
10532 slides
10533 \family default
10534
10535 \begin_inset Quotes erd
10536 \end_inset
10537
10538  from now on], so you're bound to have it.
10539  As I noted earlier, there are other classes, such as 
10540 \family sans
10541 foils
10542 \family default
10543 , which also produce slides for overhead projectors and do a better job
10544  at it.
10545  However, there are some things which 
10546 \family sans
10547 slides
10548 \family default
10549  can do which the others can't, such as generate overlays.
10550  Read on to learn more!
10551 \end_layout
10552
10553 \begin_layout Subsubsection
10554 Getting Started
10555 \begin_inset CommandInset label
10556 LatexCommand label
10557 name "sec:slidesetup"
10558
10559 \end_inset
10560
10561
10562 \end_layout
10563
10564 \begin_layout Standard
10565 Obviously, to use this document class, you need to select 
10566 \begin_inset Quotes eld
10567 \end_inset
10568
10569
10570 \family sans
10571 slides (default)
10572 \family default
10573
10574 \begin_inset Quotes erd
10575 \end_inset
10576
10577  from the class list in the 
10578 \family sans
10579 Document\SpecialChar menuseparator
10580 Settings
10581 \family default
10582  dialog.
10583  There are some other special things you should know about this class:
10584 \end_layout
10585
10586 \begin_layout Itemize
10587 Don't bother changing the options 
10588 \family sans
10589 Sides and Columns
10590 \family default
10591 .
10592  They're not supported by the 
10593 \family sans
10594 slides
10595 \family default
10596  class, anyways.
10597 \end_layout
10598
10599 \begin_layout Itemize
10600 The option 
10601 \family sans
10602 Page
10603 \begin_inset space ~
10604 \end_inset
10605
10606 style
10607 \family default
10608  behaves a bit differently for this class.
10609  The possible choices and what they do are as follows:
10610 \end_layout
10611
10612 \begin_deeper
10613 \begin_layout Description
10614
10615 \family sans
10616 plain
10617 \family default
10618  The final output contains page numbers in the lower right corner.
10619 \end_layout
10620
10621 \begin_layout Description
10622
10623 \family sans
10624 headings
10625 \family default
10626  Like 
10627 \family sans
10628 plain
10629 \family default
10630 , but also prints out any time markers you've put in.
10631  This is the default.
10632 \end_layout
10633
10634 \begin_layout Description
10635
10636 \family sans
10637 empty
10638 \family default
10639  The final output contains no page numbers, time markers, or alignment markers.
10640 \end_layout
10641
10642 \end_deeper
10643 \begin_layout Itemize
10644 The 
10645 \family sans
10646 slides
10647 \family default
10648  class has an extra option: 
10649 \family typewriter
10650 clock
10651 \family default
10652 .
10653  To use it, put 
10654 \begin_inset Quotes eld
10655 \end_inset
10656
10657
10658 \family typewriter
10659 clock
10660 \family default
10661
10662 \begin_inset Quotes erd
10663 \end_inset
10664
10665  in the extra class options.
10666 \end_layout
10667
10668 \begin_deeper
10669 \begin_layout Standard
10670 Using this options allows you to add time markers to 
10671 \family sans
10672 Note
10673 \family default
10674 s.
10675  See section
10676 \begin_inset space ~
10677 \end_inset
10678
10679
10680 \begin_inset CommandInset ref
10681 LatexCommand ref
10682 reference "sec:slideNote"
10683
10684 \end_inset
10685
10686  for more details.
10687 \end_layout
10688
10689 \end_deeper
10690 \begin_layout Standard
10691 You can also use the template file
10692 \change_deleted 564990737 1671617694
10693  
10694 \begin_inset Quotes eld
10695 \end_inset
10696
10697
10698 \family typewriter
10699 slides.lyx
10700 \family default
10701
10702 \begin_inset Quotes erd
10703 \end_inset
10704
10705
10706 \change_unchanged
10707  to automatically set up a document to use the 
10708 \family sans
10709 slides
10710 \family default
10711  class 
10712 \change_deleted 564990737 1671617699
10713 [
10714 \change_unchanged
10715 using 
10716 \family sans
10717 File\SpecialChar menuseparator
10718 New
10719 \begin_inset space ~
10720 \end_inset
10721
10722 from
10723 \begin_inset space ~
10724 \end_inset
10725
10726 Template
10727 \change_inserted 564990737 1671617723
10728 \SpecialChar menuseparator
10729 Presentations\SpecialChar menuseparator
10730 Slides
10731 \change_unchanged
10732
10733 \family default
10734  to open your new document
10735 \change_deleted 564990737 1671617728
10736 ]
10737 \change_unchanged
10738 .
10739  The template file also contains some examples of the special paragraph
10740  environments used by this class.
10741  I'll describe those next.
10742 \end_layout
10743
10744 \begin_layout Subsubsection
10745 Paragraph Environments
10746 \end_layout
10747
10748 \begin_layout Paragraph
10749 Supported Environments
10750 \end_layout
10751
10752 \begin_layout Standard
10753 The first thing you'll notice when you start up a new 
10754 \family sans
10755 slides
10756 \family default
10757  document is the font size and type: it's the equivalent of the size 
10758 \begin_inset Quotes eld
10759 \end_inset
10760
10761
10762 \family sans
10763 Largest
10764 \family default
10765
10766 \begin_inset Quotes erd
10767 \end_inset
10768
10769  in the 
10770 \family sans
10771 Sans
10772 \begin_inset space ~
10773 \end_inset
10774
10775 Serif
10776 \family default
10777  font.
10778  This is also what's used in the output.
10779  Think of this as a 
10780 \begin_inset Quotes eld
10781 \end_inset
10782
10783 visual cue
10784 \begin_inset Quotes erd
10785 \end_inset
10786
10787  to remind you that this is a slide.
10788  Your final slides will use a larger font; ergo, you'll have less space.
10789  Of course, the larger default screen font isn't WYSIWYG, only a reminder.
10790 \end_layout
10791
10792 \begin_layout Standard
10793 The next thing that becomes obvious is the changes to the paragraph environment
10794  pull-down box [at the far-left end of the toolbar].
10795  Most of the paragraph environments you're used to seeing are missing.
10796  There are also five new ones.
10797  That's because the 
10798 \family sans
10799 slides
10800 \family default
10801  class itself only supports certain paragraph environments:
10802 \end_layout
10803
10804 \begin_layout Itemize
10805
10806 \family sans
10807 Standard
10808 \end_layout
10809
10810 \begin_layout Itemize
10811
10812 \family sans
10813 Itemize
10814 \end_layout
10815
10816 \begin_layout Itemize
10817
10818 \family sans
10819 Enumerate
10820 \end_layout
10821
10822 \begin_layout Itemize
10823
10824 \family sans
10825 Description
10826 \end_layout
10827
10828 \begin_layout Itemize
10829
10830 \family sans
10831 List
10832 \end_layout
10833
10834 \begin_layout Itemize
10835
10836 \family sans
10837 Quotation
10838 \end_layout
10839
10840 \begin_layout Itemize
10841
10842 \family sans
10843 Quote
10844 \end_layout
10845
10846 \begin_layout Itemize
10847
10848 \family sans
10849 Verse
10850 \end_layout
10851
10852 \begin_layout Itemize
10853
10854 \family sans
10855 Caption
10856 \end_layout
10857
10858 \begin_layout Itemize
10859
10860 \family sans
10861 \SpecialChar LyX
10862 -Code
10863 \end_layout
10864
10865 \begin_layout Standard
10866 All of the other standard environments, including the section-heading environmen
10867 ts, aren't used in the 
10868 \family sans
10869 slides
10870 \family default
10871  class.
10872 \end_layout
10873
10874 \begin_layout Standard
10875 On the other hand, you'll notice the following new environments:
10876 \end_layout
10877
10878 \begin_layout Itemize
10879
10880 \family sans
10881 Slide
10882 \end_layout
10883
10884 \begin_layout Itemize
10885
10886 \family sans
10887 Overlay
10888 \end_layout
10889
10890 \begin_layout Itemize
10891
10892 \family sans
10893 Note
10894 \end_layout
10895
10896 \begin_layout Itemize
10897
10898 \family sans
10899 InvisibleText
10900 \end_layout
10901
10902 \begin_layout Itemize
10903
10904 \family sans
10905 VisibleText
10906 \end_layout
10907
10908 \begin_layout Standard
10909 These five are kind of quirky, due to a 
10910 \begin_inset Quotes eld
10911 \end_inset
10912
10913 feature
10914 \begin_inset Quotes erd
10915 \end_inset
10916
10917  in \SpecialChar LyX
10918 .
10919  You see, \SpecialChar LyX
10920  doesn't permit you to nest any other paragraph environment into
10921  an empty environment.
10922  Now, that's fine and dandy, but it means that you wouldn't be able to start
10923  a slide with anything except plain text.
10924  To deal with this, I've performed a little 
10925 \begin_inset Quotes eld
10926 \end_inset
10927
10928 \SpecialChar LaTeX
10929  magic.
10930 \begin_inset Quotes erd
10931 \end_inset
10932
10933  
10934 \end_layout
10935
10936 \begin_layout Paragraph
10937 Quirks of the New Environments
10938 \begin_inset CommandInset label
10939 LatexCommand label
10940 name "sec:slideQuirk"
10941
10942 \end_inset
10943
10944
10945 \end_layout
10946
10947 \begin_layout Standard
10948 All five of the new paragraph environments are somewhat quirky due to inherent
10949  limitiations in the current version of \SpecialChar LyX
10950 .
10951  As I just mentioned, \SpecialChar LyX
10952  forbids environments that begin with another environment.
10953  To get around this, the 
10954 \family sans
10955 Slide
10956 \family default
10957  environment isn't a paragraph environment as described in the 
10958 \emph on
10959 User's Guide
10960 \emph default
10961 .
10962  
10963 \end_layout
10964
10965 \begin_layout Standard
10966 You should consider 
10967 \family sans
10968 Slide
10969 \family default
10970
10971 \family sans
10972 Overlay
10973 \family default
10974 , and 
10975 \family sans
10976 Note
10977 \family default
10978  to be 
10979 \begin_inset Quotes eld
10980 \end_inset
10981
10982 pseudo-environments.
10983 \begin_inset Quotes erd
10984 \end_inset
10985
10986  They look like a section heading or a 
10987 \begin_inset Quotes eld
10988 \end_inset
10989
10990
10991 \family sans
10992 Caption
10993 \family default
10994 ,
10995 \begin_inset Quotes erd
10996 \end_inset
10997
10998  but really begin a [and, if necessary, end the previous] paragraph environment.
10999  Likewise, treat 
11000 \family sans
11001 InvisibleText
11002 \family default
11003  and 
11004 \family sans
11005 VisibleText
11006 \family default
11007  as 
11008 \begin_inset Quotes eld
11009 \end_inset
11010
11011 pseudo-commands.
11012 \begin_inset Quotes erd
11013 \end_inset
11014
11015  These two perform some action.
11016 \end_layout
11017
11018 \begin_layout Standard
11019 A common feature of all five environments, 
11020 \family sans
11021 Slide
11022 \family default
11023
11024 \family sans
11025 Overlay
11026 \family default
11027
11028 \family sans
11029 Note
11030 \family default
11031
11032 \family sans
11033 InvisibleText
11034 \family default
11035  and 
11036 \family sans
11037 VisibleText
11038 \family default
11039 , is a rather long-ish label.
11040  The text following this label — ordinarily the contents of the paragraph
11041  environment — is utterly irrelevant for 
11042 \family sans
11043 Slide
11044 \family default
11045
11046 \family sans
11047 Overlay
11048 \family default
11049
11050 \family sans
11051 Note
11052 \family default
11053
11054 \family sans
11055 InvisibleText
11056 \family default
11057  and 
11058 \family sans
11059 VisibleText
11060 \family default
11061 .
11062  \SpecialChar LyX
11063  completely ignores it.
11064  In fact, you can leave these five environments completely empty.
11065  
11066 \end_layout
11067
11068 \begin_layout Standard
11069 While you don't 
11070 \emph on
11071 have
11072 \emph default
11073  to put any text after the rather long-ish label, you might want to.
11074  This could be a short description of the contents of the 
11075 \family sans
11076 Slide
11077 \family default
11078 , for example.
11079  In that case, enter your descriptive comment and hit 
11080 \family sans
11081 Return
11082 \family default
11083  as you normally would.
11084 \end_layout
11085
11086 \begin_layout Standard
11087 If, on the other hand, you don't want to enter any descriptive text, you'll
11088  hit another \SpecialChar LyX
11089  quirk.
11090  \SpecialChar LyX
11091 , like nature, abhors a vacuum, and will not let you start a new paragraph
11092  environment until you put something in the old one.
11093  So, do this:
11094 \end_layout
11095
11096 \begin_layout Itemize
11097 Start entering the text that will 
11098 \emph on
11099 follow
11100 \emph default
11101  the new 
11102 \family sans
11103 Slide
11104 \family default
11105
11106 \family sans
11107 Overlay
11108 \family default
11109
11110 \family sans
11111 Note
11112 \family default
11113
11114 \family sans
11115 InvisibleText
11116 \family default
11117  or 
11118 \family sans
11119 VisibleText
11120 \family default
11121 .
11122  
11123 \end_layout
11124
11125 \begin_layout Itemize
11126 Now move to the beginning of that paragraph.
11127  
11128 \end_layout
11129
11130 \begin_layout Itemize
11131 Next, hit 
11132 \family sans
11133 Return
11134 \family default
11135 .
11136  
11137 \end_layout
11138
11139 \begin_layout Itemize
11140 Finally, change this new, empty paragraph to a 
11141 \family sans
11142 Slide
11143 \family default
11144
11145 \family sans
11146 Overlay
11147 \family default
11148
11149 \family sans
11150 Note
11151 \family default
11152
11153 \family sans
11154 InvisibleText
11155 \family default
11156  or 
11157 \family sans
11158 VisibleText
11159 \family default
11160 .
11161  
11162 \end_layout
11163
11164 \begin_layout Standard
11165 Some future version of \SpecialChar LyX
11166  will, hopefully, resolve this quirkiness\SpecialChar ldots
11167
11168 \end_layout
11169
11170 \begin_layout Subsubsection
11171 Making a Presentation with 
11172 \family sans
11173 Slide
11174 \family default
11175
11176 \family sans
11177 Overlay
11178 \family default
11179  and 
11180 \family sans
11181 Note
11182 \end_layout
11183
11184 \begin_layout Paragraph
11185 Using the 
11186 \family sans
11187 Slide
11188 \family default
11189  Environment
11190 \end_layout
11191
11192 \begin_layout Standard
11193 If you're expecting this section to teach you how to actually make a presentatio
11194 n, you'll be sorely disappointed.
11195  Naturally, I'll describe all of the ways the 
11196 \family sans
11197 slides
11198 \family default
11199  class can assist you in preparing the materials for a presentation.
11200  Filling in the contents, however, is up to you.
11201  [Then again, that 
11202 \emph on
11203 is
11204 \emph default
11205  the \SpecialChar LyX
11206  philosophy.]
11207 \end_layout
11208
11209 \begin_layout Standard
11210 Choosing the 
11211 \family sans
11212 Slide
11213 \family default
11214  environment [in the manner described in section
11215 \begin_inset space ~
11216 \end_inset
11217
11218
11219 \begin_inset CommandInset ref
11220 LatexCommand ref
11221 reference "sec:slideQuirk"
11222
11223 \end_inset
11224
11225 ] tells \SpecialChar LyX
11226  to begin a new slide [duh].
11227  The label for this environment/
11228 \begin_inset Quotes erd
11229 \end_inset
11230
11231 pseudo-command
11232 \begin_inset Quotes erd
11233 \end_inset
11234
11235  is an 
11236 \begin_inset Quotes eld
11237 \end_inset
11238
11239 ASCII line,
11240 \begin_inset Quotes erd
11241 \end_inset
11242
11243  in cool blue, followed by the label, 
11244 \begin_inset Quotes eld
11245 \end_inset
11246
11247 NewSlide:
11248 \begin_inset Quotes erd
11249 \end_inset
11250
11251 .
11252  Any text or paragraph environments that follow this one go on the new slide.
11253  It's that simple.
11254 \end_layout
11255
11256 \begin_layout Standard
11257 Slides are probably the only time you'll need to forcibly end pages in \SpecialChar LyX
11258
11259  (this can be specified in the 
11260 \family sans
11261 Paragraph Layout
11262 \family default
11263  dialog).
11264  In fact, you'll want to, once you finish entering the contents of one slide.
11265  If you've entered more text than can physically fit on a slide, the extra
11266  overflows onto a new slide.
11267  I don't recommend doing this, however, since the overflow slide won't have
11268  any page number on it.
11269  Furthermore, it may interfere with any 
11270 \family sans
11271 Overlay
11272 \family default
11273  you've made to accompany the oversized 
11274 \family sans
11275 Slide
11276 \family default
11277 .
11278 \end_layout
11279
11280 \begin_layout Standard
11281 The 
11282 \family sans
11283 Overlay
11284 \family default
11285  and 
11286 \family sans
11287 Note
11288 \family default
11289  environments work the same way as the 
11290 \family sans
11291 Slide
11292 \family default
11293  environment.
11294  They both create an 
11295 \begin_inset Quotes eld
11296 \end_inset
11297
11298 ASCII line
11299 \begin_inset Quotes erd
11300 \end_inset
11301
11302  followed by a label [
11303 \begin_inset Quotes eld
11304 \end_inset
11305
11306 NewOverlay:
11307 \begin_inset Quotes erd
11308 \end_inset
11309
11310  and 
11311 \begin_inset Quotes eld
11312 \end_inset
11313
11314 NewNote:
11315 \begin_inset Quotes erd
11316 \end_inset
11317
11318 , respectively].
11319  The color is a stunning magenta instead of blue, and the 
11320 \begin_inset Quotes eld
11321 \end_inset
11322
11323 ASCII line
11324 \begin_inset Quotes erd
11325 \end_inset
11326
11327  will look different, in style and in length.
11328  The label fonts of all three also differ from one another.
11329 \end_layout
11330
11331 \begin_layout Standard
11332 As with a 
11333 \family sans
11334 Slide
11335 \family default
11336 , if the contents of a 
11337 \family sans
11338 Note
11339 \family default
11340  or 
11341 \family sans
11342 Overlay
11343 \family default
11344  exceed the physical size of a slide or sheet of paper, the extra will overflow
11345  onto a new sheet.
11346  Again, you should avoid this.
11347  It defeats the whole purpose of 
11348 \family sans
11349 Note
11350 \family default
11351 s and 
11352 \family sans
11353 Overlay
11354 \family default
11355 s.
11356 \end_layout
11357
11358 \begin_layout Paragraph
11359 Using 
11360 \family sans
11361 Overlay
11362 \family default
11363  with 
11364 \family sans
11365 Slide
11366 \end_layout
11367
11368 \begin_layout Standard
11369 The idea behind an 
11370 \family sans
11371 Overlay
11372 \family default
11373  is a slide that sits atop another slide.
11374  Perhaps you wish to discuss a figure on the main 
11375 \family sans
11376 Slide
11377 \family default
11378  before displaying the text associated with it.
11379  One way to accomplish this is tape a flap of dark paper over the part of
11380  the 
11381 \family sans
11382 Slide
11383 \family default
11384  you want to display later.
11385  This method fails, however, if you wish to overlap one graph with another,
11386  for example.
11387  You would then have to fumble while speaking to align the two separate,
11388  overlapping 
11389 \family sans
11390 Slide
11391 \family default
11392 s to align the two graphs.
11393  The use of an 
11394 \family sans
11395 Overlay
11396 \family default
11397  environment in both cases makes life much easier.
11398 \end_layout
11399
11400 \begin_layout Standard
11401 Each 
11402 \family sans
11403 Overlay
11404 \family default
11405  receives the page number of its 
11406 \begin_inset Quotes eld
11407 \end_inset
11408
11409 parent
11410 \begin_inset Quotes erd
11411 \end_inset
11412
11413  
11414 \family sans
11415 Slide
11416 \family default
11417 , appended by 
11418 \begin_inset Quotes eld
11419 \end_inset
11420
11421
11422 \family typewriter
11423 -a
11424 \family default
11425
11426 \begin_inset Quotes erd
11427 \end_inset
11428
11429 .
11430 \begin_inset Foot
11431 status collapsed
11432
11433 \begin_layout Plain Layout
11434 Presumably, mutliple 
11435 \family sans
11436 Overlay
11437 \family default
11438 s would have 
11439 \begin_inset Quotes eld
11440 \end_inset
11441
11442
11443 \family typewriter
11444 -a
11445 \family default
11446
11447 \begin_inset Quotes erd
11448 \end_inset
11449
11450
11451 \begin_inset Quotes eld
11452 \end_inset
11453
11454
11455 \family typewriter
11456 -b
11457 \family default
11458
11459 \begin_inset Quotes erd
11460 \end_inset
11461
11462
11463 \begin_inset Quotes eld
11464 \end_inset
11465
11466
11467 \family typewriter
11468 -c
11469 \family default
11470
11471 \begin_inset Quotes erd
11472 \end_inset
11473
11474 , etc.
11475 \begin_inset space ~
11476 \end_inset
11477
11478 appended to the page number of the parent 
11479 \family sans
11480 Slide
11481 \family default
11482 .
11483  
11484 \end_layout
11485
11486 \end_inset
11487
11488  Clearly, you want the contents of both the 
11489 \family sans
11490 Slide
11491 \family default
11492  and the 
11493 \family sans
11494 Overlay
11495 \family default
11496  to each fit on a single physical slide! You should probably consider an
11497  
11498 \family sans
11499 Overlay
11500 \family default
11501  as 
11502 \begin_inset Quotes eld
11503 \end_inset
11504
11505 part of
11506 \begin_inset Quotes erd
11507 \end_inset
11508
11509  a 
11510 \family sans
11511 Slide
11512 \family default
11513 .
11514  Indeed, the \SpecialChar LyX
11515  
11516 \family sans
11517 slides
11518 \family default
11519  class provides a visual cue for this: the label at the start of an 
11520 \family sans
11521 Overlay
11522 \family default
11523  is shorter than that at the start of a 
11524 \family sans
11525 Slide
11526 \family default
11527 .
11528  Lastly, when you generate printable output, you'll find alignment markers
11529  in all four corners of both the 
11530 \family sans
11531 Overlay
11532 \family default
11533  page and its parent 
11534 \family sans
11535 Slide
11536 \family default
11537 .
11538  These will assist you in lining up the two physical slides.
11539 \end_layout
11540
11541 \begin_layout Standard
11542 The major problem in overlaying two slides is aligning the contents of the
11543  two transparencies.
11544  How much space should you leave for that graph on the second slide? Worse
11545  still, what if you want a graph and a sentence on second slide, but there
11546  is text on the main transparency that goes in between them? You could try
11547  and insert vertical space of the right size.
11548  The better way is to use 
11549 \family sans
11550 InvisibleText
11551 \family default
11552  and 
11553 \family sans
11554 VisibleText
11555 \family default
11556 .
11557 \end_layout
11558
11559 \begin_layout Standard
11560 As their names imply, 
11561 \family sans
11562 InvisibleText
11563 \family default
11564  and 
11565 \family sans
11566 VisibleText
11567 \family default
11568  are two command-like paragraph environments that make all subsequent text
11569  invisible and visible, respectively.
11570  Note from section
11571 \begin_inset space ~
11572 \end_inset
11573
11574
11575 \begin_inset CommandInset ref
11576 LatexCommand ref
11577 reference "sec:slideQuirk"
11578
11579 \end_inset
11580
11581  that you don't place anything 
11582 \emph on
11583 into
11584 \emph default
11585  these two environments, however.
11586  When you create an 
11587 \family sans
11588 InvisibleText
11589 \family default
11590 , it inserts a centered, sky-blue label into the page reading 
11591 \begin_inset Quotes eld
11592 \end_inset
11593
11594 <Invisible Text Follows>
11595 \begin_inset Quotes erd
11596 \end_inset
11597
11598 .
11599  For paragraphs following this label, the parts of the 
11600 \family sans
11601 Slide
11602 \family default
11603  [or 
11604 \family sans
11605 Overlay
11606 \family default
11607 ; it doesn't matter which] where they would be contain instead blank space.
11608  
11609 \end_layout
11610
11611 \begin_layout Standard
11612 For 
11613 \family sans
11614 VisibleText
11615 \family default
11616 , the corresponding centered label is 
11617 \begin_inset Quotes eld
11618 \end_inset
11619
11620 <Visible Text Follows>
11621 \begin_inset Quotes erd
11622 \end_inset
11623
11624  in blazing green.
11625  Paragraphs following this label behave normally.
11626  Note that the beginning of a new 
11627 \family sans
11628 Slide
11629 \family default
11630
11631 \family sans
11632 Overlay
11633 \family default
11634 , or 
11635 \family sans
11636 Note
11637 \family default
11638  automatically shuts off an 
11639 \family sans
11640 InvisibleText
11641 \family default
11642 .
11643  It's therefore not necessary to use 
11644 \family sans
11645 VisibleText
11646 \family default
11647  at the end of a 
11648 \family sans
11649 Slide
11650 \family default
11651 .
11652 \end_layout
11653
11654 \begin_layout Standard
11655 By now, it should be obvious how to create overlay transparencies using
11656  the proper combination of 
11657 \family sans
11658 InvisibleText
11659 \family default
11660  and 
11661 \family sans
11662 VisibleText
11663 \family default
11664  on a 
11665 \family sans
11666 Slide
11667 \family default
11668  and 
11669 \family sans
11670 Overlay
11671 \family default
11672 :
11673 \end_layout
11674
11675 \begin_layout Enumerate
11676 Create a 
11677 \family sans
11678 Slide
11679 \family default
11680 , including everything that will appear on it, whether on the main slide
11681  or on the 
11682 \family sans
11683 Overlay
11684 \family default
11685 .
11686 \end_layout
11687
11688 \begin_layout Enumerate
11689 Before each figure or paragraph that will appear only on the 
11690 \family sans
11691 Overlay
11692 \family default
11693 , insert an 
11694 \family sans
11695 InvisibleText
11696 \family default
11697  environment.
11698  If necessary, insert a 
11699 \family sans
11700 VisibleText
11701 \family default
11702  environment after the 
11703 \family sans
11704 Overlay
11705 \family default
11706 -only text.
11707 \end_layout
11708
11709 \begin_layout Enumerate
11710 Start an 
11711 \family sans
11712 Overlay
11713 \family default
11714  immediately following the 
11715 \family sans
11716 Slide
11717 \family default
11718 .
11719 \end_layout
11720
11721 \begin_layout Enumerate
11722 Copy the contents of this 
11723 \family sans
11724 Slide
11725 \family default
11726  into the 
11727 \family sans
11728 Overlay
11729 \family default
11730 .
11731 \end_layout
11732
11733 \begin_layout Enumerate
11734 Within the 
11735 \family sans
11736 Overlay
11737 \family default
11738 , change all of the 
11739 \family sans
11740 InvisibleText
11741 \family default
11742  lines to 
11743 \family sans
11744 VisibleText
11745 \family default
11746  and vice-versa.
11747 \end_layout
11748
11749 \begin_layout Standard
11750 That's it.
11751  You've just made an 
11752 \family sans
11753 Overlay
11754 \family default
11755 .
11756 \end_layout
11757
11758 \begin_layout Standard
11759 There's one problem with the way I've designed the \SpecialChar LyX
11760  
11761 \family sans
11762 slides
11763 \family default
11764  class: you can't make text in the middle of a paragraph invisible, nor
11765  make text in the middle of an invisible paragraph visible again.
11766  To accomplish this feat, you'll need to use some inlined \SpecialChar LaTeX
11767  codes.
11768 \begin_inset Foot
11769 status collapsed
11770
11771 \begin_layout Plain Layout
11772 The commands of interest are: 
11773 \end_layout
11774
11775 \begin_layout Itemize
11776
11777 \family typewriter
11778 {
11779 \backslash
11780 invisible \SpecialChar ldots
11781  }
11782 \end_layout
11783
11784 \begin_layout Itemize
11785
11786 \family typewriter
11787 {
11788 \backslash
11789 visible \SpecialChar ldots
11790  }
11791 \end_layout
11792
11793 \begin_layout Plain Layout
11794 \SpecialChar ldots
11795 and need to be marked as \SpecialChar TeX
11796 .
11797  The text whose 
11798 \begin_inset Quotes eld
11799 \end_inset
11800
11801 visibility
11802 \begin_inset Quotes erd
11803 \end_inset
11804
11805  you wish to change goes in between the brackets [and after the 
11806 \family typewriter
11807
11808 \backslash
11809 invisible
11810 \family default
11811  or 
11812 \family typewriter
11813
11814 \backslash
11815 visible
11816 \family default
11817  command].
11818  If you don't know how to mark text as \SpecialChar TeX
11819 , see the appropriate section of
11820  the 
11821 \emph on
11822 User's Guide
11823 \emph default
11824 .
11825 \end_layout
11826
11827 \end_inset
11828
11829
11830 \end_layout
11831
11832 \begin_layout Paragraph
11833 Using 
11834 \family sans
11835 Note
11836 \family default
11837  with 
11838 \family sans
11839 Slide
11840 \family default
11841
11842 \begin_inset CommandInset label
11843 LatexCommand label
11844 name "sec:slideNote"
11845
11846 \end_inset
11847
11848
11849 \end_layout
11850
11851 \begin_layout Standard
11852 Like an 
11853 \family sans
11854 Overlay
11855 \family default
11856 , a 
11857 \family sans
11858 Note
11859 \family default
11860  is associated with a 
11861 \begin_inset Quotes eld
11862 \end_inset
11863
11864 parent
11865 \begin_inset Quotes erd
11866 \end_inset
11867
11868  
11869 \family sans
11870 Slide
11871 \family default
11872 .
11873  Here, too, the \SpecialChar LyX
11874  
11875 \family sans
11876 slides
11877 \family default
11878  class provides visual cues.
11879  The label for a 
11880 \family sans
11881 Note
11882 \family default
11883  is shorter than that of a 
11884 \family sans
11885 Slide
11886 \family default
11887  [yet longer than that of an 
11888 \family sans
11889 Overlay
11890 \family default
11891 ] and, like the label of an 
11892 \family sans
11893 Overlay
11894 \family default
11895  is shockingly magenta.
11896  Additionally, the printed 
11897 \family sans
11898 Note
11899 \family default
11900  has the page number of its 
11901 \begin_inset Quotes eld
11902 \end_inset
11903
11904 parent
11905 \begin_inset Quotes erd
11906 \end_inset
11907
11908  
11909 \family sans
11910 Slide
11911 \family default
11912 , appended by 
11913 \begin_inset Quotes eld
11914 \end_inset
11915
11916
11917 \family typewriter
11918 -
11919 \family default
11920 1
11921 \begin_inset Quotes erd
11922 \end_inset
11923
11924
11925 \begin_inset Quotes eld
11926 \end_inset
11927
11928
11929 \family typewriter
11930 -
11931 \family default
11932 2
11933 \begin_inset Quotes erd
11934 \end_inset
11935
11936
11937 \begin_inset Quotes eld
11938 \end_inset
11939
11940
11941 \family typewriter
11942 -
11943 \family default
11944 3
11945 \begin_inset Quotes erd
11946 \end_inset
11947
11948 , etc.
11949  You can have multiple 
11950 \family sans
11951 Note
11952 \family default
11953 s associated with a single 
11954 \family sans
11955 Slide
11956 \family default
11957 , and, as with 
11958 \family sans
11959 Slide
11960 \family default
11961  and 
11962 \family sans
11963 Overlay
11964 \family default
11965 , you'll probably want to break up long 
11966 \family sans
11967 Note
11968 \family default
11969 s so that they fit on a single sheet of paper.
11970 \end_layout
11971
11972 \begin_layout Standard
11973 The purpose of a 
11974 \family sans
11975 Note
11976 \family default
11977  is obvious: it contains anything additional you might want to say about
11978  a 
11979 \family sans
11980 Slide
11981 \family default
11982 .
11983  It could also be used as a sheet of reminders for a particular 
11984 \family sans
11985 Slide
11986 \family default
11987 .
11988  In the case of the latter, you might want to make use of time markers.
11989  Currently, the \SpecialChar LyX
11990  
11991 \family sans
11992 slides
11993 \family default
11994  class has no 
11995 \begin_inset Quotes eld
11996 \end_inset
11997
11998 native
11999 \begin_inset Quotes erd
12000 \end_inset
12001
12002  support for time markers, a 
12003 \noun on
12004 Sli\SpecialChar TeX
12005
12006 \noun default
12007  feature.
12008  So, you'll have to resort to using the \SpecialChar LaTeX
12009  codes.
12010 \end_layout
12011
12012 \begin_layout Standard
12013 To use time markers, you'll need to specify the extra class option 
12014 \begin_inset Quotes eld
12015 \end_inset
12016
12017
12018 \family typewriter
12019 clock
12020 \family default
12021
12022 \begin_inset Quotes erd
12023 \end_inset
12024
12025  [see section
12026 \begin_inset space ~
12027 \end_inset
12028
12029
12030 \begin_inset CommandInset ref
12031 LatexCommand ref
12032 reference "sec:slidesetup"
12033
12034 \end_inset
12035
12036 ].
12037  This option turns on timing marks, which will appear in the lower-left-hand
12038  corner of every 
12039 \family sans
12040 Note
12041 \family default
12042  you generate.
12043  To set what appears in the time marker, you use the \SpecialChar LaTeX
12044  commands 
12045 \begin_inset Quotes eld
12046 \end_inset
12047
12048
12049 \family typewriter
12050
12051 \backslash
12052 settime{}
12053 \family default
12054
12055 \begin_inset Quotes erd
12056 \end_inset
12057
12058  and 
12059 \begin_inset Quotes eld
12060 \end_inset
12061
12062
12063 \family typewriter
12064
12065 \backslash
12066 addtime{}
12067 \family default
12068
12069 \begin_inset Quotes erd
12070 \end_inset
12071
12072 .
12073  The arguments of both commands are time measured in seconds.
12074  
12075 \begin_inset Quotes eld
12076 \end_inset
12077
12078
12079 \family typewriter
12080
12081 \backslash
12082 settime{}
12083 \family default
12084
12085 \begin_inset Quotes erd
12086 \end_inset
12087
12088  sets the time marker to a given time.
12089  
12090 \begin_inset Quotes eld
12091 \end_inset
12092
12093
12094 \family typewriter
12095
12096 \backslash
12097 addtime{}
12098 \family default
12099
12100 \begin_inset Quotes erd
12101 \end_inset
12102
12103  increments the time marker by the specified amount.
12104  Using time markers and 
12105 \family sans
12106 Note
12107 \family default
12108 s in this fashion, you can remind yourself how much time to spend on a particula
12109
12110 \family sans
12111 Slide
12112 \family default
12113 .
12114 \end_layout
12115
12116 \begin_layout Standard
12117 There's one last feature to describe.
12118  Clearly, you'd like to print out all of your 
12119 \family sans
12120 Slide
12121 \family default
12122 s and 
12123 \family sans
12124 Overlay
12125 \family default
12126 s on transparencies while printing all of your 
12127 \family sans
12128 Note
12129 \family default
12130 s on plain paper.
12131  However, a 
12132 \family sans
12133 Note
12134 \family default
12135  
12136 \emph on
12137 must
12138 \emph default
12139  follow the 
12140 \family sans
12141 Slide
12142 \family default
12143  with which it is associated.
12144  What's a person to do?
12145 \end_layout
12146
12147 \begin_layout Standard
12148 Luckily, there are two \SpecialChar LaTeX
12149  commands that allow you to select what to print
12150  out.
12151  Both must be placed into the preamble of your document.
12152  The command 
12153 \begin_inset Quotes eld
12154 \end_inset
12155
12156
12157 \family typewriter
12158
12159 \backslash
12160 onlyslides{
12161 \backslash
12162 slides}
12163 \family default
12164
12165 \begin_inset Quotes erd
12166 \end_inset
12167
12168  will cause the output to contain only the 
12169 \family sans
12170 Slide
12171 \family default
12172 s and 
12173 \family sans
12174 Overlay
12175 \family default
12176 s.
12177  Correspondingly, the command 
12178 \begin_inset Quotes eld
12179 \end_inset
12180
12181
12182 \family typewriter
12183
12184 \backslash
12185 onlynotes{
12186 \backslash
12187 notes}
12188 \family default
12189
12190 \begin_inset Quotes erd
12191 \end_inset
12192
12193  prevents the output of anything but 
12194 \family sans
12195 Note
12196 \family default
12197 s.
12198  I'd advise placing both commands in the preamble and initially comment
12199  both out.
12200  You can then preview your entire presentation as you write.
12201  When you're done writing, you can then uncomment one of the two to select
12202  what you want to print.
12203  I like to uncomment 
12204 \begin_inset Quotes eld
12205 \end_inset
12206
12207
12208 \family typewriter
12209
12210 \backslash
12211 onlyslides{
12212 \backslash
12213 slides}
12214 \family default
12215
12216 \begin_inset Quotes erd
12217 \end_inset
12218
12219  , print to a file with 
12220 \begin_inset Quotes eld
12221 \end_inset
12222
12223
12224 \family typewriter
12225 -slides
12226 \family default
12227
12228 \begin_inset Quotes erd
12229 \end_inset
12230
12231  in its name, comment it back out, then uncomment 
12232 \begin_inset Quotes eld
12233 \end_inset
12234
12235
12236 \family typewriter
12237
12238 \backslash
12239 onlynotes{
12240 \backslash
12241 notes}
12242 \family default
12243
12244 \begin_inset Quotes erd
12245 \end_inset
12246
12247  and print to a 
12248 \begin_inset Quotes eld
12249 \end_inset
12250
12251
12252 \family typewriter
12253 *-notes.ps
12254 \family default
12255
12256 \begin_inset Quotes erd
12257 \end_inset
12258
12259  file.
12260  I can then send either file to a printer, loading transparencies or plain
12261  paper as appropriate.
12262 \end_layout
12263
12264 \begin_layout Standard
12265 You can also provide other arguments to the 
12266 \begin_inset Quotes eld
12267 \end_inset
12268
12269
12270 \family typewriter
12271
12272 \backslash
12273 onlyslides{}
12274 \family default
12275
12276 \begin_inset Quotes erd
12277 \end_inset
12278
12279  and 
12280 \begin_inset Quotes eld
12281 \end_inset
12282
12283
12284 \family typewriter
12285
12286 \backslash
12287 onlynotes{}
12288 \family default
12289
12290 \begin_inset Quotes erd
12291 \end_inset
12292
12293  commands.
12294  See a good \SpecialChar LaTeX
12295  book for details.
12296 \end_layout
12297
12298 \begin_layout Subsubsection
12299 The 
12300 \family sans
12301 slides
12302 \family default
12303  Class Template File
12304 \end_layout
12305
12306 \begin_layout Standard
12307 I have also provided a template file
12308 \change_deleted 564990737 1671617750
12309
12310 \begin_inset Quotes eld
12311 \end_inset
12312
12313
12314 \family typewriter
12315 slides.lyx
12316 \family default
12317
12318 \begin_inset Quotes erd
12319 \end_inset
12320
12321 ,
12322 \change_unchanged
12323  with the 
12324 \family sans
12325 slides
12326 \family default
12327  class.
12328  To use it, begin your new presentation with 
12329 \family sans
12330 File\SpecialChar menuseparator
12331 New
12332 \begin_inset space ~
12333 \end_inset
12334
12335 from
12336 \begin_inset space ~
12337 \end_inset
12338
12339 Template
12340 \change_inserted 564990737 1671616988
12341 \SpecialChar menuseparator
12342 Presentations\SpecialChar menuseparator
12343 Slides
12344 \change_unchanged
12345
12346 \family default
12347 .
12348  Your new \SpecialChar LyX
12349  presentation file will contain an example 
12350 \family sans
12351 Slide
12352 \family default
12353  – 
12354 \family sans
12355 Overlay
12356 \family default
12357  – 
12358 \family sans
12359 Note
12360 \family default
12361  triplet.
12362  The 
12363 \family sans
12364 Slide
12365 \family default
12366  and 
12367 \family sans
12368 Overlay
12369 \family default
12370  additionally contain an example of the use of 
12371 \family sans
12372 InvisibleText
12373 \family default
12374  and 
12375 \family sans
12376 VisibleText
12377 \family default
12378 .
12379  Lastly, the preamble will contain:
12380 \end_layout
12381
12382 \begin_layout LyX-Code
12383 % Uncomment to print out only slides and overlays
12384 \end_layout
12385
12386 \begin_layout LyX-Code
12387 %
12388 \end_layout
12389
12390 \begin_layout LyX-Code
12391 %
12392 \backslash
12393 onlyslides{
12394 \backslash
12395 slides}
12396 \begin_inset Newline newline
12397 \end_inset
12398
12399  
12400 \end_layout
12401
12402 \begin_layout LyX-Code
12403 % Uncomment to print out only notes
12404 \end_layout
12405
12406 \begin_layout LyX-Code
12407 %
12408 \end_layout
12409
12410 \begin_layout LyX-Code
12411 %
12412 \backslash
12413 onlynotes{
12414 \backslash
12415 notes}
12416 \end_layout
12417
12418 \begin_layout Standard
12419 One final thing: I created this class to support the \SpecialChar LaTeX2e
12420  
12421 \begin_inset Quotes eld
12422 \end_inset
12423
12424
12425 \noun on
12426 Sli\SpecialChar TeX
12427
12428 \noun default
12429  emulation
12430 \begin_inset Quotes erd
12431 \end_inset
12432
12433  class, one of the built-in \SpecialChar LaTeX2e
12434  classes.
12435  Neither I nor the rest of the \SpecialChar LyX
12436  Team endorse or oppose the use of this built-in
12437  slide class.
12438  It's here if you want it or need it.
12439  There exist other \SpecialChar LaTeX2e
12440  classes for creating presentations, such as the 
12441 \family sans
12442 Foils
12443 \family default
12444  class [see section
12445 \begin_inset space ~
12446 \end_inset
12447
12448
12449 \begin_inset CommandInset ref
12450 LatexCommand ref
12451 reference "sec:foiltex"
12452
12453 \end_inset
12454
12455 ] or the 
12456 \begin_inset Quotes eld
12457 \end_inset
12458
12459
12460 \family typewriter
12461 seminar
12462 \family default
12463
12464 \begin_inset Quotes erd
12465 \end_inset
12466
12467  package [present on some \SpecialChar TeX
12468  distributions].
12469  The latter is not yet supported under \SpecialChar LyX
12470 .
12471 \begin_inset Foot
12472 status collapsed
12473
12474 \begin_layout Plain Layout
12475 Perhaps you can take on the task\SpecialChar ldots
12476
12477 \end_layout
12478
12479 \end_inset
12480
12481  I know nothing about these other classes.
12482  Try them out to see what sort of alternative they provide.
12483 \end_layout
12484
12485 \begin_layout Section
12486
12487 \change_inserted 564990737 1670439661
12488 Reports
12489 \end_layout
12490
12491 \begin_layout Subsection
12492
12493 \change_inserted 564990737 1670439661
12494 report
12495 \end_layout
12496
12497 \begin_layout Standard
12498
12499 \change_inserted 564990737 1670439661
12500 The document class 
12501 \family sans
12502 report
12503 \family default
12504  provides the 
12505 \family sans
12506 report.cls
12507 \family default
12508  document class for preparing reports.
12509  Like the 
12510 \family sans
12511 book
12512 \family default
12513  document class, this provides parts, chapters and sections but does not
12514  provide the paragraph styles needed for a book; like the 
12515 \family sans
12516 article
12517 \family default
12518  document class, it provides the abstract paragraph style.
12519  In two-sided mode, it does not start a new chapter on the right hand page.
12520 \end_layout
12521
12522 \begin_layout Standard
12523
12524 \change_inserted 564990737 1670439674
12525 The remaining 
12526 \family sans
12527 report
12528 \family default
12529  document classes are described in the Collections (section
12530 \begin_inset space ~
12531 \end_inset
12532
12533
12534 \begin_inset CommandInset ref
12535 LatexCommand ref
12536 reference "sec:Collections"
12537
12538 \end_inset
12539
12540 ).
12541 \end_layout
12542
12543 \begin_layout Section
12544
12545 \change_inserted 564990737 1670439674
12546 Scripts (drama)
12547 \end_layout
12548
12549 \begin_layout Subsection
12550 Broadway
12551 \end_layout
12552
12553 \begin_layout Standard
12554 by 
12555 \shape smallcaps
12556 Garst Reese
12557 \end_layout
12558
12559 \begin_layout Subsubsection
12560 Introduction
12561 \end_layout
12562
12563 \begin_layout Standard
12564 Broadway is for writing plays.
12565  The format is more decorative than Hollywood, and much less standardized.
12566  This format should be suitable for workshops.
12567 \end_layout
12568
12569 \begin_layout Subsubsection
12570 Special problems
12571 \end_layout
12572
12573 \begin_layout Standard
12574 The same as in Hollywood.
12575 \end_layout
12576
12577 \begin_layout Subsubsection
12578 Special features
12579 \end_layout
12580
12581 \begin_layout Standard
12582 Insert the 
12583 \family sans
12584 Speaker
12585 \family default
12586  names as labels then cross-reference the label to insert the name.
12587  The cross-reference dialog will show the current cast of characters.
12588 \end_layout
12589
12590 \begin_layout Subsubsection
12591 Paper size and Margins
12592 \end_layout
12593
12594 \begin_layout Standard
12595 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
12596 \end_layout
12597
12598 \begin_layout Subsubsection
12599 Environments
12600 \end_layout
12601
12602 \begin_layout Standard
12603 The following environments are available.
12604  You can use broadway.bind to get the bind keys shown at the right.
12605 \end_layout
12606
12607 \begin_layout Itemize
12608
12609 \family sans
12610 Standard
12611 \begin_inset Newline newline
12612 \end_inset
12613
12614
12615 \family default
12616 You should not have to use this, but it is here for anything that does not
12617  fit otherwise.
12618 \end_layout
12619
12620 \begin_layout Itemize
12621
12622 \family sans
12623 Narrative
12624 \begin_inset space \hfill{}
12625 \end_inset
12626
12627 M-z n
12628 \begin_inset Newline newline
12629 \end_inset
12630
12631
12632 \family default
12633 Used to describe stage setting and the action.
12634  First use of speaker names in all CAPs.
12635 \end_layout
12636
12637 \begin_layout Itemize
12638
12639 \family sans
12640 ACT
12641 \begin_inset space \hfill{}
12642 \end_inset
12643
12644 M-z a
12645 \begin_inset Newline newline
12646 \end_inset
12647
12648
12649 \family default
12650 Automatically numbered.
12651  On screen it will be arabic, but will print as Roman.
12652 \end_layout
12653
12654 \begin_layout Itemize
12655
12656 \family sans
12657 ACT*
12658 \begin_inset space \hfill{}
12659 \end_inset
12660
12661 M-z S at
12662 \begin_inset Newline newline
12663 \end_inset
12664
12665
12666 \family default
12667 Subtitle for 
12668 \family sans
12669 ACT.
12670
12671 \family default
12672  It is just centered text.
12673 \end_layout
12674
12675 \begin_layout Itemize
12676
12677 \family sans
12678 SCENE
12679 \begin_inset space \hfill{}
12680 \end_inset
12681
12682 M-z S-S
12683 \begin_inset Newline newline
12684 \end_inset
12685
12686
12687 \family default
12688 Not automatically numbered.
12689  You supply the number.
12690  This is because I couldn't figure out how.
12691 \end_layout
12692
12693 \begin_layout Itemize
12694
12695 \family sans
12696 AT_RISE:
12697 \begin_inset space \hfill{}
12698 \end_inset
12699
12700 M-z S-R
12701 \begin_inset Newline newline
12702 \end_inset
12703
12704
12705 \family default
12706 A special case of Narrative to describe the setting and action as the curtain
12707  rises.
12708 \end_layout
12709
12710 \begin_layout Itemize
12711
12712 \family sans
12713 Speaker
12714 \begin_inset space \hfill{}
12715 \end_inset
12716
12717 M-z s
12718 \begin_inset Newline newline
12719 \end_inset
12720
12721
12722 \family default
12723 The speaker's (actor's) title, centered in all CAPS.
12724 \end_layout
12725
12726 \begin_layout Itemize
12727
12728 \family sans
12729 Parenthetical
12730 \begin_inset space \hfill{}
12731 \end_inset
12732
12733 M-z p
12734 \begin_inset Newline newline
12735 \end_inset
12736
12737
12738 \family default
12739 Instructions to the speaker.
12740  The parentheses are automatically inserted.
12741  The ( will appear on screen, but both will be in the printed play.
12742  This environment is only used within 
12743 \family sans
12744 Dialogue
12745 \family default
12746 .
12747 \end_layout
12748
12749 \begin_layout Itemize
12750
12751 \family sans
12752 Dialogue
12753 \begin_inset space \hfill{}
12754 \end_inset
12755
12756 M-z d
12757 \begin_inset Newline newline
12758 \end_inset
12759
12760
12761 \family default
12762 What the Speaker says.
12763 \end_layout
12764
12765 \begin_layout Itemize
12766
12767 \family sans
12768 CURTAIN
12769 \begin_inset space \hfill{}
12770 \end_inset
12771
12772 M-z S-C
12773 \begin_inset Newline newline
12774 \end_inset
12775
12776
12777 \family default
12778 The curtain comes down.
12779 \end_layout
12780
12781 \begin_layout Itemize
12782
12783 \family sans
12784 Title
12785 \begin_inset space \hfill{}
12786 \end_inset
12787
12788 M-z S-T
12789 \end_layout
12790
12791 \begin_layout Itemize
12792
12793 \family sans
12794 Author
12795 \begin_inset space \hfill{}
12796 \end_inset
12797
12798 M-z S-A
12799 \end_layout
12800
12801 \begin_layout Itemize
12802
12803 \family sans
12804 Right_Address
12805 \begin_inset space \hfill{}
12806 \end_inset
12807
12808 M-z r
12809 \end_layout
12810
12811 \begin_layout Standard
12812 Hello there.
12813 \end_layout
12814
12815 \begin_layout Subsection
12816 Hollywood (Hollywood spec scripts)
12817 \end_layout
12818
12819 \begin_layout Standard
12820 by 
12821 \shape smallcaps
12822 Garst Reese
12823 \end_layout
12824
12825 \begin_layout Subsubsection
12826 Introduction
12827 \end_layout
12828
12829 \begin_layout Standard
12830 Getting the format of a Hollywood script right is a 
12831 \begin_inset Quotes eld
12832 \end_inset
12833
12834 rite of passage.
12835 \begin_inset Quotes erd
12836 \end_inset
12837
12838  It is designed to make the readers focus on content and to be easy and
12839  familiar for the actors to read.
12840  Each page of a script should be one minute of film.
12841  Nothing goes in a script that you cannot see or hear on screen.
12842  The courier 12 pt font should be used throughout.
12843  No italics.
12844 \end_layout
12845
12846 \begin_layout Subsubsection
12847 Special problems
12848 \end_layout
12849
12850 \begin_layout Standard
12851 Speakers' lines should NEVER break in mid-sentence.
12852  If a speaker's lines continue over a page break, repeat the 
12853 \family sans
12854 Speaker
12855 \family default
12856  title followed by (Cont'd).
12857 \end_layout
12858
12859 \begin_layout Subsubsection
12860 Special features
12861 \end_layout
12862
12863 \begin_layout Standard
12864 Insert the 
12865 \family sans
12866 Speaker
12867 \family default
12868  names as labels then cross-reference the label to insert the name.
12869  The cross-reference dialog will show the current cast of characters.
12870  You can use this to insert the speaker name in narratives also.
12871 \end_layout
12872
12873 \begin_layout Subsubsection
12874 Paper size and Margins
12875 \end_layout
12876
12877 \begin_layout Standard
12878 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
12879 \end_layout
12880
12881 \begin_layout Subsubsection
12882 Environments
12883 \end_layout
12884
12885 \begin_layout Standard
12886 The following environments are available.
12887  You can use hollywood.bind to get the bind keys shown at the right.
12888 \end_layout
12889
12890 \begin_layout Itemize
12891
12892 \family sans
12893 Standard
12894 \begin_inset Newline newline
12895 \end_inset
12896
12897
12898 \family default
12899 Used where nothing else works.
12900  Try to avoid it.
12901 \end_layout
12902
12903 \begin_layout Itemize
12904
12905 \family sans
12906 FADE_IN
12907 \family default
12908 :
12909 \begin_inset space \hfill{}
12910 \end_inset
12911
12912
12913 \family sans
12914 M-z S-I
12915 \family default
12916
12917 \begin_inset Newline newline
12918 \end_inset
12919
12920 Usually followed by something like 
12921 \begin_inset Quotes eld
12922 \end_inset
12923
12924 on Sally waking up.
12925 \begin_inset Quotes erd
12926 \end_inset
12927
12928
12929 \end_layout
12930
12931 \begin_layout Itemize
12932
12933 \family sans
12934 INT:
12935 \begin_inset space \hfill{}
12936 \end_inset
12937
12938 M-z i
12939 \begin_inset Newline newline
12940 \end_inset
12941
12942
12943 \family default
12944 Introduces a new INTERIOR camera set-up.
12945  Always followed by DAY or NIGHT, or something similar to define the lighting
12946  required.
12947  Everthing on this line in CAPS.
12948 \end_layout
12949
12950 \begin_layout Itemize
12951
12952 \family sans
12953 EXT:
12954 \begin_inset space \hfill{}
12955 \end_inset
12956
12957 M-z e
12958 \begin_inset Newline newline
12959 \end_inset
12960
12961
12962 \family default
12963 Introduces a new EXTERIOR camera set-up.
12964  Everthing on this line in CAPS.
12965 \end_layout
12966
12967 \begin_layout Itemize
12968
12969 \family sans
12970 Speaker
12971 \begin_inset space \hfill{}
12972 \end_inset
12973
12974 M-z s
12975 \begin_inset Newline newline
12976 \end_inset
12977
12978
12979 \family default
12980 The character speaking.
12981 \end_layout
12982
12983 \begin_layout Itemize
12984
12985 \family sans
12986 Parenthetical
12987 \begin_inset space \hfill{}
12988 \end_inset
12989
12990 M-z p
12991 \begin_inset Newline newline
12992 \end_inset
12993
12994
12995 \family default
12996 Instructions to the speaker.
12997  The () are automatically inserted.
12998 \end_layout
12999
13000 \begin_layout Itemize
13001
13002 \family sans
13003 Dialogue
13004 \begin_inset space \hfill{}
13005 \end_inset
13006
13007 M-z d
13008 \begin_inset Newline newline
13009 \end_inset
13010
13011
13012 \family default
13013 What the 
13014 \family sans
13015 Speaker
13016 \family default
13017  says.
13018 \end_layout
13019
13020 \begin_layout Itemize
13021
13022 \family sans
13023 Transition
13024 \begin_inset space \hfill{}
13025 \end_inset
13026
13027 M-z t
13028 \begin_inset Newline newline
13029 \end_inset
13030
13031
13032 \family default
13033 Camera movement instruction.
13034  e.
13035 \begin_inset space \thinspace{}
13036 \end_inset
13037
13038 g.
13039 \begin_inset space \space{}
13040 \end_inset
13041
13042 CUT TO:
13043 \end_layout
13044
13045 \begin_layout Itemize
13046
13047 \family sans
13048 FADE OUT:
13049 \begin_inset space \hfill{}
13050 \end_inset
13051
13052 M-z S-I
13053 \end_layout
13054
13055 \begin_layout Itemize
13056
13057 \family sans
13058 Author
13059 \begin_inset space \hfill{}
13060 \end_inset
13061
13062 M-z S-A
13063 \end_layout
13064
13065 \begin_layout Itemize
13066
13067 \family sans
13068 Title
13069 \begin_inset space \hfill{}
13070 \end_inset
13071
13072 M-z S-T
13073 \end_layout
13074
13075 \begin_layout Itemize
13076
13077 \family sans
13078 Right_Address
13079 \begin_inset space \hfill{}
13080 \end_inset
13081
13082 M-z r
13083 \end_layout
13084
13085 \begin_layout Subsubsection
13086 Script jargon
13087 \end_layout
13088
13089 \begin_layout Itemize
13090 (O.S) — off screen
13091 \end_layout
13092
13093 \begin_layout Itemize
13094 (V.0) — voice over
13095 \end_layout
13096
13097 \begin_layout Itemize
13098 b.
13099 \begin_inset space \thinspace{}
13100 \end_inset
13101
13102 g.
13103  — background
13104 \end_layout
13105
13106 \begin_layout Itemize
13107 C.U.
13108  — close-up
13109 \end_layout
13110
13111 \begin_layout Itemize
13112 PAN — camera movement
13113 \end_layout
13114
13115 \begin_layout Itemize
13116 INSERT — cut to close-up of
13117 \end_layout
13118
13119 \begin_layout Chapter
13120
13121 \change_inserted 564990737 1671185876
13122 Modules
13123 \end_layout
13124
13125 \begin_layout Section
13126
13127 \change_inserted 564990737 1671716212
13128
13129 \lang american
13130 Academic Field Specifics
13131 \end_layout
13132
13133 \begin_layout Subsection
13134
13135 \change_inserted 564990737 1671716212
13136
13137 \lang american
13138 Chemistry: Hazard and Precautionary Statements 
13139 \end_layout
13140
13141 \begin_layout Standard
13142
13143 \change_inserted 564990737 1671716212
13144
13145 \lang american
13146 This module provides two insets to typeset numbers and phrases of chemical
13147  hazard and precautionary statements.
13148  For a description see 
13149 \family sans
13150 \lang british
13151 File\SpecialChar menuseparator
13152 Open Example\SpecialChar menuseparator
13153 Modules\SpecialChar menuseparator
13154 Hazard and Precautionary Statements
13155 \family default
13156  and 
13157 \family sans
13158 Help\SpecialChar menuseparator
13159 Specific Manuals\SpecialChar menuseparator
13160 Hazard and Precautionary Statements
13161 \family default
13162 \lang american
13163 .
13164 \end_layout
13165
13166 \begin_layout Subsection
13167
13168 \change_inserted 564990737 1671716212
13169
13170 \series bold
13171 \lang american
13172 Chemistry: Risk and Safety Statements
13173 \end_layout
13174
13175 \begin_layout Standard
13176
13177 \change_inserted 564990737 1671716212
13178
13179 \lang american
13180 This module provides two insets, 
13181 \family sans
13182 R-S number
13183 \family default
13184  and 
13185 \family sans
13186 R-S phrase
13187 \family default
13188 , accessible via the menu 
13189 \family sans
13190 \bar under
13191 I
13192 \bar default
13193 nsert\SpecialChar menuseparator
13194 Custom
13195 \begin_inset space ~
13196 \end_inset
13197
13198 Insets
13199 \family default
13200  and an environment to typeset numbers and phrases of chemical risk and
13201  safety statements.
13202 \end_layout
13203
13204 \begin_layout Subsection
13205
13206 \change_inserted 564990737 1671716212
13207
13208 \lang american
13209 Linguistics
13210 \end_layout
13211
13212 \begin_layout Standard
13213
13214 \change_inserted 564990737 1671716212
13215
13216 \lang american
13217 This module uses the 
13218 \family sans
13219 covington.sty
13220 \family default
13221  package to add environments useful for linguistics (numbered examples,
13222  glosses, semantic markup, tableau floats).
13223  You can obtain information about this module in 
13224 \family sans
13225 \bar under
13226 H
13227 \bar default
13228 elp\SpecialChar menuseparator
13229 S
13230 \bar under
13231 p
13232 \bar default
13233 ecific
13234 \begin_inset space ~
13235 \end_inset
13236
13237 Manuals\SpecialChar menuseparator
13238
13239 \bar under
13240 L
13241 \bar default
13242 inguistics
13243 \family default
13244  and 
13245 \family sans
13246 \lang british
13247 File\SpecialChar menuseparator
13248 Open Example\SpecialChar menuseparator
13249
13250 \lang american
13251 Modules\SpecialChar menuseparator
13252 Linguistics
13253 \family default
13254 .
13255 \end_layout
13256
13257 \begin_layout Section
13258
13259 \change_inserted 564990737 1671788778
13260
13261 \lang american
13262 Accessibility
13263 \end_layout
13264
13265 \begin_layout Subsection
13266
13267 \change_inserted 564990737 1671788778
13268
13269 \lang american
13270 Braille
13271 \end_layout
13272
13273 \begin_layout Standard
13274
13275 \change_inserted 564990737 1671788778
13276
13277 \lang american
13278 This module supports the Braille writing system.
13279  It requires the \SpecialChar LaTeX
13280  package 
13281 \family typewriter
13282 braille.sty
13283 \family default
13284 .
13285  This and its documentation can be obtained from 
13286 \begin_inset CommandInset href
13287 LatexCommand href
13288 name "CTAN"
13289 target "https://www.ctan.org/pkg/braille"
13290 literal "false"
13291
13292 \end_inset
13293
13294 .
13295  You do not have to reconfigure your system after installing it.
13296  See 
13297 \family sans
13298 \bar under
13299 H
13300 \bar default
13301 elp\SpecialChar menuseparator
13302 S
13303 \bar under
13304 p
13305 \bar default
13306 ecific
13307 \begin_inset space ~
13308 \end_inset
13309
13310 Manuals\SpecialChar menuseparator
13311
13312 \bar under
13313 B
13314 \bar default
13315 raille
13316 \family default
13317  and 
13318 \family sans
13319 File\SpecialChar menuseparator
13320 Open Example\SpecialChar menuseparator
13321 Modules\SpecialChar menuseparator
13322 Braille
13323 \family default
13324 .
13325 \end_layout
13326
13327 \begin_layout Section
13328
13329 \change_inserted 564990737 1671788778
13330
13331 \lang american
13332 Annotation & Revision
13333 \end_layout
13334
13335 \begin_layout Subsection
13336
13337 \change_inserted 564990737 1671788778
13338
13339 \lang american
13340 FiXme Notes
13341 \end_layout
13342
13343 \begin_layout Standard
13344
13345 \change_inserted 564990737 1671788778
13346
13347 \lang american
13348 This module provides “FiXme” (marginal) annotations for document revision
13349  purposes.
13350  A list of annotations can be produced by using the “List of FIXMEs” paragraph
13351  style.
13352  The annotations are customizable via the LaTeX preamble.
13353  See the FiXme documentation which can be obtained from 
13354 \begin_inset CommandInset href
13355 LatexCommand href
13356 name "CTAN"
13357 target "http://mirrors.ctan.org/macros/latex/contrib/fixme/fixme.pdf"
13358 literal "false"
13359
13360 \end_inset
13361
13362 .
13363  
13364 \end_layout
13365
13366 \begin_layout Paragraph
13367
13368 \change_inserted 564990737 1671788778
13369
13370 \lang american
13371 Note:
13372 \end_layout
13373
13374 \begin_layout Standard
13375
13376 \change_inserted 564990737 1671788778
13377
13378 \lang american
13379 by default, the notes are only displayed in “draft” mode (if the option
13380  “draft” has been inserted in 
13381 \family sans
13382 Document\SpecialChar menuseparator
13383 Settings\SpecialChar menuseparator
13384 Document Class\SpecialChar menuseparator
13385 Class Options\SpecialChar menuseparator
13386 Custom
13387 \family default
13388 ).
13389  To display them always, insert 
13390 \family typewriter
13391
13392 \backslash
13393 fxsetup{draft}
13394 \family default
13395  in 
13396 \family sans
13397 Document\SpecialChar menuseparator
13398 Settings\SpecialChar menuseparator
13399 \SpecialChar LaTeX
13400  Preamble
13401 \family default
13402 .
13403  
13404 \end_layout
13405
13406 \begin_layout Subsection
13407
13408 \change_inserted 564990737 1671788778
13409
13410 \lang american
13411 PDF Comments
13412 \end_layout
13413
13414 \begin_layout Standard
13415
13416 \change_inserted 564990737 1671788778
13417
13418 \lang american
13419 This module provides various kinds of annotations for PDF output.
13420  See 
13421 \family sans
13422 Help\SpecialChar menuseparator
13423 Specific Manuals\SpecialChar menuseparator
13424 PDF comments and File\SpecialChar menuseparator
13425 Open Example\SpecialChar menuseparator
13426 Modules\SpecialChar menuseparator
13427 PDF Comments
13428 \family default
13429 .
13430 \end_layout
13431
13432 \begin_layout Subsection
13433
13434 \change_inserted 564990737 1671788778
13435
13436 \series bold
13437 \lang american
13438 PDF Form
13439 \end_layout
13440
13441 \begin_layout Standard
13442
13443 \change_inserted 564990737 1671788778
13444
13445 \lang american
13446 This module provides fields and buttons for PDF forms.
13447  See the 
13448 \begin_inset CommandInset href
13449 LatexCommand href
13450 name "hyperref documentation"
13451 target "http://mirrors.ctan.org/macros/latex/contrib/hyperref/doc/hyperref-doc.pdf"
13452 literal "false"
13453
13454 \end_inset
13455
13456
13457 \family sans
13458 Help\SpecialChar menuseparator
13459 Specific Manuals\SpecialChar menuseparator
13460 PDF forms and File\SpecialChar menuseparator
13461 Open Example\SpecialChar menuseparator
13462 Modules\SpecialChar menuseparator
13463 PDF Form
13464 \family default
13465 .
13466 \end_layout
13467
13468 \begin_layout Subsection
13469
13470 \change_inserted 564990737 1671788778
13471
13472 \series bold
13473 \lang american
13474 Ruby (Furigana)
13475 \end_layout
13476
13477 \begin_layout Standard
13478
13479 \change_inserted 564990737 1671788778
13480
13481 \lang american
13482 This module defines an inset to typeset reading aids (ruby, furigana) to
13483  Chinese characters.
13484  It uses the “okumakro,” “luatexja-ruby” or “ruby” package (depending on
13485  the TeX engine) or a fallback definition.
13486  
13487 \end_layout
13488
13489 \begin_layout Subsection
13490
13491 \change_inserted 564990737 1671788778
13492
13493 \series bold
13494 \lang american
13495 TODO notes
13496 \end_layout
13497
13498 \begin_layout Standard
13499
13500 \change_inserted 564990737 1671788778
13501
13502 \lang american
13503 This module provides custom insets to insert TODO items in your document.
13504  In order to generate a “List of TODOs,” the module provides a paragraph
13505  style.
13506  Inserting “final” in 
13507 \family sans
13508 Document\SpecialChar menuseparator
13509 Settings\SpecialChar menuseparator
13510 Document Class\SpecialChar menuseparator
13511 Class Options\SpecialChar menuseparator
13512 Custom
13513 \family default
13514 ) suppresses the output of TODO notes.
13515  See the 
13516 \begin_inset CommandInset href
13517 LatexCommand href
13518 name "todonotes documentation"
13519 target "http://mirrors.ctan.org/macros/latex/contrib/todonotes/todonotes.pdf"
13520 literal "false"
13521
13522 \end_inset
13523
13524 .
13525 \end_layout
13526
13527 \begin_layout Section
13528
13529 \change_inserted 564990737 1671829045
13530
13531 \lang american
13532 Bibliography 
13533 \end_layout
13534
13535 \begin_layout Subsection
13536
13537 \change_inserted 564990737 1671829045
13538
13539 \lang american
13540 APA Style with NatBib
13541 \end_layout
13542
13543 \begin_layout Standard
13544
13545 \change_inserted 564990737 1671829045
13546
13547 \lang american
13548 This module adds support for using natbib together with apacite (the bibliograph
13549 y style need not be apacite — it could be apacite, apacitex, or any bibliography
13550  that works with both the natbib and apacite packages.) 
13551 \end_layout
13552
13553 \begin_layout Section
13554
13555 \change_inserted 564990737 1671829045
13556
13557 \lang american
13558 Boxes
13559 \end_layout
13560
13561 \begin_layout Subsection
13562
13563 \change_inserted 564990737 1671829045
13564
13565 \lang american
13566 Fancy Colored Boxes
13567 \end_layout
13568
13569 \begin_layout Standard
13570
13571 \change_inserted 564990737 1671829045
13572
13573 \lang american
13574 This module adds ten custom insets that support colored boxes via the tcolorbox
13575  package.
13576  See 
13577 \family sans
13578 Help\SpecialChar menuseparator
13579 Specific Manuals\SpecialChar menuseparator
13580 Colored boxes
13581 \family default
13582
13583 \family sans
13584 File\SpecialChar menuseparator
13585 Open Example\SpecialChar menuseparator
13586 Modules\SpecialChar menuseparator
13587 Fancy Color Boxes
13588 \family default
13589  the 
13590 \begin_inset CommandInset href
13591 LatexCommand href
13592 name "tcolorbox documentation"
13593 target "http://mirrors.ctan.org/macros/latex/contrib/tcolorbox/tcolorbox.pdf"
13594 literal "false"
13595
13596 \end_inset
13597
13598  for details.
13599  
13600 \end_layout
13601
13602 \begin_layout Subsection
13603
13604 \change_inserted 564990737 1671829045
13605
13606 \lang american
13607 Graphic boxes
13608 \end_layout
13609
13610 \begin_layout Standard
13611
13612 \change_inserted 564990737 1671829045
13613
13614 \lang american
13615 This provides the custom insets 
13616 \family sans
13617 Reflectbox
13618 \family default
13619
13620 \family sans
13621 Resizebox
13622 \family default
13623
13624 \family sans
13625 Rotatebox
13626 \family default
13627  and 
13628 \family sans
13629 Scalebox
13630 \family default
13631  to scale and rotate its content.
13632 \end_layout
13633
13634 \begin_layout Standard
13635
13636 \change_inserted 564990737 1671829045
13637
13638 \family sans
13639 \lang american
13640 Reflectbox
13641 \family default
13642  is a simple way of reversing text without any other enhancement:
13643 \end_layout
13644
13645 \begin_layout Standard
13646
13647 \change_inserted 564990737 1671829045
13648
13649 \lang american
13650 \begin_inset Flex Reflectbox
13651 status open
13652
13653 \begin_layout Plain Layout
13654
13655 \change_inserted 564990737 1671829045
13656
13657 \lang american
13658 Great Western Railway
13659 \change_unchanged
13660
13661 \end_layout
13662
13663 \end_inset
13664
13665
13666 \end_layout
13667
13668 \begin_layout Standard
13669
13670 \change_inserted 564990737 1671829045
13671
13672 \lang american
13673 (You will need to use Ctrl-R to see any of these examples.)
13674 \end_layout
13675
13676 \begin_layout Standard
13677
13678 \change_inserted 564990737 1671829045
13679
13680 \family sans
13681 \lang american
13682 Resizebox
13683 \family default
13684  allows you to specify the dimensions of the text or image; permissible
13685  units are em, ex, in, pt, pc, cm, mm, dd, cc, nd, nc, bp, or sp; if you
13686  enter 
13687 \family typewriter
13688 !
13689 \family default
13690  for 
13691 \family typewriter
13692 Height
13693 \family default
13694  it scales by the width factor:
13695 \end_layout
13696
13697 \begin_layout Standard
13698
13699 \change_inserted 564990737 1671829045
13700
13701 \lang american
13702 \begin_inset Flex Resizebox
13703 status open
13704
13705 \begin_layout Plain Layout
13706
13707 \change_inserted 564990737 1671829045
13708
13709 \lang american
13710 \begin_inset Argument 1
13711 status open
13712
13713 \begin_layout Plain Layout
13714
13715 \change_inserted 564990737 1671829045
13716
13717 \lang american
13718 48mm
13719 \change_unchanged
13720
13721 \end_layout
13722
13723 \end_inset
13724
13725
13726 \begin_inset Argument 2
13727 status open
13728
13729 \begin_layout Plain Layout
13730
13731 \change_inserted 564990737 1671829045
13732
13733 \lang american
13734 !
13735 \change_unchanged
13736
13737 \end_layout
13738
13739 \end_inset
13740
13741 Great Western Railway
13742 \change_unchanged
13743
13744 \end_layout
13745
13746 \end_inset
13747
13748
13749 \end_layout
13750
13751 \begin_layout Standard
13752
13753 \change_inserted 564990737 1671829045
13754
13755 \family sans
13756 \lang american
13757 Rotatebox
13758 \family default
13759  allows you to rotate text around the reference point of the box.
13760  If you wish to rotate the box around a different origin, place the cursor
13761  inside the box and select Insert\SpecialChar menuseparator
13762 Origin; o
13763 \family typewriter
13764 rigin
13765 \family default
13766  is specified as 
13767 \family typewriter
13768 c
13769 \family default
13770 ,
13771 \family typewriter
13772  l
13773 \family default
13774 ,
13775 \family typewriter
13776  r
13777 \family default
13778 ,
13779 \family typewriter
13780  b
13781 \family default
13782 ,
13783 \family typewriter
13784  t
13785 \family default
13786  or meaningful combinations of these and the counterclockwise rotation angle
13787  is expressed in degrees.
13788  For example:
13789 \end_layout
13790
13791 \begin_layout Standard
13792
13793 \change_inserted 564990737 1671829045
13794
13795 \lang american
13796 \begin_inset Flex Rotatebox
13797 status open
13798
13799 \begin_layout Plain Layout
13800
13801 \change_inserted 564990737 1671829045
13802
13803 \lang american
13804 \begin_inset Argument 1
13805 status open
13806
13807 \begin_layout Plain Layout
13808
13809 \change_inserted 564990737 1671829045
13810
13811 \lang british
13812 =c
13813 \change_unchanged
13814
13815 \end_layout
13816
13817 \end_inset
13818
13819
13820 \begin_inset Argument 2
13821 status open
13822
13823 \begin_layout Plain Layout
13824
13825 \change_inserted 564990737 1671829045
13826
13827 \lang british
13828 30
13829 \change_unchanged
13830
13831 \end_layout
13832
13833 \end_inset
13834
13835 Great Western Railway
13836 \change_unchanged
13837
13838 \end_layout
13839
13840 \end_inset
13841
13842
13843 \end_layout
13844
13845 \begin_layout Standard
13846
13847 \change_inserted 564990737 1671829045
13848
13849 \lang american
13850 You can combine boxes as in:
13851 \end_layout
13852
13853 \begin_layout Standard
13854
13855 \change_inserted 564990737 1671829045
13856
13857 \lang british
13858 \begin_inset Flex Rotatebox
13859 status open
13860
13861 \begin_layout Plain Layout
13862
13863 \change_inserted 564990737 1671829045
13864
13865 \lang british
13866 \begin_inset Argument 1
13867 status open
13868
13869 \begin_layout Plain Layout
13870
13871 \change_inserted 564990737 1671829045
13872
13873 \lang british
13874 =c
13875 \change_unchanged
13876
13877 \end_layout
13878
13879 \end_inset
13880
13881
13882 \begin_inset Argument 2
13883 status open
13884
13885 \begin_layout Plain Layout
13886
13887 \change_inserted 564990737 1671829045
13888
13889 \lang british
13890 -15
13891 \change_unchanged
13892
13893 \end_layout
13894
13895 \end_inset
13896
13897
13898 \begin_inset Flex Resizebox
13899 status open
13900
13901 \begin_layout Plain Layout
13902
13903 \change_inserted 564990737 1671829045
13904
13905 \lang british
13906 \begin_inset Argument 1
13907 status open
13908
13909 \begin_layout Plain Layout
13910
13911 \change_inserted 564990737 1671829045
13912
13913 \lang british
13914 48mm
13915 \change_unchanged
13916
13917 \end_layout
13918
13919 \end_inset
13920
13921
13922 \begin_inset Argument 2
13923 status open
13924
13925 \begin_layout Plain Layout
13926
13927 \change_inserted 564990737 1671829045
13928
13929 \lang british
13930 !
13931 \change_unchanged
13932
13933 \end_layout
13934
13935 \end_inset
13936
13937
13938 \begin_inset Flex Reflectbox
13939 status open
13940
13941 \begin_layout Plain Layout
13942
13943 \change_inserted 564990737 1671829045
13944
13945 \lang british
13946 Great Western Railway
13947 \change_unchanged
13948
13949 \end_layout
13950
13951 \end_inset
13952
13953
13954 \change_unchanged
13955
13956 \end_layout
13957
13958 \end_inset
13959
13960
13961 \change_unchanged
13962
13963 \end_layout
13964
13965 \end_inset
13966
13967
13968 \end_layout
13969
13970 \begin_layout Standard
13971
13972 \change_inserted 564990737 1671829045
13973
13974 \family sans
13975 \lang american
13976 Scalebox
13977 \family default
13978  scales text; select Insert\SpecialChar menuseparator
13979 V-Factor to add a vertical factor.
13980  If the vertical factor is omitted, the horizontal is used.
13981  Adding different horizontal and vertical values creates distortion as in
13982  
13983 \end_layout
13984
13985 \begin_layout Standard
13986
13987 \change_inserted 564990737 1671829045
13988
13989 \family typewriter
13990 \lang american
13991 \begin_inset Flex Scalebox
13992 status open
13993
13994 \begin_layout Plain Layout
13995
13996 \change_inserted 564990737 1671829045
13997
13998 \lang american
13999 \begin_inset Argument 1
14000 status open
14001
14002 \begin_layout Plain Layout
14003
14004 \change_inserted 564990737 1671829045
14005
14006 \lang american
14007 2
14008 \change_unchanged
14009
14010 \end_layout
14011
14012 \end_inset
14013
14014
14015 \begin_inset Argument 2
14016 status open
14017
14018 \begin_layout Plain Layout
14019
14020 \change_inserted 564990737 1671829045
14021
14022 \lang american
14023 1.5
14024 \change_unchanged
14025
14026 \end_layout
14027
14028 \end_inset
14029
14030
14031 \family roman
14032 Great Western Railway
14033 \change_unchanged
14034
14035 \end_layout
14036
14037 \end_inset
14038
14039 .
14040 \end_layout
14041
14042 \begin_layout Standard
14043
14044 \change_inserted 564990737 1671829045
14045
14046 \lang american
14047 A negative horizontal value reverses the text and a negative vertical value
14048  inverts it so that you get 
14049 \end_layout
14050
14051 \begin_layout Standard
14052
14053 \change_inserted 564990737 1671829045
14054
14055 \lang american
14056 \begin_inset Flex Scalebox
14057 status open
14058
14059 \begin_layout Plain Layout
14060
14061 \change_inserted 564990737 1671829045
14062
14063 \lang american
14064 \begin_inset Argument 1
14065 status open
14066
14067 \begin_layout Plain Layout
14068
14069 \change_inserted 564990737 1671829045
14070
14071 \lang british
14072 -1
14073 \change_unchanged
14074
14075 \end_layout
14076
14077 \end_inset
14078
14079
14080 \begin_inset Argument 2
14081 status open
14082
14083 \begin_layout Plain Layout
14084
14085 \change_inserted 564990737 1671829045
14086
14087 \lang british
14088 1
14089 \change_unchanged
14090
14091 \end_layout
14092
14093 \end_inset
14094
14095 Great Western Railway
14096 \change_unchanged
14097
14098 \end_layout
14099
14100 \end_inset
14101
14102  and 
14103 \begin_inset Flex Scalebox
14104 status open
14105
14106 \begin_layout Plain Layout
14107
14108 \change_inserted 564990737 1671829045
14109
14110 \lang american
14111 \begin_inset Argument 1
14112 status open
14113
14114 \begin_layout Plain Layout
14115
14116 \change_inserted 564990737 1671829045
14117
14118 \lang british
14119 1
14120 \change_unchanged
14121
14122 \end_layout
14123
14124 \end_inset
14125
14126
14127 \begin_inset Argument 2
14128 status open
14129
14130 \begin_layout Plain Layout
14131
14132 \change_inserted 564990737 1671829045
14133
14134 \lang british
14135 -1
14136 \change_unchanged
14137
14138 \end_layout
14139
14140 \end_inset
14141
14142 Great Western Railway
14143 \change_unchanged
14144
14145 \end_layout
14146
14147 \end_inset
14148
14149 .
14150 \end_layout
14151
14152 \begin_layout Subsection
14153
14154 \change_inserted 564990737 1671884699
14155
14156 \lang american
14157 Section Boxes
14158 \end_layout
14159
14160 \begin_layout Standard
14161
14162 \change_inserted 564990737 1671884699
14163
14164 \lang american
14165 This module defines Boxes with section header.
14166  It is mainly intended for the SciPoster Document class.
14167  
14168 \end_layout
14169
14170 \begin_layout Subsection
14171
14172 \change_inserted 564990737 1671884699
14173
14174 \lang american
14175 Variable-width Minipages
14176 \end_layout
14177
14178 \begin_layout Standard
14179
14180 \change_inserted 564990737 1671884699
14181
14182 \lang american
14183 This module adds a 
14184 \family sans
14185 Minipage (Var.
14186 \begin_inset space \thinspace{}
14187 \end_inset
14188
14189 Width)
14190 \family default
14191  inset to 
14192 \family sans
14193 Insert\SpecialChar menuseparator
14194 Custom Inset
14195 \family default
14196  using the 
14197 \family sans
14198 varwidth
14199 \family default
14200  LaTeX package.
14201  The 
14202 \family sans
14203 varwidth
14204 \family default
14205  package provides a variable-width minipage, whose resulting width is the
14206  width of its contents (if this does not exceed the specified maximum width).
14207  The inset has two optional arguments which can be added by placing the
14208  cursor inside the minipage and entering 
14209 \family sans
14210 Insert\SpecialChar menuseparator
14211 Vert.
14212 \begin_inset space \thinspace{}
14213 \end_inset
14214
14215 Adjustment
14216 \family default
14217  (
14218 \family typewriter
14219 c|t|b
14220 \family default
14221 ) or 
14222 \family sans
14223 Insert\SpecialChar menuseparator
14224 Max.
14225 \begin_inset space \thinspace{}
14226 \end_inset
14227
14228 Width
14229 \family default
14230  (defaults to 
14231 \family typewriter
14232
14233 \backslash
14234 linewidth
14235 \family default
14236 ).
14237  See 
14238 \family sans
14239 File\SpecialChar menuseparator
14240 Open Example\SpecialChar menuseparator
14241 Variable-width Minipages
14242 \family default
14243 .
14244  
14245 \end_layout
14246
14247 \begin_layout Section
14248
14249 \change_inserted 564990737 1671884699
14250
14251 \lang american
14252 Fixes & Hacks
14253 \end_layout
14254
14255 \begin_layout Subsection
14256
14257 \change_inserted 564990737 1671884699
14258
14259 \lang american
14260 Fix Computer Modern Fonts
14261 \end_layout
14262
14263 \begin_layout Standard
14264
14265 \change_inserted 564990737 1671884699
14266
14267 \lang american
14268 This module uses the 
14269 \family sans
14270 fix-cm
14271 \family default
14272  package to improve the appearance of Computer Modern fonts and make them
14273  available with arbitrary sizes.
14274  See the 
14275 \begin_inset CommandInset href
14276 LatexCommand href
14277 name "fix-cm documentation"
14278 target "http://mirrors.ctan.org/macros/latex/base/fix-cm.pdf"
14279 literal "false"
14280
14281 \end_inset
14282
14283 .
14284  
14285 \end_layout
14286
14287 \begin_layout Subsection
14288
14289 \change_inserted 564990737 1671884699
14290
14291 \lang american
14292 \SpecialChar LaTeX
14293  Kernel Fixes (Obsolete)
14294 \end_layout
14295
14296 \begin_layout Standard
14297
14298 \change_inserted 564990737 1671884699
14299
14300 \lang american
14301 This module loads the \SpecialChar LaTeX
14302  package 
14303 \family sans
14304 fixltx2e
14305 \family default
14306  which contains some bug fixes for \SpecialChar LaTeX
14307 .
14308  If you use this module your typeset document may look different when you
14309  process it, depending on the respective version of 
14310 \family sans
14311 fixltx2e
14312 \family default
14313 .
14314  
14315 \end_layout
14316
14317 \begin_layout Paragraph
14318
14319 \change_inserted 564990737 1671884699
14320
14321 \lang american
14322 Note:
14323 \end_layout
14324
14325 \begin_layout Standard
14326
14327 \change_inserted 564990737 1671884699
14328
14329 \lang american
14330 recent \SpecialChar LaTeX
14331  kernels (as of 2015/01/01) include the functionality of 
14332 \family sans
14333 fixltx2e
14334 \family default
14335 , so the 
14336 \family sans
14337 fixltx2e
14338 \family default
14339  module is obsolete with newer \SpecialChar LaTeX
14340  distributions.
14341  
14342 \end_layout
14343
14344 \begin_layout Subsection
14345
14346 \change_inserted 564990737 1671884699
14347
14348 \lang american
14349 Minimalistic Insets
14350 \end_layout
14351
14352 \begin_layout Standard
14353
14354 \change_inserted 564990737 1671884699
14355
14356 \lang american
14357 This module redefines several insets (Index, Branch, URL) as being Minimalistic.
14358 \end_layout
14359
14360 \begin_layout Subsection
14361
14362 \change_inserted 564990737 1671884699
14363
14364 \lang american
14365 Title and Preamble Hacks
14366 \end_layout
14367
14368 \begin_layout Standard
14369
14370 \change_inserted 564990737 1671884699
14371
14372 \lang american
14373 This module provides two new paragraph styles: 
14374 \end_layout
14375
14376 \begin_layout Enumerate
14377
14378 \change_inserted 564990737 1671884699
14379
14380 \family sans
14381 \lang american
14382 In Preamble
14383 \family default
14384  which puts whatever is entered into it into the preamble.
14385  This can be used, if one wishes, to include preamble code in the body of
14386  a LyX document.
14387  
14388 \end_layout
14389
14390 \begin_layout Enumerate
14391
14392 \change_inserted 564990737 1671884699
14393
14394 \family sans
14395 \lang american
14396 In Title
14397 \family default
14398  which that will put its contents into the body of the LaTeX document, but
14399  before 
14400 \family typewriter
14401
14402 \backslash
14403 maketitle
14404 \family default
14405  is issued.
14406  This is useful for making branches and notes in title-related material.
14407  (However, if you put these in a Standard layout, this signals to LyX to
14408  output 
14409 \family typewriter
14410
14411 \backslash
14412 maketitle
14413 \family default
14414 , which may then come too early.)
14415 \end_layout
14416
14417 \begin_layout Section
14418
14419 \change_inserted 564990737 1672081439
14420
14421 \lang american
14422 Floats & captions
14423 \end_layout
14424
14425 \begin_layout Subsection
14426
14427 \change_inserted 564990737 1672081439
14428
14429 \lang american
14430 Algorithm2e Float
14431 \end_layout
14432
14433 \begin_layout Standard
14434
14435 \change_inserted 564990737 1672081439
14436
14437 \lang american
14438 This module uses the 
14439 \family sans
14440 algorithm2e
14441 \family default
14442  package for algorithm floats rather than LyX’s home-brewed algorithm floats.
14443  Use the Algorithm paragraph style to enter and indent the algorithm.
14444  See the 
14445 \begin_inset CommandInset href
14446 LatexCommand href
14447 name "algorithm2e documentation"
14448 target "http://mirrors.ctan.org/macros/latex/contrib/algorithm2e/doc/algorithm2e.pdf"
14449 literal "false"
14450
14451 \end_inset
14452
14453 .
14454 \end_layout
14455
14456 \begin_layout Subsection
14457
14458 \change_inserted 564990737 1672081439
14459
14460 \lang american
14461 Bilingual Captions AKA Multilingual Captions
14462 \end_layout
14463
14464 \begin_layout Standard
14465
14466 \change_inserted 564990737 1672081439
14467
14468 \lang american
14469 This module provides the paragraph style 
14470 \family sans
14471 Caption
14472 \begin_inset space ~
14473 \end_inset
14474
14475 setup
14476 \family default
14477  with which to typeset multilingual captions.
14478  Within this paragraph style 
14479 \family sans
14480 Insert\SpecialChar menuseparator
14481 Language
14482 \family default
14483  allows you to enter the desired language using one of the babel names.
14484  See 
14485 \family sans
14486 File\SpecialChar menuseparator
14487 Open Example\SpecialChar menuseparator
14488 Multilingual Captions
14489 \family default
14490  and 
14491 \family sans
14492 Help\SpecialChar menuseparator
14493 Specific Manuals\SpecialChar menuseparator
14494 Multilingual Captions
14495 \family default
14496  further information on its use.
14497 \end_layout
14498
14499 \begin_layout Subsection
14500
14501 \change_inserted 564990737 1672081439
14502
14503 \lang american
14504 Number Figures by Section
14505 \end_layout
14506
14507 \begin_layout Standard
14508
14509 \change_inserted 564990737 1672081439
14510
14511 \lang american
14512 This module resets the figure number at section start and prepends the section
14513  number to the figure number, as in “Figure 2.1.” (By default book and report
14514  document classes number by Chapter and article document classes have a
14515  single sequence.) 
14516 \end_layout
14517
14518 \begin_layout Subsection
14519
14520 \change_inserted 564990737 1672081439
14521
14522 \lang american
14523 Number Tables by Section
14524 \end_layout
14525
14526 \begin_layout Standard
14527
14528 \change_inserted 564990737 1672081439
14529
14530 \lang american
14531 This module resets the table number at section start and prepends the section
14532  number to the table number, as in “Table 2.1.” (By default book and report
14533  document classes number by Chapter and article document classes have a
14534  single sequence.) 
14535 \end_layout
14536
14537 \begin_layout Section
14538
14539 \change_inserted 564990737 1672081439
14540
14541 \lang american
14542 Foot- and Endnotes
14543 \end_layout
14544
14545 \begin_layout Subsection
14546
14547 \change_inserted 564990737 1672081439
14548
14549 \lang american
14550 Endnotes (Basic)
14551 \end_layout
14552
14553 \begin_layout Standard
14554
14555 \change_inserted 564990737 1672081439
14556
14557 \lang american
14558 This module adds an endnote inset, in addition to footnotes.
14559  This uses the 
14560 \family sans
14561 endnotes
14562 \family default
14563  package, which has some limitations but works with older LaTeX distributions
14564  as well.
14565  Use 
14566 \family sans
14567 Insert\SpecialChar menuseparator
14568 Custom Inset\SpecialChar menuseparator
14569 Endnote
14570 \family default
14571  to insert an endnote and 
14572 \family sans
14573 Insert\SpecialChar menuseparator
14574 List/Contents/References\SpecialChar menuseparator
14575 Endnotes
14576 \family default
14577  to insert the endnotes list where you want the endnotes to appear.
14578  See also 
14579 \family sans
14580 Help\SpecialChar menuseparator
14581 Embedded\SpecialChar menuseparator
14582  Objects\SpecialChar menuseparator
14583 Notes\SpecialChar menuseparator
14584 Footnotes
14585 \family default
14586 .
14587 \end_layout
14588
14589 \begin_layout Subsection
14590
14591 \change_inserted 564990737 1672081439
14592
14593 \lang american
14594 Endnotes (Extended)
14595 \end_layout
14596
14597 \begin_layout Standard
14598
14599 \change_inserted 564990737 1672081439
14600
14601 \lang american
14602 This module adds an endnote inset, in addition to footnotes.
14603  This uses the 
14604 \family sans
14605 enotez
14606 \family default
14607  package which is more powerful and customizable than the 
14608 \family sans
14609 endnotes
14610 \family default
14611  package, but requires a fairly modern LaTeX distribution (with LaTeX3).
14612  Use 
14613 \family sans
14614 Insert\SpecialChar menuseparator
14615 Custom Inset\SpecialChar menuseparator
14616 Endnote
14617 \family default
14618  to insert an endnote and 
14619 \family sans
14620 Insert\SpecialChar menuseparator
14621 List/Contents/References\SpecialChar menuseparator
14622 Endnotes
14623 \family default
14624  to insert the endnotes list where you want the endnotes to appear.
14625  See also 
14626 \family sans
14627 Help\SpecialChar menuseparator
14628 Embedded\SpecialChar menuseparator
14629  Objects\SpecialChar menuseparator
14630 Notes\SpecialChar menuseparator
14631 Footnotes
14632 \family default
14633 .
14634 \end_layout
14635
14636 \begin_layout Subsection
14637
14638 \change_inserted 564990737 1672081439
14639
14640 \lang american
14641 Footnotes as Endnotes (Basic)
14642 \end_layout
14643
14644 \begin_layout Standard
14645
14646 \change_inserted 564990737 1672081439
14647
14648 \lang american
14649 This module sets all footnotes as endnotes.
14650  This uses the 
14651 \family sans
14652 endnotes
14653 \family default
14654  package, which has some limitations but works with older LaTeX distributions
14655  as well.
14656  Use 
14657 \family sans
14658 Insert\SpecialChar menuseparator
14659 List/Contents/References\SpecialChar menuseparator
14660 Endnotes
14661 \family default
14662  to insert the endnotes list where you want the endnotes to appear.
14663  See also 
14664 \family sans
14665 Help\SpecialChar menuseparator
14666 Embedded\SpecialChar menuseparator
14667  Objects\SpecialChar menuseparator
14668 Notes\SpecialChar menuseparator
14669 Footnotes
14670 \family default
14671 .
14672 \end_layout
14673
14674 \begin_layout Subsection
14675
14676 \change_inserted 564990737 1672081439
14677
14678 \lang american
14679 Footnotes as Endnotes (Extended)
14680 \end_layout
14681
14682 \begin_layout Standard
14683
14684 \change_inserted 564990737 1672081439
14685
14686 \lang american
14687 This module sets all footnotes as endnotes.
14688  This uses the 
14689 \family sans
14690 enotez
14691 \family default
14692  package which is more powerful and customizable than then 
14693 \family sans
14694 endnotes
14695 \family default
14696  package, but requires a fairly modern LaTeX distribution (with LaTeX3).
14697  Use 
14698 \family sans
14699 Insert\SpecialChar menuseparator
14700 List/Contents/References\SpecialChar menuseparator
14701 Endnotes
14702 \family default
14703  to insert the endnotes list where you want the endnotes to appear.
14704  See also 
14705 \family sans
14706 Help\SpecialChar menuseparator
14707 Embedded\SpecialChar menuseparator
14708  Objects\SpecialChar menuseparator
14709 Notes\SpecialChar menuseparator
14710 Footnotes
14711 \family default
14712 .
14713 \end_layout
14714
14715 \begin_layout Section
14716
14717 \change_inserted 564990737 1672081439
14718
14719 \lang american
14720 Leisure, Sports and Music
14721 \end_layout
14722
14723 \begin_layout Subsection
14724
14725 \change_inserted 564990737 1672081439
14726
14727 \lang american
14728 Chess Board
14729 \end_layout
14730
14731 \begin_layout Standard
14732
14733 \change_inserted 564990737 1672081439
14734
14735 \lang american
14736 This module provides support for the 
14737 \family sans
14738 chessboard
14739 \family default
14740  package to print chess games.
14741  See 
14742 \family sans
14743 File\SpecialChar menuseparator
14744 Open Example\SpecialChar menuseparator
14745 Articles\SpecialChar menuseparator
14746 Chess
14747 \family default
14748  where you will find 
14749 \family sans
14750 Game 1
14751 \family default
14752  and 
14753 \family sans
14754 Game 2
14755 \family default
14756  and the 
14757 \begin_inset CommandInset href
14758 LatexCommand href
14759 name "chessboard documentation"
14760 target "http://mirrors.ctan.org/macros/latex/contrib/chessboard/chessboard.pdf"
14761 literal "false"
14762
14763 \end_inset
14764
14765 .
14766 \end_layout
14767
14768 \begin_layout Subsection
14769
14770 \change_inserted 564990737 1672081439
14771
14772 \lang american
14773 Lilypond Music Notation
14774 \end_layout
14775
14776 \begin_layout Standard
14777
14778 \change_inserted 564990737 1672081439
14779
14780 \lang american
14781 This module provides an inset via 
14782 \family sans
14783 \bar under
14784 I
14785 \bar default
14786 nsert\SpecialChar menuseparator
14787 Custom Inset\SpecialChar menuseparator
14788 Lilypond
14789 \family default
14790  in which to enter code for the LilyPond music editor.
14791  It will then be processed in the output.
14792  See 
14793 \family sans
14794 Help\SpecialChar menuseparator
14795 Specific Manuals\SpecialChar menuseparator
14796 Lilypond
14797 \family default
14798  and 
14799 \family sans
14800 File\SpecialChar menuseparator
14801 Open Example\SpecialChar menuseparator
14802 Modules\SpecialChar menuseparator
14803 Lilypond Book
14804 \family default
14805 .
14806  It cannot be used if the modules 
14807 \family sans
14808 Rnw
14809 \begin_inset space \thinspace{}
14810 \end_inset
14811
14812 (knitr) or Sweave
14813 \family default
14814  have been loaded.
14815 \end_layout
14816
14817 \begin_layout Section
14818 Multiple Text Columns
14819 \end_layout
14820
14821 \begin_layout Standard
14822 This feature is independent of the option 
14823 \family sans
14824 Two-column document
14825 \family default
14826  in the document settings under 
14827 \family sans
14828 Text Layout
14829 \family default
14830 .
14831  If you want to have 2
14832 \begin_inset space ~
14833 \end_inset
14834
14835 columns for the whole document, it is recommended to use the 
14836 \family sans
14837 Two-column document
14838 \family default
14839  option.
14840  For all other cases use this feature.
14841 \end_layout
14842
14843 \begin_layout Standard
14844 To use multiple text columns in your document, you have to load the module
14845  
14846 \family sans
14847 Multiple Columns
14848 \family default
14849  (menu 
14850 \family sans
14851 Document\SpecialChar menuseparator
14852 Settings\SpecialChar menuseparator
14853 Modules
14854 \family default
14855 ) and must have the \SpecialChar LaTeX
14856 -package 
14857 \begin_inset Flex Code
14858 status collapsed
14859
14860 \begin_layout Plain Layout
14861 multicol
14862 \end_layout
14863
14864 \end_inset
14865
14866  installed.
14867 \end_layout
14868
14869 \begin_layout Standard
14870 Footnotes within multiple columns will be placed at the bottom of the page
14871  and not under each column.
14872  Within the different columns you can use everything, with the limitation
14873  that for floats you need to use the float option 
14874 \family sans
14875 Span columns
14876 \family default
14877 .
14878 \end_layout
14879
14880 \begin_layout Subsection
14881 Basics
14882 \end_layout
14883
14884 \begin_layout Standard
14885 If you want to have 2
14886 \begin_inset space ~
14887 \end_inset
14888
14889 columns in your text, insert a multicolumn inset via the menu 
14890 \family sans
14891 Insert\SpecialChar menuseparator
14892 Custom
14893 \begin_inset space ~
14894 \end_inset
14895
14896 Insets\SpecialChar menuseparator
14897 Multiple
14898 \begin_inset space ~
14899 \end_inset
14900
14901 Columns
14902 \family default
14903  where the columns should start.
14904  Write all text that should be printed in 2
14905 \begin_inset space ~
14906 \end_inset
14907
14908 columns into this inset.
14909 \end_layout
14910
14911 \begin_layout Standard
14912 Here is an example:
14913 \end_layout
14914
14915 \begin_layout Standard
14916 \noindent
14917 \begin_inset Flex Multiple Columns
14918 status open
14919
14920 \begin_layout Plain Layout
14921 \noindent
14922
14923 \series bold
14924 \size small
14925 The Adventure of the Empty House
14926 \series default
14927
14928 \begin_inset Newline newline
14929 \end_inset
14930
14931 by Sir Arthur Conan Doyle
14932 \end_layout
14933
14934 \begin_layout Plain Layout
14935
14936 \size small
14937 It was in the spring of the year 1894 that all London was interested, and
14938  the fashionable world dismayed, by the murder of the Honourable Ronald
14939  Adair under most unusual and inexplicable circumstances.
14940  The public has already learned those particulars of the crime which came
14941  out in the police investigation, but a good deal was suppressed upon that
14942  occasion, since the case for the prosecution was so overwhelmingly strong
14943  that it was not necessary to bring forward all the facts.
14944  Only now, at the end of nearly ten years, am I allowed to supply those
14945  missing links which make up the whole of that remarkable chain.
14946  The crime was of interest in itself, but that interest was as nothing to
14947  me compared to the inconceivable sequel, which afforded me the greatest
14948  shock and surprise of any event in my adventurous life.
14949  Even now, after this long interval, I find myself thrilling as I think
14950  of it, and feeling once more that sudden flood of joy, amazement, and increduli
14951 ty which utterly submerged my mind.
14952  Let me say to that public, which has shown some interest in those glimpses
14953  which I have occasionally given them of the thoughts and actions of a very
14954  remarkable man, that they are not to blame me if I have not shared my knowledge
14955  with them, for I should have considered it my first duty to do so, had
14956  I not been barred by a positive prohibition from his own lips, which was
14957  only withdrawn upon the third of last month.
14958 \end_layout
14959
14960 \end_inset
14961
14962
14963 \end_layout
14964
14965 \begin_layout Standard
14966 To get 3 or more columns, set the cursor into the multicolumn inset and
14967  use the menu 
14968 \family sans
14969 Insert\SpecialChar menuseparator
14970 Number
14971 \begin_inset space ~
14972 \end_inset
14973
14974 of
14975 \begin_inset space ~
14976 \end_inset
14977
14978 Columns
14979 \family default
14980 .
14981  The number of the desired columns is written into that inset (for 3
14982 \begin_inset space ~
14983 \end_inset
14984
14985 columns write 
14986 \begin_inset Quotes eld
14987 \end_inset
14988
14989 3
14990 \begin_inset Quotes erd
14991 \end_inset
14992
14993 ).
14994 \begin_inset Newline newline
14995 \end_inset
14996
14997 Here is an example with 3
14998 \begin_inset space ~
14999 \end_inset
15000
15001 columns:
15002 \end_layout
15003
15004 \begin_layout Standard
15005 \begin_inset Flex Multiple Columns
15006 status open
15007
15008 \begin_layout Plain Layout
15009
15010 \size footnotesize
15011 \begin_inset Argument 1
15012 status open
15013
15014 \begin_layout Plain Layout
15015
15016 3
15017 \end_layout
15018
15019 \end_inset
15020
15021 It can be imagined that my close intimacy with Sherlock Holmes had interested
15022  me deeply in crime, and that after his disappearance I never failed to
15023  read with care the various problems which came before the public.
15024  And I even attempted, more than once, for my own private satisfaction,
15025  to employ his methods in their solution, though with indifferent success.
15026  There was none, however, which appealed to me like this tragedy of Ronald
15027  Adair.
15028  As I read the evidence at the inquest, which led up to a verdict of willful
15029  murder against some person or persons unknown, I realized more clearly
15030  than I had ever done the loss which the community had sustained by the
15031  death of Sherlock Holmes.
15032  There were points about this strange business which would, I was sure,
15033  have specially appealed to him, and the efforts of the police would have
15034  been supplemented, or more probably anticipated, by the trained observation
15035  and the alert mind of the first criminal agent in Europe.
15036  All day, as I drove upon my round, I turned over the case in my mind and
15037  found no explanation which appeared to me to be adequate.
15038  At the risk of telling a twice-told tale, I will recapitulate the facts
15039  as they were known to the public at the conclusion of the inquest.
15040 \end_layout
15041
15042 \end_inset
15043
15044
15045 \end_layout
15046
15047 \begin_layout Standard
15048 You can have up to 10
15049 \begin_inset space ~
15050 \end_inset
15051
15052 columns if you want to, but that might not be very pleasant for the readers
15053  of your document.
15054 \end_layout
15055
15056 \begin_layout Standard
15057 \begin_inset Newpage newpage
15058 \end_inset
15059
15060
15061 \end_layout
15062
15063 \begin_layout Subsection
15064 Columns inside Columns
15065 \end_layout
15066
15067 \begin_layout Standard
15068 You can also have columns inside columns:
15069 \end_layout
15070
15071 \begin_layout Standard
15072 \begin_inset Flex Multiple Columns
15073 status open
15074
15075 \begin_layout Plain Layout
15076
15077 \size footnotesize
15078 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
15079  at that time governor of one of the Australian colonies.
15080  Adair's mother had returned from Australia to undergo the operation for
15081  cataract, and she, her son Ronald, and her daughter Hilda were living together
15082  at 427 Park Lane.
15083 \end_layout
15084
15085 \begin_layout Plain Layout
15086 \begin_inset Flex Multiple Columns
15087 status open
15088
15089 \begin_layout Plain Layout
15090
15091 \size footnotesize
15092 The youth moved in the best society
15093 \begin_inset space ~
15094 \end_inset
15095
15096 – had, so far as was known, no enemies and no particular vices.
15097  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
15098  had been broken off by mutual consent some months before, and there was
15099  no sign that it had left any very profound feeling behind it.
15100  For the rest {sic} the man's life moved in a narrow and conventional circle,
15101  for his habits were quiet and his nature unemotional.
15102  Yet it was upon this easy-going young aristocrat that death came, in most
15103  strange and unexpected form, between the hours of ten and eleven-twenty
15104  on the night of March 30, 1894.
15105 \end_layout
15106
15107 \end_inset
15108
15109
15110 \end_layout
15111
15112 \begin_layout Plain Layout
15113
15114 \size footnotesize
15115 Ronald Adair was fond of cards
15116 \begin_inset space ~
15117 \end_inset
15118
15119 – playing continually, but never for such stakes as would hurt him.
15120  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
15121  It was shown that, after dinner on the day of his death, he had played
15122  a rubber of whist at the latter club.
15123  He had also played there in the afternoon.
15124
15125 \size default
15126  
15127 \size footnotesize
15128 The evidence of those who had played with him
15129 \begin_inset space ~
15130 \end_inset
15131
15132 – Mr.
15133  Murray, Sir John Hardy, and Colonel Moran
15134 \begin_inset space ~
15135 \end_inset
15136
15137 – showed that the game was whist, and that there was a fairly equal fall
15138  of the cards.
15139  Adair might have lost five pounds, but not more.
15140  His fortune was a considerable one, and such a loss could not in any way
15141  affect him.
15142  He had played nearly every day at one club or other, but he was a cautious
15143  player, and usually rose a winner.
15144  It came out in evidence that, in partnership with Colonel Moran, he had
15145  actually won as much as four hundred and twenty pounds in a sitting, some
15146  weeks before, from Godfrey Milner and Lord Balmoral.
15147  So much for his recent history as it came out at the inquest.
15148 \end_layout
15149
15150 \end_inset
15151
15152
15153 \end_layout
15154
15155 \begin_layout Subsection
15156 Advanced Examples
15157 \end_layout
15158
15159 \begin_layout Standard
15160 The examples in this section show some more special features of multiple
15161  columns.
15162 \end_layout
15163
15164 \begin_layout Standard
15165 For more features of multiple columns, have a look at the 
15166 \begin_inset CommandInset href
15167 LatexCommand href
15168 name "documentation"
15169 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
15170 literal "false"
15171
15172 \end_inset
15173
15174  of the \SpecialChar LaTeX
15175 -package 
15176 \begin_inset Flex Code
15177 status collapsed
15178
15179 \begin_layout Plain Layout
15180 multicol
15181 \end_layout
15182
15183 \end_inset
15184
15185 .
15186 \end_layout
15187
15188 \begin_layout Subsubsection
15189 Preface
15190 \end_layout
15191
15192 \begin_layout Standard
15193 To add a preface text for multiple columns, set the cursor into the multicolumn
15194  inset and use the menu 
15195 \family sans
15196 Insert\SpecialChar menuseparator
15197 Preface
15198 \family default
15199 .
15200  Write your preface text into that inset.
15201 \begin_inset Newline newline
15202 \end_inset
15203
15204 This is an example with some preface text:
15205 \end_layout
15206
15207 \begin_layout Standard
15208 \begin_inset VSpace bigskip
15209 \end_inset
15210
15211
15212 \end_layout
15213
15214 \begin_layout Standard
15215 \begin_inset Flex Multiple Columns
15216 status open
15217
15218 \begin_layout Plain Layout
15219 \begin_inset Argument 2
15220 status open
15221
15222 \begin_layout Plain Layout
15223 And the story continues and continues and continues and continues\SpecialChar ldots
15224
15225 \end_layout
15226
15227 \end_inset
15228
15229
15230 \size small
15231 On the evening of the crime, he returned from the club exactly at ten.
15232  His mother and sister were out spending the evening with a relation.
15233  The servant deposed that she heard him enter the front room on the second
15234  floor, generally used as his sitting-room.
15235  She had lit a fire there, and as it smoked she had opened the window.
15236  No sound was heard from the room until eleven-twenty, the hour of the return
15237  of Lady Maynooth and her daughter.
15238  Desiring to say good-night, she attempted to enter her son's room.
15239  The door was locked on the inside, and no answer could be got to their
15240  cries and knocking.
15241  Help was obtained, and the door forced.
15242  The unfortunate young man was found lying near the table.
15243  His head had been horribly mutilated by an expanding revolver bullet, but
15244  no weapon of any sort was to be found in the room.
15245 \end_layout
15246
15247 \end_inset
15248
15249
15250 \end_layout
15251
15252 \begin_layout Standard
15253 You can also use a section heading as the preface if you use a section command
15254  as \SpecialChar TeX
15255  Code.
15256  For example the command
15257 \end_layout
15258
15259 \begin_layout LyX-Code
15260
15261 \backslash
15262 subsection{subsection title}
15263 \end_layout
15264
15265 \begin_layout Standard
15266 creates a subsection.
15267  In this example the preface is a subsubsection:
15268 \end_layout
15269
15270 \begin_layout Standard
15271 \begin_inset Flex Multiple Columns
15272 status open
15273
15274 \begin_layout Plain Layout
15275 \begin_inset Argument 2
15276 status open
15277
15278 \begin_layout Plain Layout
15279 \begin_inset ERT
15280 status collapsed
15281
15282 \begin_layout Plain Layout
15283
15284
15285 \backslash
15286 subsubsection{
15287 \end_layout
15288
15289 \end_inset
15290
15291 This is a subsubsection heading as a preface
15292 \begin_inset ERT
15293 status collapsed
15294
15295 \begin_layout Plain Layout
15296
15297 }
15298 \end_layout
15299
15300 \end_inset
15301
15302
15303 \end_layout
15304
15305 \end_inset
15306
15307
15308 \size small
15309 A minute examination of the circumstances served only to make the case more
15310  complex.
15311  In the first place, no reason could be given why the young man should have
15312  fastened the door upon the inside.
15313  There was the possibility that the murderer had done this, and had afterwards
15314  escaped by the window.
15315  The drop was at least twenty feet, however, and a bed of crocuses in full
15316  bloom lay beneath.
15317  Neither the flowers nor the earth showed any sign of having been disturbed,
15318  nor were there any marks upon the narrow strip of grass which separated
15319  the house from the road.
15320  Apparently, therefore, it was the young man himself who had fastened the
15321  door.
15322  But how did he come by his death? No one could have climbed up to the window
15323  without leaving traces.
15324  Suppose a man had fired through the window, he would indeed be a remarkable
15325  shot who could with a revolver inflict so deadly a wound.
15326  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
15327  a hundred yards of the house.
15328  No one had heard a shot.
15329 \end_layout
15330
15331 \end_inset
15332
15333
15334 \end_layout
15335
15336 \begin_layout Standard
15337 If there is less vertical space than 6
15338 \begin_inset space ~
15339 \end_inset
15340
15341 text lines is left on the page at the beginning of the multiple columns,
15342  a page break will be inserted before the multiple columns.
15343  Depending on the number of lines of the preface text, you might want to
15344  change this space.
15345  This is done by setting the cursor into the mulitcolumn inset behind the
15346  preface (if there is any) and using the menu 
15347 \family sans
15348 Insert\SpecialChar menuseparator
15349 Space
15350 \begin_inset space ~
15351 \end_inset
15352
15353 Before
15354 \begin_inset space ~
15355 \end_inset
15356
15357 Page
15358 \begin_inset space ~
15359 \end_inset
15360
15361 Break
15362 \family default
15363 .
15364  Insert into that inset the amount of space like e.
15365 \begin_inset space \thinspace{}
15366 \end_inset
15367
15368 g.
15369 \begin_inset space \space{}
15370 \end_inset
15371
15372
15373 \begin_inset Quotes eld
15374 \end_inset
15375
15376 5cm
15377 \begin_inset Quotes erd
15378 \end_inset
15379
15380 .
15381 \begin_inset Newline newline
15382 \end_inset
15383
15384 In this example the space is set to 7
15385 \begin_inset space ~
15386 \end_inset
15387
15388 text lines by using 
15389 \begin_inset Flex Code
15390 status collapsed
15391
15392 \begin_layout Plain Layout
15393 7
15394 \backslash
15395 baselineskip
15396 \end_layout
15397
15398 \end_inset
15399
15400  (where the command 
15401 \begin_inset Flex Code
15402 status collapsed
15403
15404 \begin_layout Plain Layout
15405
15406 \backslash
15407 baselineskip
15408 \end_layout
15409
15410 \end_inset
15411
15412  needs to be inserted as \SpecialChar TeX
15413  code):
15414 \end_layout
15415
15416 \begin_layout Standard
15417 \begin_inset Flex Multiple Columns
15418 status open
15419
15420 \begin_layout Plain Layout
15421 \begin_inset Argument 3
15422 status open
15423
15424 \begin_layout Plain Layout
15425 7
15426 \begin_inset ERT
15427 status collapsed
15428
15429 \begin_layout Plain Layout
15430
15431
15432 \backslash
15433 baselineskip
15434 \end_layout
15435
15436 \end_inset
15437
15438
15439 \end_layout
15440
15441 \end_inset
15442
15443
15444 \size small
15445 On the evening of the crime, he returned from the club exactly at ten.
15446  His mother and sister were out spending the evening with a relation.
15447  The servant deposed that she heard him enter the front room on the second
15448  floor, generally used as his sitting-room.
15449  She had lit a fire there, and as it smoked she had opened the window.
15450  No sound was heard from the room until eleven-twenty, the hour of the return
15451  of Lady Maynooth and her daughter.
15452  Desiring to say good-night, she attempted to enter her son's room.
15453  The door was locked on the inside, and no answer could be got to their
15454  cries and knocking.
15455  Help was obtained, and the door forced.
15456  The unfortunate young man was found lying near the table.
15457  His head had been horribly mutilated by an expanding revolver bullet, but
15458  no weapon of any sort was to be found in the room.
15459 \end_layout
15460
15461 \end_inset
15462
15463
15464 \end_layout
15465
15466 \begin_layout Subsubsection
15467 Surrounding Space
15468 \end_layout
15469
15470 \begin_layout Standard
15471 The amount of space before and after multiple columns can be changed by
15472  changing the length 
15473 \begin_inset Flex Code
15474 status collapsed
15475
15476 \begin_layout Plain Layout
15477
15478 \backslash
15479 multicolsep
15480 \end_layout
15481
15482 \end_inset
15483
15484 .
15485  For example the command
15486 \end_layout
15487
15488 \begin_layout LyX-Code
15489
15490 \backslash
15491 setlength{
15492 \backslash
15493 multicolsep}{3cm}
15494 \end_layout
15495
15496 \begin_layout Standard
15497 in \SpecialChar TeX
15498  Code changes its value to 3
15499 \begin_inset space \thinspace{}
15500 \end_inset
15501
15502 cm.
15503  The change must be made before the multiple columns' start.
15504  The predefined value is 13
15505 \begin_inset space \thinspace{}
15506 \end_inset
15507
15508 pt.
15509 \end_layout
15510
15511 \begin_layout Standard
15512 For this example 
15513 \begin_inset Flex Code
15514 status collapsed
15515
15516 \begin_layout Plain Layout
15517
15518 \backslash
15519 multicolsep
15520 \end_layout
15521
15522 \end_inset
15523
15524  was set to 2.5
15525 \begin_inset space \thinspace{}
15526 \end_inset
15527
15528 cm:
15529 \end_layout
15530
15531 \begin_layout Standard
15532 \begin_inset ERT
15533 status open
15534
15535 \begin_layout Plain Layout
15536
15537
15538 \backslash
15539 setlength{
15540 \backslash
15541 multicolsep}{2.5cm}
15542 \end_layout
15543
15544 \end_inset
15545
15546
15547 \end_layout
15548
15549 \begin_layout Standard
15550 \begin_inset Flex Multiple Columns
15551 status open
15552
15553 \begin_layout Plain Layout
15554
15555 \size small
15556 All day I turned these facts over in my mind, endeavouring to hit upon some
15557  theory which could reconcile them all, and to find that line of least resistanc
15558 e which my poor friend had declared to be the starting-point of every investigat
15559 ion.
15560  I confess that I made little progress.
15561  In the evening I strolled across the Park, and found myself about six o'clock
15562  at the Oxford Street end of Park Lane.
15563  A group of loafers upon the pavements, all staring up at a particular window,
15564  directed me to the house which I had come to see.
15565  A tall, thin man with coloured glasses, whom I strongly suspected of being
15566  a plain-clothes detective, was pointing out some theory of his own, while
15567  the others crowded round to listen to what he said.
15568  I got as near him as I could, but his observations seemed to me to be absurd,
15569  so I withdrew again in some disgust.
15570  As I did so I struck against an elderly, deformed man, who had been behind
15571  me, and I knocked down several books which he was carrying.
15572 \end_layout
15573
15574 \end_inset
15575
15576
15577 \end_layout
15578
15579 \begin_layout Standard
15580 \begin_inset Note Greyedout
15581 status open
15582
15583 \begin_layout Plain Layout
15584
15585 \series bold
15586 Note:
15587 \series default
15588  The values you set with 
15589 \begin_inset Flex Code
15590 status collapsed
15591
15592 \begin_layout Plain Layout
15593
15594 \backslash
15595 setlength
15596 \end_layout
15597
15598 \end_inset
15599
15600  will be used for all following multiple columns until you change them again.
15601 \end_layout
15602
15603 \end_inset
15604
15605
15606 \end_layout
15607
15608 \begin_layout Standard
15609 \begin_inset ERT
15610 status collapsed
15611
15612 \begin_layout Plain Layout
15613
15614
15615 \backslash
15616 setlength{
15617 \backslash
15618 multicolsep}{13pt}
15619 \end_layout
15620
15621 \end_inset
15622
15623
15624 \begin_inset Note Note
15625 status collapsed
15626
15627 \begin_layout Plain Layout
15628 go back to the default
15629 \end_layout
15630
15631 \end_inset
15632
15633
15634 \end_layout
15635
15636 \begin_layout Standard
15637 \begin_inset Newpage newpage
15638 \end_inset
15639
15640
15641 \end_layout
15642
15643 \begin_layout Subsubsection
15644 Column Breaks
15645 \end_layout
15646
15647 \begin_layout Standard
15648 A column break can be forced by inserting the command 
15649 \begin_inset Flex Code
15650 status collapsed
15651
15652 \begin_layout Plain Layout
15653
15654 \backslash
15655 columnbreak{}
15656 \end_layout
15657
15658 \end_inset
15659
15660  as \SpecialChar TeX
15661  Code to that position in the text where the column should be broken.
15662  Note that this leads in most cases to whitespace in the text.
15663 \begin_inset Newline newline
15664 \end_inset
15665
15666 Here is an example:
15667 \end_layout
15668
15669 \begin_layout Standard
15670 \begin_inset Flex Multiple Columns
15671 status open
15672
15673 \begin_layout Plain Layout
15674
15675 \size small
15676 \begin_inset Quotes eld
15677 \end_inset
15678
15679 You're surprised to see me, sir,
15680 \begin_inset Quotes erd
15681 \end_inset
15682
15683  said he, in a strange, croaking voice.
15684 \end_layout
15685
15686 \begin_layout Plain Layout
15687
15688 \size small
15689 I acknowledged that I was.
15690 \end_layout
15691
15692 \begin_layout Plain Layout
15693
15694 \size small
15695 \begin_inset Quotes eld
15696 \end_inset
15697
15698 Well, I've a conscience, sir, and when I chanced to see you go into this
15699  house, as I came hobbling after you, I thought to myself, I'll just step
15700  in and see that kind gentleman, and tell him that if I was a bit gruff
15701  in my manner there was not any harm meant, and that I am much obliged to
15702  him for picking up my books.
15703 \begin_inset Quotes erd
15704 \end_inset
15705
15706
15707 \end_layout
15708
15709 \begin_layout Plain Layout
15710
15711 \size small
15712 \begin_inset Quotes eld
15713 \end_inset
15714
15715 You make too much of a trifle,
15716 \begin_inset Quotes erd
15717 \end_inset
15718
15719  said I.
15720  
15721 \begin_inset Quotes eld
15722 \end_inset
15723
15724 May I ask how you knew who I was?
15725 \begin_inset Quotes erd
15726 \end_inset
15727
15728  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
15729 \begin_inset ERT
15730 status collapsed
15731
15732 \begin_layout Plain Layout
15733
15734
15735 \backslash
15736 columnbreak{}
15737 \end_layout
15738
15739 \end_inset
15740
15741
15742 \end_layout
15743
15744 \begin_layout Plain Layout
15745
15746 \size small
15747 \begin_inset Quotes eld
15748 \end_inset
15749
15750 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
15751  you'll find my little bookshop at the corner of Church Street, and very
15752  happy to see you, I am sure.
15753  Maybe you collect yourself, sir.
15754  Here's 
15755 \noun on
15756 British
15757 \begin_inset space ~
15758 \end_inset
15759
15760 Birds
15761 \noun default
15762 , and 
15763 \noun on
15764 Catullus
15765 \noun default
15766 , and 
15767 \noun on
15768 The Holy War
15769 \noun default
15770
15771 \begin_inset space ~
15772 \end_inset
15773
15774 – a bargain, every one of them.
15775  With five volumes you could just fill that gap on that second shelf.
15776  It looks untidy, does it not, sir?
15777 \begin_inset Quotes erd
15778 \end_inset
15779
15780
15781 \end_layout
15782
15783 \end_inset
15784
15785
15786 \end_layout
15787
15788 \begin_layout Subsubsection
15789 Column Separation
15790 \end_layout
15791
15792 \begin_layout Standard
15793 The width of the columns is automatically calculated, but you can modify
15794  the space between the columns.
15795  This is done by changing the length 
15796 \begin_inset Flex Code
15797 status collapsed
15798
15799 \begin_layout Plain Layout
15800
15801 \backslash
15802 columnsep
15803 \end_layout
15804
15805 \end_inset
15806
15807 .
15808  Its predefined value is 10
15809 \begin_inset space \thinspace{}
15810 \end_inset
15811
15812 pt.
15813  Here is an example where 
15814 \begin_inset Flex Code
15815 status collapsed
15816
15817 \begin_layout Plain Layout
15818
15819 \backslash
15820 columnsep
15821 \end_layout
15822
15823 \end_inset
15824
15825  is set to 3
15826 \begin_inset space \thinspace{}
15827 \end_inset
15828
15829 cm:
15830 \end_layout
15831
15832 \begin_layout Standard
15833 \begin_inset ERT
15834 status open
15835
15836 \begin_layout Plain Layout
15837
15838
15839 \backslash
15840 setlength{
15841 \backslash
15842 columnsep}{3cm}
15843 \end_layout
15844
15845 \end_inset
15846
15847
15848 \end_layout
15849
15850 \begin_layout Standard
15851 \begin_inset Flex Multiple Columns
15852 status open
15853
15854 \begin_layout Plain Layout
15855
15856 \size small
15857 My observations of No.
15858 \begin_inset space \space{}
15859 \end_inset
15860
15861 427 Park Lane did little to clear up the problem in which I was interested.
15862  The house was separated from the street by a low wall and railing, the
15863  whole not more than five feet high.
15864  It was perfectly easy, therefore, for anyone to get into the garden, but
15865  the window was entirely inaccessible, since there was no water pipe or
15866  anything which could help the most active man to climb it.
15867  More puzzled than ever, I retraced my steps to Kensington.
15868  I had not been in my study five minutes when the maid entered to say that
15869  a person desired to see me.
15870  To my astonishment it was none other than my strange old book collector,
15871  his sharp, wizened face peering out from a frame of white hair, and his
15872  precious volumes, a dozen of them at least, wedged under his right arm.
15873 \end_layout
15874
15875 \end_inset
15876
15877
15878 \end_layout
15879
15880 \begin_layout Standard
15881 \begin_inset ERT
15882 status collapsed
15883
15884 \begin_layout Plain Layout
15885
15886
15887 \backslash
15888 setlength{
15889 \backslash
15890 columnsep}{10pt}
15891 \end_layout
15892
15893 \end_inset
15894
15895
15896 \begin_inset Note Note
15897 status collapsed
15898
15899 \begin_layout Plain Layout
15900 go back to the default
15901 \end_layout
15902
15903 \end_inset
15904
15905
15906 \end_layout
15907
15908 \begin_layout Subsubsection
15909 Vertical Lines
15910 \end_layout
15911
15912 \begin_layout Standard
15913 Between the columns a rule with a width of the length 
15914 \begin_inset Flex Code
15915 status collapsed
15916
15917 \begin_layout Plain Layout
15918
15919 \backslash
15920 columnseprule
15921 \end_layout
15922
15923 \end_inset
15924
15925  is placed.
15926  If this rule width is set to 0
15927 \begin_inset space \thinspace{}
15928 \end_inset
15929
15930 pt (this is the default), the rule is suppressed.
15931  In the following example the rule is 2
15932 \begin_inset space \thinspace{}
15933 \end_inset
15934
15935 pt wide:
15936 \end_layout
15937
15938 \begin_layout Standard
15939 \begin_inset ERT
15940 status open
15941
15942 \begin_layout Plain Layout
15943
15944
15945 \backslash
15946 setlength{
15947 \backslash
15948 columnseprule}{2pt}
15949 \end_layout
15950
15951 \end_inset
15952
15953
15954 \end_layout
15955
15956 \begin_layout Standard
15957 \begin_inset Flex Multiple Columns
15958 status open
15959
15960 \begin_layout Plain Layout
15961
15962 \size small
15963 \begin_inset Quotes eld
15964 \end_inset
15965
15966 You're surprised to see me, sir,
15967 \begin_inset Quotes erd
15968 \end_inset
15969
15970  said he, in a strange, croaking voice.
15971 \end_layout
15972
15973 \begin_layout Plain Layout
15974
15975 \size small
15976 I acknowledged that I was.
15977 \end_layout
15978
15979 \begin_layout Plain Layout
15980
15981 \size small
15982 \begin_inset Quotes eld
15983 \end_inset
15984
15985 Well, I've a conscience, sir, and when I chanced to see you go into this
15986  house, as I came hobbling after you, I thought to myself, I'll just step
15987  in and see that kind gentleman, and tell him that if I was a bit gruff
15988  in my manner there was not any harm meant, and that I am much obliged to
15989  him for picking up my books.
15990 \begin_inset Quotes erd
15991 \end_inset
15992
15993
15994 \end_layout
15995
15996 \begin_layout Plain Layout
15997
15998 \size small
15999 \begin_inset Quotes eld
16000 \end_inset
16001
16002 You make too much of a trifle,
16003 \begin_inset Quotes erd
16004 \end_inset
16005
16006  said I.
16007  
16008 \begin_inset Quotes eld
16009 \end_inset
16010
16011 May I ask how you knew who I was?
16012 \begin_inset Quotes erd
16013 \end_inset
16014
16015
16016 \end_layout
16017
16018 \begin_layout Plain Layout
16019
16020 \size small
16021 \begin_inset Quotes eld
16022 \end_inset
16023
16024 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
16025  you'll find my little bookshop at the corner of Church Street, and very
16026  happy to see you, I am sure.
16027  Maybe you collect yourself, sir.
16028  Here's 
16029 \noun on
16030 British
16031 \begin_inset space ~
16032 \end_inset
16033
16034 Birds
16035 \noun default
16036 , and 
16037 \noun on
16038 Catullus
16039 \noun default
16040 , and 
16041 \noun on
16042 The Holy War
16043 \noun default
16044
16045 \begin_inset space ~
16046 \end_inset
16047
16048 – a bargain, every one of them.
16049  With five volumes you could just fill that gap on that second shelf.
16050  It looks untidy, does it not, sir?
16051 \begin_inset Quotes erd
16052 \end_inset
16053
16054
16055 \end_layout
16056
16057 \end_inset
16058
16059
16060 \end_layout
16061
16062 \begin_layout Standard
16063 \begin_inset VSpace defskip
16064 \end_inset
16065
16066
16067 \end_layout
16068
16069 \begin_layout Standard
16070 The rule can be colored by redefining the command 
16071 \begin_inset Flex Code
16072 status collapsed
16073
16074 \begin_layout Plain Layout
16075
16076 \backslash
16077 columnseprulecolor
16078 \end_layout
16079
16080 \end_inset
16081
16082 .
16083  This is done by inserting the command
16084 \end_layout
16085
16086 \begin_layout LyX-Code
16087
16088 \backslash
16089 renewcommand{
16090 \backslash
16091 columnseprulecolor}{
16092 \backslash
16093 color{red}}
16094 \end_layout
16095
16096 \begin_layout Standard
16097 as \SpecialChar TeX
16098  Code before the multicolumn inset.
16099  Replace 
16100 \begin_inset Flex Code
16101 status collapsed
16102
16103 \begin_layout Plain Layout
16104 red
16105 \end_layout
16106
16107 \end_inset
16108
16109  in this command by a color of your choice.
16110  You can use all pre- and self-defined colors.
16111  See the 
16112 \emph on
16113 EmbeddedObjects
16114 \emph default
16115  manual, section 
16116 \emph on
16117 Colored
16118 \begin_inset space ~
16119 \end_inset
16120
16121 Tables
16122 \emph default
16123  for more information about pre- and self-defined colors.
16124  To go back to the default color insert the command
16125 \end_layout
16126
16127 \begin_layout LyX-Code
16128
16129 \backslash
16130 renewcommand{
16131 \backslash
16132 columnseprulecolor}{
16133 \backslash
16134 normalcolor}
16135 \end_layout
16136
16137 \begin_layout Standard
16138 Here is the example with a cyan rule and 1
16139 \begin_inset space \thinspace{}
16140 \end_inset
16141
16142 cm column separation:
16143 \end_layout
16144
16145 \begin_layout Standard
16146 \begin_inset ERT
16147 status open
16148
16149 \begin_layout Plain Layout
16150
16151
16152 \backslash
16153 setlength{
16154 \backslash
16155 columnsep}{1cm}
16156 \end_layout
16157
16158 \begin_layout Plain Layout
16159
16160
16161 \backslash
16162 renewcommand{
16163 \backslash
16164 columnseprulecolor}{
16165 \backslash
16166 color{cyan}}
16167 \end_layout
16168
16169 \end_inset
16170
16171
16172 \end_layout
16173
16174 \begin_layout Standard
16175 \begin_inset Flex Multiple Columns
16176 status open
16177
16178 \begin_layout Plain Layout
16179
16180 \size small
16181 \begin_inset Quotes eld
16182 \end_inset
16183
16184 You're surprised to see me, sir,
16185 \begin_inset Quotes erd
16186 \end_inset
16187
16188  said he, in a strange, croaking voice.
16189 \end_layout
16190
16191 \begin_layout Plain Layout
16192
16193 \size small
16194 I acknowledged that I was.
16195 \end_layout
16196
16197 \begin_layout Plain Layout
16198
16199 \size small
16200 \begin_inset Quotes eld
16201 \end_inset
16202
16203 Well, I've a conscience, sir, and when I chanced to see you go into this
16204  house, as I came hobbling after you, I thought to myself, I'll just step
16205  in and see that kind gentleman, and tell him that if I was a bit gruff
16206  in my manner there was not any harm meant, and that I am much obliged to
16207  him for picking up my books.
16208 \begin_inset Quotes erd
16209 \end_inset
16210
16211
16212 \end_layout
16213
16214 \begin_layout Plain Layout
16215
16216 \size small
16217 \begin_inset Quotes eld
16218 \end_inset
16219
16220 You make too much of a trifle,
16221 \begin_inset Quotes erd
16222 \end_inset
16223
16224  said I.
16225  
16226 \begin_inset Quotes eld
16227 \end_inset
16228
16229 May I ask how you knew who I was?
16230 \begin_inset Quotes erd
16231 \end_inset
16232
16233
16234 \end_layout
16235
16236 \begin_layout Plain Layout
16237
16238 \size small
16239 \begin_inset Quotes eld
16240 \end_inset
16241
16242 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
16243  you'll find my little bookshop at the corner of Church Street, and very
16244  happy to see you, I am sure.
16245  Maybe you collect yourself, sir.
16246  Here's 
16247 \noun on
16248 British
16249 \begin_inset space ~
16250 \end_inset
16251
16252 Birds
16253 \noun default
16254 , and 
16255 \noun on
16256 Catullus
16257 \noun default
16258 , and 
16259 \noun on
16260 The Holy War
16261 \noun default
16262
16263 \begin_inset space ~
16264 \end_inset
16265
16266 – a bargain, every one of them.
16267  With five volumes you could just fill that gap on that second shelf.
16268  It looks untidy, does it not, sir?
16269 \begin_inset Quotes erd
16270 \end_inset
16271
16272
16273 \end_layout
16274
16275 \end_inset
16276
16277
16278 \end_layout
16279
16280 \begin_layout Standard
16281 \begin_inset ERT
16282 status collapsed
16283
16284 \begin_layout Plain Layout
16285
16286
16287 \backslash
16288 setlength{
16289 \backslash
16290 columnseprule}{0pt}
16291 \end_layout
16292
16293 \begin_layout Plain Layout
16294
16295
16296 \backslash
16297 renewcommand{
16298 \backslash
16299 columnseprulecolor}{
16300 \backslash
16301 normalcolor}
16302 \end_layout
16303
16304 \end_inset
16305
16306
16307 \begin_inset Note Note
16308 status collapsed
16309
16310 \begin_layout Plain Layout
16311 go back to the default
16312 \end_layout
16313
16314 \end_inset
16315
16316
16317 \end_layout
16318
16319 \begin_layout Section
16320
16321 \change_inserted 564990737 1671270380
16322 Paragraph Styles
16323 \end_layout
16324
16325 \begin_layout Subsection
16326
16327 \change_inserted 564990737 1671270398
16328 Custom
16329 \change_deleted 564990737 1671270396
16330 Non-standard
16331 \change_unchanged
16332  Paragraph Shapes
16333 \end_layout
16334
16335 \begin_layout Standard
16336 \noindent
16337 \SpecialChar LaTeX
16338  as well as any other text processor uses by default rectangular paragraphs.
16339  For special cases like for example posters, invitation cards or poems you
16340  can modify the paragraph shape to one of your choice.
16341  This can be done by using the \SpecialChar LaTeX
16342 -package 
16343 \begin_inset Flex Code
16344 status collapsed
16345
16346 \begin_layout Plain Layout
16347 shapepar
16348 \end_layout
16349
16350 \end_inset
16351
16352  which is loaded by using in the document settings the module 
16353 \family sans
16354 Custom paragraph shapes
16355 \family default
16356 .
16357 \end_layout
16358
16359 \begin_layout Subsubsection
16360 Predefined shapes
16361 \end_layout
16362
16363 \begin_layout Standard
16364
16365 \series bold
16366 shapepar
16367 \series default
16368  provides the following shapes:
16369 \end_layout
16370
16371 \begin_layout Standard
16372 \begin_inset Tabular
16373 <lyxtabular version="3" rows="13" columns="3">
16374 <features booktabs="true" islongtable="true" longtabularalignment="center">
16375 <column alignment="left" valignment="middle" width="16col%">
16376 <column alignment="left" valignment="middle" width="40col%">
16377 <column alignment="left" valignment="middle" width="35col%">
16378 <row endhead="true">
16379 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16380 \begin_inset Text
16381
16382 \begin_layout Plain Layout
16383
16384 \series bold
16385 \size small
16386 Name
16387 \end_layout
16388
16389 \end_inset
16390 </cell>
16391 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16392 \begin_inset Text
16393
16394 \begin_layout Plain Layout
16395
16396 \series bold
16397 \size small
16398 Description
16399 \end_layout
16400
16401 \end_inset
16402 </cell>
16403 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16404 \begin_inset Text
16405
16406 \begin_layout Plain Layout
16407
16408 \series bold
16409 \size small
16410 Annotation
16411 \end_layout
16412
16413 \end_inset
16414 </cell>
16415 </row>
16416 <row interlinespace="default">
16417 <cell alignment="left" valignment="top" usebox="none">
16418 \begin_inset Text
16419
16420 \begin_layout Plain Layout
16421
16422 \size small
16423 CDlabel
16424 \end_layout
16425
16426 \end_inset
16427 </cell>
16428 <cell alignment="left" valignment="top" usebox="none">
16429 \begin_inset Text
16430
16431 \begin_layout Plain Layout
16432
16433 \size small
16434 Circle with circular hole (in the size of a CD/DVD)
16435 \end_layout
16436
16437 \end_inset
16438 </cell>
16439 <cell alignment="left" valignment="top" usebox="none">
16440 \begin_inset Text
16441
16442 \begin_layout Plain Layout
16443
16444 \size small
16445 Cannot be scaled, take care there is not too much text
16446 \end_layout
16447
16448 \end_inset
16449 </cell>
16450 </row>
16451 <row interlinespace="default">
16452 <cell alignment="left" valignment="top" usebox="none">
16453 \begin_inset Text
16454
16455 \begin_layout Plain Layout
16456
16457 \size small
16458 Circle
16459 \end_layout
16460
16461 \end_inset
16462 </cell>
16463 <cell alignment="left" valignment="top" usebox="none">
16464 \begin_inset Text
16465
16466 \begin_layout Plain Layout
16467
16468 \size small
16469 Circle
16470 \end_layout
16471
16472 \end_inset
16473 </cell>
16474 <cell alignment="left" valignment="top" usebox="none">
16475 \begin_inset Text
16476
16477 \begin_layout Plain Layout
16478
16479 \size small
16480 Fragile, calculation might fail
16481 \end_layout
16482
16483 \end_inset
16484 </cell>
16485 </row>
16486 <row interlinespace="default">
16487 <cell alignment="left" valignment="top" usebox="none">
16488 \begin_inset Text
16489
16490 \begin_layout Plain Layout
16491
16492 \size small
16493 Diamond
16494 \end_layout
16495
16496 \end_inset
16497 </cell>
16498 <cell alignment="left" valignment="top" usebox="none">
16499 \begin_inset Text
16500
16501 \begin_layout Plain Layout
16502
16503 \size small
16504 Rhomboid (symbolizing a 
16505 \begin_inset Quotes eld
16506 \end_inset
16507
16508 diamond
16509 \begin_inset Quotes erd
16510 \end_inset
16511
16512 )
16513 \end_layout
16514
16515 \end_inset
16516 </cell>
16517 <cell alignment="left" valignment="top" usebox="none">
16518 \begin_inset Text
16519
16520 \begin_layout Plain Layout
16521
16522 \size small
16523 -
16524 \end_layout
16525
16526 \end_inset
16527 </cell>
16528 </row>
16529 <row interlinespace="default">
16530 <cell alignment="left" valignment="top" usebox="none">
16531 \begin_inset Text
16532
16533 \begin_layout Plain Layout
16534
16535 \size small
16536 Heart
16537 \end_layout
16538
16539 \end_inset
16540 </cell>
16541 <cell alignment="left" valignment="top" usebox="none">
16542 \begin_inset Text
16543
16544 \begin_layout Plain Layout
16545
16546 \size small
16547 Heart-like shape
16548 \end_layout
16549
16550 \end_inset
16551 </cell>
16552 <cell alignment="left" valignment="top" usebox="none">
16553 \begin_inset Text
16554
16555 \begin_layout Plain Layout
16556
16557 \size small
16558 -
16559 \end_layout
16560
16561 \end_inset
16562 </cell>
16563 </row>
16564 <row interlinespace="default">
16565 <cell alignment="left" valignment="top" usebox="none">
16566 \begin_inset Text
16567
16568 \begin_layout Plain Layout
16569
16570 \size small
16571 Hexagon
16572 \end_layout
16573
16574 \end_inset
16575 </cell>
16576 <cell alignment="left" valignment="top" usebox="none">
16577 \begin_inset Text
16578
16579 \begin_layout Plain Layout
16580
16581 \size small
16582 Hexagon
16583 \end_layout
16584
16585 \end_inset
16586 </cell>
16587 <cell alignment="left" valignment="top" usebox="none">
16588 \begin_inset Text
16589
16590 \begin_layout Plain Layout
16591
16592 \size small
16593 -
16594 \end_layout
16595
16596 \end_inset
16597 </cell>
16598 </row>
16599 <row interlinespace="default">
16600 <cell alignment="left" valignment="top" usebox="none">
16601 \begin_inset Text
16602
16603 \begin_layout Plain Layout
16604
16605 \size small
16606 Nut
16607 \end_layout
16608
16609 \end_inset
16610 </cell>
16611 <cell alignment="left" valignment="top" usebox="none">
16612 \begin_inset Text
16613
16614 \begin_layout Plain Layout
16615
16616 \size small
16617 Nut for bolt (hexagon with circular hole)
16618 \end_layout
16619
16620 \end_inset
16621 </cell>
16622 <cell alignment="left" valignment="top" usebox="none">
16623 \begin_inset Text
16624
16625 \begin_layout Plain Layout
16626
16627 \size small
16628 -
16629 \end_layout
16630
16631 \end_inset
16632 </cell>
16633 </row>
16634 <row interlinespace="default">
16635 <cell alignment="left" valignment="top" usebox="none">
16636 \begin_inset Text
16637
16638 \begin_layout Plain Layout
16639
16640 \size small
16641 Square
16642 \end_layout
16643
16644 \end_inset
16645 </cell>
16646 <cell alignment="left" valignment="top" usebox="none">
16647 \begin_inset Text
16648
16649 \begin_layout Plain Layout
16650
16651 \size small
16652 Square
16653 \end_layout
16654
16655 \end_inset
16656 </cell>
16657 <cell alignment="left" valignment="top" usebox="none">
16658 \begin_inset Text
16659
16660 \begin_layout Plain Layout
16661
16662 \size small
16663 -
16664 \end_layout
16665
16666 \end_inset
16667 </cell>
16668 </row>
16669 <row interlinespace="default">
16670 <cell alignment="left" valignment="top" usebox="none">
16671 \begin_inset Text
16672
16673 \begin_layout Plain Layout
16674
16675 \size small
16676 Star
16677 \end_layout
16678
16679 \end_inset
16680 </cell>
16681 <cell alignment="left" valignment="top" usebox="none">
16682 \begin_inset Text
16683
16684 \begin_layout Plain Layout
16685
16686 \size small
16687 Five-point star
16688 \end_layout
16689
16690 \end_inset
16691 </cell>
16692 <cell alignment="left" valignment="top" usebox="none">
16693 \begin_inset Text
16694
16695 \begin_layout Plain Layout
16696
16697 \size small
16698 -
16699 \end_layout
16700
16701 \end_inset
16702 </cell>
16703 </row>
16704 <row interlinespace="default">
16705 <cell alignment="left" valignment="top" usebox="none">
16706 \begin_inset Text
16707
16708 \begin_layout Plain Layout
16709
16710 \size small
16711 Candle
16712 \end_layout
16713
16714 \end_inset
16715 </cell>
16716 <cell alignment="left" valignment="top" usebox="none">
16717 \begin_inset Text
16718
16719 \begin_layout Plain Layout
16720
16721 \size small
16722 Burning candle
16723 \end_layout
16724
16725 \end_inset
16726 </cell>
16727 <cell alignment="left" valignment="top" usebox="none">
16728 \begin_inset Text
16729
16730 \begin_layout Plain Layout
16731
16732 \size small
16733 -
16734 \end_layout
16735
16736 \end_inset
16737 </cell>
16738 </row>
16739 <row interlinespace="default">
16740 <cell alignment="left" valignment="top" usebox="none">
16741 \begin_inset Text
16742
16743 \begin_layout Plain Layout
16744
16745 \size small
16746 Drop down/up
16747 \end_layout
16748
16749 \end_inset
16750 </cell>
16751 <cell alignment="left" valignment="top" usebox="none">
16752 \begin_inset Text
16753
16754 \begin_layout Plain Layout
16755
16756 \size small
16757 Normal/reversed rain drop
16758 \end_layout
16759
16760 \end_inset
16761 </cell>
16762 <cell alignment="left" valignment="top" usebox="none">
16763 \begin_inset Text
16764
16765 \begin_layout Plain Layout
16766
16767 \size small
16768 Fragile, calculation might fail
16769 \end_layout
16770
16771 \end_inset
16772 </cell>
16773 </row>
16774 <row interlinespace="default">
16775 <cell alignment="left" valignment="top" usebox="none">
16776 \begin_inset Text
16777
16778 \begin_layout Plain Layout
16779
16780 \size small
16781 \SpecialChar TeX
16782
16783 \end_layout
16784
16785 \end_inset
16786 </cell>
16787 <cell alignment="left" valignment="top" usebox="none">
16788 \begin_inset Text
16789
16790 \begin_layout Plain Layout
16791
16792 \size small
16793 The \SpecialChar TeX
16794  logo
16795 \end_layout
16796
16797 \end_inset
16798 </cell>
16799 <cell alignment="left" valignment="top" usebox="none">
16800 \begin_inset Text
16801
16802 \begin_layout Plain Layout
16803
16804 \size small
16805 -
16806 \end_layout
16807
16808 \end_inset
16809 </cell>
16810 </row>
16811 <row interlinespace="default">
16812 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
16813 \begin_inset Text
16814
16815 \begin_layout Plain Layout
16816
16817 \size small
16818 Triangle up/down/
16819 \begin_inset Newline newline
16820 \end_inset
16821
16822 left/right
16823 \end_layout
16824
16825 \end_inset
16826 </cell>
16827 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
16828 \begin_inset Text
16829
16830 \begin_layout Plain Layout
16831
16832 \size small
16833 Triangles in different orientations
16834 \end_layout
16835
16836 \end_inset
16837 </cell>
16838 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
16839 \begin_inset Text
16840
16841 \begin_layout Plain Layout
16842
16843 \size small
16844 -
16845 \end_layout
16846
16847 \end_inset
16848 </cell>
16849 </row>
16850 </lyxtabular>
16851
16852 \end_inset
16853
16854
16855 \end_layout
16856
16857 \begin_layout Standard
16858 To use a shape for your paragraph, simply select it in \SpecialChar LyX
16859 's pull-down box
16860  for environments in the toolbar.
16861 \end_layout
16862
16863 \begin_layout Standard
16864 \begin_inset Newpage newpage
16865 \end_inset
16866
16867
16868 \end_layout
16869
16870 \begin_layout Standard
16871 Here is an example paragraph in the shape of a nut:
16872 \end_layout
16873
16874 \begin_layout Standard
16875 \begin_inset VSpace bigskip
16876 \end_inset
16877
16878
16879 \end_layout
16880
16881 \begin_layout Nut
16882
16883 \lang latin
16884 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
16885  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
16886  voluptua.
16887  At vero eos et accusam et justo duo dolores et ea rebum.
16888  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
16889  sit amet.
16890  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
16891  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
16892  voluptua.
16893 \end_layout
16894
16895 \begin_layout Standard
16896 \begin_inset VSpace bigskip
16897 \end_inset
16898
16899
16900 \end_layout
16901
16902 \begin_layout Standard
16903 \begin_inset Note Greyedout
16904 status open
16905
16906 \begin_layout Plain Layout
16907
16908 \series bold
16909 Note
16910 \series default
16911
16912 \family sans
16913 shapepar
16914 \family default
16915  paragraphs cannot run over a page break.
16916 \end_layout
16917
16918 \end_inset
16919
16920
16921 \end_layout
16922
16923 \begin_layout Standard
16924 \begin_inset VSpace bigskip
16925 \end_inset
16926
16927
16928 \end_layout
16929
16930 \begin_layout Standard
16931 The package 
16932 \begin_inset Flex Code
16933 status collapsed
16934
16935 \begin_layout Plain Layout
16936 shapepar
16937 \end_layout
16938
16939 \end_inset
16940
16941  takes care that the shape will always be preserved, no matter how much
16942  text is in the paragraph.
16943  Therefore the paragraph size changes with the amount of contained text.
16944  This can lead to paragraph sizes exceeding the page margins.
16945  To demonstrate the size scaling, here is the same example paragraph but
16946  with twice as much text:
16947 \end_layout
16948
16949 \begin_layout Standard
16950 \begin_inset Newpage newpage
16951 \end_inset
16952
16953
16954 \end_layout
16955
16956 \begin_layout Nut
16957
16958 \lang latin
16959 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
16960  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
16961  voluptua.
16962  At vero eos et accusam et justo duo dolores et ea rebum.
16963  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
16964  sit amet.
16965  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
16966  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
16967  voluptua.
16968  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
16969  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
16970  voluptua.
16971  At vero eos et accusam et justo duo dolores et ea rebum.
16972  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
16973  sit amet.
16974  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
16975  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
16976  voluptua.
16977 \end_layout
16978
16979 \begin_layout Standard
16980 \begin_inset VSpace bigskip
16981 \end_inset
16982
16983
16984 \end_layout
16985
16986 \begin_layout Standard
16987 An exception is the shape 
16988 \family sans
16989 CDlabel
16990 \family default
16991 .
16992  It cannot be scaled because it must fit the size of a CD/DVD.
16993  Therefore the amount of text that fits into the shape is limited.
16994 \begin_inset Newline newline
16995 \end_inset
16996
16997 The 
16998 \family sans
16999 drop
17000 \family default
17001  shapes and the 
17002 \family sans
17003 circle
17004 \family default
17005  shape are fragile, meaning that the calculation of their size can fail,
17006  depending on the amount of text.
17007  You will then get the \SpecialChar LaTeX
17008  error 
17009 \begin_inset Quotes eld
17010 \end_inset
17011
17012 Arithmetic overflow
17013 \begin_inset Quotes erd
17014 \end_inset
17015
17016 .
17017  In this case one can try to remove or add some text; if nothing works one
17018  has to use another shape.
17019 \end_layout
17020
17021 \begin_layout Standard
17022 \begin_inset VSpace bigskip
17023 \end_inset
17024
17025
17026 \end_layout
17027
17028 \begin_layout Standard
17029 For shapes with tips you will maybe see that \SpecialChar LaTeX
17030 's hyphenation routine fails
17031  for text in the tips.
17032  Therefore it is often necessary to add hyphenation points 
17033 \family sans
17034 (
17035 \begin_inset Info
17036 type  "shortcut"
17037 arg   "specialchar-insert hyphenation"
17038 \end_inset
17039
17040
17041 \family default
17042 ) to the corresponding text parts.
17043 \end_layout
17044
17045 \begin_layout Standard
17046 \begin_inset VSpace bigskip
17047 \end_inset
17048
17049
17050 \end_layout
17051
17052 \begin_layout Standard
17053 Shapepar paragraphs are either always centered or placed on the page so
17054  that their left border touches the left page margin.
17055  You can therefore not use the paragraph dialog to align such paragraphs.
17056  A solution is to put the paragraph into a minipage or parbox and align
17057  the box.
17058  The problem is hereby to find the right width for the box.
17059  Because if it is too wide and you center the box, the paragraph is not
17060  centered too because it sticks at the left side of the box.
17061  So you might have to play a bit with the width until it fits.
17062  Here are two heart-shaped paragraphs, the first one is not aligned, the
17063  second one is right-aligned:
17064 \end_layout
17065
17066 \begin_layout Standard
17067 \begin_inset Newpage newpage
17068 \end_inset
17069
17070
17071 \end_layout
17072
17073 \begin_layout Heart
17074 \noindent
17075
17076 \lang latin
17077 Lo\SpecialChar softhyphen
17078 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
17079  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
17080  voluptua.
17081  At vero eos et accusam et justo duo dolores et ea rebum.
17082  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
17083  sit amet.
17084 \end_layout
17085
17086 \begin_layout Standard
17087 \begin_inset VSpace bigskip
17088 \end_inset
17089
17090
17091 \end_layout
17092
17093 \begin_layout Standard
17094 \noindent
17095 \align right
17096 \begin_inset Box Frameless
17097 position "t"
17098 hor_pos "c"
17099 has_inner_box 1
17100 inner_pos "t"
17101 use_parbox 1
17102 use_makebox 0
17103 width "42col%"
17104 special "none"
17105 height "1in"
17106 height_special "totalheight"
17107 thickness "0.4pt"
17108 separation "3pt"
17109 shadowsize "4pt"
17110 framecolor "black"
17111 backgroundcolor "none"
17112 status open
17113
17114 \begin_layout Heart
17115 \noindent
17116
17117 \lang latin
17118 Lo\SpecialChar softhyphen
17119 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
17120  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
17121  voluptua.
17122  At vero eos et accusam et justo duo dolores et ea rebum.
17123  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
17124  sit amet.
17125 \end_layout
17126
17127 \end_inset
17128
17129
17130 \end_layout
17131
17132 \begin_layout Subsubsection
17133 Custom shapes
17134 \end_layout
17135
17136 \begin_layout Standard
17137 You can define any shape you want.
17138  Doing this manually is a lot of work because every coordinate must be specified.
17139  But there is a way to let the computer calculate the coordinates:
17140 \end_layout
17141
17142 \begin_layout Enumerate
17143 Install the program 
17144 \begin_inset CommandInset href
17145 LatexCommand href
17146 name "Jpgfdraw"
17147 target "https://www.ctan.org/tex-archive/graphics/jpgfdraw"
17148 literal "false"
17149
17150 \end_inset
17151
17152 .
17153 \end_layout
17154
17155 \begin_layout Enumerate
17156 In 
17157 \family sans
17158 Jpgfdraw
17159 \family default
17160  go to the menu 
17161 \family sans
17162 TeX/LaTeX\SpecialChar menuseparator
17163 Settings\SpecialChar menuseparator
17164 Set Normal Size
17165 \family default
17166  and select the font size you are using in your document.
17167  For example this document uses the size 12
17168 \begin_inset space \thinspace{}
17169 \end_inset
17170
17171 pt.
17172 \end_layout
17173
17174 \begin_layout Enumerate
17175 Draw a shape.
17176 \end_layout
17177
17178 \begin_layout Enumerate
17179 Use the menu 
17180 \family sans
17181 TeX/LaTeX\SpecialChar menuseparator
17182 Shapepar
17183 \family default
17184  to export the shape to coordinates.
17185  In the appearing dialog use either the outline of your shape for the coordinate
17186 s or the path itself.
17187 \begin_inset Foot
17188 status collapsed
17189
17190 \begin_layout Plain Layout
17191 For more information see 
17192 \begin_inset CommandInset href
17193 LatexCommand href
17194 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
17195 literal "false"
17196
17197 \end_inset
17198
17199
17200 \end_layout
17201
17202 \end_inset
17203
17204
17205 \end_layout
17206
17207 \begin_layout Standard
17208 The coordinates are written into a \SpecialChar TeX
17209  file.
17210  To use it for your \SpecialChar LyX
17211  document
17212 \end_layout
17213
17214 \begin_layout Enumerate
17215 Place the cursor before the first character of your paragraph (or into a
17216  new empty one).
17217 \end_layout
17218
17219 \begin_layout Enumerate
17220 Open in \SpecialChar LyX
17221  the menu 
17222 \family sans
17223 Insert\SpecialChar menuseparator
17224 File\SpecialChar menuseparator
17225 Child
17226 \begin_inset space ~
17227 \end_inset
17228
17229 Document
17230 \family default
17231 , select the file and use 
17232 \family sans
17233 Input
17234 \family default
17235  as 
17236 \family sans
17237 Include Type.
17238 \end_layout
17239
17240 \begin_layout Standard
17241 \begin_inset VSpace defskip
17242 \end_inset
17243
17244
17245 \end_layout
17246
17247 \begin_layout Standard
17248 \begin_inset Note Greyedout
17249 status open
17250
17251 \begin_layout Plain Layout
17252
17253 \series bold
17254 Note
17255 \series default
17256 : The changed shape only applies to the current paragraph; everything is
17257  reset to normal for the next paragraph.
17258  Therefore the shape definition file must be input into every paragraph
17259  with the desired shape.
17260 \end_layout
17261
17262 \end_inset
17263
17264
17265 \end_layout
17266
17267 \begin_layout Standard
17268 \begin_inset VSpace bigskip
17269 \end_inset
17270
17271
17272 \end_layout
17273
17274 \begin_layout Standard
17275 Here is an example:
17276 \end_layout
17277
17278 \begin_layout Standard
17279 \begin_inset VSpace bigskip
17280 \end_inset
17281
17282
17283 \end_layout
17284
17285 \begin_layout Standard
17286 \begin_inset CommandInset include
17287 LatexCommand input
17288 filename "SpecialParagraphShape.tex"
17289 literal "true"
17290
17291 \end_inset
17292
17293
17294 \lang latin
17295 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
17296  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
17297  voluptua.
17298  At vero eos et accusam et justo duo dolores et ea rebum.
17299  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
17300  sit amet.
17301  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
17302  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
17303  voluptua.
17304 \end_layout
17305
17306 \begin_layout Standard
17307 \begin_inset VSpace bigskip
17308 \end_inset
17309
17310
17311 \end_layout
17312
17313 \begin_layout Standard
17314
17315 \series bold
17316 A tip:
17317 \series default
17318  to draw complexer shapes in 
17319 \family sans
17320 Jpgfdraw
17321 \family default
17322  you can draw the shape in a program of your choice and import the resulting
17323  image to 
17324 \family sans
17325 Jpgfdraw
17326 \family default
17327 .
17328  Then you only need to draw a line or spline along the outline of the image.
17329 \end_layout
17330
17331 \begin_layout Standard
17332 \begin_inset VSpace bigskip
17333 \end_inset
17334
17335
17336 \end_layout
17337
17338 \begin_layout Standard
17339 The module 
17340 \family sans
17341 Custom paragraph shapes
17342 \family default
17343  also provides the two commands 
17344 \family sans
17345 shapepar
17346 \family default
17347  and 
17348 \family sans
17349 Shapepar
17350 \family default
17351  which can be used to define custom shapes coordinate by coordinate.
17352 \begin_inset Foot
17353 status collapsed
17354
17355 \begin_layout Plain Layout
17356 These commands are internally used for all shapes described here.
17357 \end_layout
17358
17359 \end_inset
17360
17361  For information how these styles are used and about further customization
17362  possibilities, have a look at the 
17363 \begin_inset CommandInset href
17364 LatexCommand href
17365 name "documentation"
17366 target "https://www.ctan.org/tex-archive/macros/latex/contrib/shapepar/shapepar.pdf"
17367 literal "false"
17368
17369 \end_inset
17370
17371  of the package 
17372 \begin_inset Flex Code
17373 status collapsed
17374
17375 \begin_layout Plain Layout
17376 shapepar
17377 \end_layout
17378
17379 \end_inset
17380
17381 .
17382 \end_layout
17383
17384 \begin_layout Chapter
17385
17386 \change_deleted 564990737 1671304317
17387 Customizing 
17388 \change_unchanged
17389 Bibliograph
17390 \change_inserted 564990737 1671304322
17391 y
17392 \change_deleted 564990737 1671304331
17393 ies with Bib\SpecialChar TeX
17394  or Biblatex
17395 \change_unchanged
17396
17397 \end_layout
17398
17399 \begin_layout Standard
17400 The most basic information about how to use Bib\SpecialChar TeX
17401  or 
17402 \family sans
17403 Biblatex
17404 \family default
17405  with \SpecialChar LyX
17406  is contained in the section 
17407 \emph on
17408 Bibliography databases
17409 \emph default
17410  of the 
17411 \emph on
17412 User's Guide
17413 \emph default
17414 .
17415  The following subsections explain special bibliography features supported
17416  by \SpecialChar LyX
17417 .
17418 \end_layout
17419
17420 \begin_layout Section
17421 Alternative Citation Styles
17422 \end_layout
17423
17424 \begin_layout Standard
17425 Standard Bib\SpecialChar TeX
17426  uses numbers (e.
17427 \begin_inset space \thinspace{}
17428 \end_inset
17429
17430 g.
17431 \begin_inset space \space{}
17432 \end_inset
17433
17434
17435 \begin_inset Quotes eld
17436 \end_inset
17437
17438 [12]
17439 \begin_inset Quotes erd
17440 \end_inset
17441
17442 ) to refer to a cited work.
17443  However, in many scientific disciplines, other citation styles are in use.
17444  The most common one is the author-year style (e.
17445 \begin_inset space \thinspace{}
17446 \end_inset
17447
17448 g.
17449 \begin_inset space \space{}
17450 \end_inset
17451
17452
17453 \begin_inset Quotes eld
17454 \end_inset
17455
17456 Knuth 1984a
17457 \begin_inset Quotes erd
17458 \end_inset
17459
17460 ).
17461  \SpecialChar LyX
17462  supports three packages that provide this style, 
17463 \begin_inset Flex Code
17464 status collapsed
17465
17466 \begin_layout Plain Layout
17467 biblatex
17468 \end_layout
17469
17470 \end_inset
17471
17472
17473 \begin_inset Flex Code
17474 status collapsed
17475
17476 \begin_layout Plain Layout
17477 natbib
17478 \end_layout
17479
17480 \end_inset
17481
17482 , and 
17483 \begin_inset Flex Code
17484 status collapsed
17485
17486 \begin_layout Plain Layout
17487 jurabib
17488 \end_layout
17489
17490 \end_inset
17491
17492 .
17493  Each of these packages has their pros and cons, which cannot be listed
17494  in detail.
17495  If you only want to have simple author-year (or author-numerical) style,
17496  or if you want to use one of the countless style files for 
17497 \begin_inset Flex Code
17498 status collapsed
17499
17500 \begin_layout Plain Layout
17501 natbib
17502 \end_layout
17503
17504 \end_inset
17505
17506 , then the established 
17507 \begin_inset Flex Code
17508 status collapsed
17509
17510 \begin_layout Plain Layout
17511 natbib
17512 \end_layout
17513
17514 \end_inset
17515
17516  package is probably your choice.
17517  If you look for specific citation styles common in law studies, you might
17518  consider the 
17519 \begin_inset Flex Code
17520 status collapsed
17521
17522 \begin_layout Plain Layout
17523 jurabib
17524 \end_layout
17525
17526 \end_inset
17527
17528  package.
17529  If you want to have full control over the formatting or look for advanced
17530  features such as ibidem, footnote citations, full title citations, advanced
17531  date formats (such as 400 BC) or full localization to other languages than
17532  English, you should definitely consider 
17533 \begin_inset Flex Code
17534 status collapsed
17535
17536 \begin_layout Plain Layout
17537 biblatex
17538 \end_layout
17539
17540 \end_inset
17541
17542 , which exceeds all other packages in terms of features, but is also quite
17543  heavy and more resource-hungry.
17544 \end_layout
17545
17546 \begin_layout Standard
17547 The handling of these packages in \SpecialChar LyX
17548  is basically the same.
17549  Go to 
17550 \begin_inset Flex Noun
17551 status collapsed
17552
17553 \begin_layout Plain Layout
17554 Document\SpecialChar menuseparator
17555 Settings
17556 \end_layout
17557
17558 \end_inset
17559
17560  and select under 
17561 \begin_inset Flex Noun
17562 status collapsed
17563
17564 \begin_layout Plain Layout
17565 Bibliography
17566 \end_layout
17567
17568 \end_inset
17569
17570  the 
17571 \begin_inset Flex Noun
17572 status collapsed
17573
17574 \begin_layout Plain Layout
17575 Style Format
17576 \end_layout
17577
17578 \end_inset
17579
17580  
17581 \begin_inset Flex Noun
17582 status collapsed
17583
17584 \begin_layout Plain Layout
17585 Basic (BibTeX)
17586 \end_layout
17587
17588 \end_inset
17589
17590
17591 \begin_inset Flex Noun
17592 status collapsed
17593
17594 \begin_layout Plain Layout
17595 Biblatex
17596 \end_layout
17597
17598 \end_inset
17599
17600
17601 \begin_inset Flex Noun
17602 status collapsed
17603
17604 \begin_layout Plain Layout
17605 Biblatex (Natbib mode)
17606 \end_layout
17607
17608 \end_inset
17609
17610
17611 \begin_inset Flex Noun
17612 status collapsed
17613
17614 \begin_layout Plain Layout
17615 Natbib (BibTeX)
17616 \end_layout
17617
17618 \end_inset
17619
17620  or 
17621 \begin_inset Flex Noun
17622 status collapsed
17623
17624 \begin_layout Plain Layout
17625 Jurabib (BibTeX)
17626 \end_layout
17627
17628 \end_inset
17629
17630  (see sec.
17631 \begin_inset space ~
17632 \end_inset
17633
17634 6.5.3 in the User's Guide for more information on these choices).
17635  With all these packages, you will get some extra features in the citation
17636  dialog and you can select the style of the reference (
17637 \begin_inset Quotes eld
17638 \end_inset
17639
17640 Knuth 1984
17641 \begin_inset Quotes erd
17642 \end_inset
17643
17644
17645 \begin_inset Quotes eld
17646 \end_inset
17647
17648 Knuth (1984)
17649 \begin_inset Quotes erd
17650 \end_inset
17651
17652
17653 \begin_inset Quotes eld
17654 \end_inset
17655
17656 Knuth, 1984
17657 \begin_inset Quotes erd
17658 \end_inset
17659
17660
17661 \begin_inset Quotes eld
17662 \end_inset
17663
17664 1984
17665 \begin_inset Quotes erd
17666 \end_inset
17667
17668  etc.).
17669  Note that either package needs specifically designed style files.
17670  They all ship their own, but there are lots of additional style files,
17671  and there is even an interactive style file builder
17672 \begin_inset Foot
17673 status collapsed
17674
17675 \begin_layout Plain Layout
17676 See 
17677 \begin_inset Flex URL
17678 status open
17679
17680 \begin_layout Plain Layout
17681
17682 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
17683 \end_layout
17684
17685 \end_inset
17686
17687
17688 \end_layout
17689
17690 \end_inset
17691
17692  for 
17693 \begin_inset Flex Code
17694 status collapsed
17695
17696 \begin_layout Plain Layout
17697 natbib
17698 \end_layout
17699
17700 \end_inset
17701
17702 .
17703 \end_layout
17704
17705 \begin_layout Section
17706 Subdivided Bibliographies
17707 \end_layout
17708
17709 \begin_layout Standard
17710 Sometimes you might need to divide your bibliography into several sections.
17711  If you are for instance a historian, the possibility to separate sources
17712  and scientific works is most likely a 
17713 \begin_inset Quotes eld
17714 \end_inset
17715
17716 must have
17717 \begin_inset Quotes erd
17718 \end_inset
17719
17720 .
17721  Unfortunately, Bib\SpecialChar TeX
17722  itself does not allow you to do this.
17723  But with the help of some \SpecialChar LaTeX
17724  packages, Bib\SpecialChar TeX
17725  can be extended to fit your needs.
17726 \end_layout
17727
17728 \begin_layout Standard
17729 \SpecialChar LyX
17730  provides native support for one of these packages, 
17731 \family typewriter
17732 bibtopic
17733 \family default
17734 .
17735 \begin_inset Foot
17736 status collapsed
17737
17738 \begin_layout Plain Layout
17739 Available from 
17740 \begin_inset Flex URL
17741 status open
17742
17743 \begin_layout Plain Layout
17744
17745 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
17746 \end_layout
17747
17748 \end_inset
17749
17750
17751 \end_layout
17752
17753 \end_inset
17754
17755  The advantage of this package (compared to other packages such as 
17756 \family typewriter
17757 multibib
17758 \family default
17759 ) is that you don't need to define new citation commands.
17760  Instead, you need to prepare different bibliographic databases which include
17761  the entries for the different sections of the bibliography.
17762  For example: If you want to divide your bibliography into the sections
17763  
17764 \begin_inset Quotes eld
17765 \end_inset
17766
17767 Sources
17768 \begin_inset Quotes erd
17769 \end_inset
17770
17771  and 
17772 \begin_inset Quotes eld
17773 \end_inset
17774
17775 Scientific works
17776 \begin_inset Quotes erd
17777 \end_inset
17778
17779 , you first need to create two bibliographic databases, e.
17780 \begin_inset space \thinspace{}
17781 \end_inset
17782
17783 g.
17784 \begin_inset space \space{}
17785 \end_inset
17786
17787
17788 \begin_inset Flex Code
17789 status collapsed
17790
17791 \begin_layout Plain Layout
17792 sources.bib
17793 \end_layout
17794
17795 \end_inset
17796
17797  and 
17798 \begin_inset Flex Code
17799 status collapsed
17800
17801 \begin_layout Plain Layout
17802 scientific.bib
17803 \end_layout
17804
17805 \end_inset
17806
17807 .
17808  
17809 \end_layout
17810
17811 \begin_layout Standard
17812 Go to 
17813 \begin_inset Flex Noun
17814 status collapsed
17815
17816 \begin_layout Plain Layout
17817 Document\SpecialChar menuseparator
17818 Settings
17819 \end_layout
17820
17821 \end_inset
17822
17823  and check under 
17824 \begin_inset Flex Noun
17825 status collapsed
17826
17827 \begin_layout Plain Layout
17828 Bibliography
17829 \end_layout
17830
17831 \end_inset
17832
17833  the option 
17834 \begin_inset Flex Noun
17835 status collapsed
17836
17837 \begin_layout Plain Layout
17838 Subdivided bibliography
17839 \end_layout
17840
17841 \end_inset
17842
17843 .
17844  Now you can insert multiple Bib\SpecialChar TeX
17845  bibliographies, one for each section of
17846  your bibliography.
17847  Returning to our example: Insert the Bib\SpecialChar TeX
17848  bibliography 
17849 \begin_inset Flex Code
17850 status collapsed
17851
17852 \begin_layout Plain Layout
17853 sources.bib
17854 \end_layout
17855
17856 \end_inset
17857
17858  and a second one for the database 
17859 \begin_inset Flex Code
17860 status collapsed
17861
17862 \begin_layout Plain Layout
17863 scientific.bib
17864 \end_layout
17865
17866 \end_inset
17867
17868 .
17869  You are free to use the same or different styles for each section.
17870  Additionally, you can choose if the bibliography section should contain
17871  
17872 \begin_inset Quotes eld
17873 \end_inset
17874
17875 all cited references
17876 \begin_inset Quotes erd
17877 \end_inset
17878
17879  of the specified database(s) (which is the default), 
17880 \begin_inset Quotes eld
17881 \end_inset
17882
17883 all uncited references
17884 \begin_inset Quotes erd
17885 \end_inset
17886
17887  or even 
17888 \begin_inset Quotes eld
17889 \end_inset
17890
17891 all references
17892 \begin_inset Quotes erd
17893 \end_inset
17894
17895 .
17896  This might be useful if you would like to separate your bibliography into
17897  three sections: 
17898 \begin_inset Quotes eld
17899 \end_inset
17900
17901 Cited sources
17902 \begin_inset Quotes erd
17903 \end_inset
17904
17905
17906 \begin_inset Quotes eld
17907 \end_inset
17908
17909 Uncited sources
17910 \begin_inset Quotes erd
17911 \end_inset
17912
17913 , and 
17914 \begin_inset Quotes eld
17915 \end_inset
17916
17917 Scientific works
17918 \begin_inset Quotes erd
17919 \end_inset
17920
17921 .
17922  The titles for the sections can be added as ordinary sections or subsections.
17923  Since 
17924 \begin_inset Flex Code
17925 status collapsed
17926
17927 \begin_layout Plain Layout
17928 bibtopic
17929 \end_layout
17930
17931 \end_inset
17932
17933  removes the bibliography title, you have to manually re-add that, too (as
17934  a chapter* or section*, for instance).
17935 \end_layout
17936
17937 \begin_layout Standard
17938 With 
17939 \family sans
17940 Biblatex
17941 \family default
17942 , the procedure is a bit different.
17943  Since 
17944 \family typewriter
17945 bibtopic
17946 \family default
17947  does not work with 
17948 \family sans
17949 Biblatex
17950 \family default
17951 , the aforementioned 
17952 \begin_inset Flex Noun
17953 status collapsed
17954
17955 \begin_layout Plain Layout
17956 Subdivided bibliography
17957 \end_layout
17958
17959 \end_inset
17960
17961  option is disabled if you use 
17962 \family sans
17963 Biblatex
17964 \family default
17965 .
17966  However, 
17967 \family sans
17968 Biblatex
17969 \family default
17970  provides its own means to generate subdivided bibliographies.
17971  You can either add keywords to bibliography entries via the 
17972 \begin_inset Flex Code
17973 status collapsed
17974
17975 \begin_layout Plain Layout
17976 keywords
17977 \end_layout
17978
17979 \end_inset
17980
17981  entry option and then filter bibliography sections by keyword (by adding
17982  
17983 \begin_inset Flex Code
17984 status collapsed
17985
17986 \begin_layout Plain Layout
17987 keyword=mykeyword
17988 \end_layout
17989
17990 \end_inset
17991
17992  to the 
17993 \begin_inset Flex Noun
17994 status collapsed
17995
17996 \begin_layout Plain Layout
17997 Options
17998 \end_layout
17999
18000 \end_inset
18001
18002  field of the dialog that opens if you left-click on the 
18003 \begin_inset Flex Noun
18004 status collapsed
18005
18006 \begin_layout Plain Layout
18007 Biblatex Generated Bibliography
18008 \end_layout
18009
18010 \end_inset
18011
18012  button), or you can filter by entry types (such as 
18013 \emph on
18014 book
18015 \emph default
18016  or 
18017 \emph on
18018 article
18019 \emph default
18020 ) by entering e.
18021 \begin_inset space \thinspace{}
18022 \end_inset
18023
18024 g.
18025  
18026 \begin_inset Flex Code
18027 status collapsed
18028
18029 \begin_layout Plain Layout
18030 type=book
18031 \end_layout
18032
18033 \end_inset
18034
18035  or 
18036 \begin_inset Flex Code
18037 status collapsed
18038
18039 \begin_layout Plain Layout
18040 nottype=collection
18041 \end_layout
18042
18043 \end_inset
18044
18045  to the mentioned 
18046 \begin_inset Flex Noun
18047 status collapsed
18048
18049 \begin_layout Plain Layout
18050 Options
18051 \end_layout
18052
18053 \end_inset
18054
18055  field, or you can create so-called 
18056 \begin_inset Quotes eld
18057 \end_inset
18058
18059 Bibliography Categories
18060 \begin_inset Quotes erd
18061 \end_inset
18062
18063  to which you can assign individual entries.
18064  Please refer to the Biblatex manual, section 
18065 \emph on
18066 Subdivided Bibliographies
18067 \emph default
18068 , for details.
18069 \end_layout
18070
18071 \begin_layout Section
18072 Multiple Bibliographies
18073 \begin_inset CommandInset label
18074 LatexCommand label
18075 name "subsec:Multiple-Bibliographies"
18076
18077 \end_inset
18078
18079
18080 \end_layout
18081
18082 \begin_layout Standard
18083 Multiple bibliographies, e.
18084 \begin_inset space \thinspace{}
18085 \end_inset
18086
18087 g.
18088 \begin_inset space \space{}
18089 \end_inset
18090
18091 a bibliography for each part, chapter, section, subsection or child (sub-documen
18092 t) of the document, are also supported by \SpecialChar LyX
18093 .
18094  In order to enable it, go to 
18095 \begin_inset Flex Noun
18096 status collapsed
18097
18098 \begin_layout Plain Layout
18099 Document\SpecialChar menuseparator
18100 Settings\SpecialChar menuseparator
18101 Bibliography
18102 \end_layout
18103
18104 \end_inset
18105
18106  and select the relevant unit (e.
18107 \begin_inset space \thinspace{}
18108 \end_inset
18109
18110 g., 
18111 \begin_inset Quotes eld
18112 \end_inset
18113
18114 per section
18115 \begin_inset Quotes erd
18116 \end_inset
18117
18118 ) in the 
18119 \begin_inset Flex Noun
18120 status collapsed
18121
18122 \begin_layout Plain Layout
18123 Multiple Bibliographies
18124 \end_layout
18125
18126 \end_inset
18127
18128  combo box.
18129  Then add a Bib(la)\SpecialChar TeX
18130  bibliography to each unit (e.
18131 \begin_inset space \thinspace{}
18132 \end_inset
18133
18134 g., section) of your document.
18135  In the output, a separate bibliography, containing only the references
18136  done in the current unit is generated.
18137 \end_layout
18138
18139 \begin_layout Standard
18140 If you use Bib\SpecialChar TeX
18141 , either the 
18142 \begin_inset Flex Code
18143 status collapsed
18144
18145 \begin_layout Plain Layout
18146 chapterbib
18147 \end_layout
18148
18149 \end_inset
18150
18151  or the 
18152 \begin_inset Flex Code
18153 status collapsed
18154
18155 \begin_layout Plain Layout
18156 bibtopic
18157 \end_layout
18158
18159 \end_inset
18160
18161  package is used to create multiple bibliographies.
18162  The former package is used if you select 
18163 \begin_inset Quotes eld
18164 \end_inset
18165
18166 per child document
18167 \begin_inset Quotes erd
18168 \end_inset
18169
18170  and do 
18171 \emph on
18172 not
18173 \emph default
18174  check 
18175 \begin_inset Flex Noun
18176 status collapsed
18177
18178 \begin_layout Plain Layout
18179 Sectioned Bibliography
18180 \end_layout
18181
18182 \end_inset
18183
18184 .
18185  In all other cases, 
18186 \begin_inset Flex Code
18187 status collapsed
18188
18189 \begin_layout Plain Layout
18190 bibtopic
18191 \end_layout
18192
18193 \end_inset
18194
18195  is used.
18196 \begin_inset Foot
18197 status collapsed
18198
18199 \begin_layout Plain Layout
18200 An alternative approach, if you are willing to use some 
18201 \begin_inset Flex Noun
18202 status collapsed
18203
18204 \begin_layout Plain Layout
18205 \SpecialChar TeX
18206  Code
18207 \end_layout
18208
18209 \end_inset
18210
18211  (see section
18212 \begin_inset space ~
18213 \end_inset
18214
18215
18216 \begin_inset CommandInset ref
18217 LatexCommand ref
18218 reference "sec:Inserting-TeX-Code"
18219
18220 \end_inset
18221
18222 ), is to use the 
18223 \begin_inset Flex Code
18224 status collapsed
18225
18226 \begin_layout Plain Layout
18227 bibunits
18228 \end_layout
18229
18230 \end_inset
18231
18232  package.
18233 \end_layout
18234
18235 \end_inset
18236
18237  If 
18238 \begin_inset Flex Code
18239 status collapsed
18240
18241 \begin_layout Plain Layout
18242 bibtopic
18243 \end_layout
18244
18245 \end_inset
18246
18247  is used, \SpecialChar LyX
18248  encloses the specified units in 
18249 \begin_inset Flex Code
18250 status collapsed
18251
18252 \begin_layout Plain Layout
18253 bibtopic
18254 \end_layout
18255
18256 \end_inset
18257
18258 's 
18259 \begin_inset Flex Code
18260 status collapsed
18261
18262 \begin_layout Plain Layout
18263
18264 \backslash
18265 begin{btUnit}
18266 \end_layout
18267
18268 \end_inset
18269
18270  and 
18271 \begin_inset Flex Code
18272 status collapsed
18273
18274 \begin_layout Plain Layout
18275
18276 \backslash
18277 end{btUnit}
18278 \end_layout
18279
18280 \end_inset
18281
18282  in order to create the units.
18283  Note that this approach has some limitations.
18284  First, every citation reference has to be inside some 
18285 \begin_inset Flex Code
18286 status collapsed
18287
18288 \begin_layout Plain Layout
18289 btUnit
18290 \end_layout
18291
18292 \end_inset
18293
18294 .
18295  So citations outside a defined unit (e.
18296 \begin_inset space \thinspace{}
18297 \end_inset
18298
18299 g., before the first section if you use 
18300 \begin_inset Quotes eld
18301 \end_inset
18302
18303 by section
18304 \begin_inset Quotes erd
18305 \end_inset
18306
18307 ) will appear as 
18308 \begin_inset Quotes eld
18309 \end_inset
18310
18311 ???
18312 \begin_inset Quotes erd
18313 \end_inset
18314
18315 .
18316  You can also create your own units by entering 
18317 \begin_inset Flex Code
18318 status collapsed
18319
18320 \begin_layout Plain Layout
18321
18322 \backslash
18323 begin{btUnit}
18324 \end_layout
18325
18326 \end_inset
18327
18328  and 
18329 \begin_inset Flex Code
18330 status collapsed
18331
18332 \begin_layout Plain Layout
18333
18334 \backslash
18335 end{btUnit}
18336 \end_layout
18337
18338 \end_inset
18339
18340  as \SpecialChar TeX
18341  code (for instance to work around the mentioned limitation).
18342  Note, though, that 
18343 \begin_inset Flex Code
18344 status collapsed
18345
18346 \begin_layout Plain Layout
18347 btUnit
18348 \end_layout
18349
18350 \end_inset
18351
18352 s cannot be nested.
18353  A second limitation is that 
18354 \begin_inset Flex Code
18355 status collapsed
18356
18357 \begin_layout Plain Layout
18358 bibtopic
18359 \end_layout
18360
18361 \end_inset
18362
18363  always processes all references of a bibliography database, even if they
18364  are not cited.
18365  This can result in odd labels (e.
18366 \begin_inset space \thinspace{}
18367 \end_inset
18368
18369 g.
18370  
18371 \begin_inset Quotes eld
18372 \end_inset
18373
18374 Miller 2014b
18375 \begin_inset Quotes erd
18376 \end_inset
18377
18378  if two works of this author from 2014 are in the database, even if only
18379  one is cited).
18380 \end_layout
18381
18382 \begin_layout Standard
18383 If you use 
18384 \family sans
18385 Biblatex
18386 \family default
18387 , the 
18388 \begin_inset Flex Code
18389 status collapsed
18390
18391 \begin_layout Plain Layout
18392 refsection
18393 \end_layout
18394
18395 \end_inset
18396
18397  option is used instead.
18398  If you need specific units, you can start them with the \SpecialChar TeX
18399  code 
18400 \begin_inset Flex Code
18401 status collapsed
18402
18403 \begin_layout Plain Layout
18404
18405 \backslash
18406 newrefsection
18407 \end_layout
18408
18409 \end_inset
18410
18411  or 
18412 \begin_inset Flex Code
18413 status collapsed
18414
18415 \begin_layout Plain Layout
18416
18417 \backslash
18418 newrefsegment
18419 \end_layout
18420
18421 \end_inset
18422
18423 , respectively.
18424  If you also want to control the end of the unit, use the environment 
18425 \begin_inset Flex Code
18426 status collapsed
18427
18428 \begin_layout Plain Layout
18429
18430 \backslash
18431 begin{refsection}
18432 \end_layout
18433
18434 \end_inset
18435
18436  \SpecialChar ldots
18437  
18438 \begin_inset Flex Code
18439 status collapsed
18440
18441 \begin_layout Plain Layout
18442
18443 \backslash
18444 end{refsection}
18445 \end_layout
18446
18447 \end_inset
18448
18449  instead.
18450  Note, though, that 
18451 \begin_inset Flex Code
18452 status collapsed
18453
18454 \begin_layout Plain Layout
18455 refsection
18456 \end_layout
18457
18458 \end_inset
18459
18460 s cannot be nested.
18461  In addition to the individual bibliography of the current unit, 
18462 \family sans
18463 Biblatex
18464 \family default
18465  also provides an easy way to output all bibliographies, subsequently, at
18466  one place (e.
18467 \begin_inset space \thinspace{}
18468 \end_inset
18469
18470 g., at the end of the document).
18471  Select 
18472 \begin_inset Quotes eld
18473 \end_inset
18474
18475 all reference units
18476 \begin_inset Quotes erd
18477 \end_inset
18478
18479  from the Content combo box of the Bib(la)TeX inset dialog in order to achieve
18480  this.
18481  Please refer to the 
18482 \family sans
18483 Biblatex
18484 \family default
18485  manual for more information on this topic.
18486 \end_layout
18487
18488 \begin_layout Chapter
18489
18490 \change_deleted 564990737 1671355654
18491 Itemize 
18492 \change_unchanged
18493 Bullet
18494 \change_inserted 564990737 1671355667
18495 s
18496 \change_deleted 564990737 1671355661
18497  Selection
18498 \change_inserted 564990737 1671355684
18499
18500 \begin_inset CommandInset label
18501 LatexCommand label
18502 name "chap:bullets"
18503
18504 \end_inset
18505
18506
18507 \change_deleted 564990737 1671355684
18508
18509 \begin_inset CommandInset label
18510 LatexCommand label
18511 name "sec:bullet"
18512
18513 \end_inset
18514
18515
18516 \change_unchanged
18517
18518 \end_layout
18519
18520 \begin_layout Standard
18521 by
18522 \noun on
18523  Allan Rae
18524 \end_layout
18525
18526 \begin_layout Section
18527 Introduction
18528 \end_layout
18529
18530 \begin_layout Standard
18531 \SpecialChar LyX
18532  provides 216 bullet shapes that can be accessed from a simple dialog.
18533  Using this dialog you can easily specify what bullet shape to use at each
18534  level of an itemized list.
18535  These settings are document-wide so you won't be able to specify different
18536  sets of bullets for different paragraphs.
18537 \begin_inset Foot
18538 status collapsed
18539
18540 \begin_layout Plain Layout
18541 Well, actually you can but you'll have to do it by hand.
18542 \end_layout
18543
18544 \end_inset
18545
18546
18547 \end_layout
18548
18549 \begin_layout Section
18550 How it looks
18551 \end_layout
18552
18553 \begin_layout Standard
18554 Open the dialog by selecting the 
18555 \begin_inset Flex Noun
18556 status collapsed
18557
18558 \begin_layout Plain Layout
18559 Document\SpecialChar menuseparator
18560 Settings
18561 \end_layout
18562
18563 \end_inset
18564
18565  menu item and then select the 
18566 \begin_inset Flex Noun
18567 status collapsed
18568
18569 \begin_layout Plain Layout
18570 Bullets
18571 \end_layout
18572
18573 \end_inset
18574
18575  tab.
18576 \end_layout
18577
18578 \begin_layout Standard
18579 The dialog provides you with a table of bullet shapes.
18580  A column of buttons on the left of the table provides access to the six
18581  different panels of bullet shapes.
18582  The row of buttons across the top is used to select which bullet depth
18583  you are changing.
18584
18585 \change_deleted 244031559 1603875981
18586  A text entry under the table shows the currently selected bullet shape's
18587  \SpecialChar LaTeX
18588  equivalent and this can be edited if desired.
18589  If you do modify the text you will also need to specify any needed packages
18590  in the \SpecialChar LaTeX
18591  preamble.
18592 \change_unchanged
18593
18594 \end_layout
18595
18596 \begin_layout Standard
18597 The six panels are divided up by the packages they require.
18598  The following table shows the mappings from button name to \SpecialChar LaTeX
18599  package.
18600 \end_layout
18601
18602 \begin_layout Standard
18603 \align center
18604 \begin_inset Tabular
18605 <lyxtabular version="3" rows="7" columns="2">
18606 <features tabularvalignment="middle">
18607 <column alignment="center" valignment="top" width="0pt">
18608 <column alignment="center" valignment="top" width="0pt">
18609 <row>
18610 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18611 \begin_inset Text
18612
18613 \begin_layout Plain Layout
18614
18615 \family roman
18616 \series medium
18617 \shape up
18618 \size normal
18619 \emph off
18620 \bar no
18621 \noun off
18622 \color none
18623 Button
18624 \end_layout
18625
18626 \end_inset
18627 </cell>
18628 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18629 \begin_inset Text
18630
18631 \begin_layout Plain Layout
18632
18633 \family roman
18634 \series medium
18635 \shape up
18636 \size normal
18637 \emph off
18638 \bar no
18639 \noun off
18640 \color none
18641 Packages Required
18642 \end_layout
18643
18644 \end_inset
18645 </cell>
18646 </row>
18647 <row>
18648 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18649 \begin_inset Text
18650
18651 \begin_layout Plain Layout
18652
18653 \family sans
18654 \series medium
18655 \shape up
18656 \size normal
18657 \emph off
18658 \bar no
18659 \noun off
18660 \color none
18661 Standard
18662 \end_layout
18663
18664 \end_inset
18665 </cell>
18666 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18667 \begin_inset Text
18668
18669 \begin_layout Plain Layout
18670
18671 \series medium
18672 \shape up
18673 \size normal
18674 \emph off
18675 \bar no
18676 \noun off
18677 \color none
18678 base \SpecialChar LaTeX
18679
18680 \end_layout
18681
18682 \end_inset
18683 </cell>
18684 </row>
18685 <row>
18686 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18687 \begin_inset Text
18688
18689 \begin_layout Plain Layout
18690
18691 \family sans
18692 \series medium
18693 \shape up
18694 \size normal
18695 \emph off
18696 \bar no
18697 \noun off
18698 \color none
18699 Maths
18700 \end_layout
18701
18702 \end_inset
18703 </cell>
18704 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18705 \begin_inset Text
18706
18707 \begin_layout Plain Layout
18708
18709 \family typewriter
18710 \series medium
18711 \shape up
18712 \size normal
18713 \emph off
18714 \bar no
18715 \noun off
18716 \color none
18717 amssymb.sty
18718 \end_layout
18719
18720 \end_inset
18721 </cell>
18722 </row>
18723 <row>
18724 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18725 \begin_inset Text
18726
18727 \begin_layout Plain Layout
18728
18729 \family sans
18730 \series medium
18731 \shape up
18732 \size normal
18733 \emph off
18734 \bar no
18735 \noun off
18736 \color none
18737 Ding1
18738 \end_layout
18739
18740 \end_inset
18741 </cell>
18742 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18743 \begin_inset Text
18744
18745 \begin_layout Plain Layout
18746
18747 \family typewriter
18748 \series medium
18749 \shape up
18750 \size normal
18751 \emph off
18752 \bar no
18753 \noun off
18754 \color none
18755 pifont.sty
18756 \end_layout
18757
18758 \end_inset
18759 </cell>
18760 </row>
18761 <row>
18762 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18763 \begin_inset Text
18764
18765 \begin_layout Plain Layout
18766
18767 \family sans
18768 \series medium
18769 \shape up
18770 \size normal
18771 \emph off
18772 \bar no
18773 \noun off
18774 \color none
18775 Ding2
18776 \end_layout
18777
18778 \end_inset
18779 </cell>
18780 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18781 \begin_inset Text
18782
18783 \begin_layout Plain Layout
18784
18785 \family typewriter
18786 \series medium
18787 \shape up
18788 \size normal
18789 \emph off
18790 \bar no
18791 \noun off
18792 \color none
18793 pifont.sty
18794 \end_layout
18795
18796 \end_inset
18797 </cell>
18798 </row>
18799 <row>
18800 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18801 \begin_inset Text
18802
18803 \begin_layout Plain Layout
18804
18805 \family sans
18806 \series medium
18807 \shape up
18808 \size normal
18809 \emph off
18810 \bar no
18811 \noun off
18812 \color none
18813 Ding3
18814 \end_layout
18815
18816 \end_inset
18817 </cell>
18818 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18819 \begin_inset Text
18820
18821 \begin_layout Plain Layout
18822
18823 \family typewriter
18824 \series medium
18825 \shape up
18826 \size normal
18827 \emph off
18828 \bar no
18829 \noun off
18830 \color none
18831 pifont.sty
18832 \end_layout
18833
18834 \end_inset
18835 </cell>
18836 </row>
18837 <row>
18838 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18839 \begin_inset Text
18840
18841 \begin_layout Plain Layout
18842
18843 \family sans
18844 \series medium
18845 \shape up
18846 \size normal
18847 \emph off
18848 \bar no
18849 \noun off
18850 \color none
18851 Ding4
18852 \end_layout
18853
18854 \end_inset
18855 </cell>
18856 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18857 \begin_inset Text
18858
18859 \begin_layout Plain Layout
18860
18861 \family typewriter
18862 \series medium
18863 \shape up
18864 \size normal
18865 \emph off
18866 \bar no
18867 \noun off
18868 \color none
18869 pifont.sty
18870 \end_layout
18871
18872 \end_inset
18873 </cell>
18874 </row>
18875 </lyxtabular>
18876
18877 \end_inset
18878
18879
18880 \end_layout
18881
18882 \begin_layout Standard
18883 \SpecialChar LyX
18884  doesn't stop you using bullets from packages you don't have.
18885  If you get errors from \SpecialChar LaTeX
18886  when you try to view or print the file, then it
18887  is likely you are missing a package.
18888 \begin_inset Foot
18889 status collapsed
18890
18891 \begin_layout Plain Layout
18892 \SpecialChar LyX
18893  doesn't restrict your use since you may be editing locally and exporting
18894  elsewhere.
18895 \end_layout
18896
18897 \end_inset
18898
18899
18900 \end_layout
18901
18902 \begin_layout Section
18903 How to use it
18904 \end_layout
18905
18906 \begin_layout Standard
18907 Select which bullet depth you want to change then select the bullet shape
18908  and size.
18909  Any changes will not be visible in \SpecialChar LyX
18910 , but are visible when viewing the document.
18911 \end_layout
18912
18913 \begin_layout Standard
18914 You can reset a bullet shape to the default simply by clicking your right
18915  mouse button on the appropriate bullet depth button.
18916 \begin_inset Foot
18917 status open
18918
18919 \begin_layout Plain Layout
18920 If you 
18921 \emph on
18922 really
18923 \emph default
18924  want to have multiple sets of paragraphs with different sets of bullets
18925  in each, then you're going to have to get your hands dirty with \SpecialChar TeX
18926  code.
18927  The bullet selection dialog can help though because it provides you with
18928  the \SpecialChar LaTeX
18929  code for a wide range of bullet shapes.
18930  To make your own custom paragraphs you have the following options:
18931 \end_layout
18932
18933 \begin_layout Plain Layout
18934 \begin_inset ERT
18935 status open
18936
18937 \begin_layout Plain Layout
18938
18939
18940 \backslash
18941 let
18942 \backslash
18943 savelabelitemi=
18944 \backslash
18945 labelitemi
18946 \end_layout
18947
18948 \end_inset
18949
18950
18951 \end_layout
18952
18953 \begin_layout Plain Layout
18954 \begin_inset ERT
18955 status open
18956
18957 \begin_layout Plain Layout
18958
18959
18960 \backslash
18961 renewcommand
18962 \backslash
18963 labelitemi[0]{
18964 \backslash
18965 small
18966 \backslash
18967 (
18968 \backslash
18969 sharp
18970 \backslash
18971 )}
18972 \end_layout
18973
18974 \end_inset
18975
18976
18977 \end_layout
18978
18979 \begin_layout Itemize
18980 Use the \SpecialChar LaTeX
18981  command 
18982 \begin_inset Flex Code
18983 status collapsed
18984
18985 \begin_layout Plain Layout
18986
18987 \backslash
18988 renewcommand{}{}
18989 \end_layout
18990
18991 \end_inset
18992
18993  to specify a new bullet shape for a given depth.
18994  You'll also need to save the current bullet shape so you can restore it
18995  again afterwards.
18996  In this itemized list the following \SpecialChar LaTeX
18997  code was used to change the bullet
18998  used for the first depth.
18999 \end_layout
19000
19001 \begin_deeper
19002 \begin_layout LyX-Code
19003
19004 \backslash
19005 let
19006 \backslash
19007 savelabelitemi=
19008 \backslash
19009 labelitemi 
19010 \end_layout
19011
19012 \begin_layout LyX-Code
19013
19014 \backslash
19015 renewcommand
19016 \backslash
19017 labelitemi[0]{
19018 \backslash
19019 small
19020 \backslash
19021 (
19022 \backslash
19023 sharp
19024 \backslash
19025 )}
19026 \end_layout
19027
19028 \end_deeper
19029 \begin_layout Itemize
19030 Note that the itemize depth is specified in Roman numerals as part of the
19031  
19032 \family typewriter
19033
19034 \backslash
19035 labelitem
19036 \family default
19037  command.
19038 \end_layout
19039
19040 \begin_layout Itemize
19041 \begin_inset Argument item:1
19042 status open
19043
19044 \begin_layout Plain Layout
19045 \begin_inset ERT
19046 status open
19047
19048 \begin_layout Plain Layout
19049
19050
19051 \backslash
19052 (
19053 \backslash
19054 star
19055 \backslash
19056 )
19057 \end_layout
19058
19059 \end_inset
19060
19061
19062 \end_layout
19063
19064 \end_inset
19065
19066  Specify each individual entry by starting each item with the bullet shape
19067  enclosed in a 
19068 \begin_inset Quotes eld
19069 \end_inset
19070
19071 Custom Item
19072 \begin_inset Quotes erd
19073 \end_inset
19074
19075  inset (available at 
19076 \family sans
19077 Insert\SpecialChar menuseparator
19078 Custom Item
19079 \family default
19080 ) and set as 
19081 \begin_inset Flex Noun
19082 status collapsed
19083
19084 \begin_layout Plain Layout
19085 \SpecialChar TeX
19086  Code
19087 \end_layout
19088
19089 \end_inset
19090
19091 .
19092  For example, this item was started with 
19093 \begin_inset Flex Code
19094 status collapsed
19095
19096 \begin_layout Plain Layout
19097
19098 \backslash
19099 (
19100 \backslash
19101 star
19102 \backslash
19103 )
19104 \end_layout
19105
19106 \end_inset
19107
19108 .
19109 \end_layout
19110
19111 \begin_layout Plain Layout
19112 \begin_inset ERT
19113 status open
19114
19115 \begin_layout Plain Layout
19116
19117
19118 \backslash
19119 renewcommand
19120 \backslash
19121 labelitemi[0]{
19122 \backslash
19123 savelabelitemi}
19124 \end_layout
19125
19126 \end_inset
19127
19128
19129 \end_layout
19130
19131 \begin_layout Plain Layout
19132 You'll also need to revert the labelitem back to its previous setting for
19133  the global bullet shape settings to remain in effect.
19134  The way used here was:
19135 \end_layout
19136
19137 \begin_layout LyX-Code
19138
19139 \backslash
19140 renewcommand
19141 \backslash
19142 labelitemi[0]{
19143 \backslash
19144 savelabelitemi}
19145 \end_layout
19146
19147 \end_inset
19148
19149
19150 \end_layout
19151
19152 \begin_layout Chapter
19153 Supplemental Tools
19154 \end_layout
19155
19156 \begin_layout Section
19157 Multipart Documents
19158 \end_layout
19159
19160 \begin_layout Subsection
19161 General Operation
19162 \end_layout
19163
19164 \begin_layout Standard
19165 When you are working on a large file with many sections, it is often convenient
19166  to break up the document into several files, or perhaps you have something
19167  where a table may change from time to time, but the preceding text does
19168  not.
19169  In these cases, you should seriously consider using multipart documents.
19170  For example, scientific papers often have five major sections: the introduction
19171 , observations, results, discussion, and conclusion.
19172  Each of these could be its own separate \SpecialChar LyX
19173  file, with one 
19174 \begin_inset Quotes eld
19175 \end_inset
19176
19177 master
19178 \begin_inset Quotes erd
19179 \end_inset
19180
19181  file which contains the title, authors, abstract, references, etc., plus
19182  the five included files.
19183  It is important to note that each of these files is a full \SpecialChar LyX
19184  file which
19185  can be formatted and printed on its own, as well as included in a master
19186  file.
19187  Each of these files must have the same document class, however—don't attempt
19188  to mix book classes with article classes.
19189  You may also include \SpecialChar LaTeX
19190  files; however, these files must not have their own
19191  preamble (i.
19192 \begin_inset space \thinspace{}
19193 \end_inset
19194
19195 e.
19196 \begin_inset space \space{}
19197 \end_inset
19198
19199 everything up to and including the 
19200 \begin_inset Flex Code
19201 status collapsed
19202
19203 \begin_layout Plain Layout
19204
19205 \backslash
19206 begin{document}
19207 \end_layout
19208
19209 \end_inset
19210
19211  line as well as the 
19212 \begin_inset Flex Code
19213 status collapsed
19214
19215 \begin_layout Plain Layout
19216
19217 \backslash
19218 end{document}
19219 \end_layout
19220
19221 \end_inset
19222
19223  line must be deleted) or else errors will be generated when you try to
19224  make a DVI file.
19225 \end_layout
19226
19227 \begin_layout Standard
19228 \SpecialChar LyX
19229  allows you to include files quite easily with 
19230 \begin_inset Flex Noun
19231 status collapsed
19232
19233 \begin_layout Plain Layout
19234 Insert\SpecialChar menuseparator
19235 Child
19236 \begin_inset space ~
19237 \end_inset
19238
19239 Document
19240 \end_layout
19241
19242 \end_inset
19243
19244 .
19245  When you click on this selection a small box is inserted into the file
19246  at the current cursor location.
19247  Clicking on the box raises a dialog which allows you to select the file
19248  to be included, and the method of its inclusion.
19249  
19250 \end_layout
19251
19252 \begin_layout Standard
19253 The file selection box should by now be obvious.
19254  The three inclusion methods are 
19255 \begin_inset Quotes eld
19256 \end_inset
19257
19258 include
19259 \begin_inset Quotes erd
19260 \end_inset
19261
19262
19263 \begin_inset Quotes eld
19264 \end_inset
19265
19266 input
19267 \begin_inset Quotes erd
19268 \end_inset
19269
19270 , and 
19271 \begin_inset Quotes eld
19272 \end_inset
19273
19274 verbatim
19275 \begin_inset Quotes erd
19276 \end_inset
19277
19278 .
19279  The methods 
19280 \begin_inset Quotes eld
19281 \end_inset
19282
19283 include
19284 \begin_inset Quotes erd
19285 \end_inset
19286
19287  and 
19288 \begin_inset Quotes eld
19289 \end_inset
19290
19291 input
19292 \begin_inset Quotes erd
19293 \end_inset
19294
19295  are similar in many ways, but there are also some notable differences:
19296 \end_layout
19297
19298 \begin_layout Enumerate
19299 Files that are 
19300 \begin_inset Quotes eld
19301 \end_inset
19302
19303 included
19304 \begin_inset Quotes erd
19305 \end_inset
19306
19307  are typeset beginning on a new page, while files that are 
19308 \begin_inset Quotes eld
19309 \end_inset
19310
19311 inputted
19312 \begin_inset Quotes erd
19313 \end_inset
19314
19315  are typeset starting on the current page.
19316 \end_layout
19317
19318 \begin_layout Enumerate
19319 \begin_inset Quotes eld
19320 \end_inset
19321
19322 Included
19323 \begin_inset Quotes erd
19324 \end_inset
19325
19326  files cannot themselves 
19327 \begin_inset Quotes eld
19328 \end_inset
19329
19330 include
19331 \begin_inset Quotes erd
19332 \end_inset
19333
19334  further files (
19335 \begin_inset Quotes eld
19336 \end_inset
19337
19338 grandchilds
19339 \begin_inset Quotes erd
19340 \end_inset
19341
19342 ).
19343  With 
19344 \begin_inset Quotes eld
19345 \end_inset
19346
19347 input
19348 \begin_inset Quotes erd
19349 \end_inset
19350
19351 , on the other hand, infinite sub-inputting is possible.
19352 \end_layout
19353
19354 \begin_layout Enumerate
19355 \begin_inset Quotes eld
19356 \end_inset
19357
19358 Include
19359 \begin_inset Quotes erd
19360 \end_inset
19361
19362  allow for the output of only selected 
19363 \begin_inset Quotes eld
19364 \end_inset
19365
19366 included
19367 \begin_inset Quotes erd
19368 \end_inset
19369
19370  files, while maintaining the actual counters (pagination etc.) and references
19371  (please refer to the section 
19372 \emph on
19373 Child
19374 \begin_inset space ~
19375 \end_inset
19376
19377 Documents
19378 \emph default
19379  of the 
19380 \emph on
19381 Embedded
19382 \begin_inset space ~
19383 \end_inset
19384
19385 Objects
19386 \emph default
19387  manual for details).
19388 \end_layout
19389
19390 \begin_layout Standard
19391 Hence, 
19392 \begin_inset Quotes eld
19393 \end_inset
19394
19395 include
19396 \begin_inset Quotes erd
19397 \end_inset
19398
19399  is the preferred method for chapters that are outsourced to child documents,
19400  while 
19401 \begin_inset Quotes eld
19402 \end_inset
19403
19404 input
19405 \begin_inset Quotes erd
19406 \end_inset
19407
19408  is more suitable for arbitrary file inheritance.
19409 \end_layout
19410
19411 \begin_layout Standard
19412
19413 \begin_inset Quotes eld
19414 \end_inset
19415
19416 verbatim
19417 \begin_inset Quotes erd
19418 \end_inset
19419
19420  included file allows you to include a file typeset exactly as it appears
19421  in the file, i.
19422 \begin_inset space \thinspace{}
19423 \end_inset
19424
19425 e.
19426 \begin_inset space \space{}
19427 \end_inset
19428
19429 in 
19430 \begin_inset Flex Code
19431 status collapsed
19432
19433 \begin_layout Plain Layout
19434 verbatim
19435 \end_layout
19436
19437 \end_inset
19438
19439  mode, with the characters set in a fixed-width typewriter font.
19440  Normally, spaces in this file are invisible, though two consecutive spaces
19441  are conserved, unlike \SpecialChar LyX
19442 's normal treatment of spaces.
19443  However, setting the 
19444 \begin_inset Flex Noun
19445 status collapsed
19446
19447 \begin_layout Plain Layout
19448 Mark
19449 \begin_inset space ~
19450 \end_inset
19451
19452 spaces
19453 \begin_inset space ~
19454 \end_inset
19455
19456 in
19457 \begin_inset space ~
19458 \end_inset
19459
19460 output
19461 \end_layout
19462
19463 \end_inset
19464
19465  checkbox typesets a mark to unambiguously define the presence of a space.
19466  
19467 \end_layout
19468
19469 \begin_layout Standard
19470 Generally, the master file is converted into a full \SpecialChar LaTeX
19471  file before typesetting,
19472  while the included files are converted to \SpecialChar LaTeX
19473  files that do not have all the
19474  preamble information.
19475 \end_layout
19476
19477 \begin_layout Subsection
19478 Cross-References Between Files
19479 \end_layout
19480
19481 \begin_layout Standard
19482 \begin_inset Box Shadowbox
19483 position "t"
19484 hor_pos "c"
19485 has_inner_box 1
19486 inner_pos "t"
19487 use_parbox 0
19488 use_makebox 0
19489 width "100col%"
19490 special "none"
19491 height "1in"
19492 height_special "totalheight"
19493 thickness "0.4pt"
19494 separation "3pt"
19495 shadowsize "4pt"
19496 framecolor "black"
19497 backgroundcolor "none"
19498 status open
19499
19500 \begin_layout Plain Layout
19501 This section is somewhat out of date.
19502  Need to describe default master documents and how children are opened when
19503  the master is.
19504  [[FIXME]]
19505 \end_layout
19506
19507 \end_inset
19508
19509
19510 \end_layout
19511
19512 \begin_layout Standard
19513 It is possible to set up cross-references between the different files.
19514  First, open all the files in question: let's call them A and B in a two
19515  file example, where B is included in A.
19516  Let's say you insert a label in A, then want to reference it in B.
19517  Open the cross-reference dialog whilst in document B, and you can select
19518  the 
19519 \begin_inset Quotes eld
19520 \end_inset
19521
19522 buffer
19523 \begin_inset Quotes erd
19524 \end_inset
19525
19526  to use.
19527 \end_layout
19528
19529 \begin_layout Subsection
19530 Bibliography Lists in all Subdocuments
19531 \end_layout
19532
19533 \begin_layout Standard
19534 If you work with child documents, you might want to have only one main bibliogra
19535 phy at the end, but still be able to have a selected bibliography for the
19536  child if you output it on its own.
19537  Here is how to achieve this.
19538 \end_layout
19539
19540 \begin_layout Standard
19541 For the main document, you just insert a bibliography inset at the place
19542  where the main bibliography has to appear (within the master file or within
19543  a child).
19544  If the bibliography inset is in the master file, the references will be
19545  inherited by all children, so they are available in the citation dialog
19546  within each child.
19547 \end_layout
19548
19549 \begin_layout Standard
19550 For child-specific bibliographies, insert bibliography insets within the
19551  child documents, at the place where the bibliography should appear when
19552  the child is compiled separately.
19553  However, the trick is to insert them into a branch (
19554 \family sans
19555 Insert\SpecialChar menuseparator
19556 Branch\SpecialChar menuseparator
19557 Insert New Branch...
19558 \family default
19559 ), e.
19560 \begin_inset space \thinspace{}
19561 \end_inset
19562
19563 g.
19564  called 
19565 \begin_inset Quotes eld
19566 \end_inset
19567
19568 Childonly
19569 \begin_inset Quotes erd
19570 \end_inset
19571
19572 .
19573  Within the children, activate the branch (
19574 \family sans
19575 Document\SpecialChar menuseparator
19576 Settings...\SpecialChar menuseparator
19577 Branches
19578 \family default
19579 ).
19580  Within the master, deactivate the branch (
19581 \family sans
19582 Document\SpecialChar menuseparator
19583 Settings...\SpecialChar menuseparator
19584 Branches
19585 \family default
19586 ).
19587  Now the child's bibliography will be ignored by the master, but considered
19588  by the child.
19589 \end_layout
19590
19591 \begin_layout Standard
19592 If you need multiple bibliographies (e.
19593 \begin_inset space \thinspace{}
19594 \end_inset
19595
19596 g., one per child in the 
19597 \emph on
19598 main document
19599 \emph default
19600 ), please refer to sec.
19601 \begin_inset space ~
19602 \end_inset
19603
19604
19605 \begin_inset CommandInset ref
19606 LatexCommand ref
19607 reference "subsec:Multiple-Bibliographies"
19608
19609 \end_inset
19610
19611 .
19612 \end_layout
19613
19614 \begin_layout Section
19615 \SpecialChar LyX
19616  Archives
19617 \end_layout
19618
19619 \begin_layout Standard
19620 Users sometimes need to be able to 
19621 \begin_inset Quotes eld
19622 \end_inset
19623
19624 bundle
19625 \begin_inset Quotes erd
19626 \end_inset
19627
19628  a \SpecialChar LyX
19629  file together with all the images (and other files) on which it depends,
19630  either for sending to a publisher or for sharing with a co-author.
19631  \SpecialChar LyX
19632  includes a Python script (
19633 \begin_inset Flex Code
19634 status collapsed
19635
19636 \begin_layout Plain Layout
19637 lyxpak.py
19638 \end_layout
19639
19640 \end_inset
19641
19642 ) that automates this process.
19643  To use it, you must have either the 
19644 \begin_inset Flex Code
19645 status collapsed
19646
19647 \begin_layout Plain Layout
19648 zipfile
19649 \end_layout
19650
19651 \end_inset
19652
19653  or 
19654 \begin_inset Flex Code
19655 status collapsed
19656
19657 \begin_layout Plain Layout
19658 tarfile
19659 \end_layout
19660
19661 \end_inset
19662
19663  python modules installed on your system.
19664  By default, the script prefers the 
19665 \begin_inset Flex Code
19666 status collapsed
19667
19668 \begin_layout Plain Layout
19669 gzip
19670 \end_layout
19671
19672 \end_inset
19673
19674 -compressed 
19675 \begin_inset Flex Code
19676 status collapsed
19677
19678 \begin_layout Plain Layout
19679 tar
19680 \end_layout
19681
19682 \end_inset
19683
19684  format on Unix-like systems and the 
19685 \begin_inset Flex Code
19686 status collapsed
19687
19688 \begin_layout Plain Layout
19689 zip
19690 \end_layout
19691
19692 \end_inset
19693
19694  format on Windows.
19695 \end_layout
19696
19697 \begin_layout Standard
19698 \SpecialChar LyX
19699 's configuration process will set the script up to export a `\SpecialChar LyX
19700  Archive',
19701  and this format will then be available under 
19702 \begin_inset Flex Code
19703 status collapsed
19704
19705 \begin_layout Plain Layout
19706 File\SpecialChar menuseparator
19707 Export
19708 \end_layout
19709
19710 \end_inset
19711
19712 .
19713 \end_layout
19714
19715 \begin_layout Standard
19716 Independently of the platform, the generation of a particular archive format
19717  can be forced by adding either the 
19718 \begin_inset Flex Code
19719 status collapsed
19720
19721 \begin_layout Plain Layout
19722 -t
19723 \end_layout
19724
19725 \end_inset
19726
19727  (for the 
19728 \begin_inset Flex Code
19729 status collapsed
19730
19731 \begin_layout Plain Layout
19732 tar
19733 \end_layout
19734
19735 \end_inset
19736
19737  format) or 
19738 \begin_inset Flex Code
19739 status collapsed
19740
19741 \begin_layout Plain Layout
19742 -z
19743 \end_layout
19744
19745 \end_inset
19746
19747  (for the 
19748 \begin_inset Flex Code
19749 status collapsed
19750
19751 \begin_layout Plain Layout
19752 zip
19753 \end_layout
19754
19755 \end_inset
19756
19757  format) switch to the 
19758 \begin_inset Flex Code
19759 status collapsed
19760
19761 \begin_layout Plain Layout
19762 \SpecialChar LyX
19763 \SpecialChar menuseparator
19764 \SpecialChar LyX
19765  Archive
19766 \end_layout
19767
19768 \end_inset
19769
19770  converter in 
19771 \begin_inset Flex Code
19772 status collapsed
19773
19774 \begin_layout Plain Layout
19775 Tools\SpecialChar menuseparator
19776 Preferences\SpecialChar menuseparator
19777 File Handling\SpecialChar menuseparator
19778 Converters
19779 \end_layout
19780
19781 \end_inset
19782
19783 .
19784  (Make sure you add the switch after the script name, not before it.)
19785 \end_layout
19786
19787 \begin_layout Section
19788 Fancy Headers and Footers
19789 \end_layout
19790
19791 \begin_layout Standard
19792 The default page layout is rather plain; for an 
19793 \begin_inset Flex Code
19794 status collapsed
19795
19796 \begin_layout Plain Layout
19797 article
19798 \end_layout
19799
19800 \end_inset
19801
19802  document class, all you get is a centered page number at the bottom of
19803  the page.
19804  This document uses KOMA-script's book class, so it appears to be a bit
19805  fancier.
19806  But to really put on a show, you need to set the document page style to
19807  
19808 \begin_inset Quotes eld
19809 \end_inset
19810
19811 fancy
19812 \begin_inset Quotes erd
19813 \end_inset
19814
19815 , as mentioned in the 
19816 \emph on
19817 User Guide
19818 \emph default
19819 .
19820  This section describes the \SpecialChar LaTeX
19821  code you need to insert in your \SpecialChar LaTeX
19822  preamble in
19823  order to get the desired effects.
19824 \end_layout
19825
19826 \begin_layout Standard
19827 For more information on fancy headers, see the 
19828 \begin_inset Flex Code
19829 status collapsed
19830
19831 \begin_layout Plain Layout
19832 fancyhdr
19833 \end_layout
19834
19835 \end_inset
19836
19837  package documentation.
19838  (
19839 \begin_inset Flex URL
19840 status collapsed
19841
19842 \begin_layout Plain Layout
19843
19844 https://www.ctan.org/tex-archive/help/Catalogue/entries/fancyhdr.html
19845 \end_layout
19846
19847 \end_inset
19848
19849 )
19850 \end_layout
19851
19852 \begin_layout Standard
19853 The page header is divided into three fields, not surprisingly labeled 
19854 \begin_inset Quotes eld
19855 \end_inset
19856
19857 left
19858 \begin_inset Quotes erd
19859 \end_inset
19860
19861
19862 \begin_inset Quotes eld
19863 \end_inset
19864
19865 center
19866 \begin_inset Quotes erd
19867 \end_inset
19868
19869 , and 
19870 \begin_inset Quotes eld
19871 \end_inset
19872
19873 right
19874 \begin_inset Quotes erd
19875 \end_inset
19876
19877 .
19878  The footer is also divided into these three fields.
19879  The \SpecialChar LaTeX
19880  commands to set these fields in the simplest manner are 
19881 \begin_inset Flex Code
19882 status collapsed
19883
19884 \begin_layout Plain Layout
19885
19886 \backslash
19887 lhead
19888 \end_layout
19889
19890 \end_inset
19891
19892
19893 \begin_inset Flex Code
19894 status collapsed
19895
19896 \begin_layout Plain Layout
19897
19898 \backslash
19899 chead
19900 \end_layout
19901
19902 \end_inset
19903
19904
19905 \begin_inset Flex Code
19906 status collapsed
19907
19908 \begin_layout Plain Layout
19909
19910 \backslash
19911 rhead
19912 \end_layout
19913
19914 \end_inset
19915
19916
19917 \begin_inset Flex Code
19918 status collapsed
19919
19920 \begin_layout Plain Layout
19921
19922 \backslash
19923 lfoot
19924 \end_layout
19925
19926 \end_inset
19927
19928 , etc.
19929  Suppose you wish to put your name in the upper left hand corner of each
19930  page.
19931  Simply insert the following command in the preamble: 
19932 \end_layout
19933
19934 \begin_layout Standard
19935
19936 \family typewriter
19937
19938 \backslash
19939 lhead{John Q.
19940  DocWriter}
19941 \end_layout
19942
19943 \begin_layout Standard
19944 You will now see your name in the upper left.
19945  If a field has a default entry that you would like to get rid of (often
19946  the page number appears in the central footer) simply include a command
19947  with a blank argument, e.
19948 \begin_inset space \thinspace{}
19949 \end_inset
19950
19951 g.:
19952 \end_layout
19953
19954 \begin_layout Standard
19955
19956 \family typewriter
19957
19958 \backslash
19959 cfoot{}
19960 \end_layout
19961
19962 \begin_layout Standard
19963 Let's get really fancy: lets put the section number with the word 
19964 \begin_inset Quotes eld
19965 \end_inset
19966
19967 Section
19968 \begin_inset Quotes erd
19969 \end_inset
19970
19971  (e.
19972 \begin_inset space \thinspace{}
19973 \end_inset
19974
19975 g.
19976 \begin_inset space \space{}
19977 \end_inset
19978
19979 Section 3) in the upper left, the page number (e.
19980 \begin_inset space \thinspace{}
19981 \end_inset
19982
19983 g.
19984 \begin_inset space \space{}
19985 \end_inset
19986
19987 Page 4) in the upper right, your name in the lower left, and the date in
19988  the lower right.
19989  The following commands should now appear in the preamble:
19990 \end_layout
19991
19992 \begin_layout Standard
19993
19994 \family typewriter
19995
19996 \backslash
19997 lhead{Section 
19998 \backslash
19999 thesection}
20000 \end_layout
20001
20002 \begin_layout Standard
20003
20004 \family typewriter
20005
20006 \backslash
20007 chead{}
20008 \end_layout
20009
20010 \begin_layout Standard
20011
20012 \family typewriter
20013
20014 \backslash
20015 rhead{Page 
20016 \backslash
20017 thepage}
20018 \end_layout
20019
20020 \begin_layout Standard
20021
20022 \family typewriter
20023
20024 \backslash
20025 lfoot{John Q.
20026  DocWriter}
20027 \end_layout
20028
20029 \begin_layout Standard
20030
20031 \family typewriter
20032
20033 \backslash
20034 cfoot{}
20035 \end_layout
20036
20037 \begin_layout Standard
20038
20039 \family typewriter
20040
20041 \backslash
20042 rfoot{
20043 \backslash
20044 today}
20045 \end_layout
20046
20047 \begin_layout Standard
20048 The commands 
20049 \begin_inset Flex Code
20050 status collapsed
20051
20052 \begin_layout Plain Layout
20053
20054 \backslash
20055 thesection
20056 \end_layout
20057
20058 \end_inset
20059
20060  and 
20061 \begin_inset Flex Code
20062 status collapsed
20063
20064 \begin_layout Plain Layout
20065
20066 \backslash
20067 thepage
20068 \end_layout
20069
20070 \end_inset
20071
20072  access \SpecialChar LaTeX
20073 's section and page counters, and so print out the current section
20074  and page number.
20075  
20076 \begin_inset Flex Code
20077 status collapsed
20078
20079 \begin_layout Plain Layout
20080
20081 \backslash
20082 today
20083 \end_layout
20084
20085 \end_inset
20086
20087  simply prints out today's date.
20088 \end_layout
20089
20090 \begin_layout Standard
20091 The thicknesses of the horizontal rules drawn beneath the header and above
20092  the footer can also be modified.
20093  If you don't want one of the rules, set its thickness to 0.
20094  The header rule has a default thickness of 0.4pt, the footer rule is 0pt.
20095  Use commands
20096 \family typewriter
20097  
20098 \family default
20099 like 
20100 \begin_inset Flex Code
20101 status collapsed
20102
20103 \begin_layout Plain Layout
20104
20105 \backslash
20106 renewcommand{
20107 \backslash
20108 headrulewidth}{0.4pt}
20109 \end_layout
20110
20111 \end_inset
20112
20113  and 
20114 \begin_inset Flex Code
20115 status collapsed
20116
20117 \begin_layout Plain Layout
20118
20119 \backslash
20120 renewcommand{
20121 \backslash
20122 footrulewidth}{0.4pt}
20123 \end_layout
20124
20125 \end_inset
20126
20127  to set the thicknesses.
20128 \end_layout
20129
20130 \begin_layout Standard
20131 You can switch the header/footer settings on and off for individual pages
20132  using commands like 
20133 \begin_inset Flex Code
20134 status collapsed
20135
20136 \begin_layout Plain Layout
20137
20138 \backslash
20139 thispagestyle{empty}
20140 \end_layout
20141
20142 \end_inset
20143
20144
20145 \begin_inset Flex Code
20146 status collapsed
20147
20148 \begin_layout Plain Layout
20149
20150 \backslash
20151 thispagestyle{plain}
20152 \end_layout
20153
20154 \end_inset
20155
20156 , and 
20157 \begin_inset Flex Code
20158 status collapsed
20159
20160 \begin_layout Plain Layout
20161
20162 \backslash
20163 thispagestyle{fancy}
20164 \end_layout
20165
20166 \end_inset
20167
20168 .
20169  Simply insert them in the text on the page you want changed and mark them
20170  as \SpecialChar TeX
20171  code.
20172  In fact, title pages are marked as plain by default, while following pages
20173  are marked fancy when using the global fancy setting.
20174 \end_layout
20175
20176 \begin_layout Standard
20177 As a final example, it is possible to include an image in the header or
20178  footer.
20179  Suppose you want to put a company logo in the upper lefthand corner.
20180  You might try something like
20181 \end_layout
20182
20183 \begin_layout Standard
20184
20185 \family typewriter
20186
20187 \backslash
20188 lhead{
20189 \backslash
20190 resizebox{1in}{!}{
20191 \backslash
20192 includegraphics{logo.eps}}}
20193 \end_layout
20194
20195 \begin_layout Standard
20196 \noindent
20197 (you may need to preface this with 
20198 \begin_inset Flex Code
20199 status collapsed
20200
20201 \begin_layout Plain Layout
20202
20203 \backslash
20204 usepackage{graphics}
20205 \end_layout
20206
20207 \end_inset
20208
20209  if you don't include graphics elsewhere in your document).
20210 \end_layout
20211
20212 \begin_layout Chapter
20213 \SpecialChar LyX
20214  and the World Wide Web
20215 \end_layout
20216
20217 \begin_layout Standard
20218 \SpecialChar LyX
20219  has long supported the export of documents to various web-friendly formats,
20220  such as HTML.
20221  Before version 2.0, however, HTML export was always accomplished by the
20222  use of external converters.
20223 \begin_inset Foot
20224 status collapsed
20225
20226 \begin_layout Plain Layout
20227 For details on the use of external converters with \SpecialChar LyX
20228 , see the 
20229 \emph on
20230 Converters
20231 \emph default
20232  section of the Customization manual.
20233 \end_layout
20234
20235 \end_inset
20236
20237  These fall into two large groups: there are converters that use \SpecialChar LaTeX
20238  as an
20239  intermediate format, such as 
20240 \begin_inset Flex Code
20241 status collapsed
20242
20243 \begin_layout Plain Layout
20244 htlatex
20245 \end_layout
20246
20247 \end_inset
20248
20249
20250 \begin_inset Flex Code
20251 status collapsed
20252
20253 \begin_layout Plain Layout
20254 html2latex
20255 \end_layout
20256
20257 \end_inset
20258
20259 , and 
20260 \begin_inset Flex Code
20261 status collapsed
20262
20263 \begin_layout Plain Layout
20264 plastex
20265 \end_layout
20266
20267 \end_inset
20268
20269 , relying upon \SpecialChar LyX
20270  to produce the \SpecialChar LaTeX
20271 ; and there is a converter that works directly
20272  on \SpecialChar LyX
20273  files, 
20274 \begin_inset Flex Code
20275 status collapsed
20276
20277 \begin_layout Plain Layout
20278 e\SpecialChar LyX
20279 er
20280 \end_layout
20281
20282 \end_inset
20283
20284 .
20285  All of these have different advantages and disadvantages.
20286  
20287 \end_layout
20288
20289 \begin_layout Standard
20290 The \SpecialChar LaTeX
20291 -based converters have the advantage that, in principle, they know everythin
20292 g about the exported document that \SpecialChar LaTeX
20293  does.
20294  Such converters do not care, for example, if a certain block of code was
20295  produced by \SpecialChar LyX
20296  or was Evil Red Text.
20297  These converters know about 
20298 \begin_inset Flex Code
20299 status collapsed
20300
20301 \begin_layout Plain Layout
20302 aux
20303 \end_layout
20304
20305 \end_inset
20306
20307  files, counters, and references, and can often make use of the 
20308 \begin_inset Flex Code
20309 status collapsed
20310
20311 \begin_layout Plain Layout
20312 bbl
20313 \end_layout
20314
20315 \end_inset
20316
20317  files generated by Bib\SpecialChar TeX
20318 .
20319  On the other hand, \SpecialChar LaTeX
20320  is a very hard language to parse—it is sometimes said
20321  that only \SpecialChar TeX
20322  itself understands \SpecialChar TeX
20323 —and \SpecialChar LaTeX
20324 -based converters will often choke on
20325  what seem to be quite simple constructs; complex ones can throw them completely
20326 , and as of this writing, for example, the 
20327 \emph on
20328 Embedded Objects
20329 \emph default
20330  manual will not export with 
20331 \begin_inset Flex Code
20332 status collapsed
20333
20334 \begin_layout Plain Layout
20335 htlatex
20336 \end_layout
20337
20338 \end_inset
20339
20340 , though the others will.
20341  The other issue concerns how math is handled.
20342  These converters typically convert the formulae into little pictures that
20343  are then linked from the HTML document.
20344  Since these are actually generated by \SpecialChar LaTeX
20345 , they are accurate.
20346  But they do not scale well, and just getting them to look as if they are
20347  actually meant to be in your document—so that the font sizes seem to be
20348  roughly the same—can be a challenge.
20349 \end_layout
20350
20351 \begin_layout Standard
20352 Alex Fernandez's 
20353 \begin_inset Flex Code
20354 status collapsed
20355
20356 \begin_layout Plain Layout
20357 e\SpecialChar LyX
20358 er
20359 \end_layout
20360
20361 \end_inset
20362
20363  (
20364 \begin_inset CommandInset href
20365 LatexCommand href
20366 name "http://pinchito.es/elyxer/"
20367 target "http://pinchito.es/elyxer/"
20368 literal "false"
20369
20370 \end_inset
20371
20372 ) solves some of these problems.
20373  In particular, the formulae it produces scale perfectly, since it renders
20374  math using a combination of HTML and CSS rather than converting the formulae
20375  to images.
20376  But even moderately complex formula are rendered less well than with 
20377 \begin_inset Flex Code
20378 status collapsed
20379
20380 \begin_layout Plain Layout
20381 htlatex
20382 \end_layout
20383
20384 \end_inset
20385
20386 ; this reflects the limitations of HTML.
20387 \begin_inset Foot
20388 status collapsed
20389
20390 \begin_layout Plain Layout
20391 That said, 
20392 \begin_inset Flex Code
20393 status collapsed
20394
20395 \begin_layout Plain Layout
20396 e\SpecialChar LyX
20397 er
20398 \end_layout
20399
20400 \end_inset
20401
20402  can also use jsMath and MathJax for equations, but this setting is only
20403  available globally and requires one to have access to a server that runs
20404  the backend.
20405 \end_layout
20406
20407 \end_inset
20408
20409  More importantly (as of version 1.1.1, at least), 
20410 \begin_inset Flex Code
20411 status collapsed
20412
20413 \begin_layout Plain Layout
20414 e\SpecialChar LyX
20415 er
20416 \end_layout
20417
20418 \end_inset
20419
20420  has limited support for math macros and no support for user-defined paragraph
20421  or character styles.
20422  These limitations make 
20423 \begin_inset Flex Code
20424 status collapsed
20425
20426 \begin_layout Plain Layout
20427 e\SpecialChar LyX
20428 er
20429 \end_layout
20430
20431 \end_inset
20432
20433  unsuitable for many of the documents \SpecialChar LyX
20434  users produce.
20435  In principle, of course, these problems could be solved, but the \SpecialChar LyX
20436  developers
20437  have decided to follow a different path and have made \SpecialChar LyX
20438  itself capable of
20439  writing XHTML, just as it is capable of writing \SpecialChar LaTeX
20440 , DocBook, and plaintext.
20441 \end_layout
20442
20443 \begin_layout Standard
20444 As of this writing, XHTML output remains under development and should probably
20445  be regarded as 
20446 \begin_inset Quotes eld
20447 \end_inset
20448
20449 experimental
20450 \begin_inset Quotes erd
20451 \end_inset
20452
20453 .
20454 \begin_inset Foot
20455 status collapsed
20456
20457 \begin_layout Plain Layout
20458 The file 
20459 \begin_inset Flex Code
20460 status collapsed
20461
20462 \begin_layout Plain Layout
20463 development/HTML/HTML.notes
20464 \end_layout
20465
20466 \end_inset
20467
20468 , which can be found in the \SpecialChar LyX
20469  source tree or 
20470 \begin_inset CommandInset href
20471 LatexCommand href
20472 name "accessed online"
20473 target "https://www.lyx.org/trac/browser/lyxgit/development/HTML/HTML.notes?rev=master"
20474 literal "false"
20475
20476 \end_inset
20477
20478 , usually contains up-to-date information about the state of XHTML output.
20479  See also the list of XHTML bugs on 
20480 \begin_inset CommandInset href
20481 LatexCommand href
20482 name "the bug tracker"
20483 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"
20484 literal "false"
20485
20486 \end_inset
20487
20488 .
20489 \end_layout
20490
20491 \end_inset
20492
20493  Still, the developers have chosen this approach because it has several
20494  potential advantages over the other two.
20495 \end_layout
20496
20497 \begin_layout Standard
20498 These advantages are primarily due to the fact that the XHTML output routines,
20499  since they are part of \SpecialChar LyX
20500 , know everything \SpecialChar LyX
20501  knows about the document being
20502  exported.
20503 \begin_inset Foot
20504 status collapsed
20505
20506 \begin_layout Plain Layout
20507 Another advantage is that, since these routines are internal to \SpecialChar LyX
20508 , they are
20509  immune to changes in \SpecialChar LyX
20510 's file format, or to changes in the semantics of
20511  existing insets.
20512 \end_layout
20513
20514 \end_inset
20515
20516  So they know about the table of contents (as displayed in the outline),
20517  about the counters associated with different paragraph styles, and about
20518  user-defined styles.
20519  The XHTML output routines know what \SpecialChar LyX
20520  knows about internationalization,
20521  too, so they will output 
20522 \begin_inset Quotes eld
20523 \end_inset
20524
20525 Chapter 1
20526 \begin_inset Quotes erd
20527 \end_inset
20528
20529  or 
20530 \begin_inset Quotes eld
20531 \end_inset
20532
20533
20534 \lang ngerman
20535 Kapitel
20536 \lang english
20537  1
20538 \begin_inset Quotes erd
20539 \end_inset
20540
20541 , depending upon the language in effect at the time.
20542  
20543 \end_layout
20544
20545 \begin_layout Standard
20546 Quite generally, the output routines know what \SpecialChar LyX
20547  knows about document layout,
20548  that is, about how the document is to be rendered on screen.
20549  We use this information when we output the document as XHTML.
20550  In particular, \SpecialChar LyX
20551  
20552 \emph on
20553 automatically
20554 \emph default
20555  generates CSS style information corresponding to the layout information
20556  it uses to render the document on screen: if section headings are supposed
20557  to be sans-serif and bold as seen in \SpecialChar LyX
20558 , then (by default) they will be sans-seri
20559 f and bold when viewed in a web browser, too.
20560  And this is true not just for pre-defined styles, like Section, but for
20561  any style, including user-defined styles.
20562  Indeed, the XHTML output routines make no distinction between user-defined
20563  paragraph and 
20564 \change_deleted 244031559 1603876931
20565 character
20566 \change_inserted 244031559 1603876940
20567 text
20568 \change_unchanged
20569  styles and \SpecialChar LyX
20570 's own pre-defined styles: in each case, everything \SpecialChar LyX
20571  knows about
20572  the styles is contained in the layout files.
20573  And much the same is true as regards pre-defined textual insets, such as
20574  footnotes, and various custom insets.
20575  
20576 \end_layout
20577
20578 \begin_layout Standard
20579 The result is that XHTML output can be customized and extended in exactly
20580  the same way \SpecialChar LaTeX
20581  output can be customized and extended: through layout files
20582  and modules.
20583  See chapter five of the 
20584 \emph on
20585 Customization 
20586 \emph default
20587 manual for the details.
20588 \end_layout
20589
20590 \begin_layout Standard
20591 The remainder of this chapter contains more detailed information on XHTML
20592  output, its limitations, and ways to work around those limitations.
20593 \end_layout
20594
20595 \begin_layout Section
20596 Math Output in XHTML
20597 \end_layout
20598
20599 \begin_layout Standard
20600 \SpecialChar LyX
20601  offers four choices for how math is rendered.
20602  These have various advantages and disadvantages:
20603 \end_layout
20604
20605 \begin_layout Itemize
20606 MathML
20607 \begin_inset Newline newline
20608 \end_inset
20609
20610 MathML is a dialect of XML designed specifically for mathematics on the
20611  web, and it typically renders very well in browsers that support it.
20612  The disadvantage is that not all browsers support MathML, and support is
20613  not complete even in the Gecko-based browsers, such as Firefox.
20614 \begin_inset Newline newline
20615 \end_inset
20616
20617 If \SpecialChar LyX
20618  is unable to render a formula as MathML—for example, if the formula
20619  uses the 
20620 \begin_inset Flex Code
20621 status collapsed
20622
20623 \begin_layout Plain Layout
20624 xymatrix
20625 \end_layout
20626
20627 \end_inset
20628
20629  package or ERT—then it will instead output the formula as an image.
20630  
20631 \end_layout
20632
20633 \begin_layout Itemize
20634 HTML
20635 \begin_inset Newline newline
20636 \end_inset
20637
20638 As mentioned above, 
20639 \begin_inset Flex Code
20640 status collapsed
20641
20642 \begin_layout Plain Layout
20643 elyxer
20644 \end_layout
20645
20646 \end_inset
20647
20648  outputs math as HTML, styled by CSS.
20649 \begin_inset Foot
20650 status collapsed
20651
20652 \begin_layout Plain Layout
20653 \SpecialChar LyX
20654  has borrowed some of the CSS for its HTML output from 
20655 \begin_inset Flex Code
20656 status collapsed
20657
20658 \begin_layout Plain Layout
20659 elyxer
20660 \end_layout
20661
20662 \end_inset
20663
20664 .
20665 \end_layout
20666
20667 \end_inset
20668
20669  For simple formulae, this can work quite well, though with more complicated
20670  formulae it tends to break down.
20671  Still, this method has the advantage that it is very widely supported and
20672  so it may be appropriate for documents that contain only a little, fairly
20673  simple math.
20674 \begin_inset Newline newline
20675 \end_inset
20676
20677 If Lyx is unable to render a formula as HTML—for example, if the formula
20678  uses the 
20679 \begin_inset Flex Code
20680 status collapsed
20681
20682 \begin_layout Plain Layout
20683 xymatrix
20684 \end_layout
20685
20686 \end_inset
20687
20688  package or ERT—then it will instead output the formula as an image.
20689  
20690 \end_layout
20691
20692 \begin_layout Itemize
20693 Images
20694 \begin_inset Newline newline
20695 \end_inset
20696
20697 Like 
20698 \begin_inset Flex Code
20699 status collapsed
20700
20701 \begin_layout Plain Layout
20702 htlatex
20703 \end_layout
20704
20705 \end_inset
20706
20707 , \SpecialChar LyX
20708  will output formulae as images, the very same images, in fact, that are
20709  used for instant preview.
20710 \begin_inset Foot
20711 status collapsed
20712
20713 \begin_layout Plain Layout
20714 Instant preview does 
20715 \emph on
20716 not 
20717 \emph default
20718 have to be on for images to be output, however.
20719 \end_layout
20720
20721 \end_inset
20722
20723  The advantage to this method is that the images are simply generated by
20724  \SpecialChar LaTeX
20725 , so they are very accurate.
20726  The disadvantage, as mentioned earlier, is that these are bitmapped images,
20727  so they do not scale terribly well, and one cannot copy them, etc.
20728 \begin_inset Newline newline
20729 \end_inset
20730
20731 The size of the images can be controlled by setting the 
20732 \begin_inset Quotes eld
20733 \end_inset
20734
20735 Math Images Scaling
20736 \begin_inset Quotes erd
20737 \end_inset
20738
20739  parameter under 
20740 \begin_inset Flex Noun
20741 status collapsed
20742
20743 \begin_layout Plain Layout
20744 Document\SpecialChar menuseparator
20745 Settings\SpecialChar menuseparator
20746 Formats
20747 \end_layout
20748
20749 \end_inset
20750
20751 .
20752 \begin_inset Foot
20753 status collapsed
20754
20755 \begin_layout Plain Layout
20756 For those who want to know, this controls the resolution of the image in
20757  dots per inch and is based upon a default of 75 dpi.
20758 \end_layout
20759
20760 \end_inset
20761
20762
20763 \begin_inset Newline newline
20764 \end_inset
20765
20766 If \SpecialChar LyX
20767  for some reason fails to create an image for a formula (e.g., if a required
20768  \SpecialChar LaTeX
20769  package is not installed), then it will fall back to outputing the raw
20770  \SpecialChar LaTeX
20771 .
20772 \end_layout
20773
20774 \begin_layout Itemize
20775 \SpecialChar LaTeX
20776
20777 \begin_inset Newline newline
20778 \end_inset
20779
20780 Finally, \SpecialChar LyX
20781  will happily output math as \SpecialChar LaTeX
20782 .
20783  As well as being the output of last resort, this method can be used with
20784  such tools as 
20785 \begin_inset CommandInset href
20786 LatexCommand href
20787 name "jsMath"
20788 target "http://www.math.union.edu/~dpvc/jsMath/"
20789 literal "false"
20790
20791 \end_inset
20792
20793 , which uses JavaScript to render \SpecialChar LaTeX
20794  embedded in HTML documents.
20795  \SpecialChar LyX
20796  wraps the \SpecialChar LaTeX
20797  in either a 
20798 \begin_inset Flex Code
20799 status collapsed
20800
20801 \begin_layout Plain Layout
20802 span
20803 \end_layout
20804
20805 \end_inset
20806
20807  (for inline formulas) or 
20808 \begin_inset Flex Code
20809 status collapsed
20810
20811 \begin_layout Plain Layout
20812 div
20813 \end_layout
20814
20815 \end_inset
20816
20817  (for displayed formulas) with 
20818 \begin_inset Flex Code
20819 status collapsed
20820
20821 \begin_layout Plain Layout
20822 class='math'
20823 \end_layout
20824
20825 \end_inset
20826
20827 , as is required for jsMath.
20828 \end_layout
20829
20830 \begin_layout Standard
20831 One of these output methods must be selected under 
20832 \begin_inset Flex Noun
20833 status collapsed
20834
20835 \begin_layout Plain Layout
20836 Document\SpecialChar menuseparator
20837 Settings\SpecialChar menuseparator
20838 Formats
20839 \end_layout
20840
20841 \end_inset
20842
20843 .
20844  By default, \SpecialChar LyX
20845  outputs MathML.
20846  This is a document-wide setting, therefore.
20847 \end_layout
20848
20849 \begin_layout Standard
20850 Eventually, \SpecialChar LyX
20851  will offer the user the option to select an alternate output
20852  method for a particular inset, say, one that isn't being rendered very
20853  well by MathML.
20854 \begin_inset Foot
20855 status collapsed
20856
20857 \begin_layout Plain Layout
20858 That said, since \SpecialChar LyX
20859  falls back to images if the inset contains ERT, then one
20860  can force output as an image by putting some harmless ERT into the math,
20861  for example: 
20862 \begin_inset Formula $a=b\relax$
20863 \end_inset
20864
20865 .
20866 \end_layout
20867
20868 \end_inset
20869
20870
20871 \end_layout
20872
20873 \begin_layout Section
20874 Bibliography and Citations
20875 \end_layout
20876
20877 \begin_layout Standard
20878 XHTML output fully supports bibliographies and citations.
20879  
20880 \end_layout
20881
20882 \begin_layout Standard
20883 Citation labels are generated by the same machinery that generates \SpecialChar LyX
20884 's on-screen
20885  labels, so the labels will look in the output much as they do in \SpecialChar LyX
20886 , though
20887  better.
20888  If you are using numerical citations, then \SpecialChar LyX
20889  will output numerical labels,
20890  such as [1] or [17], rather than simply showing the citation key in square
20891  brackets, as it does on-screen.
20892  If you are using author-year citations, then \SpecialChar LyX
20893  will add lowercase letters
20894  to the years, just as Bib\SpecialChar TeX
20895  does, if it finds more than one citation for
20896  a given author-year combination.
20897  The labels will be printed with the bibliography entries.
20898  Note that there is, at present, no way to customize the appearance of the
20899  labels, for example, to choose between square brackets and parentheses.
20900 \end_layout
20901
20902 \begin_layout Standard
20903 Bibliography output is handled by the same machinery that handles the presentati
20904 on of reference information in the citation dialog, so you will see in the
20905  XHTML output pretty much what you would see if you were to look at a given
20906  entry in the citation dialog.
20907  The formatting can be customized in your layout file or, preferably, in
20908  a module.
20909  See the 
20910 \emph on
20911 Customization
20912 \emph default
20913  manual for the details.
20914 \end_layout
20915
20916 \begin_layout Standard
20917 The main defect at present is that cross-referenced information is printed
20918  with every entry with which it is associated.
20919  So you can see things like this:
20920 \end_layout
20921
20922 \begin_layout Quote
20923 Jason Stanley, 
20924 \begin_inset Quotes eld
20925 \end_inset
20926
20927 Context and Logical Form
20928 \begin_inset Quotes erd
20929 \end_inset
20930
20931 , in 
20932 \emph on
20933 Language in Context: Selected Essays
20934 \emph default
20935  (Oxford: Oxford University Press, 2007), pp.
20936  30–68.
20937 \end_layout
20938
20939 \begin_layout Quote
20940 Jason Stanley, 
20941 \begin_inset Quotes eld
20942 \end_inset
20943
20944 Semantics in Context
20945 \begin_inset Quotes erd
20946 \end_inset
20947
20948 , in 
20949 \emph on
20950 Language in Context: Selected Essays
20951 \emph default
20952  (Oxford: Oxford University Press, 2007), pp.
20953  201–30.
20954 \end_layout
20955
20956 \begin_layout Standard
20957 This should be fixed before long.
20958 \end_layout
20959
20960 \begin_layout Standard
20961 There is no support at present for sectioned bibliographies.
20962  If you have multiple bibliographies, then \SpecialChar LyX
20963  will print the same bibliography
20964  over and over.
20965 \end_layout
20966
20967 \begin_layout Section
20968 Indexes
20969 \end_layout
20970
20971 \begin_layout Standard
20972 \SpecialChar LyX
20973  will happily export indexes as XHTML, but with certain limitations at the
20974  moment.
20975 \end_layout
20976
20977 \begin_layout Standard
20978 Index export will be most reliable when you do not attempt to use the fancy
20979  constructs that are described in the section on indexes in the 
20980 \emph on
20981 User's Guide
20982 \emph default
20983 .
20984 \begin_inset Foot
20985 status collapsed
20986
20987 \begin_layout Plain Layout
20988 The main issue here is that \SpecialChar LyX
20989  itself does not really handle these.
20990  It just lets you enter what you would have to enter in raw \SpecialChar LaTeX
20991 .
20992 \end_layout
20993
20994 \end_inset
20995
20996  We'll describe how they are handled using the subsection headings from
20997  that section.
20998 \end_layout
20999
21000 \begin_layout Itemize
21001 Grouping Index Entries (aka, sub-entries): \SpecialChar LyX
21002  makes an effort to support these,
21003  but the entries must be separated by 
21004 \begin_inset Quotes eld
21005 \end_inset
21006
21007  ! 
21008 \begin_inset Quotes erd
21009 \end_inset
21010
21011 , that is, there must be spaces around the exclamation point.
21012  This is because it is otherwise too difficult to check for escaped exclamation
21013  points, ones in math, and so forth.
21014 \end_layout
21015
21016 \begin_layout Itemize
21017 Page Ranges: There is no support at all for page ranges, since these make
21018  no sense with XHMTL.
21019  Instead, you will just get two index entries, one at either end.
21020 \end_layout
21021
21022 \begin_layout Itemize
21023 Cross-referencing: There is no support for cross-referencing.
21024  If \SpecialChar LyX
21025  finds an entry containing the 
21026 \begin_inset Quotes eld
21027 \end_inset
21028
21029 |see\SpecialChar ldots
21030
21031 \begin_inset Quotes erd
21032 \end_inset
21033
21034  construct, it is just dropped, and the rest is treated as an ordinary index
21035  entry.
21036 \end_layout
21037
21038 \begin_layout Itemize
21039 Index Entry Order: \SpecialChar LyX
21040  does support attempts to fix the sorting order.
21041  It will take what is before the first `@' it finds and use that for sorting,
21042  taking what follows the first `@' to be the actual entry.
21043  At present, \SpecialChar LyX
21044  does not check for escaped `@', so do not try to index email
21045  addresses.
21046 \end_layout
21047
21048 \begin_layout Itemize
21049 Index Entry Layout: You can format entries by using the text style dialog,
21050  or by using any other method available within \SpecialChar LyX
21051  itself.
21052  There is no support for constructs like: 
21053 \begin_inset Quotes eld
21054 \end_inset
21055
21056 entry|textbf
21057 \begin_inset Quotes erd
21058 \end_inset
21059
21060 .
21061  Indeed, if \SpecialChar LyX
21062  finds a pipe symbol, `|', in an entry, it will delete it and
21063  everything that follows it.
21064 \end_layout
21065
21066 \begin_layout Itemize
21067 Multiple Indexes: There is no support for multiple indexes.
21068  Rather, all index entries will be printed as one large index.
21069  To avoid our printing several versions of the index, we print only the
21070  main index, so make sure you have one.
21071 \end_layout
21072
21073 \begin_layout Section
21074 Nomenclature and Glossary
21075 \end_layout
21076
21077 \begin_layout Standard
21078 There is at present no support for glossaries.
21079  Adding it would be fairly trivial, and welcome.
21080 \end_layout
21081
21082 \begin_layout Chapter
21083
21084 \change_inserted 1075283030 1616534180
21085 DocBook Output
21086 \end_layout
21087
21088 \begin_layout Standard
21089
21090 \change_inserted 1075283030 1616534386
21091 Apart from HTML, \SpecialChar LyX
21092  can generate documents in the DocBook XML vocabulary.
21093  With versions 2.3 and before, only select templates could be used to generate
21094  DocBook documents (only version 4).
21095  Starting with \SpecialChar LyX
21096  2.4, most \SpecialChar LyX
21097  layouts can generate valid DocBook documents (only
21098  version 5).
21099  This feature is built into \SpecialChar LyX
21100  and does not require the use of external tools.
21101 \end_layout
21102
21103 \begin_layout Standard
21104
21105 \change_inserted 1075283030 1616534437
21106 The result is that the DocBook output can be customized and extended in
21107  exactly the same way \SpecialChar LaTeX
21108  output can be customized and extended: through layout
21109  files and modules.
21110  See chapter five of the 
21111 \emph on
21112 Customization 
21113 \emph default
21114 manual for the details.
21115 \end_layout
21116
21117 \begin_layout Standard
21118
21119 \change_inserted 1075283030 1616534475
21120 Most \SpecialChar LyX
21121  features are supported with DocBook, like math output.
21122 \end_layout
21123
21124 \begin_layout Itemize
21125
21126 \change_inserted 1075283030 1616534741
21127 Math output is performed mostly in MathML (the major exception being constructio
21128 ns not supported by \SpecialChar LyX
21129 , i.e.
21130  ERTs).
21131  All formulae are also available in raw \SpecialChar TeX
21132  in the DocBook output for further
21133  processing.
21134 \end_layout
21135
21136 \begin_layout Itemize
21137
21138 \change_inserted 1075283030 1616534852
21139 Bibliographies and citations are implemented, including with an external
21140  BibTeX file.
21141  Bibliography entries are not prerendered when the detailed information
21142  are available, but rather output with the standard DocBook constructs.
21143  The external DocBook processor is expected to handle the rendering of entries.
21144 \end_layout
21145
21146 \begin_layout Itemize
21147
21148 \change_inserted 1075283030 1616534863
21149 Indexes are supported, including multiple indices.
21150  Grouping (with 
21151 \family typewriter
21152 !
21153 \family default
21154 ), page ranges, and cross-references (
21155 \family typewriter
21156 |see
21157 \family default
21158 ) are supported, with the exception of the same symbols escaped.
21159  Entry order (
21160 \family typewriter
21161 @
21162 \family default
21163 ) and layout (
21164 \family typewriter
21165 |mathbf
21166 \family default
21167 ) are not supported.
21168  There is no support for escaping of index entries.
21169 \end_layout
21170
21171 \begin_layout Itemize
21172
21173 \change_inserted 1075283030 1616534884
21174 Glossaries are implemented.
21175 \end_layout
21176
21177 \begin_layout Standard
21178
21179 \change_inserted 1075283030 1616534894
21180 Two major parameters can be set at the document level.
21181 \end_layout
21182
21183 \begin_layout Itemize
21184
21185 \change_inserted 1075283030 1616534948
21186 Format for tables: \SpecialChar LyX
21187  can generate tables either as HTML (default value) or
21188  CALS, depending on the user's requirements.
21189  Most DocBook processors accept both formats.
21190 \end_layout
21191
21192 \begin_layout Itemize
21193
21194 \change_inserted 1075283030 1616535006
21195 MathML prefix: in DocBook, MathML is included within its own name space,
21196  unlike HTML.
21197  The implication is that there must be an indication of the tags belonging
21198  to the MathML standard.
21199  Three choices are offered: 
21200 \end_layout
21201
21202 \begin_deeper
21203 \begin_layout Itemize
21204
21205 \change_inserted 1075283030 1616535044
21206 Inline: the MathML name space is defined for each formula (using the 
21207 \family typewriter
21208 xmlns
21209 \family default
21210  attribute on each formula)
21211 \end_layout
21212
21213 \begin_layout Itemize
21214
21215 \change_inserted 1075283030 1616535090
21216 With the 
21217 \family typewriter
21218 m
21219 \family default
21220  prefix (default): the MathML name space is defined at the document level
21221  (using the 
21222 \family typewriter
21223 xmlns:m
21224 \family default
21225  attribute on the root element).
21226  Each MathML is prefixed with 
21227 \family typewriter
21228 m
21229 \family default
21230 : for instance, 
21231 \family typewriter
21232 m:math
21233 \end_layout
21234
21235 \begin_layout Itemize
21236
21237 \change_inserted 1075283030 1616620405
21238 With the 
21239 \family typewriter
21240 mml
21241 \family default
21242  prefix: similar to the 
21243 \family typewriter
21244 m
21245 \family default
21246  option, but with 
21247 \family typewriter
21248 mml
21249 \end_layout
21250
21251 \begin_layout Standard
21252
21253 \change_inserted 1075283030 1616620470
21254 This option is especially useful if you want \SpecialChar LyX
21255  to match your personal style
21256  or to work with buggy software that only accepts one prefix for MathML.
21257 \change_unchanged
21258
21259 \end_layout
21260
21261 \end_deeper
21262 \begin_layout Chapter
21263 The \SpecialChar LyX
21264  Server
21265 \end_layout
21266
21267 \begin_layout Section
21268 Introduction
21269 \end_layout
21270
21271 \begin_layout Standard
21272 The `\SpecialChar LyX
21273  server' allows other programs to talk to \SpecialChar LyX
21274 , invoke \SpecialChar LyX
21275  commands, and retrieve
21276  information about the \SpecialChar LyX
21277  internal state.
21278  This is only intended for advanced users, but they should find it useful.
21279  It is by writing to the \SpecialChar LyX
21280  server, for example, that bibliography managers,
21281  such as JabRef, are able to 
21282 \begin_inset Quotes eld
21283 \end_inset
21284
21285 push
21286 \begin_inset Quotes erd
21287 \end_inset
21288
21289  citations to \SpecialChar LyX
21290 .
21291 \end_layout
21292
21293 \begin_layout Section
21294 Starting the \SpecialChar LyX
21295  Server
21296 \begin_inset CommandInset label
21297 LatexCommand label
21298 name "sec:Starting-the-Server"
21299
21300 \end_inset
21301
21302
21303 \end_layout
21304
21305 \begin_layout Standard
21306 The \SpecialChar LyX
21307  server works through the use of a pair of named pipes.
21308  These are usually located in 
21309 \begin_inset Flex Code
21310 status collapsed
21311
21312 \begin_layout Plain Layout
21313 UserDir
21314 \end_layout
21315
21316 \end_inset
21317
21318 , (except on Windows, where 
21319 \emph on
21320 local
21321 \emph default
21322  named pipes are special objects located in 
21323 \begin_inset Flex Code
21324 status collapsed
21325
21326 \begin_layout Plain Layout
21327
21328 \backslash
21329
21330 \backslash
21331 .
21332 \backslash
21333 pipe
21334 \end_layout
21335
21336 \end_inset
21337
21338 ) and have the names 
21339 \begin_inset Quotes eld
21340 \end_inset
21341
21342
21343 \begin_inset Flex Code
21344 status collapsed
21345
21346 \begin_layout Plain Layout
21347 lyxpipe.in
21348 \end_layout
21349
21350 \end_inset
21351
21352
21353 \begin_inset Quotes erd
21354 \end_inset
21355
21356  and 
21357 \begin_inset Quotes eld
21358 \end_inset
21359
21360
21361 \begin_inset Flex Code
21362 status collapsed
21363
21364 \begin_layout Plain Layout
21365 lyxpipe.out
21366 \end_layout
21367
21368 \end_inset
21369
21370
21371 \begin_inset Quotes erd
21372 \end_inset
21373
21374 .
21375  External programs write into 
21376 \begin_inset Flex Code
21377 status collapsed
21378
21379 \begin_layout Plain Layout
21380 lyxpipe.in
21381 \end_layout
21382
21383 \end_inset
21384
21385  and read back data from 
21386 \begin_inset Flex Code
21387 status collapsed
21388
21389 \begin_layout Plain Layout
21390 lyxpipe.out
21391 \end_layout
21392
21393 \end_inset
21394
21395 .
21396  The stem of the pipe names can be defined in the 
21397 \begin_inset Flex Noun
21398 status collapsed
21399
21400 \begin_layout Plain Layout
21401 Tools\SpecialChar menuseparator
21402 Preferences
21403 \end_layout
21404
21405 \end_inset
21406
21407  dialog, for example 
21408 \begin_inset Flex Code
21409 status collapsed
21410
21411 \begin_layout Plain Layout
21412 "/home/myhome/lyxpipe"
21413 \end_layout
21414
21415 \end_inset
21416
21417 , or 
21418 \begin_inset Flex Code
21419 status collapsed
21420
21421 \begin_layout Plain Layout
21422 "
21423 \backslash
21424
21425 \backslash
21426 .
21427 \backslash
21428 pipe
21429 \backslash
21430 lyxpipe"
21431 \end_layout
21432
21433 \end_inset
21434
21435  on Windows (where any working path instead of lyxpipe can be used, for
21436  example 
21437 \begin_inset Flex Code
21438 status collapsed
21439
21440 \begin_layout Plain Layout
21441 "
21442 \backslash
21443
21444 \backslash
21445 .
21446 \backslash
21447 pipe
21448 \backslash
21449 my
21450 \backslash
21451 lyx
21452 \backslash
21453 pipe"
21454 \end_layout
21455
21456 \end_inset
21457
21458  would also work).
21459  You 
21460 \emph on
21461 must
21462 \emph default
21463  configure this manually in order for the server to start.
21464 \end_layout
21465
21466 \begin_layout Standard
21467 \SpecialChar LyX
21468  will add the '
21469 \begin_inset Flex Code
21470 status collapsed
21471
21472 \begin_layout Plain Layout
21473 .in
21474 \end_layout
21475
21476 \end_inset
21477
21478 ' and '
21479 \begin_inset Flex Code
21480 status collapsed
21481
21482 \begin_layout Plain Layout
21483 .out
21484 \end_layout
21485
21486 \end_inset
21487
21488 ' to create the pipes.
21489  If one of the pipes already exists, \SpecialChar LyX
21490  will assume that another \SpecialChar LyX
21491  process
21492  is already running and will not start the server.
21493  On POSIX (Unix like) systems, if for some other reason, an unused 
21494 \begin_inset Quotes eld
21495 \end_inset
21496
21497 stale
21498 \begin_inset Quotes erd
21499 \end_inset
21500
21501  pipe is left in existence when \SpecialChar LyX
21502  closes, then \SpecialChar LyX
21503  will try to delete it.
21504  If this fails for some reason, you will need to delete the pipes manually
21505  and then restart \SpecialChar LyX
21506 .
21507  On Windows, pipes are deleted by the OS on program termination or crash,
21508  so 
21509 \begin_inset Quotes eld
21510 \end_inset
21511
21512 stale
21513 \begin_inset Quotes erd
21514 \end_inset
21515
21516  pipes should not be possible.
21517 \end_layout
21518
21519 \begin_layout Standard
21520 To have several \SpecialChar LyX
21521  processes with servers at the same time, you have to use
21522  different configurations, perhaps by using separate user directories, each
21523  with its own 
21524 \begin_inset Flex Code
21525 status collapsed
21526
21527 \begin_layout Plain Layout
21528 preferences
21529 \end_layout
21530
21531 \end_inset
21532
21533  file, for each process.
21534 \end_layout
21535
21536 \begin_layout Standard
21537 If you are developing a client program, you might find it useful to enable
21538  debugging information from the \SpecialChar LyX
21539  server.
21540  Do this by starting \SpecialChar LyX
21541  as 
21542 \begin_inset Flex Code
21543 status collapsed
21544
21545 \begin_layout Plain Layout
21546 lyx -dbg lyxserver
21547 \end_layout
21548
21549 \end_inset
21550
21551 .
21552 \end_layout
21553
21554 \begin_layout Standard
21555 You can find a complete example client written in C++ in the source distribution
21556  as 
21557 \begin_inset Flex Code
21558 status collapsed
21559
21560 \begin_layout Plain Layout
21561 development/lyxserver/server_monitor.cpp
21562 \end_layout
21563
21564 \end_inset
21565
21566 .
21567 \end_layout
21568
21569 \begin_layout Standard
21570 Another useful tool is the command-line based client found in 
21571 \begin_inset Flex Code
21572 status collapsed
21573
21574 \begin_layout Plain Layout
21575 src/client/lyxclient
21576 \end_layout
21577
21578 \end_inset
21579
21580 .
21581 \end_layout
21582
21583 \begin_layout Section
21584 Normal communication
21585 \end_layout
21586
21587 \begin_layout Standard
21588 To issue a \SpecialChar LyX
21589  call, the client writes a line of ASCII text into the input
21590  pipe.
21591  This line has the following format:
21592 \end_layout
21593
21594 \begin_layout Quote
21595 LYXCMD:
21596 \emph on
21597 clientname
21598 \emph default
21599 :
21600 \emph on
21601 function
21602 \emph default
21603 :
21604 \emph on
21605 argument
21606 \end_layout
21607
21608 \begin_layout Description
21609 clientname is a name that the client can choose arbitrarily.
21610  Its only use is that \SpecialChar LyX
21611  will echo it if it sends an answer—so a client can
21612  dispatch results from different requesters.
21613 \end_layout
21614
21615 \begin_layout Description
21616 function is the function you want \SpecialChar LyX
21617  to perform.
21618  It is the same as the commands you'd use in the minibuffer.
21619 \end_layout
21620
21621 \begin_layout Description
21622 argument is an optional argument which is meaningful only to some functions
21623  (for instance, the 
21624 \begin_inset Quotes eld
21625 \end_inset
21626
21627 self-insert
21628 \begin_inset Quotes erd
21629 \end_inset
21630
21631  LFUN will insert the argument as text at the cursor position).
21632 \end_layout
21633
21634 \begin_layout Standard
21635 The answer from \SpecialChar LyX
21636  will arrive in the output pipe and be of the form
21637 \end_layout
21638
21639 \begin_layout Quote
21640 INFO:
21641 \emph on
21642 clientname
21643 \emph default
21644 :
21645 \emph on
21646 function
21647 \emph default
21648 :
21649 \emph on
21650 data
21651 \end_layout
21652
21653 \begin_layout Standard
21654 where 
21655 \emph on
21656 clientname
21657 \emph default
21658  and 
21659 \emph on
21660 function
21661 \emph default
21662  are just echoed from the command request, while 
21663 \emph on
21664 data
21665 \emph default
21666  is more or less useful information filled according to how the command
21667  execution worked out.
21668  Some commands, such as 
21669 \begin_inset Quotes eld
21670 \end_inset
21671
21672 font-state
21673 \begin_inset Quotes erd
21674 \end_inset
21675
21676 , will return information about the internal state of \SpecialChar LyX
21677 , while other will
21678  return an empty data-response.
21679  This means that the command execution went fine.
21680 \end_layout
21681
21682 \begin_layout Standard
21683 In case of errors, the response from \SpecialChar LyX
21684  will have this form
21685 \end_layout
21686
21687 \begin_layout Quote
21688 ERROR:
21689 \emph on
21690 clientname
21691 \emph default
21692 :
21693 \emph on
21694 function
21695 \emph default
21696 :
21697 \emph on
21698 error message
21699 \end_layout
21700
21701 \begin_layout Standard
21702 where the 
21703 \emph on
21704 error message
21705 \emph default
21706  should contain an explanation of why the command failed.
21707 \end_layout
21708
21709 \begin_layout Standard
21710 Examples:
21711 \end_layout
21712
21713 \begin_layout LyX-Code
21714 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
21715 \begin_inset Newline newline
21716 \end_inset
21717
21718 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
21719 \begin_inset Newline newline
21720 \end_inset
21721
21722 read a <~/.lyxpipe.out
21723 \begin_inset Newline newline
21724 \end_inset
21725
21726 echo $a
21727 \end_layout
21728
21729 \begin_layout Subsection
21730 AppleScript (Mac OS X)
21731 \end_layout
21732
21733 \begin_layout Standard
21734 Since \SpecialChar LyX
21735  2.1, \SpecialChar LyX
21736  supports basic interactions with AppleScript for normal communicatio
21737 n through the command run.
21738  This command takes a direct argument (the 
21739 \series bold
21740 function
21741 \series default
21742  to perform) and an optional argument.
21743  It either returns the output of the function or triggers an error with
21744  the error message and code.
21745 \end_layout
21746
21747 \begin_layout Standard
21748 Example:
21749 \end_layout
21750
21751 \begin_layout LyX-Code
21752 tell application "\SpecialChar LyX
21753 "
21754 \end_layout
21755
21756 \begin_layout LyX-Code
21757   try
21758 \end_layout
21759
21760 \begin_layout LyX-Code
21761     -- Stores the current file name into f
21762 \end_layout
21763
21764 \begin_layout LyX-Code
21765     set f to (run "server-get-filename" with argument "")
21766 \end_layout
21767
21768 \begin_layout LyX-Code
21769     on error the error_message number the error_number
21770 \end_layout
21771
21772 \begin_layout LyX-Code
21773       display dialog "Error: " & the error_number & ".
21774  " ¬
21775 \end_layout
21776
21777 \begin_layout LyX-Code
21778               & the error_message buttons {"OK"} default button 1
21779 \end_layout
21780
21781 \begin_layout LyX-Code
21782   end try
21783 \end_layout
21784
21785 \begin_layout LyX-Code
21786 end tell
21787 \end_layout
21788
21789 \begin_layout Section
21790 Notification
21791 \end_layout
21792
21793 \begin_layout Standard
21794 \SpecialChar LyX
21795  can notify clients of events going on asynchronously.
21796  Currently it will only do this if the user binds a key sequence with the
21797  function 
21798 \begin_inset Quotes eld
21799 \end_inset
21800
21801 notify
21802 \begin_inset Quotes erd
21803 \end_inset
21804
21805 .
21806  The format of the string \SpecialChar LyX
21807  sends is as follows:
21808 \end_layout
21809
21810 \begin_layout Quote
21811 \begin_inset Flex Code
21812 status collapsed
21813
21814 \begin_layout Plain Layout
21815 NOTIFY:
21816 \end_layout
21817
21818 \end_inset
21819
21820
21821 \emph on
21822 key-sequence
21823 \end_layout
21824
21825 \begin_layout Standard
21826 where 
21827 \emph on
21828 key-sequence
21829 \emph default
21830  is the printed representation of the key sequence that was actually typed
21831  by the user.
21832 \end_layout
21833
21834 \begin_layout Standard
21835 This mechanism can be used to extend \SpecialChar LyX
21836 's command set and implement macros.
21837  Bind some key sequence to 
21838 \begin_inset Quotes eld
21839 \end_inset
21840
21841 notify
21842 \begin_inset Quotes erd
21843 \end_inset
21844
21845 .
21846  Then start a client that listens on the output pipe, dispatches the command
21847  according to the sequence, and starts a function that may use \SpecialChar LyX
21848  calls and
21849  \SpecialChar LyX
21850  requests to issue a command or a series of commands to \SpecialChar LyX
21851 .
21852 \end_layout
21853
21854 \begin_layout Section
21855 The simple \SpecialChar LyX
21856  Server Protocol
21857 \end_layout
21858
21859 \begin_layout Standard
21860 \SpecialChar LyX
21861  implements a simple protocol that can be used for session management.
21862  All messages are of the form
21863 \end_layout
21864
21865 \begin_layout Quote
21866 LYXSRV:
21867 \emph on
21868 clientname
21869 \emph default
21870 :
21871 \emph on
21872 protocol message
21873 \end_layout
21874
21875 \begin_layout Standard
21876 where 
21877 \emph on
21878 protocol message
21879 \emph default
21880  can be 
21881 \begin_inset Quotes eld
21882 \end_inset
21883
21884 hello
21885 \begin_inset Quotes erd
21886 \end_inset
21887
21888  or 
21889 \begin_inset Quotes eld
21890 \end_inset
21891
21892 bye
21893 \begin_inset Quotes erd
21894 \end_inset
21895
21896 .
21897  If 
21898 \begin_inset Quotes eld
21899 \end_inset
21900
21901 hello
21902 \begin_inset Quotes erd
21903 \end_inset
21904
21905  is received from a client, \SpecialChar LyX
21906  will report back to inform the client that
21907  it's listening to it's messages, while 
21908 \begin_inset Quotes eld
21909 \end_inset
21910
21911 bye
21912 \begin_inset Quotes erd
21913 \end_inset
21914
21915  sent from \SpecialChar LyX
21916  will inform clients that \SpecialChar LyX
21917  is closing.
21918 \end_layout
21919
21920 \begin_layout Section
21921 Reverse DVI/PDF search
21922 \end_layout
21923
21924 \begin_layout Standard
21925 Some DVI/PDF viewers
21926 \begin_inset Foot
21927 status collapsed
21928
21929 \begin_layout Plain Layout
21930 The following viewers offer the reverse PDF search feature: Okular on KDE/Linux,
21931  Qpdfview on Unix, Skim on Mac OSX and SumatraPDF on Windows.
21932 \end_layout
21933
21934 \end_inset
21935
21936  provide 
21937 \emph on
21938 reverse search
21939 \emph default
21940  facility (also called 
21941 \emph on
21942 inverse search
21943 \emph default
21944 ).
21945  This means that you can tell \SpecialChar LyX
21946  to put the cursor to a specific line in the
21947  document by clicking at the respective position in the DVI/PDF output.
21948  To achieve this, the viewer must be able to communicate with \SpecialChar LyX
21949 .
21950  This is done via the \SpecialChar LyX
21951  server either by using the named pipe (
21952 \emph on
21953 lyxpipe
21954 \emph default
21955 ), or the UNIX domain socket (
21956 \emph on
21957 lyxsocket
21958 \emph default
21959 ) that \SpecialChar LyX
21960  creates in its temporary directory (this is the way the 
21961 \begin_inset Flex Code
21962 status collapsed
21963
21964 \begin_layout Plain Layout
21965 lyxclient
21966 \end_layout
21967
21968 \end_inset
21969
21970  program communicates with \SpecialChar LyX
21971 ).
21972  In some cases, you need a helper script that mediates between the viewer
21973  and \SpecialChar LyX
21974 , in others, the viewer can communicate with \SpecialChar LyX
21975  directly.
21976  This depends on the selected viewer and on your operating system.
21977  The same applies to the way viewers need to be configured and the way the
21978  reverse search is actually performed.
21979  In what follows, we will thus describe how to setup reverse search for
21980  specific viewers.
21981  Before we turn to this, though, we will explain what needs to be done generally
21982  to enable reverse search in the DVI/PDF output.
21983 \end_layout
21984
21985 \begin_layout Subsection
21986 Automatic setup
21987 \begin_inset CommandInset label
21988 LatexCommand label
21989 name "subsec:rev-search"
21990
21991 \end_inset
21992
21993
21994 \end_layout
21995
21996 \begin_layout Standard
21997 In most cases \SpecialChar LyX
21998  will do the work for you by pressing the following button
21999  in the toolbar: 
22000 \begin_inset Info
22001 type  "icon"
22002 arg   "buffer-toggle-output-sync"
22003 \end_inset
22004
22005 .
22006  Alternatively, you can also enable the feature by checking 
22007 \family sans
22008 Synchronize with Output
22009 \family default
22010  in 
22011 \begin_inset Flex Noun
22012 status collapsed
22013
22014 \begin_layout Plain Layout
22015 Document\SpecialChar menuseparator
22016 Settings\SpecialChar menuseparator
22017 Formats
22018 \end_layout
22019
22020 \end_inset
22021
22022 .
22023  In such a case \SpecialChar LyX
22024  will automatically insert the necessary Sync\SpecialChar TeX
22025  macro (for
22026  PDF) or load the srcltx package (for DVI) respectively.
22027  This option can be easily reached also on 
22028 \begin_inset Flex Code
22029 status collapsed
22030
22031 \begin_layout Plain Layout
22032 View/Update
22033 \end_layout
22034
22035 \end_inset
22036
22037  Toolbar.
22038 \end_layout
22039
22040 \begin_layout Standard
22041 If you need a different setting, you can select or input a custom macro
22042  from the drop down box just below 
22043 \begin_inset Flex Noun
22044 status collapsed
22045
22046 \begin_layout Plain Layout
22047 Document\SpecialChar menuseparator
22048 Settings\SpecialChar menuseparator
22049 Output\SpecialChar menuseparator
22050 Synchronize with Output
22051 \end_layout
22052
22053 \end_inset
22054
22055 .
22056 \end_layout
22057
22058 \begin_layout Standard
22059 Note that the method 
22060 \begin_inset Flex Code
22061 status collapsed
22062
22063 \begin_layout Plain Layout
22064
22065 \backslash
22066 synctex=1
22067 \end_layout
22068
22069 \end_inset
22070
22071  enables gzip compression.
22072  If your viewer does not support it, you should instead use 
22073 \begin_inset Flex Code
22074 status collapsed
22075
22076 \begin_layout Plain Layout
22077
22078 \backslash
22079 synctex=-1
22080 \end_layout
22081
22082 \end_inset
22083
22084 .
22085 \end_layout
22086
22087 \begin_layout Standard
22088 Please also note that including the 
22089 \begin_inset Flex Code
22090 status collapsed
22091
22092 \begin_layout Plain Layout
22093 srcltx
22094 \end_layout
22095
22096 \end_inset
22097
22098  package or 
22099 \begin_inset Flex Code
22100 status collapsed
22101
22102 \begin_layout Plain Layout
22103 src-specials
22104 \end_layout
22105
22106 \end_inset
22107
22108  sometimes has an undesired impact on the typesetting.
22109  Thus, you should switch output synchronization off for the final typesetting
22110  if you use the 
22111 \begin_inset Flex Code
22112 status collapsed
22113
22114 \begin_layout Plain Layout
22115 srcltx
22116 \end_layout
22117
22118 \end_inset
22119
22120  package or 
22121 \begin_inset Flex Code
22122 status collapsed
22123
22124 \begin_layout Plain Layout
22125 src-specials
22126 \end_layout
22127
22128 \end_inset
22129
22130 .
22131  
22132 \end_layout
22133
22134 \begin_layout Standard
22135 In case you need some more special settings that are not covered by the
22136  automatic settings, read the next section about how to set up output synchroniz
22137 ation manually.
22138  If the automatic setup suits your needs, you can readily jump to section
22139 \begin_inset space ~
22140 \end_inset
22141
22142
22143 \begin_inset CommandInset ref
22144 LatexCommand ref
22145 reference "subsec:configuring-viewers"
22146
22147 \end_inset
22148
22149 , where the necessary configuration steps in your viewer – needed both with
22150  the automatic and the manual setup – are described.
22151 \end_layout
22152
22153 \begin_layout Subsection
22154 Manual setup
22155 \end_layout
22156
22157 \begin_layout Standard
22158 \SpecialChar LaTeX
22159  provides several different methods for reverse search.
22160  Some are built-in in the 
22161 \begin_inset Flex Code
22162 status collapsed
22163
22164 \begin_layout Plain Layout
22165 latex/pdflatex
22166 \end_layout
22167
22168 \end_inset
22169
22170  program, some are provided by external packages.
22171  Your choice depends on whether your \SpecialChar LaTeX
22172  distribution already provides a given
22173  method (the built-in methods are rather new) and whether your viewer can
22174  cope with it.
22175  The available methods are described in the following.
22176 \end_layout
22177
22178 \begin_layout Subsubsection*
22179 Built-in DVI-search via src-specials (DVI only) 
22180 \end_layout
22181
22182 \begin_layout Standard
22183 This method provides the DVI file with the necessary information for reverse
22184  search.
22185  It is available in \SpecialChar LaTeX
22186  since quite some time (any somewhat recent \SpecialChar LaTeX
22187  distribution
22188  should include it), and it works reliably.
22189  To enable it, change the 
22190 \begin_inset Flex Noun
22191 status collapsed
22192
22193 \begin_layout Plain Layout
22194 La
22195 \family sans
22196 TeX
22197 \family default
22198  (plain)->DVI
22199 \end_layout
22200
22201 \end_inset
22202
22203  or 
22204 \begin_inset Flex Noun
22205 status collapsed
22206
22207 \begin_layout Plain Layout
22208 La
22209 \family sans
22210 TeX
22211 \family default
22212  (plain)->DraftDVI
22213 \end_layout
22214
22215 \end_inset
22216
22217  converter in 
22218 \begin_inset Flex Noun
22219 status collapsed
22220
22221 \begin_layout Plain Layout
22222 Preferences\SpecialChar menuseparator
22223 File Handling\SpecialChar menuseparator
22224 Converters
22225 \end_layout
22226
22227 \end_inset
22228
22229  to 
22230 \begin_inset Flex Code
22231 status collapsed
22232
22233 \begin_layout Plain Layout
22234 latex -src-specials $$i
22235 \end_layout
22236
22237 \end_inset
22238
22239 .
22240  If this doesn't work, check if your \SpecialChar TeX
22241  engine needs different options (the
22242  syntax might differ in some distributions).
22243 \end_layout
22244
22245 \begin_layout Subsubsection*
22246 External Packages (PDFSync and scrltx) 
22247 \end_layout
22248
22249 \begin_layout Standard
22250 The packages 
22251 \emph on
22252 pdfsync
22253 \emph default
22254  and 
22255 \emph on
22256 scrltx
22257 \emph default
22258  provide reverse search facility for PDF output (via pdflatex) and DVI output,
22259  respectively.
22260  In order to enable it, load the packages in the \SpecialChar LyX
22261  preamble: 
22262 \end_layout
22263
22264 \begin_layout Itemize
22265 \begin_inset Flex Code
22266 status collapsed
22267
22268 \begin_layout Plain Layout
22269
22270 \backslash
22271 usepackage{pdfsync}
22272 \end_layout
22273
22274 \end_inset
22275
22276  for reverse PDF search,
22277 \end_layout
22278
22279 \begin_layout Itemize
22280 \begin_inset Flex Code
22281 status collapsed
22282
22283 \begin_layout Plain Layout
22284
22285 \backslash
22286 usepackage[active]{srcltx}
22287 \end_layout
22288
22289 \end_inset
22290
22291  for reverse DVI search.
22292 \end_layout
22293
22294 \begin_layout Standard
22295 If you want to be able to perform both DVI and PDF reverse searches, you
22296  can also insert in the preamble the following lines
22297 \end_layout
22298
22299 \begin_layout LyX-Code
22300
22301 \backslash
22302 usepackage{ifpdf}
22303 \begin_inset Newline newline
22304 \end_inset
22305
22306
22307 \backslash
22308 ifpdf
22309 \begin_inset Newline newline
22310 \end_inset
22311
22312   
22313 \backslash
22314 usepackage{pdfsync}
22315 \begin_inset Newline newline
22316 \end_inset
22317
22318
22319 \backslash
22320 else
22321 \begin_inset Newline newline
22322 \end_inset
22323
22324   
22325 \backslash
22326 usepackage[active]{srcltx}
22327 \begin_inset Newline newline
22328 \end_inset
22329
22330
22331 \backslash
22332 fi
22333 \end_layout
22334
22335 \begin_layout Standard
22336 This way, you can preview the file as either DVI or PDF (pdflatex) and the
22337  right package will be used.
22338 \end_layout
22339
22340 \begin_layout Standard
22341 Note that PDFSync might affect the output layout of your document.
22342  It is therefore advised to disable PDFsync for final documents.
22343 \end_layout
22344
22345 \begin_layout Subsubsection*
22346 Built-in reverse search via Sync\SpecialChar TeX
22347  (DVI and PDF) 
22348 \end_layout
22349
22350 \begin_layout Standard
22351 Recent versions of 
22352 \begin_inset Flex Code
22353 status collapsed
22354
22355 \begin_layout Plain Layout
22356 (pdf)latex
22357 \end_layout
22358
22359 \end_inset
22360
22361  have built-in support for both PDF and DVI reverse search.
22362  This so-called 
22363 \emph on
22364 Sync\SpecialChar TeX
22365
22366 \emph default
22367  facility is basically the result of the integration of the PDFSync package
22368  to the pdftex program and its merge with the 
22369 \emph on
22370 scr-specials
22371 \emph default
22372  approach.
22373  You need at least \SpecialChar TeX
22374 Live 2008 or a recent Mik\SpecialChar TeX
22375  distribution in order to use
22376  it.
22377 \begin_inset Foot
22378 status collapsed
22379
22380 \begin_layout Plain Layout
22381 For some reason, Mik\SpecialChar TeX
22382  does not understand/obey the command \SpecialChar LyX
22383  inserts into
22384  the preamble when you check the "Enable Forward/Reverse Search" button
22385  in the toolbar and does not generate the necessary info.
22386 \end_layout
22387
22388 \begin_layout Plain Layout
22389 The generation of the required info can be forced by changing the converter
22390  "\SpecialChar LaTeX
22391  (pdflatex) -> PDF (pdflatex)" in Preferences->File handling->Converters
22392  from the default "pdflatex $$i" to "pdflatex -synctex=1 $$i" (i.e., by adding
22393  the -synctex=1 switch).
22394 \end_layout
22395
22396 \end_inset
22397
22398  Also note that only a few PDF viewers (such as Okular and Qpdfview on Unix,
22399  Skim on the Mac, SumatraPDF on Windows; see the next section for details)
22400  already provide Sync\SpecialChar TeX
22401  support.
22402 \end_layout
22403
22404 \begin_layout Standard
22405 To enable Sync\SpecialChar TeX
22406  for DVI output, change the 
22407 \begin_inset Flex Noun
22408 status collapsed
22409
22410 \begin_layout Plain Layout
22411 La
22412 \family sans
22413 TeX
22414 \family default
22415  (plain) -> DVI
22416 \end_layout
22417
22418 \end_inset
22419
22420  or 
22421 \begin_inset Flex Noun
22422 status collapsed
22423
22424 \begin_layout Plain Layout
22425 La
22426 \family sans
22427 TeX
22428 \family default
22429  (plain) -> DraftDVI
22430 \end_layout
22431
22432 \end_inset
22433
22434  converter in 
22435 \begin_inset Flex Noun
22436 status collapsed
22437
22438 \begin_layout Plain Layout
22439 Preferences\SpecialChar menuseparator
22440 File Handling\SpecialChar menuseparator
22441 Converters
22442 \end_layout
22443
22444 \end_inset
22445
22446  to 
22447 \begin_inset Flex Code
22448 status collapsed
22449
22450 \begin_layout Plain Layout
22451 latex -synctex=1 $$i
22452 \end_layout
22453
22454 \end_inset
22455
22456 , and for PDF output, change the 
22457 \begin_inset Flex Noun
22458 status collapsed
22459
22460 \begin_layout Plain Layout
22461 La
22462 \family sans
22463 TeX
22464 \family default
22465  (pdflatex) -> PDF (pdflatex)
22466 \end_layout
22467
22468 \end_inset
22469
22470  converter to 
22471 \begin_inset Flex Code
22472 status collapsed
22473
22474 \begin_layout Plain Layout
22475 pdflatex -synctex=1 $$i
22476 \end_layout
22477
22478 \end_inset
22479
22480 .
22481  Should your viewer not be considered in the following description, or in
22482  case of missing success, please check the documentation of your viewer
22483  whether the viewer needs to be configured for the use with Sync\SpecialChar TeX
22484 .
22485 \begin_inset Foot
22486 status collapsed
22487
22488 \begin_layout Plain Layout
22489 Note that the option 
22490 \begin_inset Flex Code
22491 status collapsed
22492
22493 \begin_layout Plain Layout
22494 -synctex=1
22495 \end_layout
22496
22497 \end_inset
22498
22499  option enables gzip compression.
22500  If your viewer does not support it, you should instead use 
22501 \begin_inset Flex Code
22502 status collapsed
22503
22504 \begin_layout Plain Layout
22505 -synctex=-1
22506 \end_layout
22507
22508 \end_inset
22509
22510 .
22511 \end_layout
22512
22513 \end_inset
22514
22515
22516 \end_layout
22517
22518 \begin_layout Subsection
22519 Configuring and using specific viewers
22520 \begin_inset CommandInset label
22521 LatexCommand label
22522 name "subsec:configuring-viewers"
22523
22524 \end_inset
22525
22526
22527 \end_layout
22528
22529 \begin_layout Subsubsection*
22530 Xdvi (all platforms)
22531 \end_layout
22532
22533 \begin_layout Standard
22534 If you use 
22535 \begin_inset Flex Code
22536 status collapsed
22537
22538 \begin_layout Plain Layout
22539 xdvi
22540 \end_layout
22541
22542 \end_inset
22543
22544 , you don't need to do anything else for performing a reverse DVI search,
22545  as \SpecialChar LyX
22546  already provides the necessary hooks for automatically using the 
22547 \begin_inset Flex Code
22548 status collapsed
22549
22550 \begin_layout Plain Layout
22551 lyxclient
22552 \end_layout
22553
22554 \end_inset
22555
22556  program.
22557  Just setup your document as described above (reverse search is triggered
22558  by Ctrl-click or Alt-click on Mac OSX, respectively).
22559 \end_layout
22560
22561 \begin_layout Standard
22562 However, if for whatever reason you want to use the named pipe instead of
22563  the socket for communicating with \SpecialChar LyX
22564 , simply change the DVI viewer in 
22565 \begin_inset Flex Noun
22566 status collapsed
22567
22568 \begin_layout Plain Layout
22569 Preferences\SpecialChar menuseparator
22570 File Handling\SpecialChar menuseparator
22571 File formats
22572 \end_layout
22573
22574 \end_inset
22575
22576  to
22577 \begin_inset Foot
22578 status collapsed
22579
22580 \begin_layout Plain Layout
22581 On Mac OSX you have to use 
22582 \begin_inset Flex Code
22583 status collapsed
22584
22585 \begin_layout Plain Layout
22586 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
22587 \end_layout
22588
22589 \end_inset
22590
22591
22592 \end_layout
22593
22594 \end_inset
22595
22596  
22597 \begin_inset Flex Code
22598 status collapsed
22599
22600 \begin_layout Plain Layout
22601 xdvi -editor "lyxeditor.sh %f %l"
22602 \end_layout
22603
22604 \end_inset
22605
22606 , where 
22607 \begin_inset Flex Code
22608 status collapsed
22609
22610 \begin_layout Plain Layout
22611 lyxeditor.sh
22612 \end_layout
22613
22614 \end_inset
22615
22616  is a suitable script.
22617  For example, a minimal shell script is the following one:
22618 \end_layout
22619
22620 \begin_layout LyX-Code
22621 #!/bin/sh
22622 \begin_inset Newline newline
22623 \end_inset
22624
22625 LYXPIPE="/path/to/lyxpipe"
22626 \begin_inset Newline newline
22627 \end_inset
22628
22629 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
22630 \begin_inset Newline newline
22631 \end_inset
22632
22633 echo "$COMMAND" > "${LYXPIPE}".in || exit
22634 \begin_inset Newline newline
22635 \end_inset
22636
22637 read TMP < "${LYXPIPE}".out || exit
22638 \end_layout
22639
22640 \begin_layout Standard
22641 where 
22642 \begin_inset Flex Code
22643 status collapsed
22644
22645 \begin_layout Plain Layout
22646 /path/to/lyxpipe
22647 \end_layout
22648
22649 \end_inset
22650
22651  is the LyXServer pipe path specified in 
22652 \begin_inset Flex Noun
22653 status collapsed
22654
22655 \begin_layout Plain Layout
22656 Preferences\SpecialChar menuseparator
22657 Paths
22658 \end_layout
22659
22660 \end_inset
22661
22662 .
22663 \begin_inset Foot
22664 status collapsed
22665
22666 \begin_layout Plain Layout
22667 In the 
22668 \begin_inset Flex Code
22669 status collapsed
22670
22671 \begin_layout Plain Layout
22672 development/tools
22673 \end_layout
22674
22675 \end_inset
22676
22677  folder of a source distribution you can find a 
22678 \begin_inset Flex Code
22679 status collapsed
22680
22681 \begin_layout Plain Layout
22682 lyxeditor
22683 \end_layout
22684
22685 \end_inset
22686
22687  script which is able to locate the 
22688 \emph on
22689 lyxpipe
22690 \emph default
22691  based on your preferences.
22692 \end_layout
22693
22694 \end_inset
22695
22696
22697 \end_layout
22698
22699 \begin_layout Subsubsection*
22700 MacDviX (Mac OSX)
22701 \end_layout
22702
22703 \begin_layout Standard
22704 At the end of 
22705 \begin_inset Flex Code
22706 status collapsed
22707
22708 \begin_layout Plain Layout
22709 /Applications/MacDviX_Folder/calleditor.script
22710 \end_layout
22711
22712 \end_inset
22713
22714 , add the following lines:
22715 \end_layout
22716
22717 \begin_layout LyX-Code
22718 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
22719 \begin_inset Newline newline
22720 \end_inset
22721
22722 exit 1
22723 \end_layout
22724
22725 \begin_layout Standard
22726 Modify the lines accordingly if you install \SpecialChar LyX
22727  somewhere else than in the
22728  Applications folder.
22729 \end_layout
22730
22731 \begin_layout Standard
22732 Reverse search is triggered by Alt-click (OPTION-click).
22733 \end_layout
22734
22735 \begin_layout Subsubsection*
22736 Skim (Mac OSX)
22737 \end_layout
22738
22739 \begin_layout Standard
22740 Enter 
22741 \begin_inset Flex Code
22742 status collapsed
22743
22744 \begin_layout Plain Layout
22745 open -a Skim.app $$i
22746 \end_layout
22747
22748 \end_inset
22749
22750  to the viewer setting in 
22751 \begin_inset Flex Noun
22752 status collapsed
22753
22754 \begin_layout Plain Layout
22755 Preferences\SpecialChar menuseparator
22756 File Handling\SpecialChar menuseparator
22757 File formats\SpecialChar menuseparator
22758 PDF (pdflatex)
22759 \end_layout
22760
22761 \end_inset
22762
22763 , and then in 
22764 \begin_inset Flex Noun
22765 status collapsed
22766
22767 \begin_layout Plain Layout
22768 Skim\SpecialChar menuseparator
22769 Preferences\SpecialChar menuseparator
22770 Sync
22771 \end_layout
22772
22773 \end_inset
22774
22775  choose 
22776 \begin_inset Flex Noun
22777 status collapsed
22778
22779 \begin_layout Plain Layout
22780 custom
22781 \end_layout
22782
22783 \end_inset
22784
22785  preset and enter command 
22786 \begin_inset Flex Noun
22787 status collapsed
22788
22789 \begin_layout Plain Layout
22790 /Applications/\SpecialChar LyX
22791 .app/Contents/MacOS/lyxeditor
22792 \end_layout
22793
22794 \end_inset
22795
22796 .
22797 \end_layout
22798
22799 \begin_layout Standard
22800 Reverse search is triggered by COMMAND-SHIFT-click
22801 \end_layout
22802
22803 \begin_layout Subsubsection*
22804 Evince (GNOME)
22805 \end_layout
22806
22807 \begin_layout Standard
22808 Reverse search with evince does not work out of the box, but it can be achieved
22809  by means of some third party helper scripts.
22810  Please refer to 
22811 \begin_inset CommandInset href
22812 LatexCommand href
22813 target "https://wiki.lyx.org/LyX/SyncTeX"
22814 literal "false"
22815
22816 \end_inset
22817
22818  for details.
22819 \end_layout
22820
22821 \begin_layout Subsubsection*
22822 Okular (KDE)
22823 \end_layout
22824
22825 \begin_layout Standard
22826 Go to 
22827 \begin_inset Flex Noun
22828 status collapsed
22829
22830 \begin_layout Plain Layout
22831 Settings\SpecialChar menuseparator
22832 Configure Okular\SpecialChar menuseparator
22833 Editor
22834 \end_layout
22835
22836 \end_inset
22837
22838  and select LyX
22839 \begin_inset Quotes erd
22840 \end_inset
22841
22842  as editor.
22843  This inserts the appropriate command (
22844 \begin_inset Flex Code
22845 status collapsed
22846
22847 \begin_layout Plain Layout
22848 lyxclient -g %f %l
22849 \end_layout
22850
22851 \end_inset
22852
22853 ).
22854 \end_layout
22855
22856 \begin_layout Standard
22857 Reverse search is triggered by SHIFT-click.
22858
22859 \change_inserted -712698321 1578211026
22860  Note that this only works if Okular is in 
22861 \begin_inset Quotes eld
22862 \end_inset
22863
22864 Browse
22865 \begin_inset Quotes erd
22866 \end_inset
22867
22868  mode (i.
22869 \begin_inset space \thinspace{}
22870 \end_inset
22871
22872 e., the hand symbol is clicked).
22873 \change_unchanged
22874
22875 \end_layout
22876
22877 \begin_layout Subsubsection*
22878 Qpdfview (Unix)
22879 \end_layout
22880
22881 \begin_layout Standard
22882 Qpdfview supports Sync\SpecialChar TeX
22883  since version 0.3.5.
22884  Go to 
22885 \begin_inset Flex Noun
22886 status collapsed
22887
22888 \begin_layout Plain Layout
22889 Edit\SpecialChar menuseparator
22890 Settings\SpecialChar menuseparator
22891 Behavior
22892 \end_layout
22893
22894 \end_inset
22895
22896 , click on the input field of the 
22897 \begin_inset Quotes eld
22898 \end_inset
22899
22900 Source editor
22901 \begin_inset Quotes erd
22902 \end_inset
22903
22904  item and add the command 
22905 \begin_inset Flex Code
22906 status collapsed
22907
22908 \begin_layout Plain Layout
22909 lyxclient -g %1 %2
22910 \end_layout
22911
22912 \end_inset
22913
22914 .
22915 \end_layout
22916
22917 \begin_layout Standard
22918 Reverse search is triggered by double-click or, in more recent versions,
22919  by context menu.
22920 \end_layout
22921
22922 \begin_layout Subsubsection*
22923 YAP (Windows)
22924 \end_layout
22925
22926 \begin_layout Standard
22927 Launch yap, choose its 
22928 \begin_inset Flex Noun
22929 status collapsed
22930
22931 \begin_layout Plain Layout
22932 View\SpecialChar menuseparator
22933 Options
22934 \end_layout
22935
22936 \end_inset
22937
22938  menu and select the 
22939 \begin_inset Quotes eld
22940 \end_inset
22941
22942 Inverse DVI Search
22943 \begin_inset Quotes erd
22944 \end_inset
22945
22946  tab.
22947  Click on the 
22948 \begin_inset Quotes eld
22949 \end_inset
22950
22951 New\SpecialChar ldots
22952
22953 \begin_inset Quotes erd
22954 \end_inset
22955
22956  button and, in the window that opens, enter 
22957 \begin_inset Quotes eld
22958 \end_inset
22959
22960 \SpecialChar LyX
22961  Editor
22962 \begin_inset Quotes erd
22963 \end_inset
22964
22965  (or any other name you like) in the 
22966 \begin_inset Quotes eld
22967 \end_inset
22968
22969 Name:
22970 \begin_inset Quotes erd
22971 \end_inset
22972
22973  field.
22974  Now click on the button labeled 
22975 \begin_inset Quotes eld
22976 \end_inset
22977
22978 \SpecialChar ldots
22979
22980 \begin_inset Quotes erd
22981 \end_inset
22982
22983  to open a file dialog and navigate to the directory containing the batch
22984  file 
22985 \begin_inset Flex Code
22986 status collapsed
22987
22988 \begin_layout Plain Layout
22989 lyxeditor.bat
22990 \end_layout
22991
22992 \end_inset
22993
22994  (see below).
22995  Select 
22996 \begin_inset Flex Code
22997 status collapsed
22998
22999 \begin_layout Plain Layout
23000 lyxeditor.bat
23001 \end_layout
23002
23003 \end_inset
23004
23005  and then specify the program arguments as 
23006 \begin_inset Flex Code
23007 status collapsed
23008
23009 \begin_layout Plain Layout
23010 %f %l
23011 \end_layout
23012
23013 \end_inset
23014
23015 .
23016  The 
23017 \begin_inset Flex Code
23018 status collapsed
23019
23020 \begin_layout Plain Layout
23021 lyxeditor.bat
23022 \end_layout
23023
23024 \end_inset
23025
23026  wrapper is used for communicating with \SpecialChar LyX
23027  through the 
23028 \emph on
23029 lyxpipe
23030 \emph default
23031  and is as follows:
23032 \end_layout
23033
23034 \begin_layout LyX-Code
23035 @echo off
23036 \begin_inset Newline newline
23037 \end_inset
23038
23039 echo LYXCMD:revdvi:server-goto-file-row:%~1 %2> 
23040 \backslash
23041
23042 \backslash
23043 .
23044 \backslash
23045 pipe
23046 \backslash
23047 lyxpipe.in
23048 \begin_inset Newline newline
23049 \end_inset
23050
23051 type 
23052 \backslash
23053
23054 \backslash
23055 .
23056 \backslash
23057 pipe
23058 \backslash
23059 lyxpipe.out
23060 \end_layout
23061
23062 \begin_layout Standard
23063 Make sure that the \SpecialChar LyX
23064 Server pipe path you specified in \SpecialChar LyX
23065  is 
23066 \begin_inset Flex Code
23067 status collapsed
23068
23069 \begin_layout Plain Layout
23070
23071 \backslash
23072
23073 \backslash
23074 .
23075 \backslash
23076 pipe
23077 \backslash
23078 lyxpipe
23079 \end_layout
23080
23081 \end_inset
23082
23083 , otherwise change the 
23084 \begin_inset Flex Code
23085 status collapsed
23086
23087 \begin_layout Plain Layout
23088 lyxeditor.bat
23089 \end_layout
23090
23091 \end_inset
23092
23093  wrapper accordingly.
23094 \end_layout
23095
23096 \begin_layout Standard
23097 In yap, reverse search is triggered by double-click.
23098 \end_layout
23099
23100 \begin_layout Subsubsection*
23101 SumatraPDF (Windows)
23102 \end_layout
23103
23104 \begin_layout Standard
23105 In order to use SumatraPDF for inverse search, enter 
23106 \begin_inset Flex Code
23107 status collapsed
23108
23109 \begin_layout Plain Layout
23110 SumatraPDF -inverse-search "lyxeditor.bat "%f" %l"
23111 \end_layout
23112
23113 \end_inset
23114
23115  in the viewer setting in 
23116 \begin_inset Flex Noun
23117 status collapsed
23118
23119 \begin_layout Plain Layout
23120 Preferences\SpecialChar menuseparator
23121 File Handling\SpecialChar menuseparator
23122 File formats\SpecialChar menuseparator
23123 PDF (pdflatex)
23124 \end_layout
23125
23126 \end_inset
23127
23128 , where 
23129 \begin_inset Flex Code
23130 status collapsed
23131
23132 \begin_layout Plain Layout
23133 lyxeditor.bat
23134 \end_layout
23135
23136 \end_inset
23137
23138  is the previous wrapper.
23139  If SumatraPDF.exe is not in your command PATH, use its full file name.
23140 \end_layout
23141
23142 \begin_layout Standard
23143 Reverse search is triggered by double-click.
23144 \end_layout
23145
23146 \begin_layout Subsubsection*
23147 YAP (Cygwin)
23148 \end_layout
23149
23150 \begin_layout Standard
23151 First of all, make sure that yap is your default DVI viewer in the Windows
23152  environment, then launch it, choose its 
23153 \begin_inset Flex Noun
23154 status collapsed
23155
23156 \begin_layout Plain Layout
23157 View\SpecialChar menuseparator
23158 Options
23159 \end_layout
23160
23161 \end_inset
23162
23163  menu and select the 
23164 \begin_inset Quotes eld
23165 \end_inset
23166
23167 Inverse DVI Search
23168 \begin_inset Quotes erd
23169 \end_inset
23170
23171  tab.
23172  Click on the 
23173 \begin_inset Quotes eld
23174 \end_inset
23175
23176 New\SpecialChar ldots
23177
23178 \begin_inset Quotes erd
23179 \end_inset
23180
23181  button and, in the window that opens, enter 
23182 \begin_inset Quotes eld
23183 \end_inset
23184
23185 \SpecialChar LyX
23186  Editor
23187 \begin_inset Quotes erd
23188 \end_inset
23189
23190  (or any other name you like) in the 
23191 \begin_inset Quotes eld
23192 \end_inset
23193
23194 Name:
23195 \begin_inset Quotes erd
23196 \end_inset
23197
23198  field.
23199  Now click on the button labeled 
23200 \begin_inset Quotes eld
23201 \end_inset
23202
23203 \SpecialChar ldots
23204
23205 \begin_inset Quotes erd
23206 \end_inset
23207
23208  to open a file dialog and navigate to the directory containing the 
23209 \begin_inset Flex Code
23210 status collapsed
23211
23212 \begin_layout Plain Layout
23213 lyxeditor.exe
23214 \end_layout
23215
23216 \end_inset
23217
23218  program (which is installed by default on Cygwin along with the \SpecialChar LyX
23219  executable).
23220  Select 
23221 \begin_inset Flex Code
23222 status collapsed
23223
23224 \begin_layout Plain Layout
23225 lyxeditor.exe
23226 \end_layout
23227
23228 \end_inset
23229
23230  and then specify the program arguments as 
23231 \begin_inset Flex Code
23232 status collapsed
23233
23234 \begin_layout Plain Layout
23235 -g %f %l
23236 \end_layout
23237
23238 \end_inset
23239
23240 .
23241  In this way, you will be using the 
23242 \emph on
23243 lyxsocket
23244 \emph default
23245  for communicating with \SpecialChar LyX
23246 .
23247  If, for whatever reason, you want to use the 
23248 \emph on
23249 lyxpipe
23250 \emph default
23251 , omit the 
23252 \begin_inset Flex Code
23253 status collapsed
23254
23255 \begin_layout Plain Layout
23256 -g
23257 \end_layout
23258
23259 \end_inset
23260
23261  option and be sure to specify the \SpecialChar LyX
23262 Server pipe path in the \SpecialChar LyX
23263  preferences.
23264 \end_layout
23265
23266 \begin_layout Standard
23267 In yap, reverse search is triggered by double-click.
23268 \end_layout
23269
23270 \begin_layout Subsubsection*
23271 SumatraPDF (Cygwin)
23272 \end_layout
23273
23274 \begin_layout Standard
23275 In order to use SumatraPDF for inverse search, enter 
23276 \begin_inset Flex Code
23277 status collapsed
23278
23279 \begin_layout Plain Layout
23280 SumatraPDF -inverse-search "lyxeditor -g %f %l"
23281 \end_layout
23282
23283 \end_inset
23284
23285  in the viewer setting in 
23286 \begin_inset Flex Noun
23287 status collapsed
23288
23289 \begin_layout Plain Layout
23290 Preferences\SpecialChar menuseparator
23291 File Handling\SpecialChar menuseparator
23292 File formats\SpecialChar menuseparator
23293 PDF (pdflatex)
23294 \end_layout
23295
23296 \end_inset
23297
23298 .
23299  If SumatraPDF.exe is not in your command PATH, use its full posix path.
23300  The 
23301 \begin_inset Flex Code
23302 status collapsed
23303
23304 \begin_layout Plain Layout
23305 -g
23306 \end_layout
23307
23308 \end_inset
23309
23310  enables communication via the 
23311 \emph on
23312 lyxsocket
23313 \emph default
23314 .
23315  Again, omit the 
23316 \begin_inset Flex Code
23317 status collapsed
23318
23319 \begin_layout Plain Layout
23320 -g
23321 \end_layout
23322
23323 \end_inset
23324
23325  option if you want to use the 
23326 \emph on
23327 lyxpipe
23328 \emph default
23329 , and be sure to specify the \SpecialChar LyX
23330 Server pipe path in the \SpecialChar LyX
23331  preferences.
23332 \end_layout
23333
23334 \begin_layout Standard
23335 Reverse search is triggered by double-click.
23336 \end_layout
23337
23338 \begin_layout Section
23339 Forward search
23340 \end_layout
23341
23342 \begin_layout Standard
23343 Forward search is, as the name implies, in a sense the 
23344 \begin_inset Quotes eld
23345 \end_inset
23346
23347 opposite
23348 \begin_inset Quotes erd
23349 \end_inset
23350
23351  of reverse search.
23352  It allows you to let the viewer jump to a given position from within \SpecialChar LyX
23353 .
23354  If forward search is set up (as described in what follows), you can put
23355  the cursor anywhere in your \SpecialChar LyX
23356  document, and hit 
23357 \begin_inset Flex Noun
23358 status collapsed
23359
23360 \begin_layout Plain Layout
23361 Navigate\SpecialChar menuseparator
23362 Forward search
23363 \end_layout
23364
23365 \end_inset
23366
23367  (or select 
23368 \begin_inset Flex Noun
23369 status collapsed
23370
23371 \begin_layout Plain Layout
23372 Forward search
23373 \end_layout
23374
23375 \end_inset
23376
23377  in the context menu via right mouse click), and then the viewer will jump
23378  to that position as well.
23379  This implies, of course, that your viewer supports this function.
23380 \end_layout
23381
23382 \begin_layout Standard
23383 To make forward search possible, you first need to provide the generated
23384  output PDF/DVI file with additional information about the \SpecialChar TeX
23385  sources.
23386  This can be done via the methods described in the section 
23387 \begin_inset CommandInset ref
23388 LatexCommand ref
23389 reference "subsec:rev-search"
23390
23391 \end_inset
23392
23393 .
23394 \end_layout
23395
23396 \begin_layout Standard
23397 Additionally, you need to configure \SpecialChar LyX
23398  for using your viewers in 
23399 \begin_inset Flex Noun
23400 status collapsed
23401
23402 \begin_layout Plain Layout
23403 Tools\SpecialChar menuseparator
23404 Preferences\SpecialChar menuseparator
23405 Output\SpecialChar menuseparator
23406 General
23407 \end_layout
23408
23409 \end_inset
23410
23411 .
23412  We provide a range of tested configurations for some viewers, which you
23413  can select from the drop down list.
23414  If none of these configurations suits you, you have to find out and enter
23415  a suitable configuration yourself.
23416  The definition syntax uses the following placeholders:
23417 \end_layout
23418
23419 \begin_layout Itemize
23420 \noindent
23421 \begin_inset Flex Code
23422 status collapsed
23423
23424 \begin_layout Plain Layout
23425 $$n
23426 \end_layout
23427
23428 \end_inset
23429
23430 : row number
23431 \end_layout
23432
23433 \begin_layout Itemize
23434 \noindent
23435 \begin_inset Flex Code
23436 status collapsed
23437
23438 \begin_layout Plain Layout
23439 $$t
23440 \end_layout
23441
23442 \end_inset
23443
23444 : name of the (temporary) exported .tex file (without path)
23445 \end_layout
23446
23447 \begin_layout Itemize
23448 \noindent
23449 \begin_inset Flex Code
23450 status collapsed
23451
23452 \begin_layout Plain Layout
23453 $$f
23454 \end_layout
23455
23456 \end_inset
23457
23458 : name of the (temporary) exported .tex file (including path)
23459 \end_layout
23460
23461 \begin_layout Itemize
23462 \noindent
23463 \begin_inset Flex Code
23464 status collapsed
23465
23466 \begin_layout Plain Layout
23467 $$o
23468 \end_layout
23469
23470 \end_inset
23471
23472 : name of the exported output file (either dvi or pdf, depending on which
23473  one exists in the temporary directory)
23474 \end_layout
23475
23476 \begin_layout Standard
23477 Note that only some of the viewers provide full and usable forward search
23478  functionality out of the box, among them yap, xdvi, okular
23479 \begin_inset Foot
23480 status collapsed
23481
23482 \begin_layout Plain Layout
23483 You might want to set 
23484 \begin_inset Flex Code
23485 status collapsed
23486
23487 \begin_layout Plain Layout
23488 okular --unique
23489 \end_layout
23490
23491 \end_inset
23492
23493  in 
23494 \begin_inset Flex Noun
23495 status collapsed
23496
23497 \begin_layout Plain Layout
23498 Tools\SpecialChar menuseparator
23499 Preferences\SpecialChar menuseparator
23500 File Handling\SpecialChar menuseparator
23501 File
23502 \begin_inset space ~
23503 \end_inset
23504
23505 Formats
23506 \end_layout
23507
23508 \end_inset
23509
23510
23511 \end_layout
23512
23513 \end_inset
23514
23515 , qpdfview, and SumatraPDF
23516 \begin_inset Foot
23517 status collapsed
23518
23519 \begin_layout Plain Layout
23520 SumatraPDF can also use DDE commands through the external program CMCDDE
23521  — downloadable from 
23522 \begin_inset CommandInset href
23523 LatexCommand href
23524 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
23525 literal "false"
23526
23527 \end_inset
23528
23529
23530 \end_layout
23531
23532 \end_inset
23533
23534 .
23535  Others, such as evince
23536 \begin_inset Foot
23537 status collapsed
23538
23539 \begin_layout Plain Layout
23540 Forward search with evince can be achieved by means of third party helper
23541  scripts.
23542  Please refer to 
23543 \begin_inset CommandInset href
23544 LatexCommand href
23545 target "https://wiki.lyx.org/LyX/SyncTeX"
23546 literal "false"
23547
23548 \end_inset
23549
23550  for details.
23551 \end_layout
23552
23553 \end_inset
23554
23555 , require some extra tools in order to use forward search.
23556  While many of the widespread PDF viewers (most notably Adobe Reader) do
23557  not support forward search at all, some other viewers – e.
23558 \begin_inset space \thinspace{}
23559 \end_inset
23560
23561 g.
23562  xpdf – allow at least to reload the document and jump to a specific page
23563  of the file, so you can at least navigate 
23564 \begin_inset Quotes eld
23565 \end_inset
23566
23567 near
23568 \begin_inset Quotes erd
23569 \end_inset
23570
23571 .
23572  This latter functionality is provided by an external call of synctex (see
23573  the predefined example configurations).
23574  
23575 \end_layout
23576
23577 \begin_layout Standard
23578 Forward search works both with DVI and PDF output.
23579  \SpecialChar LyX
23580  simply checks which preview format you have used before (i.
23581 \begin_inset space \thinspace{}
23582 \end_inset
23583
23584 e., which format is already there in the temporary directory) and chooses
23585  the appropriate configuration for the respective format.
23586 \end_layout
23587
23588 \begin_layout Chapter
23589
23590 \change_deleted 564990737 1671097409
23591 Special Document Classes
23592 \change_unchanged
23593
23594 \end_layout
23595
23596 \begin_layout Section
23597
23598 \change_deleted 564990737 1669742044
23599 A&A Paper
23600 \end_layout
23601
23602 \begin_layout Standard
23603
23604 \change_deleted 564990737 1669742044
23605 by 
23606 \noun on
23607 Peter Sütterlin
23608 \end_layout
23609
23610 \begin_layout Subsection
23611
23612 \change_deleted 564990737 1669742044
23613 Introduction
23614 \end_layout
23615
23616 \begin_layout Standard
23617
23618 \change_deleted 564990737 1669742044
23619 This section describes how \SpecialChar LyX
23620  can be used to write articles for submission
23621  to the scientific journal 
23622 \emph on
23623 Astronomy and Astrophysics
23624 \emph default
23625  (
23626 \begin_inset Flex URL
23627 status collapsed
23628
23629 \begin_layout Plain Layout
23630
23631 https://www.aanda.org/
23632 \end_layout
23633
23634 \end_inset
23635
23636 ) using Version 5.01 of the document class 
23637 \family typewriter
23638 aa.cls
23639 \family default
23640 .
23641  This package can be downloaded from the ftp site
23642 \end_layout
23643
23644 \begin_layout Standard
23645
23646 \change_deleted 564990737 1669742044
23647 \begin_inset VSpace medskip
23648 \end_inset
23649
23650
23651 \end_layout
23652
23653 \begin_layout Standard
23654 \align center
23655
23656 \change_deleted 564990737 1669742044
23657 \begin_inset Flex URL
23658 status collapsed
23659
23660 \begin_layout Plain Layout
23661
23662 ftp://ftp.edpsciences.org/pub/aa/readme.html
23663 \end_layout
23664
23665 \end_inset
23666
23667
23668 \end_layout
23669
23670 \begin_layout Standard
23671
23672 \change_deleted 564990737 1669742044
23673 \begin_inset VSpace medskip
23674 \end_inset
23675
23676
23677 \end_layout
23678
23679 \begin_layout Standard
23680
23681 \change_deleted 564990737 1669742044
23682 A manual comes together with that package, and this text is not meant to
23683  replace the original manual but is merely a short guide in how to realize
23684  the correct form of your paper.
23685  
23686 \end_layout
23687
23688 \begin_layout Standard
23689
23690 \change_deleted 564990737 1669742044
23691 Please note that the publisher of the journal was changed from Springer
23692  to EDP Sciences starting January 1, 2001.
23693  That change involved also some slight changes to the style files, namely
23694  the removal of the thesaurus command.
23695  The \SpecialChar LyX
23696  class aa supports the newest version of these style files, V 5.01.
23697  If you have an older version installed, please upgrade.
23698  For compatibility, the old (version 4) layout has been kept as 
23699 \family sans
23700 article (A&A V4)
23701 \family default
23702 .
23703  Please refer to the comments in 
23704 \family typewriter
23705 \SpecialChar LyX
23706 Dir/layouts/aapaper.layout
23707 \family default
23708 .
23709 \end_layout
23710
23711 \begin_layout Subsection
23712
23713 \change_deleted 564990737 1669742044
23714 Getting started
23715 \end_layout
23716
23717 \begin_layout Standard
23718
23719 \change_deleted 564990737 1669742044
23720 It is recommended you start from the example template distributed with \SpecialChar LyX
23721 .
23722  If you are not using a template, note the following settings:
23723 \end_layout
23724
23725 \begin_layout Itemize
23726
23727 \change_deleted 564990737 1669742044
23728 Select 
23729 \family sans
23730 article (A&A)
23731 \family default
23732  in the 
23733 \family sans
23734 Document\SpecialChar menuseparator
23735 Settings
23736 \family default
23737  dialog (OK, that one was obvious).
23738 \end_layout
23739
23740 \begin_layout Itemize
23741
23742 \change_deleted 564990737 1669742044
23743 Don't change the option 
23744 \family sans
23745 Page
23746 \begin_inset space ~
23747 \end_inset
23748
23749 style
23750 \family default
23751 : Leave it set to 
23752 \family sans
23753 default
23754 \family default
23755 .
23756  The whole layout is done by the macros, you shouldn't change anything.
23757 \end_layout
23758
23759 \begin_layout Subsection
23760
23761 \change_deleted 564990737 1669742044
23762 The header block
23763 \end_layout
23764
23765 \begin_layout Standard
23766
23767 \change_deleted 564990737 1669742044
23768 First thing to enter is the header information.
23769  It consists of seven entries, of which some are optional.
23770  They are
23771 \end_layout
23772
23773 \begin_layout Itemize
23774
23775 \change_deleted 564990737 1669742044
23776
23777 \family sans
23778 Title
23779 \family default
23780 : [required] 
23781 \end_layout
23782
23783 \begin_layout Itemize
23784
23785 \change_deleted 564990737 1669742044
23786
23787 \family sans
23788 Subtitle
23789 \family default
23790 : [optional] 
23791 \end_layout
23792
23793 \begin_layout Itemize
23794
23795 \change_deleted 564990737 1669742044
23796
23797 \family sans
23798 Author
23799 \family default
23800 : [required]
23801 \end_layout
23802
23803 \begin_layout Itemize
23804
23805 \change_deleted 564990737 1669742044
23806
23807 \family sans
23808 Address
23809 \family default
23810 : [required]
23811 \end_layout
23812
23813 \begin_layout Itemize
23814
23815 \change_deleted 564990737 1669742044
23816
23817 \family sans
23818 Offprints
23819 \family default
23820 : [optional] if more than one author: whom to contact for offprint requests.
23821 \end_layout
23822
23823 \begin_layout Itemize
23824
23825 \change_deleted 564990737 1669742044
23826
23827 \family sans
23828 Mail
23829 \family default
23830 : [optional] mail address for contacts.
23831 \end_layout
23832
23833 \begin_layout Itemize
23834
23835 \change_deleted 564990737 1669742044
23836
23837 \family sans
23838 Date
23839 \family default
23840 : [required].
23841  Suggested format is 
23842 \family typewriter
23843 Received: <date>; Accepted <date> 
23844 \end_layout
23845
23846 \begin_layout Standard
23847
23848 \change_deleted 564990737 1669742044
23849 There is no need to issue the 
23850 \family typewriter
23851
23852 \backslash
23853 maketitle
23854 \family default
23855  command, this is done automatically by \SpecialChar LyX
23856  when the header is finished.
23857  Although the order of the single header entries doesn't matter it is advised
23858  to keep the above sequence, just to get the best optics and meets the layout
23859  of the real document.
23860 \end_layout
23861
23862 \begin_layout Standard
23863
23864 \change_deleted 564990737 1669742044
23865 If you want to place footnotes in the header block, e.
23866 \begin_inset space \thinspace{}
23867 \end_inset
23868
23869 g.
23870 \begin_inset space \space{}
23871 \end_inset
23872
23873 to state your present address, just use the standard footnote via the menu
23874  
23875 \family sans
23876 Insert\SpecialChar menuseparator
23877 Footnote.
23878
23879 \family default
23880  \SpecialChar LyX
23881  will automagically use the term 
23882 \family typewriter
23883
23884 \backslash
23885 thanks{}
23886 \family default
23887  in that case.
23888 \end_layout
23889
23890 \begin_layout Standard
23891
23892 \change_deleted 564990737 1669742044
23893 Under 
23894 \family sans
23895 Edit\SpecialChar menuseparator
23896 Text Style
23897 \family default
23898 , you'll find two insets which are relevant for the titling:
23899 \end_layout
23900
23901 \begin_layout Itemize
23902
23903 \change_deleted 564990737 1669742044
23904
23905 \family sans
23906 Institute
23907 \family typewriter
23908  
23909 \family default
23910 to mark corresponding author\SpecialChar breakableslash
23911 institute pairs.
23912  The institutes are numbered sequentially as they appear in the 
23913 \family sans
23914 Address
23915 \family default
23916  field, so you have to put a marker to each author.
23917 \end_layout
23918
23919 \begin_layout Itemize
23920
23921 \change_deleted 564990737 1669742044
23922
23923 \family sans
23924 Email
23925 \family default
23926  to supply an email address for fast contact.
23927 \end_layout
23928
23929 \begin_layout Standard
23930
23931 \change_deleted 564990737 1669742044
23932 In addition to these topics, the macros use one additional \SpecialChar LaTeX
23933  command that
23934  has no counterpart in \SpecialChar LyX
23935 :
23936 \end_layout
23937
23938 \begin_layout Itemize
23939
23940 \change_deleted 564990737 1669742044
23941
23942 \family typewriter
23943
23944 \backslash
23945 and
23946 \family default
23947  to separate different names for more than one author and institute, respectivel
23948 y.
23949 \end_layout
23950
23951 \begin_layout Standard
23952
23953 \change_deleted 564990737 1669742044
23954 The appropriate command has to be entered in \SpecialChar LyX
23955  and marked as \SpecialChar LaTeX
23956  code.
23957  See the examples.
23958  
23959 \end_layout
23960
23961 \begin_layout Subsection
23962
23963 \change_deleted 564990737 1669742044
23964 The abstract
23965 \end_layout
23966
23967 \begin_layout Standard
23968
23969 \change_deleted 564990737 1669742044
23970 The abstract should immediately follow the header block.
23971  With version 5 the abstract environment was changed to a command, and there
23972  is now a restriction to only one paragraph.
23973  In addition, it should contain an entry with the keywords.
23974  This is done via the paragraph style 
23975 \family sans
23976 Keywords
23977 \family default
23978 .
23979  Refer to the example paper.
23980 \end_layout
23981
23982 \begin_layout Subsection
23983
23984 \change_deleted 564990737 1669742044
23985 Supported environments
23986 \end_layout
23987
23988 \begin_layout Standard
23989
23990 \change_deleted 564990737 1669742044
23991 The A&A paper layout supports the following environments for structuring
23992  your text:
23993 \end_layout
23994
23995 \begin_layout Itemize
23996
23997 \change_deleted 564990737 1669742044
23998
23999 \family sans
24000 Standard
24001 \end_layout
24002
24003 \begin_layout Itemize
24004
24005 \change_deleted 564990737 1669742044
24006
24007 \family sans
24008 Section
24009 \end_layout
24010
24011 \begin_layout Itemize
24012
24013 \change_deleted 564990737 1669742044
24014
24015 \family sans
24016 Subsection
24017 \end_layout
24018
24019 \begin_layout Itemize
24020
24021 \change_deleted 564990737 1669742044
24022
24023 \family sans
24024 Subsubsection
24025 \end_layout
24026
24027 \begin_layout Itemize
24028
24029 \change_deleted 564990737 1669742044
24030
24031 \family sans
24032 Itemize
24033 \end_layout
24034
24035 \begin_layout Itemize
24036
24037 \change_deleted 564990737 1669742044
24038
24039 \family sans
24040 Enumerate
24041 \end_layout
24042
24043 \begin_layout Itemize
24044
24045 \change_deleted 564990737 1669742044
24046
24047 \family sans
24048 Description
24049 \end_layout
24050
24051 \begin_layout Itemize
24052
24053 \change_deleted 564990737 1669742044
24054
24055 \family sans
24056 Caption
24057 \end_layout
24058
24059 \begin_layout Itemize
24060
24061 \change_deleted 564990737 1669742044
24062
24063 \family sans
24064 Abstract
24065 \end_layout
24066
24067 \begin_layout Itemize
24068
24069 \change_deleted 564990737 1669742044
24070
24071 \family sans
24072 Acknowledgment
24073 \end_layout
24074
24075 \begin_layout Itemize
24076
24077 \change_deleted 564990737 1669742044
24078
24079 \family sans
24080 Bibliography
24081 \end_layout
24082
24083 \begin_layout Itemize
24084
24085 \change_deleted 564990737 1669742044
24086
24087 \family sans
24088 \SpecialChar LaTeX
24089
24090 \end_layout
24091
24092 \begin_layout Subsection
24093
24094 \change_deleted 564990737 1669742044
24095 Commands not supported by \SpecialChar LyX
24096
24097 \end_layout
24098
24099 \begin_layout Standard
24100
24101 \change_deleted 564990737 1669742044
24102 Some commands are not yet supported by the 
24103 \family sans
24104 paper (A&A)
24105 \family default
24106  layout for \SpecialChar LyX
24107 .
24108  Some have already been mentioned.
24109  For the sake of completeness, they are listed all together here:
24110 \end_layout
24111
24112 \begin_layout Itemize
24113
24114 \change_deleted 564990737 1669742044
24115
24116 \family typewriter
24117
24118 \backslash
24119 and
24120 \end_layout
24121
24122 \begin_layout Itemize
24123
24124 \change_deleted 564990737 1669742044
24125
24126 \family typewriter
24127
24128 \backslash
24129 authorrunning
24130 \end_layout
24131
24132 \begin_layout Itemize
24133
24134 \change_deleted 564990737 1669742044
24135
24136 \family typewriter
24137
24138 \backslash
24139 object{}
24140 \end_layout
24141
24142 \begin_layout Itemize
24143
24144 \change_deleted 564990737 1669742044
24145
24146 \family typewriter
24147
24148 \backslash
24149 titlerunning{}
24150 \end_layout
24151
24152 \begin_layout Standard
24153
24154 \change_deleted 564990737 1669742044
24155 If you want to use any of these commands, you have to enter them yourself.
24156  
24157 \series bold
24158 Do not forget to mark them as \SpecialChar LaTeX
24159  code!
24160 \end_layout
24161
24162 \begin_layout Subsection
24163
24164 \change_deleted 564990737 1669742044
24165 Figure and Table Floats
24166 \end_layout
24167
24168 \begin_layout Standard
24169
24170 \change_deleted 564990737 1669742044
24171 \SpecialChar LyX
24172  provides support for the necessary float environments 
24173 \family sans
24174 figure, figure*, table
24175 \family default
24176  and 
24177 \family sans
24178 table*
24179 \family default
24180 , therefore we won't tell much about it here.
24181  Refer to the 
24182 \emph on
24183 User's
24184 \begin_inset space ~
24185 \end_inset
24186
24187 Guide
24188 \emph default
24189 .
24190  Just remember that tables should be left-aligned.
24191  For that, select the table and change the alignment in 
24192 \family sans
24193 Edit\SpecialChar menuseparator
24194 Paragraph
24195 \begin_inset space ~
24196 \end_inset
24197
24198 Settings.
24199 \end_layout
24200
24201 \begin_layout Standard
24202
24203 \change_deleted 564990737 1669742044
24204 There is only one special thing: the figures with caption besides the figure.
24205  To create such a figure, you have to do the following:
24206 \end_layout
24207
24208 \begin_layout Enumerate
24209
24210 \change_deleted 564990737 1669742044
24211 Create a wide figure float: 
24212 \family sans
24213 Insert\SpecialChar menuseparator
24214 Float\SpecialChar menuseparator
24215 Figure
24216 \family default
24217 , then right click in the figure and select 
24218 \family sans
24219 Span
24220 \begin_inset space ~
24221 \end_inset
24222
24223 columns
24224 \family default
24225 .
24226 \end_layout
24227
24228 \begin_layout Enumerate
24229
24230 \change_deleted 564990737 1669742044
24231 Enter your caption text.
24232 \end_layout
24233
24234 \begin_layout Enumerate
24235
24236 \change_deleted 564990737 1669742044
24237 Press 
24238 \family sans
24239 Return
24240 \family default
24241  to move the cursor above the caption.
24242 \end_layout
24243
24244 \begin_layout Enumerate
24245
24246 \change_deleted 564990737 1669742044
24247 Insert your figure
24248 \end_layout
24249
24250 \begin_layout Enumerate
24251
24252 \change_deleted 564990737 1669742044
24253 Position the cursor behind the figure and insert a horizontal fill: 
24254 \family sans
24255 Insert\SpecialChar menuseparator
24256 Special
24257 \begin_inset space ~
24258 \end_inset
24259
24260 Character\SpecialChar menuseparator
24261 Horizontal
24262 \begin_inset space ~
24263 \end_inset
24264
24265 Fill
24266 \family default
24267 .
24268 \end_layout
24269
24270 \begin_layout Enumerate
24271
24272 \change_deleted 564990737 1669742044
24273 Switch to \SpecialChar LaTeX
24274  mode: 
24275 \family sans
24276 M-c
24277 \begin_inset space ~
24278 \end_inset
24279
24280 t
24281 \family default
24282 .
24283 \end_layout
24284
24285 \begin_layout Enumerate
24286
24287 \change_deleted 564990737 1669742044
24288 Enter 
24289 \family typewriter
24290
24291 \backslash
24292 parbox[b]{55mm}{
24293 \family default
24294 .
24295  
24296 \series bold
24297 Do not close the brace!
24298 \end_layout
24299
24300 \begin_layout Enumerate
24301
24302 \change_deleted 564990737 1669742044
24303 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
24304  mode and insert
24305  the closing brace: 
24306 \family sans
24307 M-c
24308 \begin_inset space ~
24309 \end_inset
24310
24311 t
24312 \family default
24313  
24314 \family typewriter
24315 }
24316 \family default
24317 .
24318 \end_layout
24319
24320 \begin_layout Standard
24321
24322 \change_deleted 564990737 1669742044
24323 Also, refer to the figures in the example paper.
24324 \end_layout
24325
24326 \begin_layout Subsection
24327
24328 \change_deleted 564990737 1669742044
24329 Referee layout
24330 \end_layout
24331
24332 \begin_layout Standard
24333
24334 \change_deleted 564990737 1669742044
24335 For submission, the paper has to be formated in a special double-spacing
24336  layout.
24337  For this purpose, you have to give the option 
24338 \family typewriter
24339 referee
24340 \family default
24341  to the document class.
24342  This must be done using the custom class options field in the 
24343 \family sans
24344 Document\SpecialChar menuseparator
24345 Settings
24346 \family default
24347  dialog.
24348  Just enter the string 
24349 \family typewriter
24350 referee
24351 \family default
24352  there.
24353 \end_layout
24354
24355 \begin_layout Subsection
24356
24357 \change_deleted 564990737 1669742044
24358 The example paper
24359 \end_layout
24360
24361 \begin_layout Standard
24362
24363 \change_deleted 564990737 1669742044
24364 The 
24365 \family sans
24366 Examples
24367 \family default
24368  directory contains an example paper written with \SpecialChar LyX
24369 .
24370  It is the example paper from the original macro package, translated to
24371  \SpecialChar LyX
24372 .
24373  Use it for inspiration, and compare the original \SpecialChar LaTeX
24374  code with \SpecialChar LyX
24375  way of writing.
24376 \end_layout
24377
24378 \begin_layout Section
24379
24380 \change_deleted 564990737 1671097429
24381 Dinbrief
24382 \end_layout
24383
24384 \begin_layout Standard
24385
24386 \change_deleted 564990737 1671097429
24387 The document class 
24388 \family sans
24389 dinbrief
24390 \family default
24391  can be used to type letters according to German conventions.
24392  A template file is included in 
24393 \family typewriter
24394 .../lyx/share/templates
24395 \family default
24396  for you to use as a starting point.
24397 \end_layout
24398
24399 \begin_layout Section
24400
24401 \change_deleted 564990737 1671097429
24402 Elsevier Journals
24403 \end_layout
24404
24405 \begin_layout Standard
24406
24407 \change_deleted 564990737 1671097429
24408 See the \SpecialChar LyX
24409  template file 
24410 \family typewriter
24411 elsarticle.lyx
24412 \family default
24413 .
24414  It contains all infos you need.
24415 \end_layout
24416
24417 \begin_layout Section
24418
24419 \change_deleted 564990737 1669755802
24420 ijmpc and ijmpd
24421 \end_layout
24422
24423 \begin_layout Standard
24424
24425 \change_deleted 564990737 1669755802
24426 by 
24427 \noun on
24428 Panayotis Papasotiriou
24429 \end_layout
24430
24431 \begin_layout Subsection
24432
24433 \change_deleted 564990737 1669755802
24434 Overview
24435 \end_layout
24436
24437 \begin_layout Standard
24438
24439 \change_deleted 564990737 1669755802
24440 The ijmpc package is a set of macros that facilitates electronic manuscript
24441  submission to the 
24442 \emph on
24443 International Journal of Modern Physics C
24444 \emph default
24445 .
24446  Similarly, the ijmpd package is for creating manuscripts to be submitted
24447  to the 
24448 \emph on
24449 International Journal of Modern Physics D
24450 \emph default
24451 .
24452  Both journals are published by World Scientific.
24453  The corresponding document classes are named 
24454 \family typewriter
24455 ws-ijmpc.cls
24456 \family default
24457  and 
24458 \family typewriter
24459 ws-ijmpd.cls
24460 \family default
24461 , respectively.
24462  These files, together with instructions for the authors, can be downloaded
24463  from the sites 
24464 \begin_inset Flex URL
24465 status collapsed
24466
24467 \begin_layout Plain Layout
24468
24469 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
24470 \end_layout
24471
24472 \end_inset
24473
24474  and 
24475 \begin_inset Flex URL
24476 status collapsed
24477
24478 \begin_layout Plain Layout
24479
24480 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
24481 \end_layout
24482
24483 \end_inset
24484
24485 .
24486  Both packages are modified versions of the standard 
24487 \begin_inset Quotes eld
24488 \end_inset
24489
24490 article
24491 \begin_inset Quotes erd
24492 \end_inset
24493
24494  package, and they are almost (but not exactly) identical.
24495  Most of their features are supported by \SpecialChar LyX
24496 .
24497  I have used \SpecialChar LyX
24498  successfully to write articles submitted to both journals
24499  without any problem.
24500 \end_layout
24501
24502 \begin_layout Subsection
24503
24504 \change_deleted 564990737 1669755802
24505 Writing a paper
24506 \end_layout
24507
24508 \begin_layout Standard
24509
24510 \change_deleted 564990737 1669755802
24511 As usual, the easiest way to write a paper is to start with a template.
24512  Click on 
24513 \family sans
24514 File\SpecialChar menuseparator
24515 New from
24516 \family default
24517  
24518 \family sans
24519 Template
24520 \family default
24521 , then choose the 
24522 \family typewriter
24523 ijmpc.lyx
24524 \family default
24525  or 
24526 \family typewriter
24527 ijmpd.lyx
24528 \family default
24529  template.
24530  This will give an (almost) empty document that includes the most common
24531  fields found in a manuscript.
24532  Simply overwrite the existing text (including the brackets, 
24533 \family typewriter
24534 <>
24535 \family default
24536 ) with your text.
24537  You should keep in mind the following remarks.
24538 \end_layout
24539
24540 \begin_layout Enumerate
24541
24542 \change_deleted 564990737 1669755802
24543 \SpecialChar LyX
24544  won't let you change the font size and the page style of the document,
24545  because such modifications are not allowed by both packages.
24546 \end_layout
24547
24548 \begin_layout Enumerate
24549
24550 \change_deleted 564990737 1669755802
24551 The language of the document should not be changed.
24552  Before previewing your paper, be sure that the babel package is not used.
24553  To do this, click on 
24554 \begin_inset Info
24555 type  "menu"
24556 arg   "dialog-show document"
24557 \end_inset
24558
24559  
24560 \family sans
24561 \SpecialChar menuseparator
24562 Language
24563 \family default
24564 , and select 
24565 \begin_inset Quotes eld
24566 \end_inset
24567
24568 None
24569 \begin_inset Quotes erd
24570 \end_inset
24571
24572  as 
24573 \family sans
24574 Language Package
24575 \family default
24576 .
24577 \end_layout
24578
24579 \begin_layout Enumerate
24580
24581 \change_deleted 564990737 1669755802
24582 The 
24583 \begin_inset Quotes eld
24584 \end_inset
24585
24586 Keywords
24587 \begin_inset Quotes erd
24588 \end_inset
24589
24590  style must be used to define keywords.
24591 \end_layout
24592
24593 \begin_layout Enumerate
24594
24595 \change_deleted 564990737 1669755802
24596 The ijmpc package provides a style named 
24597 \begin_inset Quotes eld
24598 \end_inset
24599
24600 Classification Codes
24601 \begin_inset Quotes erd
24602 \end_inset
24603
24604 , which can be used to define classification codes, such as PACS numbers.
24605  Note that this facility is not supported by the ijmpd package.
24606 \end_layout
24607
24608 \begin_layout Enumerate
24609
24610 \change_deleted 564990737 1669755802
24611 Several new environments are available: 
24612 \begin_inset Quotes eld
24613 \end_inset
24614
24615 Definition
24616 \begin_inset Quotes erd
24617 \end_inset
24618
24619
24620 \begin_inset Quotes eld
24621 \end_inset
24622
24623 Step
24624 \begin_inset Quotes erd
24625 \end_inset
24626
24627
24628 \begin_inset Quotes eld
24629 \end_inset
24630
24631 Example
24632 \begin_inset Quotes erd
24633 \end_inset
24634
24635
24636 \begin_inset Quotes eld
24637 \end_inset
24638
24639 Remark
24640 \begin_inset Quotes erd
24641 \end_inset
24642
24643
24644 \begin_inset Quotes eld
24645 \end_inset
24646
24647 Notation
24648 \begin_inset Quotes erd
24649 \end_inset
24650
24651
24652 \begin_inset Quotes eld
24653 \end_inset
24654
24655 Theorem
24656 \begin_inset Quotes erd
24657 \end_inset
24658
24659
24660 \begin_inset Quotes eld
24661 \end_inset
24662
24663 Proof
24664 \begin_inset Quotes erd
24665 \end_inset
24666
24667
24668 \begin_inset Quotes eld
24669 \end_inset
24670
24671 Corollary
24672 \begin_inset Quotes erd
24673 \end_inset
24674
24675
24676 \begin_inset Quotes eld
24677 \end_inset
24678
24679 Lemma
24680 \begin_inset Quotes erd
24681 \end_inset
24682
24683
24684 \begin_inset Quotes eld
24685 \end_inset
24686
24687 Proposition
24688 \begin_inset Quotes erd
24689 \end_inset
24690
24691
24692 \begin_inset Quotes eld
24693 \end_inset
24694
24695 Prop
24696 \begin_inset Quotes erd
24697 \end_inset
24698
24699
24700 \begin_inset Quotes eld
24701 \end_inset
24702
24703 Question
24704 \begin_inset Quotes erd
24705 \end_inset
24706
24707
24708 \begin_inset Quotes eld
24709 \end_inset
24710
24711 Claim
24712 \begin_inset Quotes erd
24713 \end_inset
24714
24715 , and 
24716 \begin_inset Quotes eld
24717 \end_inset
24718
24719 Conjecture
24720 \begin_inset Quotes erd
24721 \end_inset
24722
24723 .
24724  Their use is more or less obvious.
24725  \SpecialChar LyX
24726  supports all these environments; it will use the proper label, text style,
24727  and numbering scheme for each of them.
24728 \end_layout
24729
24730 \begin_layout Enumerate
24731
24732 \change_deleted 564990737 1669755802
24733 Both packages use basic citations; the natbib package should not be used.
24734  In \SpecialChar LyX
24735 , citation references are shown as usual; in the output, citations are
24736  shown as superscripts.
24737  If you want to use a citation as normal text, you should use the 
24738 \family typewriter
24739 refcite
24740 \family default
24741  command, e.
24742 \begin_inset space \thinspace{}
24743 \end_inset
24744
24745 g.
24746 \begin_inset space \space{}
24747 \end_inset
24748
24749
24750 \begin_inset Quotes eld
24751 \end_inset
24752
24753 See Ref.
24754 \begin_inset space \space{}
24755 \end_inset
24756
24757
24758 \family typewriter
24759
24760 \backslash
24761 refcite{key}
24762 \family default
24763
24764 \begin_inset Quotes erd
24765 \end_inset
24766
24767 .
24768 \end_layout
24769
24770 \begin_layout Enumerate
24771
24772 \change_deleted 564990737 1669755802
24773 There is no 
24774 \begin_inset Quotes eld
24775 \end_inset
24776
24777 Acknowledgments
24778 \begin_inset Quotes erd
24779 \end_inset
24780
24781  section in both packages.
24782  To put acknowledgments, just use the 
24783 \begin_inset Quotes eld
24784 \end_inset
24785
24786 Section*
24787 \begin_inset Quotes erd
24788 \end_inset
24789
24790  environment.
24791 \end_layout
24792
24793 \begin_layout Enumerate
24794
24795 \change_deleted 564990737 1669755802
24796 Appendices may be added to the paper, 
24797 \emph on
24798 after
24799 \emph default
24800  the Acknowledgments and 
24801 \shape italic
24802 before
24803 \shape default
24804  the References.
24805  \SpecialChar LyX
24806  provides a special environment, called 
24807 \begin_inset Quotes eld
24808 \end_inset
24809
24810 Appendices Section
24811 \begin_inset Quotes erd
24812 \end_inset
24813
24814  which marks the beginning of the appendices.
24815  This environment should be left blank; it just sends a \SpecialChar LaTeX
24816  command, but nothing
24817  is really printed.
24818  In \SpecialChar LyX
24819 , the word 
24820 \begin_inset Quotes eld
24821 \end_inset
24822
24823 Appendix
24824 \begin_inset Quotes erd
24825 \end_inset
24826
24827  is printed with blue letters, as a signal that all sections after that
24828  point are appendices.
24829  To write an appendix, use the 
24830 \begin_inset Quotes eld
24831 \end_inset
24832
24833 Appendix
24834 \begin_inset Quotes erd
24835 \end_inset
24836
24837  environment.
24838  \SpecialChar LyX
24839  will number each appendix with capital letters, as required by both journals.
24840  Note that 
24841 \begin_inset Quotes eld
24842 \end_inset
24843
24844 Appendices Section
24845 \begin_inset Quotes erd
24846 \end_inset
24847
24848  
24849 \emph on
24850 must
24851 \emph default
24852  be present before the first appendix; if not, all appendices will be numbered
24853  as normal sections in the output.
24854 \end_layout
24855
24856 \begin_layout Enumerate
24857
24858 \change_deleted 564990737 1669755802
24859 The ijmpc and the ijmpd packages use the 
24860 \family typewriter
24861 tbl
24862 \family default
24863  command to implement table captions.
24864  As a result, a table created by \SpecialChar LyX
24865  is printed correctly, but its caption
24866  is ignored.
24867  However, you can use some \SpecialChar TeX
24868  code to overcome this problem, so that captions
24869  are printed as expected.
24870  To do so, create a float table as usual, remove the caption, and replace
24871  it with the \SpecialChar TeX
24872  code 
24873 \family typewriter
24874
24875 \backslash
24876 tbl{
24877 \emph on
24878 your table caption
24879 \emph default
24880 }{
24881 \family default
24882  (sic); you must also the \SpecialChar TeX
24883  code 
24884 \family typewriter
24885 }
24886 \family default
24887  immediately after the tabular material.
24888  Study the example table included in the template files to see how this
24889  trick is implemented.
24890  Alternatively, If you need table captions, you should implement the whole
24891  table float in a 
24892 \family typewriter
24893 .tex
24894 \family default
24895  file, then include this file to the \SpecialChar LyX
24896  document (
24897 \family sans
24898 Insert\SpecialChar menuseparator
24899 File\SpecialChar menuseparator
24900 Child
24901 \begin_inset space ~
24902 \end_inset
24903
24904 Document
24905 \family default
24906 ).
24907  Details on how to create a table float can be found in the files 
24908 \family typewriter
24909 ws-ijmpc.tex
24910 \family default
24911  and 
24912 \family typewriter
24913 ws-ijmpd.tex
24914 \family default
24915 , included in the corresponding packages.
24916 \end_layout
24917
24918 \begin_layout Subsection
24919
24920 \change_deleted 564990737 1669755802
24921 Preparing a paper for submission
24922 \end_layout
24923
24924 \begin_layout Standard
24925
24926 \change_deleted 564990737 1669755802
24927 Before you submit your paper you must export the \SpecialChar LyX
24928  document as a \SpecialChar LaTeX
24929  file (
24930 \family sans
24931 File\SpecialChar menuseparator
24932 Export\SpecialChar menuseparator
24933 \SpecialChar LaTeX
24934
24935 \family default
24936 )
24937 \begin_inset Foot
24938 status open
24939
24940 \begin_layout Plain Layout
24941 Actually you have the choice between \SpecialChar LaTeX
24942  (plain) and pdflatex.
24943  If you intend to use pdflatex to prepare the paper, you should use the
24944  pdflatex option so that included graphics are converted to PDF format,
24945  ready for use by pdflatex.
24946 \end_layout
24947
24948 \end_inset
24949
24950 , then make the following changes to the resulting 
24951 \family typewriter
24952 .tex
24953 \family default
24954  file.
24955 \end_layout
24956
24957 \begin_layout Enumerate
24958
24959 \change_deleted 564990737 1669755802
24960 Remove the comment lines before the 
24961 \family typewriter
24962
24963 \backslash
24964 documentclass
24965 \family default
24966  command.
24967 \end_layout
24968
24969 \begin_layout Enumerate
24970
24971 \change_deleted 564990737 1669755802
24972 Remove everything between (and including) the 
24973 \family typewriter
24974
24975 \backslash
24976 makeatletter
24977 \family default
24978  and 
24979 \family typewriter
24980
24981 \backslash
24982 makeatother
24983 \family default
24984  commands, except for any commands you specifically put into the \SpecialChar LaTeX
24985  preamble.
24986 \end_layout
24987
24988 \begin_layout Standard
24989
24990 \change_deleted 564990737 1669755802
24991 The modified 
24992 \family typewriter
24993 .tex
24994 \family default
24995  file should be saved and processed through \SpecialChar LaTeX
24996  as many times as necessary.
24997  You may also want to check the resulting 
24998 \family typewriter
24999 .dvi
25000 \family default
25001  document.
25002 \change_unchanged
25003
25004 \end_layout
25005
25006 \begin_layout Section
25007
25008 \change_deleted 564990737 1669801478
25009 iopart
25010 \end_layout
25011
25012 \begin_layout Standard
25013
25014 \change_deleted 564990737 1669801478
25015 by 
25016 \noun on
25017 Uwe Stöhr
25018 \end_layout
25019
25020 \begin_layout Subsection
25021
25022 \change_deleted 564990737 1669801478
25023 Overview
25024 \end_layout
25025
25026 \begin_layout Standard
25027
25028 \change_deleted 564990737 1669801478
25029 The iopart package provides a document class to create electronic manuscript
25030  submission to the journals published by the Institute of Physics.
25031  Instructions for the authors how to create a paper using the iopart class
25032  can be downloaded together with the iopart package from the site 
25033 \begin_inset Flex URL
25034 status collapsed
25035
25036 \begin_layout Plain Layout
25037
25038 ftp://ftp.iop.org/pub/journals/latex2e
25039 \end_layout
25040
25041 \end_inset
25042
25043 .
25044 \end_layout
25045
25046 \begin_layout Subsection
25047
25048 \change_deleted 564990737 1669801478
25049 Writing a paper
25050 \end_layout
25051
25052 \begin_layout Standard
25053
25054 \change_deleted 564990737 1669801478
25055 The easiest way to write a paper is to start with the template 
25056 \emph on
25057 IOP-article.lyx
25058 \emph default
25059  that is available via 
25060 \family sans
25061 File\SpecialChar menuseparator
25062 New From Template
25063 \family default
25064  The template explains how to use the special text environments.
25065  Here are the most important advices:
25066 \end_layout
25067
25068 \begin_layout Itemize
25069
25070 \change_deleted 564990737 1669801478
25071 To be able to compile your document to a PDF, PS, or DVI, ensure that the
25072  no AMS packages are loaded in 
25073 \family sans
25074 Document\SpecialChar menuseparator
25075 Settings\SpecialChar menuseparator
25076 Math Options
25077 \family default
25078 !
25079 \end_layout
25080
25081 \begin_layout Itemize
25082
25083 \change_deleted 564990737 1669801478
25084
25085 \size normal
25086 The title environment defines the kind of your paper.
25087  So use one of the following environments for the title:
25088 \end_layout
25089
25090 \begin_deeper
25091 \begin_layout Itemize
25092
25093 \change_deleted 564990737 1669801478
25094
25095 \family sans
25096 \size normal
25097 Title
25098 \family default
25099  for a Paper
25100 \end_layout
25101
25102 \begin_layout Itemize
25103
25104 \change_deleted 564990737 1669801478
25105
25106 \family sans
25107 \size normal
25108 Review
25109 \family default
25110  for a Review
25111 \end_layout
25112
25113 \begin_layout Itemize
25114
25115 \change_deleted 564990737 1669801478
25116
25117 \family sans
25118 \size normal
25119 Topical
25120 \family default
25121  for a Topical review
25122 \end_layout
25123
25124 \begin_layout Itemize
25125
25126 \change_deleted 564990737 1669801478
25127
25128 \family sans
25129 \size normal
25130 Comment
25131 \family default
25132  for a Comment
25133 \end_layout
25134
25135 \begin_layout Itemize
25136
25137 \change_deleted 564990737 1669801478
25138
25139 \family sans
25140 \size normal
25141 Note
25142 \family default
25143  for a Note
25144 \end_layout
25145
25146 \begin_layout Itemize
25147
25148 \change_deleted 564990737 1669801478
25149
25150 \family sans
25151 \size normal
25152 Paper
25153 \family default
25154  for a Paper (same as Title)
25155 \end_layout
25156
25157 \begin_layout Itemize
25158
25159 \change_deleted 564990737 1669801478
25160
25161 \family sans
25162 \size normal
25163 Prelim
25164 \family default
25165  for a Preliminary communication
25166 \end_layout
25167
25168 \begin_layout Itemize
25169
25170 \change_deleted 564990737 1669801478
25171
25172 \family sans
25173 \size normal
25174 Rapid
25175 \family default
25176  for a Rapid communication
25177 \end_layout
25178
25179 \begin_layout Itemize
25180
25181 \change_deleted 564990737 1669801478
25182
25183 \family sans
25184 \size normal
25185 Letter
25186 \family default
25187  for a Letter to the editor
25188 \end_layout
25189
25190 \end_deeper
25191 \begin_layout Itemize
25192
25193 \change_deleted 564990737 1669801478
25194
25195 \size normal
25196 All title environments except of 
25197 \family sans
25198 Letter
25199 \family default
25200  can have an optional short title.
25201 \end_layout
25202
25203 \begin_layout Itemize
25204
25205 \change_deleted 564990737 1669801478
25206 There is a general title environment 
25207 \family sans
25208 Article
25209 \family default
25210  which is not directly supported by \SpecialChar LyX
25211 .
25212  This can be used as \SpecialChar TeX
25213  code when your document doesn't fit into one of the
25214  other title types.
25215 \end_layout
25216
25217 \begin_layout Standard
25218
25219 \change_deleted 564990737 1669801478
25220 For more informations like hints for special table and formula formatting,
25221  look at the IOP author guidelines.
25222 \change_unchanged
25223
25224 \end_layout
25225
25226 \begin_layout Section
25227
25228 \change_deleted 564990737 1670317155
25229 Kluwer
25230 \end_layout
25231
25232 \begin_layout Standard
25233
25234 \change_deleted 564990737 1670317155
25235 by 
25236 \noun on
25237 Panayotis Papasotiriou
25238 \end_layout
25239
25240 \begin_layout Subsection
25241
25242 \change_deleted 564990737 1670317155
25243 Overview
25244 \end_layout
25245
25246 \begin_layout Standard
25247
25248 \change_deleted 564990737 1670317155
25249 The Kluwer package is a set of macros produced by Kluwer Academic Publishers
25250  that facilitates electronic manuscript submission to the journals they
25251  publish.
25252  Most known of them (at least in my domain of interest) are 
25253 \emph on
25254 Astrophysics and Space Science
25255 \emph default
25256  and 
25257 \emph on
25258 Solar Physics
25259 \emph default
25260 , but there are many others (see a complete list at 
25261 \begin_inset Flex URL
25262 status collapsed
25263
25264 \begin_layout Plain Layout
25265
25266 http://www.wkap.nl/jrnllist.htm/JRNLHOME
25267 \end_layout
25268
25269 \end_inset
25270
25271 ).
25272  The Kluwer package may be downloaded from the site 
25273 \begin_inset Flex URL
25274 status collapsed
25275
25276 \begin_layout Plain Layout
25277
25278 http://www.wkap.nl/kaphtml.htm/STYLEFILES
25279 \end_layout
25280
25281 \end_inset
25282
25283 .
25284  A complete user guide is contained in that package (but it can also be
25285  downloaded separately).
25286 \end_layout
25287
25288 \begin_layout Standard
25289
25290 \change_deleted 564990737 1670317155
25291 \SpecialChar LyX
25292  supports many features of the package but not everything.
25293  However, the \SpecialChar TeX
25294  code needed is reduced to some 
25295 \begin_inset Quotes eld
25296 \end_inset
25297
25298 peculiar
25299 \begin_inset Quotes erd
25300 \end_inset
25301
25302  commands of the package (see
25303 \begin_inset space ~
25304 \end_inset
25305
25306
25307 \begin_inset CommandInset ref
25308 LatexCommand ref
25309 reference "subsec:kluwer_peculiarities"
25310
25311 \end_inset
25312
25313 ).
25314  I have recently used \SpecialChar LyX
25315  to write an article submitted to the 
25316 \emph on
25317 Astrophysics and Space Science
25318 \emph default
25319  without any problem.
25320 \end_layout
25321
25322 \begin_layout Subsection
25323
25324 \change_deleted 564990737 1670317155
25325 Writing a paper
25326 \end_layout
25327
25328 \begin_layout Standard
25329
25330 \change_deleted 564990737 1670317155
25331 The easiest way to write a paper is to start with the Kluwer template file.
25332  Click on 
25333 \family sans
25334 File\SpecialChar menuseparator
25335 New from
25336 \family default
25337  
25338 \family sans
25339 Template
25340 \family default
25341 , then choose the 
25342 \family typewriter
25343 kluwer.lyx
25344 \family default
25345  template.
25346  This will give an (almost) empty document that includes the most common
25347  fields found in a manuscript and a short description of their use.
25348  As in most templates, simply overwrite the existing text (including the
25349  brackets, 
25350 \family typewriter
25351 <>
25352 \family default
25353 ) with the correct information.
25354 \end_layout
25355
25356 \begin_layout Subsection
25357
25358 \change_deleted 564990737 1670317155
25359 Preparing a paper for submission
25360 \end_layout
25361
25362 \begin_layout Standard
25363
25364 \change_deleted 564990737 1670317155
25365 As in the AAS\SpecialChar TeX
25366  package, before you submit your paper to a journal you must
25367  
25368 \begin_inset Quotes eld
25369 \end_inset
25370
25371 postprocess
25372 \begin_inset Quotes erd
25373 \end_inset
25374
25375  it as follows.
25376 \end_layout
25377
25378 \begin_layout Enumerate
25379
25380 \change_deleted 564990737 1670317155
25381 Export your paper as a \SpecialChar LaTeX
25382  file.
25383  To do this, click on 
25384 \family sans
25385 File\SpecialChar menuseparator
25386 Export\SpecialChar menuseparator
25387 \SpecialChar LaTeX
25388
25389 \family default
25390 .
25391  
25392 \end_layout
25393
25394 \begin_layout Enumerate
25395
25396 \change_deleted 564990737 1670317155
25397 Edit the resulting 
25398 \family typewriter
25399 .tex
25400 \family default
25401  file with a text editor and make the following changes
25402 \end_layout
25403
25404 \begin_deeper
25405 \begin_layout Enumerate
25406
25407 \change_deleted 564990737 1670317155
25408 remove the comment lines before the 
25409 \family typewriter
25410
25411 \backslash
25412 documentclass
25413 \family default
25414  command,
25415 \end_layout
25416
25417 \begin_layout Enumerate
25418
25419 \change_deleted 564990737 1670317155
25420 remove everything between (and including) the 
25421 \family typewriter
25422
25423 \backslash
25424 makeatletter
25425 \family default
25426  and 
25427 \family typewriter
25428
25429 \backslash
25430 makeatother
25431 \family default
25432  commands, except for any commands you specifically put into the \SpecialChar LaTeX
25433  preamble.
25434 \end_layout
25435
25436 \begin_layout Standard
25437
25438 \change_deleted 564990737 1670317155
25439 Save the resulting 
25440 \family typewriter
25441 .tex
25442 \family default
25443  file.
25444 \end_layout
25445
25446 \end_deeper
25447 \begin_layout Enumerate
25448
25449 \change_deleted 564990737 1670317155
25450 Run the 
25451 \family typewriter
25452 .tex
25453 \family default
25454  file through \SpecialChar LaTeX
25455  as many times as necessary (usually up to three).
25456 \end_layout
25457
25458 \begin_layout Enumerate
25459
25460 \change_deleted 564990737 1670317155
25461 View the resulting 
25462 \family typewriter
25463 .dvi
25464 \family default
25465  document using, e.
25466 \begin_inset space \thinspace{}
25467 \end_inset
25468
25469 g.
25470 \begin_inset space \space{}
25471 \end_inset
25472
25473
25474 \family sans
25475 xdvi
25476 \family default
25477 , and check if everything is OK (it should, if you didn't make any mistake).
25478 \end_layout
25479
25480 \begin_layout Subsection
25481
25482 \change_deleted 564990737 1670317155
25483 \begin_inset Quotes eld
25484 \end_inset
25485
25486 Peculiarities
25487 \begin_inset Quotes erd
25488 \end_inset
25489
25490  of the Kluwer package
25491 \begin_inset CommandInset label
25492 LatexCommand label
25493 name "subsec:kluwer_peculiarities"
25494
25495 \end_inset
25496
25497
25498 \end_layout
25499
25500 \begin_layout Standard
25501
25502 \change_deleted 564990737 1670317155
25503 The Kluwer package has the following 
25504 \begin_inset Quotes eld
25505 \end_inset
25506
25507 peculiarities
25508 \begin_inset Quotes erd
25509 \end_inset
25510
25511 .
25512 \end_layout
25513
25514 \begin_layout Enumerate
25515
25516 \change_deleted 564990737 1670317155
25517 It is possible to write multiple articles in the same \SpecialChar LaTeX
25518  file
25519 \begin_inset Foot
25520 status collapsed
25521
25522 \begin_layout Plain Layout
25523 I can't imagine any good reason to do this.
25524 \end_layout
25525
25526 \end_inset
25527
25528 .
25529  Each article must be included in the environment 
25530 \begin_inset Quotes eld
25531 \end_inset
25532
25533 article
25534 \begin_inset Quotes erd
25535 \end_inset
25536
25537 .
25538  Unfortunately, this environment cannot be omitted, even if you write just
25539  one article.
25540  Therefore, each article starts with the command 
25541 \family typewriter
25542
25543 \backslash
25544 begin{article}
25545 \family default
25546  and, obviously, ends with the command 
25547 \family typewriter
25548
25549 \backslash
25550 end{article}
25551 \family default
25552 .
25553  Although this can be implemented in \SpecialChar LyX
25554 , I didn't included it, since it looks
25555  ugly and can confuse the novice user.
25556  Therefore, you need to enter them directly and mark them as \SpecialChar LaTeX
25557  code (the
25558  well-known 
25559 \begin_inset Quotes eld
25560 \end_inset
25561
25562 \SpecialChar TeX
25563  code
25564 \begin_inset Quotes erd
25565 \end_inset
25566
25567 ).
25568 \end_layout
25569
25570 \begin_layout Enumerate
25571
25572 \change_deleted 564990737 1670317155
25573 Information given at the beginning of the article (i.
25574 \begin_inset space \thinspace{}
25575 \end_inset
25576
25577 e.
25578 \begin_inset space \space{}
25579 \end_inset
25580
25581 title, subtitle, author, institution, running title, running author, abstract
25582  and keywords) must be included in an environment called 
25583 \begin_inset Quotes eld
25584 \end_inset
25585
25586 opening
25587 \begin_inset Quotes erd
25588 \end_inset
25589
25590 .
25591  This is not implemented in \SpecialChar LyX
25592 , so you must enter title, subtitle etc.
25593 \begin_inset space ~
25594 \end_inset
25595
25596 between two \SpecialChar TeX
25597  code lines (
25598 \family typewriter
25599
25600 \backslash
25601 begin{opening}
25602 \family default
25603  and 
25604 \family typewriter
25605
25606 \backslash
25607 end{opening}
25608 \family default
25609 ).
25610 \end_layout
25611
25612 \begin_layout Enumerate
25613
25614 \change_deleted 564990737 1670317155
25615 According to the user manual, the label of each bibliography item must be
25616  written as 
25617 \family typewriter
25618
25619 \backslash
25620 protect
25621 \backslash
25622 citeauthoryear{
25623 \family default
25624 \emph on
25625 author(s)
25626 \family typewriter
25627 \emph default
25628 }{
25629 \family default
25630 \emph on
25631 year
25632 \family typewriter
25633 \emph default
25634 }
25635 \family default
25636 .
25637 \end_layout
25638
25639 \begin_layout Standard
25640
25641 \change_deleted 564990737 1670317155
25642 The 
25643 \family typewriter
25644 kluwer.lyx
25645 \family default
25646  template takes care of all these 
25647 \begin_inset Quotes eld
25648 \end_inset
25649
25650 peculiarities
25651 \begin_inset Quotes erd
25652 \end_inset
25653
25654 .
25655  If you start a new paper using this template you don't need to do anything
25656  special.
25657  Just 
25658 \end_layout
25659
25660 \begin_layout Enumerate
25661
25662 \change_deleted 564990737 1670317155
25663 don't delete the \SpecialChar TeX
25664  code included in the template, and
25665 \end_layout
25666
25667 \begin_layout Enumerate
25668
25669 \change_deleted 564990737 1670317155
25670 copy the example bibliography item included in the template and modify it
25671  as necessary to enter new bibliography items.
25672 \end_layout
25673
25674 \begin_layout Section
25675
25676 \change_deleted 564990737 1671097446
25677 Paper
25678 \end_layout
25679
25680 \begin_layout Standard
25681
25682 \change_deleted 564990737 1671097446
25683 The document class 
25684 \family sans
25685 paper
25686 \family default
25687  provides an alternative to the standard 
25688 \family sans
25689 article
25690 \family default
25691  class.
25692  It provides similar functionality, but you might prefer this layout with
25693  sans serif sections, headings, and more.
25694 \end_layout
25695
25696 \begin_layout Section
25697
25698 \change_deleted 564990737 1671097446
25699 Springer Journals (
25700 \family sans
25701 svjour
25702 \family default
25703 )
25704 \end_layout
25705
25706 \begin_layout Standard
25707
25708 \change_deleted 564990737 1671097446
25709 by 
25710 \noun on
25711 Martin Vermeer
25712 \end_layout
25713
25714 \begin_layout Subsection
25715
25716 \change_deleted 564990737 1671097446
25717 Description
25718 \end_layout
25719
25720 \begin_layout Standard
25721
25722 \change_deleted 564990737 1671097446
25723 These are the layout files for some of the journal formats used by Springer
25724  Verlag and listed on 
25725 \begin_inset Flex URL
25726 status collapsed
25727
25728 \begin_layout Plain Layout
25729
25730 http://www.springer.de/author/tex/help-journals.html
25731 \end_layout
25732
25733 \end_inset
25734
25735 , where you should also go to fetch the class files (yes, these are \SpecialChar LaTeX2e
25736  now!).
25737  It is a modular system: the things common to all journals are implemented
25738  in 
25739 \family typewriter
25740 svjour.inc
25741 \family default
25742 , which journal-specific layout files (such as, e.
25743 \begin_inset space \thinspace{}
25744 \end_inset
25745
25746 g.
25747 \begin_inset space \space{}
25748 \end_inset
25749
25750
25751 \family typewriter
25752 svjog.layout
25753 \family default
25754  for Journal of Geodesy) can include.
25755 \end_layout
25756
25757 \begin_layout Standard
25758
25759 \change_deleted 564990737 1671097446
25760 This means that implementing support for any other Springer journal on this
25761  list is as simple as writing your own 
25762 \family typewriter
25763 sv
25764 \family default
25765 <myjournal>
25766 \family typewriter
25767 .layout
25768 \family default
25769  file following the outline given in 
25770 \family typewriter
25771 svjog.layout
25772 \family default
25773 .
25774  
25775 \end_layout
25776
25777 \begin_layout Standard
25778
25779 \change_deleted 564990737 1671097446
25780 It is reasonably well tested only for the Journal of Geodesy.
25781  
25782 \family typewriter
25783 svjour
25784 \family default
25785  and 
25786 \family typewriter
25787 svjog
25788 \family default
25789  come with the standard \SpecialChar LyX
25790  distribution.
25791  Install the relevant class file (downloaded from Springer) in a proper
25792  directory, reconfigure \SpecialChar LaTeX
25793  (in the te\SpecialChar TeX
25794  case by running 
25795 \family typewriter
25796 texhash
25797 \family default
25798 , as root if necessary — doesn't \SpecialChar LyX
25799  take care of this?), reconfigure \SpecialChar LyX
25800  and
25801  it should work.
25802 \end_layout
25803
25804 \begin_layout Subsection
25805
25806 \change_deleted 564990737 1671097446
25807 New styles
25808 \end_layout
25809
25810 \begin_layout Standard
25811
25812 \change_deleted 564990737 1671097446
25813 A large number of theorem-like styles — 
25814 \family sans
25815 Claim, Conjecture,
25816 \family default
25817  
25818 \family sans
25819 \SpecialChar ldots
25820 Theorem
25821 \family default
25822 .
25823 \end_layout
25824
25825 \begin_layout Standard
25826
25827 \change_deleted 564990737 1671097446
25828
25829 \family sans
25830 Headnote, Dedication, Subtitle, Running_\SpecialChar LaTeX
25831 _Title, Author_Running, Institute,
25832  Mail, Offprints, Keywords, Acknowledgements, Acknowledgement
25833 \family default
25834 .
25835  See the Springer class file documentation for details.
25836 \end_layout
25837
25838 \begin_layout Subsection
25839
25840 \change_deleted 564990737 1671097446
25841 Supported journals
25842 \end_layout
25843
25844 \begin_layout Itemize
25845
25846 \change_deleted 564990737 1671097446
25847
25848 \emph on
25849 Journal of Geodesy
25850 \emph default
25851
25852 \family typewriter
25853 svjog.layout
25854 \family default
25855  — Martin Vermeer
25856 \end_layout
25857
25858 \begin_layout Itemize
25859
25860 \change_deleted 564990737 1671097446
25861
25862 \emph on
25863 Probability Theory and Related Fields
25864 \emph default
25865
25866 \family typewriter
25867 svprobth.layout
25868 \family default
25869  — Jean-Marc Lasgouttes
25870 \end_layout
25871
25872 \begin_layout Standard
25873
25874 \change_deleted 564990737 1671097446
25875 Add your own, it isn't so hard!
25876 \end_layout
25877
25878 \begin_layout Subsection
25879
25880 \change_deleted 564990737 1671097446
25881 Credits
25882 \end_layout
25883
25884 \begin_layout Standard
25885
25886 \change_deleted 564990737 1671097446
25887 These files are partly based on the older 
25888 \family typewriter
25889 ejour2.layout
25890 \family default
25891 , which was again based on a tinkered-with version of an old \SpecialChar LaTeX
25892  2.09 style
25893  file from Springer.
25894  All this, and the 
25895 \family typewriter
25896 ejour2
25897 \family default
25898  layout, are now defunct.
25899  Jean-Marc Lasgouttes helped out big in making me find my way around the
25900  \SpecialChar LyX
25901  layout file mechanism.
25902 \end_layout
25903
25904 \begin_layout Subsection
25905
25906 \change_deleted 564990737 1671097446
25907 Bugs
25908 \end_layout
25909
25910 \begin_layout Standard
25911
25912 \change_deleted 564990737 1671097446
25913 Probably.
25914  But probably less than in the old hacked-\SpecialChar LaTeX
25915  
25916 \family typewriter
25917 ejour2
25918 \family default
25919 .
25920 \end_layout
25921
25922 \begin_layout Chapter
25923 \SpecialChar LyX
25924  Features needing Extra Software
25925 \end_layout
25926
25927 \begin_layout Section
25928 Checking \SpecialChar TeX
25929
25930 \end_layout
25931
25932 \begin_layout Standard
25933 by 
25934 \noun on
25935 Asger Alstrup
25936 \end_layout
25937
25938 \begin_layout Subsection
25939 Introduction
25940 \end_layout
25941
25942 \begin_layout Standard
25943 If you have the 
25944 \family typewriter
25945 chktex
25946 \family default
25947  program installed
25948 \begin_inset Foot
25949 status collapsed
25950
25951 \begin_layout Plain Layout
25952
25953 \family typewriter
25954 chktex
25955 \family default
25956  is not yet available when you are using the \SpecialChar LaTeX
25957  distribution MiK\SpecialChar TeX
25958 .
25959 \end_layout
25960
25961 \end_inset
25962
25963 , you'll find in the 
25964 \family sans
25965 Tools
25966 \family default
25967  menu the entry: 
25968 \family sans
25969 Check
25970 \begin_inset space ~
25971 \end_inset
25972
25973 TeX
25974 \family default
25975 .
25976  You can get 
25977 \family typewriter
25978 chktex
25979 \family default
25980  from CTAN,
25981 \begin_inset Newline newline
25982 \end_inset
25983
25984
25985 \begin_inset CommandInset href
25986 LatexCommand href
25987 target "https://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
25988 literal "false"
25989
25990 \end_inset
25991
25992 .
25993 \end_layout
25994
25995 \begin_layout Standard
25996 The 
25997 \family sans
25998 Chk\SpecialChar TeX
25999
26000 \family default
26001  package is a program that was written by 
26002 \begin_inset Flex Noun
26003 status collapsed
26004
26005 \begin_layout Plain Layout
26006 Jens T.
26007 \begin_inset space ~
26008 \end_inset
26009
26010 Berger Thielemann
26011 \end_layout
26012
26013 \end_inset
26014
26015  in frustration because some constructs in \SpecialChar LaTeX
26016  are sometimes non-intuitive,
26017  and easy to forget.
26018  The program runs over your \SpecialChar LaTeX
26019  file, checks the integrity of the file, and
26020  flags some common errors.
26021  In other technical words, it is 
26022 \family typewriter
26023 lint
26024 \family default
26025  for \SpecialChar LaTeX
26026 .
26027 \end_layout
26028
26029 \begin_layout Standard
26030 Well, what is a syntax checker doing in \SpecialChar LyX
26031  which is supposed to produce correct
26032  \SpecialChar LaTeX
26033  anyways? The answer is simple: Just as 
26034 \family typewriter
26035 Lint
26036 \family default
26037  not only checks the 
26038 \emph on
26039 syntax
26040 \emph default
26041  of C programs, but also does 
26042 \emph on
26043 semantic
26044 \emph default
26045  checks for type-errors, 
26046 \family sans
26047 Chk\SpecialChar TeX
26048
26049 \family default
26050  catches some common 
26051 \emph on
26052 typographic
26053 \emph default
26054  errors, in addition to the syntactical ones.
26055  Specifically, 
26056 \family sans
26057 Chk\SpecialChar TeX
26058
26059 \family default
26060  is capable of detecting several common errors, such as
26061 \end_layout
26062
26063 \begin_layout Itemize
26064 Ellipsis detection:
26065 \begin_inset Newline newline
26066 \end_inset
26067
26068 Use \SpecialChar ldots
26069  instead of ...
26070 \end_layout
26071
26072 \begin_layout Itemize
26073 No space in front of/after parenthesis:
26074 \begin_inset Newline newline
26075 \end_inset
26076
26077 ( wrong spacing )
26078 \end_layout
26079
26080 \begin_layout Itemize
26081 Enforcement of normal space after common abbreviations:
26082 \begin_inset Newline newline
26083 \end_inset
26084
26085 e.
26086 \begin_inset space \thinspace{}
26087 \end_inset
26088
26089 g.
26090 \begin_inset space \space{}
26091 \end_inset
26092
26093 is too wide spacing.
26094 \end_layout
26095
26096 \begin_layout Itemize
26097 Enforcement of end-of-sentence space when the last sentence ends with a
26098  capital letter:
26099 \begin_inset Newline newline
26100 \end_inset
26101
26102 This is a TEST.
26103  And this is wrong spacing.
26104 \end_layout
26105
26106 \begin_layout Itemize
26107 Space in front of labels and similar commands:
26108 \begin_inset Newline newline
26109 \end_inset
26110
26111 The label should stick right up to the text to avoid falling to a wrong
26112  page.
26113  
26114 \begin_inset CommandInset label
26115 LatexCommand label
26116 name "sec:chktex"
26117
26118 \end_inset
26119
26120  
26121 \begin_inset Foot
26122 status collapsed
26123
26124 \begin_layout Plain Layout
26125 This footnote is in danger of falling off to a wrong page
26126 \end_layout
26127
26128 \end_inset
26129
26130  The label is separated too much.
26131 \end_layout
26132
26133 \begin_layout Itemize
26134 Space in front of references, instead of hard spaces:
26135 \begin_inset Newline newline
26136 \end_inset
26137
26138 If you have bad luck, the text will break right between the referenced text
26139  and reference number, and that's a pity.
26140  See section 
26141 \begin_inset CommandInset ref
26142 LatexCommand ref
26143 reference "sec:chktex"
26144
26145 \end_inset
26146
26147 .
26148 \end_layout
26149
26150 \begin_layout Itemize
26151 Use of 
26152 \begin_inset Quotes eld
26153 \end_inset
26154
26155 x
26156 \begin_inset Quotes erd
26157 \end_inset
26158
26159  instead of 
26160 \begin_inset Formula $\times$
26161 \end_inset
26162
26163  between numbers:
26164 \begin_inset Newline newline
26165 \end_inset
26166
26167 2x2 looks cheap compared to 
26168 \begin_inset Formula $2\times2$
26169 \end_inset
26170
26171 .
26172 \end_layout
26173
26174 \begin_layout Standard
26175 and more \SpecialChar ldots
26176  It is an invaluable tool when you are 
26177 \begin_inset Quotes eld
26178 \end_inset
26179
26180 finishing up
26181 \begin_inset Quotes erd
26182 \end_inset
26183
26184  your document before printing, and you should run it right after the obligatory
26185  spelling check, and before you go fine tuning the typesetting.
26186 \end_layout
26187
26188 \begin_layout Subsection
26189 How to use it
26190 \end_layout
26191
26192 \begin_layout Standard
26193 If you have the program installed, usage is as simple as choosing 
26194 \family sans
26195 Tools\SpecialChar menuseparator
26196 Check
26197 \begin_inset space ~
26198 \end_inset
26199
26200 TeX
26201 \family default
26202 .
26203  This will make \SpecialChar LyX
26204  generate a \SpecialChar LaTeX
26205  file of your document, start 
26206 \family sans
26207 Chk\SpecialChar TeX
26208
26209 \family default
26210  to check it, and then make \SpecialChar LyX
26211  insert 
26212 \begin_inset Quotes eld
26213 \end_inset
26214
26215 error boxes
26216 \begin_inset Quotes erd
26217 \end_inset
26218
26219  with the warnings from 
26220 \family sans
26221 Chk\SpecialChar TeX
26222
26223 \family default
26224 , if there were any.
26225  The warnings will be placed close to the point of the mistake, and you
26226  can quickly find them by using the 
26227 \family sans
26228 Navigate\SpecialChar menuseparator
26229 Error
26230 \family default
26231  menu item, or the shortcut key 
26232 \family sans
26233 C-g
26234 \family default
26235  from the default 
26236 \family typewriter
26237 cua
26238 \family default
26239  bind file.
26240  Open the error boxes by clicking on them with the mouse, or use the shortcut
26241  key 
26242 \family sans
26243 C-i
26244 \family default
26245  from 
26246 \family typewriter
26247 cua
26248 \family default
26249  bindings, or the corresponding 
26250 \family sans
26251 C-o
26252 \family default
26253  for the alternate 
26254 \family typewriter
26255 emacs
26256 \family default
26257  bind file.
26258  Read the warning and correct the mistake, if it is a mistake.
26259  If you have trouble understanding what the warning is about, you can safely
26260  ignore it.
26261  Remember that there is a hidden layer between the document on screen and
26262  the technical details in invoking 
26263 \family sans
26264 Chk\SpecialChar TeX
26265
26266 \family default
26267 , and this gap can make some warnings seem arcane or just plain silly.
26268 \end_layout
26269
26270 \begin_layout Standard
26271 This document is an excellent testing bed for the feature, and it should
26272  provide quite a few warnings for you to fiddle with.
26273  Since computers are only so smart, expect most of the warnings to be false
26274  alarms, though.
26275 \end_layout
26276
26277 \begin_layout Subsection
26278 How to fine tune it
26279 \end_layout
26280
26281 \begin_layout Standard
26282 Sometimes, you'll find that 
26283 \family sans
26284 Chk\SpecialChar TeX
26285
26286 \family default
26287  makes more noise than suits your mood.
26288  Then you can choose not to use it, wait until your mood changes, or try
26289  to customize 
26290 \family sans
26291 Chk\SpecialChar TeX
26292
26293 \family default
26294  to get better along with you.
26295 \end_layout
26296
26297 \begin_layout Standard
26298 Although 
26299 \family sans
26300 Chk\SpecialChar TeX
26301
26302 \family default
26303  
26304 \emph on
26305 is
26306 \emph default
26307  very configurable and extensible, you should not expect to solve all problems
26308  with 
26309 \family sans
26310 Chk\SpecialChar TeX
26311
26312 \family default
26313  in \SpecialChar LyX
26314  this way.
26315  Since \SpecialChar LyX
26316  has to generate a somewhat special \SpecialChar LaTeX
26317  file to be able to match the
26318  line numbers from the 
26319 \family sans
26320 Chk\SpecialChar TeX
26321
26322 \family default
26323  output
26324 \begin_inset Foot
26325 status collapsed
26326
26327 \begin_layout Plain Layout
26328 You can inspect the specific output from 
26329 \family sans
26330 chktex
26331 \family default
26332  by using 
26333 \family sans
26334 Document\SpecialChar menuseparator
26335 \SpecialChar LaTeX
26336
26337 \begin_inset space ~
26338 \end_inset
26339
26340 Log
26341 \family default
26342  right after a 
26343 \family sans
26344 chktex
26345 \family default
26346  run.
26347 \end_layout
26348
26349 \end_inset
26350
26351  to the internal document structure, some of the warnings will not appear
26352  correctly.
26353  There are two things you can do about this:
26354 \end_layout
26355
26356 \begin_layout Itemize
26357 Fine tune the 
26358 \family sans
26359 Chk\SpecialChar TeX
26360
26361 \family default
26362  invocation command line in 
26363 \begin_inset Flex Noun
26364 status collapsed
26365
26366 \begin_layout Plain Layout
26367 Tools\SpecialChar menuseparator
26368 Preferences\SpecialChar menuseparator
26369 Output\SpecialChar menuseparator
26370 LaTeX\SpecialChar menuseparator
26371 CheckTeX command
26372 \end_layout
26373
26374 \end_inset
26375
26376 , or the global 
26377 \family sans
26378 Chk\SpecialChar TeX
26379
26380 \family default
26381  installation configuration file (usually with the file 
26382 \family typewriter
26383 chktexrc
26384 \family default
26385 ).
26386  See below to learn what warnings can be enabled and disabled on the command
26387  line.
26388 \end_layout
26389
26390 \begin_layout Itemize
26391 Export your document as a raw \SpecialChar LaTeX
26392  file using 
26393 \family sans
26394 File\SpecialChar menuseparator
26395 Export\SpecialChar menuseparator
26396 \SpecialChar LaTeX
26397
26398 \family default
26399  and run 
26400 \family typewriter
26401 chktex
26402 \family default
26403  manually on that.
26404  Invoked in this way, it can be a hassle to find the corresponding place
26405  in the document inside \SpecialChar LyX
26406 , but with a little patience, you should be able
26407  to do it.
26408 \end_layout
26409
26410 \begin_layout Standard
26411 Here follows the warning messages that can be enabled and disabled in 
26412 \family sans
26413 Preferences
26414 \family default
26415 .
26416  Use 
26417 \family typewriter
26418 -n#
26419 \family default
26420  to disable a warning, and 
26421 \family typewriter
26422 -w#
26423 \family default
26424  to enable a warning.
26425  The emphasized entries are disabled by default, because the default is
26426  "
26427 \family typewriter
26428 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
26429 \family default
26430 ".
26431 \end_layout
26432
26433 \begin_layout Standard
26434 Notice that you should only use the options that enable and disable warnings,
26435  because \SpecialChar LyX
26436  relies on some of the other command line parameters to be set
26437  in a specific way to have a chance to communicate with 
26438 \family typewriter
26439 chktex
26440 \family default
26441 .
26442 \end_layout
26443
26444 \begin_layout Enumerate
26445
26446 \size small
26447 \emph on
26448 Command terminated with space.
26449 \end_layout
26450
26451 \begin_layout Enumerate
26452
26453 \size small
26454 Non-breaking space (
26455 \begin_inset Quotes eld
26456 \end_inset
26457
26458
26459 \family typewriter
26460 ~
26461 \family default
26462
26463 \begin_inset Quotes erd
26464 \end_inset
26465
26466 ) should have been used.
26467 \end_layout
26468
26469 \begin_layout Enumerate
26470
26471 \size small
26472 \emph on
26473 You should enclose the previous parenthesis with 
26474 \begin_inset Quotes eld
26475 \end_inset
26476
26477
26478 \family typewriter
26479 {}
26480 \family default
26481
26482 \begin_inset Quotes erd
26483 \end_inset
26484
26485 .
26486 \end_layout
26487
26488 \begin_layout Enumerate
26489
26490 \size small
26491 Italic correction (
26492 \begin_inset Quotes eld
26493 \end_inset
26494
26495
26496 \family typewriter
26497
26498 \backslash
26499 /
26500 \family default
26501
26502 \begin_inset Quotes erd
26503 \end_inset
26504
26505 ) found in non-italic buffer.
26506 \end_layout
26507
26508 \begin_layout Enumerate
26509
26510 \size small
26511 Italic correction (
26512 \begin_inset Quotes eld
26513 \end_inset
26514
26515
26516 \family typewriter
26517
26518 \backslash
26519 /
26520 \family default
26521
26522 \begin_inset Quotes erd
26523 \end_inset
26524
26525 ) found more than once.
26526 \end_layout
26527
26528 \begin_layout Enumerate
26529
26530 \size small
26531 \emph on
26532 No italic correction (
26533 \begin_inset Quotes eld
26534 \end_inset
26535
26536
26537 \family typewriter
26538
26539 \backslash
26540 /
26541 \family default
26542
26543 \begin_inset Quotes erd
26544 \end_inset
26545
26546 ) found.
26547 \end_layout
26548
26549 \begin_layout Enumerate
26550
26551 \size small
26552 Accent command 
26553 \begin_inset Quotes eld
26554 \end_inset
26555
26556
26557 \family typewriter
26558 cmd
26559 \family default
26560
26561 \begin_inset Quotes erd
26562 \end_inset
26563
26564  needs use of 
26565 \begin_inset Quotes eld
26566 \end_inset
26567
26568
26569 \family typewriter
26570 cmd
26571 \family default
26572
26573 \begin_inset Quotes erd
26574 \end_inset
26575
26576 .
26577 \end_layout
26578
26579 \begin_layout Enumerate
26580
26581 \size small
26582 Wrong length of dash may have been used.
26583 \end_layout
26584
26585 \begin_layout Enumerate
26586
26587 \size small
26588 \emph on
26589 \begin_inset Quotes eld
26590 \end_inset
26591
26592
26593 \family typewriter
26594 %s
26595 \family default
26596
26597 \begin_inset Quotes erd
26598 \end_inset
26599
26600  expected, found 
26601 \begin_inset Quotes eld
26602 \end_inset
26603
26604
26605 \family typewriter
26606 %s
26607 \family default
26608
26609 \begin_inset Quotes erd
26610 \end_inset
26611
26612 .
26613 \end_layout
26614
26615 \begin_layout Enumerate
26616
26617 \size small
26618 Solo 
26619 \begin_inset Quotes eld
26620 \end_inset
26621
26622
26623 \family typewriter
26624 %s
26625 \family default
26626
26627 \begin_inset Quotes erd
26628 \end_inset
26629
26630  found.
26631 \end_layout
26632
26633 \begin_layout Enumerate
26634
26635 \size small
26636 You should use 
26637 \begin_inset Quotes eld
26638 \end_inset
26639
26640
26641 \family typewriter
26642 %s
26643 \family default
26644
26645 \begin_inset Quotes erd
26646 \end_inset
26647
26648  to achieve an ellipsis.
26649 \end_layout
26650
26651 \begin_layout Enumerate
26652
26653 \size small
26654 Inter-word spacing (
26655 \begin_inset Quotes eld
26656 \end_inset
26657
26658
26659 \family typewriter
26660
26661 \backslash
26662
26663 \family default
26664  
26665 \begin_inset Quotes eld
26666 \end_inset
26667
26668 ) should perhaps be used.
26669 \end_layout
26670
26671 \begin_layout Enumerate
26672
26673 \size small
26674 Inter-sentence spacing (
26675 \begin_inset Quotes eld
26676 \end_inset
26677
26678
26679 \family typewriter
26680
26681 \backslash
26682 @
26683 \family default
26684
26685 \begin_inset Quotes erd
26686 \end_inset
26687
26688 ) should perhaps be used.
26689 \end_layout
26690
26691 \begin_layout Enumerate
26692
26693 \size small
26694 Could not find argument for command.
26695 \end_layout
26696
26697 \begin_layout Enumerate
26698
26699 \size small
26700 No match found for 
26701 \begin_inset Quotes eld
26702 \end_inset
26703
26704
26705 \family typewriter
26706 %s
26707 \family default
26708
26709 \begin_inset Quotes erd
26710 \end_inset
26711
26712 .
26713 \end_layout
26714
26715 \begin_layout Enumerate
26716
26717 \size small
26718 Math mode still on at end of \SpecialChar LaTeX
26719  file.
26720 \end_layout
26721
26722 \begin_layout Enumerate
26723
26724 \size small
26725 Number of 
26726 \begin_inset Quotes eld
26727 \end_inset
26728
26729
26730 \family typewriter
26731 char
26732 \family default
26733
26734 \begin_inset Quotes erd
26735 \end_inset
26736
26737  doesn't match the number of 
26738 \begin_inset Quotes eld
26739 \end_inset
26740
26741
26742 \family typewriter
26743 char
26744 \family default
26745
26746 \begin_inset Quotes erd
26747 \end_inset
26748
26749 .
26750 \end_layout
26751
26752 \begin_layout Enumerate
26753
26754 \size small
26755 You should use either 
26756 \family typewriter
26757
26758 \begin_inset Quotes eld
26759 \end_inset
26760
26761
26762 \family default
26763  or 
26764 \family typewriter
26765
26766 \begin_inset Quotes erd
26767 \end_inset
26768
26769
26770 \family default
26771  as an alternative to 
26772 \begin_inset Quotes eld
26773 \end_inset
26774
26775
26776 \family typewriter
26777 "
26778 \family default
26779
26780 \begin_inset Quotes erd
26781 \end_inset
26782
26783 .
26784 \end_layout
26785
26786 \begin_layout Enumerate
26787
26788 \size small
26789 You should use "
26790 \family typewriter
26791 '
26792 \family default
26793 " (ASCII 39) instead of "
26794 \family typewriter
26795 ´
26796 \family default
26797 " (ASCII 180).
26798 \end_layout
26799
26800 \begin_layout Enumerate
26801
26802 \size small
26803 User-specified pattern found.
26804 \end_layout
26805
26806 \begin_layout Enumerate
26807
26808 \size small
26809 This command might not be intended.
26810 \end_layout
26811
26812 \begin_layout Enumerate
26813
26814 \size small
26815 \emph on
26816 Comment displayed.
26817 \end_layout
26818
26819 \begin_layout Enumerate
26820
26821 \size small
26822 Either 
26823 \family typewriter
26824 ''
26825 \backslash
26826 ,'
26827 \family default
26828  or 
26829 \family typewriter
26830 '
26831 \backslash
26832 ,''
26833 \family default
26834  will look better.
26835 \end_layout
26836
26837 \begin_layout Enumerate
26838
26839 \size small
26840 Delete this space to maintain correct page references.
26841 \end_layout
26842
26843 \begin_layout Enumerate
26844
26845 \size small
26846 \emph on
26847 You might wish to put this between a pair of 
26848 \begin_inset Quotes eld
26849 \end_inset
26850
26851
26852 \family typewriter
26853 {}
26854 \family default
26855
26856 \begin_inset Quotes erd
26857 \end_inset
26858
26859 .
26860 \end_layout
26861
26862 \begin_layout Enumerate
26863
26864 \size small
26865 You ought to remove spaces in front of punctuation.
26866 \end_layout
26867
26868 \begin_layout Enumerate
26869
26870 \size small
26871 Could not execute \SpecialChar LaTeX
26872  command.
26873 \end_layout
26874
26875 \begin_layout Enumerate
26876
26877 \size small
26878 Don't use 
26879 \family typewriter
26880
26881 \backslash
26882 /
26883 \family default
26884  in front of small punctuation.
26885 \end_layout
26886
26887 \begin_layout Enumerate
26888
26889 \family typewriter
26890 \size small
26891 $
26892 \backslash
26893 times$
26894 \family default
26895  may look prettier here.
26896 \end_layout
26897
26898 \begin_layout Enumerate
26899
26900 \size small
26901 \emph on
26902 Multiple spaces detected in output.
26903 \end_layout
26904
26905 \begin_layout Enumerate
26906
26907 \size small
26908 This text may be ignored.
26909 \end_layout
26910
26911 \begin_layout Enumerate
26912
26913 \size small
26914 Use 
26915 \family typewriter
26916
26917 \begin_inset Quotes eld
26918 \end_inset
26919
26920
26921 \family default
26922  to begin quotation, not 
26923 \family typewriter
26924 '
26925 \family default
26926 .
26927 \end_layout
26928
26929 \begin_layout Enumerate
26930
26931 \size small
26932 Use 
26933 \family typewriter
26934 '
26935 \family default
26936  to end quotation, not 
26937 \family typewriter
26938
26939 \begin_inset Quotes eld
26940 \end_inset
26941
26942
26943 \family default
26944 .
26945 \end_layout
26946
26947 \begin_layout Enumerate
26948
26949 \size small
26950 Don't mix quotes.
26951 \end_layout
26952
26953 \begin_layout Enumerate
26954
26955 \size small
26956 You should perhaps use 
26957 \begin_inset Quotes eld
26958 \end_inset
26959
26960
26961 \family typewriter
26962 cmd
26963 \family default
26964
26965 \begin_inset Quotes erd
26966 \end_inset
26967
26968  instead.
26969 \end_layout
26970
26971 \begin_layout Enumerate
26972
26973 \size small
26974 You should put a space in front of/after parenthesis.
26975 \end_layout
26976
26977 \begin_layout Enumerate
26978
26979 \size small
26980 You should avoid spaces in front of/after parenthesis.
26981 \end_layout
26982
26983 \begin_layout Enumerate
26984
26985 \size small
26986 \emph on
26987 You should not use punctuation in front of/after quotes.
26988 \end_layout
26989
26990 \begin_layout Enumerate
26991
26992 \size small
26993 Double space found.
26994 \end_layout
26995
26996 \begin_layout Enumerate
26997
26998 \size small
26999 You should put punctuation outside inner/inside display math mode.
27000 \end_layout
27001
27002 \begin_layout Enumerate
27003
27004 \size small
27005 You ought to not use primitive \SpecialChar TeX
27006  in \SpecialChar LaTeX
27007  code.
27008 \end_layout
27009
27010 \begin_layout Enumerate
27011
27012 \size small
27013 You should remove spaces in front of 
27014 \begin_inset Quotes eld
27015 \end_inset
27016
27017
27018 \family typewriter
27019 %s
27020 \family default
27021
27022 \begin_inset Quotes erd
27023 \end_inset
27024
27025
27026 \end_layout
27027
27028 \begin_layout Enumerate
27029
27030 \size small
27031 \begin_inset Quotes eld
27032 \end_inset
27033
27034
27035 \family typewriter
27036 %s
27037 \family default
27038
27039 \begin_inset Quotes erd
27040 \end_inset
27041
27042  is normally not followed by 
27043 \begin_inset Quotes eld
27044 \end_inset
27045
27046
27047 \family typewriter
27048 %c
27049 \family default
27050
27051 \begin_inset Quotes erd
27052 \end_inset
27053
27054 .
27055 \end_layout
27056
27057 \begin_layout Standard
27058 In later versions of \SpecialChar LyX
27059 , we hope to provide a more complete interface to this
27060  tool (and it's smaller cousin 
27061 \family typewriter
27062 lacheck
27063 \family default
27064 ) to exploit the full power of it.
27065  But it's not exactly useless as it is now: go try it on one of your existing
27066  documents of a certain length and be surprised.
27067 \end_layout
27068
27069 \begin_layout Section
27070 Version Control in \SpecialChar LyX
27071
27072 \end_layout
27073
27074 \begin_layout Standard
27075 by
27076 \noun on
27077  Lars Gullik Bjønnes 
27078 \noun default
27079 and 
27080 \noun on
27081 Pavel Sanda
27082 \end_layout
27083
27084 \begin_layout Subsection
27085 Introduction
27086 \end_layout
27087
27088 \begin_layout Standard
27089 \SpecialChar LyX
27090  supports some of the most basic RCS/CVS/SVN/GIT commands.
27091  If you need something a bit more sophisticated you will have to do that
27092  manually in a terminal.
27093 \end_layout
27094
27095 \begin_layout Standard
27096 Also note that CVS support is not as good as subversion support, so we advise
27097  using SVN instead.
27098  A good place to start learning Subversion is the SVN Book
27099 \begin_inset Foot
27100 status collapsed
27101
27102 \begin_layout Plain Layout
27103 \begin_inset CommandInset href
27104 LatexCommand href
27105 target "http://svnbook.red-bean.com/"
27106 literal "false"
27107
27108 \end_inset
27109
27110
27111 \end_layout
27112
27113 \end_inset
27114
27115 .
27116  In the case of RCS you should read 
27117 \begin_inset Quotes eld
27118 \end_inset
27119
27120 rcsintro
27121 \begin_inset Quotes erd
27122 \end_inset
27123
27124  (a man file, read it with 
27125 \family typewriter
27126 man rcsintro
27127 \family default
27128 ).
27129  This file describes all the basic features of RCS.
27130  You should especially notice the comment about a RCS directory, and the
27131  notion of a master RCS file (the file ending in 
27132 \family typewriter
27133 ,v
27134 \family default
27135 ).
27136 \end_layout
27137
27138 \begin_layout Standard
27139 Before you begin to use the version control features in \SpecialChar LyX
27140 , you should be
27141  familiar with RCS/CVS/SVN/GIT usage.
27142  The implementation in \SpecialChar LyX
27143  assumes a recent version of the GNU RCS or CVS/SVN
27144  package — no guarantees are made for older versions.
27145  Most of the log messages are not currently displayed after operations —
27146  you can check them in the Messages pane if you are unsure.
27147  Regular users of version control will appreciate the VC toolbar, which
27148  can be enabled via 
27149 \family sans
27150 View\SpecialChar menuseparator
27151 Toolbars\SpecialChar menuseparator
27152 Version
27153 \begin_inset space ~
27154 \end_inset
27155
27156 Control
27157 \family default
27158 .
27159 \end_layout
27160
27161 \begin_layout Standard
27162 For introducing your own external commands consult 
27163 \begin_inset Flex Code
27164 status collapsed
27165
27166 \begin_layout Plain Layout
27167 vc-command
27168 \end_layout
27169
27170 \end_inset
27171
27172  in the manual 
27173 \emph on
27174 \SpecialChar LyX
27175  Functions
27176 \emph default
27177 .
27178 \end_layout
27179
27180 \begin_layout Standard
27181 It is strongly recommended to store documents in uncompressed format if
27182  using version control (uncheck 
27183 \family sans
27184 Document\SpecialChar menuseparator
27185 Compressed
27186 \family default
27187  if it is checked): Uncompressed LyX documents are text files and therefore
27188  for merging two different versions by version control systems.
27189  Compressed LyX documents are binary files, which cannot be merged by version
27190  control systems.
27191 \end_layout
27192
27193 \begin_layout Subsection
27194 RCS commands in \SpecialChar LyX
27195
27196 \end_layout
27197
27198 \begin_layout Standard
27199 The following sections describe the RCS commands supported by \SpecialChar LyX
27200 .
27201  You can find them in the 
27202 \family sans
27203 File\SpecialChar menuseparator
27204 Version
27205 \begin_inset space ~
27206 \end_inset
27207
27208 Control
27209 \family default
27210  submenu.
27211  \SpecialChar LyX
27212  was tested against RCS 5.7/5.8.
27213 \end_layout
27214
27215 \begin_layout Subsubsection
27216
27217 \family sans
27218 Register
27219 \end_layout
27220
27221 \begin_layout Standard
27222 If your document is not under revision control, this is the only item shown
27223  in the menu.
27224  And if it is under revision control, the 
27225 \family sans
27226 Register
27227 \family default
27228  item is not visible.
27229  
27230 \end_layout
27231
27232 \begin_layout Standard
27233 This command registers your document with RCS (unless you are under the
27234  directory managed by CVS)\SpecialChar endofsentence
27235  You are asked interactively to supply an initial
27236  description of the document.
27237  The document is now set in Read-Only mode and you have to 
27238 \family sans
27239 Check
27240 \begin_inset space ~
27241 \end_inset
27242
27243 Out
27244 \begin_inset space ~
27245 \end_inset
27246
27247 For
27248 \begin_inset space ~
27249 \end_inset
27250
27251 Edit
27252 \family default
27253 , before making any changes to it.
27254  A document under revision control has a 
27255 \begin_inset Quotes eld
27256 \end_inset
27257
27258 [RCS:<version> <locker>]
27259 \begin_inset Quotes erd
27260 \end_inset
27261
27262  item tagged to the filename in the minibuffer.
27263 \end_layout
27264
27265 \begin_layout Standard
27266 RCS command that is run:
27267 \end_layout
27268
27269 \begin_layout LyX-Code
27270
27271 \family typewriter
27272 ci -q -u -i -t-"<initial description>" <file-name>
27273 \end_layout
27274
27275 \begin_layout Standard
27276 Read 
27277 \family typewriter
27278 man ci
27279 \family default
27280  to understand the switches.
27281  
27282 \end_layout
27283
27284 \begin_layout Subsubsection
27285
27286 \family sans
27287 Check In Changes
27288 \end_layout
27289
27290 \begin_layout Standard
27291 When you are finished editing a file, you check in your changes.
27292  When you do this, you are asked for a description of the changes.
27293  This is stored in the history log.
27294  The version number is bumped, your changes are applied to the master RCS
27295  file, the document is unlocked and set to Read-Only mode.
27296 \end_layout
27297
27298 \begin_layout Itemize
27299 RCS command: 
27300 \family typewriter
27301 ci -q -u -m"<description>" <file-name>
27302 \end_layout
27303
27304 \begin_layout Subsubsection
27305
27306 \family sans
27307 Check Out For Edit
27308 \end_layout
27309
27310 \begin_layout Standard
27311 By doing this you lock the document so that only you can edit it.
27312  This will also make the document Read-Write only for you.
27313  You will usually continue editing for a while and when you are finished
27314  you check in your changes.
27315  The status line is changed to reflect that you have locked the file.
27316 \end_layout
27317
27318 \begin_layout Itemize
27319 RCS command: 
27320 \family typewriter
27321 co -q -l <file-name>
27322 \end_layout
27323
27324 \begin_layout Subsubsection
27325
27326 \family sans
27327 Revert To Repository Version
27328 \end_layout
27329
27330 \begin_layout Standard
27331 This will discard all changes made to the document since the last check
27332  in.
27333  You get a warning before changes are discarded.
27334 \end_layout
27335
27336 \begin_layout Itemize
27337 RCS command: 
27338 \family typewriter
27339 co -f -u<version> <file-name>
27340 \end_layout
27341
27342 \begin_layout Subsubsection
27343
27344 \family sans
27345 Copy
27346 \end_layout
27347
27348 \begin_layout Standard
27349 This will create a copy of the current document.
27350  Since RCS does not support copy operations natively, the version history
27351  is not preserved, and the copy is added as a new file.
27352  It requires a clean document without any changes since the last checkin.
27353  You are asked for a file name and a description of the copy operation.
27354  After that the copy is created, both locally and in the repository.
27355  If the parent directories of the copied and original document differ, all
27356  relative paths of included files of the copy are adjusted (like in 
27357 \family sans
27358 File\SpecialChar menuseparator
27359 Save As
27360 \family default
27361 \SpecialChar ldots
27362 ).
27363  Finally, the copy is loaded instead of the original document.
27364 \end_layout
27365
27366 \begin_layout Labeling
27367 \labelwidthstring 00.00.0000
27368 RCS
27369 \begin_inset space ~
27370 \end_inset
27371
27372 commands: 
27373 \begin_inset space ~
27374 \end_inset
27375
27376
27377 \begin_inset Newline newline
27378 \end_inset
27379
27380 Copy 
27381 \begin_inset Flex Code
27382 status collapsed
27383
27384 \begin_layout Plain Layout
27385
27386 \family typewriter
27387 \begin_inset Quotes qld
27388 \end_inset
27389
27390 <file-name>
27391 \begin_inset Quotes qld
27392 \end_inset
27393
27394
27395 \end_layout
27396
27397 \end_inset
27398
27399  to 
27400 \begin_inset Flex Code
27401 status collapsed
27402
27403 \begin_layout Plain Layout
27404
27405 \family typewriter
27406 \begin_inset Quotes qld
27407 \end_inset
27408
27409 <new-file-name>
27410 \begin_inset Quotes qld
27411 \end_inset
27412
27413
27414 \end_layout
27415
27416 \end_inset
27417
27418
27419 \begin_inset Newline newline
27420 \end_inset
27421
27422
27423 \begin_inset Flex Code
27424 status collapsed
27425
27426 \begin_layout Plain Layout
27427 ci -q -u 
27428 \family typewriter
27429 -i 
27430 \begin_inset Quotes qld
27431 \end_inset
27432
27433 <new-file-name>
27434 \begin_inset Quotes qld
27435 \end_inset
27436
27437
27438 \end_layout
27439
27440 \end_inset
27441
27442
27443 \end_layout
27444
27445 \begin_layout Subsubsection
27446
27447 \family sans
27448 Undo Last Checkin
27449 \end_layout
27450
27451 \begin_layout Standard
27452 This makes as if the last check in never happened.
27453  No changes are made to the document loaded into \SpecialChar LyX
27454 , but the last version
27455  is removed from the master RCS file.
27456 \end_layout
27457
27458 \begin_layout Itemize
27459 RCS command: 
27460 \family typewriter
27461 rcs -o<version> <file-name>
27462 \end_layout
27463
27464 \begin_layout Subsubsection
27465
27466 \family sans
27467 Show History
27468 \end_layout
27469
27470 \begin_layout Standard
27471 This shows the complete history of the RCS document.
27472  The output of 
27473 \family typewriter
27474 rlog <file-name>
27475 \family default
27476  is shown in a browser.
27477  See 
27478 \family typewriter
27479 man rlog
27480 \family default
27481  for more info.
27482 \end_layout
27483
27484 \begin_layout Subsubsection
27485 Revision info
27486 \end_layout
27487
27488 \begin_layout Standard
27489 \SpecialChar LyX
27490  supports RCS version number, author name, date and time of last commit.
27491  All those are extracted from 
27492 \family typewriter
27493 rlog -r <file-name>
27494 \family default
27495 .
27496  See 
27497 \begin_inset CommandInset ref
27498 LatexCommand ref
27499 reference "subsec:VCS-Revision-Information"
27500
27501 \end_inset
27502
27503  for details.
27504 \end_layout
27505
27506 \begin_layout Subsection
27507 CVS commands in \SpecialChar LyX
27508
27509 \end_layout
27510
27511 \begin_layout Standard
27512 A subset of CVS operations is supported by \SpecialChar LyX
27513 .
27514  You can find the commands in the 
27515 \family sans
27516 File\SpecialChar menuseparator
27517 Version
27518 \begin_inset space ~
27519 \end_inset
27520
27521 Control
27522 \family default
27523  submenu.
27524  The version control system SVN is more powerful, so please use it instead
27525  of CVS if possible.
27526 \end_layout
27527
27528 \begin_layout Subsubsection
27529
27530 \family sans
27531 General CVS usage
27532 \end_layout
27533
27534 \begin_layout Standard
27535 If you start from scratch with CVS you have to create your repository and
27536  checkout the working copy with external tools.
27537  If you're using a client-server setup you may need to login before doing
27538  the first repository checkout.
27539 \end_layout
27540
27541 \begin_layout Standard
27542 If your documents are under revision control and others are using the same
27543  repository problems arise when different changes to the same document at
27544  the same location happen.
27545  Standard CVS repositories don't operate with a file locking mechanism.
27546  This may be surprising, but conflicts only occur if people disagree on
27547  the proper content of the same part of a document.
27548  So, if co-workers are used to communicate regularly, these conflicts occur
27549  rarely.
27550  If they don't communicate they have a fundamental problem anyway.
27551  Nevertheless some people like to work with so called 
27552 \begin_inset Quotes eld
27553 \end_inset
27554
27555 reserved checkouts
27556 \begin_inset Quotes erd
27557 \end_inset
27558
27559 .
27560  If they do so the working copy of all files is readonly when checked out
27561  first and the user starts editing after using a special command to make
27562  the working copy writable.
27563  When the changes are checked in the working copy returns to readonly state.
27564  With \SpecialChar LyX
27565  one has to edit the 
27566 \begin_inset Flex Code
27567 status collapsed
27568
27569 \begin_layout Plain Layout
27570 .cvsrc
27571 \end_layout
27572
27573 \end_inset
27574
27575  file and add the line 
27576 \begin_inset Flex Code
27577 status collapsed
27578
27579 \begin_layout Plain Layout
27580 cvs -r
27581 \end_layout
27582
27583 \end_inset
27584
27585  to work with reserved checkouts.
27586  The benefit is the possibility to see who is using a writable copy of some
27587  document.
27588  It's not guaranteed only one user makes a copy writable.
27589 \end_layout
27590
27591 \begin_layout Standard
27592 \SpecialChar LyX
27593  tries to guess if you're using reserved or non-reserved checkouts.
27594  If your working copy is readonly or it is writable and an additional copy
27595  of your document exists in the CVS/Base sub-directory a reserved otherwise
27596  a non-reserved checkout is assumed.
27597  When a reserved checkout is detected you have to use 
27598 \begin_inset Flex Noun
27599 status collapsed
27600
27601 \begin_layout Plain Layout
27602 Check Out
27603 \end_layout
27604
27605 \end_inset
27606
27607  to make your working copy writable if it's readonly.
27608  After doing so the 
27609 \begin_inset Flex Noun
27610 status collapsed
27611
27612 \begin_layout Plain Layout
27613 Check In
27614 \end_layout
27615
27616 \end_inset
27617
27618  operation is possible and that makes your working copy readonly again after
27619  transferring your changes to the repository.
27620 \end_layout
27621
27622 \begin_layout Standard
27623 More information about CVS can be found here 
27624 \begin_inset Flex URL
27625 status collapsed
27626
27627 \begin_layout Plain Layout
27628
27629 http://www.nongnu.org/cvs
27630 \end_layout
27631
27632 \end_inset
27633
27634  and here 
27635 \begin_inset Flex URL
27636 status collapsed
27637
27638 \begin_layout Plain Layout
27639
27640 http://ximbiot.com/cvs
27641 \end_layout
27642
27643 \end_inset
27644
27645 .
27646 \end_layout
27647
27648 \begin_layout Standard
27649 Read 
27650 \family typewriter
27651 man cvs
27652 \family default
27653  to understand the sub-commands and the switches mentioned below.
27654 \end_layout
27655
27656 \begin_layout Subsubsection
27657
27658 \family sans
27659 Register
27660 \end_layout
27661
27662 \begin_layout Standard
27663 If your document is not under revision control, this is the only item shown
27664  in the menu.
27665  And if it is under revision control, the 
27666 \family sans
27667 Register
27668 \family default
27669  item is not visible.
27670  
27671 \end_layout
27672
27673 \begin_layout Standard
27674 This command registers in CVS your document 
27675 \begin_inset Flex Strong
27676 status collapsed
27677
27678 \begin_layout Plain Layout
27679
27680 \emph on
27681 only
27682 \end_layout
27683
27684 \end_inset
27685
27686  in the case you have already the documents directory under CVS control
27687  (in particular 
27688 \family typewriter
27689 CVS/Entries
27690 \family default
27691  file exists).
27692  This means you have to create or checkout the archive by yourself using
27693  external tools.
27694  (In case you forget that step \SpecialChar LyX
27695  registers the document with RCS.)
27696 \end_layout
27697
27698 \begin_layout Standard
27699 Then you are asked interactively to supply an initial description of the
27700  document.
27701  Don't forget that registered file is not yet checked in.
27702 \end_layout
27703
27704 \begin_layout Standard
27705 CVS command that is run: 
27706 \family typewriter
27707 cvs -q add -m"<entered message>" "<file-name>"
27708 \end_layout
27709
27710 \begin_layout Standard
27711 The term 
27712 \family typewriter
27713 "<file-name>"
27714 \family default
27715  above and for all other CVS commands is an abbreviation for 
27716 \begin_inset Quotes eld
27717 \end_inset
27718
27719 change the current working directory to file location and use the file name
27720  without path component as argument
27721 \begin_inset Quotes erd
27722 \end_inset
27723
27724 .
27725 \end_layout
27726
27727 \begin_layout Subsubsection
27728
27729 \family sans
27730 Check In Changes
27731 \end_layout
27732
27733 \begin_layout Standard
27734 When you are finished editing a file, you commit your changes.
27735  When you do this and you had changed the document, you are asked for a
27736  description of the changes.
27737  After that changes are written to the repository.
27738  In case you didn't change the document and a reserved checkout is detected
27739  the reservation made on 
27740 \begin_inset Flex Noun
27741 status collapsed
27742
27743 \begin_layout Plain Layout
27744 Check Out
27745 \end_layout
27746
27747 \end_inset
27748
27749  is undone.
27750 \end_layout
27751
27752 \begin_layout Labeling
27753 \labelwidthstring 00.00.0000
27754 CVS
27755 \begin_inset space ~
27756 \end_inset
27757
27758 command: 
27759 \begin_inset space ~
27760 \end_inset
27761
27762
27763 \begin_inset Newline newline
27764 \end_inset
27765
27766
27767 \begin_inset Flex Code
27768 status collapsed
27769
27770 \begin_layout Plain Layout
27771 cvs 
27772 \family typewriter
27773 -q commit -m"<description>" "<file-name>"
27774 \end_layout
27775
27776 \end_inset
27777
27778  or
27779 \begin_inset Newline newline
27780 \end_inset
27781
27782
27783 \begin_inset Flex Code
27784 status collapsed
27785
27786 \begin_layout Plain Layout
27787 cvs -q unedit 
27788 \family typewriter
27789 "<file-name>"
27790 \end_layout
27791
27792 \end_inset
27793
27794
27795 \end_layout
27796
27797 \begin_layout Subsubsection
27798
27799 \family sans
27800 Check Out Changes
27801 \end_layout
27802
27803 \begin_layout Standard
27804 When you are sharing a repository with others, you may have to incorporate
27805  their changes into your working copy.
27806 \end_layout
27807
27808 \begin_layout Standard
27809 CVS command: 
27810 \family typewriter
27811 cvs -q update "<file-name>"
27812 \end_layout
27813
27814 \begin_layout Standard
27815 If a readonly checkout is detected the working copy is made writable and
27816  reserved.
27817 \end_layout
27818
27819 \begin_layout Standard
27820 CVS command: 
27821 \family typewriter
27822 cvs -q edit "<file-name>"
27823 \end_layout
27824
27825 \begin_layout Subsubsection
27826
27827 \family sans
27828 Revert To Repository Version
27829 \end_layout
27830
27831 \begin_layout Standard
27832 This will discard all changes made to the document since the last check
27833  in.
27834  You get a warning before changes are discarded.
27835  Firstly the file is deleted, secondly CVS update command is run.
27836 \end_layout
27837
27838 \begin_layout Standard
27839 CVS command: 
27840 \family typewriter
27841 cvs -q update "<file-name>"
27842 \end_layout
27843
27844 \begin_layout Standard
27845 If a reserved checkout is detected and the working copy has no changes only
27846  the reservation is undone.
27847 \end_layout
27848
27849 \begin_layout Standard
27850 CVS command: 
27851 \family typewriter
27852 cvs -q unedit "<file-name>"
27853 \end_layout
27854
27855 \begin_layout Subsubsection
27856
27857 \family sans
27858 Copy
27859 \end_layout
27860
27861 \begin_layout Standard
27862 This will create a copy of the current document.
27863  Since CVS does not support copy operations natively, the version history
27864  is not preserved, and the copy is added as a new file.
27865  It requires a clean document without any changes since the last checkin.
27866  You are asked for a file name and a description of the copy operation.
27867  After that the copy is created, both locally and in the repository.
27868  If the parent directories of the copied and original document differ, all
27869  relative paths of included files of the copy are adjusted (like in 
27870 \family sans
27871 File\SpecialChar menuseparator
27872 Save As
27873 \family default
27874 \SpecialChar ldots
27875 ).
27876  Finally, the copy is loaded instead of the original document.
27877 \end_layout
27878
27879 \begin_layout Labeling
27880 \labelwidthstring 00.00.0000
27881 CVS
27882 \begin_inset space ~
27883 \end_inset
27884
27885 commands: 
27886 \begin_inset space ~
27887 \end_inset
27888
27889
27890 \begin_inset Newline newline
27891 \end_inset
27892
27893 Copy 
27894 \begin_inset Flex Code
27895 status collapsed
27896
27897 \begin_layout Plain Layout
27898 "<file-name>"
27899 \end_layout
27900
27901 \end_inset
27902
27903  to 
27904 \begin_inset Flex Code
27905 status collapsed
27906
27907 \begin_layout Plain Layout
27908 "<new-file-name>"
27909 \end_layout
27910
27911 \end_inset
27912
27913
27914 \begin_inset Newline newline
27915 \end_inset
27916
27917
27918 \begin_inset Flex Code
27919 status collapsed
27920
27921 \begin_layout Plain Layout
27922 cvs -q add "<new-file-name>"
27923 \end_layout
27924
27925 \end_inset
27926
27927
27928 \end_layout
27929
27930 \begin_layout Subsubsection
27931
27932 \family sans
27933 Rename
27934 \end_layout
27935
27936 \begin_layout Standard
27937 This will rename the current document.
27938  Since CVS does not support rename operations natively, the version history
27939  is not preserved, the renamed document is added as a new file, and the
27940  original document is deleted.
27941  It requires a clean document without any changes since the last checkin.
27942  You are asked for a file name and a description of the rename operation.
27943  After that the document is renamed, both locally and in the repository.
27944  If the parent directories of the new and old file names differ, all relative
27945  paths of included files are adjusted (like in 
27946 \family sans
27947 File\SpecialChar menuseparator
27948 Save As
27949 \family default
27950 \SpecialChar ldots
27951 ).
27952  Finally, the document is reloaded using the new name.
27953 \end_layout
27954
27955 \begin_layout Labeling
27956 \labelwidthstring 00.00.0000
27957 CVS
27958 \begin_inset space ~
27959 \end_inset
27960
27961 commands: 
27962 \begin_inset space ~
27963 \end_inset
27964
27965
27966 \begin_inset Newline newline
27967 \end_inset
27968
27969 Rename 
27970 \begin_inset Flex Code
27971 status collapsed
27972
27973 \begin_layout Plain Layout
27974 "<file-name>"
27975 \end_layout
27976
27977 \end_inset
27978
27979  to 
27980 \begin_inset Flex Code
27981 status collapsed
27982
27983 \begin_layout Plain Layout
27984 "<new-file-name>"
27985 \end_layout
27986
27987 \end_inset
27988
27989
27990 \begin_inset Newline newline
27991 \end_inset
27992
27993
27994 \begin_inset Flex Code
27995 status collapsed
27996
27997 \begin_layout Plain Layout
27998 cvs -q add "<new-file-name>"
27999 \end_layout
28000
28001 \end_inset
28002
28003
28004 \begin_inset Newline newline
28005 \end_inset
28006
28007
28008 \begin_inset Flex Code
28009 status collapsed
28010
28011 \begin_layout Plain Layout
28012 cvs -q remove "<file-name>"
28013 \end_layout
28014
28015 \end_inset
28016
28017
28018 \end_layout
28019
28020 \begin_layout Subsubsection
28021 Update of the local directory checkout from repository
28022 \end_layout
28023
28024 \begin_layout Standard
28025 Once your documents gets more complex, containing sub-documents and pictures,
28026  including external 
28027 \begin_inset Flex Code
28028 status collapsed
28029
28030 \begin_layout Plain Layout
28031 .tex
28032 \end_layout
28033
28034 \end_inset
28035
28036  files and so on using version control becomes more complicated.
28037  \SpecialChar LyX
28038  supports updating the whole tree in which resides the document.
28039  This become especially useful once you cooperate with people which neither
28040  have detailed knowledge about CVS usage nor they have ambition to commit
28041  additional material to the repository.
28042  You have to organize the files structure so that all external files are
28043  in the same directory or subdirectories of the document.
28044  It's good practice anyway to store multipart documents in an extra directory.
28045 \end_layout
28046
28047 \begin_layout Standard
28048 The 
28049 \begin_inset Flex Code
28050 status collapsed
28051
28052 \begin_layout Plain Layout
28053 Update local directory from repository
28054 \end_layout
28055
28056 \end_inset
28057
28058  command updates the whole directory.
28059  If local changes are detected user is warned before update starts.
28060  In case of merge conflicts both versions of the conflicting document parts
28061  are placed in the final document.
28062  You have to review and correct the result of the merge.
28063  You'll find the conflicts enclosed in pairs of 
28064 \begin_inset Flex Code
28065 status collapsed
28066
28067 \begin_layout Plain Layout
28068 <<<<<<<
28069 \end_layout
28070
28071 \end_inset
28072
28073  and 
28074 \begin_inset Flex Code
28075 status collapsed
28076
28077 \begin_layout Plain Layout
28078 >>>>>>>
28079 \end_layout
28080
28081 \end_inset
28082
28083  separated by 
28084 \begin_inset Flex Code
28085 status collapsed
28086
28087 \begin_layout Plain Layout
28088 =======
28089 \end_layout
28090
28091 \end_inset
28092
28093 .
28094  The first part is your version as before the update operation with the
28095  document name prepended.
28096  The second one is the repository version with the version number after
28097  the sequence of 
28098 \begin_inset Flex Code
28099 status collapsed
28100
28101 \begin_layout Plain Layout
28102 >
28103 \end_layout
28104
28105 \end_inset
28106
28107  signs.
28108 \end_layout
28109
28110 \begin_layout Labeling
28111 \labelwidthstring 00.00.0000
28112 CVS
28113 \begin_inset space ~
28114 \end_inset
28115
28116 commands: 
28117 \begin_inset space ~
28118 \end_inset
28119
28120
28121 \begin_inset Newline newline
28122 \end_inset
28123
28124
28125 \begin_inset Flex Code
28126 status collapsed
28127
28128 \begin_layout Plain Layout
28129 cd $path; cvs diff 
28130 \family typewriter
28131 "."
28132 \end_layout
28133
28134 \end_inset
28135
28136  (Ask if changes are detected.)
28137 \begin_inset Newline newline
28138 \end_inset
28139
28140
28141 \begin_inset Flex Code
28142 status collapsed
28143
28144 \begin_layout Plain Layout
28145 cd $path; cvs -q update 
28146 \family typewriter
28147 "."
28148 \end_layout
28149
28150 \end_inset
28151
28152
28153 \end_layout
28154
28155 \begin_layout Standard
28156 where 
28157 \begin_inset Flex Code
28158 status collapsed
28159
28160 \begin_layout Plain Layout
28161 $path
28162 \end_layout
28163
28164 \end_inset
28165
28166  stands for the path to the document.
28167 \end_layout
28168
28169 \begin_layout Subsubsection
28170
28171 \family sans
28172 Show History
28173 \end_layout
28174
28175 \begin_layout Standard
28176 This shows the complete history of the CVS document.
28177  The output of 
28178 \family typewriter
28179 cvs log "<file-name>"
28180 \family default
28181  is shown in a browser.
28182 \end_layout
28183
28184 \begin_layout Subsubsection
28185 Revision info
28186 \end_layout
28187
28188 \begin_layout Standard
28189 \SpecialChar LyX
28190  supports CVS version number, author name, date and time of last commit.
28191  All those are extracted from 
28192 \family typewriter
28193 cvs log -r <file-name>
28194 \family default
28195 .
28196  See 
28197 \begin_inset CommandInset ref
28198 LatexCommand ref
28199 reference "subsec:VCS-Revision-Information"
28200
28201 \end_inset
28202
28203  for details.
28204 \end_layout
28205
28206 \begin_layout Subsection
28207 SVN commands in \SpecialChar LyX
28208
28209 \end_layout
28210
28211 \begin_layout Standard
28212 SVN is now partially supported by \SpecialChar LyX
28213 .
28214  You can find the commands in the 
28215 \family sans
28216 File\SpecialChar menuseparator
28217 Version
28218 \begin_inset space ~
28219 \end_inset
28220
28221 Control
28222 \family default
28223  submenu.
28224  Please note that if you use password protected access to repository via
28225  ssh, you will be asked in terminal window.
28226  \SpecialChar LyX
28227  was tested against SVN 1.5, 1.6, 1.7 and 1.8
28228 \begin_inset Foot
28229 status collapsed
28230
28231 \begin_layout Plain Layout
28232 Most of the commands will work with 1.4 too, see 
28233 \begin_inset CommandInset ref
28234 LatexCommand ref
28235 reference "subsec:SVN-Repo-Update"
28236
28237 \end_inset
28238
28239 .
28240  There seems to be currently unresolved permissions problem under SVN 1.8
28241  with reverting changes when file is locked.
28242 \end_layout
28243
28244 \end_inset
28245
28246
28247 \end_layout
28248
28249 \begin_layout Subsubsection
28250
28251 \family sans
28252 Register
28253 \end_layout
28254
28255 \begin_layout Standard
28256 If your document is not under revision control, this is the only item shown
28257  in the menu.
28258  And if it is under revision control, the 
28259 \family sans
28260 Register
28261 \family default
28262  item is not visible.
28263 \end_layout
28264
28265 \begin_layout Standard
28266 This command registers in SVN your document ONLY in case you have already
28267  the documents directory under SVN control (in particular 
28268 \family typewriter
28269 .svn/entries
28270 \family default
28271  file exists).
28272  This means you have to checkout the archive by yourself.
28273 \end_layout
28274
28275 \begin_layout Standard
28276 Then you are asked interactively to supply an initial description of the
28277  document.
28278  Don't forget that registered file is not yet commited.
28279 \end_layout
28280
28281 \begin_layout Standard
28282 SVN command that is run: 
28283 \family typewriter
28284 svn add -q 
28285 \begin_inset Quotes qld
28286 \end_inset
28287
28288 <file-name>
28289 \begin_inset Quotes qld
28290 \end_inset
28291
28292
28293 \end_layout
28294
28295 \begin_layout Standard
28296 Read 
28297 \family typewriter
28298 man svn
28299 \family default
28300  to understand the switches.
28301 \end_layout
28302
28303 \begin_layout Subsubsection
28304
28305 \family sans
28306 Check In Changes
28307 \end_layout
28308
28309 \begin_layout Standard
28310 When you are finished editing a file, you commit your changes.
28311  When you do this, you are asked for a description of the changes.
28312  After that changes are commited.
28313 \end_layout
28314
28315 \begin_layout Standard
28316 SVN command:
28317 \begin_inset Foot
28318 status collapsed
28319
28320 \begin_layout Plain Layout
28321 In case locking is not enabled.
28322  See Section 
28323 \begin_inset CommandInset ref
28324 LatexCommand ref
28325 reference "subsec:SVN-File-Locking"
28326
28327 \end_inset
28328
28329 .
28330 \end_layout
28331
28332 \end_inset
28333
28334  
28335 \family typewriter
28336 svn commit -q -m"<description>" <file-name>
28337 \end_layout
28338
28339 \begin_layout Subsubsection
28340
28341 \family sans
28342 Check Out For Edit
28343 \end_layout
28344
28345 \begin_layout Standard
28346 Updates the changes of this file from the repository.
28347  Be sure you understand SVN merging and conflicts resolving before using
28348  this function, because all conflicts has to be resolved manually by you!
28349 \end_layout
28350
28351 \begin_layout Standard
28352 SVN command:
28353 \begin_inset Foot
28354 status collapsed
28355
28356 \begin_layout Plain Layout
28357 Ditto.
28358 \end_layout
28359
28360 \end_inset
28361
28362  
28363 \family typewriter
28364 svn update --non-interactive 
28365 \begin_inset Quotes qld
28366 \end_inset
28367
28368 <file-name>
28369 \begin_inset Quotes qld
28370 \end_inset
28371
28372
28373 \end_layout
28374
28375 \begin_layout Subsubsection
28376
28377 \family sans
28378 Revert To Repository Version
28379 \end_layout
28380
28381 \begin_layout Standard
28382 This will discard all changes made to the document since the last check
28383  in.
28384  You get a warning before changes are discarded.
28385 \end_layout
28386
28387 \begin_layout Standard
28388 SVN command: 
28389 \family typewriter
28390 svn revert -q 
28391 \begin_inset Quotes qld
28392 \end_inset
28393
28394 <file-name>
28395 \begin_inset Quotes qld
28396 \end_inset
28397
28398
28399 \end_layout
28400
28401 \begin_layout Subsubsection
28402
28403 \family sans
28404 Copy
28405 \end_layout
28406
28407 \begin_layout Standard
28408 This will create a copy of the current document including the version history.
28409  It requires a clean document without any changes since the last checkin.
28410  You are asked for a file name and a description of the copy operation.
28411  After that the copy is created, both locally and in the repository.
28412  If the parent directories of the copied and original document differ, all
28413  relative paths of included files of the copy are adjusted (like in 
28414 \family sans
28415 File\SpecialChar menuseparator
28416 Save As
28417 \family default
28418 \SpecialChar ldots
28419 ).
28420  Finally, the copy is loaded instead of the original document.
28421 \end_layout
28422
28423 \begin_layout Labeling
28424 \labelwidthstring 00.00.0000
28425 SVN
28426 \begin_inset space ~
28427 \end_inset
28428
28429 commands: 
28430 \begin_inset space ~
28431 \end_inset
28432
28433
28434 \begin_inset Newline newline
28435 \end_inset
28436
28437
28438 \begin_inset Flex Code
28439 status collapsed
28440
28441 \begin_layout Plain Layout
28442 svn copy -q 
28443 \family typewriter
28444
28445 \begin_inset Quotes qld
28446 \end_inset
28447
28448 <file-name>
28449 \begin_inset Quotes qld
28450 \end_inset
28451
28452  
28453 \begin_inset Quotes qld
28454 \end_inset
28455
28456 <new-file-name>
28457 \begin_inset Quotes qld
28458 \end_inset
28459
28460
28461 \end_layout
28462
28463 \end_inset
28464
28465
28466 \begin_inset Newline newline
28467 \end_inset
28468
28469
28470 \begin_inset Flex Code
28471 status collapsed
28472
28473 \begin_layout Plain Layout
28474 svn commit
28475 \end_layout
28476
28477 \end_inset
28478
28479
28480 \end_layout
28481
28482 \begin_layout Subsubsection
28483
28484 \family sans
28485 Rename
28486 \end_layout
28487
28488 \begin_layout Standard
28489 This will rename the current document including the version history.
28490  It requires a clean document without any changes since the last checkin.
28491  You are asked for a file name and a description of the rename operation.
28492  After that the document is renamed, both locally and in the repository.
28493  If the parent directories of the new and old file names differ, all relative
28494  paths of included files are adjusted (like in 
28495 \family sans
28496 File\SpecialChar menuseparator
28497 Save As
28498 \family default
28499 \SpecialChar ldots
28500 ).
28501  Finally, the document is reloaded using the new name.
28502 \end_layout
28503
28504 \begin_layout Labeling
28505 \labelwidthstring 00.00.0000
28506 SVN
28507 \begin_inset space ~
28508 \end_inset
28509
28510 commands: 
28511 \begin_inset space ~
28512 \end_inset
28513
28514
28515 \begin_inset Newline newline
28516 \end_inset
28517
28518
28519 \begin_inset Flex Code
28520 status collapsed
28521
28522 \begin_layout Plain Layout
28523 svn move -q 
28524 \family typewriter
28525
28526 \begin_inset Quotes qld
28527 \end_inset
28528
28529 <file-name>
28530 \begin_inset Quotes qld
28531 \end_inset
28532
28533  
28534 \begin_inset Quotes qld
28535 \end_inset
28536
28537 <new-file-name>
28538 \begin_inset Quotes qld
28539 \end_inset
28540
28541
28542 \end_layout
28543
28544 \end_inset
28545
28546
28547 \begin_inset Newline newline
28548 \end_inset
28549
28550
28551 \begin_inset Flex Code
28552 status collapsed
28553
28554 \begin_layout Plain Layout
28555 svn commit
28556 \end_layout
28557
28558 \end_inset
28559
28560
28561 \end_layout
28562
28563 \begin_layout Subsubsection
28564 \begin_inset CommandInset label
28565 LatexCommand label
28566 name "subsec:SVN-Repo-Update"
28567
28568 \end_inset
28569
28570 Update of the local directory checkout from repository
28571 \begin_inset Foot
28572 status collapsed
28573
28574 \begin_layout Plain Layout
28575 Note that this command will work only with subversion 
28576 \begin_inset Formula $\geqq1.5$
28577 \end_inset
28578
28579
28580 \end_layout
28581
28582 \end_inset
28583
28584
28585 \end_layout
28586
28587 \begin_layout Standard
28588 All the commands above have one shortcoming – they deal with the current
28589  document only.
28590  Once your document contains pictures, includes external 
28591 \begin_inset Flex Code
28592 status collapsed
28593
28594 \begin_layout Plain Layout
28595 .tex
28596 \end_layout
28597
28598 \end_inset
28599
28600  files and so on administration becomes more complicated.
28601  \SpecialChar LyX
28602  now supports updating the whole tree in which resides the document
28603 \begin_inset Foot
28604 status collapsed
28605
28606 \begin_layout Plain Layout
28607 One need to organize the files structure so that all external files are
28608  in the same directory or subdirectories of the document.
28609  
28610 \end_layout
28611
28612 \end_inset
28613
28614 .
28615  This become especially useful once you cooperate with people which neither
28616  know about subversion management nor they have ambition to commit additional
28617  material to the repository.
28618  
28619 \end_layout
28620
28621 \begin_layout Standard
28622 \begin_inset Flex Code
28623 status collapsed
28624
28625 \begin_layout Plain Layout
28626 Update local directory from repository
28627 \end_layout
28628
28629 \end_inset
28630
28631  command updates the whole directory and in case of merge conflicts local
28632  version of the files are left, so no unintended data loss occurs.
28633  If local changes are detected user is warned before update starts.
28634 \end_layout
28635
28636 \begin_layout Labeling
28637 \labelwidthstring 00.00.0000
28638 SVN
28639 \begin_inset space ~
28640 \end_inset
28641
28642 commands: 
28643 \begin_inset space ~
28644 \end_inset
28645
28646
28647 \begin_inset Newline newline
28648 \end_inset
28649
28650
28651 \begin_inset Flex Code
28652 status collapsed
28653
28654 \begin_layout Plain Layout
28655 svn diff $path
28656 \end_layout
28657
28658 \end_inset
28659
28660  (Ask if changes are detected.)
28661 \begin_inset Newline newline
28662 \end_inset
28663
28664
28665 \begin_inset Flex Code
28666 status collapsed
28667
28668 \begin_layout Plain Layout
28669 svn update --accept mine-full $path
28670 \end_layout
28671
28672 \end_inset
28673
28674
28675 \end_layout
28676
28677 \begin_layout Standard
28678 where 
28679 \begin_inset Flex Code
28680 status collapsed
28681
28682 \begin_layout Plain Layout
28683 $path
28684 \end_layout
28685
28686 \end_inset
28687
28688  stands for the path to the document.
28689 \end_layout
28690
28691 \begin_layout Subsubsection
28692
28693 \family sans
28694 Show History
28695 \end_layout
28696
28697 \begin_layout Standard
28698 This shows the complete history of the SVN document.
28699  The output of 
28700 \family typewriter
28701 svn log 
28702 \begin_inset Quotes qld
28703 \end_inset
28704
28705 <file-name>
28706 \begin_inset Quotes qld
28707 \end_inset
28708
28709
28710 \family default
28711  is shown in a browser.
28712 \end_layout
28713
28714 \begin_layout Subsubsection
28715 File Locking
28716 \begin_inset CommandInset label
28717 LatexCommand label
28718 name "subsec:SVN-File-Locking"
28719
28720 \end_inset
28721
28722
28723 \end_layout
28724
28725 \begin_layout Standard
28726 The file exchange through various revision control systems brings the problem
28727  of merge conflicts in case two different users try to edit the same (parts
28728  of) document.
28729  When such a conflict happens it needs manual resolving and one reasonable
28730  alternative is to provide some kind of locking mechanism, which guarantees
28731  that only one user is allowed to edit file at the given time.
28732 \end_layout
28733
28734 \begin_layout Standard
28735 SVN has two such mechanisms to provide mutual exclusivity for file access
28736  – locks and automatic setting of write permissions (see sec.
28737  
28738 \begin_inset CommandInset ref
28739 LatexCommand ref
28740 reference "subsec:Automatical-Locking-Property"
28741
28742 \end_inset
28743
28744 ) based on 
28745 \begin_inset Flex Code
28746 status collapsed
28747
28748 \begin_layout Plain Layout
28749 svn:needs-lock
28750 \end_layout
28751
28752 \end_inset
28753
28754  file svn property
28755 \begin_inset Foot
28756 status collapsed
28757
28758 \begin_layout Plain Layout
28759 \begin_inset Flex URL
28760 status open
28761
28762 \begin_layout Plain Layout
28763
28764 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
28765 \end_layout
28766
28767 \end_inset
28768
28769
28770 \end_layout
28771
28772 \end_inset
28773
28774 .
28775  If this property is detected for a given document \SpecialChar LyX
28776  starts to use SVN locks
28777  for document editing automatically and the whole check-in/out mechanism
28778  switches to the same regimen as for RCS.
28779  This in particular means there are two different modes of file use in \SpecialChar LyX
28780 :
28781 \end_layout
28782
28783 \begin_layout Itemize
28784 Unlocked state.
28785  The loaded file is in the read-only mode.
28786  For editing on needs to check-out.
28787  
28788 \emph on
28789 Check-out
28790 \emph default
28791  consists of updating from the repository and gaining write lock.
28792  If the lock is not possible to obtain, we remain in unlocked state.
28793 \end_layout
28794
28795 \begin_layout Itemize
28796 Locked state.
28797  The loaded file is in the 
28798 \begin_inset Quotes els
28799 \end_inset
28800
28801 normal
28802 \begin_inset Quotes ers
28803 \end_inset
28804
28805  edit mode.
28806  No other user is allowed to edit the file.
28807  
28808 \emph on
28809 Check-in
28810 \emph default
28811  consists of commiting changes and releasing write-lock.
28812  If no changes have been made to the document, no commit will be produced
28813 \begin_inset Foot
28814 status collapsed
28815
28816 \begin_layout Plain Layout
28817 Don't be puzzled by the fact that you will be asked for commit message anyway.
28818 \end_layout
28819
28820 \end_inset
28821
28822  and only the write-lock will be released.
28823 \end_layout
28824
28825 \begin_layout Standard
28826 SVN commands:
28827 \end_layout
28828
28829 \begin_layout Labeling
28830 \labelwidthstring 00.00.0000
28831 Check-in:
28832 \family typewriter
28833  svn commit -q -m"<description>" "<file-name>"
28834 \begin_inset Newline newline
28835 \end_inset
28836
28837 svn unlock "<file-name>"
28838 \end_layout
28839
28840 \begin_layout Labeling
28841 \labelwidthstring 00.00.0000
28842 Check-out: 
28843 \family typewriter
28844 svn update "<file-name>"
28845 \begin_inset Newline newline
28846 \end_inset
28847
28848 svn lock "<file-name>"
28849 \end_layout
28850
28851 \begin_layout Subsubsection
28852
28853 \family typewriter
28854 \begin_inset CommandInset label
28855 LatexCommand label
28856 name "subsec:Automatical-Locking-Property"
28857
28858 \end_inset
28859
28860
28861 \family default
28862 Automatic Locking Property
28863 \end_layout
28864
28865 \begin_layout Standard
28866 The above mentioned automatic setting of write permissions of the .lyx file
28867  can be set through
28868 \family sans
28869  File\SpecialChar menuseparator
28870 Version
28871 \begin_inset space ~
28872 \end_inset
28873
28874 Control\SpecialChar menuseparator
28875 Use Locking Property
28876 \family default
28877 .
28878  This command is active only when the file is not locked on the svn server
28879  (i.e.
28880  you need to check-out before proceeding).
28881 \end_layout
28882
28883 \begin_layout Labeling
28884 \labelwidthstring 00.00.0000
28885 SVN
28886 \begin_inset space ~
28887 \end_inset
28888
28889 commands:
28890 \end_layout
28891
28892 \begin_layout Labeling
28893 \labelwidthstring 00.00.0000
28894 Set:
28895 \family typewriter
28896  svn propset svn:needs-lock ON "<file-name>"
28897 \end_layout
28898
28899 \begin_layout Labeling
28900 \labelwidthstring 00.00.0000
28901 Unset: 
28902 \family typewriter
28903 svn propdel svn:needs-lock "<file-name>"
28904 \end_layout
28905
28906 \begin_layout Subsubsection
28907 \begin_inset CommandInset label
28908 LatexCommand label
28909 name "subsec:VCS-Revision-Information"
28910
28911 \end_inset
28912
28913 Revision Information in Documents
28914 \end_layout
28915
28916 \begin_layout Standard
28917 There are more possibilities how to activate revision information in our
28918  document.
28919 \end_layout
28920
28921 \begin_layout Itemize
28922 \SpecialChar LyX
28923  supports directly:
28924 \end_layout
28925
28926 \begin_deeper
28927 \begin_layout Itemize
28928 tree revision information (
28929 \begin_inset Flex Code
28930 status collapsed
28931
28932 \begin_layout Plain Layout
28933 vcs-tree-revision
28934 \end_layout
28935
28936 \end_inset
28937
28938 ).
28939  The result is the output of the 
28940 \begin_inset Flex Code
28941 status collapsed
28942
28943 \begin_layout Plain Layout
28944 svnversion
28945 \end_layout
28946
28947 \end_inset
28948
28949  command, the following table gives you an idea, how to read the results.
28950 \end_layout
28951
28952 \begin_layout Standard
28953 \align center
28954 \begin_inset Tabular
28955 <lyxtabular version="3" rows="6" columns="2">
28956 <features tabularvalignment="middle">
28957 <column alignment="left" valignment="top">
28958 <column alignment="left" valignment="top">
28959 <row>
28960 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28961 \begin_inset Text
28962
28963 \begin_layout Plain Layout
28964
28965 \series bold
28966 Output
28967 \end_layout
28968
28969 \end_inset
28970 </cell>
28971 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28972 \begin_inset Text
28973
28974 \begin_layout Plain Layout
28975
28976 \series bold
28977 Meaning
28978 \end_layout
28979
28980 \end_inset
28981 </cell>
28982 </row>
28983 <row>
28984 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
28985 \begin_inset Text
28986
28987 \begin_layout Plain Layout
28988 4123:4168
28989 \end_layout
28990
28991 \end_inset
28992 </cell>
28993 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28994 \begin_inset Text
28995
28996 \begin_layout Plain Layout
28997 mixed revision working copy
28998 \end_layout
28999
29000 \end_inset
29001 </cell>
29002 </row>
29003 <row>
29004 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
29005 \begin_inset Text
29006
29007 \begin_layout Plain Layout
29008 4168M
29009 \end_layout
29010
29011 \end_inset
29012 </cell>
29013 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29014 \begin_inset Text
29015
29016 \begin_layout Plain Layout
29017 modified working copy
29018 \end_layout
29019
29020 \end_inset
29021 </cell>
29022 </row>
29023 <row>
29024 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
29025 \begin_inset Text
29026
29027 \begin_layout Plain Layout
29028 4123S
29029 \end_layout
29030
29031 \end_inset
29032 </cell>
29033 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29034 \begin_inset Text
29035
29036 \begin_layout Plain Layout
29037 switched working copy
29038 \end_layout
29039
29040 \end_inset
29041 </cell>
29042 </row>
29043 <row>
29044 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
29045 \begin_inset Text
29046
29047 \begin_layout Plain Layout
29048 4123P
29049 \end_layout
29050
29051 \end_inset
29052 </cell>
29053 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29054 \begin_inset Text
29055
29056 \begin_layout Plain Layout
29057 partial working copy, from a sparse checkout
29058 \end_layout
29059
29060 \end_inset
29061 </cell>
29062 </row>
29063 <row>
29064 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29065 \begin_inset Text
29066
29067 \begin_layout Plain Layout
29068 4123:4168MS
29069 \end_layout
29070
29071 \end_inset
29072 </cell>
29073 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29074 \begin_inset Text
29075
29076 \begin_layout Plain Layout
29077 mixed revision, modified, switched working copy
29078 \end_layout
29079
29080 \end_inset
29081 </cell>
29082 </row>
29083 </lyxtabular>
29084
29085 \end_inset
29086
29087
29088 \end_layout
29089
29090 \begin_layout Itemize
29091 file revision information.
29092  The result comes from parsing the output of 
29093 \begin_inset Flex Code
29094 status collapsed
29095
29096 \begin_layout Plain Layout
29097 svn
29098 \begin_inset space ~
29099 \end_inset
29100
29101 info
29102 \begin_inset space ~
29103 \end_inset
29104
29105 --xml
29106 \begin_inset space ~
29107 \end_inset
29108
29109 file.lyx
29110 \end_layout
29111
29112 \end_inset
29113
29114 .
29115  Supported flags are:
29116 \end_layout
29117
29118 \begin_deeper
29119 \begin_layout Itemize
29120 version number of the last commit (
29121 \begin_inset Flex Code
29122 status collapsed
29123
29124 \begin_layout Plain Layout
29125 vcs-revision
29126 \end_layout
29127
29128 \end_inset
29129
29130 )
29131 \end_layout
29132
29133 \begin_layout Itemize
29134 author of the last commit (
29135 \begin_inset Flex Code
29136 status collapsed
29137
29138 \begin_layout Plain Layout
29139 vcs-author
29140 \end_layout
29141
29142 \end_inset
29143
29144 )
29145 \end_layout
29146
29147 \begin_layout Itemize
29148 date of the last commit (
29149 \begin_inset Flex Code
29150 status collapsed
29151
29152 \begin_layout Plain Layout
29153 vcs-date
29154 \end_layout
29155
29156 \end_inset
29157
29158 )
29159 \end_layout
29160
29161 \begin_layout Itemize
29162 time of the last commit (
29163 \begin_inset Flex Code
29164 status collapsed
29165
29166 \begin_layout Plain Layout
29167 vcs-time
29168 \end_layout
29169
29170 \end_inset
29171
29172 )
29173 \end_layout
29174
29175 \end_deeper
29176 \begin_layout Standard
29177 You can obtain this info via InsetInfo (
29178 \change_inserted 5863208 1564400022
29179
29180 \lang american
29181 Insert\SpecialChar menuseparator
29182 Field\SpecialChar menuseparator
29183 Version Control Revision
29184 \change_deleted 5863208 1564399852
29185
29186 \lang english
29187 e.g.
29188  
29189 \begin_inset Flex Code
29190 status collapsed
29191
29192 \begin_layout Plain Layout
29193 info-insert buffer vcs-date
29194 \end_layout
29195
29196 \end_inset
29197
29198
29199 \change_unchanged
29200 ).
29201  The information will be available only when you have the file stored under
29202  svn managment (i.e.
29203  the 
29204 \begin_inset Flex Code
29205 status collapsed
29206
29207 \begin_layout Plain Layout
29208 .svn
29209 \end_layout
29210
29211 \end_inset
29212
29213  directory is available with your document).
29214 \end_layout
29215
29216 \end_deeper
29217 \begin_layout Itemize
29218 Another—a hacking one—possibility is to use svn keywords
29219 \begin_inset Foot
29220 status collapsed
29221
29222 \begin_layout Plain Layout
29223 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
29224 \end_layout
29225
29226 \end_inset
29227
29228 .
29229  In short – you set file keywords property (e.g.
29230  
29231 \family sans
29232 svn propset svn:keywords 'Rev' file.lyx
29233 \family default
29234 ) and then paste keyword \SpecialChar TeX
29235  code
29236 \begin_inset Foot
29237 status collapsed
29238
29239 \begin_layout Plain Layout
29240 This is an easy way how to ensure that \SpecialChar LyX
29241  won't break the line in the middle
29242  of keyword tag.
29243 \end_layout
29244
29245 \end_inset
29246
29247  tag in your document (e.g.
29248  
29249 \begin_inset Flex Code
29250 status collapsed
29251
29252 \begin_layout Plain Layout
29253 $Rev$
29254 \end_layout
29255
29256 \end_inset
29257
29258 ).
29259  This way svn client will automatically substitute revision number (e.g.
29260  
29261 \begin_inset Flex Code
29262 status collapsed
29263
29264 \begin_layout Plain Layout
29265 $Rev: 59 $
29266 \end_layout
29267
29268 \end_inset
29269
29270 ) after each update and commit.
29271  There are more problems with this approach.
29272  Firstly, the '$' character is used in \SpecialChar TeX
29273  world for math equations, so any
29274  occurence of math formula 
29275 \begin_inset Formula $Rev$
29276 \end_inset
29277
29278  become 
29279 \begin_inset Formula $Rev:59$
29280 \end_inset
29281
29282  in your \SpecialChar LyX
29283  document.
29284  Similarly for other keywords like Id, Date, Author, etc.
29285  Secondly svn output is dependent on your locales, so its very easy that
29286  svn would produce some problematic strings once Date is used.
29287  Thirdly you get the whole 'Rev: 59' string in your document instead of
29288  the plain number.
29289  Until subversion implements user's custom keywords it will be hard to use
29290  this approach reliably or let \SpecialChar LyX
29291  to support it directly.
29292 \end_layout
29293
29294 \begin_layout Subsection
29295 SVN and Windows Environment
29296 \end_layout
29297
29298 \begin_layout Quote
29299 My inclination is to say that if the user cannot figure out the command
29300  line operations on their own fairly quickly, they would be well advised
29301  to use TortoiseSVN.
29302  —P.
29303  A.
29304  Rubin
29305 \end_layout
29306
29307 \begin_layout Subsubsection
29308 Preparation
29309 \end_layout
29310
29311 \begin_layout Standard
29312 In addition to installing \SpecialChar LyX
29313 , and having access to a Subversion repository,
29314  the user will need to install the Subversion client program.
29315  A Windows installer for the client program is available from 
29316 \begin_inset CommandInset href
29317 LatexCommand href
29318 name "CollabNet"
29319 target "http://www.collab.net/nonav/downloads/subversion/"
29320 literal "false"
29321
29322 \end_inset
29323
29324 .
29325  The user may also want to install 
29326 \begin_inset CommandInset href
29327 LatexCommand href
29328 name "TortoiseSVN"
29329 target "http://tortoisesvn.tigris.org/"
29330 literal "false"
29331
29332 \end_inset
29333
29334 , which integrates Subversion operations into the context (rightclick) menu
29335  of Windows Explorer.
29336  Operations done outside \SpecialChar LyX
29337  will typically be more convenient using the Explorer
29338  context menu.
29339  Note that TortoiseSVN is not a replacement for the client program, which
29340  is what \SpecialChar LyX
29341  itself will use.
29342 \end_layout
29343
29344 \begin_layout Subsubsection
29345 Bringing a document under Subversion control
29346 \end_layout
29347
29348 \begin_layout Standard
29349 Before a \SpecialChar LyX
29350  document can be brought under version control in Subversion, its
29351  parent directory needs to be under version control.
29352  If the document is being added to a project already in the repository,
29353  this is accomplished by checking the project out to the directory where
29354  the new document will be placed.
29355  If the project itself is not yet under version control (for instance, if
29356  this document starts a new project), the directory must be imported into
29357  the repository.
29358  This is done outside \SpecialChar LyX
29359 .
29360  Both import and checkout are easily accomplished from the Explorer context
29361  menu using TortoiseSVN, or alternatively can be done using the command
29362  line client at a DOS prompt.
29363  The procedure for importing the project using TortoiseSVN is described
29364  below, assuming an existing repository and a new project being started
29365  in 
29366 \family typewriter
29367 C:
29368 \backslash
29369 new project
29370 \family default
29371 .
29372  For information on using the Subversion client program, run 
29373 \family typewriter
29374 svn --help 
29375 \family default
29376 in a DOS shell.
29377 \end_layout
29378
29379 \begin_layout Enumerate
29380 Locate 
29381 \family typewriter
29382 C:
29383 \backslash
29384 new project 
29385 \family default
29386 in Windows Explorer, right click it, and select 
29387 \family sans
29388 TortoiseSVN\SpecialChar menuseparator
29389 Repo-browser
29390 \family default
29391 .
29392  If necessary, adjust the URL for the repository, then click OK.
29393 \end_layout
29394
29395 \begin_layout Enumerate
29396 Right click the level of the repository under which you want to place the
29397  new project folder (typically the top level) and click 
29398 \family sans
29399 Create folder
29400 \family default
29401  Supply a name for the project folder and click OK.
29402  Add a message for the log file if desired, then click OK again.
29403  The new project folder should appear in the repository.
29404  Finally, click OK again to exit the repository browser.
29405 \end_layout
29406
29407 \begin_layout Enumerate
29408 Once again right click 
29409 \family typewriter
29410 C:
29411 \backslash
29412 new project
29413 \family default
29414 , this time selecting SVN Checkout\SpecialChar ldots
29415  Select the URL of the project folder
29416  you just created in the repository, and set the checkout directory to 
29417 \family typewriter
29418 C:
29419 \backslash
29420 new project.
29421
29422 \family default
29423  Click OK.
29424  You will be warned about a non-empty folder; click OK to proceed.
29425  You should now have a 
29426 \family typewriter
29427 .svn
29428 \family default
29429  directory under 
29430 \family typewriter
29431 C:
29432 \backslash
29433 new project.
29434 \end_layout
29435
29436 \begin_layout Enumerate
29437 Create or open your document in \SpecialChar LyX
29438  and click 
29439 \family sans
29440 File\SpecialChar menuseparator
29441 Version
29442 \begin_inset space ~
29443 \end_inset
29444
29445 Control\SpecialChar menuseparator
29446 Register.
29447  
29448 \family default
29449 Add a log message and click OK to commit the document to version control.
29450 \end_layout
29451
29452 \begin_layout Standard
29453 From this point onward, you should have full functionality in the 
29454 \family sans
29455 File\SpecialChar menuseparator
29456 Version
29457 \begin_inset space ~
29458 \end_inset
29459
29460 Control
29461 \family default
29462  menu.
29463  You also have the option of checking the document in and out, viewing its
29464  history, etc.
29465  using the TortoiseSVN context menu in Windows Explorer or the Subversion
29466  client program from a command prompt.
29467 \end_layout
29468
29469 \begin_layout Subsubsection
29470 SSH tunnel used with SVN under Windows
29471 \end_layout
29472
29473 \begin_layout Standard
29474 Compared with Linux setting up an svn client to communicate over ssh under
29475  Windows is a rather troublesome task.
29476  We will at least offer some hints how to setup the client side but prior
29477  knowledge about ssh and the Windows command line is needed, also be prepared
29478  for a great deal of frustration\SpecialChar ldots
29479
29480 \end_layout
29481
29482 \begin_layout Enumerate
29483 Get an svn client for windows, as described in the previous sections.
29484  When it is a fresh install run some svn command (e.g.
29485  
29486 \begin_inset Flex Code
29487 status collapsed
29488
29489 \begin_layout Plain Layout
29490 svn --version
29491 \end_layout
29492
29493 \end_inset
29494
29495 ) to create config files, which you will need to change later on.
29496 \end_layout
29497
29498 \begin_layout Enumerate
29499 Choose an ssh client for Windows.
29500  There are several possibilities, we will use the one from Putty tools
29501 \begin_inset Foot
29502 status collapsed
29503
29504 \begin_layout Plain Layout
29505 \begin_inset Flex URL
29506 status collapsed
29507
29508 \begin_layout Plain Layout
29509
29510 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
29511 \end_layout
29512
29513 \end_inset
29514
29515
29516 \end_layout
29517
29518 \end_inset
29519
29520 .
29521  You will need to set the connection up so that the client doesn't ask for
29522  any password from you.
29523  To keep things easy we will use only keys without any additional password
29524  protection etc.
29525 \end_layout
29526
29527 \begin_deeper
29528 \begin_layout Enumerate
29529 Generate keys by 
29530 \begin_inset Flex Code
29531 status collapsed
29532
29533 \begin_layout Plain Layout
29534 puttygen
29535 \end_layout
29536
29537 \end_inset
29538
29539 .
29540  Save your private .ppk key file and put the public one on the server side.
29541  If the SVN server runs on Linux, note that the format of the public key
29542  is not compatible with Linux openssh and you will need to direcly copy-paste
29543  the key from the 
29544 \begin_inset Quotes eld
29545 \end_inset
29546
29547
29548 \emph on
29549 Public key for pasting into OpenSSH authorized_keys file
29550 \emph default
29551 :
29552 \begin_inset Quotes erd
29553 \end_inset
29554
29555  edit field into the server's 
29556 \begin_inset Flex Code
29557 status collapsed
29558
29559 \begin_layout Plain Layout
29560 ~/.ssh/authorized_keys
29561 \end_layout
29562
29563 \end_inset
29564
29565  / 
29566 \begin_inset Flex Code
29567 status collapsed
29568
29569 \begin_layout Plain Layout
29570 authorized_keys2
29571 \end_layout
29572
29573 \end_inset
29574
29575  file.
29576 \end_layout
29577
29578 \begin_layout Enumerate
29579 Get the Putty's 
29580 \begin_inset Flex Code
29581 status collapsed
29582
29583 \begin_layout Plain Layout
29584 plink
29585 \end_layout
29586
29587 \end_inset
29588
29589 .
29590  In the SVN config file
29591 \begin_inset Foot
29592 status collapsed
29593
29594 \begin_layout Plain Layout
29595 Exact path depends on Windows version, usually somewhere around 
29596 \begin_inset Flex Code
29597 status collapsed
29598
29599 \begin_layout Plain Layout
29600 c:
29601 \backslash
29602 Documents and Settings
29603 \backslash
29604 user
29605 \backslash
29606 Application Data
29607 \backslash
29608 Subversion
29609 \backslash
29610 config
29611 \end_layout
29612
29613 \end_inset
29614
29615  / 
29616 \begin_inset Flex Code
29617 status collapsed
29618
29619 \begin_layout Plain Layout
29620 AppData
29621 \backslash
29622 Roaming
29623 \backslash
29624 Subversion
29625 \end_layout
29626
29627 \end_inset
29628
29629 .
29630 \end_layout
29631
29632 \end_inset
29633
29634 , section [tunnels], setup ssh command, e.g.
29635  
29636 \begin_inset Flex Code
29637 status collapsed
29638
29639 \begin_layout Plain Layout
29640 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
29641 \end_layout
29642
29643 \end_inset
29644
29645 .
29646 \begin_inset Foot
29647 status collapsed
29648
29649 \begin_layout Plain Layout
29650 It will usually take a lot of time to get exact command right and it depends
29651  on many things.
29652  For example do not have some remote server saved as a default session in
29653  Putty etc.
29654  If things fail, try to connect via plink without SVN first.
29655 \end_layout
29656
29657 \end_inset
29658
29659
29660 \end_layout
29661
29662 \end_deeper
29663 \begin_layout Enumerate
29664 Checkout the SVN archive, e.
29665 \begin_inset space \thinspace{}
29666 \end_inset
29667
29668 g.
29669 \begin_inset Newline newline
29670 \end_inset
29671
29672
29673 \begin_inset Flex Code
29674 status collapsed
29675
29676 \begin_layout Plain Layout
29677 svn co svn+ssh://user@server/repository_path
29678 \end_layout
29679
29680 \end_inset
29681
29682 .
29683 \end_layout
29684
29685 \begin_layout Subsubsection
29686 End-of-Line Conversions
29687 \end_layout
29688
29689 \begin_layout Standard
29690 When the collaborators are mixing Linux and Windows environments, \SpecialChar LyX
29691  will
29692  use different line endings inside the .lyx files.
29693  This is not a problem as far as \SpecialChar LyX
29694  functionality is concerned, but the commit
29695  diffs will be huge and merge-conflicts prone.
29696  Fortunately SVN itself knows
29697 \begin_inset Foot
29698 status collapsed
29699
29700 \begin_layout Plain Layout
29701 \begin_inset Flex URL
29702 status collapsed
29703
29704 \begin_layout Plain Layout
29705
29706 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
29707 \end_layout
29708
29709 \end_inset
29710
29711
29712 \end_layout
29713
29714 \end_inset
29715
29716  how to deal with CR/LF problems when switching .lyx files to the 
29717 \begin_inset Flex Code
29718 status collapsed
29719
29720 \begin_layout Plain Layout
29721 native
29722 \end_layout
29723
29724 \end_inset
29725
29726  mode.
29727 \begin_inset Foot
29728 status collapsed
29729
29730 \begin_layout Plain Layout
29731 For the lazy guys: 
29732 \begin_inset Flex Code
29733 status collapsed
29734
29735 \begin_layout Plain Layout
29736 svn propset svn:eol-style native FILE_NAME
29737 \end_layout
29738
29739 \end_inset
29740
29741
29742 \end_layout
29743
29744 \end_inset
29745
29746
29747 \end_layout
29748
29749 \begin_layout Subsection
29750 GIT commands in \SpecialChar LyX
29751
29752 \end_layout
29753
29754 \begin_layout Standard
29755 A minimal subset of GIT commands is now supported by \SpecialChar LyX
29756 .
29757  You can find the commands in the 
29758 \family sans
29759 File\SpecialChar menuseparator
29760 Version
29761 \begin_inset space ~
29762 \end_inset
29763
29764 Control
29765 \family default
29766  submenu.
29767  Please note that if you use password protected access to repository via
29768  ssh, you will be asked in terminal window.
29769  \SpecialChar LyX
29770  was tested against GIT 1.7.
29771 \begin_inset Foot
29772 status collapsed
29773
29774 \begin_layout Plain Layout
29775 Windows users please note that you need to ensure that git is on the path.
29776  This can be set from within \SpecialChar LyX
29777  at 
29778 \family sans
29779 Tools\SpecialChar menuseparator
29780 Preferences\SpecialChar menuseparator
29781 Paths\SpecialChar menuseparator
29782 PATH prefix
29783 \family default
29784 .
29785 \end_layout
29786
29787 \end_inset
29788
29789
29790 \end_layout
29791
29792 \begin_layout Standard
29793 One big difference of GIT and the other supported version control systems
29794  is the distributed nature of GIT: With traditional version control systems
29795  there is one central server which hosts the repository.
29796  Users commit their changes to the server, and get updates made by other
29797  users from it.
29798  With GIT, users commit to a local repository.
29799  The local repository can be synchronized with one or more remote repositories
29800  using the 
29801 \begin_inset Flex Code
29802 status collapsed
29803
29804 \begin_layout Plain Layout
29805 pull
29806 \end_layout
29807
29808 \end_inset
29809
29810  and 
29811 \begin_inset Flex Code
29812 status collapsed
29813
29814 \begin_layout Plain Layout
29815 push
29816 \end_layout
29817
29818 \end_inset
29819
29820  GIT commands.
29821  \SpecialChar LyX
29822  does not interact in any way with remote GIT repositories.
29823  It works exclusively with the local repository in a very similar way as
29824  with a central CVS or SVN repository.
29825  If you use remote GIT repositories you need to do the 
29826 \begin_inset Flex Code
29827 status collapsed
29828
29829 \begin_layout Plain Layout
29830 pull
29831 \end_layout
29832
29833 \end_inset
29834
29835  and 
29836 \begin_inset Flex Code
29837 status collapsed
29838
29839 \begin_layout Plain Layout
29840 push
29841 \end_layout
29842
29843 \end_inset
29844
29845  operations with your favourite GIT client.
29846 \end_layout
29847
29848 \begin_layout Subsubsection
29849
29850 \family sans
29851 Register
29852 \end_layout
29853
29854 \begin_layout Standard
29855 If your document is not under revision control, this is the only item shown
29856  in the menu.
29857  And if it is under revision control, the 
29858 \family sans
29859 Register
29860 \family default
29861  item is not visible.
29862 \end_layout
29863
29864 \begin_layout Standard
29865 This command registers in GIT your document ONLY in case you have already
29866  the documents directory under GIT control (in particular 
29867 \family typewriter
29868 .git/index
29869 \family default
29870  file exists).
29871  This means you have to checkout the archive by yourself.
29872 \end_layout
29873
29874 \begin_layout Standard
29875 Then you are asked interactively to supply an initial description of the
29876  document.
29877  Don't forget that registered file is not yet committed.
29878 \end_layout
29879
29880 \begin_layout Standard
29881 GIT command that is run: 
29882 \family typewriter
29883 git add 
29884 \begin_inset Quotes qld
29885 \end_inset
29886
29887 <file-name>
29888 \begin_inset Quotes qld
29889 \end_inset
29890
29891
29892 \end_layout
29893
29894 \begin_layout Standard
29895 Read 
29896 \family typewriter
29897 man git
29898 \family default
29899  to understand the switches.
29900 \end_layout
29901
29902 \begin_layout Subsubsection
29903
29904 \family sans
29905 Check In Changes
29906 \end_layout
29907
29908 \begin_layout Standard
29909 When you are finished editing a file, you commit your changes.
29910  When you do this, you are asked for a description of the changes.
29911  After that changes are committed.
29912 \end_layout
29913
29914 \begin_layout Standard
29915 GIT command: 
29916 \family typewriter
29917 git commit -q -m"<description>" <file-name>
29918 \end_layout
29919
29920 \begin_layout Subsubsection
29921
29922 \family sans
29923 Revert To Repository Version
29924 \end_layout
29925
29926 \begin_layout Standard
29927 This will discard all changes made to the document since the last check
29928  in.
29929  You get a warning before changes are discarded.
29930 \end_layout
29931
29932 \begin_layout Standard
29933 GIT command: 
29934 \family typewriter
29935 git checkout -q 
29936 \begin_inset Quotes qld
29937 \end_inset
29938
29939 <file-name>
29940 \begin_inset Quotes qld
29941 \end_inset
29942
29943
29944 \end_layout
29945
29946 \begin_layout Subsubsection
29947
29948 \family sans
29949 Rename
29950 \end_layout
29951
29952 \begin_layout Standard
29953 This will rename the current document including the version history.
29954  It requires a clean document without any changes since the last checkin.
29955  You are asked for a file name and a description of the rename operation.
29956  After that the document is renamed, both locally and in the repository.
29957  If the parent directories of the new and old file names differ, all relative
29958  paths of included files are adjusted (like in 
29959 \family sans
29960 File\SpecialChar menuseparator
29961 Save As
29962 \family default
29963 \SpecialChar ldots
29964 ).
29965  Finally, the document is reloaded using the new name.
29966 \end_layout
29967
29968 \begin_layout Labeling
29969 \labelwidthstring 00.00.0000
29970 GIT
29971 \begin_inset space ~
29972 \end_inset
29973
29974 commands: 
29975 \begin_inset space ~
29976 \end_inset
29977
29978
29979 \begin_inset Newline newline
29980 \end_inset
29981
29982
29983 \begin_inset Flex Code
29984 status collapsed
29985
29986 \begin_layout Plain Layout
29987 git mv 
29988 \family typewriter
29989
29990 \begin_inset Quotes qld
29991 \end_inset
29992
29993 <file-name>
29994 \begin_inset Quotes qld
29995 \end_inset
29996
29997  
29998 \begin_inset Quotes qld
29999 \end_inset
30000
30001 <new-file-name>
30002 \begin_inset Quotes qld
30003 \end_inset
30004
30005
30006 \end_layout
30007
30008 \end_inset
30009
30010
30011 \begin_inset Newline newline
30012 \end_inset
30013
30014
30015 \begin_inset Flex Code
30016 status collapsed
30017
30018 \begin_layout Plain Layout
30019 git commit
30020 \end_layout
30021
30022 \end_inset
30023
30024
30025 \end_layout
30026
30027 \begin_layout Subsubsection
30028
30029 \family sans
30030 Show History
30031 \end_layout
30032
30033 \begin_layout Standard
30034 This shows the complete history of the GIT document.
30035  The output of 
30036 \family typewriter
30037 git log 
30038 \begin_inset Quotes qld
30039 \end_inset
30040
30041 <file-name>
30042 \begin_inset Quotes qld
30043 \end_inset
30044
30045
30046 \family default
30047  is shown in a browser.
30048 \end_layout
30049
30050 \begin_layout Subsubsection
30051 Version Info
30052 \end_layout
30053
30054 \begin_layout Standard
30055 \SpecialChar LyX
30056  supports GIT hash number of the last commit to the file, 
30057 \change_inserted 1119979965 1564297456
30058 its abbreviated form, 
30059 \change_unchanged
30060 author name, date and time of last commit.
30061  All those are extracted from 
30062 \family typewriter
30063 git log -n 1 --pretty=format:%H%n
30064 \change_inserted 1119979965 1564297427
30065 %h%n
30066 \change_unchanged
30067 %an%n%ai
30068 \family default
30069 .
30070  Tree version information is obtained via 
30071 \family typewriter
30072 git describe --abbrev --dirty --long
30073 \family default
30074 .
30075  See 
30076 \begin_inset CommandInset ref
30077 LatexCommand ref
30078 reference "subsec:VCS-Revision-Information"
30079
30080 \end_inset
30081
30082  for other details.
30083 \end_layout
30084
30085 \begin_layout Subsection
30086 Further tuning
30087 \end_layout
30088
30089 \begin_layout Standard
30090 With the recent addition of the 
30091 \begin_inset Flex Code
30092 status collapsed
30093
30094 \begin_layout Plain Layout
30095 vc-command
30096 \end_layout
30097
30098 \end_inset
30099
30100  function \SpecialChar LyX
30101  power users are allowed to create their own commands for revision
30102  control.
30103 \end_layout
30104
30105 \begin_layout Standard
30106 As an example you can see how two TortoiseSVN commands could be integrated
30107  directly:
30108 \end_layout
30109
30110 \begin_layout Description
30111 Commit: 
30112 \begin_inset Flex Code
30113 status collapsed
30114
30115 \begin_layout Plain Layout
30116 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
30117 \end_layout
30118
30119 \end_inset
30120
30121
30122 \end_layout
30123
30124 \begin_layout Description
30125 Revert: 
30126 \begin_inset Flex Code
30127 status collapsed
30128
30129 \begin_layout Plain Layout
30130 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
30131 \end_layout
30132
30133 \end_inset
30134
30135
30136 \end_layout
30137
30138 \begin_layout Subsection
30139 Version control and Document comparison
30140 \end_layout
30141
30142 \begin_layout Standard
30143 One of the typical uses of version control is to inspect the changes between
30144  revisions, usually by creating 
30145 \begin_inset Flex Code
30146 status collapsed
30147
30148 \begin_layout Plain Layout
30149 diff
30150 \end_layout
30151
30152 \end_inset
30153
30154  dumps.
30155  While this is useful for plain text files, it is much less useful in the
30156  case of \SpecialChar LyX
30157  files, which have more a complicated structure.
30158  Hence we provide binding to the Document comparison feature.
30159  There are two ways of calling this feature – either by direct call of 
30160 \begin_inset Flex Code
30161 status collapsed
30162
30163 \begin_layout Plain Layout
30164 vc-compare
30165 \end_layout
30166
30167 \end_inset
30168
30169  \SpecialChar LyX
30170  function (for details see \SpecialChar LyX
30171  functions manual) or by the toolbar icon 
30172 \begin_inset Info
30173 type  "icon"
30174 arg   "vc-compare"
30175 \end_inset
30176
30177  or the menu item 
30178 \begin_inset Info
30179 type  "menu"
30180 arg   "vc-compare"
30181 \end_inset
30182
30183 , respectively.
30184  One can either compare two chosen revisions of the document or he can simply
30185  compare the current version of edited text with older revisions (where
30186  '
30187 \begin_inset Flex Noun
30188 status collapsed
30189
30190 \begin_layout Plain Layout
30191 0
30192 \end_layout
30193
30194 \end_inset
30195
30196 ' revisions back means comparison of the edited file with last commited
30197  revision).
30198  
30199 \end_layout
30200
30201 \begin_layout Standard
30202 This feature is supported for SVN and RCS though due to the more complicated
30203  versioning scheme of RCS there is a constraint – when addressing the revisions
30204  in dialog, numbers always point to the last number in RCS revision number,
30205  i.e.
30206  '35' in '1.2.35'.
30207  We don't currently support GIT addressing of revisions, one can just compare
30208  edited document with its revision X steps backs, where X is addressed as
30209  
30210 \begin_inset Flex Code
30211 status collapsed
30212
30213 \begin_layout Plain Layout
30214 HEAD~X
30215 \end_layout
30216
30217 \end_inset
30218
30219 .
30220 \end_layout
30221
30222 \begin_layout Section
30223 Literate Programming
30224 \end_layout
30225
30226 \begin_layout Standard
30227 Updated by 
30228 \noun on
30229 Kayvan Sylvan 
30230 \noun default
30231 (kayvan@sylvan.com)
30232 \noun on
30233
30234 \noun default
30235 original documentation written by 
30236 \noun on
30237 Edmar Wienskoski Jr.
30238
30239 \noun default
30240  (edmar-w-jr@technologist.com)
30241 \end_layout
30242
30243 \begin_layout Subsection
30244 Introduction
30245 \end_layout
30246
30247 \begin_layout Standard
30248 The main purpose of this documentation is to show you how to use \SpecialChar LyX
30249  for literate
30250  programming, where it is assumed that you are familiar with this programming
30251  technique, and know what 
30252 \begin_inset Quotes eld
30253 \end_inset
30254
30255 tangling
30256 \begin_inset Quotes erd
30257 \end_inset
30258
30259  and 
30260 \begin_inset Quotes eld
30261 \end_inset
30262
30263 weaving
30264 \begin_inset Quotes erd
30265 \end_inset
30266
30267  means.
30268  If that is not the case, please follow the web links provided in the following
30269  sections.
30270  There is a lot of good documentation out there covering old development
30271  history to the latest tools tips.
30272 \end_layout
30273
30274 \begin_layout Standard
30275 It is also assumed that you are familiar with \SpecialChar LyX
30276  itself to a point that you
30277  are comfortable changing your \SpecialChar LyX
30278  preferences, and X resources file.
30279  If that is not the case please refer to other \SpecialChar LyX
30280  documentation to cover your
30281  specific needs.
30282 \end_layout
30283
30284 \begin_layout Subsection
30285 Literate Programming
30286 \end_layout
30287
30288 \begin_layout Standard
30289 From the Literate Programming FAQ: 
30290 \end_layout
30291
30292 \begin_layout Quotation
30293 Literate programming is the combination of documentation and source together
30294  in a fashion suited for reading by human beings.
30295  In fact, literate programs should be enjoyable reading, even inviting!
30296  (Sorry Bob, I couldn't resist!) In general, literate programs combine source
30297  and documentation in a single file.
30298  Literate programming tools then parse the file to produce either readable
30299  documentation or compilable source.
30300  The WEB style of literate programming was created by D.
30301 \begin_inset space \thinspace{}
30302 \end_inset
30303
30304 E.
30305  Knuth during the development of his \SpecialChar TeX
30306  typesetting software.
30307  
30308 \end_layout
30309
30310 \begin_layout Standard
30311 Another excerpt says:
30312 \end_layout
30313
30314 \begin_layout Quotation
30315
30316 \emph on
30317 How is literate programming different from verbose commenting?
30318 \end_layout
30319
30320 \begin_layout Quotation
30321 There are three distinguishing characteristics.
30322  In order of importance, they are: 
30323 \end_layout
30324
30325 \begin_deeper
30326 \begin_layout Itemize
30327 flexible order of elaboration 
30328 \end_layout
30329
30330 \begin_layout Itemize
30331 automatic support for browsing 
30332 \end_layout
30333
30334 \begin_layout Itemize
30335 typeset documentation, especially diagrams and mathematics 
30336 \end_layout
30337
30338 \end_deeper
30339 \begin_layout Standard
30340 Now that I sparked your curiosity, take a look in the references.
30341 \end_layout
30342
30343 \begin_layout Subsubsection
30344 References
30345 \end_layout
30346
30347 \begin_layout Standard
30348 The complete Literate Programming FAQ can be found at:
30349 \end_layout
30350
30351 \begin_layout Quote
30352 Literate Programming FAQ 
30353 \begin_inset Flex URL
30354 status open
30355
30356 \begin_layout Plain Layout
30357
30358 http://www.literateprogramming.com/lpfaq.pdf
30359 \end_layout
30360
30361 \end_inset
30362
30363
30364 \end_layout
30365
30366 \begin_layout Standard
30367 The FAQ lists 23 (twenty three!) different literate programming tools.
30368  Where some are specialized or 
30369 \begin_inset Quotes eld
30370 \end_inset
30371
30372 tailored
30373 \begin_inset Quotes erd
30374 \end_inset
30375
30376  for particular programming languages, while other have general scope.
30377  I selected 
30378 \noun on
30379 Noweb
30380 \noun default
30381  for my own use for several reasons:
30382 \end_layout
30383
30384 \begin_layout Itemize
30385 It can generate the documentation either in \SpecialChar LaTeX
30386  or HTML.
30387 \end_layout
30388
30389 \begin_layout Itemize
30390 It has a open architecture, i.
30391 \begin_inset space \thinspace{}
30392 \end_inset
30393
30394 e.
30395 \begin_inset space \space{}
30396 \end_inset
30397
30398 it is easy to plug in new filters
30399 \begin_inset Foot
30400 status collapsed
30401
30402 \begin_layout Plain Layout
30403
30404 \emph on
30405 Filters 
30406 \emph default
30407 are programs that read a given data stream and output a manipulated data
30408  stream.
30409  That way, a WEB file (consisting of literate code) can be turned into a
30410  file consisting only of C program code or \SpecialChar LaTeX
30411  code.
30412 \end_layout
30413
30414 \end_inset
30415
30416  and to perform special processing that you may need.
30417  
30418 \end_layout
30419
30420 \begin_layout Itemize
30421 There is a good selection of filters available already (the HTML is one
30422  of them).
30423 \end_layout
30424
30425 \begin_layout Itemize
30426 It is free.
30427 \end_layout
30428
30429 \begin_layout Standard
30430 The Noweb web page can be found at: 
30431 \end_layout
30432
30433 \begin_layout Quote
30434 Noweb home page 
30435 \begin_inset Flex URL
30436 status collapsed
30437
30438 \begin_layout Plain Layout
30439
30440 https://www.cs.tufts.edu/~nr/noweb/
30441 \end_layout
30442
30443 \end_inset
30444
30445
30446 \end_layout
30447
30448 \begin_layout Standard
30449 Starting from there you can reach many other interesting links and even
30450  some literate program examples.
30451 \end_layout
30452
30453 \begin_layout Subsection
30454 \SpecialChar LyX
30455  and Literate Programming with Noweb
30456 \end_layout
30457
30458 \begin_layout Standard
30459 The \SpecialChar LyX
30460  support for Literate Programming is provided by using the generic \SpecialChar LyX
30461
30462  converters mechanism.
30463  This support is provided in a 
30464 \begin_inset Quotes eld
30465 \end_inset
30466
30467 Noweb independent
30468 \begin_inset Quotes erd
30469 \end_inset
30470
30471  way, i.
30472 \begin_inset space \thinspace{}
30473 \end_inset
30474
30475 e.
30476 \begin_inset space \space{}
30477 \end_inset
30478
30479 you will be able to use this new \SpecialChar LyX
30480  feature with some other literate programming
30481  tool of your choice by just changing your \SpecialChar LyX
30482  preferences.
30483 \end_layout
30484
30485 \begin_layout Subsubsection
30486 Generating documents and code (weaving and tangling)
30487 \end_layout
30488
30489 \begin_layout Paragraph
30490 Using the noweb module
30491 \end_layout
30492
30493 \begin_layout Standard
30494 If you have installed Noweb and \SpecialChar LyX
30495  successfully, whenever you open a new document,
30496  after you have chosen its document class, use the 
30497 \family sans
30498 Document\SpecialChar menuseparator
30499 Settings
30500 \family default
30501  menu to add the 
30502 \begin_inset Quotes eld
30503 \end_inset
30504
30505 noweb
30506 \begin_inset Quotes erd
30507 \end_inset
30508
30509  module.
30510  If Noweb is correctly installed, when you click on the 
30511 \begin_inset Quotes eld
30512 \end_inset
30513
30514 Modules
30515 \begin_inset Quotes erd
30516 \end_inset
30517
30518  link, you will see the 
30519 \begin_inset Quotes eld
30520 \end_inset
30521
30522 noweb
30523 \begin_inset Quotes erd
30524 \end_inset
30525
30526  module in the available list and you can add it to your document.
30527 \end_layout
30528
30529 \begin_layout Paragraph
30530 Typing code in
30531 \end_layout
30532
30533 \begin_layout Standard
30534 \SpecialChar LyX
30535  enables you to write code with a custom inset named 
30536 \begin_inset Flex Noun
30537 status collapsed
30538
30539 \begin_layout Plain Layout
30540 Chunk
30541 \end_layout
30542
30543 \end_inset
30544
30545 .
30546  Noweb delimits chunks like this:
30547 \end_layout
30548
30549 \begin_layout LyX-Code
30550 <<My code>>=
30551 \end_layout
30552
30553 \begin_layout LyX-Code
30554   code
30555 \end_layout
30556
30557 \begin_layout LyX-Code
30558   more code
30559 \end_layout
30560
30561 \begin_layout LyX-Code
30562   even more code
30563 \end_layout
30564
30565 \begin_layout LyX-Code
30566   @
30567 \end_layout
30568
30569 \begin_layout Standard
30570 The problem is that whatever is written in between the << and the 
30571 \family typewriter
30572 @
30573 \family default
30574  must be taken literally, i.
30575 \begin_inset space \thinspace{}
30576 \end_inset
30577
30578 e.
30579 \begin_inset space \space{}
30580 \end_inset
30581
30582 \SpecialChar LyX
30583  should be prevented from making any special interpretation of what has
30584  been written.
30585  This is also handled by 
30586 \begin_inset Flex Noun
30587 status collapsed
30588
30589 \begin_layout Plain Layout
30590 Chunk
30591 \end_layout
30592
30593 \end_inset
30594
30595 , that works like a normal text inset but has a free spacing capability.
30596 \end_layout
30597
30598 \begin_layout Standard
30599 As a special note, you can also use the 
30600 \begin_inset Quotes eld
30601 \end_inset
30602
30603 %def
30604 \begin_inset Quotes erd
30605 \end_inset
30606
30607  construct of Noweb in your chunks to add items to Noweb's identifier cross-refe
30608 rence:
30609 \end_layout
30610
30611 \begin_layout LyX-Code
30612 <<My chunk>>=
30613 \end_layout
30614
30615 \begin_layout LyX-Code
30616 def some_function(args):
30617 \end_layout
30618
30619 \begin_layout LyX-Code
30620    "This is the doc string for this function."
30621 \end_layout
30622
30623 \begin_layout LyX-Code
30624    print "My args: ", args
30625 \end_layout
30626
30627 \begin_layout LyX-Code
30628 @ %def some_function
30629 \end_layout
30630
30631 \begin_layout Standard
30632 For an example of this usage and the resulting cross-reference output, look
30633  at the Literate python program in 
30634 \emph on
30635 LIBDIR/examples/listerrors.lyx
30636 \emph default
30637  which should make this all clear.
30638 \end_layout
30639
30640 \begin_layout Paragraph
30641 Generating the documentation
30642 \end_layout
30643
30644 \begin_layout Standard
30645 At this point you already have a new document file with a proper document
30646  class, and with some code and text on it.
30647  How do I print it? The answer is simple, you select 
30648 \family sans
30649 View\SpecialChar menuseparator
30650 DVI,
30651 \family default
30652  etc.
30653  Just like you would do for a plain document.
30654  No special procedure is required.
30655 \end_layout
30656
30657 \begin_layout Standard
30658 To help orientate you, I will now explain what happens inside \SpecialChar LyX
30659 :
30660 \end_layout
30661
30662 \begin_layout Enumerate
30663 When the 
30664 \family sans
30665 Update\SpecialChar menuseparator
30666 DVI
30667 \family default
30668  menu option is chosen, a \SpecialChar LaTeX
30669  file is generated.
30670  
30671 \end_layout
30672
30673 \begin_deeper
30674 \begin_layout Standard
30675 If the document is of any literate class the generated file will be named
30676  with an extension name defined by the 
30677 \begin_inset Quotes eld
30678 \end_inset
30679
30680 literate
30681 \begin_inset Quotes erd
30682 \end_inset
30683
30684  format (defined in the Preferences panel), otherwise the file will have
30685  the usual 
30686 \family typewriter
30687 .tex
30688 \family default
30689  extension.
30690 \end_layout
30691
30692 \end_deeper
30693 \begin_layout Enumerate
30694 Note that the only difference so far is in the name of the file, no special
30695  processing is required by \SpecialChar LyX
30696 .
30697  Given that you formatted the code using the 
30698 \begin_inset Flex Noun
30699 status collapsed
30700
30701 \begin_layout Plain Layout
30702 Chunk
30703 \end_layout
30704
30705 \end_inset
30706
30707  inset that, by itself, takes care of the business.
30708 \end_layout
30709
30710 \begin_layout Enumerate
30711 If the document is of any literate class \SpecialChar LyX
30712  will then use the internal \SpecialChar LyX
30713  to
30714  Noweb converter, followed by the Noweb to \SpecialChar LaTeX
30715  converter
30716 \begin_inset Foot
30717 status collapsed
30718
30719 \begin_layout Plain Layout
30720 The converters are defined in the 
30721 \family sans
30722 Tools\SpecialChar menuseparator
30723 Preferences
30724 \family default
30725  panel, under the 
30726 \begin_inset Quotes eld
30727 \end_inset
30728
30729 Conversion
30730 \begin_inset Quotes erd
30731 \end_inset
30732
30733  tab.
30734  See section 
30735 \emph on
30736 Converters
30737 \emph default
30738  of the 
30739 \emph on
30740 Customization
30741 \emph default
30742  manual for general information about converters.
30743 \end_layout
30744
30745 \end_inset
30746
30747  to generate the \SpecialChar LaTeX
30748  file.
30749 \end_layout
30750
30751 \begin_deeper
30752 \begin_layout Standard
30753 Otherwise it will just skip this step.
30754 \end_layout
30755
30756 \end_deeper
30757 \begin_layout Enumerate
30758 Finally, \SpecialChar LaTeX
30759  is invoked and the regular post processing continues as in a plain
30760  document.
30761 \end_layout
30762
30763 \begin_layout Standard
30764 Independence from a particular 
30765 \begin_inset Quotes eld
30766 \end_inset
30767
30768 literate tool
30769 \begin_inset Quotes erd
30770 \end_inset
30771
30772  is easily achieved by changing the commands that are run by the various
30773  converters.
30774 \end_layout
30775
30776 \begin_layout Paragraph
30777 Generating the code
30778 \end_layout
30779
30780 \begin_layout Standard
30781 When the build menu option is chosen or the corresponding button in the
30782  toolbar is pressed, a \SpecialChar LaTeX
30783  file is generated just like step 1 above.
30784  Next, \SpecialChar LyX
30785  invokes the 
30786 \family typewriter
30787 Noweb->Program
30788 \family default
30789  converter.
30790  This converter needs to be defined by the user and is not installed by
30791  default, though the Program format is.
30792  This converter (like any other converter) will have two parts:
30793 \end_layout
30794
30795 \begin_layout Enumerate
30796 The converter program itself.
30797  This program performs the conversion from the one format to the other (in
30798  this case, from the Noweb format to the Program pseudo-format).
30799 \end_layout
30800
30801 \begin_layout Enumerate
30802 The error log parser.
30803  This is a program whose sole purpose is to rewrite error messages in a
30804  format that \SpecialChar LyX
30805  understands.
30806  This makes it possible for \SpecialChar LyX
30807  to place error boxes in the right places in
30808  the file buffer.
30809 \end_layout
30810
30811 \begin_layout Standard
30812 The first part, the 
30813 \begin_inset Quotes eld
30814 \end_inset
30815
30816 Converter
30817 \begin_inset Quotes erd
30818 \end_inset
30819
30820  setting, should be set to
30821 \end_layout
30822
30823 \begin_layout LyX-Code
30824
30825 \family typewriter
30826 build-script $$i
30827 \family default
30828  $$r
30829 \end_layout
30830
30831 \begin_layout Standard
30832 This basically means that \SpecialChar LyX
30833  will call 
30834 \begin_inset Quotes eld
30835 \end_inset
30836
30837 build-script
30838 \begin_inset Quotes erd
30839 \end_inset
30840
30841  (a program or script) with the name of the Noweb file (normally a file
30842  in the \SpecialChar LyX
30843  temp directory) and the directory path of the original \SpecialChar LyX
30844  file.
30845  
30846 \end_layout
30847
30848 \begin_layout Standard
30849 This is an implementation of 
30850 \begin_inset Quotes eld
30851 \end_inset
30852
30853 build-script
30854 \begin_inset Quotes erd
30855 \end_inset
30856
30857  that you can place in a directory on your path:
30858 \end_layout
30859
30860 \begin_layout LyX-Code
30861
30862 \family sans
30863 #!/bin/sh
30864 \end_layout
30865
30866 \begin_layout LyX-Code
30867
30868 \family sans
30869 #
30870 \end_layout
30871
30872 \begin_layout LyX-Code
30873
30874 \family sans
30875 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
30876 \end_layout
30877
30878 \begin_layout Standard
30879 The next part of the converter setting is the 
30880 \begin_inset Quotes eld
30881 \end_inset
30882
30883 Flags
30884 \begin_inset Quotes erd
30885 \end_inset
30886
30887  which is to be set to
30888 \end_layout
30889
30890 \begin_layout LyX-Code
30891
30892 \family typewriter
30893 parselog=$$s/scripts/listerrors
30894 \end_layout
30895
30896 \begin_layout Standard
30897 This will run any errors that are generated by the 
30898 \begin_inset Quotes eld
30899 \end_inset
30900
30901 build-script
30902 \begin_inset Quotes erd
30903 \end_inset
30904
30905  process through the 
30906 \begin_inset Quotes eld
30907 \end_inset
30908
30909 listerrors
30910 \begin_inset Quotes erd
30911 \end_inset
30912
30913  program.
30914 \end_layout
30915
30916 \begin_layout Standard
30917 The build will normally take place in \SpecialChar LyX
30918 's temporary directory, so the files
30919  produced by the conversion will be in that directory.
30920  \SpecialChar LyX
30921  will copy out what it regards as the `main' file, but the 
30922 \family typewriter
30923 Noweb->Program
30924 \family default
30925  conversion may produce several files, and so most of these would then be
30926  deleted when \SpecialChar LyX
30927  was closed.
30928  This is why we pass in the NOWEB_OUTPUT_DIR environment variable so that
30929  the build-script chunk can place the generated files in that location.
30930 \end_layout
30931
30932 \begin_layout Paragraph
30933 Build instructions in the document
30934 \end_layout
30935
30936 \begin_layout Standard
30937 The last piece of the integration between \SpecialChar LyX
30938  and noweb is the 
30939 \begin_inset Quotes eld
30940 \end_inset
30941
30942 build-script
30943 \begin_inset Quotes erd
30944 \end_inset
30945
30946  chunk.
30947  Generally, the instructions for building your program should be embedded
30948  in a chunk of its own.
30949  The noweb-specific 
30950 \begin_inset Quotes eld
30951 \end_inset
30952
30953 build-script
30954 \begin_inset Quotes erd
30955 \end_inset
30956
30957  above uses the notangle command to look for this chunk (called 
30958 \begin_inset Quotes eld
30959 \end_inset
30960
30961 build-script
30962 \begin_inset Quotes erd
30963 \end_inset
30964
30965 ) and runs its contents through 
30966 \begin_inset Quotes eld
30967 \end_inset
30968
30969 sh
30970 \begin_inset Quotes erd
30971 \end_inset
30972
30973 .
30974 \end_layout
30975
30976 \begin_layout Standard
30977 Typically, such a chunk would look something like this:
30978 \end_layout
30979
30980 \begin_layout LyX-Code
30981 <<build-script>>=
30982 \end_layout
30983
30984 \begin_layout LyX-Code
30985 #!/bin/sh
30986 \begin_inset Newline newline
30987 \end_inset
30988
30989 if [ -z "${NOWEB_SOURCE}" ]
30990 \begin_inset Newline newline
30991 \end_inset
30992
30993 then
30994 \end_layout
30995
30996 \begin_layout LyX-Code
30997 NOWEB_SOURCE=myfile.nw
30998 \begin_inset Newline newline
30999 \end_inset
31000
31001 fi
31002 \begin_inset Newline newline
31003 \end_inset
31004
31005 [...
31006  code to extract files ...
31007  use NOWEB_OUTPUT_DIR here ...]
31008 \begin_inset Newline newline
31009 \end_inset
31010
31011 [...
31012  code to compile files ...]
31013 \begin_inset Newline newline
31014 \end_inset
31015
31016 @
31017 \end_layout
31018
31019 \begin_layout Standard
31020 Look in 
31021 \emph on
31022 LIBDIR/examples/listerrors.lyx
31023 \emph default
31024  or in 
31025 \emph on
31026 LIBDIR/examples/Literate.lyx
31027 \emph default
31028  which implement two versions of the 
31029 \begin_inset Quotes eld
31030 \end_inset
31031
31032 listerrors
31033 \begin_inset Quotes erd
31034 \end_inset
31035
31036  program for some illustrations of how all of these pieces go together or
31037  in 
31038 \emph on
31039 LIBDIR/examples/noweb2lyx.lyx.
31040
31041 \emph default
31042  Interestingly, these three files show off the language-indepence of the
31043  \SpecialChar LyX
31044  literate programming support since they are written in Python, C and Perl
31045  respectively.
31046 \end_layout
31047
31048 \begin_layout Subsubsection
31049 Configuring \SpecialChar LyX
31050
31051 \end_layout
31052
31053 \begin_layout Standard
31054 All the Literate Programming support is configured by the 
31055 \family sans
31056 Tools\SpecialChar menuseparator
31057 Preferences
31058 \family default
31059  panel in the 
31060 \begin_inset Quotes eld
31061 \end_inset
31062
31063 File Handling
31064 \begin_inset Quotes erd
31065 \end_inset
31066
31067  tab.
31068  The important parts are:
31069 \end_layout
31070
31071 \begin_layout Description
31072 the
31073 \begin_inset space ~
31074 \end_inset
31075
31076
31077 \begin_inset Quotes eld
31078 \end_inset
31079
31080 NoWeb
31081 \begin_inset Quotes erd
31082 \end_inset
31083
31084
31085 \begin_inset space ~
31086 \end_inset
31087
31088 format Set up via the File Formats tab, this is where the Noweb-specific
31089  pieces are set up.
31090  The 
31091 \family sans
31092 GUI Name
31093 \family default
31094  is set to 
31095 \family typewriter
31096 NoWeb
31097 \family default
31098 , the file extension is set to 
31099 \family typewriter
31100 .nw
31101 \family default
31102 .
31103  This tells \SpecialChar LyX
31104  to create a file with a 
31105 \family typewriter
31106 .nw
31107 \family default
31108  extension in the first step of the conversion process.
31109 \end_layout
31110
31111 \begin_layout Description
31112 the
31113 \begin_inset space ~
31114 \end_inset
31115
31116
31117 \family sans
31118 Program
31119 \family default
31120
31121 \begin_inset space ~
31122 \end_inset
31123
31124 format This is an empty format whose sole purpose is to be the endpoint
31125  of a conversion (which then allows us to set up a converter for it).
31126 \end_layout
31127
31128 \begin_layout Description
31129
31130 \family sans
31131 NoWeb
31132 \family default
31133 ->
31134 \family sans
31135 \SpecialChar LaTeX
31136
31137 \family default
31138  This converter performs the 
31139 \begin_inset Quotes eld
31140 \end_inset
31141
31142 weaving
31143 \begin_inset Quotes erd
31144 \end_inset
31145
31146  of the literate document.
31147  For Noweb, it is set to 
31148 \begin_inset Quotes eld
31149 \end_inset
31150
31151
31152 \family typewriter
31153 noweave -delay -index $$i > $$o
31154 \family default
31155
31156 \begin_inset Quotes erd
31157 \end_inset
31158
31159
31160 \end_layout
31161
31162 \begin_layout Description
31163
31164 \family sans
31165 NoWeb
31166 \family default
31167 ->
31168 \family sans
31169 Program
31170 \family default
31171  This performs the 
31172 \begin_inset Quotes eld
31173 \end_inset
31174
31175 tangling step
31176 \begin_inset Quotes erd
31177 \end_inset
31178
31179 .
31180  As stated above, the Converter is set to 
31181 \begin_inset Quotes eld
31182 \end_inset
31183
31184
31185 \family typewriter
31186 build-script $$i
31187 \family default
31188  $$r
31189 \begin_inset Quotes erd
31190 \end_inset
31191
31192 , with Flags set to
31193 \begin_inset Newline newline
31194 \end_inset
31195
31196
31197 \begin_inset Quotes eld
31198 \end_inset
31199
31200
31201 \family typewriter
31202 parselog=$$s/scripts/listerrors
31203 \family default
31204
31205 \begin_inset Quotes erd
31206 \end_inset
31207
31208 .
31209 \end_layout
31210
31211 \begin_layout Subsubsection
31212 Debug extensions
31213 \end_layout
31214
31215 \begin_layout Standard
31216 There is also a new function implemented in the \SpecialChar LyX
31217  server, the 
31218 \begin_inset Quotes eld
31219 \end_inset
31220
31221 server-goto-file-row" function, to be used with ddd/gdb or other debugger.
31222  
31223 \end_layout
31224
31225 \begin_layout Standard
31226 When debugging code with ddd/gdb, it is possible to invoke a text editor
31227  at the current execution position with a single key stroke.
31228  The default ddd configuration for that is shift-ctrl-V.
31229  It happens that you can define the editor command line invocation in ddd
31230  by accessing the 
31231 \family sans
31232 Edit\SpecialChar menuseparator
31233 Preferences\SpecialChar menuseparator
31234 Helpers
31235 \family default
31236  dialog and changing the "Edit Sources" entry.
31237 \end_layout
31238
31239 \begin_layout Standard
31240 I take advantage of the newly created \SpecialChar LyX
31241  server function and this ddd feature,
31242  and set 
31243 \begin_inset Quotes eld
31244 \end_inset
31245
31246 Edit Sources
31247 \begin_inset Quotes erd
31248 \end_inset
31249
31250  to:
31251 \end_layout
31252
31253 \begin_layout LyX-Code
31254 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
31255 \end_layout
31256
31257 \begin_layout Standard
31258 With this, whenever you are using ddd and find a point in the program that
31259  you want to edit, you just press shift-ctrl-V (in the ddd window), and
31260  ddd will forward this information to \SpecialChar LyX
31261  through the \SpecialChar LyX
31262  server and then the
31263  \SpecialChar LyX
31264  window will show the same file with the cursor at the same position ddd
31265  was pointing to.
31266  No more guessing or long scrolling to locate a point in the program back
31267  from debugging !
31268 \end_layout
31269
31270 \begin_layout Standard
31271 Note however that you must enable the \SpecialChar LyX
31272  server to get this feature working
31273  (it is disabled by default).
31274  Sec.
31275 \begin_inset space ~
31276 \end_inset
31277
31278
31279 \begin_inset CommandInset ref
31280 LatexCommand ref
31281 reference "sec:Starting-the-Server"
31282
31283 \end_inset
31284
31285  explains how to do that.
31286 \end_layout
31287
31288 \begin_layout Subsubsection
31289 Toolbar extensions
31290 \end_layout
31291
31292 \begin_layout Standard
31293 There are six new buttons that can be added to your \SpecialChar LyX
31294  toolbar.
31295  Four of these buttons are short cuts to layout styles: 
31296 \family sans
31297 Standard
31298 \family default
31299
31300 \family sans
31301 Section
31302 \family default
31303
31304 \family sans
31305 \SpecialChar LaTeX
31306
31307 \family default
31308 , and 
31309 \family sans
31310 \SpecialChar LyX
31311 -Code
31312 \family default
31313 , one for the custom inset 
31314 \family sans
31315 Chunk
31316 \family default
31317 .
31318  The last one is a short cut to the 
31319 \begin_inset Quotes eld
31320 \end_inset
31321
31322 Build Program
31323 \begin_inset Quotes erd
31324 \end_inset
31325
31326  File menu entry.
31327  
31328 \end_layout
31329
31330 \begin_layout Standard
31331 \SpecialChar LyX
31332  has a range of buttons that are available for tool bar customization.
31333  In my toolbar I like to combine the six short cuts above with two more:
31334  One for 
31335 \family sans
31336 Document
31337 \family default
31338 \SpecialChar menuseparator
31339
31340 \family sans
31341 Update
31342 \family default
31343 \SpecialChar menuseparator
31344
31345 \family sans
31346 DVI
31347 \family default
31348  and the other for 
31349 \family sans
31350 Document\SpecialChar menuseparator
31351 View\SpecialChar menuseparator
31352 DVI
31353 \family default
31354  File menu entries.
31355  Here is how it looks like:
31356 \end_layout
31357
31358 \begin_layout LyX-Code
31359 Toolbar
31360 \end_layout
31361
31362 \begin_layout LyX-Code
31363   Layouts
31364 \end_layout
31365
31366 \begin_layout LyX-Code
31367   Icon "layout Standard"
31368 \end_layout
31369
31370 \begin_layout LyX-Code
31371   Icon "layout Section"
31372 \end_layout
31373
31374 \begin_layout LyX-Code
31375   Icon "layout \SpecialChar LaTeX
31376 "
31377 \end_layout
31378
31379 \begin_layout LyX-Code
31380   Icon "layout \SpecialChar LyX
31381 -Code"
31382 \end_layout
31383
31384 \begin_layout LyX-Code
31385   Icon "flex.insert Chunk"
31386 \end_layout
31387
31388 \begin_layout LyX-Code
31389   Separator
31390 \end_layout
31391
31392 \begin_layout LyX-Code
31393   Icon "buffer-view"
31394 \end_layout
31395
31396 \begin_layout LyX-Code
31397   Icon "buffer-typeset"
31398 \end_layout
31399
31400 \begin_layout LyX-Code
31401   Icon "build-program"
31402 \end_layout
31403
31404 \begin_layout LyX-Code
31405   Separator
31406 \end_layout
31407
31408 \begin_layout LyX-Code
31409 .
31410 \end_layout
31411
31412 \begin_layout LyX-Code
31413 .
31414 \end_layout
31415
31416 \begin_layout LyX-Code
31417 .
31418 \end_layout
31419
31420 \begin_layout LyX-Code
31421 End
31422 \end_layout
31423
31424 \begin_layout Subsubsection
31425 Colors customization
31426 \end_layout
31427
31428 \begin_layout Standard
31429 There are a number of colors in \SpecialChar LyX
31430  that can be customized in 
31431 \family sans
31432 Preferences
31433 \family default
31434 .
31435  One of the things that bothers people is the \SpecialChar LaTeX
31436  font color.
31437  The default color is red, since the chunks uses \SpecialChar LaTeX
31438  font, and there is a lot
31439  of chunks in literate documents, you may get tired of seeing everything
31440  in red.
31441  You can change it by going to the tabs 
31442 \family sans
31443 Look&Feel
31444 \family default
31445
31446 \family sans
31447 Colors.
31448 \end_layout
31449
31450 \begin_layout Standard
31451 The next thing is the visible presence of the newline character in the screen.
31452  You can choose the color of this particular character and make it blend
31453  in the background.
31454  I recommend you choosing a color that is close to the background but not
31455  equal, that way you still can see it is there, but it is not bothering
31456  you anymore.
31457 \end_layout
31458
31459 \begin_layout Subsection
31460 \SpecialChar LyX
31461  and knitr/Sweave
31462 \end_layout
31463
31464 \begin_layout Standard
31465 Support for 
31466 \family sans
31467 knitr
31468 \family default
31469  and 
31470 \family sans
31471 Sweave
31472 \family default
31473  is documented in 
31474 \change_deleted 564990737 1671643409
31475 the 
31476 \emph on
31477 knitr.lyx
31478 \emph default
31479  example file
31480 \change_inserted 564990737 1671643443
31481
31482 \family sans
31483 \lang british
31484 File\SpecialChar menuseparator
31485 Open Example\SpecialChar menuseparator
31486 Modules\SpecialChar menuseparator
31487 Rnw (knitr)
31488 \change_unchanged
31489
31490 \family default
31491 \lang english
31492  and in 
31493 \change_deleted 564990737 1671643461
31494 the Sweave manual (menu 
31495 \family sans
31496 Help\SpecialChar menuseparator
31497 Specific Manuals
31498 \family default
31499 )
31500 \change_inserted 564990737 1671643461
31501
31502 \family sans
31503 \lang british
31504 Help\SpecialChar menuseparator
31505 Specific Manuals\SpecialChar menuseparator
31506 Sweave
31507 \change_unchanged
31508
31509 \family default
31510 \lang english
31511 .
31512 \end_layout
31513
31514 \begin_layout Chapter
31515
31516 \change_deleted 564990737 1671355343
31517 Special features
31518 \end_layout
31519
31520 \begin_layout Standard
31521
31522 \change_deleted 564990737 1671355343
31523 You can do everything with \SpecialChar LyX
31524  that you can do with \SpecialChar LaTeX
31525 .
31526  However, \SpecialChar LyX
31527  cannot support every \SpecialChar LaTeX
31528  feature directly.
31529  But you can always use \SpecialChar TeX
31530  Code.
31531  This chapter shows you some more special things you might want to use.
31532  For other special things you can do with figures, tables, floats, boxes
31533  and notes, have a look at the 
31534 \emph on
31535 Embedded
31536 \begin_inset space ~
31537 \end_inset
31538
31539 Objects
31540 \emph default
31541  manual.
31542 \change_unchanged
31543
31544 \end_layout
31545
31546 \end_body
31547 \end_document