]> git.lyx.org Git - lyx.git/blob - lib/doc/Additional.lyx
c06d1a83d7e78be3fc5ba86661ed1d9cffb16105
[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 Multiple Text Columns
14419 \end_layout
14420
14421 \begin_layout Standard
14422 This feature is independent of the option 
14423 \family sans
14424 Two-column document
14425 \family default
14426  in the document settings under 
14427 \family sans
14428 Text Layout
14429 \family default
14430 .
14431  If you want to have 2
14432 \begin_inset space ~
14433 \end_inset
14434
14435 columns for the whole document, it is recommended to use the 
14436 \family sans
14437 Two-column document
14438 \family default
14439  option.
14440  For all other cases use this feature.
14441 \end_layout
14442
14443 \begin_layout Standard
14444 To use multiple text columns in your document, you have to load the module
14445  
14446 \family sans
14447 Multiple Columns
14448 \family default
14449  (menu 
14450 \family sans
14451 Document\SpecialChar menuseparator
14452 Settings\SpecialChar menuseparator
14453 Modules
14454 \family default
14455 ) and must have the \SpecialChar LaTeX
14456 -package 
14457 \begin_inset Flex Code
14458 status collapsed
14459
14460 \begin_layout Plain Layout
14461 multicol
14462 \end_layout
14463
14464 \end_inset
14465
14466  installed.
14467 \end_layout
14468
14469 \begin_layout Standard
14470 Footnotes within multiple columns will be placed at the bottom of the page
14471  and not under each column.
14472  Within the different columns you can use everything, with the limitation
14473  that for floats you need to use the float option 
14474 \family sans
14475 Span columns
14476 \family default
14477 .
14478 \end_layout
14479
14480 \begin_layout Subsection
14481 Basics
14482 \end_layout
14483
14484 \begin_layout Standard
14485 If you want to have 2
14486 \begin_inset space ~
14487 \end_inset
14488
14489 columns in your text, insert a multicolumn inset via the menu 
14490 \family sans
14491 Insert\SpecialChar menuseparator
14492 Custom
14493 \begin_inset space ~
14494 \end_inset
14495
14496 Insets\SpecialChar menuseparator
14497 Multiple
14498 \begin_inset space ~
14499 \end_inset
14500
14501 Columns
14502 \family default
14503  where the columns should start.
14504  Write all text that should be printed in 2
14505 \begin_inset space ~
14506 \end_inset
14507
14508 columns into this inset.
14509 \end_layout
14510
14511 \begin_layout Standard
14512 Here is an example:
14513 \end_layout
14514
14515 \begin_layout Standard
14516 \noindent
14517 \begin_inset Flex Multiple Columns
14518 status open
14519
14520 \begin_layout Plain Layout
14521 \noindent
14522
14523 \series bold
14524 \size small
14525 The Adventure of the Empty House
14526 \series default
14527
14528 \begin_inset Newline newline
14529 \end_inset
14530
14531 by Sir Arthur Conan Doyle
14532 \end_layout
14533
14534 \begin_layout Plain Layout
14535
14536 \size small
14537 It was in the spring of the year 1894 that all London was interested, and
14538  the fashionable world dismayed, by the murder of the Honourable Ronald
14539  Adair under most unusual and inexplicable circumstances.
14540  The public has already learned those particulars of the crime which came
14541  out in the police investigation, but a good deal was suppressed upon that
14542  occasion, since the case for the prosecution was so overwhelmingly strong
14543  that it was not necessary to bring forward all the facts.
14544  Only now, at the end of nearly ten years, am I allowed to supply those
14545  missing links which make up the whole of that remarkable chain.
14546  The crime was of interest in itself, but that interest was as nothing to
14547  me compared to the inconceivable sequel, which afforded me the greatest
14548  shock and surprise of any event in my adventurous life.
14549  Even now, after this long interval, I find myself thrilling as I think
14550  of it, and feeling once more that sudden flood of joy, amazement, and increduli
14551 ty which utterly submerged my mind.
14552  Let me say to that public, which has shown some interest in those glimpses
14553  which I have occasionally given them of the thoughts and actions of a very
14554  remarkable man, that they are not to blame me if I have not shared my knowledge
14555  with them, for I should have considered it my first duty to do so, had
14556  I not been barred by a positive prohibition from his own lips, which was
14557  only withdrawn upon the third of last month.
14558 \end_layout
14559
14560 \end_inset
14561
14562
14563 \end_layout
14564
14565 \begin_layout Standard
14566 To get 3 or more columns, set the cursor into the multicolumn inset and
14567  use the menu 
14568 \family sans
14569 Insert\SpecialChar menuseparator
14570 Number
14571 \begin_inset space ~
14572 \end_inset
14573
14574 of
14575 \begin_inset space ~
14576 \end_inset
14577
14578 Columns
14579 \family default
14580 .
14581  The number of the desired columns is written into that inset (for 3
14582 \begin_inset space ~
14583 \end_inset
14584
14585 columns write 
14586 \begin_inset Quotes eld
14587 \end_inset
14588
14589 3
14590 \begin_inset Quotes erd
14591 \end_inset
14592
14593 ).
14594 \begin_inset Newline newline
14595 \end_inset
14596
14597 Here is an example with 3
14598 \begin_inset space ~
14599 \end_inset
14600
14601 columns:
14602 \end_layout
14603
14604 \begin_layout Standard
14605 \begin_inset Flex Multiple Columns
14606 status open
14607
14608 \begin_layout Plain Layout
14609
14610 \size footnotesize
14611 \begin_inset Argument 1
14612 status open
14613
14614 \begin_layout Plain Layout
14615
14616 3
14617 \end_layout
14618
14619 \end_inset
14620
14621 It can be imagined that my close intimacy with Sherlock Holmes had interested
14622  me deeply in crime, and that after his disappearance I never failed to
14623  read with care the various problems which came before the public.
14624  And I even attempted, more than once, for my own private satisfaction,
14625  to employ his methods in their solution, though with indifferent success.
14626  There was none, however, which appealed to me like this tragedy of Ronald
14627  Adair.
14628  As I read the evidence at the inquest, which led up to a verdict of willful
14629  murder against some person or persons unknown, I realized more clearly
14630  than I had ever done the loss which the community had sustained by the
14631  death of Sherlock Holmes.
14632  There were points about this strange business which would, I was sure,
14633  have specially appealed to him, and the efforts of the police would have
14634  been supplemented, or more probably anticipated, by the trained observation
14635  and the alert mind of the first criminal agent in Europe.
14636  All day, as I drove upon my round, I turned over the case in my mind and
14637  found no explanation which appeared to me to be adequate.
14638  At the risk of telling a twice-told tale, I will recapitulate the facts
14639  as they were known to the public at the conclusion of the inquest.
14640 \end_layout
14641
14642 \end_inset
14643
14644
14645 \end_layout
14646
14647 \begin_layout Standard
14648 You can have up to 10
14649 \begin_inset space ~
14650 \end_inset
14651
14652 columns if you want to, but that might not be very pleasant for the readers
14653  of your document.
14654 \end_layout
14655
14656 \begin_layout Standard
14657 \begin_inset Newpage newpage
14658 \end_inset
14659
14660
14661 \end_layout
14662
14663 \begin_layout Subsection
14664 Columns inside Columns
14665 \end_layout
14666
14667 \begin_layout Standard
14668 You can also have columns inside columns:
14669 \end_layout
14670
14671 \begin_layout Standard
14672 \begin_inset Flex Multiple Columns
14673 status open
14674
14675 \begin_layout Plain Layout
14676
14677 \size footnotesize
14678 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
14679  at that time governor of one of the Australian colonies.
14680  Adair's mother had returned from Australia to undergo the operation for
14681  cataract, and she, her son Ronald, and her daughter Hilda were living together
14682  at 427 Park Lane.
14683 \end_layout
14684
14685 \begin_layout Plain Layout
14686 \begin_inset Flex Multiple Columns
14687 status open
14688
14689 \begin_layout Plain Layout
14690
14691 \size footnotesize
14692 The youth moved in the best society
14693 \begin_inset space ~
14694 \end_inset
14695
14696 – had, so far as was known, no enemies and no particular vices.
14697  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
14698  had been broken off by mutual consent some months before, and there was
14699  no sign that it had left any very profound feeling behind it.
14700  For the rest {sic} the man's life moved in a narrow and conventional circle,
14701  for his habits were quiet and his nature unemotional.
14702  Yet it was upon this easy-going young aristocrat that death came, in most
14703  strange and unexpected form, between the hours of ten and eleven-twenty
14704  on the night of March 30, 1894.
14705 \end_layout
14706
14707 \end_inset
14708
14709
14710 \end_layout
14711
14712 \begin_layout Plain Layout
14713
14714 \size footnotesize
14715 Ronald Adair was fond of cards
14716 \begin_inset space ~
14717 \end_inset
14718
14719 – playing continually, but never for such stakes as would hurt him.
14720  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
14721  It was shown that, after dinner on the day of his death, he had played
14722  a rubber of whist at the latter club.
14723  He had also played there in the afternoon.
14724
14725 \size default
14726  
14727 \size footnotesize
14728 The evidence of those who had played with him
14729 \begin_inset space ~
14730 \end_inset
14731
14732 – Mr.
14733  Murray, Sir John Hardy, and Colonel Moran
14734 \begin_inset space ~
14735 \end_inset
14736
14737 – showed that the game was whist, and that there was a fairly equal fall
14738  of the cards.
14739  Adair might have lost five pounds, but not more.
14740  His fortune was a considerable one, and such a loss could not in any way
14741  affect him.
14742  He had played nearly every day at one club or other, but he was a cautious
14743  player, and usually rose a winner.
14744  It came out in evidence that, in partnership with Colonel Moran, he had
14745  actually won as much as four hundred and twenty pounds in a sitting, some
14746  weeks before, from Godfrey Milner and Lord Balmoral.
14747  So much for his recent history as it came out at the inquest.
14748 \end_layout
14749
14750 \end_inset
14751
14752
14753 \end_layout
14754
14755 \begin_layout Subsection
14756 Advanced Examples
14757 \end_layout
14758
14759 \begin_layout Standard
14760 The examples in this section show some more special features of multiple
14761  columns.
14762 \end_layout
14763
14764 \begin_layout Standard
14765 For more features of multiple columns, have a look at the 
14766 \begin_inset CommandInset href
14767 LatexCommand href
14768 name "documentation"
14769 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
14770 literal "false"
14771
14772 \end_inset
14773
14774  of the \SpecialChar LaTeX
14775 -package 
14776 \begin_inset Flex Code
14777 status collapsed
14778
14779 \begin_layout Plain Layout
14780 multicol
14781 \end_layout
14782
14783 \end_inset
14784
14785 .
14786 \end_layout
14787
14788 \begin_layout Subsubsection
14789 Preface
14790 \end_layout
14791
14792 \begin_layout Standard
14793 To add a preface text for multiple columns, set the cursor into the multicolumn
14794  inset and use the menu 
14795 \family sans
14796 Insert\SpecialChar menuseparator
14797 Preface
14798 \family default
14799 .
14800  Write your preface text into that inset.
14801 \begin_inset Newline newline
14802 \end_inset
14803
14804 This is an example with some preface text:
14805 \end_layout
14806
14807 \begin_layout Standard
14808 \begin_inset VSpace bigskip
14809 \end_inset
14810
14811
14812 \end_layout
14813
14814 \begin_layout Standard
14815 \begin_inset Flex Multiple Columns
14816 status open
14817
14818 \begin_layout Plain Layout
14819 \begin_inset Argument 2
14820 status open
14821
14822 \begin_layout Plain Layout
14823 And the story continues and continues and continues and continues\SpecialChar ldots
14824
14825 \end_layout
14826
14827 \end_inset
14828
14829
14830 \size small
14831 On the evening of the crime, he returned from the club exactly at ten.
14832  His mother and sister were out spending the evening with a relation.
14833  The servant deposed that she heard him enter the front room on the second
14834  floor, generally used as his sitting-room.
14835  She had lit a fire there, and as it smoked she had opened the window.
14836  No sound was heard from the room until eleven-twenty, the hour of the return
14837  of Lady Maynooth and her daughter.
14838  Desiring to say good-night, she attempted to enter her son's room.
14839  The door was locked on the inside, and no answer could be got to their
14840  cries and knocking.
14841  Help was obtained, and the door forced.
14842  The unfortunate young man was found lying near the table.
14843  His head had been horribly mutilated by an expanding revolver bullet, but
14844  no weapon of any sort was to be found in the room.
14845 \end_layout
14846
14847 \end_inset
14848
14849
14850 \end_layout
14851
14852 \begin_layout Standard
14853 You can also use a section heading as the preface if you use a section command
14854  as \SpecialChar TeX
14855  Code.
14856  For example the command
14857 \end_layout
14858
14859 \begin_layout LyX-Code
14860
14861 \backslash
14862 subsection{subsection title}
14863 \end_layout
14864
14865 \begin_layout Standard
14866 creates a subsection.
14867  In this example the preface is a subsubsection:
14868 \end_layout
14869
14870 \begin_layout Standard
14871 \begin_inset Flex Multiple Columns
14872 status open
14873
14874 \begin_layout Plain Layout
14875 \begin_inset Argument 2
14876 status open
14877
14878 \begin_layout Plain Layout
14879 \begin_inset ERT
14880 status collapsed
14881
14882 \begin_layout Plain Layout
14883
14884
14885 \backslash
14886 subsubsection{
14887 \end_layout
14888
14889 \end_inset
14890
14891 This is a subsubsection heading as a preface
14892 \begin_inset ERT
14893 status collapsed
14894
14895 \begin_layout Plain Layout
14896
14897 }
14898 \end_layout
14899
14900 \end_inset
14901
14902
14903 \end_layout
14904
14905 \end_inset
14906
14907
14908 \size small
14909 A minute examination of the circumstances served only to make the case more
14910  complex.
14911  In the first place, no reason could be given why the young man should have
14912  fastened the door upon the inside.
14913  There was the possibility that the murderer had done this, and had afterwards
14914  escaped by the window.
14915  The drop was at least twenty feet, however, and a bed of crocuses in full
14916  bloom lay beneath.
14917  Neither the flowers nor the earth showed any sign of having been disturbed,
14918  nor were there any marks upon the narrow strip of grass which separated
14919  the house from the road.
14920  Apparently, therefore, it was the young man himself who had fastened the
14921  door.
14922  But how did he come by his death? No one could have climbed up to the window
14923  without leaving traces.
14924  Suppose a man had fired through the window, he would indeed be a remarkable
14925  shot who could with a revolver inflict so deadly a wound.
14926  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
14927  a hundred yards of the house.
14928  No one had heard a shot.
14929 \end_layout
14930
14931 \end_inset
14932
14933
14934 \end_layout
14935
14936 \begin_layout Standard
14937 If there is less vertical space than 6
14938 \begin_inset space ~
14939 \end_inset
14940
14941 text lines is left on the page at the beginning of the multiple columns,
14942  a page break will be inserted before the multiple columns.
14943  Depending on the number of lines of the preface text, you might want to
14944  change this space.
14945  This is done by setting the cursor into the mulitcolumn inset behind the
14946  preface (if there is any) and using the menu 
14947 \family sans
14948 Insert\SpecialChar menuseparator
14949 Space
14950 \begin_inset space ~
14951 \end_inset
14952
14953 Before
14954 \begin_inset space ~
14955 \end_inset
14956
14957 Page
14958 \begin_inset space ~
14959 \end_inset
14960
14961 Break
14962 \family default
14963 .
14964  Insert into that inset the amount of space like e.
14965 \begin_inset space \thinspace{}
14966 \end_inset
14967
14968 g.
14969 \begin_inset space \space{}
14970 \end_inset
14971
14972
14973 \begin_inset Quotes eld
14974 \end_inset
14975
14976 5cm
14977 \begin_inset Quotes erd
14978 \end_inset
14979
14980 .
14981 \begin_inset Newline newline
14982 \end_inset
14983
14984 In this example the space is set to 7
14985 \begin_inset space ~
14986 \end_inset
14987
14988 text lines by using 
14989 \begin_inset Flex Code
14990 status collapsed
14991
14992 \begin_layout Plain Layout
14993 7
14994 \backslash
14995 baselineskip
14996 \end_layout
14997
14998 \end_inset
14999
15000  (where the command 
15001 \begin_inset Flex Code
15002 status collapsed
15003
15004 \begin_layout Plain Layout
15005
15006 \backslash
15007 baselineskip
15008 \end_layout
15009
15010 \end_inset
15011
15012  needs to be inserted as \SpecialChar TeX
15013  code):
15014 \end_layout
15015
15016 \begin_layout Standard
15017 \begin_inset Flex Multiple Columns
15018 status open
15019
15020 \begin_layout Plain Layout
15021 \begin_inset Argument 3
15022 status open
15023
15024 \begin_layout Plain Layout
15025 7
15026 \begin_inset ERT
15027 status collapsed
15028
15029 \begin_layout Plain Layout
15030
15031
15032 \backslash
15033 baselineskip
15034 \end_layout
15035
15036 \end_inset
15037
15038
15039 \end_layout
15040
15041 \end_inset
15042
15043
15044 \size small
15045 On the evening of the crime, he returned from the club exactly at ten.
15046  His mother and sister were out spending the evening with a relation.
15047  The servant deposed that she heard him enter the front room on the second
15048  floor, generally used as his sitting-room.
15049  She had lit a fire there, and as it smoked she had opened the window.
15050  No sound was heard from the room until eleven-twenty, the hour of the return
15051  of Lady Maynooth and her daughter.
15052  Desiring to say good-night, she attempted to enter her son's room.
15053  The door was locked on the inside, and no answer could be got to their
15054  cries and knocking.
15055  Help was obtained, and the door forced.
15056  The unfortunate young man was found lying near the table.
15057  His head had been horribly mutilated by an expanding revolver bullet, but
15058  no weapon of any sort was to be found in the room.
15059 \end_layout
15060
15061 \end_inset
15062
15063
15064 \end_layout
15065
15066 \begin_layout Subsubsection
15067 Surrounding Space
15068 \end_layout
15069
15070 \begin_layout Standard
15071 The amount of space before and after multiple columns can be changed by
15072  changing the length 
15073 \begin_inset Flex Code
15074 status collapsed
15075
15076 \begin_layout Plain Layout
15077
15078 \backslash
15079 multicolsep
15080 \end_layout
15081
15082 \end_inset
15083
15084 .
15085  For example the command
15086 \end_layout
15087
15088 \begin_layout LyX-Code
15089
15090 \backslash
15091 setlength{
15092 \backslash
15093 multicolsep}{3cm}
15094 \end_layout
15095
15096 \begin_layout Standard
15097 in \SpecialChar TeX
15098  Code changes its value to 3
15099 \begin_inset space \thinspace{}
15100 \end_inset
15101
15102 cm.
15103  The change must be made before the multiple columns' start.
15104  The predefined value is 13
15105 \begin_inset space \thinspace{}
15106 \end_inset
15107
15108 pt.
15109 \end_layout
15110
15111 \begin_layout Standard
15112 For this example 
15113 \begin_inset Flex Code
15114 status collapsed
15115
15116 \begin_layout Plain Layout
15117
15118 \backslash
15119 multicolsep
15120 \end_layout
15121
15122 \end_inset
15123
15124  was set to 2.5
15125 \begin_inset space \thinspace{}
15126 \end_inset
15127
15128 cm:
15129 \end_layout
15130
15131 \begin_layout Standard
15132 \begin_inset ERT
15133 status open
15134
15135 \begin_layout Plain Layout
15136
15137
15138 \backslash
15139 setlength{
15140 \backslash
15141 multicolsep}{2.5cm}
15142 \end_layout
15143
15144 \end_inset
15145
15146
15147 \end_layout
15148
15149 \begin_layout Standard
15150 \begin_inset Flex Multiple Columns
15151 status open
15152
15153 \begin_layout Plain Layout
15154
15155 \size small
15156 All day I turned these facts over in my mind, endeavouring to hit upon some
15157  theory which could reconcile them all, and to find that line of least resistanc
15158 e which my poor friend had declared to be the starting-point of every investigat
15159 ion.
15160  I confess that I made little progress.
15161  In the evening I strolled across the Park, and found myself about six o'clock
15162  at the Oxford Street end of Park Lane.
15163  A group of loafers upon the pavements, all staring up at a particular window,
15164  directed me to the house which I had come to see.
15165  A tall, thin man with coloured glasses, whom I strongly suspected of being
15166  a plain-clothes detective, was pointing out some theory of his own, while
15167  the others crowded round to listen to what he said.
15168  I got as near him as I could, but his observations seemed to me to be absurd,
15169  so I withdrew again in some disgust.
15170  As I did so I struck against an elderly, deformed man, who had been behind
15171  me, and I knocked down several books which he was carrying.
15172 \end_layout
15173
15174 \end_inset
15175
15176
15177 \end_layout
15178
15179 \begin_layout Standard
15180 \begin_inset Note Greyedout
15181 status open
15182
15183 \begin_layout Plain Layout
15184
15185 \series bold
15186 Note:
15187 \series default
15188  The values you set with 
15189 \begin_inset Flex Code
15190 status collapsed
15191
15192 \begin_layout Plain Layout
15193
15194 \backslash
15195 setlength
15196 \end_layout
15197
15198 \end_inset
15199
15200  will be used for all following multiple columns until you change them again.
15201 \end_layout
15202
15203 \end_inset
15204
15205
15206 \end_layout
15207
15208 \begin_layout Standard
15209 \begin_inset ERT
15210 status collapsed
15211
15212 \begin_layout Plain Layout
15213
15214
15215 \backslash
15216 setlength{
15217 \backslash
15218 multicolsep}{13pt}
15219 \end_layout
15220
15221 \end_inset
15222
15223
15224 \begin_inset Note Note
15225 status collapsed
15226
15227 \begin_layout Plain Layout
15228 go back to the default
15229 \end_layout
15230
15231 \end_inset
15232
15233
15234 \end_layout
15235
15236 \begin_layout Standard
15237 \begin_inset Newpage newpage
15238 \end_inset
15239
15240
15241 \end_layout
15242
15243 \begin_layout Subsubsection
15244 Column Breaks
15245 \end_layout
15246
15247 \begin_layout Standard
15248 A column break can be forced by inserting the command 
15249 \begin_inset Flex Code
15250 status collapsed
15251
15252 \begin_layout Plain Layout
15253
15254 \backslash
15255 columnbreak{}
15256 \end_layout
15257
15258 \end_inset
15259
15260  as \SpecialChar TeX
15261  Code to that position in the text where the column should be broken.
15262  Note that this leads in most cases to whitespace in the text.
15263 \begin_inset Newline newline
15264 \end_inset
15265
15266 Here is an example:
15267 \end_layout
15268
15269 \begin_layout Standard
15270 \begin_inset Flex Multiple Columns
15271 status open
15272
15273 \begin_layout Plain Layout
15274
15275 \size small
15276 \begin_inset Quotes eld
15277 \end_inset
15278
15279 You're surprised to see me, sir,
15280 \begin_inset Quotes erd
15281 \end_inset
15282
15283  said he, in a strange, croaking voice.
15284 \end_layout
15285
15286 \begin_layout Plain Layout
15287
15288 \size small
15289 I acknowledged that I was.
15290 \end_layout
15291
15292 \begin_layout Plain Layout
15293
15294 \size small
15295 \begin_inset Quotes eld
15296 \end_inset
15297
15298 Well, I've a conscience, sir, and when I chanced to see you go into this
15299  house, as I came hobbling after you, I thought to myself, I'll just step
15300  in and see that kind gentleman, and tell him that if I was a bit gruff
15301  in my manner there was not any harm meant, and that I am much obliged to
15302  him for picking up my books.
15303 \begin_inset Quotes erd
15304 \end_inset
15305
15306
15307 \end_layout
15308
15309 \begin_layout Plain Layout
15310
15311 \size small
15312 \begin_inset Quotes eld
15313 \end_inset
15314
15315 You make too much of a trifle,
15316 \begin_inset Quotes erd
15317 \end_inset
15318
15319  said I.
15320  
15321 \begin_inset Quotes eld
15322 \end_inset
15323
15324 May I ask how you knew who I was?
15325 \begin_inset Quotes erd
15326 \end_inset
15327
15328  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
15329 \begin_inset ERT
15330 status collapsed
15331
15332 \begin_layout Plain Layout
15333
15334
15335 \backslash
15336 columnbreak{}
15337 \end_layout
15338
15339 \end_inset
15340
15341
15342 \end_layout
15343
15344 \begin_layout Plain Layout
15345
15346 \size small
15347 \begin_inset Quotes eld
15348 \end_inset
15349
15350 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
15351  you'll find my little bookshop at the corner of Church Street, and very
15352  happy to see you, I am sure.
15353  Maybe you collect yourself, sir.
15354  Here's 
15355 \noun on
15356 British
15357 \begin_inset space ~
15358 \end_inset
15359
15360 Birds
15361 \noun default
15362 , and 
15363 \noun on
15364 Catullus
15365 \noun default
15366 , and 
15367 \noun on
15368 The Holy War
15369 \noun default
15370
15371 \begin_inset space ~
15372 \end_inset
15373
15374 – a bargain, every one of them.
15375  With five volumes you could just fill that gap on that second shelf.
15376  It looks untidy, does it not, sir?
15377 \begin_inset Quotes erd
15378 \end_inset
15379
15380
15381 \end_layout
15382
15383 \end_inset
15384
15385
15386 \end_layout
15387
15388 \begin_layout Subsubsection
15389 Column Separation
15390 \end_layout
15391
15392 \begin_layout Standard
15393 The width of the columns is automatically calculated, but you can modify
15394  the space between the columns.
15395  This is done by changing the length 
15396 \begin_inset Flex Code
15397 status collapsed
15398
15399 \begin_layout Plain Layout
15400
15401 \backslash
15402 columnsep
15403 \end_layout
15404
15405 \end_inset
15406
15407 .
15408  Its predefined value is 10
15409 \begin_inset space \thinspace{}
15410 \end_inset
15411
15412 pt.
15413  Here is an example where 
15414 \begin_inset Flex Code
15415 status collapsed
15416
15417 \begin_layout Plain Layout
15418
15419 \backslash
15420 columnsep
15421 \end_layout
15422
15423 \end_inset
15424
15425  is set to 3
15426 \begin_inset space \thinspace{}
15427 \end_inset
15428
15429 cm:
15430 \end_layout
15431
15432 \begin_layout Standard
15433 \begin_inset ERT
15434 status open
15435
15436 \begin_layout Plain Layout
15437
15438
15439 \backslash
15440 setlength{
15441 \backslash
15442 columnsep}{3cm}
15443 \end_layout
15444
15445 \end_inset
15446
15447
15448 \end_layout
15449
15450 \begin_layout Standard
15451 \begin_inset Flex Multiple Columns
15452 status open
15453
15454 \begin_layout Plain Layout
15455
15456 \size small
15457 My observations of No.
15458 \begin_inset space \space{}
15459 \end_inset
15460
15461 427 Park Lane did little to clear up the problem in which I was interested.
15462  The house was separated from the street by a low wall and railing, the
15463  whole not more than five feet high.
15464  It was perfectly easy, therefore, for anyone to get into the garden, but
15465  the window was entirely inaccessible, since there was no water pipe or
15466  anything which could help the most active man to climb it.
15467  More puzzled than ever, I retraced my steps to Kensington.
15468  I had not been in my study five minutes when the maid entered to say that
15469  a person desired to see me.
15470  To my astonishment it was none other than my strange old book collector,
15471  his sharp, wizened face peering out from a frame of white hair, and his
15472  precious volumes, a dozen of them at least, wedged under his right arm.
15473 \end_layout
15474
15475 \end_inset
15476
15477
15478 \end_layout
15479
15480 \begin_layout Standard
15481 \begin_inset ERT
15482 status collapsed
15483
15484 \begin_layout Plain Layout
15485
15486
15487 \backslash
15488 setlength{
15489 \backslash
15490 columnsep}{10pt}
15491 \end_layout
15492
15493 \end_inset
15494
15495
15496 \begin_inset Note Note
15497 status collapsed
15498
15499 \begin_layout Plain Layout
15500 go back to the default
15501 \end_layout
15502
15503 \end_inset
15504
15505
15506 \end_layout
15507
15508 \begin_layout Subsubsection
15509 Vertical Lines
15510 \end_layout
15511
15512 \begin_layout Standard
15513 Between the columns a rule with a width of the length 
15514 \begin_inset Flex Code
15515 status collapsed
15516
15517 \begin_layout Plain Layout
15518
15519 \backslash
15520 columnseprule
15521 \end_layout
15522
15523 \end_inset
15524
15525  is placed.
15526  If this rule width is set to 0
15527 \begin_inset space \thinspace{}
15528 \end_inset
15529
15530 pt (this is the default), the rule is suppressed.
15531  In the following example the rule is 2
15532 \begin_inset space \thinspace{}
15533 \end_inset
15534
15535 pt wide:
15536 \end_layout
15537
15538 \begin_layout Standard
15539 \begin_inset ERT
15540 status open
15541
15542 \begin_layout Plain Layout
15543
15544
15545 \backslash
15546 setlength{
15547 \backslash
15548 columnseprule}{2pt}
15549 \end_layout
15550
15551 \end_inset
15552
15553
15554 \end_layout
15555
15556 \begin_layout Standard
15557 \begin_inset Flex Multiple Columns
15558 status open
15559
15560 \begin_layout Plain Layout
15561
15562 \size small
15563 \begin_inset Quotes eld
15564 \end_inset
15565
15566 You're surprised to see me, sir,
15567 \begin_inset Quotes erd
15568 \end_inset
15569
15570  said he, in a strange, croaking voice.
15571 \end_layout
15572
15573 \begin_layout Plain Layout
15574
15575 \size small
15576 I acknowledged that I was.
15577 \end_layout
15578
15579 \begin_layout Plain Layout
15580
15581 \size small
15582 \begin_inset Quotes eld
15583 \end_inset
15584
15585 Well, I've a conscience, sir, and when I chanced to see you go into this
15586  house, as I came hobbling after you, I thought to myself, I'll just step
15587  in and see that kind gentleman, and tell him that if I was a bit gruff
15588  in my manner there was not any harm meant, and that I am much obliged to
15589  him for picking up my books.
15590 \begin_inset Quotes erd
15591 \end_inset
15592
15593
15594 \end_layout
15595
15596 \begin_layout Plain Layout
15597
15598 \size small
15599 \begin_inset Quotes eld
15600 \end_inset
15601
15602 You make too much of a trifle,
15603 \begin_inset Quotes erd
15604 \end_inset
15605
15606  said I.
15607  
15608 \begin_inset Quotes eld
15609 \end_inset
15610
15611 May I ask how you knew who I was?
15612 \begin_inset Quotes erd
15613 \end_inset
15614
15615
15616 \end_layout
15617
15618 \begin_layout Plain Layout
15619
15620 \size small
15621 \begin_inset Quotes eld
15622 \end_inset
15623
15624 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
15625  you'll find my little bookshop at the corner of Church Street, and very
15626  happy to see you, I am sure.
15627  Maybe you collect yourself, sir.
15628  Here's 
15629 \noun on
15630 British
15631 \begin_inset space ~
15632 \end_inset
15633
15634 Birds
15635 \noun default
15636 , and 
15637 \noun on
15638 Catullus
15639 \noun default
15640 , and 
15641 \noun on
15642 The Holy War
15643 \noun default
15644
15645 \begin_inset space ~
15646 \end_inset
15647
15648 – a bargain, every one of them.
15649  With five volumes you could just fill that gap on that second shelf.
15650  It looks untidy, does it not, sir?
15651 \begin_inset Quotes erd
15652 \end_inset
15653
15654
15655 \end_layout
15656
15657 \end_inset
15658
15659
15660 \end_layout
15661
15662 \begin_layout Standard
15663 \begin_inset VSpace defskip
15664 \end_inset
15665
15666
15667 \end_layout
15668
15669 \begin_layout Standard
15670 The rule can be colored by redefining the command 
15671 \begin_inset Flex Code
15672 status collapsed
15673
15674 \begin_layout Plain Layout
15675
15676 \backslash
15677 columnseprulecolor
15678 \end_layout
15679
15680 \end_inset
15681
15682 .
15683  This is done by inserting the command
15684 \end_layout
15685
15686 \begin_layout LyX-Code
15687
15688 \backslash
15689 renewcommand{
15690 \backslash
15691 columnseprulecolor}{
15692 \backslash
15693 color{red}}
15694 \end_layout
15695
15696 \begin_layout Standard
15697 as \SpecialChar TeX
15698  Code before the multicolumn inset.
15699  Replace 
15700 \begin_inset Flex Code
15701 status collapsed
15702
15703 \begin_layout Plain Layout
15704 red
15705 \end_layout
15706
15707 \end_inset
15708
15709  in this command by a color of your choice.
15710  You can use all pre- and self-defined colors.
15711  See the 
15712 \emph on
15713 EmbeddedObjects
15714 \emph default
15715  manual, section 
15716 \emph on
15717 Colored
15718 \begin_inset space ~
15719 \end_inset
15720
15721 Tables
15722 \emph default
15723  for more information about pre- and self-defined colors.
15724  To go back to the default color insert the command
15725 \end_layout
15726
15727 \begin_layout LyX-Code
15728
15729 \backslash
15730 renewcommand{
15731 \backslash
15732 columnseprulecolor}{
15733 \backslash
15734 normalcolor}
15735 \end_layout
15736
15737 \begin_layout Standard
15738 Here is the example with a cyan rule and 1
15739 \begin_inset space \thinspace{}
15740 \end_inset
15741
15742 cm column separation:
15743 \end_layout
15744
15745 \begin_layout Standard
15746 \begin_inset ERT
15747 status open
15748
15749 \begin_layout Plain Layout
15750
15751
15752 \backslash
15753 setlength{
15754 \backslash
15755 columnsep}{1cm}
15756 \end_layout
15757
15758 \begin_layout Plain Layout
15759
15760
15761 \backslash
15762 renewcommand{
15763 \backslash
15764 columnseprulecolor}{
15765 \backslash
15766 color{cyan}}
15767 \end_layout
15768
15769 \end_inset
15770
15771
15772 \end_layout
15773
15774 \begin_layout Standard
15775 \begin_inset Flex Multiple Columns
15776 status open
15777
15778 \begin_layout Plain Layout
15779
15780 \size small
15781 \begin_inset Quotes eld
15782 \end_inset
15783
15784 You're surprised to see me, sir,
15785 \begin_inset Quotes erd
15786 \end_inset
15787
15788  said he, in a strange, croaking voice.
15789 \end_layout
15790
15791 \begin_layout Plain Layout
15792
15793 \size small
15794 I acknowledged that I was.
15795 \end_layout
15796
15797 \begin_layout Plain Layout
15798
15799 \size small
15800 \begin_inset Quotes eld
15801 \end_inset
15802
15803 Well, I've a conscience, sir, and when I chanced to see you go into this
15804  house, as I came hobbling after you, I thought to myself, I'll just step
15805  in and see that kind gentleman, and tell him that if I was a bit gruff
15806  in my manner there was not any harm meant, and that I am much obliged to
15807  him for picking up my books.
15808 \begin_inset Quotes erd
15809 \end_inset
15810
15811
15812 \end_layout
15813
15814 \begin_layout Plain Layout
15815
15816 \size small
15817 \begin_inset Quotes eld
15818 \end_inset
15819
15820 You make too much of a trifle,
15821 \begin_inset Quotes erd
15822 \end_inset
15823
15824  said I.
15825  
15826 \begin_inset Quotes eld
15827 \end_inset
15828
15829 May I ask how you knew who I was?
15830 \begin_inset Quotes erd
15831 \end_inset
15832
15833
15834 \end_layout
15835
15836 \begin_layout Plain Layout
15837
15838 \size small
15839 \begin_inset Quotes eld
15840 \end_inset
15841
15842 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
15843  you'll find my little bookshop at the corner of Church Street, and very
15844  happy to see you, I am sure.
15845  Maybe you collect yourself, sir.
15846  Here's 
15847 \noun on
15848 British
15849 \begin_inset space ~
15850 \end_inset
15851
15852 Birds
15853 \noun default
15854 , and 
15855 \noun on
15856 Catullus
15857 \noun default
15858 , and 
15859 \noun on
15860 The Holy War
15861 \noun default
15862
15863 \begin_inset space ~
15864 \end_inset
15865
15866 – a bargain, every one of them.
15867  With five volumes you could just fill that gap on that second shelf.
15868  It looks untidy, does it not, sir?
15869 \begin_inset Quotes erd
15870 \end_inset
15871
15872
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 columnseprule}{0pt}
15891 \end_layout
15892
15893 \begin_layout Plain Layout
15894
15895
15896 \backslash
15897 renewcommand{
15898 \backslash
15899 columnseprulecolor}{
15900 \backslash
15901 normalcolor}
15902 \end_layout
15903
15904 \end_inset
15905
15906
15907 \begin_inset Note Note
15908 status collapsed
15909
15910 \begin_layout Plain Layout
15911 go back to the default
15912 \end_layout
15913
15914 \end_inset
15915
15916
15917 \end_layout
15918
15919 \begin_layout Section
15920
15921 \change_inserted 564990737 1671270380
15922 Paragraph Styles
15923 \end_layout
15924
15925 \begin_layout Subsection
15926
15927 \change_inserted 564990737 1671270398
15928 Custom
15929 \change_deleted 564990737 1671270396
15930 Non-standard
15931 \change_unchanged
15932  Paragraph Shapes
15933 \end_layout
15934
15935 \begin_layout Standard
15936 \noindent
15937 \SpecialChar LaTeX
15938  as well as any other text processor uses by default rectangular paragraphs.
15939  For special cases like for example posters, invitation cards or poems you
15940  can modify the paragraph shape to one of your choice.
15941  This can be done by using the \SpecialChar LaTeX
15942 -package 
15943 \begin_inset Flex Code
15944 status collapsed
15945
15946 \begin_layout Plain Layout
15947 shapepar
15948 \end_layout
15949
15950 \end_inset
15951
15952  which is loaded by using in the document settings the module 
15953 \family sans
15954 Custom paragraph shapes
15955 \family default
15956 .
15957 \end_layout
15958
15959 \begin_layout Subsubsection
15960 Predefined shapes
15961 \end_layout
15962
15963 \begin_layout Standard
15964
15965 \series bold
15966 shapepar
15967 \series default
15968  provides the following shapes:
15969 \end_layout
15970
15971 \begin_layout Standard
15972 \begin_inset Tabular
15973 <lyxtabular version="3" rows="13" columns="3">
15974 <features booktabs="true" islongtable="true" longtabularalignment="center">
15975 <column alignment="left" valignment="middle" width="16col%">
15976 <column alignment="left" valignment="middle" width="40col%">
15977 <column alignment="left" valignment="middle" width="35col%">
15978 <row endhead="true">
15979 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15980 \begin_inset Text
15981
15982 \begin_layout Plain Layout
15983
15984 \series bold
15985 \size small
15986 Name
15987 \end_layout
15988
15989 \end_inset
15990 </cell>
15991 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15992 \begin_inset Text
15993
15994 \begin_layout Plain Layout
15995
15996 \series bold
15997 \size small
15998 Description
15999 \end_layout
16000
16001 \end_inset
16002 </cell>
16003 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16004 \begin_inset Text
16005
16006 \begin_layout Plain Layout
16007
16008 \series bold
16009 \size small
16010 Annotation
16011 \end_layout
16012
16013 \end_inset
16014 </cell>
16015 </row>
16016 <row interlinespace="default">
16017 <cell alignment="left" valignment="top" usebox="none">
16018 \begin_inset Text
16019
16020 \begin_layout Plain Layout
16021
16022 \size small
16023 CDlabel
16024 \end_layout
16025
16026 \end_inset
16027 </cell>
16028 <cell alignment="left" valignment="top" usebox="none">
16029 \begin_inset Text
16030
16031 \begin_layout Plain Layout
16032
16033 \size small
16034 Circle with circular hole (in the size of a CD/DVD)
16035 \end_layout
16036
16037 \end_inset
16038 </cell>
16039 <cell alignment="left" valignment="top" usebox="none">
16040 \begin_inset Text
16041
16042 \begin_layout Plain Layout
16043
16044 \size small
16045 Cannot be scaled, take care there is not too much text
16046 \end_layout
16047
16048 \end_inset
16049 </cell>
16050 </row>
16051 <row interlinespace="default">
16052 <cell alignment="left" valignment="top" usebox="none">
16053 \begin_inset Text
16054
16055 \begin_layout Plain Layout
16056
16057 \size small
16058 Circle
16059 \end_layout
16060
16061 \end_inset
16062 </cell>
16063 <cell alignment="left" valignment="top" usebox="none">
16064 \begin_inset Text
16065
16066 \begin_layout Plain Layout
16067
16068 \size small
16069 Circle
16070 \end_layout
16071
16072 \end_inset
16073 </cell>
16074 <cell alignment="left" valignment="top" usebox="none">
16075 \begin_inset Text
16076
16077 \begin_layout Plain Layout
16078
16079 \size small
16080 Fragile, calculation might fail
16081 \end_layout
16082
16083 \end_inset
16084 </cell>
16085 </row>
16086 <row interlinespace="default">
16087 <cell alignment="left" valignment="top" usebox="none">
16088 \begin_inset Text
16089
16090 \begin_layout Plain Layout
16091
16092 \size small
16093 Diamond
16094 \end_layout
16095
16096 \end_inset
16097 </cell>
16098 <cell alignment="left" valignment="top" usebox="none">
16099 \begin_inset Text
16100
16101 \begin_layout Plain Layout
16102
16103 \size small
16104 Rhomboid (symbolizing a 
16105 \begin_inset Quotes eld
16106 \end_inset
16107
16108 diamond
16109 \begin_inset Quotes erd
16110 \end_inset
16111
16112 )
16113 \end_layout
16114
16115 \end_inset
16116 </cell>
16117 <cell alignment="left" valignment="top" usebox="none">
16118 \begin_inset Text
16119
16120 \begin_layout Plain Layout
16121
16122 \size small
16123 -
16124 \end_layout
16125
16126 \end_inset
16127 </cell>
16128 </row>
16129 <row interlinespace="default">
16130 <cell alignment="left" valignment="top" usebox="none">
16131 \begin_inset Text
16132
16133 \begin_layout Plain Layout
16134
16135 \size small
16136 Heart
16137 \end_layout
16138
16139 \end_inset
16140 </cell>
16141 <cell alignment="left" valignment="top" usebox="none">
16142 \begin_inset Text
16143
16144 \begin_layout Plain Layout
16145
16146 \size small
16147 Heart-like shape
16148 \end_layout
16149
16150 \end_inset
16151 </cell>
16152 <cell alignment="left" valignment="top" usebox="none">
16153 \begin_inset Text
16154
16155 \begin_layout Plain Layout
16156
16157 \size small
16158 -
16159 \end_layout
16160
16161 \end_inset
16162 </cell>
16163 </row>
16164 <row interlinespace="default">
16165 <cell alignment="left" valignment="top" usebox="none">
16166 \begin_inset Text
16167
16168 \begin_layout Plain Layout
16169
16170 \size small
16171 Hexagon
16172 \end_layout
16173
16174 \end_inset
16175 </cell>
16176 <cell alignment="left" valignment="top" usebox="none">
16177 \begin_inset Text
16178
16179 \begin_layout Plain Layout
16180
16181 \size small
16182 Hexagon
16183 \end_layout
16184
16185 \end_inset
16186 </cell>
16187 <cell alignment="left" valignment="top" usebox="none">
16188 \begin_inset Text
16189
16190 \begin_layout Plain Layout
16191
16192 \size small
16193 -
16194 \end_layout
16195
16196 \end_inset
16197 </cell>
16198 </row>
16199 <row interlinespace="default">
16200 <cell alignment="left" valignment="top" usebox="none">
16201 \begin_inset Text
16202
16203 \begin_layout Plain Layout
16204
16205 \size small
16206 Nut
16207 \end_layout
16208
16209 \end_inset
16210 </cell>
16211 <cell alignment="left" valignment="top" usebox="none">
16212 \begin_inset Text
16213
16214 \begin_layout Plain Layout
16215
16216 \size small
16217 Nut for bolt (hexagon with circular hole)
16218 \end_layout
16219
16220 \end_inset
16221 </cell>
16222 <cell alignment="left" valignment="top" usebox="none">
16223 \begin_inset Text
16224
16225 \begin_layout Plain Layout
16226
16227 \size small
16228 -
16229 \end_layout
16230
16231 \end_inset
16232 </cell>
16233 </row>
16234 <row interlinespace="default">
16235 <cell alignment="left" valignment="top" usebox="none">
16236 \begin_inset Text
16237
16238 \begin_layout Plain Layout
16239
16240 \size small
16241 Square
16242 \end_layout
16243
16244 \end_inset
16245 </cell>
16246 <cell alignment="left" valignment="top" usebox="none">
16247 \begin_inset Text
16248
16249 \begin_layout Plain Layout
16250
16251 \size small
16252 Square
16253 \end_layout
16254
16255 \end_inset
16256 </cell>
16257 <cell alignment="left" valignment="top" usebox="none">
16258 \begin_inset Text
16259
16260 \begin_layout Plain Layout
16261
16262 \size small
16263 -
16264 \end_layout
16265
16266 \end_inset
16267 </cell>
16268 </row>
16269 <row interlinespace="default">
16270 <cell alignment="left" valignment="top" usebox="none">
16271 \begin_inset Text
16272
16273 \begin_layout Plain Layout
16274
16275 \size small
16276 Star
16277 \end_layout
16278
16279 \end_inset
16280 </cell>
16281 <cell alignment="left" valignment="top" usebox="none">
16282 \begin_inset Text
16283
16284 \begin_layout Plain Layout
16285
16286 \size small
16287 Five-point star
16288 \end_layout
16289
16290 \end_inset
16291 </cell>
16292 <cell alignment="left" valignment="top" usebox="none">
16293 \begin_inset Text
16294
16295 \begin_layout Plain Layout
16296
16297 \size small
16298 -
16299 \end_layout
16300
16301 \end_inset
16302 </cell>
16303 </row>
16304 <row interlinespace="default">
16305 <cell alignment="left" valignment="top" usebox="none">
16306 \begin_inset Text
16307
16308 \begin_layout Plain Layout
16309
16310 \size small
16311 Candle
16312 \end_layout
16313
16314 \end_inset
16315 </cell>
16316 <cell alignment="left" valignment="top" usebox="none">
16317 \begin_inset Text
16318
16319 \begin_layout Plain Layout
16320
16321 \size small
16322 Burning candle
16323 \end_layout
16324
16325 \end_inset
16326 </cell>
16327 <cell alignment="left" valignment="top" usebox="none">
16328 \begin_inset Text
16329
16330 \begin_layout Plain Layout
16331
16332 \size small
16333 -
16334 \end_layout
16335
16336 \end_inset
16337 </cell>
16338 </row>
16339 <row interlinespace="default">
16340 <cell alignment="left" valignment="top" usebox="none">
16341 \begin_inset Text
16342
16343 \begin_layout Plain Layout
16344
16345 \size small
16346 Drop down/up
16347 \end_layout
16348
16349 \end_inset
16350 </cell>
16351 <cell alignment="left" valignment="top" usebox="none">
16352 \begin_inset Text
16353
16354 \begin_layout Plain Layout
16355
16356 \size small
16357 Normal/reversed rain drop
16358 \end_layout
16359
16360 \end_inset
16361 </cell>
16362 <cell alignment="left" valignment="top" usebox="none">
16363 \begin_inset Text
16364
16365 \begin_layout Plain Layout
16366
16367 \size small
16368 Fragile, calculation might fail
16369 \end_layout
16370
16371 \end_inset
16372 </cell>
16373 </row>
16374 <row interlinespace="default">
16375 <cell alignment="left" valignment="top" usebox="none">
16376 \begin_inset Text
16377
16378 \begin_layout Plain Layout
16379
16380 \size small
16381 \SpecialChar TeX
16382
16383 \end_layout
16384
16385 \end_inset
16386 </cell>
16387 <cell alignment="left" valignment="top" usebox="none">
16388 \begin_inset Text
16389
16390 \begin_layout Plain Layout
16391
16392 \size small
16393 The \SpecialChar TeX
16394  logo
16395 \end_layout
16396
16397 \end_inset
16398 </cell>
16399 <cell alignment="left" valignment="top" usebox="none">
16400 \begin_inset Text
16401
16402 \begin_layout Plain Layout
16403
16404 \size small
16405 -
16406 \end_layout
16407
16408 \end_inset
16409 </cell>
16410 </row>
16411 <row interlinespace="default">
16412 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
16413 \begin_inset Text
16414
16415 \begin_layout Plain Layout
16416
16417 \size small
16418 Triangle up/down/
16419 \begin_inset Newline newline
16420 \end_inset
16421
16422 left/right
16423 \end_layout
16424
16425 \end_inset
16426 </cell>
16427 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
16428 \begin_inset Text
16429
16430 \begin_layout Plain Layout
16431
16432 \size small
16433 Triangles in different orientations
16434 \end_layout
16435
16436 \end_inset
16437 </cell>
16438 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
16439 \begin_inset Text
16440
16441 \begin_layout Plain Layout
16442
16443 \size small
16444 -
16445 \end_layout
16446
16447 \end_inset
16448 </cell>
16449 </row>
16450 </lyxtabular>
16451
16452 \end_inset
16453
16454
16455 \end_layout
16456
16457 \begin_layout Standard
16458 To use a shape for your paragraph, simply select it in \SpecialChar LyX
16459 's pull-down box
16460  for environments in the toolbar.
16461 \end_layout
16462
16463 \begin_layout Standard
16464 \begin_inset Newpage newpage
16465 \end_inset
16466
16467
16468 \end_layout
16469
16470 \begin_layout Standard
16471 Here is an example paragraph in the shape of a nut:
16472 \end_layout
16473
16474 \begin_layout Standard
16475 \begin_inset VSpace bigskip
16476 \end_inset
16477
16478
16479 \end_layout
16480
16481 \begin_layout Nut
16482
16483 \lang latin
16484 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
16485  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
16486  voluptua.
16487  At vero eos et accusam et justo duo dolores et ea rebum.
16488  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
16489  sit amet.
16490  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
16491  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
16492  voluptua.
16493 \end_layout
16494
16495 \begin_layout Standard
16496 \begin_inset VSpace bigskip
16497 \end_inset
16498
16499
16500 \end_layout
16501
16502 \begin_layout Standard
16503 \begin_inset Note Greyedout
16504 status open
16505
16506 \begin_layout Plain Layout
16507
16508 \series bold
16509 Note
16510 \series default
16511
16512 \family sans
16513 shapepar
16514 \family default
16515  paragraphs cannot run over a page break.
16516 \end_layout
16517
16518 \end_inset
16519
16520
16521 \end_layout
16522
16523 \begin_layout Standard
16524 \begin_inset VSpace bigskip
16525 \end_inset
16526
16527
16528 \end_layout
16529
16530 \begin_layout Standard
16531 The package 
16532 \begin_inset Flex Code
16533 status collapsed
16534
16535 \begin_layout Plain Layout
16536 shapepar
16537 \end_layout
16538
16539 \end_inset
16540
16541  takes care that the shape will always be preserved, no matter how much
16542  text is in the paragraph.
16543  Therefore the paragraph size changes with the amount of contained text.
16544  This can lead to paragraph sizes exceeding the page margins.
16545  To demonstrate the size scaling, here is the same example paragraph but
16546  with twice as much text:
16547 \end_layout
16548
16549 \begin_layout Standard
16550 \begin_inset Newpage newpage
16551 \end_inset
16552
16553
16554 \end_layout
16555
16556 \begin_layout Nut
16557
16558 \lang latin
16559 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
16560  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
16561  voluptua.
16562  At vero eos et accusam et justo duo dolores et ea rebum.
16563  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
16564  sit amet.
16565  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
16566  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
16567  voluptua.
16568  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
16569  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
16570  voluptua.
16571  At vero eos et accusam et justo duo dolores et ea rebum.
16572  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
16573  sit amet.
16574  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
16575  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
16576  voluptua.
16577 \end_layout
16578
16579 \begin_layout Standard
16580 \begin_inset VSpace bigskip
16581 \end_inset
16582
16583
16584 \end_layout
16585
16586 \begin_layout Standard
16587 An exception is the shape 
16588 \family sans
16589 CDlabel
16590 \family default
16591 .
16592  It cannot be scaled because it must fit the size of a CD/DVD.
16593  Therefore the amount of text that fits into the shape is limited.
16594 \begin_inset Newline newline
16595 \end_inset
16596
16597 The 
16598 \family sans
16599 drop
16600 \family default
16601  shapes and the 
16602 \family sans
16603 circle
16604 \family default
16605  shape are fragile, meaning that the calculation of their size can fail,
16606  depending on the amount of text.
16607  You will then get the \SpecialChar LaTeX
16608  error 
16609 \begin_inset Quotes eld
16610 \end_inset
16611
16612 Arithmetic overflow
16613 \begin_inset Quotes erd
16614 \end_inset
16615
16616 .
16617  In this case one can try to remove or add some text; if nothing works one
16618  has to use another shape.
16619 \end_layout
16620
16621 \begin_layout Standard
16622 \begin_inset VSpace bigskip
16623 \end_inset
16624
16625
16626 \end_layout
16627
16628 \begin_layout Standard
16629 For shapes with tips you will maybe see that \SpecialChar LaTeX
16630 's hyphenation routine fails
16631  for text in the tips.
16632  Therefore it is often necessary to add hyphenation points 
16633 \family sans
16634 (
16635 \begin_inset Info
16636 type  "shortcut"
16637 arg   "specialchar-insert hyphenation"
16638 \end_inset
16639
16640
16641 \family default
16642 ) to the corresponding text parts.
16643 \end_layout
16644
16645 \begin_layout Standard
16646 \begin_inset VSpace bigskip
16647 \end_inset
16648
16649
16650 \end_layout
16651
16652 \begin_layout Standard
16653 Shapepar paragraphs are either always centered or placed on the page so
16654  that their left border touches the left page margin.
16655  You can therefore not use the paragraph dialog to align such paragraphs.
16656  A solution is to put the paragraph into a minipage or parbox and align
16657  the box.
16658  The problem is hereby to find the right width for the box.
16659  Because if it is too wide and you center the box, the paragraph is not
16660  centered too because it sticks at the left side of the box.
16661  So you might have to play a bit with the width until it fits.
16662  Here are two heart-shaped paragraphs, the first one is not aligned, the
16663  second one is right-aligned:
16664 \end_layout
16665
16666 \begin_layout Standard
16667 \begin_inset Newpage newpage
16668 \end_inset
16669
16670
16671 \end_layout
16672
16673 \begin_layout Heart
16674 \noindent
16675
16676 \lang latin
16677 Lo\SpecialChar softhyphen
16678 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
16679  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
16680  voluptua.
16681  At vero eos et accusam et justo duo dolores et ea rebum.
16682  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
16683  sit amet.
16684 \end_layout
16685
16686 \begin_layout Standard
16687 \begin_inset VSpace bigskip
16688 \end_inset
16689
16690
16691 \end_layout
16692
16693 \begin_layout Standard
16694 \noindent
16695 \align right
16696 \begin_inset Box Frameless
16697 position "t"
16698 hor_pos "c"
16699 has_inner_box 1
16700 inner_pos "t"
16701 use_parbox 1
16702 use_makebox 0
16703 width "42col%"
16704 special "none"
16705 height "1in"
16706 height_special "totalheight"
16707 thickness "0.4pt"
16708 separation "3pt"
16709 shadowsize "4pt"
16710 framecolor "black"
16711 backgroundcolor "none"
16712 status open
16713
16714 \begin_layout Heart
16715 \noindent
16716
16717 \lang latin
16718 Lo\SpecialChar softhyphen
16719 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
16720  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
16721  voluptua.
16722  At vero eos et accusam et justo duo dolores et ea rebum.
16723  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
16724  sit amet.
16725 \end_layout
16726
16727 \end_inset
16728
16729
16730 \end_layout
16731
16732 \begin_layout Subsubsection
16733 Custom shapes
16734 \end_layout
16735
16736 \begin_layout Standard
16737 You can define any shape you want.
16738  Doing this manually is a lot of work because every coordinate must be specified.
16739  But there is a way to let the computer calculate the coordinates:
16740 \end_layout
16741
16742 \begin_layout Enumerate
16743 Install the program 
16744 \begin_inset CommandInset href
16745 LatexCommand href
16746 name "Jpgfdraw"
16747 target "https://www.ctan.org/tex-archive/graphics/jpgfdraw"
16748 literal "false"
16749
16750 \end_inset
16751
16752 .
16753 \end_layout
16754
16755 \begin_layout Enumerate
16756 In 
16757 \family sans
16758 Jpgfdraw
16759 \family default
16760  go to the menu 
16761 \family sans
16762 TeX/LaTeX\SpecialChar menuseparator
16763 Settings\SpecialChar menuseparator
16764 Set Normal Size
16765 \family default
16766  and select the font size you are using in your document.
16767  For example this document uses the size 12
16768 \begin_inset space \thinspace{}
16769 \end_inset
16770
16771 pt.
16772 \end_layout
16773
16774 \begin_layout Enumerate
16775 Draw a shape.
16776 \end_layout
16777
16778 \begin_layout Enumerate
16779 Use the menu 
16780 \family sans
16781 TeX/LaTeX\SpecialChar menuseparator
16782 Shapepar
16783 \family default
16784  to export the shape to coordinates.
16785  In the appearing dialog use either the outline of your shape for the coordinate
16786 s or the path itself.
16787 \begin_inset Foot
16788 status collapsed
16789
16790 \begin_layout Plain Layout
16791 For more information see 
16792 \begin_inset CommandInset href
16793 LatexCommand href
16794 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
16795 literal "false"
16796
16797 \end_inset
16798
16799
16800 \end_layout
16801
16802 \end_inset
16803
16804
16805 \end_layout
16806
16807 \begin_layout Standard
16808 The coordinates are written into a \SpecialChar TeX
16809  file.
16810  To use it for your \SpecialChar LyX
16811  document
16812 \end_layout
16813
16814 \begin_layout Enumerate
16815 Place the cursor before the first character of your paragraph (or into a
16816  new empty one).
16817 \end_layout
16818
16819 \begin_layout Enumerate
16820 Open in \SpecialChar LyX
16821  the menu 
16822 \family sans
16823 Insert\SpecialChar menuseparator
16824 File\SpecialChar menuseparator
16825 Child
16826 \begin_inset space ~
16827 \end_inset
16828
16829 Document
16830 \family default
16831 , select the file and use 
16832 \family sans
16833 Input
16834 \family default
16835  as 
16836 \family sans
16837 Include Type.
16838 \end_layout
16839
16840 \begin_layout Standard
16841 \begin_inset VSpace defskip
16842 \end_inset
16843
16844
16845 \end_layout
16846
16847 \begin_layout Standard
16848 \begin_inset Note Greyedout
16849 status open
16850
16851 \begin_layout Plain Layout
16852
16853 \series bold
16854 Note
16855 \series default
16856 : The changed shape only applies to the current paragraph; everything is
16857  reset to normal for the next paragraph.
16858  Therefore the shape definition file must be input into every paragraph
16859  with the desired shape.
16860 \end_layout
16861
16862 \end_inset
16863
16864
16865 \end_layout
16866
16867 \begin_layout Standard
16868 \begin_inset VSpace bigskip
16869 \end_inset
16870
16871
16872 \end_layout
16873
16874 \begin_layout Standard
16875 Here is an example:
16876 \end_layout
16877
16878 \begin_layout Standard
16879 \begin_inset VSpace bigskip
16880 \end_inset
16881
16882
16883 \end_layout
16884
16885 \begin_layout Standard
16886 \begin_inset CommandInset include
16887 LatexCommand input
16888 filename "SpecialParagraphShape.tex"
16889 literal "true"
16890
16891 \end_inset
16892
16893
16894 \lang latin
16895 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
16896  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
16897  voluptua.
16898  At vero eos et accusam et justo duo dolores et ea rebum.
16899  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
16900  sit amet.
16901  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
16902  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
16903  voluptua.
16904 \end_layout
16905
16906 \begin_layout Standard
16907 \begin_inset VSpace bigskip
16908 \end_inset
16909
16910
16911 \end_layout
16912
16913 \begin_layout Standard
16914
16915 \series bold
16916 A tip:
16917 \series default
16918  to draw complexer shapes in 
16919 \family sans
16920 Jpgfdraw
16921 \family default
16922  you can draw the shape in a program of your choice and import the resulting
16923  image to 
16924 \family sans
16925 Jpgfdraw
16926 \family default
16927 .
16928  Then you only need to draw a line or spline along the outline of the image.
16929 \end_layout
16930
16931 \begin_layout Standard
16932 \begin_inset VSpace bigskip
16933 \end_inset
16934
16935
16936 \end_layout
16937
16938 \begin_layout Standard
16939 The module 
16940 \family sans
16941 Custom paragraph shapes
16942 \family default
16943  also provides the two commands 
16944 \family sans
16945 shapepar
16946 \family default
16947  and 
16948 \family sans
16949 Shapepar
16950 \family default
16951  which can be used to define custom shapes coordinate by coordinate.
16952 \begin_inset Foot
16953 status collapsed
16954
16955 \begin_layout Plain Layout
16956 These commands are internally used for all shapes described here.
16957 \end_layout
16958
16959 \end_inset
16960
16961  For information how these styles are used and about further customization
16962  possibilities, have a look at the 
16963 \begin_inset CommandInset href
16964 LatexCommand href
16965 name "documentation"
16966 target "https://www.ctan.org/tex-archive/macros/latex/contrib/shapepar/shapepar.pdf"
16967 literal "false"
16968
16969 \end_inset
16970
16971  of the package 
16972 \begin_inset Flex Code
16973 status collapsed
16974
16975 \begin_layout Plain Layout
16976 shapepar
16977 \end_layout
16978
16979 \end_inset
16980
16981 .
16982 \end_layout
16983
16984 \begin_layout Chapter
16985
16986 \change_deleted 564990737 1671304317
16987 Customizing 
16988 \change_unchanged
16989 Bibliograph
16990 \change_inserted 564990737 1671304322
16991 y
16992 \change_deleted 564990737 1671304331
16993 ies with Bib\SpecialChar TeX
16994  or Biblatex
16995 \change_unchanged
16996
16997 \end_layout
16998
16999 \begin_layout Standard
17000 The most basic information about how to use Bib\SpecialChar TeX
17001  or 
17002 \family sans
17003 Biblatex
17004 \family default
17005  with \SpecialChar LyX
17006  is contained in the section 
17007 \emph on
17008 Bibliography databases
17009 \emph default
17010  of the 
17011 \emph on
17012 User's Guide
17013 \emph default
17014 .
17015  The following subsections explain special bibliography features supported
17016  by \SpecialChar LyX
17017 .
17018 \end_layout
17019
17020 \begin_layout Section
17021 Alternative Citation Styles
17022 \end_layout
17023
17024 \begin_layout Standard
17025 Standard Bib\SpecialChar TeX
17026  uses numbers (e.
17027 \begin_inset space \thinspace{}
17028 \end_inset
17029
17030 g.
17031 \begin_inset space \space{}
17032 \end_inset
17033
17034
17035 \begin_inset Quotes eld
17036 \end_inset
17037
17038 [12]
17039 \begin_inset Quotes erd
17040 \end_inset
17041
17042 ) to refer to a cited work.
17043  However, in many scientific disciplines, other citation styles are in use.
17044  The most common one is the author-year style (e.
17045 \begin_inset space \thinspace{}
17046 \end_inset
17047
17048 g.
17049 \begin_inset space \space{}
17050 \end_inset
17051
17052
17053 \begin_inset Quotes eld
17054 \end_inset
17055
17056 Knuth 1984a
17057 \begin_inset Quotes erd
17058 \end_inset
17059
17060 ).
17061  \SpecialChar LyX
17062  supports three packages that provide this style, 
17063 \begin_inset Flex Code
17064 status collapsed
17065
17066 \begin_layout Plain Layout
17067 biblatex
17068 \end_layout
17069
17070 \end_inset
17071
17072
17073 \begin_inset Flex Code
17074 status collapsed
17075
17076 \begin_layout Plain Layout
17077 natbib
17078 \end_layout
17079
17080 \end_inset
17081
17082 , and 
17083 \begin_inset Flex Code
17084 status collapsed
17085
17086 \begin_layout Plain Layout
17087 jurabib
17088 \end_layout
17089
17090 \end_inset
17091
17092 .
17093  Each of these packages has their pros and cons, which cannot be listed
17094  in detail.
17095  If you only want to have simple author-year (or author-numerical) style,
17096  or if you want to use one of the countless style files for 
17097 \begin_inset Flex Code
17098 status collapsed
17099
17100 \begin_layout Plain Layout
17101 natbib
17102 \end_layout
17103
17104 \end_inset
17105
17106 , then the established 
17107 \begin_inset Flex Code
17108 status collapsed
17109
17110 \begin_layout Plain Layout
17111 natbib
17112 \end_layout
17113
17114 \end_inset
17115
17116  package is probably your choice.
17117  If you look for specific citation styles common in law studies, you might
17118  consider the 
17119 \begin_inset Flex Code
17120 status collapsed
17121
17122 \begin_layout Plain Layout
17123 jurabib
17124 \end_layout
17125
17126 \end_inset
17127
17128  package.
17129  If you want to have full control over the formatting or look for advanced
17130  features such as ibidem, footnote citations, full title citations, advanced
17131  date formats (such as 400 BC) or full localization to other languages than
17132  English, you should definitely consider 
17133 \begin_inset Flex Code
17134 status collapsed
17135
17136 \begin_layout Plain Layout
17137 biblatex
17138 \end_layout
17139
17140 \end_inset
17141
17142 , which exceeds all other packages in terms of features, but is also quite
17143  heavy and more resource-hungry.
17144 \end_layout
17145
17146 \begin_layout Standard
17147 The handling of these packages in \SpecialChar LyX
17148  is basically the same.
17149  Go to 
17150 \begin_inset Flex Noun
17151 status collapsed
17152
17153 \begin_layout Plain Layout
17154 Document\SpecialChar menuseparator
17155 Settings
17156 \end_layout
17157
17158 \end_inset
17159
17160  and select under 
17161 \begin_inset Flex Noun
17162 status collapsed
17163
17164 \begin_layout Plain Layout
17165 Bibliography
17166 \end_layout
17167
17168 \end_inset
17169
17170  the 
17171 \begin_inset Flex Noun
17172 status collapsed
17173
17174 \begin_layout Plain Layout
17175 Style Format
17176 \end_layout
17177
17178 \end_inset
17179
17180  
17181 \begin_inset Flex Noun
17182 status collapsed
17183
17184 \begin_layout Plain Layout
17185 Basic (BibTeX)
17186 \end_layout
17187
17188 \end_inset
17189
17190
17191 \begin_inset Flex Noun
17192 status collapsed
17193
17194 \begin_layout Plain Layout
17195 Biblatex
17196 \end_layout
17197
17198 \end_inset
17199
17200
17201 \begin_inset Flex Noun
17202 status collapsed
17203
17204 \begin_layout Plain Layout
17205 Biblatex (Natbib mode)
17206 \end_layout
17207
17208 \end_inset
17209
17210
17211 \begin_inset Flex Noun
17212 status collapsed
17213
17214 \begin_layout Plain Layout
17215 Natbib (BibTeX)
17216 \end_layout
17217
17218 \end_inset
17219
17220  or 
17221 \begin_inset Flex Noun
17222 status collapsed
17223
17224 \begin_layout Plain Layout
17225 Jurabib (BibTeX)
17226 \end_layout
17227
17228 \end_inset
17229
17230  (see sec.
17231 \begin_inset space ~
17232 \end_inset
17233
17234 6.5.3 in the User's Guide for more information on these choices).
17235  With all these packages, you will get some extra features in the citation
17236  dialog and you can select the style of the reference (
17237 \begin_inset Quotes eld
17238 \end_inset
17239
17240 Knuth 1984
17241 \begin_inset Quotes erd
17242 \end_inset
17243
17244
17245 \begin_inset Quotes eld
17246 \end_inset
17247
17248 Knuth (1984)
17249 \begin_inset Quotes erd
17250 \end_inset
17251
17252
17253 \begin_inset Quotes eld
17254 \end_inset
17255
17256 Knuth, 1984
17257 \begin_inset Quotes erd
17258 \end_inset
17259
17260
17261 \begin_inset Quotes eld
17262 \end_inset
17263
17264 1984
17265 \begin_inset Quotes erd
17266 \end_inset
17267
17268  etc.).
17269  Note that either package needs specifically designed style files.
17270  They all ship their own, but there are lots of additional style files,
17271  and there is even an interactive style file builder
17272 \begin_inset Foot
17273 status collapsed
17274
17275 \begin_layout Plain Layout
17276 See 
17277 \begin_inset Flex URL
17278 status open
17279
17280 \begin_layout Plain Layout
17281
17282 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
17283 \end_layout
17284
17285 \end_inset
17286
17287
17288 \end_layout
17289
17290 \end_inset
17291
17292  for 
17293 \begin_inset Flex Code
17294 status collapsed
17295
17296 \begin_layout Plain Layout
17297 natbib
17298 \end_layout
17299
17300 \end_inset
17301
17302 .
17303 \end_layout
17304
17305 \begin_layout Section
17306 Subdivided Bibliographies
17307 \end_layout
17308
17309 \begin_layout Standard
17310 Sometimes you might need to divide your bibliography into several sections.
17311  If you are for instance a historian, the possibility to separate sources
17312  and scientific works is most likely a 
17313 \begin_inset Quotes eld
17314 \end_inset
17315
17316 must have
17317 \begin_inset Quotes erd
17318 \end_inset
17319
17320 .
17321  Unfortunately, Bib\SpecialChar TeX
17322  itself does not allow you to do this.
17323  But with the help of some \SpecialChar LaTeX
17324  packages, Bib\SpecialChar TeX
17325  can be extended to fit your needs.
17326 \end_layout
17327
17328 \begin_layout Standard
17329 \SpecialChar LyX
17330  provides native support for one of these packages, 
17331 \family typewriter
17332 bibtopic
17333 \family default
17334 .
17335 \begin_inset Foot
17336 status collapsed
17337
17338 \begin_layout Plain Layout
17339 Available from 
17340 \begin_inset Flex URL
17341 status open
17342
17343 \begin_layout Plain Layout
17344
17345 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
17346 \end_layout
17347
17348 \end_inset
17349
17350
17351 \end_layout
17352
17353 \end_inset
17354
17355  The advantage of this package (compared to other packages such as 
17356 \family typewriter
17357 multibib
17358 \family default
17359 ) is that you don't need to define new citation commands.
17360  Instead, you need to prepare different bibliographic databases which include
17361  the entries for the different sections of the bibliography.
17362  For example: If you want to divide your bibliography into the sections
17363  
17364 \begin_inset Quotes eld
17365 \end_inset
17366
17367 Sources
17368 \begin_inset Quotes erd
17369 \end_inset
17370
17371  and 
17372 \begin_inset Quotes eld
17373 \end_inset
17374
17375 Scientific works
17376 \begin_inset Quotes erd
17377 \end_inset
17378
17379 , you first need to create two bibliographic databases, e.
17380 \begin_inset space \thinspace{}
17381 \end_inset
17382
17383 g.
17384 \begin_inset space \space{}
17385 \end_inset
17386
17387
17388 \begin_inset Flex Code
17389 status collapsed
17390
17391 \begin_layout Plain Layout
17392 sources.bib
17393 \end_layout
17394
17395 \end_inset
17396
17397  and 
17398 \begin_inset Flex Code
17399 status collapsed
17400
17401 \begin_layout Plain Layout
17402 scientific.bib
17403 \end_layout
17404
17405 \end_inset
17406
17407 .
17408  
17409 \end_layout
17410
17411 \begin_layout Standard
17412 Go to 
17413 \begin_inset Flex Noun
17414 status collapsed
17415
17416 \begin_layout Plain Layout
17417 Document\SpecialChar menuseparator
17418 Settings
17419 \end_layout
17420
17421 \end_inset
17422
17423  and check under 
17424 \begin_inset Flex Noun
17425 status collapsed
17426
17427 \begin_layout Plain Layout
17428 Bibliography
17429 \end_layout
17430
17431 \end_inset
17432
17433  the option 
17434 \begin_inset Flex Noun
17435 status collapsed
17436
17437 \begin_layout Plain Layout
17438 Subdivided bibliography
17439 \end_layout
17440
17441 \end_inset
17442
17443 .
17444  Now you can insert multiple Bib\SpecialChar TeX
17445  bibliographies, one for each section of
17446  your bibliography.
17447  Returning to our example: Insert the Bib\SpecialChar TeX
17448  bibliography 
17449 \begin_inset Flex Code
17450 status collapsed
17451
17452 \begin_layout Plain Layout
17453 sources.bib
17454 \end_layout
17455
17456 \end_inset
17457
17458  and a second one for the database 
17459 \begin_inset Flex Code
17460 status collapsed
17461
17462 \begin_layout Plain Layout
17463 scientific.bib
17464 \end_layout
17465
17466 \end_inset
17467
17468 .
17469  You are free to use the same or different styles for each section.
17470  Additionally, you can choose if the bibliography section should contain
17471  
17472 \begin_inset Quotes eld
17473 \end_inset
17474
17475 all cited references
17476 \begin_inset Quotes erd
17477 \end_inset
17478
17479  of the specified database(s) (which is the default), 
17480 \begin_inset Quotes eld
17481 \end_inset
17482
17483 all uncited references
17484 \begin_inset Quotes erd
17485 \end_inset
17486
17487  or even 
17488 \begin_inset Quotes eld
17489 \end_inset
17490
17491 all references
17492 \begin_inset Quotes erd
17493 \end_inset
17494
17495 .
17496  This might be useful if you would like to separate your bibliography into
17497  three sections: 
17498 \begin_inset Quotes eld
17499 \end_inset
17500
17501 Cited sources
17502 \begin_inset Quotes erd
17503 \end_inset
17504
17505
17506 \begin_inset Quotes eld
17507 \end_inset
17508
17509 Uncited sources
17510 \begin_inset Quotes erd
17511 \end_inset
17512
17513 , and 
17514 \begin_inset Quotes eld
17515 \end_inset
17516
17517 Scientific works
17518 \begin_inset Quotes erd
17519 \end_inset
17520
17521 .
17522  The titles for the sections can be added as ordinary sections or subsections.
17523  Since 
17524 \begin_inset Flex Code
17525 status collapsed
17526
17527 \begin_layout Plain Layout
17528 bibtopic
17529 \end_layout
17530
17531 \end_inset
17532
17533  removes the bibliography title, you have to manually re-add that, too (as
17534  a chapter* or section*, for instance).
17535 \end_layout
17536
17537 \begin_layout Standard
17538 With 
17539 \family sans
17540 Biblatex
17541 \family default
17542 , the procedure is a bit different.
17543  Since 
17544 \family typewriter
17545 bibtopic
17546 \family default
17547  does not work with 
17548 \family sans
17549 Biblatex
17550 \family default
17551 , the aforementioned 
17552 \begin_inset Flex Noun
17553 status collapsed
17554
17555 \begin_layout Plain Layout
17556 Subdivided bibliography
17557 \end_layout
17558
17559 \end_inset
17560
17561  option is disabled if you use 
17562 \family sans
17563 Biblatex
17564 \family default
17565 .
17566  However, 
17567 \family sans
17568 Biblatex
17569 \family default
17570  provides its own means to generate subdivided bibliographies.
17571  You can either add keywords to bibliography entries via the 
17572 \begin_inset Flex Code
17573 status collapsed
17574
17575 \begin_layout Plain Layout
17576 keywords
17577 \end_layout
17578
17579 \end_inset
17580
17581  entry option and then filter bibliography sections by keyword (by adding
17582  
17583 \begin_inset Flex Code
17584 status collapsed
17585
17586 \begin_layout Plain Layout
17587 keyword=mykeyword
17588 \end_layout
17589
17590 \end_inset
17591
17592  to the 
17593 \begin_inset Flex Noun
17594 status collapsed
17595
17596 \begin_layout Plain Layout
17597 Options
17598 \end_layout
17599
17600 \end_inset
17601
17602  field of the dialog that opens if you left-click on the 
17603 \begin_inset Flex Noun
17604 status collapsed
17605
17606 \begin_layout Plain Layout
17607 Biblatex Generated Bibliography
17608 \end_layout
17609
17610 \end_inset
17611
17612  button), or you can filter by entry types (such as 
17613 \emph on
17614 book
17615 \emph default
17616  or 
17617 \emph on
17618 article
17619 \emph default
17620 ) by entering e.
17621 \begin_inset space \thinspace{}
17622 \end_inset
17623
17624 g.
17625  
17626 \begin_inset Flex Code
17627 status collapsed
17628
17629 \begin_layout Plain Layout
17630 type=book
17631 \end_layout
17632
17633 \end_inset
17634
17635  or 
17636 \begin_inset Flex Code
17637 status collapsed
17638
17639 \begin_layout Plain Layout
17640 nottype=collection
17641 \end_layout
17642
17643 \end_inset
17644
17645  to the mentioned 
17646 \begin_inset Flex Noun
17647 status collapsed
17648
17649 \begin_layout Plain Layout
17650 Options
17651 \end_layout
17652
17653 \end_inset
17654
17655  field, or you can create so-called 
17656 \begin_inset Quotes eld
17657 \end_inset
17658
17659 Bibliography Categories
17660 \begin_inset Quotes erd
17661 \end_inset
17662
17663  to which you can assign individual entries.
17664  Please refer to the Biblatex manual, section 
17665 \emph on
17666 Subdivided Bibliographies
17667 \emph default
17668 , for details.
17669 \end_layout
17670
17671 \begin_layout Section
17672 Multiple Bibliographies
17673 \begin_inset CommandInset label
17674 LatexCommand label
17675 name "subsec:Multiple-Bibliographies"
17676
17677 \end_inset
17678
17679
17680 \end_layout
17681
17682 \begin_layout Standard
17683 Multiple bibliographies, e.
17684 \begin_inset space \thinspace{}
17685 \end_inset
17686
17687 g.
17688 \begin_inset space \space{}
17689 \end_inset
17690
17691 a bibliography for each part, chapter, section, subsection or child (sub-documen
17692 t) of the document, are also supported by \SpecialChar LyX
17693 .
17694  In order to enable it, go to 
17695 \begin_inset Flex Noun
17696 status collapsed
17697
17698 \begin_layout Plain Layout
17699 Document\SpecialChar menuseparator
17700 Settings\SpecialChar menuseparator
17701 Bibliography
17702 \end_layout
17703
17704 \end_inset
17705
17706  and select the relevant unit (e.
17707 \begin_inset space \thinspace{}
17708 \end_inset
17709
17710 g., 
17711 \begin_inset Quotes eld
17712 \end_inset
17713
17714 per section
17715 \begin_inset Quotes erd
17716 \end_inset
17717
17718 ) in the 
17719 \begin_inset Flex Noun
17720 status collapsed
17721
17722 \begin_layout Plain Layout
17723 Multiple Bibliographies
17724 \end_layout
17725
17726 \end_inset
17727
17728  combo box.
17729  Then add a Bib(la)\SpecialChar TeX
17730  bibliography to each unit (e.
17731 \begin_inset space \thinspace{}
17732 \end_inset
17733
17734 g., section) of your document.
17735  In the output, a separate bibliography, containing only the references
17736  done in the current unit is generated.
17737 \end_layout
17738
17739 \begin_layout Standard
17740 If you use Bib\SpecialChar TeX
17741 , either the 
17742 \begin_inset Flex Code
17743 status collapsed
17744
17745 \begin_layout Plain Layout
17746 chapterbib
17747 \end_layout
17748
17749 \end_inset
17750
17751  or the 
17752 \begin_inset Flex Code
17753 status collapsed
17754
17755 \begin_layout Plain Layout
17756 bibtopic
17757 \end_layout
17758
17759 \end_inset
17760
17761  package is used to create multiple bibliographies.
17762  The former package is used if you select 
17763 \begin_inset Quotes eld
17764 \end_inset
17765
17766 per child document
17767 \begin_inset Quotes erd
17768 \end_inset
17769
17770  and do 
17771 \emph on
17772 not
17773 \emph default
17774  check 
17775 \begin_inset Flex Noun
17776 status collapsed
17777
17778 \begin_layout Plain Layout
17779 Sectioned Bibliography
17780 \end_layout
17781
17782 \end_inset
17783
17784 .
17785  In all other cases, 
17786 \begin_inset Flex Code
17787 status collapsed
17788
17789 \begin_layout Plain Layout
17790 bibtopic
17791 \end_layout
17792
17793 \end_inset
17794
17795  is used.
17796 \begin_inset Foot
17797 status collapsed
17798
17799 \begin_layout Plain Layout
17800 An alternative approach, if you are willing to use some 
17801 \begin_inset Flex Noun
17802 status collapsed
17803
17804 \begin_layout Plain Layout
17805 \SpecialChar TeX
17806  Code
17807 \end_layout
17808
17809 \end_inset
17810
17811  (see section
17812 \begin_inset space ~
17813 \end_inset
17814
17815
17816 \begin_inset CommandInset ref
17817 LatexCommand ref
17818 reference "sec:Inserting-TeX-Code"
17819
17820 \end_inset
17821
17822 ), is to use the 
17823 \begin_inset Flex Code
17824 status collapsed
17825
17826 \begin_layout Plain Layout
17827 bibunits
17828 \end_layout
17829
17830 \end_inset
17831
17832  package.
17833 \end_layout
17834
17835 \end_inset
17836
17837  If 
17838 \begin_inset Flex Code
17839 status collapsed
17840
17841 \begin_layout Plain Layout
17842 bibtopic
17843 \end_layout
17844
17845 \end_inset
17846
17847  is used, \SpecialChar LyX
17848  encloses the specified units in 
17849 \begin_inset Flex Code
17850 status collapsed
17851
17852 \begin_layout Plain Layout
17853 bibtopic
17854 \end_layout
17855
17856 \end_inset
17857
17858 's 
17859 \begin_inset Flex Code
17860 status collapsed
17861
17862 \begin_layout Plain Layout
17863
17864 \backslash
17865 begin{btUnit}
17866 \end_layout
17867
17868 \end_inset
17869
17870  and 
17871 \begin_inset Flex Code
17872 status collapsed
17873
17874 \begin_layout Plain Layout
17875
17876 \backslash
17877 end{btUnit}
17878 \end_layout
17879
17880 \end_inset
17881
17882  in order to create the units.
17883  Note that this approach has some limitations.
17884  First, every citation reference has to be inside some 
17885 \begin_inset Flex Code
17886 status collapsed
17887
17888 \begin_layout Plain Layout
17889 btUnit
17890 \end_layout
17891
17892 \end_inset
17893
17894 .
17895  So citations outside a defined unit (e.
17896 \begin_inset space \thinspace{}
17897 \end_inset
17898
17899 g., before the first section if you use 
17900 \begin_inset Quotes eld
17901 \end_inset
17902
17903 by section
17904 \begin_inset Quotes erd
17905 \end_inset
17906
17907 ) will appear as 
17908 \begin_inset Quotes eld
17909 \end_inset
17910
17911 ???
17912 \begin_inset Quotes erd
17913 \end_inset
17914
17915 .
17916  You can also create your own units by entering 
17917 \begin_inset Flex Code
17918 status collapsed
17919
17920 \begin_layout Plain Layout
17921
17922 \backslash
17923 begin{btUnit}
17924 \end_layout
17925
17926 \end_inset
17927
17928  and 
17929 \begin_inset Flex Code
17930 status collapsed
17931
17932 \begin_layout Plain Layout
17933
17934 \backslash
17935 end{btUnit}
17936 \end_layout
17937
17938 \end_inset
17939
17940  as \SpecialChar TeX
17941  code (for instance to work around the mentioned limitation).
17942  Note, though, that 
17943 \begin_inset Flex Code
17944 status collapsed
17945
17946 \begin_layout Plain Layout
17947 btUnit
17948 \end_layout
17949
17950 \end_inset
17951
17952 s cannot be nested.
17953  A second limitation is that 
17954 \begin_inset Flex Code
17955 status collapsed
17956
17957 \begin_layout Plain Layout
17958 bibtopic
17959 \end_layout
17960
17961 \end_inset
17962
17963  always processes all references of a bibliography database, even if they
17964  are not cited.
17965  This can result in odd labels (e.
17966 \begin_inset space \thinspace{}
17967 \end_inset
17968
17969 g.
17970  
17971 \begin_inset Quotes eld
17972 \end_inset
17973
17974 Miller 2014b
17975 \begin_inset Quotes erd
17976 \end_inset
17977
17978  if two works of this author from 2014 are in the database, even if only
17979  one is cited).
17980 \end_layout
17981
17982 \begin_layout Standard
17983 If you use 
17984 \family sans
17985 Biblatex
17986 \family default
17987 , the 
17988 \begin_inset Flex Code
17989 status collapsed
17990
17991 \begin_layout Plain Layout
17992 refsection
17993 \end_layout
17994
17995 \end_inset
17996
17997  option is used instead.
17998  If you need specific units, you can start them with the \SpecialChar TeX
17999  code 
18000 \begin_inset Flex Code
18001 status collapsed
18002
18003 \begin_layout Plain Layout
18004
18005 \backslash
18006 newrefsection
18007 \end_layout
18008
18009 \end_inset
18010
18011  or 
18012 \begin_inset Flex Code
18013 status collapsed
18014
18015 \begin_layout Plain Layout
18016
18017 \backslash
18018 newrefsegment
18019 \end_layout
18020
18021 \end_inset
18022
18023 , respectively.
18024  If you also want to control the end of the unit, use the environment 
18025 \begin_inset Flex Code
18026 status collapsed
18027
18028 \begin_layout Plain Layout
18029
18030 \backslash
18031 begin{refsection}
18032 \end_layout
18033
18034 \end_inset
18035
18036  \SpecialChar ldots
18037  
18038 \begin_inset Flex Code
18039 status collapsed
18040
18041 \begin_layout Plain Layout
18042
18043 \backslash
18044 end{refsection}
18045 \end_layout
18046
18047 \end_inset
18048
18049  instead.
18050  Note, though, that 
18051 \begin_inset Flex Code
18052 status collapsed
18053
18054 \begin_layout Plain Layout
18055 refsection
18056 \end_layout
18057
18058 \end_inset
18059
18060 s cannot be nested.
18061  In addition to the individual bibliography of the current unit, 
18062 \family sans
18063 Biblatex
18064 \family default
18065  also provides an easy way to output all bibliographies, subsequently, at
18066  one place (e.
18067 \begin_inset space \thinspace{}
18068 \end_inset
18069
18070 g., at the end of the document).
18071  Select 
18072 \begin_inset Quotes eld
18073 \end_inset
18074
18075 all reference units
18076 \begin_inset Quotes erd
18077 \end_inset
18078
18079  from the Content combo box of the Bib(la)TeX inset dialog in order to achieve
18080  this.
18081  Please refer to the 
18082 \family sans
18083 Biblatex
18084 \family default
18085  manual for more information on this topic.
18086 \end_layout
18087
18088 \begin_layout Chapter
18089
18090 \change_deleted 564990737 1671355654
18091 Itemize 
18092 \change_unchanged
18093 Bullet
18094 \change_inserted 564990737 1671355667
18095 s
18096 \change_deleted 564990737 1671355661
18097  Selection
18098 \change_inserted 564990737 1671355684
18099
18100 \begin_inset CommandInset label
18101 LatexCommand label
18102 name "chap:bullets"
18103
18104 \end_inset
18105
18106
18107 \change_deleted 564990737 1671355684
18108
18109 \begin_inset CommandInset label
18110 LatexCommand label
18111 name "sec:bullet"
18112
18113 \end_inset
18114
18115
18116 \change_unchanged
18117
18118 \end_layout
18119
18120 \begin_layout Standard
18121 by
18122 \noun on
18123  Allan Rae
18124 \end_layout
18125
18126 \begin_layout Section
18127 Introduction
18128 \end_layout
18129
18130 \begin_layout Standard
18131 \SpecialChar LyX
18132  provides 216 bullet shapes that can be accessed from a simple dialog.
18133  Using this dialog you can easily specify what bullet shape to use at each
18134  level of an itemized list.
18135  These settings are document-wide so you won't be able to specify different
18136  sets of bullets for different paragraphs.
18137 \begin_inset Foot
18138 status collapsed
18139
18140 \begin_layout Plain Layout
18141 Well, actually you can but you'll have to do it by hand.
18142 \end_layout
18143
18144 \end_inset
18145
18146
18147 \end_layout
18148
18149 \begin_layout Section
18150 How it looks
18151 \end_layout
18152
18153 \begin_layout Standard
18154 Open the dialog by selecting the 
18155 \begin_inset Flex Noun
18156 status collapsed
18157
18158 \begin_layout Plain Layout
18159 Document\SpecialChar menuseparator
18160 Settings
18161 \end_layout
18162
18163 \end_inset
18164
18165  menu item and then select the 
18166 \begin_inset Flex Noun
18167 status collapsed
18168
18169 \begin_layout Plain Layout
18170 Bullets
18171 \end_layout
18172
18173 \end_inset
18174
18175  tab.
18176 \end_layout
18177
18178 \begin_layout Standard
18179 The dialog provides you with a table of bullet shapes.
18180  A column of buttons on the left of the table provides access to the six
18181  different panels of bullet shapes.
18182  The row of buttons across the top is used to select which bullet depth
18183  you are changing.
18184
18185 \change_deleted 244031559 1603875981
18186  A text entry under the table shows the currently selected bullet shape's
18187  \SpecialChar LaTeX
18188  equivalent and this can be edited if desired.
18189  If you do modify the text you will also need to specify any needed packages
18190  in the \SpecialChar LaTeX
18191  preamble.
18192 \change_unchanged
18193
18194 \end_layout
18195
18196 \begin_layout Standard
18197 The six panels are divided up by the packages they require.
18198  The following table shows the mappings from button name to \SpecialChar LaTeX
18199  package.
18200 \end_layout
18201
18202 \begin_layout Standard
18203 \align center
18204 \begin_inset Tabular
18205 <lyxtabular version="3" rows="7" columns="2">
18206 <features tabularvalignment="middle">
18207 <column alignment="center" valignment="top" width="0pt">
18208 <column alignment="center" valignment="top" width="0pt">
18209 <row>
18210 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18211 \begin_inset Text
18212
18213 \begin_layout Plain Layout
18214
18215 \family roman
18216 \series medium
18217 \shape up
18218 \size normal
18219 \emph off
18220 \bar no
18221 \noun off
18222 \color none
18223 Button
18224 \end_layout
18225
18226 \end_inset
18227 </cell>
18228 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18229 \begin_inset Text
18230
18231 \begin_layout Plain Layout
18232
18233 \family roman
18234 \series medium
18235 \shape up
18236 \size normal
18237 \emph off
18238 \bar no
18239 \noun off
18240 \color none
18241 Packages Required
18242 \end_layout
18243
18244 \end_inset
18245 </cell>
18246 </row>
18247 <row>
18248 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18249 \begin_inset Text
18250
18251 \begin_layout Plain Layout
18252
18253 \family sans
18254 \series medium
18255 \shape up
18256 \size normal
18257 \emph off
18258 \bar no
18259 \noun off
18260 \color none
18261 Standard
18262 \end_layout
18263
18264 \end_inset
18265 </cell>
18266 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18267 \begin_inset Text
18268
18269 \begin_layout Plain Layout
18270
18271 \series medium
18272 \shape up
18273 \size normal
18274 \emph off
18275 \bar no
18276 \noun off
18277 \color none
18278 base \SpecialChar LaTeX
18279
18280 \end_layout
18281
18282 \end_inset
18283 </cell>
18284 </row>
18285 <row>
18286 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18287 \begin_inset Text
18288
18289 \begin_layout Plain Layout
18290
18291 \family sans
18292 \series medium
18293 \shape up
18294 \size normal
18295 \emph off
18296 \bar no
18297 \noun off
18298 \color none
18299 Maths
18300 \end_layout
18301
18302 \end_inset
18303 </cell>
18304 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18305 \begin_inset Text
18306
18307 \begin_layout Plain Layout
18308
18309 \family typewriter
18310 \series medium
18311 \shape up
18312 \size normal
18313 \emph off
18314 \bar no
18315 \noun off
18316 \color none
18317 amssymb.sty
18318 \end_layout
18319
18320 \end_inset
18321 </cell>
18322 </row>
18323 <row>
18324 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18325 \begin_inset Text
18326
18327 \begin_layout Plain Layout
18328
18329 \family sans
18330 \series medium
18331 \shape up
18332 \size normal
18333 \emph off
18334 \bar no
18335 \noun off
18336 \color none
18337 Ding1
18338 \end_layout
18339
18340 \end_inset
18341 </cell>
18342 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18343 \begin_inset Text
18344
18345 \begin_layout Plain Layout
18346
18347 \family typewriter
18348 \series medium
18349 \shape up
18350 \size normal
18351 \emph off
18352 \bar no
18353 \noun off
18354 \color none
18355 pifont.sty
18356 \end_layout
18357
18358 \end_inset
18359 </cell>
18360 </row>
18361 <row>
18362 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18363 \begin_inset Text
18364
18365 \begin_layout Plain Layout
18366
18367 \family sans
18368 \series medium
18369 \shape up
18370 \size normal
18371 \emph off
18372 \bar no
18373 \noun off
18374 \color none
18375 Ding2
18376 \end_layout
18377
18378 \end_inset
18379 </cell>
18380 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18381 \begin_inset Text
18382
18383 \begin_layout Plain Layout
18384
18385 \family typewriter
18386 \series medium
18387 \shape up
18388 \size normal
18389 \emph off
18390 \bar no
18391 \noun off
18392 \color none
18393 pifont.sty
18394 \end_layout
18395
18396 \end_inset
18397 </cell>
18398 </row>
18399 <row>
18400 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18401 \begin_inset Text
18402
18403 \begin_layout Plain Layout
18404
18405 \family sans
18406 \series medium
18407 \shape up
18408 \size normal
18409 \emph off
18410 \bar no
18411 \noun off
18412 \color none
18413 Ding3
18414 \end_layout
18415
18416 \end_inset
18417 </cell>
18418 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18419 \begin_inset Text
18420
18421 \begin_layout Plain Layout
18422
18423 \family typewriter
18424 \series medium
18425 \shape up
18426 \size normal
18427 \emph off
18428 \bar no
18429 \noun off
18430 \color none
18431 pifont.sty
18432 \end_layout
18433
18434 \end_inset
18435 </cell>
18436 </row>
18437 <row>
18438 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18439 \begin_inset Text
18440
18441 \begin_layout Plain Layout
18442
18443 \family sans
18444 \series medium
18445 \shape up
18446 \size normal
18447 \emph off
18448 \bar no
18449 \noun off
18450 \color none
18451 Ding4
18452 \end_layout
18453
18454 \end_inset
18455 </cell>
18456 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18457 \begin_inset Text
18458
18459 \begin_layout Plain Layout
18460
18461 \family typewriter
18462 \series medium
18463 \shape up
18464 \size normal
18465 \emph off
18466 \bar no
18467 \noun off
18468 \color none
18469 pifont.sty
18470 \end_layout
18471
18472 \end_inset
18473 </cell>
18474 </row>
18475 </lyxtabular>
18476
18477 \end_inset
18478
18479
18480 \end_layout
18481
18482 \begin_layout Standard
18483 \SpecialChar LyX
18484  doesn't stop you using bullets from packages you don't have.
18485  If you get errors from \SpecialChar LaTeX
18486  when you try to view or print the file, then it
18487  is likely you are missing a package.
18488 \begin_inset Foot
18489 status collapsed
18490
18491 \begin_layout Plain Layout
18492 \SpecialChar LyX
18493  doesn't restrict your use since you may be editing locally and exporting
18494  elsewhere.
18495 \end_layout
18496
18497 \end_inset
18498
18499
18500 \end_layout
18501
18502 \begin_layout Section
18503 How to use it
18504 \end_layout
18505
18506 \begin_layout Standard
18507 Select which bullet depth you want to change then select the bullet shape
18508  and size.
18509  Any changes will not be visible in \SpecialChar LyX
18510 , but are visible when viewing the document.
18511 \end_layout
18512
18513 \begin_layout Standard
18514 You can reset a bullet shape to the default simply by clicking your right
18515  mouse button on the appropriate bullet depth button.
18516 \begin_inset Foot
18517 status open
18518
18519 \begin_layout Plain Layout
18520 If you 
18521 \emph on
18522 really
18523 \emph default
18524  want to have multiple sets of paragraphs with different sets of bullets
18525  in each, then you're going to have to get your hands dirty with \SpecialChar TeX
18526  code.
18527  The bullet selection dialog can help though because it provides you with
18528  the \SpecialChar LaTeX
18529  code for a wide range of bullet shapes.
18530  To make your own custom paragraphs you have the following options:
18531 \end_layout
18532
18533 \begin_layout Plain Layout
18534 \begin_inset ERT
18535 status open
18536
18537 \begin_layout Plain Layout
18538
18539
18540 \backslash
18541 let
18542 \backslash
18543 savelabelitemi=
18544 \backslash
18545 labelitemi
18546 \end_layout
18547
18548 \end_inset
18549
18550
18551 \end_layout
18552
18553 \begin_layout Plain Layout
18554 \begin_inset ERT
18555 status open
18556
18557 \begin_layout Plain Layout
18558
18559
18560 \backslash
18561 renewcommand
18562 \backslash
18563 labelitemi[0]{
18564 \backslash
18565 small
18566 \backslash
18567 (
18568 \backslash
18569 sharp
18570 \backslash
18571 )}
18572 \end_layout
18573
18574 \end_inset
18575
18576
18577 \end_layout
18578
18579 \begin_layout Itemize
18580 Use the \SpecialChar LaTeX
18581  command 
18582 \begin_inset Flex Code
18583 status collapsed
18584
18585 \begin_layout Plain Layout
18586
18587 \backslash
18588 renewcommand{}{}
18589 \end_layout
18590
18591 \end_inset
18592
18593  to specify a new bullet shape for a given depth.
18594  You'll also need to save the current bullet shape so you can restore it
18595  again afterwards.
18596  In this itemized list the following \SpecialChar LaTeX
18597  code was used to change the bullet
18598  used for the first depth.
18599 \end_layout
18600
18601 \begin_deeper
18602 \begin_layout LyX-Code
18603
18604 \backslash
18605 let
18606 \backslash
18607 savelabelitemi=
18608 \backslash
18609 labelitemi 
18610 \end_layout
18611
18612 \begin_layout LyX-Code
18613
18614 \backslash
18615 renewcommand
18616 \backslash
18617 labelitemi[0]{
18618 \backslash
18619 small
18620 \backslash
18621 (
18622 \backslash
18623 sharp
18624 \backslash
18625 )}
18626 \end_layout
18627
18628 \end_deeper
18629 \begin_layout Itemize
18630 Note that the itemize depth is specified in Roman numerals as part of the
18631  
18632 \family typewriter
18633
18634 \backslash
18635 labelitem
18636 \family default
18637  command.
18638 \end_layout
18639
18640 \begin_layout Itemize
18641 \begin_inset Argument item:1
18642 status open
18643
18644 \begin_layout Plain Layout
18645 \begin_inset ERT
18646 status open
18647
18648 \begin_layout Plain Layout
18649
18650
18651 \backslash
18652 (
18653 \backslash
18654 star
18655 \backslash
18656 )
18657 \end_layout
18658
18659 \end_inset
18660
18661
18662 \end_layout
18663
18664 \end_inset
18665
18666  Specify each individual entry by starting each item with the bullet shape
18667  enclosed in a 
18668 \begin_inset Quotes eld
18669 \end_inset
18670
18671 Custom Item
18672 \begin_inset Quotes erd
18673 \end_inset
18674
18675  inset (available at 
18676 \family sans
18677 Insert\SpecialChar menuseparator
18678 Custom Item
18679 \family default
18680 ) and set as 
18681 \begin_inset Flex Noun
18682 status collapsed
18683
18684 \begin_layout Plain Layout
18685 \SpecialChar TeX
18686  Code
18687 \end_layout
18688
18689 \end_inset
18690
18691 .
18692  For example, this item was started with 
18693 \begin_inset Flex Code
18694 status collapsed
18695
18696 \begin_layout Plain Layout
18697
18698 \backslash
18699 (
18700 \backslash
18701 star
18702 \backslash
18703 )
18704 \end_layout
18705
18706 \end_inset
18707
18708 .
18709 \end_layout
18710
18711 \begin_layout Plain Layout
18712 \begin_inset ERT
18713 status open
18714
18715 \begin_layout Plain Layout
18716
18717
18718 \backslash
18719 renewcommand
18720 \backslash
18721 labelitemi[0]{
18722 \backslash
18723 savelabelitemi}
18724 \end_layout
18725
18726 \end_inset
18727
18728
18729 \end_layout
18730
18731 \begin_layout Plain Layout
18732 You'll also need to revert the labelitem back to its previous setting for
18733  the global bullet shape settings to remain in effect.
18734  The way used here was:
18735 \end_layout
18736
18737 \begin_layout LyX-Code
18738
18739 \backslash
18740 renewcommand
18741 \backslash
18742 labelitemi[0]{
18743 \backslash
18744 savelabelitemi}
18745 \end_layout
18746
18747 \end_inset
18748
18749
18750 \end_layout
18751
18752 \begin_layout Chapter
18753 Supplemental Tools
18754 \end_layout
18755
18756 \begin_layout Section
18757 Multipart Documents
18758 \end_layout
18759
18760 \begin_layout Subsection
18761 General Operation
18762 \end_layout
18763
18764 \begin_layout Standard
18765 When you are working on a large file with many sections, it is often convenient
18766  to break up the document into several files, or perhaps you have something
18767  where a table may change from time to time, but the preceding text does
18768  not.
18769  In these cases, you should seriously consider using multipart documents.
18770  For example, scientific papers often have five major sections: the introduction
18771 , observations, results, discussion, and conclusion.
18772  Each of these could be its own separate \SpecialChar LyX
18773  file, with one 
18774 \begin_inset Quotes eld
18775 \end_inset
18776
18777 master
18778 \begin_inset Quotes erd
18779 \end_inset
18780
18781  file which contains the title, authors, abstract, references, etc., plus
18782  the five included files.
18783  It is important to note that each of these files is a full \SpecialChar LyX
18784  file which
18785  can be formatted and printed on its own, as well as included in a master
18786  file.
18787  Each of these files must have the same document class, however—don't attempt
18788  to mix book classes with article classes.
18789  You may also include \SpecialChar LaTeX
18790  files; however, these files must not have their own
18791  preamble (i.
18792 \begin_inset space \thinspace{}
18793 \end_inset
18794
18795 e.
18796 \begin_inset space \space{}
18797 \end_inset
18798
18799 everything up to and including the 
18800 \begin_inset Flex Code
18801 status collapsed
18802
18803 \begin_layout Plain Layout
18804
18805 \backslash
18806 begin{document}
18807 \end_layout
18808
18809 \end_inset
18810
18811  line as well as the 
18812 \begin_inset Flex Code
18813 status collapsed
18814
18815 \begin_layout Plain Layout
18816
18817 \backslash
18818 end{document}
18819 \end_layout
18820
18821 \end_inset
18822
18823  line must be deleted) or else errors will be generated when you try to
18824  make a DVI file.
18825 \end_layout
18826
18827 \begin_layout Standard
18828 \SpecialChar LyX
18829  allows you to include files quite easily with 
18830 \begin_inset Flex Noun
18831 status collapsed
18832
18833 \begin_layout Plain Layout
18834 Insert\SpecialChar menuseparator
18835 Child
18836 \begin_inset space ~
18837 \end_inset
18838
18839 Document
18840 \end_layout
18841
18842 \end_inset
18843
18844 .
18845  When you click on this selection a small box is inserted into the file
18846  at the current cursor location.
18847  Clicking on the box raises a dialog which allows you to select the file
18848  to be included, and the method of its inclusion.
18849  
18850 \end_layout
18851
18852 \begin_layout Standard
18853 The file selection box should by now be obvious.
18854  The three inclusion methods are 
18855 \begin_inset Quotes eld
18856 \end_inset
18857
18858 include
18859 \begin_inset Quotes erd
18860 \end_inset
18861
18862
18863 \begin_inset Quotes eld
18864 \end_inset
18865
18866 input
18867 \begin_inset Quotes erd
18868 \end_inset
18869
18870 , and 
18871 \begin_inset Quotes eld
18872 \end_inset
18873
18874 verbatim
18875 \begin_inset Quotes erd
18876 \end_inset
18877
18878 .
18879  The methods 
18880 \begin_inset Quotes eld
18881 \end_inset
18882
18883 include
18884 \begin_inset Quotes erd
18885 \end_inset
18886
18887  and 
18888 \begin_inset Quotes eld
18889 \end_inset
18890
18891 input
18892 \begin_inset Quotes erd
18893 \end_inset
18894
18895  are similar in many ways, but there are also some notable differences:
18896 \end_layout
18897
18898 \begin_layout Enumerate
18899 Files that are 
18900 \begin_inset Quotes eld
18901 \end_inset
18902
18903 included
18904 \begin_inset Quotes erd
18905 \end_inset
18906
18907  are typeset beginning on a new page, while files that are 
18908 \begin_inset Quotes eld
18909 \end_inset
18910
18911 inputted
18912 \begin_inset Quotes erd
18913 \end_inset
18914
18915  are typeset starting on the current page.
18916 \end_layout
18917
18918 \begin_layout Enumerate
18919 \begin_inset Quotes eld
18920 \end_inset
18921
18922 Included
18923 \begin_inset Quotes erd
18924 \end_inset
18925
18926  files cannot themselves 
18927 \begin_inset Quotes eld
18928 \end_inset
18929
18930 include
18931 \begin_inset Quotes erd
18932 \end_inset
18933
18934  further files (
18935 \begin_inset Quotes eld
18936 \end_inset
18937
18938 grandchilds
18939 \begin_inset Quotes erd
18940 \end_inset
18941
18942 ).
18943  With 
18944 \begin_inset Quotes eld
18945 \end_inset
18946
18947 input
18948 \begin_inset Quotes erd
18949 \end_inset
18950
18951 , on the other hand, infinite sub-inputting is possible.
18952 \end_layout
18953
18954 \begin_layout Enumerate
18955 \begin_inset Quotes eld
18956 \end_inset
18957
18958 Include
18959 \begin_inset Quotes erd
18960 \end_inset
18961
18962  allow for the output of only selected 
18963 \begin_inset Quotes eld
18964 \end_inset
18965
18966 included
18967 \begin_inset Quotes erd
18968 \end_inset
18969
18970  files, while maintaining the actual counters (pagination etc.) and references
18971  (please refer to the section 
18972 \emph on
18973 Child
18974 \begin_inset space ~
18975 \end_inset
18976
18977 Documents
18978 \emph default
18979  of the 
18980 \emph on
18981 Embedded
18982 \begin_inset space ~
18983 \end_inset
18984
18985 Objects
18986 \emph default
18987  manual for details).
18988 \end_layout
18989
18990 \begin_layout Standard
18991 Hence, 
18992 \begin_inset Quotes eld
18993 \end_inset
18994
18995 include
18996 \begin_inset Quotes erd
18997 \end_inset
18998
18999  is the preferred method for chapters that are outsourced to child documents,
19000  while 
19001 \begin_inset Quotes eld
19002 \end_inset
19003
19004 input
19005 \begin_inset Quotes erd
19006 \end_inset
19007
19008  is more suitable for arbitrary file inheritance.
19009 \end_layout
19010
19011 \begin_layout Standard
19012
19013 \begin_inset Quotes eld
19014 \end_inset
19015
19016 verbatim
19017 \begin_inset Quotes erd
19018 \end_inset
19019
19020  included file allows you to include a file typeset exactly as it appears
19021  in the file, i.
19022 \begin_inset space \thinspace{}
19023 \end_inset
19024
19025 e.
19026 \begin_inset space \space{}
19027 \end_inset
19028
19029 in 
19030 \begin_inset Flex Code
19031 status collapsed
19032
19033 \begin_layout Plain Layout
19034 verbatim
19035 \end_layout
19036
19037 \end_inset
19038
19039  mode, with the characters set in a fixed-width typewriter font.
19040  Normally, spaces in this file are invisible, though two consecutive spaces
19041  are conserved, unlike \SpecialChar LyX
19042 's normal treatment of spaces.
19043  However, setting the 
19044 \begin_inset Flex Noun
19045 status collapsed
19046
19047 \begin_layout Plain Layout
19048 Mark
19049 \begin_inset space ~
19050 \end_inset
19051
19052 spaces
19053 \begin_inset space ~
19054 \end_inset
19055
19056 in
19057 \begin_inset space ~
19058 \end_inset
19059
19060 output
19061 \end_layout
19062
19063 \end_inset
19064
19065  checkbox typesets a mark to unambiguously define the presence of a space.
19066  
19067 \end_layout
19068
19069 \begin_layout Standard
19070 Generally, the master file is converted into a full \SpecialChar LaTeX
19071  file before typesetting,
19072  while the included files are converted to \SpecialChar LaTeX
19073  files that do not have all the
19074  preamble information.
19075 \end_layout
19076
19077 \begin_layout Subsection
19078 Cross-References Between Files
19079 \end_layout
19080
19081 \begin_layout Standard
19082 \begin_inset Box Shadowbox
19083 position "t"
19084 hor_pos "c"
19085 has_inner_box 1
19086 inner_pos "t"
19087 use_parbox 0
19088 use_makebox 0
19089 width "100col%"
19090 special "none"
19091 height "1in"
19092 height_special "totalheight"
19093 thickness "0.4pt"
19094 separation "3pt"
19095 shadowsize "4pt"
19096 framecolor "black"
19097 backgroundcolor "none"
19098 status open
19099
19100 \begin_layout Plain Layout
19101 This section is somewhat out of date.
19102  Need to describe default master documents and how children are opened when
19103  the master is.
19104  [[FIXME]]
19105 \end_layout
19106
19107 \end_inset
19108
19109
19110 \end_layout
19111
19112 \begin_layout Standard
19113 It is possible to set up cross-references between the different files.
19114  First, open all the files in question: let's call them A and B in a two
19115  file example, where B is included in A.
19116  Let's say you insert a label in A, then want to reference it in B.
19117  Open the cross-reference dialog whilst in document B, and you can select
19118  the 
19119 \begin_inset Quotes eld
19120 \end_inset
19121
19122 buffer
19123 \begin_inset Quotes erd
19124 \end_inset
19125
19126  to use.
19127 \end_layout
19128
19129 \begin_layout Subsection
19130 Bibliography Lists in all Subdocuments
19131 \end_layout
19132
19133 \begin_layout Standard
19134 If you work with child documents, you might want to have only one main bibliogra
19135 phy at the end, but still be able to have a selected bibliography for the
19136  child if you output it on its own.
19137  Here is how to achieve this.
19138 \end_layout
19139
19140 \begin_layout Standard
19141 For the main document, you just insert a bibliography inset at the place
19142  where the main bibliography has to appear (within the master file or within
19143  a child).
19144  If the bibliography inset is in the master file, the references will be
19145  inherited by all children, so they are available in the citation dialog
19146  within each child.
19147 \end_layout
19148
19149 \begin_layout Standard
19150 For child-specific bibliographies, insert bibliography insets within the
19151  child documents, at the place where the bibliography should appear when
19152  the child is compiled separately.
19153  However, the trick is to insert them into a branch (
19154 \family sans
19155 Insert\SpecialChar menuseparator
19156 Branch\SpecialChar menuseparator
19157 Insert New Branch...
19158 \family default
19159 ), e.
19160 \begin_inset space \thinspace{}
19161 \end_inset
19162
19163 g.
19164  called 
19165 \begin_inset Quotes eld
19166 \end_inset
19167
19168 Childonly
19169 \begin_inset Quotes erd
19170 \end_inset
19171
19172 .
19173  Within the children, activate the branch (
19174 \family sans
19175 Document\SpecialChar menuseparator
19176 Settings...\SpecialChar menuseparator
19177 Branches
19178 \family default
19179 ).
19180  Within the master, deactivate the branch (
19181 \family sans
19182 Document\SpecialChar menuseparator
19183 Settings...\SpecialChar menuseparator
19184 Branches
19185 \family default
19186 ).
19187  Now the child's bibliography will be ignored by the master, but considered
19188  by the child.
19189 \end_layout
19190
19191 \begin_layout Standard
19192 If you need multiple bibliographies (e.
19193 \begin_inset space \thinspace{}
19194 \end_inset
19195
19196 g., one per child in the 
19197 \emph on
19198 main document
19199 \emph default
19200 ), please refer to sec.
19201 \begin_inset space ~
19202 \end_inset
19203
19204
19205 \begin_inset CommandInset ref
19206 LatexCommand ref
19207 reference "subsec:Multiple-Bibliographies"
19208
19209 \end_inset
19210
19211 .
19212 \end_layout
19213
19214 \begin_layout Section
19215 \SpecialChar LyX
19216  Archives
19217 \end_layout
19218
19219 \begin_layout Standard
19220 Users sometimes need to be able to 
19221 \begin_inset Quotes eld
19222 \end_inset
19223
19224 bundle
19225 \begin_inset Quotes erd
19226 \end_inset
19227
19228  a \SpecialChar LyX
19229  file together with all the images (and other files) on which it depends,
19230  either for sending to a publisher or for sharing with a co-author.
19231  \SpecialChar LyX
19232  includes a Python script (
19233 \begin_inset Flex Code
19234 status collapsed
19235
19236 \begin_layout Plain Layout
19237 lyxpak.py
19238 \end_layout
19239
19240 \end_inset
19241
19242 ) that automates this process.
19243  To use it, you must have either the 
19244 \begin_inset Flex Code
19245 status collapsed
19246
19247 \begin_layout Plain Layout
19248 zipfile
19249 \end_layout
19250
19251 \end_inset
19252
19253  or 
19254 \begin_inset Flex Code
19255 status collapsed
19256
19257 \begin_layout Plain Layout
19258 tarfile
19259 \end_layout
19260
19261 \end_inset
19262
19263  python modules installed on your system.
19264  By default, the script prefers the 
19265 \begin_inset Flex Code
19266 status collapsed
19267
19268 \begin_layout Plain Layout
19269 gzip
19270 \end_layout
19271
19272 \end_inset
19273
19274 -compressed 
19275 \begin_inset Flex Code
19276 status collapsed
19277
19278 \begin_layout Plain Layout
19279 tar
19280 \end_layout
19281
19282 \end_inset
19283
19284  format on Unix-like systems and the 
19285 \begin_inset Flex Code
19286 status collapsed
19287
19288 \begin_layout Plain Layout
19289 zip
19290 \end_layout
19291
19292 \end_inset
19293
19294  format on Windows.
19295 \end_layout
19296
19297 \begin_layout Standard
19298 \SpecialChar LyX
19299 's configuration process will set the script up to export a `\SpecialChar LyX
19300  Archive',
19301  and this format will then be available under 
19302 \begin_inset Flex Code
19303 status collapsed
19304
19305 \begin_layout Plain Layout
19306 File\SpecialChar menuseparator
19307 Export
19308 \end_layout
19309
19310 \end_inset
19311
19312 .
19313 \end_layout
19314
19315 \begin_layout Standard
19316 Independently of the platform, the generation of a particular archive format
19317  can be forced by adding either the 
19318 \begin_inset Flex Code
19319 status collapsed
19320
19321 \begin_layout Plain Layout
19322 -t
19323 \end_layout
19324
19325 \end_inset
19326
19327  (for the 
19328 \begin_inset Flex Code
19329 status collapsed
19330
19331 \begin_layout Plain Layout
19332 tar
19333 \end_layout
19334
19335 \end_inset
19336
19337  format) or 
19338 \begin_inset Flex Code
19339 status collapsed
19340
19341 \begin_layout Plain Layout
19342 -z
19343 \end_layout
19344
19345 \end_inset
19346
19347  (for the 
19348 \begin_inset Flex Code
19349 status collapsed
19350
19351 \begin_layout Plain Layout
19352 zip
19353 \end_layout
19354
19355 \end_inset
19356
19357  format) switch to the 
19358 \begin_inset Flex Code
19359 status collapsed
19360
19361 \begin_layout Plain Layout
19362 \SpecialChar LyX
19363 \SpecialChar menuseparator
19364 \SpecialChar LyX
19365  Archive
19366 \end_layout
19367
19368 \end_inset
19369
19370  converter in 
19371 \begin_inset Flex Code
19372 status collapsed
19373
19374 \begin_layout Plain Layout
19375 Tools\SpecialChar menuseparator
19376 Preferences\SpecialChar menuseparator
19377 File Handling\SpecialChar menuseparator
19378 Converters
19379 \end_layout
19380
19381 \end_inset
19382
19383 .
19384  (Make sure you add the switch after the script name, not before it.)
19385 \end_layout
19386
19387 \begin_layout Section
19388 Fancy Headers and Footers
19389 \end_layout
19390
19391 \begin_layout Standard
19392 The default page layout is rather plain; for an 
19393 \begin_inset Flex Code
19394 status collapsed
19395
19396 \begin_layout Plain Layout
19397 article
19398 \end_layout
19399
19400 \end_inset
19401
19402  document class, all you get is a centered page number at the bottom of
19403  the page.
19404  This document uses KOMA-script's book class, so it appears to be a bit
19405  fancier.
19406  But to really put on a show, you need to set the document page style to
19407  
19408 \begin_inset Quotes eld
19409 \end_inset
19410
19411 fancy
19412 \begin_inset Quotes erd
19413 \end_inset
19414
19415 , as mentioned in the 
19416 \emph on
19417 User Guide
19418 \emph default
19419 .
19420  This section describes the \SpecialChar LaTeX
19421  code you need to insert in your \SpecialChar LaTeX
19422  preamble in
19423  order to get the desired effects.
19424 \end_layout
19425
19426 \begin_layout Standard
19427 For more information on fancy headers, see the 
19428 \begin_inset Flex Code
19429 status collapsed
19430
19431 \begin_layout Plain Layout
19432 fancyhdr
19433 \end_layout
19434
19435 \end_inset
19436
19437  package documentation.
19438  (
19439 \begin_inset Flex URL
19440 status collapsed
19441
19442 \begin_layout Plain Layout
19443
19444 https://www.ctan.org/tex-archive/help/Catalogue/entries/fancyhdr.html
19445 \end_layout
19446
19447 \end_inset
19448
19449 )
19450 \end_layout
19451
19452 \begin_layout Standard
19453 The page header is divided into three fields, not surprisingly labeled 
19454 \begin_inset Quotes eld
19455 \end_inset
19456
19457 left
19458 \begin_inset Quotes erd
19459 \end_inset
19460
19461
19462 \begin_inset Quotes eld
19463 \end_inset
19464
19465 center
19466 \begin_inset Quotes erd
19467 \end_inset
19468
19469 , and 
19470 \begin_inset Quotes eld
19471 \end_inset
19472
19473 right
19474 \begin_inset Quotes erd
19475 \end_inset
19476
19477 .
19478  The footer is also divided into these three fields.
19479  The \SpecialChar LaTeX
19480  commands to set these fields in the simplest manner are 
19481 \begin_inset Flex Code
19482 status collapsed
19483
19484 \begin_layout Plain Layout
19485
19486 \backslash
19487 lhead
19488 \end_layout
19489
19490 \end_inset
19491
19492
19493 \begin_inset Flex Code
19494 status collapsed
19495
19496 \begin_layout Plain Layout
19497
19498 \backslash
19499 chead
19500 \end_layout
19501
19502 \end_inset
19503
19504
19505 \begin_inset Flex Code
19506 status collapsed
19507
19508 \begin_layout Plain Layout
19509
19510 \backslash
19511 rhead
19512 \end_layout
19513
19514 \end_inset
19515
19516
19517 \begin_inset Flex Code
19518 status collapsed
19519
19520 \begin_layout Plain Layout
19521
19522 \backslash
19523 lfoot
19524 \end_layout
19525
19526 \end_inset
19527
19528 , etc.
19529  Suppose you wish to put your name in the upper left hand corner of each
19530  page.
19531  Simply insert the following command in the preamble: 
19532 \end_layout
19533
19534 \begin_layout Standard
19535
19536 \family typewriter
19537
19538 \backslash
19539 lhead{John Q.
19540  DocWriter}
19541 \end_layout
19542
19543 \begin_layout Standard
19544 You will now see your name in the upper left.
19545  If a field has a default entry that you would like to get rid of (often
19546  the page number appears in the central footer) simply include a command
19547  with a blank argument, e.
19548 \begin_inset space \thinspace{}
19549 \end_inset
19550
19551 g.:
19552 \end_layout
19553
19554 \begin_layout Standard
19555
19556 \family typewriter
19557
19558 \backslash
19559 cfoot{}
19560 \end_layout
19561
19562 \begin_layout Standard
19563 Let's get really fancy: lets put the section number with the word 
19564 \begin_inset Quotes eld
19565 \end_inset
19566
19567 Section
19568 \begin_inset Quotes erd
19569 \end_inset
19570
19571  (e.
19572 \begin_inset space \thinspace{}
19573 \end_inset
19574
19575 g.
19576 \begin_inset space \space{}
19577 \end_inset
19578
19579 Section 3) in the upper left, the page number (e.
19580 \begin_inset space \thinspace{}
19581 \end_inset
19582
19583 g.
19584 \begin_inset space \space{}
19585 \end_inset
19586
19587 Page 4) in the upper right, your name in the lower left, and the date in
19588  the lower right.
19589  The following commands should now appear in the preamble:
19590 \end_layout
19591
19592 \begin_layout Standard
19593
19594 \family typewriter
19595
19596 \backslash
19597 lhead{Section 
19598 \backslash
19599 thesection}
19600 \end_layout
19601
19602 \begin_layout Standard
19603
19604 \family typewriter
19605
19606 \backslash
19607 chead{}
19608 \end_layout
19609
19610 \begin_layout Standard
19611
19612 \family typewriter
19613
19614 \backslash
19615 rhead{Page 
19616 \backslash
19617 thepage}
19618 \end_layout
19619
19620 \begin_layout Standard
19621
19622 \family typewriter
19623
19624 \backslash
19625 lfoot{John Q.
19626  DocWriter}
19627 \end_layout
19628
19629 \begin_layout Standard
19630
19631 \family typewriter
19632
19633 \backslash
19634 cfoot{}
19635 \end_layout
19636
19637 \begin_layout Standard
19638
19639 \family typewriter
19640
19641 \backslash
19642 rfoot{
19643 \backslash
19644 today}
19645 \end_layout
19646
19647 \begin_layout Standard
19648 The commands 
19649 \begin_inset Flex Code
19650 status collapsed
19651
19652 \begin_layout Plain Layout
19653
19654 \backslash
19655 thesection
19656 \end_layout
19657
19658 \end_inset
19659
19660  and 
19661 \begin_inset Flex Code
19662 status collapsed
19663
19664 \begin_layout Plain Layout
19665
19666 \backslash
19667 thepage
19668 \end_layout
19669
19670 \end_inset
19671
19672  access \SpecialChar LaTeX
19673 's section and page counters, and so print out the current section
19674  and page number.
19675  
19676 \begin_inset Flex Code
19677 status collapsed
19678
19679 \begin_layout Plain Layout
19680
19681 \backslash
19682 today
19683 \end_layout
19684
19685 \end_inset
19686
19687  simply prints out today's date.
19688 \end_layout
19689
19690 \begin_layout Standard
19691 The thicknesses of the horizontal rules drawn beneath the header and above
19692  the footer can also be modified.
19693  If you don't want one of the rules, set its thickness to 0.
19694  The header rule has a default thickness of 0.4pt, the footer rule is 0pt.
19695  Use commands
19696 \family typewriter
19697  
19698 \family default
19699 like 
19700 \begin_inset Flex Code
19701 status collapsed
19702
19703 \begin_layout Plain Layout
19704
19705 \backslash
19706 renewcommand{
19707 \backslash
19708 headrulewidth}{0.4pt}
19709 \end_layout
19710
19711 \end_inset
19712
19713  and 
19714 \begin_inset Flex Code
19715 status collapsed
19716
19717 \begin_layout Plain Layout
19718
19719 \backslash
19720 renewcommand{
19721 \backslash
19722 footrulewidth}{0.4pt}
19723 \end_layout
19724
19725 \end_inset
19726
19727  to set the thicknesses.
19728 \end_layout
19729
19730 \begin_layout Standard
19731 You can switch the header/footer settings on and off for individual pages
19732  using commands like 
19733 \begin_inset Flex Code
19734 status collapsed
19735
19736 \begin_layout Plain Layout
19737
19738 \backslash
19739 thispagestyle{empty}
19740 \end_layout
19741
19742 \end_inset
19743
19744
19745 \begin_inset Flex Code
19746 status collapsed
19747
19748 \begin_layout Plain Layout
19749
19750 \backslash
19751 thispagestyle{plain}
19752 \end_layout
19753
19754 \end_inset
19755
19756 , and 
19757 \begin_inset Flex Code
19758 status collapsed
19759
19760 \begin_layout Plain Layout
19761
19762 \backslash
19763 thispagestyle{fancy}
19764 \end_layout
19765
19766 \end_inset
19767
19768 .
19769  Simply insert them in the text on the page you want changed and mark them
19770  as \SpecialChar TeX
19771  code.
19772  In fact, title pages are marked as plain by default, while following pages
19773  are marked fancy when using the global fancy setting.
19774 \end_layout
19775
19776 \begin_layout Standard
19777 As a final example, it is possible to include an image in the header or
19778  footer.
19779  Suppose you want to put a company logo in the upper lefthand corner.
19780  You might try something like
19781 \end_layout
19782
19783 \begin_layout Standard
19784
19785 \family typewriter
19786
19787 \backslash
19788 lhead{
19789 \backslash
19790 resizebox{1in}{!}{
19791 \backslash
19792 includegraphics{logo.eps}}}
19793 \end_layout
19794
19795 \begin_layout Standard
19796 \noindent
19797 (you may need to preface this with 
19798 \begin_inset Flex Code
19799 status collapsed
19800
19801 \begin_layout Plain Layout
19802
19803 \backslash
19804 usepackage{graphics}
19805 \end_layout
19806
19807 \end_inset
19808
19809  if you don't include graphics elsewhere in your document).
19810 \end_layout
19811
19812 \begin_layout Chapter
19813 \SpecialChar LyX
19814  and the World Wide Web
19815 \end_layout
19816
19817 \begin_layout Standard
19818 \SpecialChar LyX
19819  has long supported the export of documents to various web-friendly formats,
19820  such as HTML.
19821  Before version 2.0, however, HTML export was always accomplished by the
19822  use of external converters.
19823 \begin_inset Foot
19824 status collapsed
19825
19826 \begin_layout Plain Layout
19827 For details on the use of external converters with \SpecialChar LyX
19828 , see the 
19829 \emph on
19830 Converters
19831 \emph default
19832  section of the Customization manual.
19833 \end_layout
19834
19835 \end_inset
19836
19837  These fall into two large groups: there are converters that use \SpecialChar LaTeX
19838  as an
19839  intermediate format, such as 
19840 \begin_inset Flex Code
19841 status collapsed
19842
19843 \begin_layout Plain Layout
19844 htlatex
19845 \end_layout
19846
19847 \end_inset
19848
19849
19850 \begin_inset Flex Code
19851 status collapsed
19852
19853 \begin_layout Plain Layout
19854 html2latex
19855 \end_layout
19856
19857 \end_inset
19858
19859 , and 
19860 \begin_inset Flex Code
19861 status collapsed
19862
19863 \begin_layout Plain Layout
19864 plastex
19865 \end_layout
19866
19867 \end_inset
19868
19869 , relying upon \SpecialChar LyX
19870  to produce the \SpecialChar LaTeX
19871 ; and there is a converter that works directly
19872  on \SpecialChar LyX
19873  files, 
19874 \begin_inset Flex Code
19875 status collapsed
19876
19877 \begin_layout Plain Layout
19878 e\SpecialChar LyX
19879 er
19880 \end_layout
19881
19882 \end_inset
19883
19884 .
19885  All of these have different advantages and disadvantages.
19886  
19887 \end_layout
19888
19889 \begin_layout Standard
19890 The \SpecialChar LaTeX
19891 -based converters have the advantage that, in principle, they know everythin
19892 g about the exported document that \SpecialChar LaTeX
19893  does.
19894  Such converters do not care, for example, if a certain block of code was
19895  produced by \SpecialChar LyX
19896  or was Evil Red Text.
19897  These converters know about 
19898 \begin_inset Flex Code
19899 status collapsed
19900
19901 \begin_layout Plain Layout
19902 aux
19903 \end_layout
19904
19905 \end_inset
19906
19907  files, counters, and references, and can often make use of the 
19908 \begin_inset Flex Code
19909 status collapsed
19910
19911 \begin_layout Plain Layout
19912 bbl
19913 \end_layout
19914
19915 \end_inset
19916
19917  files generated by Bib\SpecialChar TeX
19918 .
19919  On the other hand, \SpecialChar LaTeX
19920  is a very hard language to parse—it is sometimes said
19921  that only \SpecialChar TeX
19922  itself understands \SpecialChar TeX
19923 —and \SpecialChar LaTeX
19924 -based converters will often choke on
19925  what seem to be quite simple constructs; complex ones can throw them completely
19926 , and as of this writing, for example, the 
19927 \emph on
19928 Embedded Objects
19929 \emph default
19930  manual will not export with 
19931 \begin_inset Flex Code
19932 status collapsed
19933
19934 \begin_layout Plain Layout
19935 htlatex
19936 \end_layout
19937
19938 \end_inset
19939
19940 , though the others will.
19941  The other issue concerns how math is handled.
19942  These converters typically convert the formulae into little pictures that
19943  are then linked from the HTML document.
19944  Since these are actually generated by \SpecialChar LaTeX
19945 , they are accurate.
19946  But they do not scale well, and just getting them to look as if they are
19947  actually meant to be in your document—so that the font sizes seem to be
19948  roughly the same—can be a challenge.
19949 \end_layout
19950
19951 \begin_layout Standard
19952 Alex Fernandez's 
19953 \begin_inset Flex Code
19954 status collapsed
19955
19956 \begin_layout Plain Layout
19957 e\SpecialChar LyX
19958 er
19959 \end_layout
19960
19961 \end_inset
19962
19963  (
19964 \begin_inset CommandInset href
19965 LatexCommand href
19966 name "http://pinchito.es/elyxer/"
19967 target "http://pinchito.es/elyxer/"
19968 literal "false"
19969
19970 \end_inset
19971
19972 ) solves some of these problems.
19973  In particular, the formulae it produces scale perfectly, since it renders
19974  math using a combination of HTML and CSS rather than converting the formulae
19975  to images.
19976  But even moderately complex formula are rendered less well than with 
19977 \begin_inset Flex Code
19978 status collapsed
19979
19980 \begin_layout Plain Layout
19981 htlatex
19982 \end_layout
19983
19984 \end_inset
19985
19986 ; this reflects the limitations of HTML.
19987 \begin_inset Foot
19988 status collapsed
19989
19990 \begin_layout Plain Layout
19991 That said, 
19992 \begin_inset Flex Code
19993 status collapsed
19994
19995 \begin_layout Plain Layout
19996 e\SpecialChar LyX
19997 er
19998 \end_layout
19999
20000 \end_inset
20001
20002  can also use jsMath and MathJax for equations, but this setting is only
20003  available globally and requires one to have access to a server that runs
20004  the backend.
20005 \end_layout
20006
20007 \end_inset
20008
20009  More importantly (as of version 1.1.1, at least), 
20010 \begin_inset Flex Code
20011 status collapsed
20012
20013 \begin_layout Plain Layout
20014 e\SpecialChar LyX
20015 er
20016 \end_layout
20017
20018 \end_inset
20019
20020  has limited support for math macros and no support for user-defined paragraph
20021  or character styles.
20022  These limitations make 
20023 \begin_inset Flex Code
20024 status collapsed
20025
20026 \begin_layout Plain Layout
20027 e\SpecialChar LyX
20028 er
20029 \end_layout
20030
20031 \end_inset
20032
20033  unsuitable for many of the documents \SpecialChar LyX
20034  users produce.
20035  In principle, of course, these problems could be solved, but the \SpecialChar LyX
20036  developers
20037  have decided to follow a different path and have made \SpecialChar LyX
20038  itself capable of
20039  writing XHTML, just as it is capable of writing \SpecialChar LaTeX
20040 , DocBook, and plaintext.
20041 \end_layout
20042
20043 \begin_layout Standard
20044 As of this writing, XHTML output remains under development and should probably
20045  be regarded as 
20046 \begin_inset Quotes eld
20047 \end_inset
20048
20049 experimental
20050 \begin_inset Quotes erd
20051 \end_inset
20052
20053 .
20054 \begin_inset Foot
20055 status collapsed
20056
20057 \begin_layout Plain Layout
20058 The file 
20059 \begin_inset Flex Code
20060 status collapsed
20061
20062 \begin_layout Plain Layout
20063 development/HTML/HTML.notes
20064 \end_layout
20065
20066 \end_inset
20067
20068 , which can be found in the \SpecialChar LyX
20069  source tree or 
20070 \begin_inset CommandInset href
20071 LatexCommand href
20072 name "accessed online"
20073 target "https://www.lyx.org/trac/browser/lyxgit/development/HTML/HTML.notes?rev=master"
20074 literal "false"
20075
20076 \end_inset
20077
20078 , usually contains up-to-date information about the state of XHTML output.
20079  See also the list of XHTML bugs on 
20080 \begin_inset CommandInset href
20081 LatexCommand href
20082 name "the bug tracker"
20083 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"
20084 literal "false"
20085
20086 \end_inset
20087
20088 .
20089 \end_layout
20090
20091 \end_inset
20092
20093  Still, the developers have chosen this approach because it has several
20094  potential advantages over the other two.
20095 \end_layout
20096
20097 \begin_layout Standard
20098 These advantages are primarily due to the fact that the XHTML output routines,
20099  since they are part of \SpecialChar LyX
20100 , know everything \SpecialChar LyX
20101  knows about the document being
20102  exported.
20103 \begin_inset Foot
20104 status collapsed
20105
20106 \begin_layout Plain Layout
20107 Another advantage is that, since these routines are internal to \SpecialChar LyX
20108 , they are
20109  immune to changes in \SpecialChar LyX
20110 's file format, or to changes in the semantics of
20111  existing insets.
20112 \end_layout
20113
20114 \end_inset
20115
20116  So they know about the table of contents (as displayed in the outline),
20117  about the counters associated with different paragraph styles, and about
20118  user-defined styles.
20119  The XHTML output routines know what \SpecialChar LyX
20120  knows about internationalization,
20121  too, so they will output 
20122 \begin_inset Quotes eld
20123 \end_inset
20124
20125 Chapter 1
20126 \begin_inset Quotes erd
20127 \end_inset
20128
20129  or 
20130 \begin_inset Quotes eld
20131 \end_inset
20132
20133
20134 \lang ngerman
20135 Kapitel
20136 \lang english
20137  1
20138 \begin_inset Quotes erd
20139 \end_inset
20140
20141 , depending upon the language in effect at the time.
20142  
20143 \end_layout
20144
20145 \begin_layout Standard
20146 Quite generally, the output routines know what \SpecialChar LyX
20147  knows about document layout,
20148  that is, about how the document is to be rendered on screen.
20149  We use this information when we output the document as XHTML.
20150  In particular, \SpecialChar LyX
20151  
20152 \emph on
20153 automatically
20154 \emph default
20155  generates CSS style information corresponding to the layout information
20156  it uses to render the document on screen: if section headings are supposed
20157  to be sans-serif and bold as seen in \SpecialChar LyX
20158 , then (by default) they will be sans-seri
20159 f and bold when viewed in a web browser, too.
20160  And this is true not just for pre-defined styles, like Section, but for
20161  any style, including user-defined styles.
20162  Indeed, the XHTML output routines make no distinction between user-defined
20163  paragraph and 
20164 \change_deleted 244031559 1603876931
20165 character
20166 \change_inserted 244031559 1603876940
20167 text
20168 \change_unchanged
20169  styles and \SpecialChar LyX
20170 's own pre-defined styles: in each case, everything \SpecialChar LyX
20171  knows about
20172  the styles is contained in the layout files.
20173  And much the same is true as regards pre-defined textual insets, such as
20174  footnotes, and various custom insets.
20175  
20176 \end_layout
20177
20178 \begin_layout Standard
20179 The result is that XHTML output can be customized and extended in exactly
20180  the same way \SpecialChar LaTeX
20181  output can be customized and extended: through layout files
20182  and modules.
20183  See chapter five of the 
20184 \emph on
20185 Customization 
20186 \emph default
20187 manual for the details.
20188 \end_layout
20189
20190 \begin_layout Standard
20191 The remainder of this chapter contains more detailed information on XHTML
20192  output, its limitations, and ways to work around those limitations.
20193 \end_layout
20194
20195 \begin_layout Section
20196 Math Output in XHTML
20197 \end_layout
20198
20199 \begin_layout Standard
20200 \SpecialChar LyX
20201  offers four choices for how math is rendered.
20202  These have various advantages and disadvantages:
20203 \end_layout
20204
20205 \begin_layout Itemize
20206 MathML
20207 \begin_inset Newline newline
20208 \end_inset
20209
20210 MathML is a dialect of XML designed specifically for mathematics on the
20211  web, and it typically renders very well in browsers that support it.
20212  The disadvantage is that not all browsers support MathML, and support is
20213  not complete even in the Gecko-based browsers, such as Firefox.
20214 \begin_inset Newline newline
20215 \end_inset
20216
20217 If \SpecialChar LyX
20218  is unable to render a formula as MathML—for example, if the formula
20219  uses the 
20220 \begin_inset Flex Code
20221 status collapsed
20222
20223 \begin_layout Plain Layout
20224 xymatrix
20225 \end_layout
20226
20227 \end_inset
20228
20229  package or ERT—then it will instead output the formula as an image.
20230  
20231 \end_layout
20232
20233 \begin_layout Itemize
20234 HTML
20235 \begin_inset Newline newline
20236 \end_inset
20237
20238 As mentioned above, 
20239 \begin_inset Flex Code
20240 status collapsed
20241
20242 \begin_layout Plain Layout
20243 elyxer
20244 \end_layout
20245
20246 \end_inset
20247
20248  outputs math as HTML, styled by CSS.
20249 \begin_inset Foot
20250 status collapsed
20251
20252 \begin_layout Plain Layout
20253 \SpecialChar LyX
20254  has borrowed some of the CSS for its HTML output from 
20255 \begin_inset Flex Code
20256 status collapsed
20257
20258 \begin_layout Plain Layout
20259 elyxer
20260 \end_layout
20261
20262 \end_inset
20263
20264 .
20265 \end_layout
20266
20267 \end_inset
20268
20269  For simple formulae, this can work quite well, though with more complicated
20270  formulae it tends to break down.
20271  Still, this method has the advantage that it is very widely supported and
20272  so it may be appropriate for documents that contain only a little, fairly
20273  simple math.
20274 \begin_inset Newline newline
20275 \end_inset
20276
20277 If Lyx is unable to render a formula as HTML—for example, if the formula
20278  uses the 
20279 \begin_inset Flex Code
20280 status collapsed
20281
20282 \begin_layout Plain Layout
20283 xymatrix
20284 \end_layout
20285
20286 \end_inset
20287
20288  package or ERT—then it will instead output the formula as an image.
20289  
20290 \end_layout
20291
20292 \begin_layout Itemize
20293 Images
20294 \begin_inset Newline newline
20295 \end_inset
20296
20297 Like 
20298 \begin_inset Flex Code
20299 status collapsed
20300
20301 \begin_layout Plain Layout
20302 htlatex
20303 \end_layout
20304
20305 \end_inset
20306
20307 , \SpecialChar LyX
20308  will output formulae as images, the very same images, in fact, that are
20309  used for instant preview.
20310 \begin_inset Foot
20311 status collapsed
20312
20313 \begin_layout Plain Layout
20314 Instant preview does 
20315 \emph on
20316 not 
20317 \emph default
20318 have to be on for images to be output, however.
20319 \end_layout
20320
20321 \end_inset
20322
20323  The advantage to this method is that the images are simply generated by
20324  \SpecialChar LaTeX
20325 , so they are very accurate.
20326  The disadvantage, as mentioned earlier, is that these are bitmapped images,
20327  so they do not scale terribly well, and one cannot copy them, etc.
20328 \begin_inset Newline newline
20329 \end_inset
20330
20331 The size of the images can be controlled by setting the 
20332 \begin_inset Quotes eld
20333 \end_inset
20334
20335 Math Images Scaling
20336 \begin_inset Quotes erd
20337 \end_inset
20338
20339  parameter under 
20340 \begin_inset Flex Noun
20341 status collapsed
20342
20343 \begin_layout Plain Layout
20344 Document\SpecialChar menuseparator
20345 Settings\SpecialChar menuseparator
20346 Formats
20347 \end_layout
20348
20349 \end_inset
20350
20351 .
20352 \begin_inset Foot
20353 status collapsed
20354
20355 \begin_layout Plain Layout
20356 For those who want to know, this controls the resolution of the image in
20357  dots per inch and is based upon a default of 75 dpi.
20358 \end_layout
20359
20360 \end_inset
20361
20362
20363 \begin_inset Newline newline
20364 \end_inset
20365
20366 If \SpecialChar LyX
20367  for some reason fails to create an image for a formula (e.g., if a required
20368  \SpecialChar LaTeX
20369  package is not installed), then it will fall back to outputing the raw
20370  \SpecialChar LaTeX
20371 .
20372 \end_layout
20373
20374 \begin_layout Itemize
20375 \SpecialChar LaTeX
20376
20377 \begin_inset Newline newline
20378 \end_inset
20379
20380 Finally, \SpecialChar LyX
20381  will happily output math as \SpecialChar LaTeX
20382 .
20383  As well as being the output of last resort, this method can be used with
20384  such tools as 
20385 \begin_inset CommandInset href
20386 LatexCommand href
20387 name "jsMath"
20388 target "http://www.math.union.edu/~dpvc/jsMath/"
20389 literal "false"
20390
20391 \end_inset
20392
20393 , which uses JavaScript to render \SpecialChar LaTeX
20394  embedded in HTML documents.
20395  \SpecialChar LyX
20396  wraps the \SpecialChar LaTeX
20397  in either a 
20398 \begin_inset Flex Code
20399 status collapsed
20400
20401 \begin_layout Plain Layout
20402 span
20403 \end_layout
20404
20405 \end_inset
20406
20407  (for inline formulas) or 
20408 \begin_inset Flex Code
20409 status collapsed
20410
20411 \begin_layout Plain Layout
20412 div
20413 \end_layout
20414
20415 \end_inset
20416
20417  (for displayed formulas) with 
20418 \begin_inset Flex Code
20419 status collapsed
20420
20421 \begin_layout Plain Layout
20422 class='math'
20423 \end_layout
20424
20425 \end_inset
20426
20427 , as is required for jsMath.
20428 \end_layout
20429
20430 \begin_layout Standard
20431 One of these output methods must be selected under 
20432 \begin_inset Flex Noun
20433 status collapsed
20434
20435 \begin_layout Plain Layout
20436 Document\SpecialChar menuseparator
20437 Settings\SpecialChar menuseparator
20438 Formats
20439 \end_layout
20440
20441 \end_inset
20442
20443 .
20444  By default, \SpecialChar LyX
20445  outputs MathML.
20446  This is a document-wide setting, therefore.
20447 \end_layout
20448
20449 \begin_layout Standard
20450 Eventually, \SpecialChar LyX
20451  will offer the user the option to select an alternate output
20452  method for a particular inset, say, one that isn't being rendered very
20453  well by MathML.
20454 \begin_inset Foot
20455 status collapsed
20456
20457 \begin_layout Plain Layout
20458 That said, since \SpecialChar LyX
20459  falls back to images if the inset contains ERT, then one
20460  can force output as an image by putting some harmless ERT into the math,
20461  for example: 
20462 \begin_inset Formula $a=b\relax$
20463 \end_inset
20464
20465 .
20466 \end_layout
20467
20468 \end_inset
20469
20470
20471 \end_layout
20472
20473 \begin_layout Section
20474 Bibliography and Citations
20475 \end_layout
20476
20477 \begin_layout Standard
20478 XHTML output fully supports bibliographies and citations.
20479  
20480 \end_layout
20481
20482 \begin_layout Standard
20483 Citation labels are generated by the same machinery that generates \SpecialChar LyX
20484 's on-screen
20485  labels, so the labels will look in the output much as they do in \SpecialChar LyX
20486 , though
20487  better.
20488  If you are using numerical citations, then \SpecialChar LyX
20489  will output numerical labels,
20490  such as [1] or [17], rather than simply showing the citation key in square
20491  brackets, as it does on-screen.
20492  If you are using author-year citations, then \SpecialChar LyX
20493  will add lowercase letters
20494  to the years, just as Bib\SpecialChar TeX
20495  does, if it finds more than one citation for
20496  a given author-year combination.
20497  The labels will be printed with the bibliography entries.
20498  Note that there is, at present, no way to customize the appearance of the
20499  labels, for example, to choose between square brackets and parentheses.
20500 \end_layout
20501
20502 \begin_layout Standard
20503 Bibliography output is handled by the same machinery that handles the presentati
20504 on of reference information in the citation dialog, so you will see in the
20505  XHTML output pretty much what you would see if you were to look at a given
20506  entry in the citation dialog.
20507  The formatting can be customized in your layout file or, preferably, in
20508  a module.
20509  See the 
20510 \emph on
20511 Customization
20512 \emph default
20513  manual for the details.
20514 \end_layout
20515
20516 \begin_layout Standard
20517 The main defect at present is that cross-referenced information is printed
20518  with every entry with which it is associated.
20519  So you can see things like this:
20520 \end_layout
20521
20522 \begin_layout Quote
20523 Jason Stanley, 
20524 \begin_inset Quotes eld
20525 \end_inset
20526
20527 Context and Logical Form
20528 \begin_inset Quotes erd
20529 \end_inset
20530
20531 , in 
20532 \emph on
20533 Language in Context: Selected Essays
20534 \emph default
20535  (Oxford: Oxford University Press, 2007), pp.
20536  30–68.
20537 \end_layout
20538
20539 \begin_layout Quote
20540 Jason Stanley, 
20541 \begin_inset Quotes eld
20542 \end_inset
20543
20544 Semantics in Context
20545 \begin_inset Quotes erd
20546 \end_inset
20547
20548 , in 
20549 \emph on
20550 Language in Context: Selected Essays
20551 \emph default
20552  (Oxford: Oxford University Press, 2007), pp.
20553  201–30.
20554 \end_layout
20555
20556 \begin_layout Standard
20557 This should be fixed before long.
20558 \end_layout
20559
20560 \begin_layout Standard
20561 There is no support at present for sectioned bibliographies.
20562  If you have multiple bibliographies, then \SpecialChar LyX
20563  will print the same bibliography
20564  over and over.
20565 \end_layout
20566
20567 \begin_layout Section
20568 Indexes
20569 \end_layout
20570
20571 \begin_layout Standard
20572 \SpecialChar LyX
20573  will happily export indexes as XHTML, but with certain limitations at the
20574  moment.
20575 \end_layout
20576
20577 \begin_layout Standard
20578 Index export will be most reliable when you do not attempt to use the fancy
20579  constructs that are described in the section on indexes in the 
20580 \emph on
20581 User's Guide
20582 \emph default
20583 .
20584 \begin_inset Foot
20585 status collapsed
20586
20587 \begin_layout Plain Layout
20588 The main issue here is that \SpecialChar LyX
20589  itself does not really handle these.
20590  It just lets you enter what you would have to enter in raw \SpecialChar LaTeX
20591 .
20592 \end_layout
20593
20594 \end_inset
20595
20596  We'll describe how they are handled using the subsection headings from
20597  that section.
20598 \end_layout
20599
20600 \begin_layout Itemize
20601 Grouping Index Entries (aka, sub-entries): \SpecialChar LyX
20602  makes an effort to support these,
20603  but the entries must be separated by 
20604 \begin_inset Quotes eld
20605 \end_inset
20606
20607  ! 
20608 \begin_inset Quotes erd
20609 \end_inset
20610
20611 , that is, there must be spaces around the exclamation point.
20612  This is because it is otherwise too difficult to check for escaped exclamation
20613  points, ones in math, and so forth.
20614 \end_layout
20615
20616 \begin_layout Itemize
20617 Page Ranges: There is no support at all for page ranges, since these make
20618  no sense with XHMTL.
20619  Instead, you will just get two index entries, one at either end.
20620 \end_layout
20621
20622 \begin_layout Itemize
20623 Cross-referencing: There is no support for cross-referencing.
20624  If \SpecialChar LyX
20625  finds an entry containing the 
20626 \begin_inset Quotes eld
20627 \end_inset
20628
20629 |see\SpecialChar ldots
20630
20631 \begin_inset Quotes erd
20632 \end_inset
20633
20634  construct, it is just dropped, and the rest is treated as an ordinary index
20635  entry.
20636 \end_layout
20637
20638 \begin_layout Itemize
20639 Index Entry Order: \SpecialChar LyX
20640  does support attempts to fix the sorting order.
20641  It will take what is before the first `@' it finds and use that for sorting,
20642  taking what follows the first `@' to be the actual entry.
20643  At present, \SpecialChar LyX
20644  does not check for escaped `@', so do not try to index email
20645  addresses.
20646 \end_layout
20647
20648 \begin_layout Itemize
20649 Index Entry Layout: You can format entries by using the text style dialog,
20650  or by using any other method available within \SpecialChar LyX
20651  itself.
20652  There is no support for constructs like: 
20653 \begin_inset Quotes eld
20654 \end_inset
20655
20656 entry|textbf
20657 \begin_inset Quotes erd
20658 \end_inset
20659
20660 .
20661  Indeed, if \SpecialChar LyX
20662  finds a pipe symbol, `|', in an entry, it will delete it and
20663  everything that follows it.
20664 \end_layout
20665
20666 \begin_layout Itemize
20667 Multiple Indexes: There is no support for multiple indexes.
20668  Rather, all index entries will be printed as one large index.
20669  To avoid our printing several versions of the index, we print only the
20670  main index, so make sure you have one.
20671 \end_layout
20672
20673 \begin_layout Section
20674 Nomenclature and Glossary
20675 \end_layout
20676
20677 \begin_layout Standard
20678 There is at present no support for glossaries.
20679  Adding it would be fairly trivial, and welcome.
20680 \end_layout
20681
20682 \begin_layout Chapter
20683
20684 \change_inserted 1075283030 1616534180
20685 DocBook Output
20686 \end_layout
20687
20688 \begin_layout Standard
20689
20690 \change_inserted 1075283030 1616534386
20691 Apart from HTML, \SpecialChar LyX
20692  can generate documents in the DocBook XML vocabulary.
20693  With versions 2.3 and before, only select templates could be used to generate
20694  DocBook documents (only version 4).
20695  Starting with \SpecialChar LyX
20696  2.4, most \SpecialChar LyX
20697  layouts can generate valid DocBook documents (only
20698  version 5).
20699  This feature is built into \SpecialChar LyX
20700  and does not require the use of external tools.
20701 \end_layout
20702
20703 \begin_layout Standard
20704
20705 \change_inserted 1075283030 1616534437
20706 The result is that the DocBook output can be customized and extended in
20707  exactly the same way \SpecialChar LaTeX
20708  output can be customized and extended: through layout
20709  files and modules.
20710  See chapter five of the 
20711 \emph on
20712 Customization 
20713 \emph default
20714 manual for the details.
20715 \end_layout
20716
20717 \begin_layout Standard
20718
20719 \change_inserted 1075283030 1616534475
20720 Most \SpecialChar LyX
20721  features are supported with DocBook, like math output.
20722 \end_layout
20723
20724 \begin_layout Itemize
20725
20726 \change_inserted 1075283030 1616534741
20727 Math output is performed mostly in MathML (the major exception being constructio
20728 ns not supported by \SpecialChar LyX
20729 , i.e.
20730  ERTs).
20731  All formulae are also available in raw \SpecialChar TeX
20732  in the DocBook output for further
20733  processing.
20734 \end_layout
20735
20736 \begin_layout Itemize
20737
20738 \change_inserted 1075283030 1616534852
20739 Bibliographies and citations are implemented, including with an external
20740  BibTeX file.
20741  Bibliography entries are not prerendered when the detailed information
20742  are available, but rather output with the standard DocBook constructs.
20743  The external DocBook processor is expected to handle the rendering of entries.
20744 \end_layout
20745
20746 \begin_layout Itemize
20747
20748 \change_inserted 1075283030 1616534863
20749 Indexes are supported, including multiple indices.
20750  Grouping (with 
20751 \family typewriter
20752 !
20753 \family default
20754 ), page ranges, and cross-references (
20755 \family typewriter
20756 |see
20757 \family default
20758 ) are supported, with the exception of the same symbols escaped.
20759  Entry order (
20760 \family typewriter
20761 @
20762 \family default
20763 ) and layout (
20764 \family typewriter
20765 |mathbf
20766 \family default
20767 ) are not supported.
20768  There is no support for escaping of index entries.
20769 \end_layout
20770
20771 \begin_layout Itemize
20772
20773 \change_inserted 1075283030 1616534884
20774 Glossaries are implemented.
20775 \end_layout
20776
20777 \begin_layout Standard
20778
20779 \change_inserted 1075283030 1616534894
20780 Two major parameters can be set at the document level.
20781 \end_layout
20782
20783 \begin_layout Itemize
20784
20785 \change_inserted 1075283030 1616534948
20786 Format for tables: \SpecialChar LyX
20787  can generate tables either as HTML (default value) or
20788  CALS, depending on the user's requirements.
20789  Most DocBook processors accept both formats.
20790 \end_layout
20791
20792 \begin_layout Itemize
20793
20794 \change_inserted 1075283030 1616535006
20795 MathML prefix: in DocBook, MathML is included within its own name space,
20796  unlike HTML.
20797  The implication is that there must be an indication of the tags belonging
20798  to the MathML standard.
20799  Three choices are offered: 
20800 \end_layout
20801
20802 \begin_deeper
20803 \begin_layout Itemize
20804
20805 \change_inserted 1075283030 1616535044
20806 Inline: the MathML name space is defined for each formula (using the 
20807 \family typewriter
20808 xmlns
20809 \family default
20810  attribute on each formula)
20811 \end_layout
20812
20813 \begin_layout Itemize
20814
20815 \change_inserted 1075283030 1616535090
20816 With the 
20817 \family typewriter
20818 m
20819 \family default
20820  prefix (default): the MathML name space is defined at the document level
20821  (using the 
20822 \family typewriter
20823 xmlns:m
20824 \family default
20825  attribute on the root element).
20826  Each MathML is prefixed with 
20827 \family typewriter
20828 m
20829 \family default
20830 : for instance, 
20831 \family typewriter
20832 m:math
20833 \end_layout
20834
20835 \begin_layout Itemize
20836
20837 \change_inserted 1075283030 1616620405
20838 With the 
20839 \family typewriter
20840 mml
20841 \family default
20842  prefix: similar to the 
20843 \family typewriter
20844 m
20845 \family default
20846  option, but with 
20847 \family typewriter
20848 mml
20849 \end_layout
20850
20851 \begin_layout Standard
20852
20853 \change_inserted 1075283030 1616620470
20854 This option is especially useful if you want \SpecialChar LyX
20855  to match your personal style
20856  or to work with buggy software that only accepts one prefix for MathML.
20857 \change_unchanged
20858
20859 \end_layout
20860
20861 \end_deeper
20862 \begin_layout Chapter
20863 The \SpecialChar LyX
20864  Server
20865 \end_layout
20866
20867 \begin_layout Section
20868 Introduction
20869 \end_layout
20870
20871 \begin_layout Standard
20872 The `\SpecialChar LyX
20873  server' allows other programs to talk to \SpecialChar LyX
20874 , invoke \SpecialChar LyX
20875  commands, and retrieve
20876  information about the \SpecialChar LyX
20877  internal state.
20878  This is only intended for advanced users, but they should find it useful.
20879  It is by writing to the \SpecialChar LyX
20880  server, for example, that bibliography managers,
20881  such as JabRef, are able to 
20882 \begin_inset Quotes eld
20883 \end_inset
20884
20885 push
20886 \begin_inset Quotes erd
20887 \end_inset
20888
20889  citations to \SpecialChar LyX
20890 .
20891 \end_layout
20892
20893 \begin_layout Section
20894 Starting the \SpecialChar LyX
20895  Server
20896 \begin_inset CommandInset label
20897 LatexCommand label
20898 name "sec:Starting-the-Server"
20899
20900 \end_inset
20901
20902
20903 \end_layout
20904
20905 \begin_layout Standard
20906 The \SpecialChar LyX
20907  server works through the use of a pair of named pipes.
20908  These are usually located in 
20909 \begin_inset Flex Code
20910 status collapsed
20911
20912 \begin_layout Plain Layout
20913 UserDir
20914 \end_layout
20915
20916 \end_inset
20917
20918 , (except on Windows, where 
20919 \emph on
20920 local
20921 \emph default
20922  named pipes are special objects located in 
20923 \begin_inset Flex Code
20924 status collapsed
20925
20926 \begin_layout Plain Layout
20927
20928 \backslash
20929
20930 \backslash
20931 .
20932 \backslash
20933 pipe
20934 \end_layout
20935
20936 \end_inset
20937
20938 ) and have the names 
20939 \begin_inset Quotes eld
20940 \end_inset
20941
20942
20943 \begin_inset Flex Code
20944 status collapsed
20945
20946 \begin_layout Plain Layout
20947 lyxpipe.in
20948 \end_layout
20949
20950 \end_inset
20951
20952
20953 \begin_inset Quotes erd
20954 \end_inset
20955
20956  and 
20957 \begin_inset Quotes eld
20958 \end_inset
20959
20960
20961 \begin_inset Flex Code
20962 status collapsed
20963
20964 \begin_layout Plain Layout
20965 lyxpipe.out
20966 \end_layout
20967
20968 \end_inset
20969
20970
20971 \begin_inset Quotes erd
20972 \end_inset
20973
20974 .
20975  External programs write into 
20976 \begin_inset Flex Code
20977 status collapsed
20978
20979 \begin_layout Plain Layout
20980 lyxpipe.in
20981 \end_layout
20982
20983 \end_inset
20984
20985  and read back data from 
20986 \begin_inset Flex Code
20987 status collapsed
20988
20989 \begin_layout Plain Layout
20990 lyxpipe.out
20991 \end_layout
20992
20993 \end_inset
20994
20995 .
20996  The stem of the pipe names can be defined in the 
20997 \begin_inset Flex Noun
20998 status collapsed
20999
21000 \begin_layout Plain Layout
21001 Tools\SpecialChar menuseparator
21002 Preferences
21003 \end_layout
21004
21005 \end_inset
21006
21007  dialog, for example 
21008 \begin_inset Flex Code
21009 status collapsed
21010
21011 \begin_layout Plain Layout
21012 "/home/myhome/lyxpipe"
21013 \end_layout
21014
21015 \end_inset
21016
21017 , or 
21018 \begin_inset Flex Code
21019 status collapsed
21020
21021 \begin_layout Plain Layout
21022 "
21023 \backslash
21024
21025 \backslash
21026 .
21027 \backslash
21028 pipe
21029 \backslash
21030 lyxpipe"
21031 \end_layout
21032
21033 \end_inset
21034
21035  on Windows (where any working path instead of lyxpipe can be used, for
21036  example 
21037 \begin_inset Flex Code
21038 status collapsed
21039
21040 \begin_layout Plain Layout
21041 "
21042 \backslash
21043
21044 \backslash
21045 .
21046 \backslash
21047 pipe
21048 \backslash
21049 my
21050 \backslash
21051 lyx
21052 \backslash
21053 pipe"
21054 \end_layout
21055
21056 \end_inset
21057
21058  would also work).
21059  You 
21060 \emph on
21061 must
21062 \emph default
21063  configure this manually in order for the server to start.
21064 \end_layout
21065
21066 \begin_layout Standard
21067 \SpecialChar LyX
21068  will add the '
21069 \begin_inset Flex Code
21070 status collapsed
21071
21072 \begin_layout Plain Layout
21073 .in
21074 \end_layout
21075
21076 \end_inset
21077
21078 ' and '
21079 \begin_inset Flex Code
21080 status collapsed
21081
21082 \begin_layout Plain Layout
21083 .out
21084 \end_layout
21085
21086 \end_inset
21087
21088 ' to create the pipes.
21089  If one of the pipes already exists, \SpecialChar LyX
21090  will assume that another \SpecialChar LyX
21091  process
21092  is already running and will not start the server.
21093  On POSIX (Unix like) systems, if for some other reason, an unused 
21094 \begin_inset Quotes eld
21095 \end_inset
21096
21097 stale
21098 \begin_inset Quotes erd
21099 \end_inset
21100
21101  pipe is left in existence when \SpecialChar LyX
21102  closes, then \SpecialChar LyX
21103  will try to delete it.
21104  If this fails for some reason, you will need to delete the pipes manually
21105  and then restart \SpecialChar LyX
21106 .
21107  On Windows, pipes are deleted by the OS on program termination or crash,
21108  so 
21109 \begin_inset Quotes eld
21110 \end_inset
21111
21112 stale
21113 \begin_inset Quotes erd
21114 \end_inset
21115
21116  pipes should not be possible.
21117 \end_layout
21118
21119 \begin_layout Standard
21120 To have several \SpecialChar LyX
21121  processes with servers at the same time, you have to use
21122  different configurations, perhaps by using separate user directories, each
21123  with its own 
21124 \begin_inset Flex Code
21125 status collapsed
21126
21127 \begin_layout Plain Layout
21128 preferences
21129 \end_layout
21130
21131 \end_inset
21132
21133  file, for each process.
21134 \end_layout
21135
21136 \begin_layout Standard
21137 If you are developing a client program, you might find it useful to enable
21138  debugging information from the \SpecialChar LyX
21139  server.
21140  Do this by starting \SpecialChar LyX
21141  as 
21142 \begin_inset Flex Code
21143 status collapsed
21144
21145 \begin_layout Plain Layout
21146 lyx -dbg lyxserver
21147 \end_layout
21148
21149 \end_inset
21150
21151 .
21152 \end_layout
21153
21154 \begin_layout Standard
21155 You can find a complete example client written in C++ in the source distribution
21156  as 
21157 \begin_inset Flex Code
21158 status collapsed
21159
21160 \begin_layout Plain Layout
21161 development/lyxserver/server_monitor.cpp
21162 \end_layout
21163
21164 \end_inset
21165
21166 .
21167 \end_layout
21168
21169 \begin_layout Standard
21170 Another useful tool is the command-line based client found in 
21171 \begin_inset Flex Code
21172 status collapsed
21173
21174 \begin_layout Plain Layout
21175 src/client/lyxclient
21176 \end_layout
21177
21178 \end_inset
21179
21180 .
21181 \end_layout
21182
21183 \begin_layout Section
21184 Normal communication
21185 \end_layout
21186
21187 \begin_layout Standard
21188 To issue a \SpecialChar LyX
21189  call, the client writes a line of ASCII text into the input
21190  pipe.
21191  This line has the following format:
21192 \end_layout
21193
21194 \begin_layout Quote
21195 LYXCMD:
21196 \emph on
21197 clientname
21198 \emph default
21199 :
21200 \emph on
21201 function
21202 \emph default
21203 :
21204 \emph on
21205 argument
21206 \end_layout
21207
21208 \begin_layout Description
21209 clientname is a name that the client can choose arbitrarily.
21210  Its only use is that \SpecialChar LyX
21211  will echo it if it sends an answer—so a client can
21212  dispatch results from different requesters.
21213 \end_layout
21214
21215 \begin_layout Description
21216 function is the function you want \SpecialChar LyX
21217  to perform.
21218  It is the same as the commands you'd use in the minibuffer.
21219 \end_layout
21220
21221 \begin_layout Description
21222 argument is an optional argument which is meaningful only to some functions
21223  (for instance, the 
21224 \begin_inset Quotes eld
21225 \end_inset
21226
21227 self-insert
21228 \begin_inset Quotes erd
21229 \end_inset
21230
21231  LFUN will insert the argument as text at the cursor position).
21232 \end_layout
21233
21234 \begin_layout Standard
21235 The answer from \SpecialChar LyX
21236  will arrive in the output pipe and be of the form
21237 \end_layout
21238
21239 \begin_layout Quote
21240 INFO:
21241 \emph on
21242 clientname
21243 \emph default
21244 :
21245 \emph on
21246 function
21247 \emph default
21248 :
21249 \emph on
21250 data
21251 \end_layout
21252
21253 \begin_layout Standard
21254 where 
21255 \emph on
21256 clientname
21257 \emph default
21258  and 
21259 \emph on
21260 function
21261 \emph default
21262  are just echoed from the command request, while 
21263 \emph on
21264 data
21265 \emph default
21266  is more or less useful information filled according to how the command
21267  execution worked out.
21268  Some commands, such as 
21269 \begin_inset Quotes eld
21270 \end_inset
21271
21272 font-state
21273 \begin_inset Quotes erd
21274 \end_inset
21275
21276 , will return information about the internal state of \SpecialChar LyX
21277 , while other will
21278  return an empty data-response.
21279  This means that the command execution went fine.
21280 \end_layout
21281
21282 \begin_layout Standard
21283 In case of errors, the response from \SpecialChar LyX
21284  will have this form
21285 \end_layout
21286
21287 \begin_layout Quote
21288 ERROR:
21289 \emph on
21290 clientname
21291 \emph default
21292 :
21293 \emph on
21294 function
21295 \emph default
21296 :
21297 \emph on
21298 error message
21299 \end_layout
21300
21301 \begin_layout Standard
21302 where the 
21303 \emph on
21304 error message
21305 \emph default
21306  should contain an explanation of why the command failed.
21307 \end_layout
21308
21309 \begin_layout Standard
21310 Examples:
21311 \end_layout
21312
21313 \begin_layout LyX-Code
21314 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
21315 \begin_inset Newline newline
21316 \end_inset
21317
21318 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
21319 \begin_inset Newline newline
21320 \end_inset
21321
21322 read a <~/.lyxpipe.out
21323 \begin_inset Newline newline
21324 \end_inset
21325
21326 echo $a
21327 \end_layout
21328
21329 \begin_layout Subsection
21330 AppleScript (Mac OS X)
21331 \end_layout
21332
21333 \begin_layout Standard
21334 Since \SpecialChar LyX
21335  2.1, \SpecialChar LyX
21336  supports basic interactions with AppleScript for normal communicatio
21337 n through the command run.
21338  This command takes a direct argument (the 
21339 \series bold
21340 function
21341 \series default
21342  to perform) and an optional argument.
21343  It either returns the output of the function or triggers an error with
21344  the error message and code.
21345 \end_layout
21346
21347 \begin_layout Standard
21348 Example:
21349 \end_layout
21350
21351 \begin_layout LyX-Code
21352 tell application "\SpecialChar LyX
21353 "
21354 \end_layout
21355
21356 \begin_layout LyX-Code
21357   try
21358 \end_layout
21359
21360 \begin_layout LyX-Code
21361     -- Stores the current file name into f
21362 \end_layout
21363
21364 \begin_layout LyX-Code
21365     set f to (run "server-get-filename" with argument "")
21366 \end_layout
21367
21368 \begin_layout LyX-Code
21369     on error the error_message number the error_number
21370 \end_layout
21371
21372 \begin_layout LyX-Code
21373       display dialog "Error: " & the error_number & ".
21374  " ¬
21375 \end_layout
21376
21377 \begin_layout LyX-Code
21378               & the error_message buttons {"OK"} default button 1
21379 \end_layout
21380
21381 \begin_layout LyX-Code
21382   end try
21383 \end_layout
21384
21385 \begin_layout LyX-Code
21386 end tell
21387 \end_layout
21388
21389 \begin_layout Section
21390 Notification
21391 \end_layout
21392
21393 \begin_layout Standard
21394 \SpecialChar LyX
21395  can notify clients of events going on asynchronously.
21396  Currently it will only do this if the user binds a key sequence with the
21397  function 
21398 \begin_inset Quotes eld
21399 \end_inset
21400
21401 notify
21402 \begin_inset Quotes erd
21403 \end_inset
21404
21405 .
21406  The format of the string \SpecialChar LyX
21407  sends is as follows:
21408 \end_layout
21409
21410 \begin_layout Quote
21411 \begin_inset Flex Code
21412 status collapsed
21413
21414 \begin_layout Plain Layout
21415 NOTIFY:
21416 \end_layout
21417
21418 \end_inset
21419
21420
21421 \emph on
21422 key-sequence
21423 \end_layout
21424
21425 \begin_layout Standard
21426 where 
21427 \emph on
21428 key-sequence
21429 \emph default
21430  is the printed representation of the key sequence that was actually typed
21431  by the user.
21432 \end_layout
21433
21434 \begin_layout Standard
21435 This mechanism can be used to extend \SpecialChar LyX
21436 's command set and implement macros.
21437  Bind some key sequence to 
21438 \begin_inset Quotes eld
21439 \end_inset
21440
21441 notify
21442 \begin_inset Quotes erd
21443 \end_inset
21444
21445 .
21446  Then start a client that listens on the output pipe, dispatches the command
21447  according to the sequence, and starts a function that may use \SpecialChar LyX
21448  calls and
21449  \SpecialChar LyX
21450  requests to issue a command or a series of commands to \SpecialChar LyX
21451 .
21452 \end_layout
21453
21454 \begin_layout Section
21455 The simple \SpecialChar LyX
21456  Server Protocol
21457 \end_layout
21458
21459 \begin_layout Standard
21460 \SpecialChar LyX
21461  implements a simple protocol that can be used for session management.
21462  All messages are of the form
21463 \end_layout
21464
21465 \begin_layout Quote
21466 LYXSRV:
21467 \emph on
21468 clientname
21469 \emph default
21470 :
21471 \emph on
21472 protocol message
21473 \end_layout
21474
21475 \begin_layout Standard
21476 where 
21477 \emph on
21478 protocol message
21479 \emph default
21480  can be 
21481 \begin_inset Quotes eld
21482 \end_inset
21483
21484 hello
21485 \begin_inset Quotes erd
21486 \end_inset
21487
21488  or 
21489 \begin_inset Quotes eld
21490 \end_inset
21491
21492 bye
21493 \begin_inset Quotes erd
21494 \end_inset
21495
21496 .
21497  If 
21498 \begin_inset Quotes eld
21499 \end_inset
21500
21501 hello
21502 \begin_inset Quotes erd
21503 \end_inset
21504
21505  is received from a client, \SpecialChar LyX
21506  will report back to inform the client that
21507  it's listening to it's messages, while 
21508 \begin_inset Quotes eld
21509 \end_inset
21510
21511 bye
21512 \begin_inset Quotes erd
21513 \end_inset
21514
21515  sent from \SpecialChar LyX
21516  will inform clients that \SpecialChar LyX
21517  is closing.
21518 \end_layout
21519
21520 \begin_layout Section
21521 Reverse DVI/PDF search
21522 \end_layout
21523
21524 \begin_layout Standard
21525 Some DVI/PDF viewers
21526 \begin_inset Foot
21527 status collapsed
21528
21529 \begin_layout Plain Layout
21530 The following viewers offer the reverse PDF search feature: Okular on KDE/Linux,
21531  Qpdfview on Unix, Skim on Mac OSX and SumatraPDF on Windows.
21532 \end_layout
21533
21534 \end_inset
21535
21536  provide 
21537 \emph on
21538 reverse search
21539 \emph default
21540  facility (also called 
21541 \emph on
21542 inverse search
21543 \emph default
21544 ).
21545  This means that you can tell \SpecialChar LyX
21546  to put the cursor to a specific line in the
21547  document by clicking at the respective position in the DVI/PDF output.
21548  To achieve this, the viewer must be able to communicate with \SpecialChar LyX
21549 .
21550  This is done via the \SpecialChar LyX
21551  server either by using the named pipe (
21552 \emph on
21553 lyxpipe
21554 \emph default
21555 ), or the UNIX domain socket (
21556 \emph on
21557 lyxsocket
21558 \emph default
21559 ) that \SpecialChar LyX
21560  creates in its temporary directory (this is the way the 
21561 \begin_inset Flex Code
21562 status collapsed
21563
21564 \begin_layout Plain Layout
21565 lyxclient
21566 \end_layout
21567
21568 \end_inset
21569
21570  program communicates with \SpecialChar LyX
21571 ).
21572  In some cases, you need a helper script that mediates between the viewer
21573  and \SpecialChar LyX
21574 , in others, the viewer can communicate with \SpecialChar LyX
21575  directly.
21576  This depends on the selected viewer and on your operating system.
21577  The same applies to the way viewers need to be configured and the way the
21578  reverse search is actually performed.
21579  In what follows, we will thus describe how to setup reverse search for
21580  specific viewers.
21581  Before we turn to this, though, we will explain what needs to be done generally
21582  to enable reverse search in the DVI/PDF output.
21583 \end_layout
21584
21585 \begin_layout Subsection
21586 Automatic setup
21587 \begin_inset CommandInset label
21588 LatexCommand label
21589 name "subsec:rev-search"
21590
21591 \end_inset
21592
21593
21594 \end_layout
21595
21596 \begin_layout Standard
21597 In most cases \SpecialChar LyX
21598  will do the work for you by pressing the following button
21599  in the toolbar: 
21600 \begin_inset Info
21601 type  "icon"
21602 arg   "buffer-toggle-output-sync"
21603 \end_inset
21604
21605 .
21606  Alternatively, you can also enable the feature by checking 
21607 \family sans
21608 Synchronize with Output
21609 \family default
21610  in 
21611 \begin_inset Flex Noun
21612 status collapsed
21613
21614 \begin_layout Plain Layout
21615 Document\SpecialChar menuseparator
21616 Settings\SpecialChar menuseparator
21617 Formats
21618 \end_layout
21619
21620 \end_inset
21621
21622 .
21623  In such a case \SpecialChar LyX
21624  will automatically insert the necessary Sync\SpecialChar TeX
21625  macro (for
21626  PDF) or load the srcltx package (for DVI) respectively.
21627  This option can be easily reached also on 
21628 \begin_inset Flex Code
21629 status collapsed
21630
21631 \begin_layout Plain Layout
21632 View/Update
21633 \end_layout
21634
21635 \end_inset
21636
21637  Toolbar.
21638 \end_layout
21639
21640 \begin_layout Standard
21641 If you need a different setting, you can select or input a custom macro
21642  from the drop down box just below 
21643 \begin_inset Flex Noun
21644 status collapsed
21645
21646 \begin_layout Plain Layout
21647 Document\SpecialChar menuseparator
21648 Settings\SpecialChar menuseparator
21649 Output\SpecialChar menuseparator
21650 Synchronize with Output
21651 \end_layout
21652
21653 \end_inset
21654
21655 .
21656 \end_layout
21657
21658 \begin_layout Standard
21659 Note that the method 
21660 \begin_inset Flex Code
21661 status collapsed
21662
21663 \begin_layout Plain Layout
21664
21665 \backslash
21666 synctex=1
21667 \end_layout
21668
21669 \end_inset
21670
21671  enables gzip compression.
21672  If your viewer does not support it, you should instead use 
21673 \begin_inset Flex Code
21674 status collapsed
21675
21676 \begin_layout Plain Layout
21677
21678 \backslash
21679 synctex=-1
21680 \end_layout
21681
21682 \end_inset
21683
21684 .
21685 \end_layout
21686
21687 \begin_layout Standard
21688 Please also note that including the 
21689 \begin_inset Flex Code
21690 status collapsed
21691
21692 \begin_layout Plain Layout
21693 srcltx
21694 \end_layout
21695
21696 \end_inset
21697
21698  package or 
21699 \begin_inset Flex Code
21700 status collapsed
21701
21702 \begin_layout Plain Layout
21703 src-specials
21704 \end_layout
21705
21706 \end_inset
21707
21708  sometimes has an undesired impact on the typesetting.
21709  Thus, you should switch output synchronization off for the final typesetting
21710  if you use the 
21711 \begin_inset Flex Code
21712 status collapsed
21713
21714 \begin_layout Plain Layout
21715 srcltx
21716 \end_layout
21717
21718 \end_inset
21719
21720  package or 
21721 \begin_inset Flex Code
21722 status collapsed
21723
21724 \begin_layout Plain Layout
21725 src-specials
21726 \end_layout
21727
21728 \end_inset
21729
21730 .
21731  
21732 \end_layout
21733
21734 \begin_layout Standard
21735 In case you need some more special settings that are not covered by the
21736  automatic settings, read the next section about how to set up output synchroniz
21737 ation manually.
21738  If the automatic setup suits your needs, you can readily jump to section
21739 \begin_inset space ~
21740 \end_inset
21741
21742
21743 \begin_inset CommandInset ref
21744 LatexCommand ref
21745 reference "subsec:configuring-viewers"
21746
21747 \end_inset
21748
21749 , where the necessary configuration steps in your viewer – needed both with
21750  the automatic and the manual setup – are described.
21751 \end_layout
21752
21753 \begin_layout Subsection
21754 Manual setup
21755 \end_layout
21756
21757 \begin_layout Standard
21758 \SpecialChar LaTeX
21759  provides several different methods for reverse search.
21760  Some are built-in in the 
21761 \begin_inset Flex Code
21762 status collapsed
21763
21764 \begin_layout Plain Layout
21765 latex/pdflatex
21766 \end_layout
21767
21768 \end_inset
21769
21770  program, some are provided by external packages.
21771  Your choice depends on whether your \SpecialChar LaTeX
21772  distribution already provides a given
21773  method (the built-in methods are rather new) and whether your viewer can
21774  cope with it.
21775  The available methods are described in the following.
21776 \end_layout
21777
21778 \begin_layout Subsubsection*
21779 Built-in DVI-search via src-specials (DVI only) 
21780 \end_layout
21781
21782 \begin_layout Standard
21783 This method provides the DVI file with the necessary information for reverse
21784  search.
21785  It is available in \SpecialChar LaTeX
21786  since quite some time (any somewhat recent \SpecialChar LaTeX
21787  distribution
21788  should include it), and it works reliably.
21789  To enable it, change the 
21790 \begin_inset Flex Noun
21791 status collapsed
21792
21793 \begin_layout Plain Layout
21794 La
21795 \family sans
21796 TeX
21797 \family default
21798  (plain)->DVI
21799 \end_layout
21800
21801 \end_inset
21802
21803  or 
21804 \begin_inset Flex Noun
21805 status collapsed
21806
21807 \begin_layout Plain Layout
21808 La
21809 \family sans
21810 TeX
21811 \family default
21812  (plain)->DraftDVI
21813 \end_layout
21814
21815 \end_inset
21816
21817  converter in 
21818 \begin_inset Flex Noun
21819 status collapsed
21820
21821 \begin_layout Plain Layout
21822 Preferences\SpecialChar menuseparator
21823 File Handling\SpecialChar menuseparator
21824 Converters
21825 \end_layout
21826
21827 \end_inset
21828
21829  to 
21830 \begin_inset Flex Code
21831 status collapsed
21832
21833 \begin_layout Plain Layout
21834 latex -src-specials $$i
21835 \end_layout
21836
21837 \end_inset
21838
21839 .
21840  If this doesn't work, check if your \SpecialChar TeX
21841  engine needs different options (the
21842  syntax might differ in some distributions).
21843 \end_layout
21844
21845 \begin_layout Subsubsection*
21846 External Packages (PDFSync and scrltx) 
21847 \end_layout
21848
21849 \begin_layout Standard
21850 The packages 
21851 \emph on
21852 pdfsync
21853 \emph default
21854  and 
21855 \emph on
21856 scrltx
21857 \emph default
21858  provide reverse search facility for PDF output (via pdflatex) and DVI output,
21859  respectively.
21860  In order to enable it, load the packages in the \SpecialChar LyX
21861  preamble: 
21862 \end_layout
21863
21864 \begin_layout Itemize
21865 \begin_inset Flex Code
21866 status collapsed
21867
21868 \begin_layout Plain Layout
21869
21870 \backslash
21871 usepackage{pdfsync}
21872 \end_layout
21873
21874 \end_inset
21875
21876  for reverse PDF search,
21877 \end_layout
21878
21879 \begin_layout Itemize
21880 \begin_inset Flex Code
21881 status collapsed
21882
21883 \begin_layout Plain Layout
21884
21885 \backslash
21886 usepackage[active]{srcltx}
21887 \end_layout
21888
21889 \end_inset
21890
21891  for reverse DVI search.
21892 \end_layout
21893
21894 \begin_layout Standard
21895 If you want to be able to perform both DVI and PDF reverse searches, you
21896  can also insert in the preamble the following lines
21897 \end_layout
21898
21899 \begin_layout LyX-Code
21900
21901 \backslash
21902 usepackage{ifpdf}
21903 \begin_inset Newline newline
21904 \end_inset
21905
21906
21907 \backslash
21908 ifpdf
21909 \begin_inset Newline newline
21910 \end_inset
21911
21912   
21913 \backslash
21914 usepackage{pdfsync}
21915 \begin_inset Newline newline
21916 \end_inset
21917
21918
21919 \backslash
21920 else
21921 \begin_inset Newline newline
21922 \end_inset
21923
21924   
21925 \backslash
21926 usepackage[active]{srcltx}
21927 \begin_inset Newline newline
21928 \end_inset
21929
21930
21931 \backslash
21932 fi
21933 \end_layout
21934
21935 \begin_layout Standard
21936 This way, you can preview the file as either DVI or PDF (pdflatex) and the
21937  right package will be used.
21938 \end_layout
21939
21940 \begin_layout Standard
21941 Note that PDFSync might affect the output layout of your document.
21942  It is therefore advised to disable PDFsync for final documents.
21943 \end_layout
21944
21945 \begin_layout Subsubsection*
21946 Built-in reverse search via Sync\SpecialChar TeX
21947  (DVI and PDF) 
21948 \end_layout
21949
21950 \begin_layout Standard
21951 Recent versions of 
21952 \begin_inset Flex Code
21953 status collapsed
21954
21955 \begin_layout Plain Layout
21956 (pdf)latex
21957 \end_layout
21958
21959 \end_inset
21960
21961  have built-in support for both PDF and DVI reverse search.
21962  This so-called 
21963 \emph on
21964 Sync\SpecialChar TeX
21965
21966 \emph default
21967  facility is basically the result of the integration of the PDFSync package
21968  to the pdftex program and its merge with the 
21969 \emph on
21970 scr-specials
21971 \emph default
21972  approach.
21973  You need at least \SpecialChar TeX
21974 Live 2008 or a recent Mik\SpecialChar TeX
21975  distribution in order to use
21976  it.
21977 \begin_inset Foot
21978 status collapsed
21979
21980 \begin_layout Plain Layout
21981 For some reason, Mik\SpecialChar TeX
21982  does not understand/obey the command \SpecialChar LyX
21983  inserts into
21984  the preamble when you check the "Enable Forward/Reverse Search" button
21985  in the toolbar and does not generate the necessary info.
21986 \end_layout
21987
21988 \begin_layout Plain Layout
21989 The generation of the required info can be forced by changing the converter
21990  "\SpecialChar LaTeX
21991  (pdflatex) -> PDF (pdflatex)" in Preferences->File handling->Converters
21992  from the default "pdflatex $$i" to "pdflatex -synctex=1 $$i" (i.e., by adding
21993  the -synctex=1 switch).
21994 \end_layout
21995
21996 \end_inset
21997
21998  Also note that only a few PDF viewers (such as Okular and Qpdfview on Unix,
21999  Skim on the Mac, SumatraPDF on Windows; see the next section for details)
22000  already provide Sync\SpecialChar TeX
22001  support.
22002 \end_layout
22003
22004 \begin_layout Standard
22005 To enable Sync\SpecialChar TeX
22006  for DVI output, change the 
22007 \begin_inset Flex Noun
22008 status collapsed
22009
22010 \begin_layout Plain Layout
22011 La
22012 \family sans
22013 TeX
22014 \family default
22015  (plain) -> DVI
22016 \end_layout
22017
22018 \end_inset
22019
22020  or 
22021 \begin_inset Flex Noun
22022 status collapsed
22023
22024 \begin_layout Plain Layout
22025 La
22026 \family sans
22027 TeX
22028 \family default
22029  (plain) -> DraftDVI
22030 \end_layout
22031
22032 \end_inset
22033
22034  converter in 
22035 \begin_inset Flex Noun
22036 status collapsed
22037
22038 \begin_layout Plain Layout
22039 Preferences\SpecialChar menuseparator
22040 File Handling\SpecialChar menuseparator
22041 Converters
22042 \end_layout
22043
22044 \end_inset
22045
22046  to 
22047 \begin_inset Flex Code
22048 status collapsed
22049
22050 \begin_layout Plain Layout
22051 latex -synctex=1 $$i
22052 \end_layout
22053
22054 \end_inset
22055
22056 , and for PDF output, change the 
22057 \begin_inset Flex Noun
22058 status collapsed
22059
22060 \begin_layout Plain Layout
22061 La
22062 \family sans
22063 TeX
22064 \family default
22065  (pdflatex) -> PDF (pdflatex)
22066 \end_layout
22067
22068 \end_inset
22069
22070  converter to 
22071 \begin_inset Flex Code
22072 status collapsed
22073
22074 \begin_layout Plain Layout
22075 pdflatex -synctex=1 $$i
22076 \end_layout
22077
22078 \end_inset
22079
22080 .
22081  Should your viewer not be considered in the following description, or in
22082  case of missing success, please check the documentation of your viewer
22083  whether the viewer needs to be configured for the use with Sync\SpecialChar TeX
22084 .
22085 \begin_inset Foot
22086 status collapsed
22087
22088 \begin_layout Plain Layout
22089 Note that the option 
22090 \begin_inset Flex Code
22091 status collapsed
22092
22093 \begin_layout Plain Layout
22094 -synctex=1
22095 \end_layout
22096
22097 \end_inset
22098
22099  option enables gzip compression.
22100  If your viewer does not support it, you should instead use 
22101 \begin_inset Flex Code
22102 status collapsed
22103
22104 \begin_layout Plain Layout
22105 -synctex=-1
22106 \end_layout
22107
22108 \end_inset
22109
22110 .
22111 \end_layout
22112
22113 \end_inset
22114
22115
22116 \end_layout
22117
22118 \begin_layout Subsection
22119 Configuring and using specific viewers
22120 \begin_inset CommandInset label
22121 LatexCommand label
22122 name "subsec:configuring-viewers"
22123
22124 \end_inset
22125
22126
22127 \end_layout
22128
22129 \begin_layout Subsubsection*
22130 Xdvi (all platforms)
22131 \end_layout
22132
22133 \begin_layout Standard
22134 If you use 
22135 \begin_inset Flex Code
22136 status collapsed
22137
22138 \begin_layout Plain Layout
22139 xdvi
22140 \end_layout
22141
22142 \end_inset
22143
22144 , you don't need to do anything else for performing a reverse DVI search,
22145  as \SpecialChar LyX
22146  already provides the necessary hooks for automatically using the 
22147 \begin_inset Flex Code
22148 status collapsed
22149
22150 \begin_layout Plain Layout
22151 lyxclient
22152 \end_layout
22153
22154 \end_inset
22155
22156  program.
22157  Just setup your document as described above (reverse search is triggered
22158  by Ctrl-click or Alt-click on Mac OSX, respectively).
22159 \end_layout
22160
22161 \begin_layout Standard
22162 However, if for whatever reason you want to use the named pipe instead of
22163  the socket for communicating with \SpecialChar LyX
22164 , simply change the DVI viewer in 
22165 \begin_inset Flex Noun
22166 status collapsed
22167
22168 \begin_layout Plain Layout
22169 Preferences\SpecialChar menuseparator
22170 File Handling\SpecialChar menuseparator
22171 File formats
22172 \end_layout
22173
22174 \end_inset
22175
22176  to
22177 \begin_inset Foot
22178 status collapsed
22179
22180 \begin_layout Plain Layout
22181 On Mac OSX you have to use 
22182 \begin_inset Flex Code
22183 status collapsed
22184
22185 \begin_layout Plain Layout
22186 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
22187 \end_layout
22188
22189 \end_inset
22190
22191
22192 \end_layout
22193
22194 \end_inset
22195
22196  
22197 \begin_inset Flex Code
22198 status collapsed
22199
22200 \begin_layout Plain Layout
22201 xdvi -editor "lyxeditor.sh %f %l"
22202 \end_layout
22203
22204 \end_inset
22205
22206 , where 
22207 \begin_inset Flex Code
22208 status collapsed
22209
22210 \begin_layout Plain Layout
22211 lyxeditor.sh
22212 \end_layout
22213
22214 \end_inset
22215
22216  is a suitable script.
22217  For example, a minimal shell script is the following one:
22218 \end_layout
22219
22220 \begin_layout LyX-Code
22221 #!/bin/sh
22222 \begin_inset Newline newline
22223 \end_inset
22224
22225 LYXPIPE="/path/to/lyxpipe"
22226 \begin_inset Newline newline
22227 \end_inset
22228
22229 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
22230 \begin_inset Newline newline
22231 \end_inset
22232
22233 echo "$COMMAND" > "${LYXPIPE}".in || exit
22234 \begin_inset Newline newline
22235 \end_inset
22236
22237 read TMP < "${LYXPIPE}".out || exit
22238 \end_layout
22239
22240 \begin_layout Standard
22241 where 
22242 \begin_inset Flex Code
22243 status collapsed
22244
22245 \begin_layout Plain Layout
22246 /path/to/lyxpipe
22247 \end_layout
22248
22249 \end_inset
22250
22251  is the LyXServer pipe path specified in 
22252 \begin_inset Flex Noun
22253 status collapsed
22254
22255 \begin_layout Plain Layout
22256 Preferences\SpecialChar menuseparator
22257 Paths
22258 \end_layout
22259
22260 \end_inset
22261
22262 .
22263 \begin_inset Foot
22264 status collapsed
22265
22266 \begin_layout Plain Layout
22267 In the 
22268 \begin_inset Flex Code
22269 status collapsed
22270
22271 \begin_layout Plain Layout
22272 development/tools
22273 \end_layout
22274
22275 \end_inset
22276
22277  folder of a source distribution you can find a 
22278 \begin_inset Flex Code
22279 status collapsed
22280
22281 \begin_layout Plain Layout
22282 lyxeditor
22283 \end_layout
22284
22285 \end_inset
22286
22287  script which is able to locate the 
22288 \emph on
22289 lyxpipe
22290 \emph default
22291  based on your preferences.
22292 \end_layout
22293
22294 \end_inset
22295
22296
22297 \end_layout
22298
22299 \begin_layout Subsubsection*
22300 MacDviX (Mac OSX)
22301 \end_layout
22302
22303 \begin_layout Standard
22304 At the end of 
22305 \begin_inset Flex Code
22306 status collapsed
22307
22308 \begin_layout Plain Layout
22309 /Applications/MacDviX_Folder/calleditor.script
22310 \end_layout
22311
22312 \end_inset
22313
22314 , add the following lines:
22315 \end_layout
22316
22317 \begin_layout LyX-Code
22318 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
22319 \begin_inset Newline newline
22320 \end_inset
22321
22322 exit 1
22323 \end_layout
22324
22325 \begin_layout Standard
22326 Modify the lines accordingly if you install \SpecialChar LyX
22327  somewhere else than in the
22328  Applications folder.
22329 \end_layout
22330
22331 \begin_layout Standard
22332 Reverse search is triggered by Alt-click (OPTION-click).
22333 \end_layout
22334
22335 \begin_layout Subsubsection*
22336 Skim (Mac OSX)
22337 \end_layout
22338
22339 \begin_layout Standard
22340 Enter 
22341 \begin_inset Flex Code
22342 status collapsed
22343
22344 \begin_layout Plain Layout
22345 open -a Skim.app $$i
22346 \end_layout
22347
22348 \end_inset
22349
22350  to the viewer setting in 
22351 \begin_inset Flex Noun
22352 status collapsed
22353
22354 \begin_layout Plain Layout
22355 Preferences\SpecialChar menuseparator
22356 File Handling\SpecialChar menuseparator
22357 File formats\SpecialChar menuseparator
22358 PDF (pdflatex)
22359 \end_layout
22360
22361 \end_inset
22362
22363 , and then in 
22364 \begin_inset Flex Noun
22365 status collapsed
22366
22367 \begin_layout Plain Layout
22368 Skim\SpecialChar menuseparator
22369 Preferences\SpecialChar menuseparator
22370 Sync
22371 \end_layout
22372
22373 \end_inset
22374
22375  choose 
22376 \begin_inset Flex Noun
22377 status collapsed
22378
22379 \begin_layout Plain Layout
22380 custom
22381 \end_layout
22382
22383 \end_inset
22384
22385  preset and enter command 
22386 \begin_inset Flex Noun
22387 status collapsed
22388
22389 \begin_layout Plain Layout
22390 /Applications/\SpecialChar LyX
22391 .app/Contents/MacOS/lyxeditor
22392 \end_layout
22393
22394 \end_inset
22395
22396 .
22397 \end_layout
22398
22399 \begin_layout Standard
22400 Reverse search is triggered by COMMAND-SHIFT-click
22401 \end_layout
22402
22403 \begin_layout Subsubsection*
22404 Evince (GNOME)
22405 \end_layout
22406
22407 \begin_layout Standard
22408 Reverse search with evince does not work out of the box, but it can be achieved
22409  by means of some third party helper scripts.
22410  Please refer to 
22411 \begin_inset CommandInset href
22412 LatexCommand href
22413 target "https://wiki.lyx.org/LyX/SyncTeX"
22414 literal "false"
22415
22416 \end_inset
22417
22418  for details.
22419 \end_layout
22420
22421 \begin_layout Subsubsection*
22422 Okular (KDE)
22423 \end_layout
22424
22425 \begin_layout Standard
22426 Go to 
22427 \begin_inset Flex Noun
22428 status collapsed
22429
22430 \begin_layout Plain Layout
22431 Settings\SpecialChar menuseparator
22432 Configure Okular\SpecialChar menuseparator
22433 Editor
22434 \end_layout
22435
22436 \end_inset
22437
22438  and select LyX
22439 \begin_inset Quotes erd
22440 \end_inset
22441
22442  as editor.
22443  This inserts the appropriate command (
22444 \begin_inset Flex Code
22445 status collapsed
22446
22447 \begin_layout Plain Layout
22448 lyxclient -g %f %l
22449 \end_layout
22450
22451 \end_inset
22452
22453 ).
22454 \end_layout
22455
22456 \begin_layout Standard
22457 Reverse search is triggered by SHIFT-click.
22458
22459 \change_inserted -712698321 1578211026
22460  Note that this only works if Okular is in 
22461 \begin_inset Quotes eld
22462 \end_inset
22463
22464 Browse
22465 \begin_inset Quotes erd
22466 \end_inset
22467
22468  mode (i.
22469 \begin_inset space \thinspace{}
22470 \end_inset
22471
22472 e., the hand symbol is clicked).
22473 \change_unchanged
22474
22475 \end_layout
22476
22477 \begin_layout Subsubsection*
22478 Qpdfview (Unix)
22479 \end_layout
22480
22481 \begin_layout Standard
22482 Qpdfview supports Sync\SpecialChar TeX
22483  since version 0.3.5.
22484  Go to 
22485 \begin_inset Flex Noun
22486 status collapsed
22487
22488 \begin_layout Plain Layout
22489 Edit\SpecialChar menuseparator
22490 Settings\SpecialChar menuseparator
22491 Behavior
22492 \end_layout
22493
22494 \end_inset
22495
22496 , click on the input field of the 
22497 \begin_inset Quotes eld
22498 \end_inset
22499
22500 Source editor
22501 \begin_inset Quotes erd
22502 \end_inset
22503
22504  item and add the command 
22505 \begin_inset Flex Code
22506 status collapsed
22507
22508 \begin_layout Plain Layout
22509 lyxclient -g %1 %2
22510 \end_layout
22511
22512 \end_inset
22513
22514 .
22515 \end_layout
22516
22517 \begin_layout Standard
22518 Reverse search is triggered by double-click or, in more recent versions,
22519  by context menu.
22520 \end_layout
22521
22522 \begin_layout Subsubsection*
22523 YAP (Windows)
22524 \end_layout
22525
22526 \begin_layout Standard
22527 Launch yap, choose its 
22528 \begin_inset Flex Noun
22529 status collapsed
22530
22531 \begin_layout Plain Layout
22532 View\SpecialChar menuseparator
22533 Options
22534 \end_layout
22535
22536 \end_inset
22537
22538  menu and select the 
22539 \begin_inset Quotes eld
22540 \end_inset
22541
22542 Inverse DVI Search
22543 \begin_inset Quotes erd
22544 \end_inset
22545
22546  tab.
22547  Click on the 
22548 \begin_inset Quotes eld
22549 \end_inset
22550
22551 New\SpecialChar ldots
22552
22553 \begin_inset Quotes erd
22554 \end_inset
22555
22556  button and, in the window that opens, enter 
22557 \begin_inset Quotes eld
22558 \end_inset
22559
22560 \SpecialChar LyX
22561  Editor
22562 \begin_inset Quotes erd
22563 \end_inset
22564
22565  (or any other name you like) in the 
22566 \begin_inset Quotes eld
22567 \end_inset
22568
22569 Name:
22570 \begin_inset Quotes erd
22571 \end_inset
22572
22573  field.
22574  Now click on the button labeled 
22575 \begin_inset Quotes eld
22576 \end_inset
22577
22578 \SpecialChar ldots
22579
22580 \begin_inset Quotes erd
22581 \end_inset
22582
22583  to open a file dialog and navigate to the directory containing the batch
22584  file 
22585 \begin_inset Flex Code
22586 status collapsed
22587
22588 \begin_layout Plain Layout
22589 lyxeditor.bat
22590 \end_layout
22591
22592 \end_inset
22593
22594  (see below).
22595  Select 
22596 \begin_inset Flex Code
22597 status collapsed
22598
22599 \begin_layout Plain Layout
22600 lyxeditor.bat
22601 \end_layout
22602
22603 \end_inset
22604
22605  and then specify the program arguments as 
22606 \begin_inset Flex Code
22607 status collapsed
22608
22609 \begin_layout Plain Layout
22610 %f %l
22611 \end_layout
22612
22613 \end_inset
22614
22615 .
22616  The 
22617 \begin_inset Flex Code
22618 status collapsed
22619
22620 \begin_layout Plain Layout
22621 lyxeditor.bat
22622 \end_layout
22623
22624 \end_inset
22625
22626  wrapper is used for communicating with \SpecialChar LyX
22627  through the 
22628 \emph on
22629 lyxpipe
22630 \emph default
22631  and is as follows:
22632 \end_layout
22633
22634 \begin_layout LyX-Code
22635 @echo off
22636 \begin_inset Newline newline
22637 \end_inset
22638
22639 echo LYXCMD:revdvi:server-goto-file-row:%~1 %2> 
22640 \backslash
22641
22642 \backslash
22643 .
22644 \backslash
22645 pipe
22646 \backslash
22647 lyxpipe.in
22648 \begin_inset Newline newline
22649 \end_inset
22650
22651 type 
22652 \backslash
22653
22654 \backslash
22655 .
22656 \backslash
22657 pipe
22658 \backslash
22659 lyxpipe.out
22660 \end_layout
22661
22662 \begin_layout Standard
22663 Make sure that the \SpecialChar LyX
22664 Server pipe path you specified in \SpecialChar LyX
22665  is 
22666 \begin_inset Flex Code
22667 status collapsed
22668
22669 \begin_layout Plain Layout
22670
22671 \backslash
22672
22673 \backslash
22674 .
22675 \backslash
22676 pipe
22677 \backslash
22678 lyxpipe
22679 \end_layout
22680
22681 \end_inset
22682
22683 , otherwise change the 
22684 \begin_inset Flex Code
22685 status collapsed
22686
22687 \begin_layout Plain Layout
22688 lyxeditor.bat
22689 \end_layout
22690
22691 \end_inset
22692
22693  wrapper accordingly.
22694 \end_layout
22695
22696 \begin_layout Standard
22697 In yap, reverse search is triggered by double-click.
22698 \end_layout
22699
22700 \begin_layout Subsubsection*
22701 SumatraPDF (Windows)
22702 \end_layout
22703
22704 \begin_layout Standard
22705 In order to use SumatraPDF for inverse search, enter 
22706 \begin_inset Flex Code
22707 status collapsed
22708
22709 \begin_layout Plain Layout
22710 SumatraPDF -inverse-search "lyxeditor.bat "%f" %l"
22711 \end_layout
22712
22713 \end_inset
22714
22715  in the viewer setting in 
22716 \begin_inset Flex Noun
22717 status collapsed
22718
22719 \begin_layout Plain Layout
22720 Preferences\SpecialChar menuseparator
22721 File Handling\SpecialChar menuseparator
22722 File formats\SpecialChar menuseparator
22723 PDF (pdflatex)
22724 \end_layout
22725
22726 \end_inset
22727
22728 , where 
22729 \begin_inset Flex Code
22730 status collapsed
22731
22732 \begin_layout Plain Layout
22733 lyxeditor.bat
22734 \end_layout
22735
22736 \end_inset
22737
22738  is the previous wrapper.
22739  If SumatraPDF.exe is not in your command PATH, use its full file name.
22740 \end_layout
22741
22742 \begin_layout Standard
22743 Reverse search is triggered by double-click.
22744 \end_layout
22745
22746 \begin_layout Subsubsection*
22747 YAP (Cygwin)
22748 \end_layout
22749
22750 \begin_layout Standard
22751 First of all, make sure that yap is your default DVI viewer in the Windows
22752  environment, then launch it, choose its 
22753 \begin_inset Flex Noun
22754 status collapsed
22755
22756 \begin_layout Plain Layout
22757 View\SpecialChar menuseparator
22758 Options
22759 \end_layout
22760
22761 \end_inset
22762
22763  menu and select the 
22764 \begin_inset Quotes eld
22765 \end_inset
22766
22767 Inverse DVI Search
22768 \begin_inset Quotes erd
22769 \end_inset
22770
22771  tab.
22772  Click on the 
22773 \begin_inset Quotes eld
22774 \end_inset
22775
22776 New\SpecialChar ldots
22777
22778 \begin_inset Quotes erd
22779 \end_inset
22780
22781  button and, in the window that opens, enter 
22782 \begin_inset Quotes eld
22783 \end_inset
22784
22785 \SpecialChar LyX
22786  Editor
22787 \begin_inset Quotes erd
22788 \end_inset
22789
22790  (or any other name you like) in the 
22791 \begin_inset Quotes eld
22792 \end_inset
22793
22794 Name:
22795 \begin_inset Quotes erd
22796 \end_inset
22797
22798  field.
22799  Now click on the button labeled 
22800 \begin_inset Quotes eld
22801 \end_inset
22802
22803 \SpecialChar ldots
22804
22805 \begin_inset Quotes erd
22806 \end_inset
22807
22808  to open a file dialog and navigate to the directory containing the 
22809 \begin_inset Flex Code
22810 status collapsed
22811
22812 \begin_layout Plain Layout
22813 lyxeditor.exe
22814 \end_layout
22815
22816 \end_inset
22817
22818  program (which is installed by default on Cygwin along with the \SpecialChar LyX
22819  executable).
22820  Select 
22821 \begin_inset Flex Code
22822 status collapsed
22823
22824 \begin_layout Plain Layout
22825 lyxeditor.exe
22826 \end_layout
22827
22828 \end_inset
22829
22830  and then specify the program arguments as 
22831 \begin_inset Flex Code
22832 status collapsed
22833
22834 \begin_layout Plain Layout
22835 -g %f %l
22836 \end_layout
22837
22838 \end_inset
22839
22840 .
22841  In this way, you will be using the 
22842 \emph on
22843 lyxsocket
22844 \emph default
22845  for communicating with \SpecialChar LyX
22846 .
22847  If, for whatever reason, you want to use the 
22848 \emph on
22849 lyxpipe
22850 \emph default
22851 , omit the 
22852 \begin_inset Flex Code
22853 status collapsed
22854
22855 \begin_layout Plain Layout
22856 -g
22857 \end_layout
22858
22859 \end_inset
22860
22861  option and be sure to specify the \SpecialChar LyX
22862 Server pipe path in the \SpecialChar LyX
22863  preferences.
22864 \end_layout
22865
22866 \begin_layout Standard
22867 In yap, reverse search is triggered by double-click.
22868 \end_layout
22869
22870 \begin_layout Subsubsection*
22871 SumatraPDF (Cygwin)
22872 \end_layout
22873
22874 \begin_layout Standard
22875 In order to use SumatraPDF for inverse search, enter 
22876 \begin_inset Flex Code
22877 status collapsed
22878
22879 \begin_layout Plain Layout
22880 SumatraPDF -inverse-search "lyxeditor -g %f %l"
22881 \end_layout
22882
22883 \end_inset
22884
22885  in the viewer setting in 
22886 \begin_inset Flex Noun
22887 status collapsed
22888
22889 \begin_layout Plain Layout
22890 Preferences\SpecialChar menuseparator
22891 File Handling\SpecialChar menuseparator
22892 File formats\SpecialChar menuseparator
22893 PDF (pdflatex)
22894 \end_layout
22895
22896 \end_inset
22897
22898 .
22899  If SumatraPDF.exe is not in your command PATH, use its full posix path.
22900  The 
22901 \begin_inset Flex Code
22902 status collapsed
22903
22904 \begin_layout Plain Layout
22905 -g
22906 \end_layout
22907
22908 \end_inset
22909
22910  enables communication via the 
22911 \emph on
22912 lyxsocket
22913 \emph default
22914 .
22915  Again, omit the 
22916 \begin_inset Flex Code
22917 status collapsed
22918
22919 \begin_layout Plain Layout
22920 -g
22921 \end_layout
22922
22923 \end_inset
22924
22925  option if you want to use the 
22926 \emph on
22927 lyxpipe
22928 \emph default
22929 , and be sure to specify the \SpecialChar LyX
22930 Server pipe path in the \SpecialChar LyX
22931  preferences.
22932 \end_layout
22933
22934 \begin_layout Standard
22935 Reverse search is triggered by double-click.
22936 \end_layout
22937
22938 \begin_layout Section
22939 Forward search
22940 \end_layout
22941
22942 \begin_layout Standard
22943 Forward search is, as the name implies, in a sense the 
22944 \begin_inset Quotes eld
22945 \end_inset
22946
22947 opposite
22948 \begin_inset Quotes erd
22949 \end_inset
22950
22951  of reverse search.
22952  It allows you to let the viewer jump to a given position from within \SpecialChar LyX
22953 .
22954  If forward search is set up (as described in what follows), you can put
22955  the cursor anywhere in your \SpecialChar LyX
22956  document, and hit 
22957 \begin_inset Flex Noun
22958 status collapsed
22959
22960 \begin_layout Plain Layout
22961 Navigate\SpecialChar menuseparator
22962 Forward search
22963 \end_layout
22964
22965 \end_inset
22966
22967  (or select 
22968 \begin_inset Flex Noun
22969 status collapsed
22970
22971 \begin_layout Plain Layout
22972 Forward search
22973 \end_layout
22974
22975 \end_inset
22976
22977  in the context menu via right mouse click), and then the viewer will jump
22978  to that position as well.
22979  This implies, of course, that your viewer supports this function.
22980 \end_layout
22981
22982 \begin_layout Standard
22983 To make forward search possible, you first need to provide the generated
22984  output PDF/DVI file with additional information about the \SpecialChar TeX
22985  sources.
22986  This can be done via the methods described in the section 
22987 \begin_inset CommandInset ref
22988 LatexCommand ref
22989 reference "subsec:rev-search"
22990
22991 \end_inset
22992
22993 .
22994 \end_layout
22995
22996 \begin_layout Standard
22997 Additionally, you need to configure \SpecialChar LyX
22998  for using your viewers in 
22999 \begin_inset Flex Noun
23000 status collapsed
23001
23002 \begin_layout Plain Layout
23003 Tools\SpecialChar menuseparator
23004 Preferences\SpecialChar menuseparator
23005 Output\SpecialChar menuseparator
23006 General
23007 \end_layout
23008
23009 \end_inset
23010
23011 .
23012  We provide a range of tested configurations for some viewers, which you
23013  can select from the drop down list.
23014  If none of these configurations suits you, you have to find out and enter
23015  a suitable configuration yourself.
23016  The definition syntax uses the following placeholders:
23017 \end_layout
23018
23019 \begin_layout Itemize
23020 \noindent
23021 \begin_inset Flex Code
23022 status collapsed
23023
23024 \begin_layout Plain Layout
23025 $$n
23026 \end_layout
23027
23028 \end_inset
23029
23030 : row number
23031 \end_layout
23032
23033 \begin_layout Itemize
23034 \noindent
23035 \begin_inset Flex Code
23036 status collapsed
23037
23038 \begin_layout Plain Layout
23039 $$t
23040 \end_layout
23041
23042 \end_inset
23043
23044 : name of the (temporary) exported .tex file (without path)
23045 \end_layout
23046
23047 \begin_layout Itemize
23048 \noindent
23049 \begin_inset Flex Code
23050 status collapsed
23051
23052 \begin_layout Plain Layout
23053 $$f
23054 \end_layout
23055
23056 \end_inset
23057
23058 : name of the (temporary) exported .tex file (including path)
23059 \end_layout
23060
23061 \begin_layout Itemize
23062 \noindent
23063 \begin_inset Flex Code
23064 status collapsed
23065
23066 \begin_layout Plain Layout
23067 $$o
23068 \end_layout
23069
23070 \end_inset
23071
23072 : name of the exported output file (either dvi or pdf, depending on which
23073  one exists in the temporary directory)
23074 \end_layout
23075
23076 \begin_layout Standard
23077 Note that only some of the viewers provide full and usable forward search
23078  functionality out of the box, among them yap, xdvi, okular
23079 \begin_inset Foot
23080 status collapsed
23081
23082 \begin_layout Plain Layout
23083 You might want to set 
23084 \begin_inset Flex Code
23085 status collapsed
23086
23087 \begin_layout Plain Layout
23088 okular --unique
23089 \end_layout
23090
23091 \end_inset
23092
23093  in 
23094 \begin_inset Flex Noun
23095 status collapsed
23096
23097 \begin_layout Plain Layout
23098 Tools\SpecialChar menuseparator
23099 Preferences\SpecialChar menuseparator
23100 File Handling\SpecialChar menuseparator
23101 File
23102 \begin_inset space ~
23103 \end_inset
23104
23105 Formats
23106 \end_layout
23107
23108 \end_inset
23109
23110
23111 \end_layout
23112
23113 \end_inset
23114
23115 , qpdfview, and SumatraPDF
23116 \begin_inset Foot
23117 status collapsed
23118
23119 \begin_layout Plain Layout
23120 SumatraPDF can also use DDE commands through the external program CMCDDE
23121  — downloadable from 
23122 \begin_inset CommandInset href
23123 LatexCommand href
23124 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
23125 literal "false"
23126
23127 \end_inset
23128
23129
23130 \end_layout
23131
23132 \end_inset
23133
23134 .
23135  Others, such as evince
23136 \begin_inset Foot
23137 status collapsed
23138
23139 \begin_layout Plain Layout
23140 Forward search with evince can be achieved by means of third party helper
23141  scripts.
23142  Please refer to 
23143 \begin_inset CommandInset href
23144 LatexCommand href
23145 target "https://wiki.lyx.org/LyX/SyncTeX"
23146 literal "false"
23147
23148 \end_inset
23149
23150  for details.
23151 \end_layout
23152
23153 \end_inset
23154
23155 , require some extra tools in order to use forward search.
23156  While many of the widespread PDF viewers (most notably Adobe Reader) do
23157  not support forward search at all, some other viewers – e.
23158 \begin_inset space \thinspace{}
23159 \end_inset
23160
23161 g.
23162  xpdf – allow at least to reload the document and jump to a specific page
23163  of the file, so you can at least navigate 
23164 \begin_inset Quotes eld
23165 \end_inset
23166
23167 near
23168 \begin_inset Quotes erd
23169 \end_inset
23170
23171 .
23172  This latter functionality is provided by an external call of synctex (see
23173  the predefined example configurations).
23174  
23175 \end_layout
23176
23177 \begin_layout Standard
23178 Forward search works both with DVI and PDF output.
23179  \SpecialChar LyX
23180  simply checks which preview format you have used before (i.
23181 \begin_inset space \thinspace{}
23182 \end_inset
23183
23184 e., which format is already there in the temporary directory) and chooses
23185  the appropriate configuration for the respective format.
23186 \end_layout
23187
23188 \begin_layout Chapter
23189
23190 \change_deleted 564990737 1671097409
23191 Special Document Classes
23192 \change_unchanged
23193
23194 \end_layout
23195
23196 \begin_layout Section
23197
23198 \change_deleted 564990737 1669742044
23199 A&A Paper
23200 \end_layout
23201
23202 \begin_layout Standard
23203
23204 \change_deleted 564990737 1669742044
23205 by 
23206 \noun on
23207 Peter Sütterlin
23208 \end_layout
23209
23210 \begin_layout Subsection
23211
23212 \change_deleted 564990737 1669742044
23213 Introduction
23214 \end_layout
23215
23216 \begin_layout Standard
23217
23218 \change_deleted 564990737 1669742044
23219 This section describes how \SpecialChar LyX
23220  can be used to write articles for submission
23221  to the scientific journal 
23222 \emph on
23223 Astronomy and Astrophysics
23224 \emph default
23225  (
23226 \begin_inset Flex URL
23227 status collapsed
23228
23229 \begin_layout Plain Layout
23230
23231 https://www.aanda.org/
23232 \end_layout
23233
23234 \end_inset
23235
23236 ) using Version 5.01 of the document class 
23237 \family typewriter
23238 aa.cls
23239 \family default
23240 .
23241  This package can be downloaded from the ftp site
23242 \end_layout
23243
23244 \begin_layout Standard
23245
23246 \change_deleted 564990737 1669742044
23247 \begin_inset VSpace medskip
23248 \end_inset
23249
23250
23251 \end_layout
23252
23253 \begin_layout Standard
23254 \align center
23255
23256 \change_deleted 564990737 1669742044
23257 \begin_inset Flex URL
23258 status collapsed
23259
23260 \begin_layout Plain Layout
23261
23262 ftp://ftp.edpsciences.org/pub/aa/readme.html
23263 \end_layout
23264
23265 \end_inset
23266
23267
23268 \end_layout
23269
23270 \begin_layout Standard
23271
23272 \change_deleted 564990737 1669742044
23273 \begin_inset VSpace medskip
23274 \end_inset
23275
23276
23277 \end_layout
23278
23279 \begin_layout Standard
23280
23281 \change_deleted 564990737 1669742044
23282 A manual comes together with that package, and this text is not meant to
23283  replace the original manual but is merely a short guide in how to realize
23284  the correct form of your paper.
23285  
23286 \end_layout
23287
23288 \begin_layout Standard
23289
23290 \change_deleted 564990737 1669742044
23291 Please note that the publisher of the journal was changed from Springer
23292  to EDP Sciences starting January 1, 2001.
23293  That change involved also some slight changes to the style files, namely
23294  the removal of the thesaurus command.
23295  The \SpecialChar LyX
23296  class aa supports the newest version of these style files, V 5.01.
23297  If you have an older version installed, please upgrade.
23298  For compatibility, the old (version 4) layout has been kept as 
23299 \family sans
23300 article (A&A V4)
23301 \family default
23302 .
23303  Please refer to the comments in 
23304 \family typewriter
23305 \SpecialChar LyX
23306 Dir/layouts/aapaper.layout
23307 \family default
23308 .
23309 \end_layout
23310
23311 \begin_layout Subsection
23312
23313 \change_deleted 564990737 1669742044
23314 Getting started
23315 \end_layout
23316
23317 \begin_layout Standard
23318
23319 \change_deleted 564990737 1669742044
23320 It is recommended you start from the example template distributed with \SpecialChar LyX
23321 .
23322  If you are not using a template, note the following settings:
23323 \end_layout
23324
23325 \begin_layout Itemize
23326
23327 \change_deleted 564990737 1669742044
23328 Select 
23329 \family sans
23330 article (A&A)
23331 \family default
23332  in the 
23333 \family sans
23334 Document\SpecialChar menuseparator
23335 Settings
23336 \family default
23337  dialog (OK, that one was obvious).
23338 \end_layout
23339
23340 \begin_layout Itemize
23341
23342 \change_deleted 564990737 1669742044
23343 Don't change the option 
23344 \family sans
23345 Page
23346 \begin_inset space ~
23347 \end_inset
23348
23349 style
23350 \family default
23351 : Leave it set to 
23352 \family sans
23353 default
23354 \family default
23355 .
23356  The whole layout is done by the macros, you shouldn't change anything.
23357 \end_layout
23358
23359 \begin_layout Subsection
23360
23361 \change_deleted 564990737 1669742044
23362 The header block
23363 \end_layout
23364
23365 \begin_layout Standard
23366
23367 \change_deleted 564990737 1669742044
23368 First thing to enter is the header information.
23369  It consists of seven entries, of which some are optional.
23370  They are
23371 \end_layout
23372
23373 \begin_layout Itemize
23374
23375 \change_deleted 564990737 1669742044
23376
23377 \family sans
23378 Title
23379 \family default
23380 : [required] 
23381 \end_layout
23382
23383 \begin_layout Itemize
23384
23385 \change_deleted 564990737 1669742044
23386
23387 \family sans
23388 Subtitle
23389 \family default
23390 : [optional] 
23391 \end_layout
23392
23393 \begin_layout Itemize
23394
23395 \change_deleted 564990737 1669742044
23396
23397 \family sans
23398 Author
23399 \family default
23400 : [required]
23401 \end_layout
23402
23403 \begin_layout Itemize
23404
23405 \change_deleted 564990737 1669742044
23406
23407 \family sans
23408 Address
23409 \family default
23410 : [required]
23411 \end_layout
23412
23413 \begin_layout Itemize
23414
23415 \change_deleted 564990737 1669742044
23416
23417 \family sans
23418 Offprints
23419 \family default
23420 : [optional] if more than one author: whom to contact for offprint requests.
23421 \end_layout
23422
23423 \begin_layout Itemize
23424
23425 \change_deleted 564990737 1669742044
23426
23427 \family sans
23428 Mail
23429 \family default
23430 : [optional] mail address for contacts.
23431 \end_layout
23432
23433 \begin_layout Itemize
23434
23435 \change_deleted 564990737 1669742044
23436
23437 \family sans
23438 Date
23439 \family default
23440 : [required].
23441  Suggested format is 
23442 \family typewriter
23443 Received: <date>; Accepted <date> 
23444 \end_layout
23445
23446 \begin_layout Standard
23447
23448 \change_deleted 564990737 1669742044
23449 There is no need to issue the 
23450 \family typewriter
23451
23452 \backslash
23453 maketitle
23454 \family default
23455  command, this is done automatically by \SpecialChar LyX
23456  when the header is finished.
23457  Although the order of the single header entries doesn't matter it is advised
23458  to keep the above sequence, just to get the best optics and meets the layout
23459  of the real document.
23460 \end_layout
23461
23462 \begin_layout Standard
23463
23464 \change_deleted 564990737 1669742044
23465 If you want to place footnotes in the header block, e.
23466 \begin_inset space \thinspace{}
23467 \end_inset
23468
23469 g.
23470 \begin_inset space \space{}
23471 \end_inset
23472
23473 to state your present address, just use the standard footnote via the menu
23474  
23475 \family sans
23476 Insert\SpecialChar menuseparator
23477 Footnote.
23478
23479 \family default
23480  \SpecialChar LyX
23481  will automagically use the term 
23482 \family typewriter
23483
23484 \backslash
23485 thanks{}
23486 \family default
23487  in that case.
23488 \end_layout
23489
23490 \begin_layout Standard
23491
23492 \change_deleted 564990737 1669742044
23493 Under 
23494 \family sans
23495 Edit\SpecialChar menuseparator
23496 Text Style
23497 \family default
23498 , you'll find two insets which are relevant for the titling:
23499 \end_layout
23500
23501 \begin_layout Itemize
23502
23503 \change_deleted 564990737 1669742044
23504
23505 \family sans
23506 Institute
23507 \family typewriter
23508  
23509 \family default
23510 to mark corresponding author\SpecialChar breakableslash
23511 institute pairs.
23512  The institutes are numbered sequentially as they appear in the 
23513 \family sans
23514 Address
23515 \family default
23516  field, so you have to put a marker to each author.
23517 \end_layout
23518
23519 \begin_layout Itemize
23520
23521 \change_deleted 564990737 1669742044
23522
23523 \family sans
23524 Email
23525 \family default
23526  to supply an email address for fast contact.
23527 \end_layout
23528
23529 \begin_layout Standard
23530
23531 \change_deleted 564990737 1669742044
23532 In addition to these topics, the macros use one additional \SpecialChar LaTeX
23533  command that
23534  has no counterpart in \SpecialChar LyX
23535 :
23536 \end_layout
23537
23538 \begin_layout Itemize
23539
23540 \change_deleted 564990737 1669742044
23541
23542 \family typewriter
23543
23544 \backslash
23545 and
23546 \family default
23547  to separate different names for more than one author and institute, respectivel
23548 y.
23549 \end_layout
23550
23551 \begin_layout Standard
23552
23553 \change_deleted 564990737 1669742044
23554 The appropriate command has to be entered in \SpecialChar LyX
23555  and marked as \SpecialChar LaTeX
23556  code.
23557  See the examples.
23558  
23559 \end_layout
23560
23561 \begin_layout Subsection
23562
23563 \change_deleted 564990737 1669742044
23564 The abstract
23565 \end_layout
23566
23567 \begin_layout Standard
23568
23569 \change_deleted 564990737 1669742044
23570 The abstract should immediately follow the header block.
23571  With version 5 the abstract environment was changed to a command, and there
23572  is now a restriction to only one paragraph.
23573  In addition, it should contain an entry with the keywords.
23574  This is done via the paragraph style 
23575 \family sans
23576 Keywords
23577 \family default
23578 .
23579  Refer to the example paper.
23580 \end_layout
23581
23582 \begin_layout Subsection
23583
23584 \change_deleted 564990737 1669742044
23585 Supported environments
23586 \end_layout
23587
23588 \begin_layout Standard
23589
23590 \change_deleted 564990737 1669742044
23591 The A&A paper layout supports the following environments for structuring
23592  your text:
23593 \end_layout
23594
23595 \begin_layout Itemize
23596
23597 \change_deleted 564990737 1669742044
23598
23599 \family sans
23600 Standard
23601 \end_layout
23602
23603 \begin_layout Itemize
23604
23605 \change_deleted 564990737 1669742044
23606
23607 \family sans
23608 Section
23609 \end_layout
23610
23611 \begin_layout Itemize
23612
23613 \change_deleted 564990737 1669742044
23614
23615 \family sans
23616 Subsection
23617 \end_layout
23618
23619 \begin_layout Itemize
23620
23621 \change_deleted 564990737 1669742044
23622
23623 \family sans
23624 Subsubsection
23625 \end_layout
23626
23627 \begin_layout Itemize
23628
23629 \change_deleted 564990737 1669742044
23630
23631 \family sans
23632 Itemize
23633 \end_layout
23634
23635 \begin_layout Itemize
23636
23637 \change_deleted 564990737 1669742044
23638
23639 \family sans
23640 Enumerate
23641 \end_layout
23642
23643 \begin_layout Itemize
23644
23645 \change_deleted 564990737 1669742044
23646
23647 \family sans
23648 Description
23649 \end_layout
23650
23651 \begin_layout Itemize
23652
23653 \change_deleted 564990737 1669742044
23654
23655 \family sans
23656 Caption
23657 \end_layout
23658
23659 \begin_layout Itemize
23660
23661 \change_deleted 564990737 1669742044
23662
23663 \family sans
23664 Abstract
23665 \end_layout
23666
23667 \begin_layout Itemize
23668
23669 \change_deleted 564990737 1669742044
23670
23671 \family sans
23672 Acknowledgment
23673 \end_layout
23674
23675 \begin_layout Itemize
23676
23677 \change_deleted 564990737 1669742044
23678
23679 \family sans
23680 Bibliography
23681 \end_layout
23682
23683 \begin_layout Itemize
23684
23685 \change_deleted 564990737 1669742044
23686
23687 \family sans
23688 \SpecialChar LaTeX
23689
23690 \end_layout
23691
23692 \begin_layout Subsection
23693
23694 \change_deleted 564990737 1669742044
23695 Commands not supported by \SpecialChar LyX
23696
23697 \end_layout
23698
23699 \begin_layout Standard
23700
23701 \change_deleted 564990737 1669742044
23702 Some commands are not yet supported by the 
23703 \family sans
23704 paper (A&A)
23705 \family default
23706  layout for \SpecialChar LyX
23707 .
23708  Some have already been mentioned.
23709  For the sake of completeness, they are listed all together here:
23710 \end_layout
23711
23712 \begin_layout Itemize
23713
23714 \change_deleted 564990737 1669742044
23715
23716 \family typewriter
23717
23718 \backslash
23719 and
23720 \end_layout
23721
23722 \begin_layout Itemize
23723
23724 \change_deleted 564990737 1669742044
23725
23726 \family typewriter
23727
23728 \backslash
23729 authorrunning
23730 \end_layout
23731
23732 \begin_layout Itemize
23733
23734 \change_deleted 564990737 1669742044
23735
23736 \family typewriter
23737
23738 \backslash
23739 object{}
23740 \end_layout
23741
23742 \begin_layout Itemize
23743
23744 \change_deleted 564990737 1669742044
23745
23746 \family typewriter
23747
23748 \backslash
23749 titlerunning{}
23750 \end_layout
23751
23752 \begin_layout Standard
23753
23754 \change_deleted 564990737 1669742044
23755 If you want to use any of these commands, you have to enter them yourself.
23756  
23757 \series bold
23758 Do not forget to mark them as \SpecialChar LaTeX
23759  code!
23760 \end_layout
23761
23762 \begin_layout Subsection
23763
23764 \change_deleted 564990737 1669742044
23765 Figure and Table Floats
23766 \end_layout
23767
23768 \begin_layout Standard
23769
23770 \change_deleted 564990737 1669742044
23771 \SpecialChar LyX
23772  provides support for the necessary float environments 
23773 \family sans
23774 figure, figure*, table
23775 \family default
23776  and 
23777 \family sans
23778 table*
23779 \family default
23780 , therefore we won't tell much about it here.
23781  Refer to the 
23782 \emph on
23783 User's
23784 \begin_inset space ~
23785 \end_inset
23786
23787 Guide
23788 \emph default
23789 .
23790  Just remember that tables should be left-aligned.
23791  For that, select the table and change the alignment in 
23792 \family sans
23793 Edit\SpecialChar menuseparator
23794 Paragraph
23795 \begin_inset space ~
23796 \end_inset
23797
23798 Settings.
23799 \end_layout
23800
23801 \begin_layout Standard
23802
23803 \change_deleted 564990737 1669742044
23804 There is only one special thing: the figures with caption besides the figure.
23805  To create such a figure, you have to do the following:
23806 \end_layout
23807
23808 \begin_layout Enumerate
23809
23810 \change_deleted 564990737 1669742044
23811 Create a wide figure float: 
23812 \family sans
23813 Insert\SpecialChar menuseparator
23814 Float\SpecialChar menuseparator
23815 Figure
23816 \family default
23817 , then right click in the figure and select 
23818 \family sans
23819 Span
23820 \begin_inset space ~
23821 \end_inset
23822
23823 columns
23824 \family default
23825 .
23826 \end_layout
23827
23828 \begin_layout Enumerate
23829
23830 \change_deleted 564990737 1669742044
23831 Enter your caption text.
23832 \end_layout
23833
23834 \begin_layout Enumerate
23835
23836 \change_deleted 564990737 1669742044
23837 Press 
23838 \family sans
23839 Return
23840 \family default
23841  to move the cursor above the caption.
23842 \end_layout
23843
23844 \begin_layout Enumerate
23845
23846 \change_deleted 564990737 1669742044
23847 Insert your figure
23848 \end_layout
23849
23850 \begin_layout Enumerate
23851
23852 \change_deleted 564990737 1669742044
23853 Position the cursor behind the figure and insert a horizontal fill: 
23854 \family sans
23855 Insert\SpecialChar menuseparator
23856 Special
23857 \begin_inset space ~
23858 \end_inset
23859
23860 Character\SpecialChar menuseparator
23861 Horizontal
23862 \begin_inset space ~
23863 \end_inset
23864
23865 Fill
23866 \family default
23867 .
23868 \end_layout
23869
23870 \begin_layout Enumerate
23871
23872 \change_deleted 564990737 1669742044
23873 Switch to \SpecialChar LaTeX
23874  mode: 
23875 \family sans
23876 M-c
23877 \begin_inset space ~
23878 \end_inset
23879
23880 t
23881 \family default
23882 .
23883 \end_layout
23884
23885 \begin_layout Enumerate
23886
23887 \change_deleted 564990737 1669742044
23888 Enter 
23889 \family typewriter
23890
23891 \backslash
23892 parbox[b]{55mm}{
23893 \family default
23894 .
23895  
23896 \series bold
23897 Do not close the brace!
23898 \end_layout
23899
23900 \begin_layout Enumerate
23901
23902 \change_deleted 564990737 1669742044
23903 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
23904  mode and insert
23905  the closing brace: 
23906 \family sans
23907 M-c
23908 \begin_inset space ~
23909 \end_inset
23910
23911 t
23912 \family default
23913  
23914 \family typewriter
23915 }
23916 \family default
23917 .
23918 \end_layout
23919
23920 \begin_layout Standard
23921
23922 \change_deleted 564990737 1669742044
23923 Also, refer to the figures in the example paper.
23924 \end_layout
23925
23926 \begin_layout Subsection
23927
23928 \change_deleted 564990737 1669742044
23929 Referee layout
23930 \end_layout
23931
23932 \begin_layout Standard
23933
23934 \change_deleted 564990737 1669742044
23935 For submission, the paper has to be formated in a special double-spacing
23936  layout.
23937  For this purpose, you have to give the option 
23938 \family typewriter
23939 referee
23940 \family default
23941  to the document class.
23942  This must be done using the custom class options field in the 
23943 \family sans
23944 Document\SpecialChar menuseparator
23945 Settings
23946 \family default
23947  dialog.
23948  Just enter the string 
23949 \family typewriter
23950 referee
23951 \family default
23952  there.
23953 \end_layout
23954
23955 \begin_layout Subsection
23956
23957 \change_deleted 564990737 1669742044
23958 The example paper
23959 \end_layout
23960
23961 \begin_layout Standard
23962
23963 \change_deleted 564990737 1669742044
23964 The 
23965 \family sans
23966 Examples
23967 \family default
23968  directory contains an example paper written with \SpecialChar LyX
23969 .
23970  It is the example paper from the original macro package, translated to
23971  \SpecialChar LyX
23972 .
23973  Use it for inspiration, and compare the original \SpecialChar LaTeX
23974  code with \SpecialChar LyX
23975  way of writing.
23976 \end_layout
23977
23978 \begin_layout Section
23979
23980 \change_deleted 564990737 1671097429
23981 Dinbrief
23982 \end_layout
23983
23984 \begin_layout Standard
23985
23986 \change_deleted 564990737 1671097429
23987 The document class 
23988 \family sans
23989 dinbrief
23990 \family default
23991  can be used to type letters according to German conventions.
23992  A template file is included in 
23993 \family typewriter
23994 .../lyx/share/templates
23995 \family default
23996  for you to use as a starting point.
23997 \end_layout
23998
23999 \begin_layout Section
24000
24001 \change_deleted 564990737 1671097429
24002 Elsevier Journals
24003 \end_layout
24004
24005 \begin_layout Standard
24006
24007 \change_deleted 564990737 1671097429
24008 See the \SpecialChar LyX
24009  template file 
24010 \family typewriter
24011 elsarticle.lyx
24012 \family default
24013 .
24014  It contains all infos you need.
24015 \end_layout
24016
24017 \begin_layout Section
24018
24019 \change_deleted 564990737 1669755802
24020 ijmpc and ijmpd
24021 \end_layout
24022
24023 \begin_layout Standard
24024
24025 \change_deleted 564990737 1669755802
24026 by 
24027 \noun on
24028 Panayotis Papasotiriou
24029 \end_layout
24030
24031 \begin_layout Subsection
24032
24033 \change_deleted 564990737 1669755802
24034 Overview
24035 \end_layout
24036
24037 \begin_layout Standard
24038
24039 \change_deleted 564990737 1669755802
24040 The ijmpc package is a set of macros that facilitates electronic manuscript
24041  submission to the 
24042 \emph on
24043 International Journal of Modern Physics C
24044 \emph default
24045 .
24046  Similarly, the ijmpd package is for creating manuscripts to be submitted
24047  to the 
24048 \emph on
24049 International Journal of Modern Physics D
24050 \emph default
24051 .
24052  Both journals are published by World Scientific.
24053  The corresponding document classes are named 
24054 \family typewriter
24055 ws-ijmpc.cls
24056 \family default
24057  and 
24058 \family typewriter
24059 ws-ijmpd.cls
24060 \family default
24061 , respectively.
24062  These files, together with instructions for the authors, can be downloaded
24063  from the sites 
24064 \begin_inset Flex URL
24065 status collapsed
24066
24067 \begin_layout Plain Layout
24068
24069 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
24070 \end_layout
24071
24072 \end_inset
24073
24074  and 
24075 \begin_inset Flex URL
24076 status collapsed
24077
24078 \begin_layout Plain Layout
24079
24080 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
24081 \end_layout
24082
24083 \end_inset
24084
24085 .
24086  Both packages are modified versions of the standard 
24087 \begin_inset Quotes eld
24088 \end_inset
24089
24090 article
24091 \begin_inset Quotes erd
24092 \end_inset
24093
24094  package, and they are almost (but not exactly) identical.
24095  Most of their features are supported by \SpecialChar LyX
24096 .
24097  I have used \SpecialChar LyX
24098  successfully to write articles submitted to both journals
24099  without any problem.
24100 \end_layout
24101
24102 \begin_layout Subsection
24103
24104 \change_deleted 564990737 1669755802
24105 Writing a paper
24106 \end_layout
24107
24108 \begin_layout Standard
24109
24110 \change_deleted 564990737 1669755802
24111 As usual, the easiest way to write a paper is to start with a template.
24112  Click on 
24113 \family sans
24114 File\SpecialChar menuseparator
24115 New from
24116 \family default
24117  
24118 \family sans
24119 Template
24120 \family default
24121 , then choose the 
24122 \family typewriter
24123 ijmpc.lyx
24124 \family default
24125  or 
24126 \family typewriter
24127 ijmpd.lyx
24128 \family default
24129  template.
24130  This will give an (almost) empty document that includes the most common
24131  fields found in a manuscript.
24132  Simply overwrite the existing text (including the brackets, 
24133 \family typewriter
24134 <>
24135 \family default
24136 ) with your text.
24137  You should keep in mind the following remarks.
24138 \end_layout
24139
24140 \begin_layout Enumerate
24141
24142 \change_deleted 564990737 1669755802
24143 \SpecialChar LyX
24144  won't let you change the font size and the page style of the document,
24145  because such modifications are not allowed by both packages.
24146 \end_layout
24147
24148 \begin_layout Enumerate
24149
24150 \change_deleted 564990737 1669755802
24151 The language of the document should not be changed.
24152  Before previewing your paper, be sure that the babel package is not used.
24153  To do this, click on 
24154 \begin_inset Info
24155 type  "menu"
24156 arg   "dialog-show document"
24157 \end_inset
24158
24159  
24160 \family sans
24161 \SpecialChar menuseparator
24162 Language
24163 \family default
24164 , and select 
24165 \begin_inset Quotes eld
24166 \end_inset
24167
24168 None
24169 \begin_inset Quotes erd
24170 \end_inset
24171
24172  as 
24173 \family sans
24174 Language Package
24175 \family default
24176 .
24177 \end_layout
24178
24179 \begin_layout Enumerate
24180
24181 \change_deleted 564990737 1669755802
24182 The 
24183 \begin_inset Quotes eld
24184 \end_inset
24185
24186 Keywords
24187 \begin_inset Quotes erd
24188 \end_inset
24189
24190  style must be used to define keywords.
24191 \end_layout
24192
24193 \begin_layout Enumerate
24194
24195 \change_deleted 564990737 1669755802
24196 The ijmpc package provides a style named 
24197 \begin_inset Quotes eld
24198 \end_inset
24199
24200 Classification Codes
24201 \begin_inset Quotes erd
24202 \end_inset
24203
24204 , which can be used to define classification codes, such as PACS numbers.
24205  Note that this facility is not supported by the ijmpd package.
24206 \end_layout
24207
24208 \begin_layout Enumerate
24209
24210 \change_deleted 564990737 1669755802
24211 Several new environments are available: 
24212 \begin_inset Quotes eld
24213 \end_inset
24214
24215 Definition
24216 \begin_inset Quotes erd
24217 \end_inset
24218
24219
24220 \begin_inset Quotes eld
24221 \end_inset
24222
24223 Step
24224 \begin_inset Quotes erd
24225 \end_inset
24226
24227
24228 \begin_inset Quotes eld
24229 \end_inset
24230
24231 Example
24232 \begin_inset Quotes erd
24233 \end_inset
24234
24235
24236 \begin_inset Quotes eld
24237 \end_inset
24238
24239 Remark
24240 \begin_inset Quotes erd
24241 \end_inset
24242
24243
24244 \begin_inset Quotes eld
24245 \end_inset
24246
24247 Notation
24248 \begin_inset Quotes erd
24249 \end_inset
24250
24251
24252 \begin_inset Quotes eld
24253 \end_inset
24254
24255 Theorem
24256 \begin_inset Quotes erd
24257 \end_inset
24258
24259
24260 \begin_inset Quotes eld
24261 \end_inset
24262
24263 Proof
24264 \begin_inset Quotes erd
24265 \end_inset
24266
24267
24268 \begin_inset Quotes eld
24269 \end_inset
24270
24271 Corollary
24272 \begin_inset Quotes erd
24273 \end_inset
24274
24275
24276 \begin_inset Quotes eld
24277 \end_inset
24278
24279 Lemma
24280 \begin_inset Quotes erd
24281 \end_inset
24282
24283
24284 \begin_inset Quotes eld
24285 \end_inset
24286
24287 Proposition
24288 \begin_inset Quotes erd
24289 \end_inset
24290
24291
24292 \begin_inset Quotes eld
24293 \end_inset
24294
24295 Prop
24296 \begin_inset Quotes erd
24297 \end_inset
24298
24299
24300 \begin_inset Quotes eld
24301 \end_inset
24302
24303 Question
24304 \begin_inset Quotes erd
24305 \end_inset
24306
24307
24308 \begin_inset Quotes eld
24309 \end_inset
24310
24311 Claim
24312 \begin_inset Quotes erd
24313 \end_inset
24314
24315 , and 
24316 \begin_inset Quotes eld
24317 \end_inset
24318
24319 Conjecture
24320 \begin_inset Quotes erd
24321 \end_inset
24322
24323 .
24324  Their use is more or less obvious.
24325  \SpecialChar LyX
24326  supports all these environments; it will use the proper label, text style,
24327  and numbering scheme for each of them.
24328 \end_layout
24329
24330 \begin_layout Enumerate
24331
24332 \change_deleted 564990737 1669755802
24333 Both packages use basic citations; the natbib package should not be used.
24334  In \SpecialChar LyX
24335 , citation references are shown as usual; in the output, citations are
24336  shown as superscripts.
24337  If you want to use a citation as normal text, you should use the 
24338 \family typewriter
24339 refcite
24340 \family default
24341  command, e.
24342 \begin_inset space \thinspace{}
24343 \end_inset
24344
24345 g.
24346 \begin_inset space \space{}
24347 \end_inset
24348
24349
24350 \begin_inset Quotes eld
24351 \end_inset
24352
24353 See Ref.
24354 \begin_inset space \space{}
24355 \end_inset
24356
24357
24358 \family typewriter
24359
24360 \backslash
24361 refcite{key}
24362 \family default
24363
24364 \begin_inset Quotes erd
24365 \end_inset
24366
24367 .
24368 \end_layout
24369
24370 \begin_layout Enumerate
24371
24372 \change_deleted 564990737 1669755802
24373 There is no 
24374 \begin_inset Quotes eld
24375 \end_inset
24376
24377 Acknowledgments
24378 \begin_inset Quotes erd
24379 \end_inset
24380
24381  section in both packages.
24382  To put acknowledgments, just use the 
24383 \begin_inset Quotes eld
24384 \end_inset
24385
24386 Section*
24387 \begin_inset Quotes erd
24388 \end_inset
24389
24390  environment.
24391 \end_layout
24392
24393 \begin_layout Enumerate
24394
24395 \change_deleted 564990737 1669755802
24396 Appendices may be added to the paper, 
24397 \emph on
24398 after
24399 \emph default
24400  the Acknowledgments and 
24401 \shape italic
24402 before
24403 \shape default
24404  the References.
24405  \SpecialChar LyX
24406  provides a special environment, called 
24407 \begin_inset Quotes eld
24408 \end_inset
24409
24410 Appendices Section
24411 \begin_inset Quotes erd
24412 \end_inset
24413
24414  which marks the beginning of the appendices.
24415  This environment should be left blank; it just sends a \SpecialChar LaTeX
24416  command, but nothing
24417  is really printed.
24418  In \SpecialChar LyX
24419 , the word 
24420 \begin_inset Quotes eld
24421 \end_inset
24422
24423 Appendix
24424 \begin_inset Quotes erd
24425 \end_inset
24426
24427  is printed with blue letters, as a signal that all sections after that
24428  point are appendices.
24429  To write an appendix, use the 
24430 \begin_inset Quotes eld
24431 \end_inset
24432
24433 Appendix
24434 \begin_inset Quotes erd
24435 \end_inset
24436
24437  environment.
24438  \SpecialChar LyX
24439  will number each appendix with capital letters, as required by both journals.
24440  Note that 
24441 \begin_inset Quotes eld
24442 \end_inset
24443
24444 Appendices Section
24445 \begin_inset Quotes erd
24446 \end_inset
24447
24448  
24449 \emph on
24450 must
24451 \emph default
24452  be present before the first appendix; if not, all appendices will be numbered
24453  as normal sections in the output.
24454 \end_layout
24455
24456 \begin_layout Enumerate
24457
24458 \change_deleted 564990737 1669755802
24459 The ijmpc and the ijmpd packages use the 
24460 \family typewriter
24461 tbl
24462 \family default
24463  command to implement table captions.
24464  As a result, a table created by \SpecialChar LyX
24465  is printed correctly, but its caption
24466  is ignored.
24467  However, you can use some \SpecialChar TeX
24468  code to overcome this problem, so that captions
24469  are printed as expected.
24470  To do so, create a float table as usual, remove the caption, and replace
24471  it with the \SpecialChar TeX
24472  code 
24473 \family typewriter
24474
24475 \backslash
24476 tbl{
24477 \emph on
24478 your table caption
24479 \emph default
24480 }{
24481 \family default
24482  (sic); you must also the \SpecialChar TeX
24483  code 
24484 \family typewriter
24485 }
24486 \family default
24487  immediately after the tabular material.
24488  Study the example table included in the template files to see how this
24489  trick is implemented.
24490  Alternatively, If you need table captions, you should implement the whole
24491  table float in a 
24492 \family typewriter
24493 .tex
24494 \family default
24495  file, then include this file to the \SpecialChar LyX
24496  document (
24497 \family sans
24498 Insert\SpecialChar menuseparator
24499 File\SpecialChar menuseparator
24500 Child
24501 \begin_inset space ~
24502 \end_inset
24503
24504 Document
24505 \family default
24506 ).
24507  Details on how to create a table float can be found in the files 
24508 \family typewriter
24509 ws-ijmpc.tex
24510 \family default
24511  and 
24512 \family typewriter
24513 ws-ijmpd.tex
24514 \family default
24515 , included in the corresponding packages.
24516 \end_layout
24517
24518 \begin_layout Subsection
24519
24520 \change_deleted 564990737 1669755802
24521 Preparing a paper for submission
24522 \end_layout
24523
24524 \begin_layout Standard
24525
24526 \change_deleted 564990737 1669755802
24527 Before you submit your paper you must export the \SpecialChar LyX
24528  document as a \SpecialChar LaTeX
24529  file (
24530 \family sans
24531 File\SpecialChar menuseparator
24532 Export\SpecialChar menuseparator
24533 \SpecialChar LaTeX
24534
24535 \family default
24536 )
24537 \begin_inset Foot
24538 status open
24539
24540 \begin_layout Plain Layout
24541 Actually you have the choice between \SpecialChar LaTeX
24542  (plain) and pdflatex.
24543  If you intend to use pdflatex to prepare the paper, you should use the
24544  pdflatex option so that included graphics are converted to PDF format,
24545  ready for use by pdflatex.
24546 \end_layout
24547
24548 \end_inset
24549
24550 , then make the following changes to the resulting 
24551 \family typewriter
24552 .tex
24553 \family default
24554  file.
24555 \end_layout
24556
24557 \begin_layout Enumerate
24558
24559 \change_deleted 564990737 1669755802
24560 Remove the comment lines before the 
24561 \family typewriter
24562
24563 \backslash
24564 documentclass
24565 \family default
24566  command.
24567 \end_layout
24568
24569 \begin_layout Enumerate
24570
24571 \change_deleted 564990737 1669755802
24572 Remove everything between (and including) the 
24573 \family typewriter
24574
24575 \backslash
24576 makeatletter
24577 \family default
24578  and 
24579 \family typewriter
24580
24581 \backslash
24582 makeatother
24583 \family default
24584  commands, except for any commands you specifically put into the \SpecialChar LaTeX
24585  preamble.
24586 \end_layout
24587
24588 \begin_layout Standard
24589
24590 \change_deleted 564990737 1669755802
24591 The modified 
24592 \family typewriter
24593 .tex
24594 \family default
24595  file should be saved and processed through \SpecialChar LaTeX
24596  as many times as necessary.
24597  You may also want to check the resulting 
24598 \family typewriter
24599 .dvi
24600 \family default
24601  document.
24602 \change_unchanged
24603
24604 \end_layout
24605
24606 \begin_layout Section
24607
24608 \change_deleted 564990737 1669801478
24609 iopart
24610 \end_layout
24611
24612 \begin_layout Standard
24613
24614 \change_deleted 564990737 1669801478
24615 by 
24616 \noun on
24617 Uwe Stöhr
24618 \end_layout
24619
24620 \begin_layout Subsection
24621
24622 \change_deleted 564990737 1669801478
24623 Overview
24624 \end_layout
24625
24626 \begin_layout Standard
24627
24628 \change_deleted 564990737 1669801478
24629 The iopart package provides a document class to create electronic manuscript
24630  submission to the journals published by the Institute of Physics.
24631  Instructions for the authors how to create a paper using the iopart class
24632  can be downloaded together with the iopart package from the site 
24633 \begin_inset Flex URL
24634 status collapsed
24635
24636 \begin_layout Plain Layout
24637
24638 ftp://ftp.iop.org/pub/journals/latex2e
24639 \end_layout
24640
24641 \end_inset
24642
24643 .
24644 \end_layout
24645
24646 \begin_layout Subsection
24647
24648 \change_deleted 564990737 1669801478
24649 Writing a paper
24650 \end_layout
24651
24652 \begin_layout Standard
24653
24654 \change_deleted 564990737 1669801478
24655 The easiest way to write a paper is to start with the template 
24656 \emph on
24657 IOP-article.lyx
24658 \emph default
24659  that is available via 
24660 \family sans
24661 File\SpecialChar menuseparator
24662 New From Template
24663 \family default
24664  The template explains how to use the special text environments.
24665  Here are the most important advices:
24666 \end_layout
24667
24668 \begin_layout Itemize
24669
24670 \change_deleted 564990737 1669801478
24671 To be able to compile your document to a PDF, PS, or DVI, ensure that the
24672  no AMS packages are loaded in 
24673 \family sans
24674 Document\SpecialChar menuseparator
24675 Settings\SpecialChar menuseparator
24676 Math Options
24677 \family default
24678 !
24679 \end_layout
24680
24681 \begin_layout Itemize
24682
24683 \change_deleted 564990737 1669801478
24684
24685 \size normal
24686 The title environment defines the kind of your paper.
24687  So use one of the following environments for the title:
24688 \end_layout
24689
24690 \begin_deeper
24691 \begin_layout Itemize
24692
24693 \change_deleted 564990737 1669801478
24694
24695 \family sans
24696 \size normal
24697 Title
24698 \family default
24699  for a Paper
24700 \end_layout
24701
24702 \begin_layout Itemize
24703
24704 \change_deleted 564990737 1669801478
24705
24706 \family sans
24707 \size normal
24708 Review
24709 \family default
24710  for a Review
24711 \end_layout
24712
24713 \begin_layout Itemize
24714
24715 \change_deleted 564990737 1669801478
24716
24717 \family sans
24718 \size normal
24719 Topical
24720 \family default
24721  for a Topical review
24722 \end_layout
24723
24724 \begin_layout Itemize
24725
24726 \change_deleted 564990737 1669801478
24727
24728 \family sans
24729 \size normal
24730 Comment
24731 \family default
24732  for a Comment
24733 \end_layout
24734
24735 \begin_layout Itemize
24736
24737 \change_deleted 564990737 1669801478
24738
24739 \family sans
24740 \size normal
24741 Note
24742 \family default
24743  for a Note
24744 \end_layout
24745
24746 \begin_layout Itemize
24747
24748 \change_deleted 564990737 1669801478
24749
24750 \family sans
24751 \size normal
24752 Paper
24753 \family default
24754  for a Paper (same as Title)
24755 \end_layout
24756
24757 \begin_layout Itemize
24758
24759 \change_deleted 564990737 1669801478
24760
24761 \family sans
24762 \size normal
24763 Prelim
24764 \family default
24765  for a Preliminary communication
24766 \end_layout
24767
24768 \begin_layout Itemize
24769
24770 \change_deleted 564990737 1669801478
24771
24772 \family sans
24773 \size normal
24774 Rapid
24775 \family default
24776  for a Rapid communication
24777 \end_layout
24778
24779 \begin_layout Itemize
24780
24781 \change_deleted 564990737 1669801478
24782
24783 \family sans
24784 \size normal
24785 Letter
24786 \family default
24787  for a Letter to the editor
24788 \end_layout
24789
24790 \end_deeper
24791 \begin_layout Itemize
24792
24793 \change_deleted 564990737 1669801478
24794
24795 \size normal
24796 All title environments except of 
24797 \family sans
24798 Letter
24799 \family default
24800  can have an optional short title.
24801 \end_layout
24802
24803 \begin_layout Itemize
24804
24805 \change_deleted 564990737 1669801478
24806 There is a general title environment 
24807 \family sans
24808 Article
24809 \family default
24810  which is not directly supported by \SpecialChar LyX
24811 .
24812  This can be used as \SpecialChar TeX
24813  code when your document doesn't fit into one of the
24814  other title types.
24815 \end_layout
24816
24817 \begin_layout Standard
24818
24819 \change_deleted 564990737 1669801478
24820 For more informations like hints for special table and formula formatting,
24821  look at the IOP author guidelines.
24822 \change_unchanged
24823
24824 \end_layout
24825
24826 \begin_layout Section
24827
24828 \change_deleted 564990737 1670317155
24829 Kluwer
24830 \end_layout
24831
24832 \begin_layout Standard
24833
24834 \change_deleted 564990737 1670317155
24835 by 
24836 \noun on
24837 Panayotis Papasotiriou
24838 \end_layout
24839
24840 \begin_layout Subsection
24841
24842 \change_deleted 564990737 1670317155
24843 Overview
24844 \end_layout
24845
24846 \begin_layout Standard
24847
24848 \change_deleted 564990737 1670317155
24849 The Kluwer package is a set of macros produced by Kluwer Academic Publishers
24850  that facilitates electronic manuscript submission to the journals they
24851  publish.
24852  Most known of them (at least in my domain of interest) are 
24853 \emph on
24854 Astrophysics and Space Science
24855 \emph default
24856  and 
24857 \emph on
24858 Solar Physics
24859 \emph default
24860 , but there are many others (see a complete list at 
24861 \begin_inset Flex URL
24862 status collapsed
24863
24864 \begin_layout Plain Layout
24865
24866 http://www.wkap.nl/jrnllist.htm/JRNLHOME
24867 \end_layout
24868
24869 \end_inset
24870
24871 ).
24872  The Kluwer package may be downloaded from the site 
24873 \begin_inset Flex URL
24874 status collapsed
24875
24876 \begin_layout Plain Layout
24877
24878 http://www.wkap.nl/kaphtml.htm/STYLEFILES
24879 \end_layout
24880
24881 \end_inset
24882
24883 .
24884  A complete user guide is contained in that package (but it can also be
24885  downloaded separately).
24886 \end_layout
24887
24888 \begin_layout Standard
24889
24890 \change_deleted 564990737 1670317155
24891 \SpecialChar LyX
24892  supports many features of the package but not everything.
24893  However, the \SpecialChar TeX
24894  code needed is reduced to some 
24895 \begin_inset Quotes eld
24896 \end_inset
24897
24898 peculiar
24899 \begin_inset Quotes erd
24900 \end_inset
24901
24902  commands of the package (see
24903 \begin_inset space ~
24904 \end_inset
24905
24906
24907 \begin_inset CommandInset ref
24908 LatexCommand ref
24909 reference "subsec:kluwer_peculiarities"
24910
24911 \end_inset
24912
24913 ).
24914  I have recently used \SpecialChar LyX
24915  to write an article submitted to the 
24916 \emph on
24917 Astrophysics and Space Science
24918 \emph default
24919  without any problem.
24920 \end_layout
24921
24922 \begin_layout Subsection
24923
24924 \change_deleted 564990737 1670317155
24925 Writing a paper
24926 \end_layout
24927
24928 \begin_layout Standard
24929
24930 \change_deleted 564990737 1670317155
24931 The easiest way to write a paper is to start with the Kluwer template file.
24932  Click on 
24933 \family sans
24934 File\SpecialChar menuseparator
24935 New from
24936 \family default
24937  
24938 \family sans
24939 Template
24940 \family default
24941 , then choose the 
24942 \family typewriter
24943 kluwer.lyx
24944 \family default
24945  template.
24946  This will give an (almost) empty document that includes the most common
24947  fields found in a manuscript and a short description of their use.
24948  As in most templates, simply overwrite the existing text (including the
24949  brackets, 
24950 \family typewriter
24951 <>
24952 \family default
24953 ) with the correct information.
24954 \end_layout
24955
24956 \begin_layout Subsection
24957
24958 \change_deleted 564990737 1670317155
24959 Preparing a paper for submission
24960 \end_layout
24961
24962 \begin_layout Standard
24963
24964 \change_deleted 564990737 1670317155
24965 As in the AAS\SpecialChar TeX
24966  package, before you submit your paper to a journal you must
24967  
24968 \begin_inset Quotes eld
24969 \end_inset
24970
24971 postprocess
24972 \begin_inset Quotes erd
24973 \end_inset
24974
24975  it as follows.
24976 \end_layout
24977
24978 \begin_layout Enumerate
24979
24980 \change_deleted 564990737 1670317155
24981 Export your paper as a \SpecialChar LaTeX
24982  file.
24983  To do this, click on 
24984 \family sans
24985 File\SpecialChar menuseparator
24986 Export\SpecialChar menuseparator
24987 \SpecialChar LaTeX
24988
24989 \family default
24990 .
24991  
24992 \end_layout
24993
24994 \begin_layout Enumerate
24995
24996 \change_deleted 564990737 1670317155
24997 Edit the resulting 
24998 \family typewriter
24999 .tex
25000 \family default
25001  file with a text editor and make the following changes
25002 \end_layout
25003
25004 \begin_deeper
25005 \begin_layout Enumerate
25006
25007 \change_deleted 564990737 1670317155
25008 remove the comment lines before the 
25009 \family typewriter
25010
25011 \backslash
25012 documentclass
25013 \family default
25014  command,
25015 \end_layout
25016
25017 \begin_layout Enumerate
25018
25019 \change_deleted 564990737 1670317155
25020 remove everything between (and including) the 
25021 \family typewriter
25022
25023 \backslash
25024 makeatletter
25025 \family default
25026  and 
25027 \family typewriter
25028
25029 \backslash
25030 makeatother
25031 \family default
25032  commands, except for any commands you specifically put into the \SpecialChar LaTeX
25033  preamble.
25034 \end_layout
25035
25036 \begin_layout Standard
25037
25038 \change_deleted 564990737 1670317155
25039 Save the resulting 
25040 \family typewriter
25041 .tex
25042 \family default
25043  file.
25044 \end_layout
25045
25046 \end_deeper
25047 \begin_layout Enumerate
25048
25049 \change_deleted 564990737 1670317155
25050 Run the 
25051 \family typewriter
25052 .tex
25053 \family default
25054  file through \SpecialChar LaTeX
25055  as many times as necessary (usually up to three).
25056 \end_layout
25057
25058 \begin_layout Enumerate
25059
25060 \change_deleted 564990737 1670317155
25061 View the resulting 
25062 \family typewriter
25063 .dvi
25064 \family default
25065  document using, e.
25066 \begin_inset space \thinspace{}
25067 \end_inset
25068
25069 g.
25070 \begin_inset space \space{}
25071 \end_inset
25072
25073
25074 \family sans
25075 xdvi
25076 \family default
25077 , and check if everything is OK (it should, if you didn't make any mistake).
25078 \end_layout
25079
25080 \begin_layout Subsection
25081
25082 \change_deleted 564990737 1670317155
25083 \begin_inset Quotes eld
25084 \end_inset
25085
25086 Peculiarities
25087 \begin_inset Quotes erd
25088 \end_inset
25089
25090  of the Kluwer package
25091 \begin_inset CommandInset label
25092 LatexCommand label
25093 name "subsec:kluwer_peculiarities"
25094
25095 \end_inset
25096
25097
25098 \end_layout
25099
25100 \begin_layout Standard
25101
25102 \change_deleted 564990737 1670317155
25103 The Kluwer package has the following 
25104 \begin_inset Quotes eld
25105 \end_inset
25106
25107 peculiarities
25108 \begin_inset Quotes erd
25109 \end_inset
25110
25111 .
25112 \end_layout
25113
25114 \begin_layout Enumerate
25115
25116 \change_deleted 564990737 1670317155
25117 It is possible to write multiple articles in the same \SpecialChar LaTeX
25118  file
25119 \begin_inset Foot
25120 status collapsed
25121
25122 \begin_layout Plain Layout
25123 I can't imagine any good reason to do this.
25124 \end_layout
25125
25126 \end_inset
25127
25128 .
25129  Each article must be included in the environment 
25130 \begin_inset Quotes eld
25131 \end_inset
25132
25133 article
25134 \begin_inset Quotes erd
25135 \end_inset
25136
25137 .
25138  Unfortunately, this environment cannot be omitted, even if you write just
25139  one article.
25140  Therefore, each article starts with the command 
25141 \family typewriter
25142
25143 \backslash
25144 begin{article}
25145 \family default
25146  and, obviously, ends with the command 
25147 \family typewriter
25148
25149 \backslash
25150 end{article}
25151 \family default
25152 .
25153  Although this can be implemented in \SpecialChar LyX
25154 , I didn't included it, since it looks
25155  ugly and can confuse the novice user.
25156  Therefore, you need to enter them directly and mark them as \SpecialChar LaTeX
25157  code (the
25158  well-known 
25159 \begin_inset Quotes eld
25160 \end_inset
25161
25162 \SpecialChar TeX
25163  code
25164 \begin_inset Quotes erd
25165 \end_inset
25166
25167 ).
25168 \end_layout
25169
25170 \begin_layout Enumerate
25171
25172 \change_deleted 564990737 1670317155
25173 Information given at the beginning of the article (i.
25174 \begin_inset space \thinspace{}
25175 \end_inset
25176
25177 e.
25178 \begin_inset space \space{}
25179 \end_inset
25180
25181 title, subtitle, author, institution, running title, running author, abstract
25182  and keywords) must be included in an environment called 
25183 \begin_inset Quotes eld
25184 \end_inset
25185
25186 opening
25187 \begin_inset Quotes erd
25188 \end_inset
25189
25190 .
25191  This is not implemented in \SpecialChar LyX
25192 , so you must enter title, subtitle etc.
25193 \begin_inset space ~
25194 \end_inset
25195
25196 between two \SpecialChar TeX
25197  code lines (
25198 \family typewriter
25199
25200 \backslash
25201 begin{opening}
25202 \family default
25203  and 
25204 \family typewriter
25205
25206 \backslash
25207 end{opening}
25208 \family default
25209 ).
25210 \end_layout
25211
25212 \begin_layout Enumerate
25213
25214 \change_deleted 564990737 1670317155
25215 According to the user manual, the label of each bibliography item must be
25216  written as 
25217 \family typewriter
25218
25219 \backslash
25220 protect
25221 \backslash
25222 citeauthoryear{
25223 \family default
25224 \emph on
25225 author(s)
25226 \family typewriter
25227 \emph default
25228 }{
25229 \family default
25230 \emph on
25231 year
25232 \family typewriter
25233 \emph default
25234 }
25235 \family default
25236 .
25237 \end_layout
25238
25239 \begin_layout Standard
25240
25241 \change_deleted 564990737 1670317155
25242 The 
25243 \family typewriter
25244 kluwer.lyx
25245 \family default
25246  template takes care of all these 
25247 \begin_inset Quotes eld
25248 \end_inset
25249
25250 peculiarities
25251 \begin_inset Quotes erd
25252 \end_inset
25253
25254 .
25255  If you start a new paper using this template you don't need to do anything
25256  special.
25257  Just 
25258 \end_layout
25259
25260 \begin_layout Enumerate
25261
25262 \change_deleted 564990737 1670317155
25263 don't delete the \SpecialChar TeX
25264  code included in the template, and
25265 \end_layout
25266
25267 \begin_layout Enumerate
25268
25269 \change_deleted 564990737 1670317155
25270 copy the example bibliography item included in the template and modify it
25271  as necessary to enter new bibliography items.
25272 \end_layout
25273
25274 \begin_layout Section
25275
25276 \change_deleted 564990737 1671097446
25277 Paper
25278 \end_layout
25279
25280 \begin_layout Standard
25281
25282 \change_deleted 564990737 1671097446
25283 The document class 
25284 \family sans
25285 paper
25286 \family default
25287  provides an alternative to the standard 
25288 \family sans
25289 article
25290 \family default
25291  class.
25292  It provides similar functionality, but you might prefer this layout with
25293  sans serif sections, headings, and more.
25294 \end_layout
25295
25296 \begin_layout Section
25297
25298 \change_deleted 564990737 1671097446
25299 Springer Journals (
25300 \family sans
25301 svjour
25302 \family default
25303 )
25304 \end_layout
25305
25306 \begin_layout Standard
25307
25308 \change_deleted 564990737 1671097446
25309 by 
25310 \noun on
25311 Martin Vermeer
25312 \end_layout
25313
25314 \begin_layout Subsection
25315
25316 \change_deleted 564990737 1671097446
25317 Description
25318 \end_layout
25319
25320 \begin_layout Standard
25321
25322 \change_deleted 564990737 1671097446
25323 These are the layout files for some of the journal formats used by Springer
25324  Verlag and listed on 
25325 \begin_inset Flex URL
25326 status collapsed
25327
25328 \begin_layout Plain Layout
25329
25330 http://www.springer.de/author/tex/help-journals.html
25331 \end_layout
25332
25333 \end_inset
25334
25335 , where you should also go to fetch the class files (yes, these are \SpecialChar LaTeX2e
25336  now!).
25337  It is a modular system: the things common to all journals are implemented
25338  in 
25339 \family typewriter
25340 svjour.inc
25341 \family default
25342 , which journal-specific layout files (such as, e.
25343 \begin_inset space \thinspace{}
25344 \end_inset
25345
25346 g.
25347 \begin_inset space \space{}
25348 \end_inset
25349
25350
25351 \family typewriter
25352 svjog.layout
25353 \family default
25354  for Journal of Geodesy) can include.
25355 \end_layout
25356
25357 \begin_layout Standard
25358
25359 \change_deleted 564990737 1671097446
25360 This means that implementing support for any other Springer journal on this
25361  list is as simple as writing your own 
25362 \family typewriter
25363 sv
25364 \family default
25365 <myjournal>
25366 \family typewriter
25367 .layout
25368 \family default
25369  file following the outline given in 
25370 \family typewriter
25371 svjog.layout
25372 \family default
25373 .
25374  
25375 \end_layout
25376
25377 \begin_layout Standard
25378
25379 \change_deleted 564990737 1671097446
25380 It is reasonably well tested only for the Journal of Geodesy.
25381  
25382 \family typewriter
25383 svjour
25384 \family default
25385  and 
25386 \family typewriter
25387 svjog
25388 \family default
25389  come with the standard \SpecialChar LyX
25390  distribution.
25391  Install the relevant class file (downloaded from Springer) in a proper
25392  directory, reconfigure \SpecialChar LaTeX
25393  (in the te\SpecialChar TeX
25394  case by running 
25395 \family typewriter
25396 texhash
25397 \family default
25398 , as root if necessary — doesn't \SpecialChar LyX
25399  take care of this?), reconfigure \SpecialChar LyX
25400  and
25401  it should work.
25402 \end_layout
25403
25404 \begin_layout Subsection
25405
25406 \change_deleted 564990737 1671097446
25407 New styles
25408 \end_layout
25409
25410 \begin_layout Standard
25411
25412 \change_deleted 564990737 1671097446
25413 A large number of theorem-like styles — 
25414 \family sans
25415 Claim, Conjecture,
25416 \family default
25417  
25418 \family sans
25419 \SpecialChar ldots
25420 Theorem
25421 \family default
25422 .
25423 \end_layout
25424
25425 \begin_layout Standard
25426
25427 \change_deleted 564990737 1671097446
25428
25429 \family sans
25430 Headnote, Dedication, Subtitle, Running_\SpecialChar LaTeX
25431 _Title, Author_Running, Institute,
25432  Mail, Offprints, Keywords, Acknowledgements, Acknowledgement
25433 \family default
25434 .
25435  See the Springer class file documentation for details.
25436 \end_layout
25437
25438 \begin_layout Subsection
25439
25440 \change_deleted 564990737 1671097446
25441 Supported journals
25442 \end_layout
25443
25444 \begin_layout Itemize
25445
25446 \change_deleted 564990737 1671097446
25447
25448 \emph on
25449 Journal of Geodesy
25450 \emph default
25451
25452 \family typewriter
25453 svjog.layout
25454 \family default
25455  — Martin Vermeer
25456 \end_layout
25457
25458 \begin_layout Itemize
25459
25460 \change_deleted 564990737 1671097446
25461
25462 \emph on
25463 Probability Theory and Related Fields
25464 \emph default
25465
25466 \family typewriter
25467 svprobth.layout
25468 \family default
25469  — Jean-Marc Lasgouttes
25470 \end_layout
25471
25472 \begin_layout Standard
25473
25474 \change_deleted 564990737 1671097446
25475 Add your own, it isn't so hard!
25476 \end_layout
25477
25478 \begin_layout Subsection
25479
25480 \change_deleted 564990737 1671097446
25481 Credits
25482 \end_layout
25483
25484 \begin_layout Standard
25485
25486 \change_deleted 564990737 1671097446
25487 These files are partly based on the older 
25488 \family typewriter
25489 ejour2.layout
25490 \family default
25491 , which was again based on a tinkered-with version of an old \SpecialChar LaTeX
25492  2.09 style
25493  file from Springer.
25494  All this, and the 
25495 \family typewriter
25496 ejour2
25497 \family default
25498  layout, are now defunct.
25499  Jean-Marc Lasgouttes helped out big in making me find my way around the
25500  \SpecialChar LyX
25501  layout file mechanism.
25502 \end_layout
25503
25504 \begin_layout Subsection
25505
25506 \change_deleted 564990737 1671097446
25507 Bugs
25508 \end_layout
25509
25510 \begin_layout Standard
25511
25512 \change_deleted 564990737 1671097446
25513 Probably.
25514  But probably less than in the old hacked-\SpecialChar LaTeX
25515  
25516 \family typewriter
25517 ejour2
25518 \family default
25519 .
25520 \end_layout
25521
25522 \begin_layout Chapter
25523 \SpecialChar LyX
25524  Features needing Extra Software
25525 \end_layout
25526
25527 \begin_layout Section
25528 Checking \SpecialChar TeX
25529
25530 \end_layout
25531
25532 \begin_layout Standard
25533 by 
25534 \noun on
25535 Asger Alstrup
25536 \end_layout
25537
25538 \begin_layout Subsection
25539 Introduction
25540 \end_layout
25541
25542 \begin_layout Standard
25543 If you have the 
25544 \family typewriter
25545 chktex
25546 \family default
25547  program installed
25548 \begin_inset Foot
25549 status collapsed
25550
25551 \begin_layout Plain Layout
25552
25553 \family typewriter
25554 chktex
25555 \family default
25556  is not yet available when you are using the \SpecialChar LaTeX
25557  distribution MiK\SpecialChar TeX
25558 .
25559 \end_layout
25560
25561 \end_inset
25562
25563 , you'll find in the 
25564 \family sans
25565 Tools
25566 \family default
25567  menu the entry: 
25568 \family sans
25569 Check
25570 \begin_inset space ~
25571 \end_inset
25572
25573 TeX
25574 \family default
25575 .
25576  You can get 
25577 \family typewriter
25578 chktex
25579 \family default
25580  from CTAN,
25581 \begin_inset Newline newline
25582 \end_inset
25583
25584
25585 \begin_inset CommandInset href
25586 LatexCommand href
25587 target "https://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
25588 literal "false"
25589
25590 \end_inset
25591
25592 .
25593 \end_layout
25594
25595 \begin_layout Standard
25596 The 
25597 \family sans
25598 Chk\SpecialChar TeX
25599
25600 \family default
25601  package is a program that was written by 
25602 \begin_inset Flex Noun
25603 status collapsed
25604
25605 \begin_layout Plain Layout
25606 Jens T.
25607 \begin_inset space ~
25608 \end_inset
25609
25610 Berger Thielemann
25611 \end_layout
25612
25613 \end_inset
25614
25615  in frustration because some constructs in \SpecialChar LaTeX
25616  are sometimes non-intuitive,
25617  and easy to forget.
25618  The program runs over your \SpecialChar LaTeX
25619  file, checks the integrity of the file, and
25620  flags some common errors.
25621  In other technical words, it is 
25622 \family typewriter
25623 lint
25624 \family default
25625  for \SpecialChar LaTeX
25626 .
25627 \end_layout
25628
25629 \begin_layout Standard
25630 Well, what is a syntax checker doing in \SpecialChar LyX
25631  which is supposed to produce correct
25632  \SpecialChar LaTeX
25633  anyways? The answer is simple: Just as 
25634 \family typewriter
25635 Lint
25636 \family default
25637  not only checks the 
25638 \emph on
25639 syntax
25640 \emph default
25641  of C programs, but also does 
25642 \emph on
25643 semantic
25644 \emph default
25645  checks for type-errors, 
25646 \family sans
25647 Chk\SpecialChar TeX
25648
25649 \family default
25650  catches some common 
25651 \emph on
25652 typographic
25653 \emph default
25654  errors, in addition to the syntactical ones.
25655  Specifically, 
25656 \family sans
25657 Chk\SpecialChar TeX
25658
25659 \family default
25660  is capable of detecting several common errors, such as
25661 \end_layout
25662
25663 \begin_layout Itemize
25664 Ellipsis detection:
25665 \begin_inset Newline newline
25666 \end_inset
25667
25668 Use \SpecialChar ldots
25669  instead of ...
25670 \end_layout
25671
25672 \begin_layout Itemize
25673 No space in front of/after parenthesis:
25674 \begin_inset Newline newline
25675 \end_inset
25676
25677 ( wrong spacing )
25678 \end_layout
25679
25680 \begin_layout Itemize
25681 Enforcement of normal space after common abbreviations:
25682 \begin_inset Newline newline
25683 \end_inset
25684
25685 e.
25686 \begin_inset space \thinspace{}
25687 \end_inset
25688
25689 g.
25690 \begin_inset space \space{}
25691 \end_inset
25692
25693 is too wide spacing.
25694 \end_layout
25695
25696 \begin_layout Itemize
25697 Enforcement of end-of-sentence space when the last sentence ends with a
25698  capital letter:
25699 \begin_inset Newline newline
25700 \end_inset
25701
25702 This is a TEST.
25703  And this is wrong spacing.
25704 \end_layout
25705
25706 \begin_layout Itemize
25707 Space in front of labels and similar commands:
25708 \begin_inset Newline newline
25709 \end_inset
25710
25711 The label should stick right up to the text to avoid falling to a wrong
25712  page.
25713  
25714 \begin_inset CommandInset label
25715 LatexCommand label
25716 name "sec:chktex"
25717
25718 \end_inset
25719
25720  
25721 \begin_inset Foot
25722 status collapsed
25723
25724 \begin_layout Plain Layout
25725 This footnote is in danger of falling off to a wrong page
25726 \end_layout
25727
25728 \end_inset
25729
25730  The label is separated too much.
25731 \end_layout
25732
25733 \begin_layout Itemize
25734 Space in front of references, instead of hard spaces:
25735 \begin_inset Newline newline
25736 \end_inset
25737
25738 If you have bad luck, the text will break right between the referenced text
25739  and reference number, and that's a pity.
25740  See section 
25741 \begin_inset CommandInset ref
25742 LatexCommand ref
25743 reference "sec:chktex"
25744
25745 \end_inset
25746
25747 .
25748 \end_layout
25749
25750 \begin_layout Itemize
25751 Use of 
25752 \begin_inset Quotes eld
25753 \end_inset
25754
25755 x
25756 \begin_inset Quotes erd
25757 \end_inset
25758
25759  instead of 
25760 \begin_inset Formula $\times$
25761 \end_inset
25762
25763  between numbers:
25764 \begin_inset Newline newline
25765 \end_inset
25766
25767 2x2 looks cheap compared to 
25768 \begin_inset Formula $2\times2$
25769 \end_inset
25770
25771 .
25772 \end_layout
25773
25774 \begin_layout Standard
25775 and more \SpecialChar ldots
25776  It is an invaluable tool when you are 
25777 \begin_inset Quotes eld
25778 \end_inset
25779
25780 finishing up
25781 \begin_inset Quotes erd
25782 \end_inset
25783
25784  your document before printing, and you should run it right after the obligatory
25785  spelling check, and before you go fine tuning the typesetting.
25786 \end_layout
25787
25788 \begin_layout Subsection
25789 How to use it
25790 \end_layout
25791
25792 \begin_layout Standard
25793 If you have the program installed, usage is as simple as choosing 
25794 \family sans
25795 Tools\SpecialChar menuseparator
25796 Check
25797 \begin_inset space ~
25798 \end_inset
25799
25800 TeX
25801 \family default
25802 .
25803  This will make \SpecialChar LyX
25804  generate a \SpecialChar LaTeX
25805  file of your document, start 
25806 \family sans
25807 Chk\SpecialChar TeX
25808
25809 \family default
25810  to check it, and then make \SpecialChar LyX
25811  insert 
25812 \begin_inset Quotes eld
25813 \end_inset
25814
25815 error boxes
25816 \begin_inset Quotes erd
25817 \end_inset
25818
25819  with the warnings from 
25820 \family sans
25821 Chk\SpecialChar TeX
25822
25823 \family default
25824 , if there were any.
25825  The warnings will be placed close to the point of the mistake, and you
25826  can quickly find them by using the 
25827 \family sans
25828 Navigate\SpecialChar menuseparator
25829 Error
25830 \family default
25831  menu item, or the shortcut key 
25832 \family sans
25833 C-g
25834 \family default
25835  from the default 
25836 \family typewriter
25837 cua
25838 \family default
25839  bind file.
25840  Open the error boxes by clicking on them with the mouse, or use the shortcut
25841  key 
25842 \family sans
25843 C-i
25844 \family default
25845  from 
25846 \family typewriter
25847 cua
25848 \family default
25849  bindings, or the corresponding 
25850 \family sans
25851 C-o
25852 \family default
25853  for the alternate 
25854 \family typewriter
25855 emacs
25856 \family default
25857  bind file.
25858  Read the warning and correct the mistake, if it is a mistake.
25859  If you have trouble understanding what the warning is about, you can safely
25860  ignore it.
25861  Remember that there is a hidden layer between the document on screen and
25862  the technical details in invoking 
25863 \family sans
25864 Chk\SpecialChar TeX
25865
25866 \family default
25867 , and this gap can make some warnings seem arcane or just plain silly.
25868 \end_layout
25869
25870 \begin_layout Standard
25871 This document is an excellent testing bed for the feature, and it should
25872  provide quite a few warnings for you to fiddle with.
25873  Since computers are only so smart, expect most of the warnings to be false
25874  alarms, though.
25875 \end_layout
25876
25877 \begin_layout Subsection
25878 How to fine tune it
25879 \end_layout
25880
25881 \begin_layout Standard
25882 Sometimes, you'll find that 
25883 \family sans
25884 Chk\SpecialChar TeX
25885
25886 \family default
25887  makes more noise than suits your mood.
25888  Then you can choose not to use it, wait until your mood changes, or try
25889  to customize 
25890 \family sans
25891 Chk\SpecialChar TeX
25892
25893 \family default
25894  to get better along with you.
25895 \end_layout
25896
25897 \begin_layout Standard
25898 Although 
25899 \family sans
25900 Chk\SpecialChar TeX
25901
25902 \family default
25903  
25904 \emph on
25905 is
25906 \emph default
25907  very configurable and extensible, you should not expect to solve all problems
25908  with 
25909 \family sans
25910 Chk\SpecialChar TeX
25911
25912 \family default
25913  in \SpecialChar LyX
25914  this way.
25915  Since \SpecialChar LyX
25916  has to generate a somewhat special \SpecialChar LaTeX
25917  file to be able to match the
25918  line numbers from the 
25919 \family sans
25920 Chk\SpecialChar TeX
25921
25922 \family default
25923  output
25924 \begin_inset Foot
25925 status collapsed
25926
25927 \begin_layout Plain Layout
25928 You can inspect the specific output from 
25929 \family sans
25930 chktex
25931 \family default
25932  by using 
25933 \family sans
25934 Document\SpecialChar menuseparator
25935 \SpecialChar LaTeX
25936
25937 \begin_inset space ~
25938 \end_inset
25939
25940 Log
25941 \family default
25942  right after a 
25943 \family sans
25944 chktex
25945 \family default
25946  run.
25947 \end_layout
25948
25949 \end_inset
25950
25951  to the internal document structure, some of the warnings will not appear
25952  correctly.
25953  There are two things you can do about this:
25954 \end_layout
25955
25956 \begin_layout Itemize
25957 Fine tune the 
25958 \family sans
25959 Chk\SpecialChar TeX
25960
25961 \family default
25962  invocation command line in 
25963 \begin_inset Flex Noun
25964 status collapsed
25965
25966 \begin_layout Plain Layout
25967 Tools\SpecialChar menuseparator
25968 Preferences\SpecialChar menuseparator
25969 Output\SpecialChar menuseparator
25970 LaTeX\SpecialChar menuseparator
25971 CheckTeX command
25972 \end_layout
25973
25974 \end_inset
25975
25976 , or the global 
25977 \family sans
25978 Chk\SpecialChar TeX
25979
25980 \family default
25981  installation configuration file (usually with the file 
25982 \family typewriter
25983 chktexrc
25984 \family default
25985 ).
25986  See below to learn what warnings can be enabled and disabled on the command
25987  line.
25988 \end_layout
25989
25990 \begin_layout Itemize
25991 Export your document as a raw \SpecialChar LaTeX
25992  file using 
25993 \family sans
25994 File\SpecialChar menuseparator
25995 Export\SpecialChar menuseparator
25996 \SpecialChar LaTeX
25997
25998 \family default
25999  and run 
26000 \family typewriter
26001 chktex
26002 \family default
26003  manually on that.
26004  Invoked in this way, it can be a hassle to find the corresponding place
26005  in the document inside \SpecialChar LyX
26006 , but with a little patience, you should be able
26007  to do it.
26008 \end_layout
26009
26010 \begin_layout Standard
26011 Here follows the warning messages that can be enabled and disabled in 
26012 \family sans
26013 Preferences
26014 \family default
26015 .
26016  Use 
26017 \family typewriter
26018 -n#
26019 \family default
26020  to disable a warning, and 
26021 \family typewriter
26022 -w#
26023 \family default
26024  to enable a warning.
26025  The emphasized entries are disabled by default, because the default is
26026  "
26027 \family typewriter
26028 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
26029 \family default
26030 ".
26031 \end_layout
26032
26033 \begin_layout Standard
26034 Notice that you should only use the options that enable and disable warnings,
26035  because \SpecialChar LyX
26036  relies on some of the other command line parameters to be set
26037  in a specific way to have a chance to communicate with 
26038 \family typewriter
26039 chktex
26040 \family default
26041 .
26042 \end_layout
26043
26044 \begin_layout Enumerate
26045
26046 \size small
26047 \emph on
26048 Command terminated with space.
26049 \end_layout
26050
26051 \begin_layout Enumerate
26052
26053 \size small
26054 Non-breaking space (
26055 \begin_inset Quotes eld
26056 \end_inset
26057
26058
26059 \family typewriter
26060 ~
26061 \family default
26062
26063 \begin_inset Quotes erd
26064 \end_inset
26065
26066 ) should have been used.
26067 \end_layout
26068
26069 \begin_layout Enumerate
26070
26071 \size small
26072 \emph on
26073 You should enclose the previous parenthesis with 
26074 \begin_inset Quotes eld
26075 \end_inset
26076
26077
26078 \family typewriter
26079 {}
26080 \family default
26081
26082 \begin_inset Quotes erd
26083 \end_inset
26084
26085 .
26086 \end_layout
26087
26088 \begin_layout Enumerate
26089
26090 \size small
26091 Italic correction (
26092 \begin_inset Quotes eld
26093 \end_inset
26094
26095
26096 \family typewriter
26097
26098 \backslash
26099 /
26100 \family default
26101
26102 \begin_inset Quotes erd
26103 \end_inset
26104
26105 ) found in non-italic buffer.
26106 \end_layout
26107
26108 \begin_layout Enumerate
26109
26110 \size small
26111 Italic correction (
26112 \begin_inset Quotes eld
26113 \end_inset
26114
26115
26116 \family typewriter
26117
26118 \backslash
26119 /
26120 \family default
26121
26122 \begin_inset Quotes erd
26123 \end_inset
26124
26125 ) found more than once.
26126 \end_layout
26127
26128 \begin_layout Enumerate
26129
26130 \size small
26131 \emph on
26132 No italic correction (
26133 \begin_inset Quotes eld
26134 \end_inset
26135
26136
26137 \family typewriter
26138
26139 \backslash
26140 /
26141 \family default
26142
26143 \begin_inset Quotes erd
26144 \end_inset
26145
26146 ) found.
26147 \end_layout
26148
26149 \begin_layout Enumerate
26150
26151 \size small
26152 Accent command 
26153 \begin_inset Quotes eld
26154 \end_inset
26155
26156
26157 \family typewriter
26158 cmd
26159 \family default
26160
26161 \begin_inset Quotes erd
26162 \end_inset
26163
26164  needs use of 
26165 \begin_inset Quotes eld
26166 \end_inset
26167
26168
26169 \family typewriter
26170 cmd
26171 \family default
26172
26173 \begin_inset Quotes erd
26174 \end_inset
26175
26176 .
26177 \end_layout
26178
26179 \begin_layout Enumerate
26180
26181 \size small
26182 Wrong length of dash may have been used.
26183 \end_layout
26184
26185 \begin_layout Enumerate
26186
26187 \size small
26188 \emph on
26189 \begin_inset Quotes eld
26190 \end_inset
26191
26192
26193 \family typewriter
26194 %s
26195 \family default
26196
26197 \begin_inset Quotes erd
26198 \end_inset
26199
26200  expected, found 
26201 \begin_inset Quotes eld
26202 \end_inset
26203
26204
26205 \family typewriter
26206 %s
26207 \family default
26208
26209 \begin_inset Quotes erd
26210 \end_inset
26211
26212 .
26213 \end_layout
26214
26215 \begin_layout Enumerate
26216
26217 \size small
26218 Solo 
26219 \begin_inset Quotes eld
26220 \end_inset
26221
26222
26223 \family typewriter
26224 %s
26225 \family default
26226
26227 \begin_inset Quotes erd
26228 \end_inset
26229
26230  found.
26231 \end_layout
26232
26233 \begin_layout Enumerate
26234
26235 \size small
26236 You should use 
26237 \begin_inset Quotes eld
26238 \end_inset
26239
26240
26241 \family typewriter
26242 %s
26243 \family default
26244
26245 \begin_inset Quotes erd
26246 \end_inset
26247
26248  to achieve an ellipsis.
26249 \end_layout
26250
26251 \begin_layout Enumerate
26252
26253 \size small
26254 Inter-word spacing (
26255 \begin_inset Quotes eld
26256 \end_inset
26257
26258
26259 \family typewriter
26260
26261 \backslash
26262
26263 \family default
26264  
26265 \begin_inset Quotes eld
26266 \end_inset
26267
26268 ) should perhaps be used.
26269 \end_layout
26270
26271 \begin_layout Enumerate
26272
26273 \size small
26274 Inter-sentence spacing (
26275 \begin_inset Quotes eld
26276 \end_inset
26277
26278
26279 \family typewriter
26280
26281 \backslash
26282 @
26283 \family default
26284
26285 \begin_inset Quotes erd
26286 \end_inset
26287
26288 ) should perhaps be used.
26289 \end_layout
26290
26291 \begin_layout Enumerate
26292
26293 \size small
26294 Could not find argument for command.
26295 \end_layout
26296
26297 \begin_layout Enumerate
26298
26299 \size small
26300 No match found for 
26301 \begin_inset Quotes eld
26302 \end_inset
26303
26304
26305 \family typewriter
26306 %s
26307 \family default
26308
26309 \begin_inset Quotes erd
26310 \end_inset
26311
26312 .
26313 \end_layout
26314
26315 \begin_layout Enumerate
26316
26317 \size small
26318 Math mode still on at end of \SpecialChar LaTeX
26319  file.
26320 \end_layout
26321
26322 \begin_layout Enumerate
26323
26324 \size small
26325 Number of 
26326 \begin_inset Quotes eld
26327 \end_inset
26328
26329
26330 \family typewriter
26331 char
26332 \family default
26333
26334 \begin_inset Quotes erd
26335 \end_inset
26336
26337  doesn't match the number of 
26338 \begin_inset Quotes eld
26339 \end_inset
26340
26341
26342 \family typewriter
26343 char
26344 \family default
26345
26346 \begin_inset Quotes erd
26347 \end_inset
26348
26349 .
26350 \end_layout
26351
26352 \begin_layout Enumerate
26353
26354 \size small
26355 You should use either 
26356 \family typewriter
26357
26358 \begin_inset Quotes eld
26359 \end_inset
26360
26361
26362 \family default
26363  or 
26364 \family typewriter
26365
26366 \begin_inset Quotes erd
26367 \end_inset
26368
26369
26370 \family default
26371  as an alternative to 
26372 \begin_inset Quotes eld
26373 \end_inset
26374
26375
26376 \family typewriter
26377 "
26378 \family default
26379
26380 \begin_inset Quotes erd
26381 \end_inset
26382
26383 .
26384 \end_layout
26385
26386 \begin_layout Enumerate
26387
26388 \size small
26389 You should use "
26390 \family typewriter
26391 '
26392 \family default
26393 " (ASCII 39) instead of "
26394 \family typewriter
26395 ´
26396 \family default
26397 " (ASCII 180).
26398 \end_layout
26399
26400 \begin_layout Enumerate
26401
26402 \size small
26403 User-specified pattern found.
26404 \end_layout
26405
26406 \begin_layout Enumerate
26407
26408 \size small
26409 This command might not be intended.
26410 \end_layout
26411
26412 \begin_layout Enumerate
26413
26414 \size small
26415 \emph on
26416 Comment displayed.
26417 \end_layout
26418
26419 \begin_layout Enumerate
26420
26421 \size small
26422 Either 
26423 \family typewriter
26424 ''
26425 \backslash
26426 ,'
26427 \family default
26428  or 
26429 \family typewriter
26430 '
26431 \backslash
26432 ,''
26433 \family default
26434  will look better.
26435 \end_layout
26436
26437 \begin_layout Enumerate
26438
26439 \size small
26440 Delete this space to maintain correct page references.
26441 \end_layout
26442
26443 \begin_layout Enumerate
26444
26445 \size small
26446 \emph on
26447 You might wish to put this between a pair of 
26448 \begin_inset Quotes eld
26449 \end_inset
26450
26451
26452 \family typewriter
26453 {}
26454 \family default
26455
26456 \begin_inset Quotes erd
26457 \end_inset
26458
26459 .
26460 \end_layout
26461
26462 \begin_layout Enumerate
26463
26464 \size small
26465 You ought to remove spaces in front of punctuation.
26466 \end_layout
26467
26468 \begin_layout Enumerate
26469
26470 \size small
26471 Could not execute \SpecialChar LaTeX
26472  command.
26473 \end_layout
26474
26475 \begin_layout Enumerate
26476
26477 \size small
26478 Don't use 
26479 \family typewriter
26480
26481 \backslash
26482 /
26483 \family default
26484  in front of small punctuation.
26485 \end_layout
26486
26487 \begin_layout Enumerate
26488
26489 \family typewriter
26490 \size small
26491 $
26492 \backslash
26493 times$
26494 \family default
26495  may look prettier here.
26496 \end_layout
26497
26498 \begin_layout Enumerate
26499
26500 \size small
26501 \emph on
26502 Multiple spaces detected in output.
26503 \end_layout
26504
26505 \begin_layout Enumerate
26506
26507 \size small
26508 This text may be ignored.
26509 \end_layout
26510
26511 \begin_layout Enumerate
26512
26513 \size small
26514 Use 
26515 \family typewriter
26516
26517 \begin_inset Quotes eld
26518 \end_inset
26519
26520
26521 \family default
26522  to begin quotation, not 
26523 \family typewriter
26524 '
26525 \family default
26526 .
26527 \end_layout
26528
26529 \begin_layout Enumerate
26530
26531 \size small
26532 Use 
26533 \family typewriter
26534 '
26535 \family default
26536  to end quotation, not 
26537 \family typewriter
26538
26539 \begin_inset Quotes eld
26540 \end_inset
26541
26542
26543 \family default
26544 .
26545 \end_layout
26546
26547 \begin_layout Enumerate
26548
26549 \size small
26550 Don't mix quotes.
26551 \end_layout
26552
26553 \begin_layout Enumerate
26554
26555 \size small
26556 You should perhaps use 
26557 \begin_inset Quotes eld
26558 \end_inset
26559
26560
26561 \family typewriter
26562 cmd
26563 \family default
26564
26565 \begin_inset Quotes erd
26566 \end_inset
26567
26568  instead.
26569 \end_layout
26570
26571 \begin_layout Enumerate
26572
26573 \size small
26574 You should put a space in front of/after parenthesis.
26575 \end_layout
26576
26577 \begin_layout Enumerate
26578
26579 \size small
26580 You should avoid spaces in front of/after parenthesis.
26581 \end_layout
26582
26583 \begin_layout Enumerate
26584
26585 \size small
26586 \emph on
26587 You should not use punctuation in front of/after quotes.
26588 \end_layout
26589
26590 \begin_layout Enumerate
26591
26592 \size small
26593 Double space found.
26594 \end_layout
26595
26596 \begin_layout Enumerate
26597
26598 \size small
26599 You should put punctuation outside inner/inside display math mode.
26600 \end_layout
26601
26602 \begin_layout Enumerate
26603
26604 \size small
26605 You ought to not use primitive \SpecialChar TeX
26606  in \SpecialChar LaTeX
26607  code.
26608 \end_layout
26609
26610 \begin_layout Enumerate
26611
26612 \size small
26613 You should remove spaces in front of 
26614 \begin_inset Quotes eld
26615 \end_inset
26616
26617
26618 \family typewriter
26619 %s
26620 \family default
26621
26622 \begin_inset Quotes erd
26623 \end_inset
26624
26625
26626 \end_layout
26627
26628 \begin_layout Enumerate
26629
26630 \size small
26631 \begin_inset Quotes eld
26632 \end_inset
26633
26634
26635 \family typewriter
26636 %s
26637 \family default
26638
26639 \begin_inset Quotes erd
26640 \end_inset
26641
26642  is normally not followed by 
26643 \begin_inset Quotes eld
26644 \end_inset
26645
26646
26647 \family typewriter
26648 %c
26649 \family default
26650
26651 \begin_inset Quotes erd
26652 \end_inset
26653
26654 .
26655 \end_layout
26656
26657 \begin_layout Standard
26658 In later versions of \SpecialChar LyX
26659 , we hope to provide a more complete interface to this
26660  tool (and it's smaller cousin 
26661 \family typewriter
26662 lacheck
26663 \family default
26664 ) to exploit the full power of it.
26665  But it's not exactly useless as it is now: go try it on one of your existing
26666  documents of a certain length and be surprised.
26667 \end_layout
26668
26669 \begin_layout Section
26670 Version Control in \SpecialChar LyX
26671
26672 \end_layout
26673
26674 \begin_layout Standard
26675 by
26676 \noun on
26677  Lars Gullik Bjønnes 
26678 \noun default
26679 and 
26680 \noun on
26681 Pavel Sanda
26682 \end_layout
26683
26684 \begin_layout Subsection
26685 Introduction
26686 \end_layout
26687
26688 \begin_layout Standard
26689 \SpecialChar LyX
26690  supports some of the most basic RCS/CVS/SVN/GIT commands.
26691  If you need something a bit more sophisticated you will have to do that
26692  manually in a terminal.
26693 \end_layout
26694
26695 \begin_layout Standard
26696 Also note that CVS support is not as good as subversion support, so we advise
26697  using SVN instead.
26698  A good place to start learning Subversion is the SVN Book
26699 \begin_inset Foot
26700 status collapsed
26701
26702 \begin_layout Plain Layout
26703 \begin_inset CommandInset href
26704 LatexCommand href
26705 target "http://svnbook.red-bean.com/"
26706 literal "false"
26707
26708 \end_inset
26709
26710
26711 \end_layout
26712
26713 \end_inset
26714
26715 .
26716  In the case of RCS you should read 
26717 \begin_inset Quotes eld
26718 \end_inset
26719
26720 rcsintro
26721 \begin_inset Quotes erd
26722 \end_inset
26723
26724  (a man file, read it with 
26725 \family typewriter
26726 man rcsintro
26727 \family default
26728 ).
26729  This file describes all the basic features of RCS.
26730  You should especially notice the comment about a RCS directory, and the
26731  notion of a master RCS file (the file ending in 
26732 \family typewriter
26733 ,v
26734 \family default
26735 ).
26736 \end_layout
26737
26738 \begin_layout Standard
26739 Before you begin to use the version control features in \SpecialChar LyX
26740 , you should be
26741  familiar with RCS/CVS/SVN/GIT usage.
26742  The implementation in \SpecialChar LyX
26743  assumes a recent version of the GNU RCS or CVS/SVN
26744  package — no guarantees are made for older versions.
26745  Most of the log messages are not currently displayed after operations —
26746  you can check them in the Messages pane if you are unsure.
26747  Regular users of version control will appreciate the VC toolbar, which
26748  can be enabled via 
26749 \family sans
26750 View\SpecialChar menuseparator
26751 Toolbars\SpecialChar menuseparator
26752 Version
26753 \begin_inset space ~
26754 \end_inset
26755
26756 Control
26757 \family default
26758 .
26759 \end_layout
26760
26761 \begin_layout Standard
26762 For introducing your own external commands consult 
26763 \begin_inset Flex Code
26764 status collapsed
26765
26766 \begin_layout Plain Layout
26767 vc-command
26768 \end_layout
26769
26770 \end_inset
26771
26772  in the manual 
26773 \emph on
26774 \SpecialChar LyX
26775  Functions
26776 \emph default
26777 .
26778 \end_layout
26779
26780 \begin_layout Standard
26781 It is strongly recommended to store documents in uncompressed format if
26782  using version control (uncheck 
26783 \family sans
26784 Document\SpecialChar menuseparator
26785 Compressed
26786 \family default
26787  if it is checked): Uncompressed LyX documents are text files and therefore
26788  for merging two different versions by version control systems.
26789  Compressed LyX documents are binary files, which cannot be merged by version
26790  control systems.
26791 \end_layout
26792
26793 \begin_layout Subsection
26794 RCS commands in \SpecialChar LyX
26795
26796 \end_layout
26797
26798 \begin_layout Standard
26799 The following sections describe the RCS commands supported by \SpecialChar LyX
26800 .
26801  You can find them in the 
26802 \family sans
26803 File\SpecialChar menuseparator
26804 Version
26805 \begin_inset space ~
26806 \end_inset
26807
26808 Control
26809 \family default
26810  submenu.
26811  \SpecialChar LyX
26812  was tested against RCS 5.7/5.8.
26813 \end_layout
26814
26815 \begin_layout Subsubsection
26816
26817 \family sans
26818 Register
26819 \end_layout
26820
26821 \begin_layout Standard
26822 If your document is not under revision control, this is the only item shown
26823  in the menu.
26824  And if it is under revision control, the 
26825 \family sans
26826 Register
26827 \family default
26828  item is not visible.
26829  
26830 \end_layout
26831
26832 \begin_layout Standard
26833 This command registers your document with RCS (unless you are under the
26834  directory managed by CVS)\SpecialChar endofsentence
26835  You are asked interactively to supply an initial
26836  description of the document.
26837  The document is now set in Read-Only mode and you have to 
26838 \family sans
26839 Check
26840 \begin_inset space ~
26841 \end_inset
26842
26843 Out
26844 \begin_inset space ~
26845 \end_inset
26846
26847 For
26848 \begin_inset space ~
26849 \end_inset
26850
26851 Edit
26852 \family default
26853 , before making any changes to it.
26854  A document under revision control has a 
26855 \begin_inset Quotes eld
26856 \end_inset
26857
26858 [RCS:<version> <locker>]
26859 \begin_inset Quotes erd
26860 \end_inset
26861
26862  item tagged to the filename in the minibuffer.
26863 \end_layout
26864
26865 \begin_layout Standard
26866 RCS command that is run:
26867 \end_layout
26868
26869 \begin_layout LyX-Code
26870
26871 \family typewriter
26872 ci -q -u -i -t-"<initial description>" <file-name>
26873 \end_layout
26874
26875 \begin_layout Standard
26876 Read 
26877 \family typewriter
26878 man ci
26879 \family default
26880  to understand the switches.
26881  
26882 \end_layout
26883
26884 \begin_layout Subsubsection
26885
26886 \family sans
26887 Check In Changes
26888 \end_layout
26889
26890 \begin_layout Standard
26891 When you are finished editing a file, you check in your changes.
26892  When you do this, you are asked for a description of the changes.
26893  This is stored in the history log.
26894  The version number is bumped, your changes are applied to the master RCS
26895  file, the document is unlocked and set to Read-Only mode.
26896 \end_layout
26897
26898 \begin_layout Itemize
26899 RCS command: 
26900 \family typewriter
26901 ci -q -u -m"<description>" <file-name>
26902 \end_layout
26903
26904 \begin_layout Subsubsection
26905
26906 \family sans
26907 Check Out For Edit
26908 \end_layout
26909
26910 \begin_layout Standard
26911 By doing this you lock the document so that only you can edit it.
26912  This will also make the document Read-Write only for you.
26913  You will usually continue editing for a while and when you are finished
26914  you check in your changes.
26915  The status line is changed to reflect that you have locked the file.
26916 \end_layout
26917
26918 \begin_layout Itemize
26919 RCS command: 
26920 \family typewriter
26921 co -q -l <file-name>
26922 \end_layout
26923
26924 \begin_layout Subsubsection
26925
26926 \family sans
26927 Revert To Repository Version
26928 \end_layout
26929
26930 \begin_layout Standard
26931 This will discard all changes made to the document since the last check
26932  in.
26933  You get a warning before changes are discarded.
26934 \end_layout
26935
26936 \begin_layout Itemize
26937 RCS command: 
26938 \family typewriter
26939 co -f -u<version> <file-name>
26940 \end_layout
26941
26942 \begin_layout Subsubsection
26943
26944 \family sans
26945 Copy
26946 \end_layout
26947
26948 \begin_layout Standard
26949 This will create a copy of the current document.
26950  Since RCS does not support copy operations natively, the version history
26951  is not preserved, and the copy is added as a new file.
26952  It requires a clean document without any changes since the last checkin.
26953  You are asked for a file name and a description of the copy operation.
26954  After that the copy is created, both locally and in the repository.
26955  If the parent directories of the copied and original document differ, all
26956  relative paths of included files of the copy are adjusted (like in 
26957 \family sans
26958 File\SpecialChar menuseparator
26959 Save As
26960 \family default
26961 \SpecialChar ldots
26962 ).
26963  Finally, the copy is loaded instead of the original document.
26964 \end_layout
26965
26966 \begin_layout Labeling
26967 \labelwidthstring 00.00.0000
26968 RCS
26969 \begin_inset space ~
26970 \end_inset
26971
26972 commands: 
26973 \begin_inset space ~
26974 \end_inset
26975
26976
26977 \begin_inset Newline newline
26978 \end_inset
26979
26980 Copy 
26981 \begin_inset Flex Code
26982 status collapsed
26983
26984 \begin_layout Plain Layout
26985
26986 \family typewriter
26987 \begin_inset Quotes qld
26988 \end_inset
26989
26990 <file-name>
26991 \begin_inset Quotes qld
26992 \end_inset
26993
26994
26995 \end_layout
26996
26997 \end_inset
26998
26999  to 
27000 \begin_inset Flex Code
27001 status collapsed
27002
27003 \begin_layout Plain Layout
27004
27005 \family typewriter
27006 \begin_inset Quotes qld
27007 \end_inset
27008
27009 <new-file-name>
27010 \begin_inset Quotes qld
27011 \end_inset
27012
27013
27014 \end_layout
27015
27016 \end_inset
27017
27018
27019 \begin_inset Newline newline
27020 \end_inset
27021
27022
27023 \begin_inset Flex Code
27024 status collapsed
27025
27026 \begin_layout Plain Layout
27027 ci -q -u 
27028 \family typewriter
27029 -i 
27030 \begin_inset Quotes qld
27031 \end_inset
27032
27033 <new-file-name>
27034 \begin_inset Quotes qld
27035 \end_inset
27036
27037
27038 \end_layout
27039
27040 \end_inset
27041
27042
27043 \end_layout
27044
27045 \begin_layout Subsubsection
27046
27047 \family sans
27048 Undo Last Checkin
27049 \end_layout
27050
27051 \begin_layout Standard
27052 This makes as if the last check in never happened.
27053  No changes are made to the document loaded into \SpecialChar LyX
27054 , but the last version
27055  is removed from the master RCS file.
27056 \end_layout
27057
27058 \begin_layout Itemize
27059 RCS command: 
27060 \family typewriter
27061 rcs -o<version> <file-name>
27062 \end_layout
27063
27064 \begin_layout Subsubsection
27065
27066 \family sans
27067 Show History
27068 \end_layout
27069
27070 \begin_layout Standard
27071 This shows the complete history of the RCS document.
27072  The output of 
27073 \family typewriter
27074 rlog <file-name>
27075 \family default
27076  is shown in a browser.
27077  See 
27078 \family typewriter
27079 man rlog
27080 \family default
27081  for more info.
27082 \end_layout
27083
27084 \begin_layout Subsubsection
27085 Revision info
27086 \end_layout
27087
27088 \begin_layout Standard
27089 \SpecialChar LyX
27090  supports RCS version number, author name, date and time of last commit.
27091  All those are extracted from 
27092 \family typewriter
27093 rlog -r <file-name>
27094 \family default
27095 .
27096  See 
27097 \begin_inset CommandInset ref
27098 LatexCommand ref
27099 reference "subsec:VCS-Revision-Information"
27100
27101 \end_inset
27102
27103  for details.
27104 \end_layout
27105
27106 \begin_layout Subsection
27107 CVS commands in \SpecialChar LyX
27108
27109 \end_layout
27110
27111 \begin_layout Standard
27112 A subset of CVS operations is supported by \SpecialChar LyX
27113 .
27114  You can find the commands in the 
27115 \family sans
27116 File\SpecialChar menuseparator
27117 Version
27118 \begin_inset space ~
27119 \end_inset
27120
27121 Control
27122 \family default
27123  submenu.
27124  The version control system SVN is more powerful, so please use it instead
27125  of CVS if possible.
27126 \end_layout
27127
27128 \begin_layout Subsubsection
27129
27130 \family sans
27131 General CVS usage
27132 \end_layout
27133
27134 \begin_layout Standard
27135 If you start from scratch with CVS you have to create your repository and
27136  checkout the working copy with external tools.
27137  If you're using a client-server setup you may need to login before doing
27138  the first repository checkout.
27139 \end_layout
27140
27141 \begin_layout Standard
27142 If your documents are under revision control and others are using the same
27143  repository problems arise when different changes to the same document at
27144  the same location happen.
27145  Standard CVS repositories don't operate with a file locking mechanism.
27146  This may be surprising, but conflicts only occur if people disagree on
27147  the proper content of the same part of a document.
27148  So, if co-workers are used to communicate regularly, these conflicts occur
27149  rarely.
27150  If they don't communicate they have a fundamental problem anyway.
27151  Nevertheless some people like to work with so called 
27152 \begin_inset Quotes eld
27153 \end_inset
27154
27155 reserved checkouts
27156 \begin_inset Quotes erd
27157 \end_inset
27158
27159 .
27160  If they do so the working copy of all files is readonly when checked out
27161  first and the user starts editing after using a special command to make
27162  the working copy writable.
27163  When the changes are checked in the working copy returns to readonly state.
27164  With \SpecialChar LyX
27165  one has to edit the 
27166 \begin_inset Flex Code
27167 status collapsed
27168
27169 \begin_layout Plain Layout
27170 .cvsrc
27171 \end_layout
27172
27173 \end_inset
27174
27175  file and add the line 
27176 \begin_inset Flex Code
27177 status collapsed
27178
27179 \begin_layout Plain Layout
27180 cvs -r
27181 \end_layout
27182
27183 \end_inset
27184
27185  to work with reserved checkouts.
27186  The benefit is the possibility to see who is using a writable copy of some
27187  document.
27188  It's not guaranteed only one user makes a copy writable.
27189 \end_layout
27190
27191 \begin_layout Standard
27192 \SpecialChar LyX
27193  tries to guess if you're using reserved or non-reserved checkouts.
27194  If your working copy is readonly or it is writable and an additional copy
27195  of your document exists in the CVS/Base sub-directory a reserved otherwise
27196  a non-reserved checkout is assumed.
27197  When a reserved checkout is detected you have to use 
27198 \begin_inset Flex Noun
27199 status collapsed
27200
27201 \begin_layout Plain Layout
27202 Check Out
27203 \end_layout
27204
27205 \end_inset
27206
27207  to make your working copy writable if it's readonly.
27208  After doing so the 
27209 \begin_inset Flex Noun
27210 status collapsed
27211
27212 \begin_layout Plain Layout
27213 Check In
27214 \end_layout
27215
27216 \end_inset
27217
27218  operation is possible and that makes your working copy readonly again after
27219  transferring your changes to the repository.
27220 \end_layout
27221
27222 \begin_layout Standard
27223 More information about CVS can be found here 
27224 \begin_inset Flex URL
27225 status collapsed
27226
27227 \begin_layout Plain Layout
27228
27229 http://www.nongnu.org/cvs
27230 \end_layout
27231
27232 \end_inset
27233
27234  and here 
27235 \begin_inset Flex URL
27236 status collapsed
27237
27238 \begin_layout Plain Layout
27239
27240 http://ximbiot.com/cvs
27241 \end_layout
27242
27243 \end_inset
27244
27245 .
27246 \end_layout
27247
27248 \begin_layout Standard
27249 Read 
27250 \family typewriter
27251 man cvs
27252 \family default
27253  to understand the sub-commands and the switches mentioned below.
27254 \end_layout
27255
27256 \begin_layout Subsubsection
27257
27258 \family sans
27259 Register
27260 \end_layout
27261
27262 \begin_layout Standard
27263 If your document is not under revision control, this is the only item shown
27264  in the menu.
27265  And if it is under revision control, the 
27266 \family sans
27267 Register
27268 \family default
27269  item is not visible.
27270  
27271 \end_layout
27272
27273 \begin_layout Standard
27274 This command registers in CVS your document 
27275 \begin_inset Flex Strong
27276 status collapsed
27277
27278 \begin_layout Plain Layout
27279
27280 \emph on
27281 only
27282 \end_layout
27283
27284 \end_inset
27285
27286  in the case you have already the documents directory under CVS control
27287  (in particular 
27288 \family typewriter
27289 CVS/Entries
27290 \family default
27291  file exists).
27292  This means you have to create or checkout the archive by yourself using
27293  external tools.
27294  (In case you forget that step \SpecialChar LyX
27295  registers the document with RCS.)
27296 \end_layout
27297
27298 \begin_layout Standard
27299 Then you are asked interactively to supply an initial description of the
27300  document.
27301  Don't forget that registered file is not yet checked in.
27302 \end_layout
27303
27304 \begin_layout Standard
27305 CVS command that is run: 
27306 \family typewriter
27307 cvs -q add -m"<entered message>" "<file-name>"
27308 \end_layout
27309
27310 \begin_layout Standard
27311 The term 
27312 \family typewriter
27313 "<file-name>"
27314 \family default
27315  above and for all other CVS commands is an abbreviation for 
27316 \begin_inset Quotes eld
27317 \end_inset
27318
27319 change the current working directory to file location and use the file name
27320  without path component as argument
27321 \begin_inset Quotes erd
27322 \end_inset
27323
27324 .
27325 \end_layout
27326
27327 \begin_layout Subsubsection
27328
27329 \family sans
27330 Check In Changes
27331 \end_layout
27332
27333 \begin_layout Standard
27334 When you are finished editing a file, you commit your changes.
27335  When you do this and you had changed the document, you are asked for a
27336  description of the changes.
27337  After that changes are written to the repository.
27338  In case you didn't change the document and a reserved checkout is detected
27339  the reservation made on 
27340 \begin_inset Flex Noun
27341 status collapsed
27342
27343 \begin_layout Plain Layout
27344 Check Out
27345 \end_layout
27346
27347 \end_inset
27348
27349  is undone.
27350 \end_layout
27351
27352 \begin_layout Labeling
27353 \labelwidthstring 00.00.0000
27354 CVS
27355 \begin_inset space ~
27356 \end_inset
27357
27358 command: 
27359 \begin_inset space ~
27360 \end_inset
27361
27362
27363 \begin_inset Newline newline
27364 \end_inset
27365
27366
27367 \begin_inset Flex Code
27368 status collapsed
27369
27370 \begin_layout Plain Layout
27371 cvs 
27372 \family typewriter
27373 -q commit -m"<description>" "<file-name>"
27374 \end_layout
27375
27376 \end_inset
27377
27378  or
27379 \begin_inset Newline newline
27380 \end_inset
27381
27382
27383 \begin_inset Flex Code
27384 status collapsed
27385
27386 \begin_layout Plain Layout
27387 cvs -q unedit 
27388 \family typewriter
27389 "<file-name>"
27390 \end_layout
27391
27392 \end_inset
27393
27394
27395 \end_layout
27396
27397 \begin_layout Subsubsection
27398
27399 \family sans
27400 Check Out Changes
27401 \end_layout
27402
27403 \begin_layout Standard
27404 When you are sharing a repository with others, you may have to incorporate
27405  their changes into your working copy.
27406 \end_layout
27407
27408 \begin_layout Standard
27409 CVS command: 
27410 \family typewriter
27411 cvs -q update "<file-name>"
27412 \end_layout
27413
27414 \begin_layout Standard
27415 If a readonly checkout is detected the working copy is made writable and
27416  reserved.
27417 \end_layout
27418
27419 \begin_layout Standard
27420 CVS command: 
27421 \family typewriter
27422 cvs -q edit "<file-name>"
27423 \end_layout
27424
27425 \begin_layout Subsubsection
27426
27427 \family sans
27428 Revert To Repository Version
27429 \end_layout
27430
27431 \begin_layout Standard
27432 This will discard all changes made to the document since the last check
27433  in.
27434  You get a warning before changes are discarded.
27435  Firstly the file is deleted, secondly CVS update command is run.
27436 \end_layout
27437
27438 \begin_layout Standard
27439 CVS command: 
27440 \family typewriter
27441 cvs -q update "<file-name>"
27442 \end_layout
27443
27444 \begin_layout Standard
27445 If a reserved checkout is detected and the working copy has no changes only
27446  the reservation is undone.
27447 \end_layout
27448
27449 \begin_layout Standard
27450 CVS command: 
27451 \family typewriter
27452 cvs -q unedit "<file-name>"
27453 \end_layout
27454
27455 \begin_layout Subsubsection
27456
27457 \family sans
27458 Copy
27459 \end_layout
27460
27461 \begin_layout Standard
27462 This will create a copy of the current document.
27463  Since CVS does not support copy operations natively, the version history
27464  is not preserved, and the copy is added as a new file.
27465  It requires a clean document without any changes since the last checkin.
27466  You are asked for a file name and a description of the copy operation.
27467  After that the copy is created, both locally and in the repository.
27468  If the parent directories of the copied and original document differ, all
27469  relative paths of included files of the copy are adjusted (like in 
27470 \family sans
27471 File\SpecialChar menuseparator
27472 Save As
27473 \family default
27474 \SpecialChar ldots
27475 ).
27476  Finally, the copy is loaded instead of the original document.
27477 \end_layout
27478
27479 \begin_layout Labeling
27480 \labelwidthstring 00.00.0000
27481 CVS
27482 \begin_inset space ~
27483 \end_inset
27484
27485 commands: 
27486 \begin_inset space ~
27487 \end_inset
27488
27489
27490 \begin_inset Newline newline
27491 \end_inset
27492
27493 Copy 
27494 \begin_inset Flex Code
27495 status collapsed
27496
27497 \begin_layout Plain Layout
27498 "<file-name>"
27499 \end_layout
27500
27501 \end_inset
27502
27503  to 
27504 \begin_inset Flex Code
27505 status collapsed
27506
27507 \begin_layout Plain Layout
27508 "<new-file-name>"
27509 \end_layout
27510
27511 \end_inset
27512
27513
27514 \begin_inset Newline newline
27515 \end_inset
27516
27517
27518 \begin_inset Flex Code
27519 status collapsed
27520
27521 \begin_layout Plain Layout
27522 cvs -q add "<new-file-name>"
27523 \end_layout
27524
27525 \end_inset
27526
27527
27528 \end_layout
27529
27530 \begin_layout Subsubsection
27531
27532 \family sans
27533 Rename
27534 \end_layout
27535
27536 \begin_layout Standard
27537 This will rename the current document.
27538  Since CVS does not support rename operations natively, the version history
27539  is not preserved, the renamed document is added as a new file, and the
27540  original document is deleted.
27541  It requires a clean document without any changes since the last checkin.
27542  You are asked for a file name and a description of the rename operation.
27543  After that the document is renamed, both locally and in the repository.
27544  If the parent directories of the new and old file names differ, all relative
27545  paths of included files are adjusted (like in 
27546 \family sans
27547 File\SpecialChar menuseparator
27548 Save As
27549 \family default
27550 \SpecialChar ldots
27551 ).
27552  Finally, the document is reloaded using the new name.
27553 \end_layout
27554
27555 \begin_layout Labeling
27556 \labelwidthstring 00.00.0000
27557 CVS
27558 \begin_inset space ~
27559 \end_inset
27560
27561 commands: 
27562 \begin_inset space ~
27563 \end_inset
27564
27565
27566 \begin_inset Newline newline
27567 \end_inset
27568
27569 Rename 
27570 \begin_inset Flex Code
27571 status collapsed
27572
27573 \begin_layout Plain Layout
27574 "<file-name>"
27575 \end_layout
27576
27577 \end_inset
27578
27579  to 
27580 \begin_inset Flex Code
27581 status collapsed
27582
27583 \begin_layout Plain Layout
27584 "<new-file-name>"
27585 \end_layout
27586
27587 \end_inset
27588
27589
27590 \begin_inset Newline newline
27591 \end_inset
27592
27593
27594 \begin_inset Flex Code
27595 status collapsed
27596
27597 \begin_layout Plain Layout
27598 cvs -q add "<new-file-name>"
27599 \end_layout
27600
27601 \end_inset
27602
27603
27604 \begin_inset Newline newline
27605 \end_inset
27606
27607
27608 \begin_inset Flex Code
27609 status collapsed
27610
27611 \begin_layout Plain Layout
27612 cvs -q remove "<file-name>"
27613 \end_layout
27614
27615 \end_inset
27616
27617
27618 \end_layout
27619
27620 \begin_layout Subsubsection
27621 Update of the local directory checkout from repository
27622 \end_layout
27623
27624 \begin_layout Standard
27625 Once your documents gets more complex, containing sub-documents and pictures,
27626  including external 
27627 \begin_inset Flex Code
27628 status collapsed
27629
27630 \begin_layout Plain Layout
27631 .tex
27632 \end_layout
27633
27634 \end_inset
27635
27636  files and so on using version control becomes more complicated.
27637  \SpecialChar LyX
27638  supports updating the whole tree in which resides the document.
27639  This become especially useful once you cooperate with people which neither
27640  have detailed knowledge about CVS usage nor they have ambition to commit
27641  additional material to the repository.
27642  You have to organize the files structure so that all external files are
27643  in the same directory or subdirectories of the document.
27644  It's good practice anyway to store multipart documents in an extra directory.
27645 \end_layout
27646
27647 \begin_layout Standard
27648 The 
27649 \begin_inset Flex Code
27650 status collapsed
27651
27652 \begin_layout Plain Layout
27653 Update local directory from repository
27654 \end_layout
27655
27656 \end_inset
27657
27658  command updates the whole directory.
27659  If local changes are detected user is warned before update starts.
27660  In case of merge conflicts both versions of the conflicting document parts
27661  are placed in the final document.
27662  You have to review and correct the result of the merge.
27663  You'll find the conflicts enclosed in pairs of 
27664 \begin_inset Flex Code
27665 status collapsed
27666
27667 \begin_layout Plain Layout
27668 <<<<<<<
27669 \end_layout
27670
27671 \end_inset
27672
27673  and 
27674 \begin_inset Flex Code
27675 status collapsed
27676
27677 \begin_layout Plain Layout
27678 >>>>>>>
27679 \end_layout
27680
27681 \end_inset
27682
27683  separated by 
27684 \begin_inset Flex Code
27685 status collapsed
27686
27687 \begin_layout Plain Layout
27688 =======
27689 \end_layout
27690
27691 \end_inset
27692
27693 .
27694  The first part is your version as before the update operation with the
27695  document name prepended.
27696  The second one is the repository version with the version number after
27697  the sequence of 
27698 \begin_inset Flex Code
27699 status collapsed
27700
27701 \begin_layout Plain Layout
27702 >
27703 \end_layout
27704
27705 \end_inset
27706
27707  signs.
27708 \end_layout
27709
27710 \begin_layout Labeling
27711 \labelwidthstring 00.00.0000
27712 CVS
27713 \begin_inset space ~
27714 \end_inset
27715
27716 commands: 
27717 \begin_inset space ~
27718 \end_inset
27719
27720
27721 \begin_inset Newline newline
27722 \end_inset
27723
27724
27725 \begin_inset Flex Code
27726 status collapsed
27727
27728 \begin_layout Plain Layout
27729 cd $path; cvs diff 
27730 \family typewriter
27731 "."
27732 \end_layout
27733
27734 \end_inset
27735
27736  (Ask if changes are detected.)
27737 \begin_inset Newline newline
27738 \end_inset
27739
27740
27741 \begin_inset Flex Code
27742 status collapsed
27743
27744 \begin_layout Plain Layout
27745 cd $path; cvs -q update 
27746 \family typewriter
27747 "."
27748 \end_layout
27749
27750 \end_inset
27751
27752
27753 \end_layout
27754
27755 \begin_layout Standard
27756 where 
27757 \begin_inset Flex Code
27758 status collapsed
27759
27760 \begin_layout Plain Layout
27761 $path
27762 \end_layout
27763
27764 \end_inset
27765
27766  stands for the path to the document.
27767 \end_layout
27768
27769 \begin_layout Subsubsection
27770
27771 \family sans
27772 Show History
27773 \end_layout
27774
27775 \begin_layout Standard
27776 This shows the complete history of the CVS document.
27777  The output of 
27778 \family typewriter
27779 cvs log "<file-name>"
27780 \family default
27781  is shown in a browser.
27782 \end_layout
27783
27784 \begin_layout Subsubsection
27785 Revision info
27786 \end_layout
27787
27788 \begin_layout Standard
27789 \SpecialChar LyX
27790  supports CVS version number, author name, date and time of last commit.
27791  All those are extracted from 
27792 \family typewriter
27793 cvs log -r <file-name>
27794 \family default
27795 .
27796  See 
27797 \begin_inset CommandInset ref
27798 LatexCommand ref
27799 reference "subsec:VCS-Revision-Information"
27800
27801 \end_inset
27802
27803  for details.
27804 \end_layout
27805
27806 \begin_layout Subsection
27807 SVN commands in \SpecialChar LyX
27808
27809 \end_layout
27810
27811 \begin_layout Standard
27812 SVN is now partially supported by \SpecialChar LyX
27813 .
27814  You can find the commands in the 
27815 \family sans
27816 File\SpecialChar menuseparator
27817 Version
27818 \begin_inset space ~
27819 \end_inset
27820
27821 Control
27822 \family default
27823  submenu.
27824  Please note that if you use password protected access to repository via
27825  ssh, you will be asked in terminal window.
27826  \SpecialChar LyX
27827  was tested against SVN 1.5, 1.6, 1.7 and 1.8
27828 \begin_inset Foot
27829 status collapsed
27830
27831 \begin_layout Plain Layout
27832 Most of the commands will work with 1.4 too, see 
27833 \begin_inset CommandInset ref
27834 LatexCommand ref
27835 reference "subsec:SVN-Repo-Update"
27836
27837 \end_inset
27838
27839 .
27840  There seems to be currently unresolved permissions problem under SVN 1.8
27841  with reverting changes when file is locked.
27842 \end_layout
27843
27844 \end_inset
27845
27846
27847 \end_layout
27848
27849 \begin_layout Subsubsection
27850
27851 \family sans
27852 Register
27853 \end_layout
27854
27855 \begin_layout Standard
27856 If your document is not under revision control, this is the only item shown
27857  in the menu.
27858  And if it is under revision control, the 
27859 \family sans
27860 Register
27861 \family default
27862  item is not visible.
27863 \end_layout
27864
27865 \begin_layout Standard
27866 This command registers in SVN your document ONLY in case you have already
27867  the documents directory under SVN control (in particular 
27868 \family typewriter
27869 .svn/entries
27870 \family default
27871  file exists).
27872  This means you have to checkout the archive by yourself.
27873 \end_layout
27874
27875 \begin_layout Standard
27876 Then you are asked interactively to supply an initial description of the
27877  document.
27878  Don't forget that registered file is not yet commited.
27879 \end_layout
27880
27881 \begin_layout Standard
27882 SVN command that is run: 
27883 \family typewriter
27884 svn add -q 
27885 \begin_inset Quotes qld
27886 \end_inset
27887
27888 <file-name>
27889 \begin_inset Quotes qld
27890 \end_inset
27891
27892
27893 \end_layout
27894
27895 \begin_layout Standard
27896 Read 
27897 \family typewriter
27898 man svn
27899 \family default
27900  to understand the switches.
27901 \end_layout
27902
27903 \begin_layout Subsubsection
27904
27905 \family sans
27906 Check In Changes
27907 \end_layout
27908
27909 \begin_layout Standard
27910 When you are finished editing a file, you commit your changes.
27911  When you do this, you are asked for a description of the changes.
27912  After that changes are commited.
27913 \end_layout
27914
27915 \begin_layout Standard
27916 SVN command:
27917 \begin_inset Foot
27918 status collapsed
27919
27920 \begin_layout Plain Layout
27921 In case locking is not enabled.
27922  See Section 
27923 \begin_inset CommandInset ref
27924 LatexCommand ref
27925 reference "subsec:SVN-File-Locking"
27926
27927 \end_inset
27928
27929 .
27930 \end_layout
27931
27932 \end_inset
27933
27934  
27935 \family typewriter
27936 svn commit -q -m"<description>" <file-name>
27937 \end_layout
27938
27939 \begin_layout Subsubsection
27940
27941 \family sans
27942 Check Out For Edit
27943 \end_layout
27944
27945 \begin_layout Standard
27946 Updates the changes of this file from the repository.
27947  Be sure you understand SVN merging and conflicts resolving before using
27948  this function, because all conflicts has to be resolved manually by you!
27949 \end_layout
27950
27951 \begin_layout Standard
27952 SVN command:
27953 \begin_inset Foot
27954 status collapsed
27955
27956 \begin_layout Plain Layout
27957 Ditto.
27958 \end_layout
27959
27960 \end_inset
27961
27962  
27963 \family typewriter
27964 svn update --non-interactive 
27965 \begin_inset Quotes qld
27966 \end_inset
27967
27968 <file-name>
27969 \begin_inset Quotes qld
27970 \end_inset
27971
27972
27973 \end_layout
27974
27975 \begin_layout Subsubsection
27976
27977 \family sans
27978 Revert To Repository Version
27979 \end_layout
27980
27981 \begin_layout Standard
27982 This will discard all changes made to the document since the last check
27983  in.
27984  You get a warning before changes are discarded.
27985 \end_layout
27986
27987 \begin_layout Standard
27988 SVN command: 
27989 \family typewriter
27990 svn revert -q 
27991 \begin_inset Quotes qld
27992 \end_inset
27993
27994 <file-name>
27995 \begin_inset Quotes qld
27996 \end_inset
27997
27998
27999 \end_layout
28000
28001 \begin_layout Subsubsection
28002
28003 \family sans
28004 Copy
28005 \end_layout
28006
28007 \begin_layout Standard
28008 This will create a copy of the current document including the version history.
28009  It requires a clean document without any changes since the last checkin.
28010  You are asked for a file name and a description of the copy operation.
28011  After that the copy is created, both locally and in the repository.
28012  If the parent directories of the copied and original document differ, all
28013  relative paths of included files of the copy are adjusted (like in 
28014 \family sans
28015 File\SpecialChar menuseparator
28016 Save As
28017 \family default
28018 \SpecialChar ldots
28019 ).
28020  Finally, the copy is loaded instead of the original document.
28021 \end_layout
28022
28023 \begin_layout Labeling
28024 \labelwidthstring 00.00.0000
28025 SVN
28026 \begin_inset space ~
28027 \end_inset
28028
28029 commands: 
28030 \begin_inset space ~
28031 \end_inset
28032
28033
28034 \begin_inset Newline newline
28035 \end_inset
28036
28037
28038 \begin_inset Flex Code
28039 status collapsed
28040
28041 \begin_layout Plain Layout
28042 svn copy -q 
28043 \family typewriter
28044
28045 \begin_inset Quotes qld
28046 \end_inset
28047
28048 <file-name>
28049 \begin_inset Quotes qld
28050 \end_inset
28051
28052  
28053 \begin_inset Quotes qld
28054 \end_inset
28055
28056 <new-file-name>
28057 \begin_inset Quotes qld
28058 \end_inset
28059
28060
28061 \end_layout
28062
28063 \end_inset
28064
28065
28066 \begin_inset Newline newline
28067 \end_inset
28068
28069
28070 \begin_inset Flex Code
28071 status collapsed
28072
28073 \begin_layout Plain Layout
28074 svn commit
28075 \end_layout
28076
28077 \end_inset
28078
28079
28080 \end_layout
28081
28082 \begin_layout Subsubsection
28083
28084 \family sans
28085 Rename
28086 \end_layout
28087
28088 \begin_layout Standard
28089 This will rename the current document including the version history.
28090  It requires a clean document without any changes since the last checkin.
28091  You are asked for a file name and a description of the rename operation.
28092  After that the document is renamed, both locally and in the repository.
28093  If the parent directories of the new and old file names differ, all relative
28094  paths of included files are adjusted (like in 
28095 \family sans
28096 File\SpecialChar menuseparator
28097 Save As
28098 \family default
28099 \SpecialChar ldots
28100 ).
28101  Finally, the document is reloaded using the new name.
28102 \end_layout
28103
28104 \begin_layout Labeling
28105 \labelwidthstring 00.00.0000
28106 SVN
28107 \begin_inset space ~
28108 \end_inset
28109
28110 commands: 
28111 \begin_inset space ~
28112 \end_inset
28113
28114
28115 \begin_inset Newline newline
28116 \end_inset
28117
28118
28119 \begin_inset Flex Code
28120 status collapsed
28121
28122 \begin_layout Plain Layout
28123 svn move -q 
28124 \family typewriter
28125
28126 \begin_inset Quotes qld
28127 \end_inset
28128
28129 <file-name>
28130 \begin_inset Quotes qld
28131 \end_inset
28132
28133  
28134 \begin_inset Quotes qld
28135 \end_inset
28136
28137 <new-file-name>
28138 \begin_inset Quotes qld
28139 \end_inset
28140
28141
28142 \end_layout
28143
28144 \end_inset
28145
28146
28147 \begin_inset Newline newline
28148 \end_inset
28149
28150
28151 \begin_inset Flex Code
28152 status collapsed
28153
28154 \begin_layout Plain Layout
28155 svn commit
28156 \end_layout
28157
28158 \end_inset
28159
28160
28161 \end_layout
28162
28163 \begin_layout Subsubsection
28164 \begin_inset CommandInset label
28165 LatexCommand label
28166 name "subsec:SVN-Repo-Update"
28167
28168 \end_inset
28169
28170 Update of the local directory checkout from repository
28171 \begin_inset Foot
28172 status collapsed
28173
28174 \begin_layout Plain Layout
28175 Note that this command will work only with subversion 
28176 \begin_inset Formula $\geqq1.5$
28177 \end_inset
28178
28179
28180 \end_layout
28181
28182 \end_inset
28183
28184
28185 \end_layout
28186
28187 \begin_layout Standard
28188 All the commands above have one shortcoming – they deal with the current
28189  document only.
28190  Once your document contains pictures, includes external 
28191 \begin_inset Flex Code
28192 status collapsed
28193
28194 \begin_layout Plain Layout
28195 .tex
28196 \end_layout
28197
28198 \end_inset
28199
28200  files and so on administration becomes more complicated.
28201  \SpecialChar LyX
28202  now supports updating the whole tree in which resides the document
28203 \begin_inset Foot
28204 status collapsed
28205
28206 \begin_layout Plain Layout
28207 One need to organize the files structure so that all external files are
28208  in the same directory or subdirectories of the document.
28209  
28210 \end_layout
28211
28212 \end_inset
28213
28214 .
28215  This become especially useful once you cooperate with people which neither
28216  know about subversion management nor they have ambition to commit additional
28217  material to the repository.
28218  
28219 \end_layout
28220
28221 \begin_layout Standard
28222 \begin_inset Flex Code
28223 status collapsed
28224
28225 \begin_layout Plain Layout
28226 Update local directory from repository
28227 \end_layout
28228
28229 \end_inset
28230
28231  command updates the whole directory and in case of merge conflicts local
28232  version of the files are left, so no unintended data loss occurs.
28233  If local changes are detected user is warned before update starts.
28234 \end_layout
28235
28236 \begin_layout Labeling
28237 \labelwidthstring 00.00.0000
28238 SVN
28239 \begin_inset space ~
28240 \end_inset
28241
28242 commands: 
28243 \begin_inset space ~
28244 \end_inset
28245
28246
28247 \begin_inset Newline newline
28248 \end_inset
28249
28250
28251 \begin_inset Flex Code
28252 status collapsed
28253
28254 \begin_layout Plain Layout
28255 svn diff $path
28256 \end_layout
28257
28258 \end_inset
28259
28260  (Ask if changes are detected.)
28261 \begin_inset Newline newline
28262 \end_inset
28263
28264
28265 \begin_inset Flex Code
28266 status collapsed
28267
28268 \begin_layout Plain Layout
28269 svn update --accept mine-full $path
28270 \end_layout
28271
28272 \end_inset
28273
28274
28275 \end_layout
28276
28277 \begin_layout Standard
28278 where 
28279 \begin_inset Flex Code
28280 status collapsed
28281
28282 \begin_layout Plain Layout
28283 $path
28284 \end_layout
28285
28286 \end_inset
28287
28288  stands for the path to the document.
28289 \end_layout
28290
28291 \begin_layout Subsubsection
28292
28293 \family sans
28294 Show History
28295 \end_layout
28296
28297 \begin_layout Standard
28298 This shows the complete history of the SVN document.
28299  The output of 
28300 \family typewriter
28301 svn log 
28302 \begin_inset Quotes qld
28303 \end_inset
28304
28305 <file-name>
28306 \begin_inset Quotes qld
28307 \end_inset
28308
28309
28310 \family default
28311  is shown in a browser.
28312 \end_layout
28313
28314 \begin_layout Subsubsection
28315 File Locking
28316 \begin_inset CommandInset label
28317 LatexCommand label
28318 name "subsec:SVN-File-Locking"
28319
28320 \end_inset
28321
28322
28323 \end_layout
28324
28325 \begin_layout Standard
28326 The file exchange through various revision control systems brings the problem
28327  of merge conflicts in case two different users try to edit the same (parts
28328  of) document.
28329  When such a conflict happens it needs manual resolving and one reasonable
28330  alternative is to provide some kind of locking mechanism, which guarantees
28331  that only one user is allowed to edit file at the given time.
28332 \end_layout
28333
28334 \begin_layout Standard
28335 SVN has two such mechanisms to provide mutual exclusivity for file access
28336  – locks and automatic setting of write permissions (see sec.
28337  
28338 \begin_inset CommandInset ref
28339 LatexCommand ref
28340 reference "subsec:Automatical-Locking-Property"
28341
28342 \end_inset
28343
28344 ) based on 
28345 \begin_inset Flex Code
28346 status collapsed
28347
28348 \begin_layout Plain Layout
28349 svn:needs-lock
28350 \end_layout
28351
28352 \end_inset
28353
28354  file svn property
28355 \begin_inset Foot
28356 status collapsed
28357
28358 \begin_layout Plain Layout
28359 \begin_inset Flex URL
28360 status open
28361
28362 \begin_layout Plain Layout
28363
28364 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
28365 \end_layout
28366
28367 \end_inset
28368
28369
28370 \end_layout
28371
28372 \end_inset
28373
28374 .
28375  If this property is detected for a given document \SpecialChar LyX
28376  starts to use SVN locks
28377  for document editing automatically and the whole check-in/out mechanism
28378  switches to the same regimen as for RCS.
28379  This in particular means there are two different modes of file use in \SpecialChar LyX
28380 :
28381 \end_layout
28382
28383 \begin_layout Itemize
28384 Unlocked state.
28385  The loaded file is in the read-only mode.
28386  For editing on needs to check-out.
28387  
28388 \emph on
28389 Check-out
28390 \emph default
28391  consists of updating from the repository and gaining write lock.
28392  If the lock is not possible to obtain, we remain in unlocked state.
28393 \end_layout
28394
28395 \begin_layout Itemize
28396 Locked state.
28397  The loaded file is in the 
28398 \begin_inset Quotes els
28399 \end_inset
28400
28401 normal
28402 \begin_inset Quotes ers
28403 \end_inset
28404
28405  edit mode.
28406  No other user is allowed to edit the file.
28407  
28408 \emph on
28409 Check-in
28410 \emph default
28411  consists of commiting changes and releasing write-lock.
28412  If no changes have been made to the document, no commit will be produced
28413 \begin_inset Foot
28414 status collapsed
28415
28416 \begin_layout Plain Layout
28417 Don't be puzzled by the fact that you will be asked for commit message anyway.
28418 \end_layout
28419
28420 \end_inset
28421
28422  and only the write-lock will be released.
28423 \end_layout
28424
28425 \begin_layout Standard
28426 SVN commands:
28427 \end_layout
28428
28429 \begin_layout Labeling
28430 \labelwidthstring 00.00.0000
28431 Check-in:
28432 \family typewriter
28433  svn commit -q -m"<description>" "<file-name>"
28434 \begin_inset Newline newline
28435 \end_inset
28436
28437 svn unlock "<file-name>"
28438 \end_layout
28439
28440 \begin_layout Labeling
28441 \labelwidthstring 00.00.0000
28442 Check-out: 
28443 \family typewriter
28444 svn update "<file-name>"
28445 \begin_inset Newline newline
28446 \end_inset
28447
28448 svn lock "<file-name>"
28449 \end_layout
28450
28451 \begin_layout Subsubsection
28452
28453 \family typewriter
28454 \begin_inset CommandInset label
28455 LatexCommand label
28456 name "subsec:Automatical-Locking-Property"
28457
28458 \end_inset
28459
28460
28461 \family default
28462 Automatic Locking Property
28463 \end_layout
28464
28465 \begin_layout Standard
28466 The above mentioned automatic setting of write permissions of the .lyx file
28467  can be set through
28468 \family sans
28469  File\SpecialChar menuseparator
28470 Version
28471 \begin_inset space ~
28472 \end_inset
28473
28474 Control\SpecialChar menuseparator
28475 Use Locking Property
28476 \family default
28477 .
28478  This command is active only when the file is not locked on the svn server
28479  (i.e.
28480  you need to check-out before proceeding).
28481 \end_layout
28482
28483 \begin_layout Labeling
28484 \labelwidthstring 00.00.0000
28485 SVN
28486 \begin_inset space ~
28487 \end_inset
28488
28489 commands:
28490 \end_layout
28491
28492 \begin_layout Labeling
28493 \labelwidthstring 00.00.0000
28494 Set:
28495 \family typewriter
28496  svn propset svn:needs-lock ON "<file-name>"
28497 \end_layout
28498
28499 \begin_layout Labeling
28500 \labelwidthstring 00.00.0000
28501 Unset: 
28502 \family typewriter
28503 svn propdel svn:needs-lock "<file-name>"
28504 \end_layout
28505
28506 \begin_layout Subsubsection
28507 \begin_inset CommandInset label
28508 LatexCommand label
28509 name "subsec:VCS-Revision-Information"
28510
28511 \end_inset
28512
28513 Revision Information in Documents
28514 \end_layout
28515
28516 \begin_layout Standard
28517 There are more possibilities how to activate revision information in our
28518  document.
28519 \end_layout
28520
28521 \begin_layout Itemize
28522 \SpecialChar LyX
28523  supports directly:
28524 \end_layout
28525
28526 \begin_deeper
28527 \begin_layout Itemize
28528 tree revision information (
28529 \begin_inset Flex Code
28530 status collapsed
28531
28532 \begin_layout Plain Layout
28533 vcs-tree-revision
28534 \end_layout
28535
28536 \end_inset
28537
28538 ).
28539  The result is the output of the 
28540 \begin_inset Flex Code
28541 status collapsed
28542
28543 \begin_layout Plain Layout
28544 svnversion
28545 \end_layout
28546
28547 \end_inset
28548
28549  command, the following table gives you an idea, how to read the results.
28550 \end_layout
28551
28552 \begin_layout Standard
28553 \align center
28554 \begin_inset Tabular
28555 <lyxtabular version="3" rows="6" columns="2">
28556 <features tabularvalignment="middle">
28557 <column alignment="left" valignment="top">
28558 <column alignment="left" valignment="top">
28559 <row>
28560 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28561 \begin_inset Text
28562
28563 \begin_layout Plain Layout
28564
28565 \series bold
28566 Output
28567 \end_layout
28568
28569 \end_inset
28570 </cell>
28571 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28572 \begin_inset Text
28573
28574 \begin_layout Plain Layout
28575
28576 \series bold
28577 Meaning
28578 \end_layout
28579
28580 \end_inset
28581 </cell>
28582 </row>
28583 <row>
28584 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
28585 \begin_inset Text
28586
28587 \begin_layout Plain Layout
28588 4123:4168
28589 \end_layout
28590
28591 \end_inset
28592 </cell>
28593 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28594 \begin_inset Text
28595
28596 \begin_layout Plain Layout
28597 mixed revision working copy
28598 \end_layout
28599
28600 \end_inset
28601 </cell>
28602 </row>
28603 <row>
28604 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
28605 \begin_inset Text
28606
28607 \begin_layout Plain Layout
28608 4168M
28609 \end_layout
28610
28611 \end_inset
28612 </cell>
28613 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28614 \begin_inset Text
28615
28616 \begin_layout Plain Layout
28617 modified working copy
28618 \end_layout
28619
28620 \end_inset
28621 </cell>
28622 </row>
28623 <row>
28624 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
28625 \begin_inset Text
28626
28627 \begin_layout Plain Layout
28628 4123S
28629 \end_layout
28630
28631 \end_inset
28632 </cell>
28633 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28634 \begin_inset Text
28635
28636 \begin_layout Plain Layout
28637 switched working copy
28638 \end_layout
28639
28640 \end_inset
28641 </cell>
28642 </row>
28643 <row>
28644 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
28645 \begin_inset Text
28646
28647 \begin_layout Plain Layout
28648 4123P
28649 \end_layout
28650
28651 \end_inset
28652 </cell>
28653 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28654 \begin_inset Text
28655
28656 \begin_layout Plain Layout
28657 partial working copy, from a sparse checkout
28658 \end_layout
28659
28660 \end_inset
28661 </cell>
28662 </row>
28663 <row>
28664 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28665 \begin_inset Text
28666
28667 \begin_layout Plain Layout
28668 4123:4168MS
28669 \end_layout
28670
28671 \end_inset
28672 </cell>
28673 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28674 \begin_inset Text
28675
28676 \begin_layout Plain Layout
28677 mixed revision, modified, switched working copy
28678 \end_layout
28679
28680 \end_inset
28681 </cell>
28682 </row>
28683 </lyxtabular>
28684
28685 \end_inset
28686
28687
28688 \end_layout
28689
28690 \begin_layout Itemize
28691 file revision information.
28692  The result comes from parsing the output of 
28693 \begin_inset Flex Code
28694 status collapsed
28695
28696 \begin_layout Plain Layout
28697 svn
28698 \begin_inset space ~
28699 \end_inset
28700
28701 info
28702 \begin_inset space ~
28703 \end_inset
28704
28705 --xml
28706 \begin_inset space ~
28707 \end_inset
28708
28709 file.lyx
28710 \end_layout
28711
28712 \end_inset
28713
28714 .
28715  Supported flags are:
28716 \end_layout
28717
28718 \begin_deeper
28719 \begin_layout Itemize
28720 version number of the last commit (
28721 \begin_inset Flex Code
28722 status collapsed
28723
28724 \begin_layout Plain Layout
28725 vcs-revision
28726 \end_layout
28727
28728 \end_inset
28729
28730 )
28731 \end_layout
28732
28733 \begin_layout Itemize
28734 author of the last commit (
28735 \begin_inset Flex Code
28736 status collapsed
28737
28738 \begin_layout Plain Layout
28739 vcs-author
28740 \end_layout
28741
28742 \end_inset
28743
28744 )
28745 \end_layout
28746
28747 \begin_layout Itemize
28748 date of the last commit (
28749 \begin_inset Flex Code
28750 status collapsed
28751
28752 \begin_layout Plain Layout
28753 vcs-date
28754 \end_layout
28755
28756 \end_inset
28757
28758 )
28759 \end_layout
28760
28761 \begin_layout Itemize
28762 time of the last commit (
28763 \begin_inset Flex Code
28764 status collapsed
28765
28766 \begin_layout Plain Layout
28767 vcs-time
28768 \end_layout
28769
28770 \end_inset
28771
28772 )
28773 \end_layout
28774
28775 \end_deeper
28776 \begin_layout Standard
28777 You can obtain this info via InsetInfo (
28778 \change_inserted 5863208 1564400022
28779
28780 \lang american
28781 Insert\SpecialChar menuseparator
28782 Field\SpecialChar menuseparator
28783 Version Control Revision
28784 \change_deleted 5863208 1564399852
28785
28786 \lang english
28787 e.g.
28788  
28789 \begin_inset Flex Code
28790 status collapsed
28791
28792 \begin_layout Plain Layout
28793 info-insert buffer vcs-date
28794 \end_layout
28795
28796 \end_inset
28797
28798
28799 \change_unchanged
28800 ).
28801  The information will be available only when you have the file stored under
28802  svn managment (i.e.
28803  the 
28804 \begin_inset Flex Code
28805 status collapsed
28806
28807 \begin_layout Plain Layout
28808 .svn
28809 \end_layout
28810
28811 \end_inset
28812
28813  directory is available with your document).
28814 \end_layout
28815
28816 \end_deeper
28817 \begin_layout Itemize
28818 Another—a hacking one—possibility is to use svn keywords
28819 \begin_inset Foot
28820 status collapsed
28821
28822 \begin_layout Plain Layout
28823 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
28824 \end_layout
28825
28826 \end_inset
28827
28828 .
28829  In short – you set file keywords property (e.g.
28830  
28831 \family sans
28832 svn propset svn:keywords 'Rev' file.lyx
28833 \family default
28834 ) and then paste keyword \SpecialChar TeX
28835  code
28836 \begin_inset Foot
28837 status collapsed
28838
28839 \begin_layout Plain Layout
28840 This is an easy way how to ensure that \SpecialChar LyX
28841  won't break the line in the middle
28842  of keyword tag.
28843 \end_layout
28844
28845 \end_inset
28846
28847  tag in your document (e.g.
28848  
28849 \begin_inset Flex Code
28850 status collapsed
28851
28852 \begin_layout Plain Layout
28853 $Rev$
28854 \end_layout
28855
28856 \end_inset
28857
28858 ).
28859  This way svn client will automatically substitute revision number (e.g.
28860  
28861 \begin_inset Flex Code
28862 status collapsed
28863
28864 \begin_layout Plain Layout
28865 $Rev: 59 $
28866 \end_layout
28867
28868 \end_inset
28869
28870 ) after each update and commit.
28871  There are more problems with this approach.
28872  Firstly, the '$' character is used in \SpecialChar TeX
28873  world for math equations, so any
28874  occurence of math formula 
28875 \begin_inset Formula $Rev$
28876 \end_inset
28877
28878  become 
28879 \begin_inset Formula $Rev:59$
28880 \end_inset
28881
28882  in your \SpecialChar LyX
28883  document.
28884  Similarly for other keywords like Id, Date, Author, etc.
28885  Secondly svn output is dependent on your locales, so its very easy that
28886  svn would produce some problematic strings once Date is used.
28887  Thirdly you get the whole 'Rev: 59' string in your document instead of
28888  the plain number.
28889  Until subversion implements user's custom keywords it will be hard to use
28890  this approach reliably or let \SpecialChar LyX
28891  to support it directly.
28892 \end_layout
28893
28894 \begin_layout Subsection
28895 SVN and Windows Environment
28896 \end_layout
28897
28898 \begin_layout Quote
28899 My inclination is to say that if the user cannot figure out the command
28900  line operations on their own fairly quickly, they would be well advised
28901  to use TortoiseSVN.
28902  —P.
28903  A.
28904  Rubin
28905 \end_layout
28906
28907 \begin_layout Subsubsection
28908 Preparation
28909 \end_layout
28910
28911 \begin_layout Standard
28912 In addition to installing \SpecialChar LyX
28913 , and having access to a Subversion repository,
28914  the user will need to install the Subversion client program.
28915  A Windows installer for the client program is available from 
28916 \begin_inset CommandInset href
28917 LatexCommand href
28918 name "CollabNet"
28919 target "http://www.collab.net/nonav/downloads/subversion/"
28920 literal "false"
28921
28922 \end_inset
28923
28924 .
28925  The user may also want to install 
28926 \begin_inset CommandInset href
28927 LatexCommand href
28928 name "TortoiseSVN"
28929 target "http://tortoisesvn.tigris.org/"
28930 literal "false"
28931
28932 \end_inset
28933
28934 , which integrates Subversion operations into the context (rightclick) menu
28935  of Windows Explorer.
28936  Operations done outside \SpecialChar LyX
28937  will typically be more convenient using the Explorer
28938  context menu.
28939  Note that TortoiseSVN is not a replacement for the client program, which
28940  is what \SpecialChar LyX
28941  itself will use.
28942 \end_layout
28943
28944 \begin_layout Subsubsection
28945 Bringing a document under Subversion control
28946 \end_layout
28947
28948 \begin_layout Standard
28949 Before a \SpecialChar LyX
28950  document can be brought under version control in Subversion, its
28951  parent directory needs to be under version control.
28952  If the document is being added to a project already in the repository,
28953  this is accomplished by checking the project out to the directory where
28954  the new document will be placed.
28955  If the project itself is not yet under version control (for instance, if
28956  this document starts a new project), the directory must be imported into
28957  the repository.
28958  This is done outside \SpecialChar LyX
28959 .
28960  Both import and checkout are easily accomplished from the Explorer context
28961  menu using TortoiseSVN, or alternatively can be done using the command
28962  line client at a DOS prompt.
28963  The procedure for importing the project using TortoiseSVN is described
28964  below, assuming an existing repository and a new project being started
28965  in 
28966 \family typewriter
28967 C:
28968 \backslash
28969 new project
28970 \family default
28971 .
28972  For information on using the Subversion client program, run 
28973 \family typewriter
28974 svn --help 
28975 \family default
28976 in a DOS shell.
28977 \end_layout
28978
28979 \begin_layout Enumerate
28980 Locate 
28981 \family typewriter
28982 C:
28983 \backslash
28984 new project 
28985 \family default
28986 in Windows Explorer, right click it, and select 
28987 \family sans
28988 TortoiseSVN\SpecialChar menuseparator
28989 Repo-browser
28990 \family default
28991 .
28992  If necessary, adjust the URL for the repository, then click OK.
28993 \end_layout
28994
28995 \begin_layout Enumerate
28996 Right click the level of the repository under which you want to place the
28997  new project folder (typically the top level) and click 
28998 \family sans
28999 Create folder
29000 \family default
29001  Supply a name for the project folder and click OK.
29002  Add a message for the log file if desired, then click OK again.
29003  The new project folder should appear in the repository.
29004  Finally, click OK again to exit the repository browser.
29005 \end_layout
29006
29007 \begin_layout Enumerate
29008 Once again right click 
29009 \family typewriter
29010 C:
29011 \backslash
29012 new project
29013 \family default
29014 , this time selecting SVN Checkout\SpecialChar ldots
29015  Select the URL of the project folder
29016  you just created in the repository, and set the checkout directory to 
29017 \family typewriter
29018 C:
29019 \backslash
29020 new project.
29021
29022 \family default
29023  Click OK.
29024  You will be warned about a non-empty folder; click OK to proceed.
29025  You should now have a 
29026 \family typewriter
29027 .svn
29028 \family default
29029  directory under 
29030 \family typewriter
29031 C:
29032 \backslash
29033 new project.
29034 \end_layout
29035
29036 \begin_layout Enumerate
29037 Create or open your document in \SpecialChar LyX
29038  and click 
29039 \family sans
29040 File\SpecialChar menuseparator
29041 Version
29042 \begin_inset space ~
29043 \end_inset
29044
29045 Control\SpecialChar menuseparator
29046 Register.
29047  
29048 \family default
29049 Add a log message and click OK to commit the document to version control.
29050 \end_layout
29051
29052 \begin_layout Standard
29053 From this point onward, you should have full functionality in the 
29054 \family sans
29055 File\SpecialChar menuseparator
29056 Version
29057 \begin_inset space ~
29058 \end_inset
29059
29060 Control
29061 \family default
29062  menu.
29063  You also have the option of checking the document in and out, viewing its
29064  history, etc.
29065  using the TortoiseSVN context menu in Windows Explorer or the Subversion
29066  client program from a command prompt.
29067 \end_layout
29068
29069 \begin_layout Subsubsection
29070 SSH tunnel used with SVN under Windows
29071 \end_layout
29072
29073 \begin_layout Standard
29074 Compared with Linux setting up an svn client to communicate over ssh under
29075  Windows is a rather troublesome task.
29076  We will at least offer some hints how to setup the client side but prior
29077  knowledge about ssh and the Windows command line is needed, also be prepared
29078  for a great deal of frustration\SpecialChar ldots
29079
29080 \end_layout
29081
29082 \begin_layout Enumerate
29083 Get an svn client for windows, as described in the previous sections.
29084  When it is a fresh install run some svn command (e.g.
29085  
29086 \begin_inset Flex Code
29087 status collapsed
29088
29089 \begin_layout Plain Layout
29090 svn --version
29091 \end_layout
29092
29093 \end_inset
29094
29095 ) to create config files, which you will need to change later on.
29096 \end_layout
29097
29098 \begin_layout Enumerate
29099 Choose an ssh client for Windows.
29100  There are several possibilities, we will use the one from Putty tools
29101 \begin_inset Foot
29102 status collapsed
29103
29104 \begin_layout Plain Layout
29105 \begin_inset Flex URL
29106 status collapsed
29107
29108 \begin_layout Plain Layout
29109
29110 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
29111 \end_layout
29112
29113 \end_inset
29114
29115
29116 \end_layout
29117
29118 \end_inset
29119
29120 .
29121  You will need to set the connection up so that the client doesn't ask for
29122  any password from you.
29123  To keep things easy we will use only keys without any additional password
29124  protection etc.
29125 \end_layout
29126
29127 \begin_deeper
29128 \begin_layout Enumerate
29129 Generate keys by 
29130 \begin_inset Flex Code
29131 status collapsed
29132
29133 \begin_layout Plain Layout
29134 puttygen
29135 \end_layout
29136
29137 \end_inset
29138
29139 .
29140  Save your private .ppk key file and put the public one on the server side.
29141  If the SVN server runs on Linux, note that the format of the public key
29142  is not compatible with Linux openssh and you will need to direcly copy-paste
29143  the key from the 
29144 \begin_inset Quotes eld
29145 \end_inset
29146
29147
29148 \emph on
29149 Public key for pasting into OpenSSH authorized_keys file
29150 \emph default
29151 :
29152 \begin_inset Quotes erd
29153 \end_inset
29154
29155  edit field into the server's 
29156 \begin_inset Flex Code
29157 status collapsed
29158
29159 \begin_layout Plain Layout
29160 ~/.ssh/authorized_keys
29161 \end_layout
29162
29163 \end_inset
29164
29165  / 
29166 \begin_inset Flex Code
29167 status collapsed
29168
29169 \begin_layout Plain Layout
29170 authorized_keys2
29171 \end_layout
29172
29173 \end_inset
29174
29175  file.
29176 \end_layout
29177
29178 \begin_layout Enumerate
29179 Get the Putty's 
29180 \begin_inset Flex Code
29181 status collapsed
29182
29183 \begin_layout Plain Layout
29184 plink
29185 \end_layout
29186
29187 \end_inset
29188
29189 .
29190  In the SVN config file
29191 \begin_inset Foot
29192 status collapsed
29193
29194 \begin_layout Plain Layout
29195 Exact path depends on Windows version, usually somewhere around 
29196 \begin_inset Flex Code
29197 status collapsed
29198
29199 \begin_layout Plain Layout
29200 c:
29201 \backslash
29202 Documents and Settings
29203 \backslash
29204 user
29205 \backslash
29206 Application Data
29207 \backslash
29208 Subversion
29209 \backslash
29210 config
29211 \end_layout
29212
29213 \end_inset
29214
29215  / 
29216 \begin_inset Flex Code
29217 status collapsed
29218
29219 \begin_layout Plain Layout
29220 AppData
29221 \backslash
29222 Roaming
29223 \backslash
29224 Subversion
29225 \end_layout
29226
29227 \end_inset
29228
29229 .
29230 \end_layout
29231
29232 \end_inset
29233
29234 , section [tunnels], setup ssh command, e.g.
29235  
29236 \begin_inset Flex Code
29237 status collapsed
29238
29239 \begin_layout Plain Layout
29240 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
29241 \end_layout
29242
29243 \end_inset
29244
29245 .
29246 \begin_inset Foot
29247 status collapsed
29248
29249 \begin_layout Plain Layout
29250 It will usually take a lot of time to get exact command right and it depends
29251  on many things.
29252  For example do not have some remote server saved as a default session in
29253  Putty etc.
29254  If things fail, try to connect via plink without SVN first.
29255 \end_layout
29256
29257 \end_inset
29258
29259
29260 \end_layout
29261
29262 \end_deeper
29263 \begin_layout Enumerate
29264 Checkout the SVN archive, e.
29265 \begin_inset space \thinspace{}
29266 \end_inset
29267
29268 g.
29269 \begin_inset Newline newline
29270 \end_inset
29271
29272
29273 \begin_inset Flex Code
29274 status collapsed
29275
29276 \begin_layout Plain Layout
29277 svn co svn+ssh://user@server/repository_path
29278 \end_layout
29279
29280 \end_inset
29281
29282 .
29283 \end_layout
29284
29285 \begin_layout Subsubsection
29286 End-of-Line Conversions
29287 \end_layout
29288
29289 \begin_layout Standard
29290 When the collaborators are mixing Linux and Windows environments, \SpecialChar LyX
29291  will
29292  use different line endings inside the .lyx files.
29293  This is not a problem as far as \SpecialChar LyX
29294  functionality is concerned, but the commit
29295  diffs will be huge and merge-conflicts prone.
29296  Fortunately SVN itself knows
29297 \begin_inset Foot
29298 status collapsed
29299
29300 \begin_layout Plain Layout
29301 \begin_inset Flex URL
29302 status collapsed
29303
29304 \begin_layout Plain Layout
29305
29306 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
29307 \end_layout
29308
29309 \end_inset
29310
29311
29312 \end_layout
29313
29314 \end_inset
29315
29316  how to deal with CR/LF problems when switching .lyx files to the 
29317 \begin_inset Flex Code
29318 status collapsed
29319
29320 \begin_layout Plain Layout
29321 native
29322 \end_layout
29323
29324 \end_inset
29325
29326  mode.
29327 \begin_inset Foot
29328 status collapsed
29329
29330 \begin_layout Plain Layout
29331 For the lazy guys: 
29332 \begin_inset Flex Code
29333 status collapsed
29334
29335 \begin_layout Plain Layout
29336 svn propset svn:eol-style native FILE_NAME
29337 \end_layout
29338
29339 \end_inset
29340
29341
29342 \end_layout
29343
29344 \end_inset
29345
29346
29347 \end_layout
29348
29349 \begin_layout Subsection
29350 GIT commands in \SpecialChar LyX
29351
29352 \end_layout
29353
29354 \begin_layout Standard
29355 A minimal subset of GIT commands is now supported by \SpecialChar LyX
29356 .
29357  You can find the commands in the 
29358 \family sans
29359 File\SpecialChar menuseparator
29360 Version
29361 \begin_inset space ~
29362 \end_inset
29363
29364 Control
29365 \family default
29366  submenu.
29367  Please note that if you use password protected access to repository via
29368  ssh, you will be asked in terminal window.
29369  \SpecialChar LyX
29370  was tested against GIT 1.7.
29371 \begin_inset Foot
29372 status collapsed
29373
29374 \begin_layout Plain Layout
29375 Windows users please note that you need to ensure that git is on the path.
29376  This can be set from within \SpecialChar LyX
29377  at 
29378 \family sans
29379 Tools\SpecialChar menuseparator
29380 Preferences\SpecialChar menuseparator
29381 Paths\SpecialChar menuseparator
29382 PATH prefix
29383 \family default
29384 .
29385 \end_layout
29386
29387 \end_inset
29388
29389
29390 \end_layout
29391
29392 \begin_layout Standard
29393 One big difference of GIT and the other supported version control systems
29394  is the distributed nature of GIT: With traditional version control systems
29395  there is one central server which hosts the repository.
29396  Users commit their changes to the server, and get updates made by other
29397  users from it.
29398  With GIT, users commit to a local repository.
29399  The local repository can be synchronized with one or more remote repositories
29400  using the 
29401 \begin_inset Flex Code
29402 status collapsed
29403
29404 \begin_layout Plain Layout
29405 pull
29406 \end_layout
29407
29408 \end_inset
29409
29410  and 
29411 \begin_inset Flex Code
29412 status collapsed
29413
29414 \begin_layout Plain Layout
29415 push
29416 \end_layout
29417
29418 \end_inset
29419
29420  GIT commands.
29421  \SpecialChar LyX
29422  does not interact in any way with remote GIT repositories.
29423  It works exclusively with the local repository in a very similar way as
29424  with a central CVS or SVN repository.
29425  If you use remote GIT repositories you need to do the 
29426 \begin_inset Flex Code
29427 status collapsed
29428
29429 \begin_layout Plain Layout
29430 pull
29431 \end_layout
29432
29433 \end_inset
29434
29435  and 
29436 \begin_inset Flex Code
29437 status collapsed
29438
29439 \begin_layout Plain Layout
29440 push
29441 \end_layout
29442
29443 \end_inset
29444
29445  operations with your favourite GIT client.
29446 \end_layout
29447
29448 \begin_layout Subsubsection
29449
29450 \family sans
29451 Register
29452 \end_layout
29453
29454 \begin_layout Standard
29455 If your document is not under revision control, this is the only item shown
29456  in the menu.
29457  And if it is under revision control, the 
29458 \family sans
29459 Register
29460 \family default
29461  item is not visible.
29462 \end_layout
29463
29464 \begin_layout Standard
29465 This command registers in GIT your document ONLY in case you have already
29466  the documents directory under GIT control (in particular 
29467 \family typewriter
29468 .git/index
29469 \family default
29470  file exists).
29471  This means you have to checkout the archive by yourself.
29472 \end_layout
29473
29474 \begin_layout Standard
29475 Then you are asked interactively to supply an initial description of the
29476  document.
29477  Don't forget that registered file is not yet committed.
29478 \end_layout
29479
29480 \begin_layout Standard
29481 GIT command that is run: 
29482 \family typewriter
29483 git add 
29484 \begin_inset Quotes qld
29485 \end_inset
29486
29487 <file-name>
29488 \begin_inset Quotes qld
29489 \end_inset
29490
29491
29492 \end_layout
29493
29494 \begin_layout Standard
29495 Read 
29496 \family typewriter
29497 man git
29498 \family default
29499  to understand the switches.
29500 \end_layout
29501
29502 \begin_layout Subsubsection
29503
29504 \family sans
29505 Check In Changes
29506 \end_layout
29507
29508 \begin_layout Standard
29509 When you are finished editing a file, you commit your changes.
29510  When you do this, you are asked for a description of the changes.
29511  After that changes are committed.
29512 \end_layout
29513
29514 \begin_layout Standard
29515 GIT command: 
29516 \family typewriter
29517 git commit -q -m"<description>" <file-name>
29518 \end_layout
29519
29520 \begin_layout Subsubsection
29521
29522 \family sans
29523 Revert To Repository Version
29524 \end_layout
29525
29526 \begin_layout Standard
29527 This will discard all changes made to the document since the last check
29528  in.
29529  You get a warning before changes are discarded.
29530 \end_layout
29531
29532 \begin_layout Standard
29533 GIT command: 
29534 \family typewriter
29535 git checkout -q 
29536 \begin_inset Quotes qld
29537 \end_inset
29538
29539 <file-name>
29540 \begin_inset Quotes qld
29541 \end_inset
29542
29543
29544 \end_layout
29545
29546 \begin_layout Subsubsection
29547
29548 \family sans
29549 Rename
29550 \end_layout
29551
29552 \begin_layout Standard
29553 This will rename the current document including the version history.
29554  It requires a clean document without any changes since the last checkin.
29555  You are asked for a file name and a description of the rename operation.
29556  After that the document is renamed, both locally and in the repository.
29557  If the parent directories of the new and old file names differ, all relative
29558  paths of included files are adjusted (like in 
29559 \family sans
29560 File\SpecialChar menuseparator
29561 Save As
29562 \family default
29563 \SpecialChar ldots
29564 ).
29565  Finally, the document is reloaded using the new name.
29566 \end_layout
29567
29568 \begin_layout Labeling
29569 \labelwidthstring 00.00.0000
29570 GIT
29571 \begin_inset space ~
29572 \end_inset
29573
29574 commands: 
29575 \begin_inset space ~
29576 \end_inset
29577
29578
29579 \begin_inset Newline newline
29580 \end_inset
29581
29582
29583 \begin_inset Flex Code
29584 status collapsed
29585
29586 \begin_layout Plain Layout
29587 git mv 
29588 \family typewriter
29589
29590 \begin_inset Quotes qld
29591 \end_inset
29592
29593 <file-name>
29594 \begin_inset Quotes qld
29595 \end_inset
29596
29597  
29598 \begin_inset Quotes qld
29599 \end_inset
29600
29601 <new-file-name>
29602 \begin_inset Quotes qld
29603 \end_inset
29604
29605
29606 \end_layout
29607
29608 \end_inset
29609
29610
29611 \begin_inset Newline newline
29612 \end_inset
29613
29614
29615 \begin_inset Flex Code
29616 status collapsed
29617
29618 \begin_layout Plain Layout
29619 git commit
29620 \end_layout
29621
29622 \end_inset
29623
29624
29625 \end_layout
29626
29627 \begin_layout Subsubsection
29628
29629 \family sans
29630 Show History
29631 \end_layout
29632
29633 \begin_layout Standard
29634 This shows the complete history of the GIT document.
29635  The output of 
29636 \family typewriter
29637 git log 
29638 \begin_inset Quotes qld
29639 \end_inset
29640
29641 <file-name>
29642 \begin_inset Quotes qld
29643 \end_inset
29644
29645
29646 \family default
29647  is shown in a browser.
29648 \end_layout
29649
29650 \begin_layout Subsubsection
29651 Version Info
29652 \end_layout
29653
29654 \begin_layout Standard
29655 \SpecialChar LyX
29656  supports GIT hash number of the last commit to the file, 
29657 \change_inserted 1119979965 1564297456
29658 its abbreviated form, 
29659 \change_unchanged
29660 author name, date and time of last commit.
29661  All those are extracted from 
29662 \family typewriter
29663 git log -n 1 --pretty=format:%H%n
29664 \change_inserted 1119979965 1564297427
29665 %h%n
29666 \change_unchanged
29667 %an%n%ai
29668 \family default
29669 .
29670  Tree version information is obtained via 
29671 \family typewriter
29672 git describe --abbrev --dirty --long
29673 \family default
29674 .
29675  See 
29676 \begin_inset CommandInset ref
29677 LatexCommand ref
29678 reference "subsec:VCS-Revision-Information"
29679
29680 \end_inset
29681
29682  for other details.
29683 \end_layout
29684
29685 \begin_layout Subsection
29686 Further tuning
29687 \end_layout
29688
29689 \begin_layout Standard
29690 With the recent addition of the 
29691 \begin_inset Flex Code
29692 status collapsed
29693
29694 \begin_layout Plain Layout
29695 vc-command
29696 \end_layout
29697
29698 \end_inset
29699
29700  function \SpecialChar LyX
29701  power users are allowed to create their own commands for revision
29702  control.
29703 \end_layout
29704
29705 \begin_layout Standard
29706 As an example you can see how two TortoiseSVN commands could be integrated
29707  directly:
29708 \end_layout
29709
29710 \begin_layout Description
29711 Commit: 
29712 \begin_inset Flex Code
29713 status collapsed
29714
29715 \begin_layout Plain Layout
29716 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
29717 \end_layout
29718
29719 \end_inset
29720
29721
29722 \end_layout
29723
29724 \begin_layout Description
29725 Revert: 
29726 \begin_inset Flex Code
29727 status collapsed
29728
29729 \begin_layout Plain Layout
29730 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
29731 \end_layout
29732
29733 \end_inset
29734
29735
29736 \end_layout
29737
29738 \begin_layout Subsection
29739 Version control and Document comparison
29740 \end_layout
29741
29742 \begin_layout Standard
29743 One of the typical uses of version control is to inspect the changes between
29744  revisions, usually by creating 
29745 \begin_inset Flex Code
29746 status collapsed
29747
29748 \begin_layout Plain Layout
29749 diff
29750 \end_layout
29751
29752 \end_inset
29753
29754  dumps.
29755  While this is useful for plain text files, it is much less useful in the
29756  case of \SpecialChar LyX
29757  files, which have more a complicated structure.
29758  Hence we provide binding to the Document comparison feature.
29759  There are two ways of calling this feature – either by direct call of 
29760 \begin_inset Flex Code
29761 status collapsed
29762
29763 \begin_layout Plain Layout
29764 vc-compare
29765 \end_layout
29766
29767 \end_inset
29768
29769  \SpecialChar LyX
29770  function (for details see \SpecialChar LyX
29771  functions manual) or by the toolbar icon 
29772 \begin_inset Info
29773 type  "icon"
29774 arg   "vc-compare"
29775 \end_inset
29776
29777  or the menu item 
29778 \begin_inset Info
29779 type  "menu"
29780 arg   "vc-compare"
29781 \end_inset
29782
29783 , respectively.
29784  One can either compare two chosen revisions of the document or he can simply
29785  compare the current version of edited text with older revisions (where
29786  '
29787 \begin_inset Flex Noun
29788 status collapsed
29789
29790 \begin_layout Plain Layout
29791 0
29792 \end_layout
29793
29794 \end_inset
29795
29796 ' revisions back means comparison of the edited file with last commited
29797  revision).
29798  
29799 \end_layout
29800
29801 \begin_layout Standard
29802 This feature is supported for SVN and RCS though due to the more complicated
29803  versioning scheme of RCS there is a constraint – when addressing the revisions
29804  in dialog, numbers always point to the last number in RCS revision number,
29805  i.e.
29806  '35' in '1.2.35'.
29807  We don't currently support GIT addressing of revisions, one can just compare
29808  edited document with its revision X steps backs, where X is addressed as
29809  
29810 \begin_inset Flex Code
29811 status collapsed
29812
29813 \begin_layout Plain Layout
29814 HEAD~X
29815 \end_layout
29816
29817 \end_inset
29818
29819 .
29820 \end_layout
29821
29822 \begin_layout Section
29823 Literate Programming
29824 \end_layout
29825
29826 \begin_layout Standard
29827 Updated by 
29828 \noun on
29829 Kayvan Sylvan 
29830 \noun default
29831 (kayvan@sylvan.com)
29832 \noun on
29833
29834 \noun default
29835 original documentation written by 
29836 \noun on
29837 Edmar Wienskoski Jr.
29838
29839 \noun default
29840  (edmar-w-jr@technologist.com)
29841 \end_layout
29842
29843 \begin_layout Subsection
29844 Introduction
29845 \end_layout
29846
29847 \begin_layout Standard
29848 The main purpose of this documentation is to show you how to use \SpecialChar LyX
29849  for literate
29850  programming, where it is assumed that you are familiar with this programming
29851  technique, and know what 
29852 \begin_inset Quotes eld
29853 \end_inset
29854
29855 tangling
29856 \begin_inset Quotes erd
29857 \end_inset
29858
29859  and 
29860 \begin_inset Quotes eld
29861 \end_inset
29862
29863 weaving
29864 \begin_inset Quotes erd
29865 \end_inset
29866
29867  means.
29868  If that is not the case, please follow the web links provided in the following
29869  sections.
29870  There is a lot of good documentation out there covering old development
29871  history to the latest tools tips.
29872 \end_layout
29873
29874 \begin_layout Standard
29875 It is also assumed that you are familiar with \SpecialChar LyX
29876  itself to a point that you
29877  are comfortable changing your \SpecialChar LyX
29878  preferences, and X resources file.
29879  If that is not the case please refer to other \SpecialChar LyX
29880  documentation to cover your
29881  specific needs.
29882 \end_layout
29883
29884 \begin_layout Subsection
29885 Literate Programming
29886 \end_layout
29887
29888 \begin_layout Standard
29889 From the Literate Programming FAQ: 
29890 \end_layout
29891
29892 \begin_layout Quotation
29893 Literate programming is the combination of documentation and source together
29894  in a fashion suited for reading by human beings.
29895  In fact, literate programs should be enjoyable reading, even inviting!
29896  (Sorry Bob, I couldn't resist!) In general, literate programs combine source
29897  and documentation in a single file.
29898  Literate programming tools then parse the file to produce either readable
29899  documentation or compilable source.
29900  The WEB style of literate programming was created by D.
29901 \begin_inset space \thinspace{}
29902 \end_inset
29903
29904 E.
29905  Knuth during the development of his \SpecialChar TeX
29906  typesetting software.
29907  
29908 \end_layout
29909
29910 \begin_layout Standard
29911 Another excerpt says:
29912 \end_layout
29913
29914 \begin_layout Quotation
29915
29916 \emph on
29917 How is literate programming different from verbose commenting?
29918 \end_layout
29919
29920 \begin_layout Quotation
29921 There are three distinguishing characteristics.
29922  In order of importance, they are: 
29923 \end_layout
29924
29925 \begin_deeper
29926 \begin_layout Itemize
29927 flexible order of elaboration 
29928 \end_layout
29929
29930 \begin_layout Itemize
29931 automatic support for browsing 
29932 \end_layout
29933
29934 \begin_layout Itemize
29935 typeset documentation, especially diagrams and mathematics 
29936 \end_layout
29937
29938 \end_deeper
29939 \begin_layout Standard
29940 Now that I sparked your curiosity, take a look in the references.
29941 \end_layout
29942
29943 \begin_layout Subsubsection
29944 References
29945 \end_layout
29946
29947 \begin_layout Standard
29948 The complete Literate Programming FAQ can be found at:
29949 \end_layout
29950
29951 \begin_layout Quote
29952 Literate Programming FAQ 
29953 \begin_inset Flex URL
29954 status open
29955
29956 \begin_layout Plain Layout
29957
29958 http://www.literateprogramming.com/lpfaq.pdf
29959 \end_layout
29960
29961 \end_inset
29962
29963
29964 \end_layout
29965
29966 \begin_layout Standard
29967 The FAQ lists 23 (twenty three!) different literate programming tools.
29968  Where some are specialized or 
29969 \begin_inset Quotes eld
29970 \end_inset
29971
29972 tailored
29973 \begin_inset Quotes erd
29974 \end_inset
29975
29976  for particular programming languages, while other have general scope.
29977  I selected 
29978 \noun on
29979 Noweb
29980 \noun default
29981  for my own use for several reasons:
29982 \end_layout
29983
29984 \begin_layout Itemize
29985 It can generate the documentation either in \SpecialChar LaTeX
29986  or HTML.
29987 \end_layout
29988
29989 \begin_layout Itemize
29990 It has a open architecture, i.
29991 \begin_inset space \thinspace{}
29992 \end_inset
29993
29994 e.
29995 \begin_inset space \space{}
29996 \end_inset
29997
29998 it is easy to plug in new filters
29999 \begin_inset Foot
30000 status collapsed
30001
30002 \begin_layout Plain Layout
30003
30004 \emph on
30005 Filters 
30006 \emph default
30007 are programs that read a given data stream and output a manipulated data
30008  stream.
30009  That way, a WEB file (consisting of literate code) can be turned into a
30010  file consisting only of C program code or \SpecialChar LaTeX
30011  code.
30012 \end_layout
30013
30014 \end_inset
30015
30016  and to perform special processing that you may need.
30017  
30018 \end_layout
30019
30020 \begin_layout Itemize
30021 There is a good selection of filters available already (the HTML is one
30022  of them).
30023 \end_layout
30024
30025 \begin_layout Itemize
30026 It is free.
30027 \end_layout
30028
30029 \begin_layout Standard
30030 The Noweb web page can be found at: 
30031 \end_layout
30032
30033 \begin_layout Quote
30034 Noweb home page 
30035 \begin_inset Flex URL
30036 status collapsed
30037
30038 \begin_layout Plain Layout
30039
30040 https://www.cs.tufts.edu/~nr/noweb/
30041 \end_layout
30042
30043 \end_inset
30044
30045
30046 \end_layout
30047
30048 \begin_layout Standard
30049 Starting from there you can reach many other interesting links and even
30050  some literate program examples.
30051 \end_layout
30052
30053 \begin_layout Subsection
30054 \SpecialChar LyX
30055  and Literate Programming with Noweb
30056 \end_layout
30057
30058 \begin_layout Standard
30059 The \SpecialChar LyX
30060  support for Literate Programming is provided by using the generic \SpecialChar LyX
30061
30062  converters mechanism.
30063  This support is provided in a 
30064 \begin_inset Quotes eld
30065 \end_inset
30066
30067 Noweb independent
30068 \begin_inset Quotes erd
30069 \end_inset
30070
30071  way, i.
30072 \begin_inset space \thinspace{}
30073 \end_inset
30074
30075 e.
30076 \begin_inset space \space{}
30077 \end_inset
30078
30079 you will be able to use this new \SpecialChar LyX
30080  feature with some other literate programming
30081  tool of your choice by just changing your \SpecialChar LyX
30082  preferences.
30083 \end_layout
30084
30085 \begin_layout Subsubsection
30086 Generating documents and code (weaving and tangling)
30087 \end_layout
30088
30089 \begin_layout Paragraph
30090 Using the noweb module
30091 \end_layout
30092
30093 \begin_layout Standard
30094 If you have installed Noweb and \SpecialChar LyX
30095  successfully, whenever you open a new document,
30096  after you have chosen its document class, use the 
30097 \family sans
30098 Document\SpecialChar menuseparator
30099 Settings
30100 \family default
30101  menu to add the 
30102 \begin_inset Quotes eld
30103 \end_inset
30104
30105 noweb
30106 \begin_inset Quotes erd
30107 \end_inset
30108
30109  module.
30110  If Noweb is correctly installed, when you click on the 
30111 \begin_inset Quotes eld
30112 \end_inset
30113
30114 Modules
30115 \begin_inset Quotes erd
30116 \end_inset
30117
30118  link, you will see the 
30119 \begin_inset Quotes eld
30120 \end_inset
30121
30122 noweb
30123 \begin_inset Quotes erd
30124 \end_inset
30125
30126  module in the available list and you can add it to your document.
30127 \end_layout
30128
30129 \begin_layout Paragraph
30130 Typing code in
30131 \end_layout
30132
30133 \begin_layout Standard
30134 \SpecialChar LyX
30135  enables you to write code with a custom inset named 
30136 \begin_inset Flex Noun
30137 status collapsed
30138
30139 \begin_layout Plain Layout
30140 Chunk
30141 \end_layout
30142
30143 \end_inset
30144
30145 .
30146  Noweb delimits chunks like this:
30147 \end_layout
30148
30149 \begin_layout LyX-Code
30150 <<My code>>=
30151 \end_layout
30152
30153 \begin_layout LyX-Code
30154   code
30155 \end_layout
30156
30157 \begin_layout LyX-Code
30158   more code
30159 \end_layout
30160
30161 \begin_layout LyX-Code
30162   even more code
30163 \end_layout
30164
30165 \begin_layout LyX-Code
30166   @
30167 \end_layout
30168
30169 \begin_layout Standard
30170 The problem is that whatever is written in between the << and the 
30171 \family typewriter
30172 @
30173 \family default
30174  must be taken literally, i.
30175 \begin_inset space \thinspace{}
30176 \end_inset
30177
30178 e.
30179 \begin_inset space \space{}
30180 \end_inset
30181
30182 \SpecialChar LyX
30183  should be prevented from making any special interpretation of what has
30184  been written.
30185  This is also handled by 
30186 \begin_inset Flex Noun
30187 status collapsed
30188
30189 \begin_layout Plain Layout
30190 Chunk
30191 \end_layout
30192
30193 \end_inset
30194
30195 , that works like a normal text inset but has a free spacing capability.
30196 \end_layout
30197
30198 \begin_layout Standard
30199 As a special note, you can also use the 
30200 \begin_inset Quotes eld
30201 \end_inset
30202
30203 %def
30204 \begin_inset Quotes erd
30205 \end_inset
30206
30207  construct of Noweb in your chunks to add items to Noweb's identifier cross-refe
30208 rence:
30209 \end_layout
30210
30211 \begin_layout LyX-Code
30212 <<My chunk>>=
30213 \end_layout
30214
30215 \begin_layout LyX-Code
30216 def some_function(args):
30217 \end_layout
30218
30219 \begin_layout LyX-Code
30220    "This is the doc string for this function."
30221 \end_layout
30222
30223 \begin_layout LyX-Code
30224    print "My args: ", args
30225 \end_layout
30226
30227 \begin_layout LyX-Code
30228 @ %def some_function
30229 \end_layout
30230
30231 \begin_layout Standard
30232 For an example of this usage and the resulting cross-reference output, look
30233  at the Literate python program in 
30234 \emph on
30235 LIBDIR/examples/listerrors.lyx
30236 \emph default
30237  which should make this all clear.
30238 \end_layout
30239
30240 \begin_layout Paragraph
30241 Generating the documentation
30242 \end_layout
30243
30244 \begin_layout Standard
30245 At this point you already have a new document file with a proper document
30246  class, and with some code and text on it.
30247  How do I print it? The answer is simple, you select 
30248 \family sans
30249 View\SpecialChar menuseparator
30250 DVI,
30251 \family default
30252  etc.
30253  Just like you would do for a plain document.
30254  No special procedure is required.
30255 \end_layout
30256
30257 \begin_layout Standard
30258 To help orientate you, I will now explain what happens inside \SpecialChar LyX
30259 :
30260 \end_layout
30261
30262 \begin_layout Enumerate
30263 When the 
30264 \family sans
30265 Update\SpecialChar menuseparator
30266 DVI
30267 \family default
30268  menu option is chosen, a \SpecialChar LaTeX
30269  file is generated.
30270  
30271 \end_layout
30272
30273 \begin_deeper
30274 \begin_layout Standard
30275 If the document is of any literate class the generated file will be named
30276  with an extension name defined by the 
30277 \begin_inset Quotes eld
30278 \end_inset
30279
30280 literate
30281 \begin_inset Quotes erd
30282 \end_inset
30283
30284  format (defined in the Preferences panel), otherwise the file will have
30285  the usual 
30286 \family typewriter
30287 .tex
30288 \family default
30289  extension.
30290 \end_layout
30291
30292 \end_deeper
30293 \begin_layout Enumerate
30294 Note that the only difference so far is in the name of the file, no special
30295  processing is required by \SpecialChar LyX
30296 .
30297  Given that you formatted the code using the 
30298 \begin_inset Flex Noun
30299 status collapsed
30300
30301 \begin_layout Plain Layout
30302 Chunk
30303 \end_layout
30304
30305 \end_inset
30306
30307  inset that, by itself, takes care of the business.
30308 \end_layout
30309
30310 \begin_layout Enumerate
30311 If the document is of any literate class \SpecialChar LyX
30312  will then use the internal \SpecialChar LyX
30313  to
30314  Noweb converter, followed by the Noweb to \SpecialChar LaTeX
30315  converter
30316 \begin_inset Foot
30317 status collapsed
30318
30319 \begin_layout Plain Layout
30320 The converters are defined in the 
30321 \family sans
30322 Tools\SpecialChar menuseparator
30323 Preferences
30324 \family default
30325  panel, under the 
30326 \begin_inset Quotes eld
30327 \end_inset
30328
30329 Conversion
30330 \begin_inset Quotes erd
30331 \end_inset
30332
30333  tab.
30334  See section 
30335 \emph on
30336 Converters
30337 \emph default
30338  of the 
30339 \emph on
30340 Customization
30341 \emph default
30342  manual for general information about converters.
30343 \end_layout
30344
30345 \end_inset
30346
30347  to generate the \SpecialChar LaTeX
30348  file.
30349 \end_layout
30350
30351 \begin_deeper
30352 \begin_layout Standard
30353 Otherwise it will just skip this step.
30354 \end_layout
30355
30356 \end_deeper
30357 \begin_layout Enumerate
30358 Finally, \SpecialChar LaTeX
30359  is invoked and the regular post processing continues as in a plain
30360  document.
30361 \end_layout
30362
30363 \begin_layout Standard
30364 Independence from a particular 
30365 \begin_inset Quotes eld
30366 \end_inset
30367
30368 literate tool
30369 \begin_inset Quotes erd
30370 \end_inset
30371
30372  is easily achieved by changing the commands that are run by the various
30373  converters.
30374 \end_layout
30375
30376 \begin_layout Paragraph
30377 Generating the code
30378 \end_layout
30379
30380 \begin_layout Standard
30381 When the build menu option is chosen or the corresponding button in the
30382  toolbar is pressed, a \SpecialChar LaTeX
30383  file is generated just like step 1 above.
30384  Next, \SpecialChar LyX
30385  invokes the 
30386 \family typewriter
30387 Noweb->Program
30388 \family default
30389  converter.
30390  This converter needs to be defined by the user and is not installed by
30391  default, though the Program format is.
30392  This converter (like any other converter) will have two parts:
30393 \end_layout
30394
30395 \begin_layout Enumerate
30396 The converter program itself.
30397  This program performs the conversion from the one format to the other (in
30398  this case, from the Noweb format to the Program pseudo-format).
30399 \end_layout
30400
30401 \begin_layout Enumerate
30402 The error log parser.
30403  This is a program whose sole purpose is to rewrite error messages in a
30404  format that \SpecialChar LyX
30405  understands.
30406  This makes it possible for \SpecialChar LyX
30407  to place error boxes in the right places in
30408  the file buffer.
30409 \end_layout
30410
30411 \begin_layout Standard
30412 The first part, the 
30413 \begin_inset Quotes eld
30414 \end_inset
30415
30416 Converter
30417 \begin_inset Quotes erd
30418 \end_inset
30419
30420  setting, should be set to
30421 \end_layout
30422
30423 \begin_layout LyX-Code
30424
30425 \family typewriter
30426 build-script $$i
30427 \family default
30428  $$r
30429 \end_layout
30430
30431 \begin_layout Standard
30432 This basically means that \SpecialChar LyX
30433  will call 
30434 \begin_inset Quotes eld
30435 \end_inset
30436
30437 build-script
30438 \begin_inset Quotes erd
30439 \end_inset
30440
30441  (a program or script) with the name of the Noweb file (normally a file
30442  in the \SpecialChar LyX
30443  temp directory) and the directory path of the original \SpecialChar LyX
30444  file.
30445  
30446 \end_layout
30447
30448 \begin_layout Standard
30449 This is an implementation of 
30450 \begin_inset Quotes eld
30451 \end_inset
30452
30453 build-script
30454 \begin_inset Quotes erd
30455 \end_inset
30456
30457  that you can place in a directory on your path:
30458 \end_layout
30459
30460 \begin_layout LyX-Code
30461
30462 \family sans
30463 #!/bin/sh
30464 \end_layout
30465
30466 \begin_layout LyX-Code
30467
30468 \family sans
30469 #
30470 \end_layout
30471
30472 \begin_layout LyX-Code
30473
30474 \family sans
30475 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
30476 \end_layout
30477
30478 \begin_layout Standard
30479 The next part of the converter setting is the 
30480 \begin_inset Quotes eld
30481 \end_inset
30482
30483 Flags
30484 \begin_inset Quotes erd
30485 \end_inset
30486
30487  which is to be set to
30488 \end_layout
30489
30490 \begin_layout LyX-Code
30491
30492 \family typewriter
30493 parselog=$$s/scripts/listerrors
30494 \end_layout
30495
30496 \begin_layout Standard
30497 This will run any errors that are generated by the 
30498 \begin_inset Quotes eld
30499 \end_inset
30500
30501 build-script
30502 \begin_inset Quotes erd
30503 \end_inset
30504
30505  process through the 
30506 \begin_inset Quotes eld
30507 \end_inset
30508
30509 listerrors
30510 \begin_inset Quotes erd
30511 \end_inset
30512
30513  program.
30514 \end_layout
30515
30516 \begin_layout Standard
30517 The build will normally take place in \SpecialChar LyX
30518 's temporary directory, so the files
30519  produced by the conversion will be in that directory.
30520  \SpecialChar LyX
30521  will copy out what it regards as the `main' file, but the 
30522 \family typewriter
30523 Noweb->Program
30524 \family default
30525  conversion may produce several files, and so most of these would then be
30526  deleted when \SpecialChar LyX
30527  was closed.
30528  This is why we pass in the NOWEB_OUTPUT_DIR environment variable so that
30529  the build-script chunk can place the generated files in that location.
30530 \end_layout
30531
30532 \begin_layout Paragraph
30533 Build instructions in the document
30534 \end_layout
30535
30536 \begin_layout Standard
30537 The last piece of the integration between \SpecialChar LyX
30538  and noweb is the 
30539 \begin_inset Quotes eld
30540 \end_inset
30541
30542 build-script
30543 \begin_inset Quotes erd
30544 \end_inset
30545
30546  chunk.
30547  Generally, the instructions for building your program should be embedded
30548  in a chunk of its own.
30549  The noweb-specific 
30550 \begin_inset Quotes eld
30551 \end_inset
30552
30553 build-script
30554 \begin_inset Quotes erd
30555 \end_inset
30556
30557  above uses the notangle command to look for this chunk (called 
30558 \begin_inset Quotes eld
30559 \end_inset
30560
30561 build-script
30562 \begin_inset Quotes erd
30563 \end_inset
30564
30565 ) and runs its contents through 
30566 \begin_inset Quotes eld
30567 \end_inset
30568
30569 sh
30570 \begin_inset Quotes erd
30571 \end_inset
30572
30573 .
30574 \end_layout
30575
30576 \begin_layout Standard
30577 Typically, such a chunk would look something like this:
30578 \end_layout
30579
30580 \begin_layout LyX-Code
30581 <<build-script>>=
30582 \end_layout
30583
30584 \begin_layout LyX-Code
30585 #!/bin/sh
30586 \begin_inset Newline newline
30587 \end_inset
30588
30589 if [ -z "${NOWEB_SOURCE}" ]
30590 \begin_inset Newline newline
30591 \end_inset
30592
30593 then
30594 \end_layout
30595
30596 \begin_layout LyX-Code
30597 NOWEB_SOURCE=myfile.nw
30598 \begin_inset Newline newline
30599 \end_inset
30600
30601 fi
30602 \begin_inset Newline newline
30603 \end_inset
30604
30605 [...
30606  code to extract files ...
30607  use NOWEB_OUTPUT_DIR here ...]
30608 \begin_inset Newline newline
30609 \end_inset
30610
30611 [...
30612  code to compile files ...]
30613 \begin_inset Newline newline
30614 \end_inset
30615
30616 @
30617 \end_layout
30618
30619 \begin_layout Standard
30620 Look in 
30621 \emph on
30622 LIBDIR/examples/listerrors.lyx
30623 \emph default
30624  or in 
30625 \emph on
30626 LIBDIR/examples/Literate.lyx
30627 \emph default
30628  which implement two versions of the 
30629 \begin_inset Quotes eld
30630 \end_inset
30631
30632 listerrors
30633 \begin_inset Quotes erd
30634 \end_inset
30635
30636  program for some illustrations of how all of these pieces go together or
30637  in 
30638 \emph on
30639 LIBDIR/examples/noweb2lyx.lyx.
30640
30641 \emph default
30642  Interestingly, these three files show off the language-indepence of the
30643  \SpecialChar LyX
30644  literate programming support since they are written in Python, C and Perl
30645  respectively.
30646 \end_layout
30647
30648 \begin_layout Subsubsection
30649 Configuring \SpecialChar LyX
30650
30651 \end_layout
30652
30653 \begin_layout Standard
30654 All the Literate Programming support is configured by the 
30655 \family sans
30656 Tools\SpecialChar menuseparator
30657 Preferences
30658 \family default
30659  panel in the 
30660 \begin_inset Quotes eld
30661 \end_inset
30662
30663 File Handling
30664 \begin_inset Quotes erd
30665 \end_inset
30666
30667  tab.
30668  The important parts are:
30669 \end_layout
30670
30671 \begin_layout Description
30672 the
30673 \begin_inset space ~
30674 \end_inset
30675
30676
30677 \begin_inset Quotes eld
30678 \end_inset
30679
30680 NoWeb
30681 \begin_inset Quotes erd
30682 \end_inset
30683
30684
30685 \begin_inset space ~
30686 \end_inset
30687
30688 format Set up via the File Formats tab, this is where the Noweb-specific
30689  pieces are set up.
30690  The 
30691 \family sans
30692 GUI Name
30693 \family default
30694  is set to 
30695 \family typewriter
30696 NoWeb
30697 \family default
30698 , the file extension is set to 
30699 \family typewriter
30700 .nw
30701 \family default
30702 .
30703  This tells \SpecialChar LyX
30704  to create a file with a 
30705 \family typewriter
30706 .nw
30707 \family default
30708  extension in the first step of the conversion process.
30709 \end_layout
30710
30711 \begin_layout Description
30712 the
30713 \begin_inset space ~
30714 \end_inset
30715
30716
30717 \family sans
30718 Program
30719 \family default
30720
30721 \begin_inset space ~
30722 \end_inset
30723
30724 format This is an empty format whose sole purpose is to be the endpoint
30725  of a conversion (which then allows us to set up a converter for it).
30726 \end_layout
30727
30728 \begin_layout Description
30729
30730 \family sans
30731 NoWeb
30732 \family default
30733 ->
30734 \family sans
30735 \SpecialChar LaTeX
30736
30737 \family default
30738  This converter performs the 
30739 \begin_inset Quotes eld
30740 \end_inset
30741
30742 weaving
30743 \begin_inset Quotes erd
30744 \end_inset
30745
30746  of the literate document.
30747  For Noweb, it is set to 
30748 \begin_inset Quotes eld
30749 \end_inset
30750
30751
30752 \family typewriter
30753 noweave -delay -index $$i > $$o
30754 \family default
30755
30756 \begin_inset Quotes erd
30757 \end_inset
30758
30759
30760 \end_layout
30761
30762 \begin_layout Description
30763
30764 \family sans
30765 NoWeb
30766 \family default
30767 ->
30768 \family sans
30769 Program
30770 \family default
30771  This performs the 
30772 \begin_inset Quotes eld
30773 \end_inset
30774
30775 tangling step
30776 \begin_inset Quotes erd
30777 \end_inset
30778
30779 .
30780  As stated above, the Converter is set to 
30781 \begin_inset Quotes eld
30782 \end_inset
30783
30784
30785 \family typewriter
30786 build-script $$i
30787 \family default
30788  $$r
30789 \begin_inset Quotes erd
30790 \end_inset
30791
30792 , with Flags set to
30793 \begin_inset Newline newline
30794 \end_inset
30795
30796
30797 \begin_inset Quotes eld
30798 \end_inset
30799
30800
30801 \family typewriter
30802 parselog=$$s/scripts/listerrors
30803 \family default
30804
30805 \begin_inset Quotes erd
30806 \end_inset
30807
30808 .
30809 \end_layout
30810
30811 \begin_layout Subsubsection
30812 Debug extensions
30813 \end_layout
30814
30815 \begin_layout Standard
30816 There is also a new function implemented in the \SpecialChar LyX
30817  server, the 
30818 \begin_inset Quotes eld
30819 \end_inset
30820
30821 server-goto-file-row" function, to be used with ddd/gdb or other debugger.
30822  
30823 \end_layout
30824
30825 \begin_layout Standard
30826 When debugging code with ddd/gdb, it is possible to invoke a text editor
30827  at the current execution position with a single key stroke.
30828  The default ddd configuration for that is shift-ctrl-V.
30829  It happens that you can define the editor command line invocation in ddd
30830  by accessing the 
30831 \family sans
30832 Edit\SpecialChar menuseparator
30833 Preferences\SpecialChar menuseparator
30834 Helpers
30835 \family default
30836  dialog and changing the "Edit Sources" entry.
30837 \end_layout
30838
30839 \begin_layout Standard
30840 I take advantage of the newly created \SpecialChar LyX
30841  server function and this ddd feature,
30842  and set 
30843 \begin_inset Quotes eld
30844 \end_inset
30845
30846 Edit Sources
30847 \begin_inset Quotes erd
30848 \end_inset
30849
30850  to:
30851 \end_layout
30852
30853 \begin_layout LyX-Code
30854 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
30855 \end_layout
30856
30857 \begin_layout Standard
30858 With this, whenever you are using ddd and find a point in the program that
30859  you want to edit, you just press shift-ctrl-V (in the ddd window), and
30860  ddd will forward this information to \SpecialChar LyX
30861  through the \SpecialChar LyX
30862  server and then the
30863  \SpecialChar LyX
30864  window will show the same file with the cursor at the same position ddd
30865  was pointing to.
30866  No more guessing or long scrolling to locate a point in the program back
30867  from debugging !
30868 \end_layout
30869
30870 \begin_layout Standard
30871 Note however that you must enable the \SpecialChar LyX
30872  server to get this feature working
30873  (it is disabled by default).
30874  Sec.
30875 \begin_inset space ~
30876 \end_inset
30877
30878
30879 \begin_inset CommandInset ref
30880 LatexCommand ref
30881 reference "sec:Starting-the-Server"
30882
30883 \end_inset
30884
30885  explains how to do that.
30886 \end_layout
30887
30888 \begin_layout Subsubsection
30889 Toolbar extensions
30890 \end_layout
30891
30892 \begin_layout Standard
30893 There are six new buttons that can be added to your \SpecialChar LyX
30894  toolbar.
30895  Four of these buttons are short cuts to layout styles: 
30896 \family sans
30897 Standard
30898 \family default
30899
30900 \family sans
30901 Section
30902 \family default
30903
30904 \family sans
30905 \SpecialChar LaTeX
30906
30907 \family default
30908 , and 
30909 \family sans
30910 \SpecialChar LyX
30911 -Code
30912 \family default
30913 , one for the custom inset 
30914 \family sans
30915 Chunk
30916 \family default
30917 .
30918  The last one is a short cut to the 
30919 \begin_inset Quotes eld
30920 \end_inset
30921
30922 Build Program
30923 \begin_inset Quotes erd
30924 \end_inset
30925
30926  File menu entry.
30927  
30928 \end_layout
30929
30930 \begin_layout Standard
30931 \SpecialChar LyX
30932  has a range of buttons that are available for tool bar customization.
30933  In my toolbar I like to combine the six short cuts above with two more:
30934  One for 
30935 \family sans
30936 Document
30937 \family default
30938 \SpecialChar menuseparator
30939
30940 \family sans
30941 Update
30942 \family default
30943 \SpecialChar menuseparator
30944
30945 \family sans
30946 DVI
30947 \family default
30948  and the other for 
30949 \family sans
30950 Document\SpecialChar menuseparator
30951 View\SpecialChar menuseparator
30952 DVI
30953 \family default
30954  File menu entries.
30955  Here is how it looks like:
30956 \end_layout
30957
30958 \begin_layout LyX-Code
30959 Toolbar
30960 \end_layout
30961
30962 \begin_layout LyX-Code
30963   Layouts
30964 \end_layout
30965
30966 \begin_layout LyX-Code
30967   Icon "layout Standard"
30968 \end_layout
30969
30970 \begin_layout LyX-Code
30971   Icon "layout Section"
30972 \end_layout
30973
30974 \begin_layout LyX-Code
30975   Icon "layout \SpecialChar LaTeX
30976 "
30977 \end_layout
30978
30979 \begin_layout LyX-Code
30980   Icon "layout \SpecialChar LyX
30981 -Code"
30982 \end_layout
30983
30984 \begin_layout LyX-Code
30985   Icon "flex.insert Chunk"
30986 \end_layout
30987
30988 \begin_layout LyX-Code
30989   Separator
30990 \end_layout
30991
30992 \begin_layout LyX-Code
30993   Icon "buffer-view"
30994 \end_layout
30995
30996 \begin_layout LyX-Code
30997   Icon "buffer-typeset"
30998 \end_layout
30999
31000 \begin_layout LyX-Code
31001   Icon "build-program"
31002 \end_layout
31003
31004 \begin_layout LyX-Code
31005   Separator
31006 \end_layout
31007
31008 \begin_layout LyX-Code
31009 .
31010 \end_layout
31011
31012 \begin_layout LyX-Code
31013 .
31014 \end_layout
31015
31016 \begin_layout LyX-Code
31017 .
31018 \end_layout
31019
31020 \begin_layout LyX-Code
31021 End
31022 \end_layout
31023
31024 \begin_layout Subsubsection
31025 Colors customization
31026 \end_layout
31027
31028 \begin_layout Standard
31029 There are a number of colors in \SpecialChar LyX
31030  that can be customized in 
31031 \family sans
31032 Preferences
31033 \family default
31034 .
31035  One of the things that bothers people is the \SpecialChar LaTeX
31036  font color.
31037  The default color is red, since the chunks uses \SpecialChar LaTeX
31038  font, and there is a lot
31039  of chunks in literate documents, you may get tired of seeing everything
31040  in red.
31041  You can change it by going to the tabs 
31042 \family sans
31043 Look&Feel
31044 \family default
31045
31046 \family sans
31047 Colors.
31048 \end_layout
31049
31050 \begin_layout Standard
31051 The next thing is the visible presence of the newline character in the screen.
31052  You can choose the color of this particular character and make it blend
31053  in the background.
31054  I recommend you choosing a color that is close to the background but not
31055  equal, that way you still can see it is there, but it is not bothering
31056  you anymore.
31057 \end_layout
31058
31059 \begin_layout Subsection
31060 \SpecialChar LyX
31061  and knitr/Sweave
31062 \end_layout
31063
31064 \begin_layout Standard
31065 Support for 
31066 \family sans
31067 knitr
31068 \family default
31069  and 
31070 \family sans
31071 Sweave
31072 \family default
31073  is documented in 
31074 \change_deleted 564990737 1671643409
31075 the 
31076 \emph on
31077 knitr.lyx
31078 \emph default
31079  example file
31080 \change_inserted 564990737 1671643443
31081
31082 \family sans
31083 \lang british
31084 File\SpecialChar menuseparator
31085 Open Example\SpecialChar menuseparator
31086 Modules\SpecialChar menuseparator
31087 Rnw (knitr)
31088 \change_unchanged
31089
31090 \family default
31091 \lang english
31092  and in 
31093 \change_deleted 564990737 1671643461
31094 the Sweave manual (menu 
31095 \family sans
31096 Help\SpecialChar menuseparator
31097 Specific Manuals
31098 \family default
31099 )
31100 \change_inserted 564990737 1671643461
31101
31102 \family sans
31103 \lang british
31104 Help\SpecialChar menuseparator
31105 Specific Manuals\SpecialChar menuseparator
31106 Sweave
31107 \change_unchanged
31108
31109 \family default
31110 \lang english
31111 .
31112 \end_layout
31113
31114 \begin_layout Chapter
31115
31116 \change_deleted 564990737 1671355343
31117 Special features
31118 \end_layout
31119
31120 \begin_layout Standard
31121
31122 \change_deleted 564990737 1671355343
31123 You can do everything with \SpecialChar LyX
31124  that you can do with \SpecialChar LaTeX
31125 .
31126  However, \SpecialChar LyX
31127  cannot support every \SpecialChar LaTeX
31128  feature directly.
31129  But you can always use \SpecialChar TeX
31130  Code.
31131  This chapter shows you some more special things you might want to use.
31132  For other special things you can do with figures, tables, floats, boxes
31133  and notes, have a look at the 
31134 \emph on
31135 Embedded
31136 \begin_inset space ~
31137 \end_inset
31138
31139 Objects
31140 \emph default
31141  manual.
31142 \change_unchanged
31143
31144 \end_layout
31145
31146 \end_body
31147 \end_document